@cloudbase/weda-ui 0.2.7 → 0.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/package.json +1 -3
  2. package/src/configs/components/container.json +2 -1
  3. package/src/configs/components/form/richText.json +2 -1
  4. package/src/configs/components/form/uploader.json +4 -4
  5. package/src/configs/components/image.json +2 -1
  6. package/src/configs/components/link.json +2 -1
  7. package/src/configs/components/richtextview.json +2 -1
  8. package/src/configs/components/scrollVeiw.json +2 -1
  9. package/src/configs/components/swiper.json +2 -1
  10. package/src/configs/components/tabs.json +2 -1
  11. package/src/configs/components/text.json +2 -1
  12. package/src/configs/index.js +3 -5
  13. package/src/mp/components/form/uploader/index.js +15 -8
  14. package/src/mp/components/form/uploader/index.wxml +1 -1
  15. package/src/web/components/form/select/region/{cities.json → cities.js} +2 -2
  16. package/src/web/components/form/select/region/index.js +3 -3
  17. package/src/web/components/form/select/region/{provinces.json → provinces.js} +2 -2
  18. package/src/web/components/form/select/region/{regions.json → regions.js} +2 -2
  19. package/src/web/components/form/switch/index.jsx +1 -0
  20. package/src/web/components/form/uploader/uploader.h5.jsx +42 -16
  21. package/src/web/components/form/uploader/uploader.pc.jsx +1 -1
  22. package/src/web/components/image/image.jsx +0 -1
  23. package/src/web/components/index.js +0 -1
  24. package/src/configs/components/markdown.json +0 -17
  25. package/src/mp/components/markdown/index.js +0 -27
  26. package/src/mp/components/markdown/index.json +0 -6
  27. package/src/mp/components/markdown/index.wxml +0 -1
  28. package/src/mp/components/markdown/towxml/audio-player/Audio.js +0 -99
  29. package/src/mp/components/markdown/towxml/audio-player/audio-player.js +0 -102
  30. package/src/mp/components/markdown/towxml/audio-player/audio-player.json +0 -5
  31. package/src/mp/components/markdown/towxml/audio-player/audio-player.wxml +0 -14
  32. package/src/mp/components/markdown/towxml/audio-player/audio-player.wxss +0 -175
  33. package/src/mp/components/markdown/towxml/audio-player/loading.svg +0 -1
  34. package/src/mp/components/markdown/towxml/config.js +0 -285
  35. package/src/mp/components/markdown/towxml/decode.js +0 -26
  36. package/src/mp/components/markdown/towxml/decode.json +0 -12
  37. package/src/mp/components/markdown/towxml/decode.wxml +0 -1
  38. package/src/mp/components/markdown/towxml/decode.wxss +0 -0
  39. package/src/mp/components/markdown/towxml/img/img.js +0 -98
  40. package/src/mp/components/markdown/towxml/img/img.json +0 -3
  41. package/src/mp/components/markdown/towxml/img/img.wxml +0 -1
  42. package/src/mp/components/markdown/towxml/img/img.wxss +0 -0
  43. package/src/mp/components/markdown/towxml/index.js +0 -19
  44. package/src/mp/components/markdown/towxml/latex/latex.js +0 -53
  45. package/src/mp/components/markdown/towxml/latex/latex.json +0 -5
  46. package/src/mp/components/markdown/towxml/latex/latex.wxml +0 -1
  47. package/src/mp/components/markdown/towxml/latex/latex.wxss +0 -0
  48. package/src/mp/components/markdown/towxml/parse/highlight/highlight.js +0 -729
  49. package/src/mp/components/markdown/towxml/parse/highlight/index.js +0 -7
  50. package/src/mp/components/markdown/towxml/parse/highlight/languages/bash.js +0 -91
  51. package/src/mp/components/markdown/towxml/parse/highlight/languages/c-like.js +0 -244
  52. package/src/mp/components/markdown/towxml/parse/highlight/languages/c.js +0 -20
  53. package/src/mp/components/markdown/towxml/parse/highlight/languages/css.js +0 -138
  54. package/src/mp/components/markdown/towxml/parse/highlight/languages/dart.js +0 -135
  55. package/src/mp/components/markdown/towxml/parse/highlight/languages/go.js +0 -57
  56. package/src/mp/components/markdown/towxml/parse/highlight/languages/htmlbars.js +0 -79
  57. package/src/mp/components/markdown/towxml/parse/highlight/languages/java.js +0 -126
  58. package/src/mp/components/markdown/towxml/parse/highlight/languages/javascript.js +0 -263
  59. package/src/mp/components/markdown/towxml/parse/highlight/languages/json.js +0 -51
  60. package/src/mp/components/markdown/towxml/parse/highlight/languages/less.js +0 -177
  61. package/src/mp/components/markdown/towxml/parse/highlight/languages/nginx.js +0 -103
  62. package/src/mp/components/markdown/towxml/parse/highlight/languages/php.js +0 -152
  63. package/src/mp/components/markdown/towxml/parse/highlight/languages/python-repl.js +0 -27
  64. package/src/mp/components/markdown/towxml/parse/highlight/languages/python.js +0 -146
  65. package/src/mp/components/markdown/towxml/parse/highlight/languages/scss.js +0 -137
  66. package/src/mp/components/markdown/towxml/parse/highlight/languages/shell.js +0 -23
  67. package/src/mp/components/markdown/towxml/parse/highlight/languages/typescript.js +0 -198
  68. package/src/mp/components/markdown/towxml/parse/highlight/languages/xml.js +0 -143
  69. package/src/mp/components/markdown/towxml/parse/highlight/style/github.wxss +0 -99
  70. package/src/mp/components/markdown/towxml/parse/highlight/style/monokai.wxss +0 -70
  71. package/src/mp/components/markdown/towxml/parse/index.js +0 -106
  72. package/src/mp/components/markdown/towxml/parse/markdown/index.js +0 -53
  73. package/src/mp/components/markdown/towxml/parse/markdown/markdown.js +0 -5834
  74. package/src/mp/components/markdown/towxml/parse/markdown/plugins/emoji.js +0 -1773
  75. package/src/mp/components/markdown/towxml/parse/markdown/plugins/ins.js +0 -120
  76. package/src/mp/components/markdown/towxml/parse/markdown/plugins/latex.js +0 -193
  77. package/src/mp/components/markdown/towxml/parse/markdown/plugins/mark.js +0 -120
  78. package/src/mp/components/markdown/towxml/parse/markdown/plugins/sub.js +0 -95
  79. package/src/mp/components/markdown/towxml/parse/markdown/plugins/sup.js +0 -95
  80. package/src/mp/components/markdown/towxml/parse/markdown/plugins/todo.js +0 -220
  81. package/src/mp/components/markdown/towxml/parse/markdown/plugins/yuml.js +0 -18
  82. package/src/mp/components/markdown/towxml/parse/parse2/Parser.js +0 -263
  83. package/src/mp/components/markdown/towxml/parse/parse2/Tokenizer.js +0 -507
  84. package/src/mp/components/markdown/towxml/parse/parse2/domhandler/index.js +0 -104
  85. package/src/mp/components/markdown/towxml/parse/parse2/domhandler/node.js +0 -169
  86. package/src/mp/components/markdown/towxml/parse/parse2/entities/decode.js +0 -54
  87. package/src/mp/components/markdown/towxml/parse/parse2/entities/decode_codepoint.js +0 -19
  88. package/src/mp/components/markdown/towxml/parse/parse2/entities/encode.js +0 -54
  89. package/src/mp/components/markdown/towxml/parse/parse2/entities/index.js +0 -30
  90. package/src/mp/components/markdown/towxml/parse/parse2/entities/maps/decode.js +0 -31
  91. package/src/mp/components/markdown/towxml/parse/parse2/entities/maps/entities.js +0 -2128
  92. package/src/mp/components/markdown/towxml/parse/parse2/entities/maps/legacy.js +0 -109
  93. package/src/mp/components/markdown/towxml/parse/parse2/entities/maps/xml.js +0 -2
  94. package/src/mp/components/markdown/towxml/parse/parse2/index.js +0 -8
  95. package/src/mp/components/markdown/towxml/style/main.wxss +0 -378
  96. package/src/mp/components/markdown/towxml/style/theme/dark.wxss +0 -73
  97. package/src/mp/components/markdown/towxml/style/theme/light.wxss +0 -63
  98. package/src/mp/components/markdown/towxml/table/table.js +0 -11
  99. package/src/mp/components/markdown/towxml/table/table.json +0 -6
  100. package/src/mp/components/markdown/towxml/table/table.wxml +0 -24
  101. package/src/mp/components/markdown/towxml/table/table.wxss +0 -0
  102. package/src/mp/components/markdown/towxml/todogroup/todogroup.js +0 -19
  103. package/src/mp/components/markdown/towxml/todogroup/todogroup.json +0 -6
  104. package/src/mp/components/markdown/towxml/todogroup/todogroup.wxml +0 -13
  105. package/src/mp/components/markdown/towxml/todogroup/todogroup.wxss +0 -3
  106. package/src/mp/components/markdown/towxml/towxml.js +0 -17
  107. package/src/mp/components/markdown/towxml/towxml.json +0 -6
  108. package/src/mp/components/markdown/towxml/towxml.wxml +0 -5
  109. package/src/mp/components/markdown/towxml/towxml.wxss +0 -8
  110. package/src/mp/components/markdown/towxml/yuml/yuml.js +0 -51
  111. package/src/mp/components/markdown/towxml/yuml/yuml.json +0 -5
  112. package/src/mp/components/markdown/towxml/yuml/yuml.wxml +0 -5
  113. package/src/mp/components/markdown/towxml/yuml/yuml.wxss +0 -0
  114. package/src/web/components/markdown/index.jsx +0 -40
@@ -1,169 +0,0 @@
1
- /* ! Project:无, Create:FWS 2020.01.08 21:48, Update:FWS 2020.01.08 21:48 */
2
- 'use strict';
3
- const __extends =
4
- (this && this.__extends) ||
5
- (function () {
6
- var e = function (t, n) {
7
- return (e =
8
- Object.setPrototypeOf ||
9
- ({ __proto__: [] } instanceof Array &&
10
- function (e, t) {
11
- e.__proto__ = t;
12
- }) ||
13
- function (e, t) {
14
- for (const n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
15
- })(t, n);
16
- };
17
- return function (t, n) {
18
- function r() {
19
- this.constructor = t;
20
- }
21
- e(t, n), (t.prototype = null === n ? Object.create(n) : ((r.prototype = n.prototype), new r()));
22
- };
23
- })();
24
- Object.defineProperty(exports, '__esModule', { value: !0 });
25
- const nodeTypes = new Map([
26
- ['tag', 1],
27
- ['script', 1],
28
- ['style', 1],
29
- ['directive', 1],
30
- ['text', 3],
31
- ['cdata', 4],
32
- ['comment', 8],
33
- ]);
34
- const Node = (function () {
35
- function e(e) {
36
- (this.type = e),
37
- (this.parent = null),
38
- (this.prev = null),
39
- (this.next = null),
40
- (this.startIndex = null),
41
- (this.endIndex = null);
42
- }
43
- return (
44
- Object.defineProperty(e.prototype, 'nodeType', {
45
- get() {
46
- return nodeTypes.get(this.type) || 1;
47
- },
48
- enumerable: !0,
49
- configurable: !0,
50
- }),
51
- Object.defineProperty(e.prototype, 'parentNode', {
52
- get() {
53
- return this.parent || null;
54
- },
55
- set(e) {
56
- this.parent = e;
57
- },
58
- enumerable: !0,
59
- configurable: !0,
60
- }),
61
- Object.defineProperty(e.prototype, 'previousSibling', {
62
- get() {
63
- return this.prev || null;
64
- },
65
- set(e) {
66
- this.prev = e;
67
- },
68
- enumerable: !0,
69
- configurable: !0,
70
- }),
71
- Object.defineProperty(e.prototype, 'nextSibling', {
72
- get() {
73
- return this.next || null;
74
- },
75
- set(e) {
76
- this.next = e;
77
- },
78
- enumerable: !0,
79
- configurable: !0,
80
- }),
81
- e
82
- );
83
- })();
84
- exports.Node = Node;
85
- const DataNode = (function (e) {
86
- function t(t, n) {
87
- const r = e.call(this, t) || this;
88
- return (r.data = n), r;
89
- }
90
- return (
91
- __extends(t, e),
92
- Object.defineProperty(t.prototype, 'nodeValue', {
93
- get() {
94
- return this.data;
95
- },
96
- set(e) {
97
- this.data = e;
98
- },
99
- enumerable: !0,
100
- configurable: !0,
101
- }),
102
- t
103
- );
104
- })(Node);
105
- exports.DataNode = DataNode;
106
- const ProcessingInstruction = (function (e) {
107
- function t(t, n) {
108
- const r = e.call(this, 'directive', n) || this;
109
- return (r.name = t), r;
110
- }
111
- return __extends(t, e), t;
112
- })(DataNode);
113
- exports.ProcessingInstruction = ProcessingInstruction;
114
- const NodeWithChildren = (function (e) {
115
- function t(t, n) {
116
- const r = e.call(this, t) || this;
117
- return (r.children = n), r;
118
- }
119
- return (
120
- __extends(t, e),
121
- Object.defineProperty(t.prototype, 'firstChild', {
122
- get() {
123
- return this.children[0] || null;
124
- },
125
- enumerable: !0,
126
- configurable: !0,
127
- }),
128
- Object.defineProperty(t.prototype, 'lastChild', {
129
- get() {
130
- return this.children[this.children.length - 1] || null;
131
- },
132
- enumerable: !0,
133
- configurable: !0,
134
- }),
135
- Object.defineProperty(t.prototype, 'childNodes', {
136
- get() {
137
- return this.children;
138
- },
139
- set(e) {
140
- this.children = e;
141
- },
142
- enumerable: !0,
143
- configurable: !0,
144
- }),
145
- t
146
- );
147
- })(Node);
148
- exports.NodeWithChildren = NodeWithChildren;
149
- const Element = (function (e) {
150
- function t(t, n) {
151
- const r = e.call(this, 'script' === t ? 'script' : 'style' === t ? 'style' : 'tag', []) || this;
152
- return (r.name = t), (r.attribs = n), (r.attribs = n), r;
153
- }
154
- return (
155
- __extends(t, e),
156
- Object.defineProperty(t.prototype, 'tagName', {
157
- get() {
158
- return this.name;
159
- },
160
- set(e) {
161
- this.name = e;
162
- },
163
- enumerable: !0,
164
- configurable: !0,
165
- }),
166
- t
167
- );
168
- })(NodeWithChildren);
169
- exports.Element = Element;
@@ -1,54 +0,0 @@
1
- /* ! Project:无, Create:FWS 2020.01.08 21:48, Update:FWS 2020.01.08 21:48 */
2
- 'use strict';
3
- function getStrictDecoder(e) {
4
- let t = Object.keys(e).join('|');
5
- const r = getReplacer(e);
6
- t += '|#[xX][\\da-fA-F]+|#\\d+';
7
- const o = new RegExp(`&(?:${t});`, 'g');
8
- return function (e) {
9
- return String(e).replace(o, r);
10
- };
11
- }
12
- function getReplacer(e) {
13
- return function (t) {
14
- return '#' === t.charAt(1)
15
- ? 'X' === t.charAt(2) || 'x' === t.charAt(2)
16
- ? decode_codepoint_1.default(parseInt(t.substr(3), 16))
17
- : decode_codepoint_1.default(parseInt(t.substr(2), 10))
18
- : e[t.slice(1, -1)];
19
- };
20
- }
21
- const __importDefault =
22
- (this && this.__importDefault) ||
23
- function (e) {
24
- return e && e.__esModule ? e : { default: e };
25
- };
26
- Object.defineProperty(exports, '__esModule', { value: !0 });
27
- const entities_json_1 = __importDefault(require('./maps/entities.json'));
28
- const legacy_json_1 = __importDefault(require('./maps/legacy.json'));
29
- const xml_json_1 = __importDefault(require('./maps/xml.json'));
30
- var decode_codepoint_1 = __importDefault(require('./decode_codepoint'));
31
- (exports.decodeXML = getStrictDecoder(xml_json_1.default)),
32
- (exports.decodeHTMLStrict = getStrictDecoder(entities_json_1.default));
33
- const sorter = function (e, t) {
34
- return e < t ? 1 : -1;
35
- };
36
- exports.decodeHTML = (function () {
37
- function e(e) {
38
- return ';' !== e.substr(-1) && (e += ';'), s(e);
39
- }
40
- for (
41
- var t = Object.keys(legacy_json_1.default).sort(sorter),
42
- r = Object.keys(entities_json_1.default).sort(sorter),
43
- o = 0,
44
- n = 0;
45
- o < r.length;
46
- o++
47
- )
48
- t[n] === r[o] ? ((r[o] += ';?'), n++) : (r[o] += ';');
49
- const i = new RegExp(`&(?:${r.join('|')}|#[xX][\\da-fA-F]+;?|#\\d+;?)`, 'g');
50
- var s = getReplacer(entities_json_1.default);
51
- return function (t) {
52
- return String(t).replace(i, e);
53
- };
54
- })();
@@ -1,19 +0,0 @@
1
- /* ! Project:无, Create:FWS 2020.01.08 21:48, Update:FWS 2020.01.08 21:48 */
2
- 'use strict';
3
- function decodeCodePoint(e) {
4
- if ((e >= 55296 && e <= 57343) || e > 1114111) return '�';
5
- e in decode_json_1.default && (e = decode_json_1.default[e]);
6
- let o = '';
7
- return (
8
- e > 65535 && ((e -= 65536), (o += String.fromCharCode(((e >>> 10) & 1023) | 55296)), (e = 56320 | (1023 & e))),
9
- (o += String.fromCharCode(e))
10
- );
11
- }
12
- const __importDefault =
13
- (this && this.__importDefault) ||
14
- function (e) {
15
- return e && e.__esModule ? e : { default: e };
16
- };
17
- Object.defineProperty(exports, '__esModule', { value: !0 });
18
- var decode_json_1 = __importDefault(require('./maps/decode'));
19
- exports.default = decodeCodePoint;
@@ -1,54 +0,0 @@
1
- /* ! Project:无, Create:FWS 2020.01.08 21:48, Update:FWS 2020.01.08 21:48 */
2
- 'use strict';
3
- function getInverseObj(e) {
4
- return Object.keys(e)
5
- .sort()
6
- .reduce((r, t) => ((r[e[t]] = `&${t};`), r), {});
7
- }
8
- function getInverseReplacer(e) {
9
- const r = [];
10
- const t = [];
11
- return (
12
- Object.keys(e).forEach((e) => (1 === e.length ? r.push(`\\${e}`) : t.push(e))),
13
- t.unshift(`[${r.join('')}]`),
14
- new RegExp(t.join('|'), 'g')
15
- );
16
- }
17
- function singleCharReplacer(e) {
18
- return `&#x${e.charCodeAt(0).toString(16).toUpperCase()};`;
19
- }
20
- function astralReplacer(e, r) {
21
- return `&#x${(1024 * (e.charCodeAt(0) - 55296) + e.charCodeAt(1) - 56320 + 65536).toString(16).toUpperCase()};`;
22
- }
23
- function getInverse(e, r) {
24
- return function (t) {
25
- return t
26
- .replace(r, (r) => e[r])
27
- .replace(reAstralSymbols, astralReplacer)
28
- .replace(reNonASCII, singleCharReplacer);
29
- };
30
- }
31
- function escape(e) {
32
- return e
33
- .replace(reXmlChars, singleCharReplacer)
34
- .replace(reAstralSymbols, astralReplacer)
35
- .replace(reNonASCII, singleCharReplacer);
36
- }
37
- const __importDefault =
38
- (this && this.__importDefault) ||
39
- function (e) {
40
- return e && e.__esModule ? e : { default: e };
41
- };
42
- Object.defineProperty(exports, '__esModule', { value: !0 });
43
- const xml_json_1 = __importDefault(require('./maps/xml.json'));
44
- const inverseXML = getInverseObj(xml_json_1.default);
45
- const xmlReplacer = getInverseReplacer(inverseXML);
46
- exports.encodeXML = getInverse(inverseXML, xmlReplacer);
47
- const entities_json_1 = __importDefault(require('./maps/entities.json'));
48
- const inverseHTML = getInverseObj(entities_json_1.default);
49
- const htmlReplacer = getInverseReplacer(inverseHTML);
50
- exports.encodeHTML = getInverse(inverseHTML, htmlReplacer);
51
- var reNonASCII = /[^\0-\x7F]/g;
52
- var reAstralSymbols = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
53
- var reXmlChars = getInverseReplacer(inverseXML);
54
- exports.escape = escape;
@@ -1,30 +0,0 @@
1
- /* ! Project:无, Create:FWS 2020.01.08 21:48, Update:FWS 2020.01.08 21:48 */
2
- 'use strict';
3
- function decode(e, d) {
4
- return (!d || d <= 0 ? decode_1.decodeXML : decode_1.decodeHTML)(e);
5
- }
6
- function decodeStrict(e, d) {
7
- return (!d || d <= 0 ? decode_1.decodeXML : decode_1.decodeHTMLStrict)(e);
8
- }
9
- function encode(e, d) {
10
- return (!d || d <= 0 ? encode_1.encodeXML : encode_1.encodeHTML)(e);
11
- }
12
- Object.defineProperty(exports, '__esModule', { value: !0 });
13
- var decode_1 = require('./decode');
14
- var encode_1 = require('./encode');
15
- (exports.decode = decode), (exports.decodeStrict = decodeStrict), (exports.encode = encode);
16
- const encode_2 = require('./encode');
17
- (exports.encodeXML = encode_2.encodeXML),
18
- (exports.encodeHTML = encode_2.encodeHTML),
19
- (exports.escape = encode_2.escape),
20
- (exports.encodeHTML4 = encode_2.encodeHTML),
21
- (exports.encodeHTML5 = encode_2.encodeHTML);
22
- const decode_2 = require('./decode');
23
- (exports.decodeXML = decode_2.decodeXML),
24
- (exports.decodeHTML = decode_2.decodeHTML),
25
- (exports.decodeHTMLStrict = decode_2.decodeHTMLStrict),
26
- (exports.decodeHTML4 = decode_2.decodeHTML),
27
- (exports.decodeHTML5 = decode_2.decodeHTML),
28
- (exports.decodeHTML4Strict = decode_2.decodeHTMLStrict),
29
- (exports.decodeHTML5Strict = decode_2.decodeHTMLStrict),
30
- (exports.decodeXMLStrict = decode_2.decodeXML);
@@ -1,31 +0,0 @@
1
- /* ! Project:无, Create:FWS 2020.01.08 21:48, Update:FWS 2020.01.08 21:48 */
2
- module.exports = {
3
- 0: 65533,
4
- 128: 8364,
5
- 130: 8218,
6
- 131: 402,
7
- 132: 8222,
8
- 133: 8230,
9
- 134: 8224,
10
- 135: 8225,
11
- 136: 710,
12
- 137: 8240,
13
- 138: 352,
14
- 139: 8249,
15
- 140: 338,
16
- 142: 381,
17
- 145: 8216,
18
- 146: 8217,
19
- 147: 8220,
20
- 148: 8221,
21
- 149: 8226,
22
- 150: 8211,
23
- 151: 8212,
24
- 152: 732,
25
- 153: 8482,
26
- 154: 353,
27
- 155: 8250,
28
- 156: 339,
29
- 158: 382,
30
- 159: 376,
31
- };