@lark-apaas/miaoda-inspector 0.1.0-alpha.1 → 0.1.0-alpha.2
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.
- package/dist/es/Inspector/{Inspector.js → Inspector.mjs} +50 -55
- package/dist/es/Inspector/{Overlay.js → Overlay.mjs} +157 -125
- package/dist/es/Inspector/hooks/use-effect-event.mjs +17 -0
- package/dist/es/Inspector/hooks/use-layout-effect.mjs +9 -0
- package/dist/es/Inspector/hooks/{use-mouse.js → use-mouse.mjs} +8 -4
- package/dist/es/Inspector/index.mjs +5 -0
- package/dist/es/Inspector/utils/fiber.mjs +70 -0
- package/dist/es/Inspector/utils/highlight.mjs +78 -0
- package/dist/es/Inspector/utils/inspect.mjs +131 -0
- package/dist/es/Inspector/utils/{overlay.js → overlay.mjs} +7 -2
- package/dist/es/MiaodaInspector/MiaodaInspector.mjs +427 -0
- package/dist/es/MiaodaInspector/index.mjs +5 -0
- package/dist/es/chunk-I4E63NIC.mjs +24 -0
- package/dist/es/config/{ui-config.js → ui-config.mjs} +66 -286
- package/dist/es/global.d.mjs +0 -0
- package/dist/es/index.mjs +7 -0
- package/dist/es/types/iframe-events.mjs +0 -0
- package/dist/es/types/index.mjs +27 -0
- package/dist/es/utils/{config-mapper.js → config-mapper.mjs} +14 -56
- package/dist/es/utils/{css.js → css.mjs} +5 -1
- package/dist/es/utils/index.mjs +37 -0
- package/dist/es/utils/origin.mjs +26 -0
- package/dist/es/utils/style-calculator.mjs +177 -0
- package/dist/lib/Inspector/Inspector.js +99 -104
- package/dist/lib/Inspector/Overlay.js +172 -143
- package/dist/lib/Inspector/hooks/index.js +19 -19
- package/dist/lib/Inspector/hooks/use-effect-event.js +26 -15
- package/dist/lib/Inspector/hooks/use-layout-effect.js +25 -10
- package/dist/lib/Inspector/hooks/use-mouse.js +27 -14
- package/dist/lib/Inspector/index.js +21 -8
- package/dist/lib/Inspector/utils/fiber.js +49 -55
- package/dist/lib/Inspector/utils/highlight.js +44 -31
- package/dist/lib/Inspector/utils/index.js +19 -19
- package/dist/lib/Inspector/utils/inspect.js +62 -72
- package/dist/lib/Inspector/utils/overlay.js +20 -15
- package/dist/lib/MiaodaInspector/MiaodaInspector.js +265 -266
- package/dist/lib/MiaodaInspector/index.js +21 -8
- package/dist/lib/config/ui-config.js +81 -292
- package/dist/lib/global.d.js +1 -0
- package/dist/lib/index.js +22 -17
- package/dist/lib/types/iframe-events.js +15 -3
- package/dist/lib/types/index.js +30 -43
- package/dist/lib/utils/config-mapper.js +41 -69
- package/dist/lib/utils/css.js +33 -15
- package/dist/lib/utils/index.js +36 -57
- package/dist/lib/utils/origin.js +23 -22
- package/dist/lib/utils/style-calculator.js +113 -110
- package/dist/types/Inspector/Inspector.d.ts +95 -92
- package/dist/types/Inspector/Overlay.d.ts +61 -58
- package/dist/types/Inspector/hooks/index.d.ts +4 -3
- package/dist/types/Inspector/hooks/use-effect-event.d.ts +3 -1
- package/dist/types/Inspector/hooks/use-layout-effect.d.ts +5 -2
- package/dist/types/Inspector/hooks/use-mouse.d.ts +9 -8
- package/dist/types/Inspector/index.d.ts +4 -1
- package/dist/types/Inspector/utils/fiber.d.ts +12 -10
- package/dist/types/Inspector/utils/highlight.d.ts +7 -5
- package/dist/types/Inspector/utils/index.d.ts +4 -3
- package/dist/types/Inspector/utils/inspect.d.ts +45 -42
- package/dist/types/Inspector/utils/overlay.d.ts +24 -22
- package/dist/types/MiaodaInspector/MiaodaInspector.d.ts +42 -41
- package/dist/types/MiaodaInspector/index.d.ts +3 -1
- package/dist/types/config/ui-config.d.ts +42 -41
- package/dist/types/global.d.d.ts +17 -0
- package/dist/types/index.d.ts +5 -4
- package/dist/types/types/iframe-events.d.ts +133 -130
- package/dist/types/types/index.d.ts +2 -1
- package/dist/types/utils/config-mapper.d.ts +14 -11
- package/dist/types/utils/css.d.ts +5 -2
- package/dist/types/utils/index.d.ts +7 -3
- package/dist/types/utils/origin.d.ts +12 -8
- package/dist/types/utils/style-calculator.d.ts +20 -17
- package/package.json +13 -13
- package/dist/es/Inspector/hooks/use-effect-event.js +0 -15
- package/dist/es/Inspector/hooks/use-layout-effect.js +0 -3
- package/dist/es/Inspector/index.js +0 -1
- package/dist/es/Inspector/utils/fiber.js +0 -61
- package/dist/es/Inspector/utils/highlight.js +0 -74
- package/dist/es/Inspector/utils/inspect.js +0 -119
- package/dist/es/MiaodaInspector/MiaodaInspector.js +0 -397
- package/dist/es/MiaodaInspector/index.js +0 -1
- package/dist/es/index.js +0 -2
- package/dist/es/types/iframe-events.js +0 -1
- package/dist/es/types/index.js +0 -1
- package/dist/es/utils/index.js +0 -3
- package/dist/es/utils/origin.js +0 -19
- package/dist/es/utils/style-calculator.js +0 -158
- /package/dist/es/Inspector/hooks/{index.js → index.mjs} +0 -0
- /package/dist/es/Inspector/utils/{index.js → index.mjs} +0 -0
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
15
|
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var MiaodaInspector_exports = {};
|
|
20
|
+
__export(MiaodaInspector_exports, {
|
|
21
|
+
MiaodaInspector: () => import_MiaodaInspector.MiaodaInspector
|
|
10
22
|
});
|
|
11
|
-
|
|
23
|
+
module.exports = __toCommonJS(MiaodaInspector_exports);
|
|
24
|
+
var import_MiaodaInspector = require("./MiaodaInspector");
|
|
@@ -1,349 +1,138 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
9
15
|
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var ui_config_exports = {};
|
|
20
|
+
__export(ui_config_exports, {
|
|
21
|
+
defaultUIConfig: () => defaultUIConfig
|
|
10
22
|
});
|
|
23
|
+
module.exports = __toCommonJS(ui_config_exports);
|
|
11
24
|
const defaultUIConfig = {
|
|
12
25
|
version: "1.0.0",
|
|
13
26
|
common: {
|
|
14
27
|
fontSize: {
|
|
15
28
|
type: "select",
|
|
16
29
|
options: [
|
|
17
|
-
{
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
rawValue: "16"
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
value: "text-lg",
|
|
34
|
-
label: "lg(18px)",
|
|
35
|
-
rawValue: "18"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
value: "text-xl",
|
|
39
|
-
label: "xl(20px)",
|
|
40
|
-
rawValue: "20"
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
value: "text-2xl",
|
|
44
|
-
label: "2xl(24px)",
|
|
45
|
-
rawValue: "24"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
value: "text-3xl",
|
|
49
|
-
label: "3xl(30px)",
|
|
50
|
-
rawValue: "30"
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
value: "text-4xl",
|
|
54
|
-
label: "4xl(36px)",
|
|
55
|
-
rawValue: "36"
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
value: "text-5xl",
|
|
59
|
-
label: "5xl(48px)",
|
|
60
|
-
rawValue: "48"
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
value: "text-6xl",
|
|
64
|
-
label: "6xl(60px)",
|
|
65
|
-
rawValue: "60"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
value: "text-7xl",
|
|
69
|
-
label: "7xl(72px)",
|
|
70
|
-
rawValue: "72"
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
value: "text-8xl",
|
|
74
|
-
label: "8xl(96px)",
|
|
75
|
-
rawValue: "96"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
value: "text-9xl",
|
|
79
|
-
label: "9xl(128px)",
|
|
80
|
-
rawValue: "128"
|
|
81
|
-
}
|
|
30
|
+
{ value: "text-xs", label: "xs(12px)", rawValue: "12" },
|
|
31
|
+
{ value: "text-sm", label: "sm(14px)", rawValue: "14" },
|
|
32
|
+
{ value: "text-base", label: "base(16px)", rawValue: "16" },
|
|
33
|
+
{ value: "text-lg", label: "lg(18px)", rawValue: "18" },
|
|
34
|
+
{ value: "text-xl", label: "xl(20px)", rawValue: "20" },
|
|
35
|
+
{ value: "text-2xl", label: "2xl(24px)", rawValue: "24" },
|
|
36
|
+
{ value: "text-3xl", label: "3xl(30px)", rawValue: "30" },
|
|
37
|
+
{ value: "text-4xl", label: "4xl(36px)", rawValue: "36" },
|
|
38
|
+
{ value: "text-5xl", label: "5xl(48px)", rawValue: "48" },
|
|
39
|
+
{ value: "text-6xl", label: "6xl(60px)", rawValue: "60" },
|
|
40
|
+
{ value: "text-7xl", label: "7xl(72px)", rawValue: "72" },
|
|
41
|
+
{ value: "text-8xl", label: "8xl(96px)", rawValue: "96" },
|
|
42
|
+
{ value: "text-9xl", label: "9xl(128px)", rawValue: "128" }
|
|
82
43
|
]
|
|
83
44
|
},
|
|
84
45
|
fontWeight: {
|
|
85
46
|
type: "select",
|
|
86
47
|
options: [
|
|
87
|
-
{
|
|
88
|
-
value: "font-thin",
|
|
89
|
-
label: "极细(Thin)",
|
|
90
|
-
rawValue: "100"
|
|
91
|
-
},
|
|
48
|
+
{ value: "font-thin", label: "\u6781\u7EC6\uFF08Thin\uFF09", rawValue: "100" },
|
|
92
49
|
{
|
|
93
50
|
value: "font-extralight",
|
|
94
|
-
label: "
|
|
51
|
+
label: "\u6781\u8F7B\uFF08Extra Light\uFF09",
|
|
95
52
|
rawValue: "200"
|
|
96
53
|
},
|
|
97
|
-
{
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
value: "font-normal",
|
|
104
|
-
label: "常规(Normal)",
|
|
105
|
-
rawValue: "400"
|
|
106
|
-
},
|
|
107
|
-
{
|
|
108
|
-
value: "font-medium",
|
|
109
|
-
label: "中粗(Medium)",
|
|
110
|
-
rawValue: "500"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
value: "font-semibold",
|
|
114
|
-
label: "半粗(Semi Bold)",
|
|
115
|
-
rawValue: "600"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
value: "font-bold",
|
|
119
|
-
label: "粗(Bold)",
|
|
120
|
-
rawValue: "700"
|
|
121
|
-
},
|
|
54
|
+
{ value: "font-light", label: "\u8F7B\uFF08Light\uFF09", rawValue: "300" },
|
|
55
|
+
{ value: "font-normal", label: "\u5E38\u89C4\uFF08Normal\uFF09", rawValue: "400" },
|
|
56
|
+
{ value: "font-medium", label: "\u4E2D\u7C97\uFF08Medium\uFF09", rawValue: "500" },
|
|
57
|
+
{ value: "font-semibold", label: "\u534A\u7C97\uFF08Semi Bold\uFF09", rawValue: "600" },
|
|
58
|
+
{ value: "font-bold", label: "\u7C97\uFF08Bold\uFF09", rawValue: "700" },
|
|
122
59
|
{
|
|
123
60
|
value: "font-extrabold",
|
|
124
|
-
label: "
|
|
61
|
+
label: "\u6781\u7C97\uFF08Extra Bold\uFF09",
|
|
125
62
|
rawValue: "800"
|
|
126
63
|
},
|
|
127
|
-
{
|
|
128
|
-
value: "font-black",
|
|
129
|
-
label: "黑体(Black)",
|
|
130
|
-
rawValue: "900"
|
|
131
|
-
}
|
|
64
|
+
{ value: "font-black", label: "\u9ED1\u4F53\uFF08Black\uFF09", rawValue: "900" }
|
|
132
65
|
]
|
|
133
66
|
},
|
|
134
67
|
borderRadius: {
|
|
135
68
|
type: "select",
|
|
136
69
|
options: [
|
|
137
|
-
{
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
value: "rounded-sm",
|
|
144
|
-
label: "sm (2px)",
|
|
145
|
-
rawValue: "2"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
value: "rounded",
|
|
149
|
-
label: "s (4px)",
|
|
150
|
-
rawValue: "4"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
value: "rounded-md",
|
|
154
|
-
label: "m (6px)",
|
|
155
|
-
rawValue: "6"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
value: "rounded-lg",
|
|
159
|
-
label: "l (8px)",
|
|
160
|
-
rawValue: "8"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
value: "rounded-xl",
|
|
164
|
-
label: "xl (12px)",
|
|
165
|
-
rawValue: "12"
|
|
166
|
-
},
|
|
70
|
+
{ value: "rounded-none", label: "none\uFF080px\uFF09", rawValue: "0" },
|
|
71
|
+
{ value: "rounded-sm", label: "sm (2px)", rawValue: "2" },
|
|
72
|
+
{ value: "rounded", label: "s (4px)", rawValue: "4" },
|
|
73
|
+
{ value: "rounded-md", label: "m (6px)", rawValue: "6" },
|
|
74
|
+
{ value: "rounded-lg", label: "l (8px)", rawValue: "8" },
|
|
75
|
+
{ value: "rounded-xl", label: "xl (12px)", rawValue: "12" },
|
|
167
76
|
// TODO:为啥都没了?
|
|
168
77
|
// { value: 'rounded-2xl', label: translate('2xl (16px)') },
|
|
169
78
|
// { value: 'rounded-3xl', label: translate('3xl (24px)') },
|
|
170
|
-
{
|
|
171
|
-
value: "rounded-full",
|
|
172
|
-
label: "Full",
|
|
173
|
-
rawValue: "9999"
|
|
174
|
-
}
|
|
79
|
+
{ value: "rounded-full", label: "Full", rawValue: "9999" }
|
|
175
80
|
]
|
|
176
81
|
},
|
|
177
82
|
borderWidth: {
|
|
178
83
|
type: "select",
|
|
179
84
|
options: [
|
|
180
|
-
{
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
}
|
|
185
|
-
{
|
|
186
|
-
value: "border",
|
|
187
|
-
label: "1px",
|
|
188
|
-
rawValue: "1"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
value: "border-2",
|
|
192
|
-
label: "2px",
|
|
193
|
-
rawValue: "2"
|
|
194
|
-
},
|
|
195
|
-
{
|
|
196
|
-
value: "border-4",
|
|
197
|
-
label: "4px",
|
|
198
|
-
rawValue: "4"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
value: "border-8",
|
|
202
|
-
label: "8px",
|
|
203
|
-
rawValue: "8"
|
|
204
|
-
}
|
|
85
|
+
{ value: "border-0", label: "0px", rawValue: "0" },
|
|
86
|
+
{ value: "border", label: "1px", rawValue: "1" },
|
|
87
|
+
{ value: "border-2", label: "2px", rawValue: "2" },
|
|
88
|
+
{ value: "border-4", label: "4px", rawValue: "4" },
|
|
89
|
+
{ value: "border-8", label: "8px", rawValue: "8" }
|
|
205
90
|
]
|
|
206
91
|
},
|
|
207
92
|
textAlign: {
|
|
208
93
|
type: "select",
|
|
209
94
|
options: [
|
|
210
|
-
{
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
value: "text-center",
|
|
217
|
-
label: "Center",
|
|
218
|
-
rawValue: "center"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
value: "text-right",
|
|
222
|
-
label: "Right",
|
|
223
|
-
rawValue: "right"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
value: "text-justify",
|
|
227
|
-
label: "Justify",
|
|
228
|
-
rawValue: "justify"
|
|
229
|
-
}
|
|
95
|
+
{ value: "text-left", label: "Left", rawValue: "left" },
|
|
96
|
+
{ value: "text-center", label: "Center", rawValue: "center" },
|
|
97
|
+
{ value: "text-right", label: "Right", rawValue: "right" },
|
|
98
|
+
{ value: "text-justify", label: "Justify", rawValue: "justify" }
|
|
230
99
|
]
|
|
231
100
|
},
|
|
232
101
|
padding: {
|
|
233
102
|
type: "spacing",
|
|
234
103
|
options: [
|
|
235
|
-
{
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
}
|
|
245
|
-
{
|
|
246
|
-
label: "8",
|
|
247
|
-
value: "8",
|
|
248
|
-
rawValue: "8"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
label: "12",
|
|
252
|
-
value: "12",
|
|
253
|
-
rawValue: "12"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
label: "16",
|
|
257
|
-
value: "16",
|
|
258
|
-
rawValue: "16"
|
|
259
|
-
},
|
|
260
|
-
{
|
|
261
|
-
label: "20",
|
|
262
|
-
value: "20",
|
|
263
|
-
rawValue: "20"
|
|
264
|
-
},
|
|
265
|
-
{
|
|
266
|
-
label: "24",
|
|
267
|
-
value: "24",
|
|
268
|
-
rawValue: "24"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
label: "32",
|
|
272
|
-
value: "32",
|
|
273
|
-
rawValue: "32"
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
label: "36",
|
|
277
|
-
value: "36",
|
|
278
|
-
rawValue: "36"
|
|
279
|
-
},
|
|
280
|
-
{
|
|
281
|
-
label: "40",
|
|
282
|
-
value: "40",
|
|
283
|
-
rawValue: "40"
|
|
284
|
-
}
|
|
104
|
+
{ label: "0", value: "0", rawValue: "0" },
|
|
105
|
+
{ label: "4", value: "4", rawValue: "4" },
|
|
106
|
+
{ label: "8", value: "8", rawValue: "8" },
|
|
107
|
+
{ label: "12", value: "12", rawValue: "12" },
|
|
108
|
+
{ label: "16", value: "16", rawValue: "16" },
|
|
109
|
+
{ label: "20", value: "20", rawValue: "20" },
|
|
110
|
+
{ label: "24", value: "24", rawValue: "24" },
|
|
111
|
+
{ label: "32", value: "32", rawValue: "32" },
|
|
112
|
+
{ label: "36", value: "36", rawValue: "36" },
|
|
113
|
+
{ label: "40", value: "40", rawValue: "40" }
|
|
285
114
|
]
|
|
286
115
|
},
|
|
287
116
|
margin: {
|
|
288
117
|
type: "spacing",
|
|
289
118
|
options: [
|
|
290
|
-
{
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
},
|
|
295
|
-
{
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
{
|
|
301
|
-
label: "8",
|
|
302
|
-
value: "8",
|
|
303
|
-
rawValue: "8"
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
label: "12",
|
|
307
|
-
value: "12",
|
|
308
|
-
rawValue: "12"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
label: "16",
|
|
312
|
-
value: "16",
|
|
313
|
-
rawValue: "16"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
label: "20",
|
|
317
|
-
value: "20",
|
|
318
|
-
rawValue: "20"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
label: "24",
|
|
322
|
-
value: "24",
|
|
323
|
-
rawValue: "24"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
label: "32",
|
|
327
|
-
value: "32",
|
|
328
|
-
rawValue: "32"
|
|
329
|
-
},
|
|
330
|
-
{
|
|
331
|
-
label: "36",
|
|
332
|
-
value: "36",
|
|
333
|
-
rawValue: "36"
|
|
334
|
-
},
|
|
335
|
-
{
|
|
336
|
-
label: "40",
|
|
337
|
-
value: "40",
|
|
338
|
-
rawValue: "40"
|
|
339
|
-
}
|
|
119
|
+
{ label: "0", value: "0", rawValue: "0" },
|
|
120
|
+
{ label: "4", value: "4", rawValue: "4" },
|
|
121
|
+
{ label: "8", value: "8", rawValue: "8" },
|
|
122
|
+
{ label: "12", value: "12", rawValue: "12" },
|
|
123
|
+
{ label: "16", value: "16", rawValue: "16" },
|
|
124
|
+
{ label: "20", value: "20", rawValue: "20" },
|
|
125
|
+
{ label: "24", value: "24", rawValue: "24" },
|
|
126
|
+
{ label: "32", value: "32", rawValue: "32" },
|
|
127
|
+
{ label: "36", value: "36", rawValue: "36" },
|
|
128
|
+
{ label: "40", value: "40", rawValue: "40" }
|
|
340
129
|
]
|
|
341
130
|
},
|
|
342
131
|
color: {
|
|
343
132
|
type: "color-picker",
|
|
344
133
|
recommendColors: [
|
|
345
134
|
{
|
|
346
|
-
title: "
|
|
135
|
+
title: "\u4E2D\u6027\u8272",
|
|
347
136
|
options: [
|
|
348
137
|
{
|
|
349
138
|
value: "text-neutral-00",
|
|
@@ -437,7 +226,7 @@ const defaultUIConfig = {
|
|
|
437
226
|
type: "color-picker",
|
|
438
227
|
recommendColors: [
|
|
439
228
|
{
|
|
440
|
-
title: "
|
|
229
|
+
title: "\u4E2D\u6027\u8272",
|
|
441
230
|
options: [
|
|
442
231
|
{
|
|
443
232
|
value: "bg-neutral-00",
|
|
@@ -531,7 +320,7 @@ const defaultUIConfig = {
|
|
|
531
320
|
type: "color-picker",
|
|
532
321
|
recommendColors: [
|
|
533
322
|
{
|
|
534
|
-
title: "
|
|
323
|
+
title: "\u4E2D\u6027\u8272",
|
|
535
324
|
options: [
|
|
536
325
|
{
|
|
537
326
|
value: "border-neutral-00",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/lib/index.js
CHANGED
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
6
7
|
for (var name in all)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return _MiaodaInspector.MiaodaInspector;
|
|
15
|
-
},
|
|
16
|
-
isOutgoingMessage: function() {
|
|
17
|
-
return _utils.isOutgoingMessage;
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
15
|
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var index_exports = {};
|
|
20
|
+
__export(index_exports, {
|
|
21
|
+
MiaodaInspector: () => import_MiaodaInspector.MiaodaInspector,
|
|
22
|
+
isOutgoingMessage: () => import_utils.isOutgoingMessage
|
|
19
23
|
});
|
|
20
|
-
|
|
21
|
-
|
|
24
|
+
module.exports = __toCommonJS(index_exports);
|
|
25
|
+
var import_MiaodaInspector = require("./MiaodaInspector");
|
|
26
|
+
var import_utils = require("./utils");
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var iframe_events_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(iframe_events_exports);
|
package/dist/lib/types/index.js
CHANGED
|
@@ -1,47 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
6
7
|
for (var name in all)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
return _iframeevents.InitConfigMessage;
|
|
15
|
-
},
|
|
16
|
-
ClearSelectedMessage: function() {
|
|
17
|
-
return _iframeevents.ClearSelectedMessage;
|
|
18
|
-
},
|
|
19
|
-
EditTextMessage: function() {
|
|
20
|
-
return _iframeevents.EditTextMessage;
|
|
21
|
-
},
|
|
22
|
-
EditStyleMessage: function() {
|
|
23
|
-
return _iframeevents.EditStyleMessage;
|
|
24
|
-
},
|
|
25
|
-
EditClassNameMessage: function() {
|
|
26
|
-
return _iframeevents.EditClassNameMessage;
|
|
27
|
-
},
|
|
28
|
-
OutgoingMessage: function() {
|
|
29
|
-
return _iframeevents.OutgoingMessage;
|
|
30
|
-
},
|
|
31
|
-
PageMountedMessage: function() {
|
|
32
|
-
return _iframeevents.PageMountedMessage;
|
|
33
|
-
},
|
|
34
|
-
TextUpdateMessage: function() {
|
|
35
|
-
return _iframeevents.TextUpdateMessage;
|
|
36
|
-
},
|
|
37
|
-
SelectInspectorElementMessage: function() {
|
|
38
|
-
return _iframeevents.SelectInspectorElementMessage;
|
|
39
|
-
},
|
|
40
|
-
IncomingMessage: function() {
|
|
41
|
-
return _iframeevents.IncomingMessage;
|
|
42
|
-
},
|
|
43
|
-
InspectorInfo: function() {
|
|
44
|
-
return _iframeevents.InspectorInfo;
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
45
15
|
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
var types_exports = {};
|
|
20
|
+
__export(types_exports, {
|
|
21
|
+
ClearSelectedMessage: () => import_iframe_events.ClearSelectedMessage,
|
|
22
|
+
EditClassNameMessage: () => import_iframe_events.EditClassNameMessage,
|
|
23
|
+
EditStyleMessage: () => import_iframe_events.EditStyleMessage,
|
|
24
|
+
EditTextMessage: () => import_iframe_events.EditTextMessage,
|
|
25
|
+
IncomingMessage: () => import_iframe_events.IncomingMessage,
|
|
26
|
+
InitConfigMessage: () => import_iframe_events.InitConfigMessage,
|
|
27
|
+
InspectorInfo: () => import_iframe_events.InspectorInfo,
|
|
28
|
+
OutgoingMessage: () => import_iframe_events.OutgoingMessage,
|
|
29
|
+
PageMountedMessage: () => import_iframe_events.PageMountedMessage,
|
|
30
|
+
SelectInspectorElementMessage: () => import_iframe_events.SelectInspectorElementMessage,
|
|
31
|
+
TextUpdateMessage: () => import_iframe_events.TextUpdateMessage
|
|
46
32
|
});
|
|
47
|
-
|
|
33
|
+
module.exports = __toCommonJS(types_exports);
|
|
34
|
+
var import_iframe_events = require("./iframe-events");
|