Bläddra i källkod

fix: QASimpleEditor -> SimpleEditor

Roxas 4 år sedan
förälder
incheckning
1e4dba1eec

+ 10
- 46653
eslib/BraftEditor/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
eslib/BraftEditor/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
eslib/ConsumeListView/index.js Visa fil

@@ -2,7 +2,7 @@ import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn,
2 2
 import React, { Component } from 'react';
3 3
 import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
4 4
 import { _ as _defineProperty } from '../defineProperty-18999f8e.js';
5
-import { c as classnames } from '../index-b8d80d39.js';
5
+import { c as classnames } from '../index-e3cf212a.js';
6 6
 import { a as addImageProcess } from '../utils-6b513b37.js';
7 7
 
8 8
 var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABvklEQVQ4T62UTygEcRTHv29MIsqfk6OL5CYH5aKd9WfjwqxEnBzExYWTCEWJJGove5H8OTA1uwdCrOWAi83ZwUXJiSj5u+Z5s0msmd2SX81h+r33ee/7fW+G8E+H/srhqEcFCjphve1RzcaVK4j3mmoB5YxqQzdOxTji1wE2QZglb2jAEcT7/g4wr0rQugS1OYJ26nOg5nYDr4ZrR7yrl0FBAKBlqjEX3eRLwSXAmidvOJbSI47oF9LVKaCOkNc4/w7kSPOoFBqDwjpp4XA60LUkF8nzbsuERQt4ejtGdsYwiAYTYIV6STOD6UB3EpqXJC0u7zKxz0Mk3Zrj7lOLerJg5T9K+2lWhALiYx8xS9NbDZnUuPXy0wN/hYw3lnbPiNfE7HaSfTAloRqKWkya8WAnMrdmIBqfBqM/BehJAo+gKHMibdMGzUhqKUiZAHGVXJYLwPdpshPnRDRM4fl5+7uKL/0c1WXdOSie5Dh3wZcyoR7SQttO9z+M5MOWEsStFQmsTAoOwVK7qM64d5P6ayKJj9EqHBa5Q4kx2/ujqR1Exnsq493HH2muFN98oNtJ0g7s3Ul5/vwbSab+G+gDqFybE11pYkYAAAAASUVORK5CYII=";

+ 3
- 3
eslib/Editor/index.d.ts Visa fil

@@ -9,13 +9,13 @@ interface ToolListItem {
9 9
     text?: string;
10 10
     render?: (i: ToolListItem, innerIcon: any, innerText: any, divWrapStyle: React.CSSProperties | undefined) => any;
11 11
 }
12
-interface QASimpleEditorProps extends BaseEditorProps {
12
+interface SimpleEditorProps extends BaseEditorProps {
13 13
     toolAlign?: "inner" | "bottom";
14 14
     toolList?: Array<ToolListItem>;
15 15
     injectControlsToolBar?: any;
16 16
     toolBarContainerStyle?: any;
17 17
     appendToolBtn?: any;
18 18
 }
19
-declare const QASimpleEditor: (props: QASimpleEditorProps) => JSX.Element;
19
+declare const SimpleEditor: (props: SimpleEditorProps) => JSX.Element;
20 20
 export { default as BraftEditor } from "../BraftEditor/index";
21
-export { QASimpleEditor };
21
+export { SimpleEditor };

+ 10
- 7
eslib/Editor/index.js Visa fil

@@ -1,12 +1,15 @@
1 1
 import React from 'react';
2
-import 'react-dom';
3 2
 import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
4 3
 import { _ as _defineProperty } from '../defineProperty-18999f8e.js';
5
-import '../index-b8d80d39.js';
4
+import '../index-e3cf212a.js';
6 5
 import '../slicedToArray-4cd9e6d3.js';
6
+import 'braft-editor';
7 7
 import { BarftEditorPage } from '../BraftEditor/index.js';
8 8
 export { default as BraftEditor } from '../BraftEditor/index.js';
9
-import 'react-dom/server';
9
+import 'braft-editor/dist/index.css';
10
+import 'braft-extensions/dist/emoticon.css';
11
+import 'braft-extensions/dist/emoticon';
12
+import 'braft-extensions/dist/max-length';
10 13
 
11 14
 function ownKeys(object, enumerableOnly) {
12 15
   var keys = Object.keys(object);
@@ -100,13 +103,13 @@ var ControlsToolBar = function ControlsToolBar(props) {
100 103
   }));
101 104
 };
102 105
 
103
-var css = ".index_bottomToolBarWrapper__3mYXO {\n  display: flex;\n}\n";
106
+var css = ".index_bottomToolBarWrapper__DzhzC {\n  display: flex;\n}\n";
104 107
 var styles = {
105
-  "bottomToolBarWrapper": "index_bottomToolBarWrapper__3mYXO"
108
+  "bottomToolBarWrapper": "index_bottomToolBarWrapper__DzhzC"
106 109
 };
107 110
 styleInject(css);
108 111
 
109
-var QASimpleEditor = function QASimpleEditor(props) {
112
+var SimpleEditor = function SimpleEditor(props) {
110 113
   var value = props.value,
111 114
       onChange = props.onChange,
112 115
       _props$toolAlign = props.toolAlign,
@@ -152,5 +155,5 @@ var QASimpleEditor = function QASimpleEditor(props) {
152 155
   }, injectControlsToolBar))), appendToolBtn));
153 156
 };
154 157
 
155
-export { QASimpleEditor };
158
+export { SimpleEditor };
156 159
 //# sourceMappingURL=index.js.map

+ 1
- 1
eslib/Editor/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
eslib/PayPlatformOptions/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
eslib/Payment/index.js Visa fil

@@ -4,7 +4,7 @@ import 'react-dom';
4 4
 import '../Modal/index.js';
5 5
 import '../style-inject.es-1f59c1d0.js';
6 6
 import '../defineProperty-18999f8e.js';
7
-import '../index-b8d80d39.js';
7
+import '../index-e3cf212a.js';
8 8
 import '../utils-6b513b37.js';
9 9
 export { default as ConsumeListView } from '../ConsumeListView/index.js';
10 10
 export { default as PayPlatformOptions } from '../PayPlatformOptions/index.js';

+ 1
- 1
eslib/PriceOptions/index.js Visa fil

@@ -1,7 +1,7 @@
1 1
 import React, { useState } from 'react';
2 2
 import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
3 3
 import { _ as _defineProperty } from '../defineProperty-18999f8e.js';
4
-import { c as classnames } from '../index-b8d80d39.js';
4
+import { c as classnames } from '../index-e3cf212a.js';
5 5
 import { e as exportStyleSizeClass } from '../utils-6b513b37.js';
6 6
 import { _ as _slicedToArray } from '../slicedToArray-4cd9e6d3.js';
7 7
 import { Input } from 'antd';

+ 1
- 1
eslib/WaitPayInfoView/index.js Visa fil

@@ -1,7 +1,7 @@
1 1
 import { a as _inherits, b as _classCallCheck, c as _possibleConstructorReturn, d as _getPrototypeOf, e as _createClass } from '../inherits-6cb67931.js';
2 2
 import React, { Component } from 'react';
3 3
 import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
4
-import { c as classnames } from '../index-b8d80d39.js';
4
+import { c as classnames } from '../index-e3cf212a.js';
5 5
 
6 6
 var css = ".WaitPayInfoView_waitingContainer__3pU2F {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n}\n";
7 7
 var styles = {

+ 1
- 1
eslib/WantedPublishModal/index.js Visa fil

@@ -4,7 +4,7 @@ import 'react-dom';
4 4
 import Modal from '../Modal/index.js';
5 5
 import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
6 6
 import '../defineProperty-18999f8e.js';
7
-import '../index-b8d80d39.js';
7
+import '../index-e3cf212a.js';
8 8
 import 'antd';
9 9
 import WantedPublishView from '../WantedPublishView/index.js';
10 10
 import { W as WatnedPublishBase } from '../WantedPublish-b91e67a7.js';

+ 1
- 1
eslib/WantedPublishPopover/index.js Visa fil

@@ -4,7 +4,7 @@ import 'react-dom';
4 4
 import '../Modal/index.js';
5 5
 import { s as styleInject } from '../style-inject.es-1f59c1d0.js';
6 6
 import '../defineProperty-18999f8e.js';
7
-import '../index-b8d80d39.js';
7
+import '../index-e3cf212a.js';
8 8
 import { Popover } from 'antd';
9 9
 import WantedPublishView from '../WantedPublishView/index.js';
10 10
 import { W as WatnedPublishBase } from '../WantedPublish-b91e67a7.js';

+ 1
- 1
eslib/WantedPublishView/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


eslib/index-b8d80d39.d.ts → eslib/index-e3cf212a.d.ts Visa fil


lib/index-1143667e.js → eslib/index-e3cf212a.js Visa fil

@@ -1,11 +1,3 @@
1
-'use strict';
2
-
3
-var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
-
5
-function unwrapExports (x) {
6
-	return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
7
-}
8
-
9 1
 function createCommonjsModule(fn, module) {
10 2
 	return module = { exports: {} }, fn(module, module.exports), module.exports;
11 3
 }
@@ -59,8 +51,5 @@ var classnames = createCommonjsModule(function (module) {
59 51
 }());
60 52
 });
61 53
 
62
-exports.classnames = classnames;
63
-exports.commonjsGlobal = commonjsGlobal;
64
-exports.createCommonjsModule = createCommonjsModule;
65
-exports.unwrapExports = unwrapExports;
66
-//# sourceMappingURL=index-1143667e.js.map
54
+export { classnames as c };
55
+//# sourceMappingURL=index-e3cf212a.js.map

lib/index-1143667e.js.map → eslib/index-e3cf212a.js.map Visa fil

@@ -1 +1 @@
1
-{"version":3,"file":"index-b8d80d39.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,YAAY;AAEb;AACA,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;AAChC;AACA,CAAC,SAAS,UAAU,IAAI;AACxB,EAAE,IAAI,OAAO,GAAG,EAAE,CAAC;AACnB;AACA,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC7C,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC1B,GAAG,IAAI,CAAC,GAAG,EAAE,SAAS;AACtB;AACA,GAAG,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;AAC5B;AACA,GAAG,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE;AACrD,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtB,IAAI,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE;AAChD,IAAI,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC5C,IAAI,IAAI,KAAK,EAAE;AACf,KAAK,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACzB,KAAK;AACL,IAAI,MAAM,IAAI,OAAO,KAAK,QAAQ,EAAE;AACpC,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,EAAE;AACzB,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE;AAC5C,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACxB,MAAM;AACN,KAAK;AACL,IAAI;AACJ,GAAG;AACH;AACA,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,EAAE;AACF;AACA,CAAC,KAAqC,MAAM,CAAC,OAAO,EAAE;AACtD,EAAE,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC;AAClC,EAAE,cAAc,GAAG,UAAU,CAAC;AAC9B,EAAE,MAKM;AACR,EAAE,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;AACjC,EAAE;AACF,CAAC,EAAE;;;;;;;;"}
1
+{"version":3,"file":"index-e3cf212a.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,YAAY;AAEb;AACA,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;AAChC;AACA,CAAC,SAAS,UAAU,IAAI;AACxB,EAAE,IAAI,OAAO,GAAG,EAAE,CAAC;AACnB;AACA,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC7C,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC1B,GAAG,IAAI,CAAC,GAAG,EAAE,SAAS;AACtB;AACA,GAAG,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;AAC5B;AACA,GAAG,IAAI,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,QAAQ,EAAE;AACrD,IAAI,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACtB,IAAI,MAAM,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,MAAM,EAAE;AAChD,IAAI,IAAI,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC5C,IAAI,IAAI,KAAK,EAAE;AACf,KAAK,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACzB,KAAK;AACL,IAAI,MAAM,IAAI,OAAO,KAAK,QAAQ,EAAE;AACpC,IAAI,KAAK,IAAI,GAAG,IAAI,GAAG,EAAE;AACzB,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE;AAC5C,MAAM,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACxB,MAAM;AACN,KAAK;AACL,IAAI;AACJ,GAAG;AACH;AACA,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,EAAE;AACF;AACA,CAAC,KAAqC,MAAM,CAAC,OAAO,EAAE;AACtD,EAAE,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC;AAClC,EAAE,cAAc,GAAG,UAAU,CAAC;AAC9B,EAAE,MAKM;AACR,EAAE,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;AACjC,EAAE;AACF,CAAC,EAAE;;;;;"}

+ 1
- 1
eslib/index.js Visa fil

@@ -4,7 +4,7 @@ import 'react-dom';
4 4
 export { default as Modal, ModalCMD } from './Modal/index.js';
5 5
 import './style-inject.es-1f59c1d0.js';
6 6
 import './defineProperty-18999f8e.js';
7
-import './index-b8d80d39.js';
7
+import './index-e3cf212a.js';
8 8
 import './utils-6b513b37.js';
9 9
 export { default as ConsumeListView } from './ConsumeListView/index.js';
10 10
 export { default as PayPlatformOptions } from './PayPlatformOptions/index.js';

+ 9
- 46652
lib/BraftEditor/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
lib/BraftEditor/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
lib/ConsumeListView/index.js Visa fil

@@ -9,7 +9,7 @@ var React = require('react');
9 9
 var React__default = _interopDefault(React);
10 10
 var styleInject_es = require('../style-inject.es-dcee06b6.js');
11 11
 var defineProperty = require('../defineProperty-ba7cd53d.js');
12
-var index = require('../index-1143667e.js');
12
+var index = require('../index-4c407188.js');
13 13
 var utils = require('../utils-b800dc99.js');
14 14
 
15 15
 var img = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAABvklEQVQ4T62UTygEcRTHv29MIsqfk6OL5CYH5aKd9WfjwqxEnBzExYWTCEWJJGove5H8OTA1uwdCrOWAi83ZwUXJiSj5u+Z5s0msmd2SX81h+r33ee/7fW+G8E+H/srhqEcFCjphve1RzcaVK4j3mmoB5YxqQzdOxTji1wE2QZglb2jAEcT7/g4wr0rQugS1OYJ26nOg5nYDr4ZrR7yrl0FBAKBlqjEX3eRLwSXAmidvOJbSI47oF9LVKaCOkNc4/w7kSPOoFBqDwjpp4XA60LUkF8nzbsuERQt4ejtGdsYwiAYTYIV6STOD6UB3EpqXJC0u7zKxz0Mk3Zrj7lOLerJg5T9K+2lWhALiYx8xS9NbDZnUuPXy0wN/hYw3lnbPiNfE7HaSfTAloRqKWkya8WAnMrdmIBqfBqM/BehJAo+gKHMibdMGzUhqKUiZAHGVXJYLwPdpshPnRDRM4fl5+7uKL/0c1WXdOSie5Dh3wZcyoR7SQttO9z+M5MOWEsStFQmsTAoOwVK7qM64d5P6ayKJj9EqHBa5Q4kx2/ujqR1Exnsq493HH2muFN98oNtJ0g7s3Ul5/vwbSab+G+gDqFybE11pYkYAAAAASUVORK5CYII=";

+ 3
- 3
lib/Editor/index.d.ts Visa fil

@@ -9,13 +9,13 @@ interface ToolListItem {
9 9
     text?: string;
10 10
     render?: (i: ToolListItem, innerIcon: any, innerText: any, divWrapStyle: React.CSSProperties | undefined) => any;
11 11
 }
12
-interface QASimpleEditorProps extends BaseEditorProps {
12
+interface SimpleEditorProps extends BaseEditorProps {
13 13
     toolAlign?: "inner" | "bottom";
14 14
     toolList?: Array<ToolListItem>;
15 15
     injectControlsToolBar?: any;
16 16
     toolBarContainerStyle?: any;
17 17
     appendToolBtn?: any;
18 18
 }
19
-declare const QASimpleEditor: (props: QASimpleEditorProps) => JSX.Element;
19
+declare const SimpleEditor: (props: SimpleEditorProps) => JSX.Element;
20 20
 export { default as BraftEditor } from "../BraftEditor/index";
21
-export { QASimpleEditor };
21
+export { SimpleEditor };

+ 14
- 11
lib/Editor/index.js Visa fil

@@ -6,13 +6,16 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
6 6
 
7 7
 var React = require('react');
8 8
 var React__default = _interopDefault(React);
9
-require('react-dom');
10 9
 var styleInject_es = require('../style-inject.es-dcee06b6.js');
11 10
 var defineProperty = require('../defineProperty-ba7cd53d.js');
12
-require('../index-1143667e.js');
11
+require('../index-4c407188.js');
13 12
 require('../slicedToArray-172f4624.js');
14
-var BraftEditor = require('../BraftEditor/index.js');
15
-require('react-dom/server');
13
+require('braft-editor');
14
+var BraftEditor$1 = require('../BraftEditor/index.js');
15
+require('braft-editor/dist/index.css');
16
+require('braft-extensions/dist/emoticon.css');
17
+require('braft-extensions/dist/emoticon');
18
+require('braft-extensions/dist/max-length');
16 19
 
17 20
 function ownKeys(object, enumerableOnly) {
18 21
   var keys = Object.keys(object);
@@ -106,13 +109,13 @@ var ControlsToolBar = function ControlsToolBar(props) {
106 109
   }));
107 110
 };
108 111
 
109
-var css = ".index_bottomToolBarWrapper__3mYXO {\n  display: flex;\n}\n";
112
+var css = ".index_bottomToolBarWrapper__DzhzC {\n  display: flex;\n}\n";
110 113
 var styles = {
111
-  "bottomToolBarWrapper": "index_bottomToolBarWrapper__3mYXO"
114
+  "bottomToolBarWrapper": "index_bottomToolBarWrapper__DzhzC"
112 115
 };
113 116
 styleInject_es.styleInject(css);
114 117
 
115
-var QASimpleEditor = function QASimpleEditor(props) {
118
+var SimpleEditor = function SimpleEditor(props) {
116 119
   var value = props.value,
117 120
       onChange = props.onChange,
118 121
       _props$toolAlign = props.toolAlign,
@@ -127,7 +130,7 @@ var QASimpleEditor = function QASimpleEditor(props) {
127 130
       appendToolBtn = _props$appendToolBtn === void 0 ? null : _props$appendToolBtn;
128 131
 
129 132
   if (toolAlign === 'inner') {
130
-    return React__default.createElement(BraftEditor.BarftEditorPage, {
133
+    return React__default.createElement(BraftEditor$1.BarftEditorPage, {
131 134
       value: value,
132 135
       onChange: onChange,
133 136
       controls: [],
@@ -143,7 +146,7 @@ var QASimpleEditor = function QASimpleEditor(props) {
143 146
     });
144 147
   }
145 148
 
146
-  return React__default.createElement("div", null, React__default.createElement(BraftEditor.BarftEditorPage, {
149
+  return React__default.createElement("div", null, React__default.createElement(BraftEditor$1.BarftEditorPage, {
147 150
     value: value,
148 151
     onChange: onChange,
149 152
     controls: []
@@ -158,6 +161,6 @@ var QASimpleEditor = function QASimpleEditor(props) {
158 161
   }, injectControlsToolBar))), appendToolBtn));
159 162
 };
160 163
 
161
-exports.BraftEditor = BraftEditor.default;
162
-exports.QASimpleEditor = QASimpleEditor;
164
+exports.BraftEditor = BraftEditor$1.default;
165
+exports.SimpleEditor = SimpleEditor;
163 166
 //# sourceMappingURL=index.js.map

+ 1
- 1
lib/Editor/index.js.map
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
lib/PayPlatformOptions/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 1
- 1
lib/Payment/index.js Visa fil

@@ -8,7 +8,7 @@ require('react-dom');
8 8
 require('../Modal/index.js');
9 9
 require('../style-inject.es-dcee06b6.js');
10 10
 require('../defineProperty-ba7cd53d.js');
11
-require('../index-1143667e.js');
11
+require('../index-4c407188.js');
12 12
 require('../utils-b800dc99.js');
13 13
 var ConsumeListView = require('../ConsumeListView/index.js');
14 14
 var PayPlatformOptions = require('../PayPlatformOptions/index.js');

+ 1
- 1
lib/PriceOptions/index.js Visa fil

@@ -8,7 +8,7 @@ var React = require('react');
8 8
 var React__default = _interopDefault(React);
9 9
 var styleInject_es = require('../style-inject.es-dcee06b6.js');
10 10
 var defineProperty = require('../defineProperty-ba7cd53d.js');
11
-var index = require('../index-1143667e.js');
11
+var index = require('../index-4c407188.js');
12 12
 var utils = require('../utils-b800dc99.js');
13 13
 var slicedToArray = require('../slicedToArray-172f4624.js');
14 14
 var antd = require('antd');

+ 1
- 1
lib/WaitPayInfoView/index.js Visa fil

@@ -8,7 +8,7 @@ var inherits = require('../inherits-c86d64c1.js');
8 8
 var React = require('react');
9 9
 var React__default = _interopDefault(React);
10 10
 var styleInject_es = require('../style-inject.es-dcee06b6.js');
11
-var index = require('../index-1143667e.js');
11
+var index = require('../index-4c407188.js');
12 12
 
13 13
 var css = ".WaitPayInfoView_waitingContainer__3pU2F {\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n}\n";
14 14
 var styles = {

+ 1
- 1
lib/WantedPublishModal/index.js Visa fil

@@ -11,7 +11,7 @@ require('react-dom');
11 11
 var Modal = require('../Modal/index.js');
12 12
 var styleInject_es = require('../style-inject.es-dcee06b6.js');
13 13
 require('../defineProperty-ba7cd53d.js');
14
-require('../index-1143667e.js');
14
+require('../index-4c407188.js');
15 15
 require('antd');
16 16
 var WantedPublishView = require('../WantedPublishView/index.js');
17 17
 var WantedPublish = require('../WantedPublish-761aab8e.js');

+ 1
- 1
lib/WantedPublishPopover/index.js Visa fil

@@ -11,7 +11,7 @@ require('react-dom');
11 11
 require('../Modal/index.js');
12 12
 var styleInject_es = require('../style-inject.es-dcee06b6.js');
13 13
 require('../defineProperty-ba7cd53d.js');
14
-require('../index-1143667e.js');
14
+require('../index-4c407188.js');
15 15
 var antd = require('antd');
16 16
 var WantedPublishView = require('../WantedPublishView/index.js');
17 17
 var WantedPublish = require('../WantedPublish-761aab8e.js');

+ 1
- 1
lib/WantedPublishView/index.js
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


lib/index-1143667e.d.ts → lib/index-4c407188.d.ts Visa fil


eslib/index-b8d80d39.js → lib/index-4c407188.js Visa fil

@@ -1,8 +1,4 @@
1
-var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
-
3
-function unwrapExports (x) {
4
-	return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
5
-}
1
+'use strict';
6 2
 
7 3
 function createCommonjsModule(fn, module) {
8 4
 	return module = { exports: {} }, fn(module, module.exports), module.exports;
@@ -57,5 +53,5 @@ var classnames = createCommonjsModule(function (module) {
57 53
 }());
58 54
 });
59 55
 
60
-export { createCommonjsModule as a, commonjsGlobal as b, classnames as c, unwrapExports as u };
61
-//# sourceMappingURL=index-b8d80d39.js.map
56
+exports.classnames = classnames;
57
+//# sourceMappingURL=index-4c407188.js.map

eslib/index-b8d80d39.js.map → lib/index-4c407188.js.map Visa fil

@@ -1 +1 @@
1
-{"version":3,"file":"index-b8d80d39.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t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,GAAG,CAAC,CAAC;AAC3B,EAAE;AACF;AACA,CAAC,KAAqC,MAAM,CAAC,OAAO,EAAE;AACtD,EAAE,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC;AAClC,EAAE,cAAc,GAAG,UAAU,CAAC;AAC9B,EAAE,MAKM;AACR,EAAE,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;AACjC,EAAE;AACF,CAAC,EAAE;;;;;"}
1
+{"version":3,"file":"index-e3cf212a.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n  Copyright (c) 2017 Jed Watson.\n  Licensed under the MIT License (MIT), see\n  http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg) && arg.length) {\n\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\tif (inner) {\n\t\t\t\t\tclasses.push(inner);\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":[],"mappings":";;;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;AACF;AACA,CAAC,KAAqC,MAAM,CAAC,OAAO,EAAE;AACtD,EAAE,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC;AAClC,EAAE,cAAc,GAAG,UAAU,CAAC;AAC9B,EAAE,MAKM;AACR,EAAE,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;AACjC,EAAE;AACF,CAAC,EAAE;;;;;"}

+ 1
- 1
lib/index.js Visa fil

@@ -8,7 +8,7 @@ require('react-dom');
8 8
 var Modal = require('./Modal/index.js');
9 9
 require('./style-inject.es-dcee06b6.js');
10 10
 require('./defineProperty-ba7cd53d.js');
11
-require('./index-1143667e.js');
11
+require('./index-4c407188.js');
12 12
 require('./utils-b800dc99.js');
13 13
 var ConsumeListView = require('./ConsumeListView/index.js');
14 14
 var PayPlatformOptions = require('./PayPlatformOptions/index.js');

+ 4
- 1
package.json Visa fil

@@ -119,6 +119,9 @@
119 119
   "peerDependencies": {
120 120
     "antd": "3.19.3",
121 121
     "react": "^16.12.0",
122
-    "react-dom": "^16.12.0"
122
+    "react-dom": "^16.12.0",
123
+    "braft-editor": "^2.3.8",
124
+    "braft-extensions": "^0.0.20",
125
+    "braft-utils": "^3.0.12"
123 126
   }
124 127
 }

src/components/Editor/QAEditor/SimpleEditor.tsx → src/components/Editor/ImgTxtEditor/SimpleEditor.tsx Visa fil

@@ -4,7 +4,7 @@ import { ControlsToolBar, ToolListItem } from "@components/Editor/CommonTool/Con
4 4
 import { ContentUtils } from "braft-utils";
5 5
 import styles from './index.less';
6 6
 
7
-interface QASimpleEditorProps extends BaseEditorProps {
7
+interface SimpleEditorProps extends BaseEditorProps {
8 8
   toolAlign?: 'inner' | 'bottom';
9 9
   toolList?: Array<ToolListItem>;
10 10
   injectControlsToolBar?: any;
@@ -12,7 +12,7 @@ interface QASimpleEditorProps extends BaseEditorProps {
12 12
   appendToolBtn?: any;
13 13
 }
14 14
 
15
-const QASimpleEditor = (props: QASimpleEditorProps) => {
15
+const SimpleEditor = (props: SimpleEditorProps) => {
16 16
   const {
17 17
     value,
18 18
     onChange, 
@@ -63,4 +63,4 @@ const QASimpleEditor = (props: QASimpleEditorProps) => {
63 63
   );
64 64
 }
65 65
 
66
-export default QASimpleEditor;
66
+export default SimpleEditor;

src/components/Editor/QAEditor/index.less → src/components/Editor/ImgTxtEditor/index.less Visa fil


+ 1
- 1
src/components/Editor/index.ts Visa fil

@@ -1,2 +1,2 @@
1 1
 export { default as BraftEditor } from './BraftEditor';
2
-export { default as QASimpleEditor } from './QAEditor/SimpleEditor';
2
+export { default as SimpleEditor } from './ImgTxtEditor/SimpleEditor';

+ 2
- 1
stats.html
Filskillnaden har hållits tillbaka eftersom den är för stor
Visa fil


+ 2
- 2
stories/Editor.stories.tsx Visa fil

@@ -6,7 +6,7 @@ import { withKnobs, number, boolean, select } from "@storybook/addon-knobs";
6 6
 import { addReadme } from "storybook-readme";
7 7
 
8 8
 import { BarftEditorPage } from "@components/Editor/BraftEditor";
9
-import SimpleEditor from "@components/Editor/QAEditor/SimpleEditor";
9
+import SimpleEditor from "@/components/Editor/ImgTxtEditor/SimpleEditor";
10 10
 import { ControlsToolBar } from "@components/Editor/CommonTool/ControlsToolBar";
11 11
 import { ContentUtils } from "braft-utils";
12 12
 
@@ -110,7 +110,7 @@ stories.add(
110 110
 );
111 111
 
112 112
 stories.add(
113
-  "QASimpleEditor",
113
+  "SimpleEditor",
114 114
   () => {
115 115
     const [editorState, setEditorState] = useState(
116 116
       BraftEditor.createEditorState("<p>Hello <b>World!</b></p>")