@easy-editor/materials-dashboard-text 0.0.14 → 0.0.16

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/meta.js DELETED
@@ -1,387 +0,0 @@
1
- /* @easy-editor/materials-dashboard-text v0.0.14 (meta) */
2
- (function (global, factory) {
3
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
4
- typeof define === 'function' && define.amd ? define(['exports'], factory) :
5
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.EasyEditorMaterialsTextMeta = {}));
6
- })(this, (function (exports) { 'use strict';
7
-
8
- const configure = {
9
- props: [{
10
- type: 'group',
11
- title: '属性',
12
- setter: 'TabSetter',
13
- items: [{
14
- type: 'group',
15
- key: 'config',
16
- title: '配置',
17
- setter: {
18
- componentName: 'CollapseSetter',
19
- props: {
20
- icon: false
21
- }
22
- },
23
- items: [
24
- {
25
- name: 'id',
26
- title: 'ID',
27
- setter: 'NodeInfoSetter',
28
- extraProps: {
29
- label: false
30
- }
31
- }, {
32
- name: 'title',
33
- title: '标题',
34
- setter: 'StringSetter',
35
- extraProps: {
36
- getValue(target) {
37
- return target.getExtraPropValue('title');
38
- },
39
- setValue(target, value) {
40
- target.setExtraPropValue('title', value);
41
- }
42
- }
43
- }, {
44
- type: 'group',
45
- title: '基础属性',
46
- setter: {
47
- componentName: 'CollapseSetter',
48
- props: {
49
- icon: false
50
- }
51
- },
52
- items: [{
53
- name: 'rect',
54
- title: '位置尺寸',
55
- setter: 'RectSetter',
56
- extraProps: {
57
- getValue(target) {
58
- return target.getExtraPropValue('$dashboard.rect');
59
- },
60
- setValue(target, value) {
61
- target.setExtraPropValue('$dashboard.rect', value);
62
- }
63
- }
64
- }]
65
- },
66
- {
67
- type: 'group',
68
- title: '内容',
69
- setter: {
70
- componentName: 'CollapseSetter',
71
- props: {
72
- icon: false
73
- }
74
- },
75
- items: [{
76
- name: 'content',
77
- title: '文本内容',
78
- setter: 'TextAreaSetter',
79
- extraProps: {
80
- defaultValue: '文本内容'
81
- }
82
- }, {
83
- name: 'isLink',
84
- title: '作为链接',
85
- setter: 'SwitchSetter',
86
- extraProps: {
87
- defaultValue: false
88
- }
89
- }, {
90
- name: 'href',
91
- title: '链接地址',
92
- setter: 'StringSetter'
93
- }, {
94
- name: 'target',
95
- title: '打开方式',
96
- setter: {
97
- componentName: 'SelectSetter',
98
- props: {
99
- options: [{
100
- label: '新窗口',
101
- value: '_blank'
102
- }, {
103
- label: '当前窗口',
104
- value: '_self'
105
- }]
106
- }
107
- },
108
- extraProps: {
109
- defaultValue: '_blank'
110
- }
111
- }]
112
- }, {
113
- type: 'group',
114
- title: '字体',
115
- setter: {
116
- componentName: 'CollapseSetter',
117
- props: {
118
- icon: false
119
- }
120
- },
121
- items: [{
122
- name: 'fontSize',
123
- title: '字体大小',
124
- setter: 'NumberSetter',
125
- extraProps: {
126
- defaultValue: 16
127
- }
128
- }, {
129
- name: 'fontWeight',
130
- title: '字体粗细',
131
- setter: {
132
- componentName: 'SelectSetter',
133
- props: {
134
- options: [{
135
- label: '正常',
136
- value: 'normal'
137
- }, {
138
- label: '粗体',
139
- value: 'bold'
140
- }]
141
- }
142
- },
143
- extraProps: {
144
- defaultValue: 'normal'
145
- }
146
- }, {
147
- name: 'color',
148
- title: '颜色',
149
- setter: 'ColorSetter',
150
- extraProps: {
151
- defaultValue: '#ffffff'
152
- }
153
- }, {
154
- name: 'lineHeight',
155
- title: '行高',
156
- setter: 'NumberSetter',
157
- extraProps: {
158
- defaultValue: 1.5
159
- }
160
- }]
161
- }, {
162
- type: 'group',
163
- title: '对齐',
164
- setter: {
165
- componentName: 'CollapseSetter',
166
- props: {
167
- icon: false
168
- }
169
- },
170
- items: [{
171
- name: 'textAlign',
172
- title: '水平对齐',
173
- setter: {
174
- componentName: 'SegmentedSetter',
175
- props: {
176
- options: [{
177
- label: '左',
178
- value: 'left'
179
- }, {
180
- label: '中',
181
- value: 'center'
182
- }, {
183
- label: '右',
184
- value: 'right'
185
- }]
186
- }
187
- },
188
- extraProps: {
189
- defaultValue: 'left'
190
- }
191
- }, {
192
- name: 'verticalAlign',
193
- title: '垂直对齐',
194
- setter: {
195
- componentName: 'SegmentedSetter',
196
- props: {
197
- options: [{
198
- label: '上',
199
- value: 'top'
200
- }, {
201
- label: '中',
202
- value: 'middle'
203
- }, {
204
- label: '下',
205
- value: 'bottom'
206
- }]
207
- }
208
- },
209
- extraProps: {
210
- defaultValue: 'middle'
211
- }
212
- }]
213
- }, {
214
- type: 'group',
215
- title: '效果',
216
- setter: {
217
- componentName: 'CollapseSetter',
218
- props: {
219
- icon: false
220
- }
221
- },
222
- items: [{
223
- name: 'underline',
224
- title: '下划线',
225
- setter: 'SwitchSetter',
226
- extraProps: {
227
- defaultValue: false
228
- }
229
- }, {
230
- name: 'glowEnable',
231
- title: '发光效果',
232
- setter: 'SwitchSetter',
233
- extraProps: {
234
- defaultValue: false
235
- }
236
- }, {
237
- name: 'glowColor',
238
- title: '发光颜色',
239
- setter: 'ColorSetter',
240
- extraProps: {
241
- defaultValue: '#00d4ff'
242
- }
243
- }]
244
- }]
245
- }, {
246
- type: 'group',
247
- key: 'data',
248
- title: '数据',
249
- items: [{
250
- name: 'dataBinding',
251
- title: '数据绑定',
252
- setter: 'DataBindingSetter'
253
- }]
254
- }, {
255
- type: 'group',
256
- key: 'advanced',
257
- title: '高级',
258
- items: [{
259
- name: 'condition',
260
- title: '显隐控制',
261
- setter: 'SwitchSetter',
262
- extraProps: {
263
- defaultValue: true,
264
- supportVariable: true
265
- }
266
- }]
267
- }]
268
- }],
269
- component: {},
270
- supports: {},
271
- advanced: {}
272
- };
273
-
274
- const COMPONENT_NAME = 'EasyEditorMaterialsText';
275
- const PACKAGE_NAME = '@easy-editor/materials-dashboard-text';
276
-
277
- const snippets = [{
278
- title: '普通文本',
279
- screenshot: '',
280
- schema: {
281
- componentName: COMPONENT_NAME,
282
- title: '普通文本',
283
- props: {
284
- content: '这是一段普通文本',
285
- fontSize: 16,
286
- color: '#ffffff'
287
- },
288
- $dashboard: {
289
- rect: {
290
- width: 120,
291
- height: 40
292
- }
293
- }
294
- }
295
- }, {
296
- title: '标题文本',
297
- screenshot: '',
298
- schema: {
299
- componentName: COMPONENT_NAME,
300
- title: '标题文本',
301
- props: {
302
- content: '标题文本',
303
- fontSize: 32,
304
- fontWeight: 'bold',
305
- color: '#ffffff',
306
- textAlign: 'center'
307
- },
308
- $dashboard: {
309
- rect: {
310
- width: 200,
311
- height: 60
312
- }
313
- }
314
- }
315
- }, {
316
- title: '发光标题',
317
- screenshot: '',
318
- schema: {
319
- componentName: COMPONENT_NAME,
320
- title: '发光标题',
321
- props: {
322
- content: '发光标题',
323
- fontSize: 36,
324
- fontWeight: 'bold',
325
- color: '#00d4ff',
326
- textAlign: 'center',
327
- glowEnable: true,
328
- glowColor: '#00d4ff',
329
- glowIntensity: 1.5
330
- },
331
- $dashboard: {
332
- rect: {
333
- width: 240,
334
- height: 80
335
- }
336
- }
337
- }
338
- }, {
339
- title: '链接文本',
340
- screenshot: '',
341
- schema: {
342
- componentName: COMPONENT_NAME,
343
- title: '链接文本',
344
- props: {
345
- content: '点击跳转',
346
- fontSize: 16,
347
- color: '#00d4ff',
348
- isLink: true,
349
- href: 'https://easy-editor-docs.vercel.app/',
350
- target: '_blank',
351
- underline: true
352
- },
353
- $dashboard: {
354
- rect: {
355
- width: 120,
356
- height: 40
357
- }
358
- }
359
- }
360
- }];
361
-
362
- const MaterialGroup = {
363
- BASIC: 'basic'};
364
-
365
- var version = "0.0.14";
366
- var pkg = {
367
- version: version};
368
-
369
- const meta = {
370
- componentName: COMPONENT_NAME,
371
- title: '文本',
372
- group: MaterialGroup.BASIC,
373
- devMode: 'proCode',
374
- npm: {
375
- package: PACKAGE_NAME,
376
- version: pkg.version,
377
- globalName: COMPONENT_NAME,
378
- componentName: COMPONENT_NAME
379
- },
380
- configure,
381
- snippets
382
- };
383
-
384
- exports.meta = meta;
385
-
386
- }));
387
- //# sourceMappingURL=meta.js.map
package/dist/meta.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.js","sources":["../src/configure.ts","../src/constants.ts","../src/snippets.ts","../../../../shared/src/index.ts","../src/meta.ts"],"sourcesContent":["/**\n * Text Configure\n * 文本组件配置\n */\n\nimport type { Configure } from '@easy-editor/core'\n\nexport const configure: Configure = {\n props: [\n {\n type: 'group',\n title: '属性',\n setter: 'TabSetter',\n items: [\n {\n type: 'group',\n key: 'config',\n title: '配置',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n // 基础配置\n {\n name: 'id',\n title: 'ID',\n setter: 'NodeInfoSetter',\n extraProps: {\n // @ts-expect-error label is not a valid extra prop\n label: false,\n },\n },\n {\n name: 'title',\n title: '标题',\n setter: 'StringSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('title')\n },\n setValue(target, value) {\n target.setExtraPropValue('title', value)\n },\n },\n },\n {\n type: 'group',\n title: '基础属性',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'rect',\n title: '位置尺寸',\n setter: 'RectSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('$dashboard.rect')\n },\n setValue(target, value) {\n target.setExtraPropValue('$dashboard.rect', value)\n },\n },\n },\n ],\n },\n // 组件配置\n {\n type: 'group',\n title: '内容',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'content',\n title: '文本内容',\n setter: 'TextAreaSetter',\n extraProps: {\n defaultValue: '文本内容',\n },\n },\n {\n name: 'isLink',\n title: '作为链接',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: false,\n },\n },\n {\n name: 'href',\n title: '链接地址',\n setter: 'StringSetter',\n },\n {\n name: 'target',\n title: '打开方式',\n setter: {\n componentName: 'SelectSetter',\n props: {\n options: [\n { label: '新窗口', value: '_blank' },\n { label: '当前窗口', value: '_self' },\n ],\n },\n },\n extraProps: {\n defaultValue: '_blank',\n },\n },\n ],\n },\n {\n type: 'group',\n title: '字体',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'fontSize',\n title: '字体大小',\n setter: 'NumberSetter',\n extraProps: {\n defaultValue: 16,\n },\n },\n {\n name: 'fontWeight',\n title: '字体粗细',\n setter: {\n componentName: 'SelectSetter',\n props: {\n options: [\n { label: '正常', value: 'normal' },\n { label: '粗体', value: 'bold' },\n ],\n },\n },\n extraProps: {\n defaultValue: 'normal',\n },\n },\n {\n name: 'color',\n title: '颜色',\n setter: 'ColorSetter',\n extraProps: {\n defaultValue: '#ffffff',\n },\n },\n {\n name: 'lineHeight',\n title: '行高',\n setter: 'NumberSetter',\n extraProps: {\n defaultValue: 1.5,\n },\n },\n ],\n },\n {\n type: 'group',\n title: '对齐',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'textAlign',\n title: '水平对齐',\n setter: {\n componentName: 'SegmentedSetter',\n props: {\n options: [\n { label: '左', value: 'left' },\n { label: '中', value: 'center' },\n { label: '右', value: 'right' },\n ],\n },\n },\n extraProps: {\n defaultValue: 'left',\n },\n },\n {\n name: 'verticalAlign',\n title: '垂直对齐',\n setter: {\n componentName: 'SegmentedSetter',\n props: {\n options: [\n { label: '上', value: 'top' },\n { label: '中', value: 'middle' },\n { label: '下', value: 'bottom' },\n ],\n },\n },\n extraProps: {\n defaultValue: 'middle',\n },\n },\n ],\n },\n {\n type: 'group',\n title: '效果',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'underline',\n title: '下划线',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: false,\n },\n },\n {\n name: 'glowEnable',\n title: '发光效果',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: false,\n },\n },\n {\n name: 'glowColor',\n title: '发光颜色',\n setter: 'ColorSetter',\n extraProps: {\n defaultValue: '#00d4ff',\n },\n },\n ],\n },\n ],\n },\n {\n type: 'group',\n key: 'data',\n title: '数据',\n items: [\n {\n name: 'dataBinding',\n title: '数据绑定',\n setter: 'DataBindingSetter',\n },\n ],\n },\n {\n type: 'group',\n key: 'advanced',\n title: '高级',\n items: [\n {\n name: 'condition',\n title: '显隐控制',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n supportVariable: true,\n },\n },\n ],\n },\n ],\n },\n ],\n component: {},\n supports: {},\n advanced: {},\n}\n","/**\n * 物料常量配置\n * 统一管理全局变量名等配置,确保 meta.ts 和 rollup.config.js 使用相同的值\n */\n\n/**\n * UMD 全局变量基础名称\n * 用于构建:\n * - 元数据:${GLOBAL_NAME}Meta (例如: EasyEditorMaterialsTextMeta)\n * - 组件:${GLOBAL_NAME}Component (例如: EasyEditorMaterialsTextComponent)\n * - 完整构建:${GLOBAL_NAME} (例如: EasyEditorMaterialsText)\n */\nexport const COMPONENT_NAME = 'EasyEditorMaterialsText'\n\n/**\n * 包名\n */\nexport const PACKAGE_NAME = '@easy-editor/materials-dashboard-text'\n","/**\n * Text Snippets\n * 文本组件代码片段\n */\n\nimport type { Snippet } from '@easy-editor/core'\nimport { COMPONENT_NAME } from './constants'\n\nexport const snippets: Snippet[] = [\n {\n title: '普通文本',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n title: '普通文本',\n props: {\n content: '这是一段普通文本',\n fontSize: 16,\n color: '#ffffff',\n },\n $dashboard: {\n rect: {\n width: 120,\n height: 40,\n },\n },\n },\n },\n {\n title: '标题文本',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n title: '标题文本',\n props: {\n content: '标题文本',\n fontSize: 32,\n fontWeight: 'bold',\n color: '#ffffff',\n textAlign: 'center',\n },\n $dashboard: {\n rect: {\n width: 200,\n height: 60,\n },\n },\n },\n },\n {\n title: '发光标题',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n title: '发光标题',\n props: {\n content: '发光标题',\n fontSize: 36,\n fontWeight: 'bold',\n color: '#00d4ff',\n textAlign: 'center',\n glowEnable: true,\n glowColor: '#00d4ff',\n glowIntensity: 1.5,\n },\n $dashboard: {\n rect: {\n width: 240,\n height: 80,\n },\n },\n },\n },\n {\n title: '链接文本',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n title: '链接文本',\n props: {\n content: '点击跳转',\n fontSize: 16,\n color: '#00d4ff',\n isLink: true,\n href: 'https://easy-editor-docs.vercel.app/',\n target: '_blank',\n underline: true,\n },\n $dashboard: {\n rect: {\n width: 120,\n height: 40,\n },\n },\n },\n },\n]\n","/**\n * Shared types, components and utilities for EasyEditor materials\n * @package @easy-editor/materials-shared\n */\n\n// 物料分组常量\nexport const MaterialGroup = {\n /** 内置 */\n INNER: 'inner',\n /** 基础 */\n BASIC: 'basic',\n /** 图表 */\n CHART: 'chart',\n /** 数据展示 */\n DISPLAY: 'display',\n /** 媒体 */\n MEDIA: 'media',\n /** 交互 */\n INTERACTION: 'interaction',\n /** 地图 */\n MAP: 'map',\n} as const\n\nexport type MaterialGroup = (typeof MaterialGroup)[keyof typeof MaterialGroup]\n\n// 工具函数\nexport { cn } from './lib/utils'\n\nexport * from './types'\n","/**\n * Text Meta\n * 文本组件元数据\n */\n\nimport type { ComponentMetadata } from '@easy-editor/core'\nimport { configure } from './configure'\nimport { snippets } from './snippets'\nimport { COMPONENT_NAME, PACKAGE_NAME } from './constants'\nimport { MaterialGroup } from '@easy-editor/materials-shared'\nimport pkg from '../package.json'\n\nexport const meta: ComponentMetadata = {\n componentName: COMPONENT_NAME,\n title: '文本',\n group: MaterialGroup.BASIC,\n devMode: 'proCode',\n npm: {\n package: PACKAGE_NAME,\n version: pkg.version,\n globalName: COMPONENT_NAME,\n componentName: COMPONENT_NAME,\n },\n configure,\n snippets,\n}\n"],"names":["configure","props","type","title","setter","items","key","componentName","icon","name","extraProps","label","getValue","target","getExtraPropValue","setValue","value","setExtraPropValue","defaultValue","options","supportVariable","component","supports","advanced","COMPONENT_NAME","PACKAGE_NAME","snippets","screenshot","schema","content","fontSize","color","$dashboard","rect","width","height","fontWeight","textAlign","glowEnable","glowColor","glowIntensity","isLink","href","underline","MaterialGroup","INNER","BASIC","meta","group","devMode","npm","package","version","pkg","globalName"],"mappings":";;;;;;;EAOO,MAAMA,SAAoB,GAAG;EAClCC,EAAAA,KAAK,EAAE,CACL;EACEC,IAAAA,IAAI,EAAE,OAAO;EACbC,IAAAA,KAAK,EAAE,IAAI;EACXC,IAAAA,MAAM,EAAE,WAAW;EACnBC,IAAAA,KAAK,EAAE,CACL;EACEH,MAAAA,IAAI,EAAE,OAAO;EACbI,MAAAA,GAAG,EAAE,QAAQ;EACbH,MAAAA,KAAK,EAAE,IAAI;EACXC,MAAAA,MAAM,EAAE;EACNG,QAAAA,aAAa,EAAE,gBAAgB;EAC/BN,QAAAA,KAAK,EAAE;EACLO,UAAAA,IAAI,EAAE;EACR;SACD;EACDH,MAAAA,KAAK,EAAE;EAEL,MAAA;EACEI,QAAAA,IAAI,EAAE,IAAI;EACVN,QAAAA,KAAK,EAAE,IAAI;EACXC,QAAAA,MAAM,EAAE,gBAAgB;EACxBM,QAAAA,UAAU,EAAE;EAEVC,UAAAA,KAAK,EAAE;EACT;EACF,OAAC,EACD;EACEF,QAAAA,IAAI,EAAE,OAAO;EACbN,QAAAA,KAAK,EAAE,IAAI;EACXC,QAAAA,MAAM,EAAE,cAAc;EACtBM,QAAAA,UAAU,EAAE;YACVE,QAAQA,CAACC,MAAM,EAAE;EACf,YAAA,OAAOA,MAAM,CAACC,iBAAiB,CAAC,OAAO,CAAC;YAC1C,CAAC;EACDC,UAAAA,QAAQA,CAACF,MAAM,EAAEG,KAAK,EAAE;EACtBH,YAAAA,MAAM,CAACI,iBAAiB,CAAC,OAAO,EAAED,KAAK,CAAC;EAC1C,UAAA;EACF;EACF,OAAC,EACD;EACEd,QAAAA,IAAI,EAAE,OAAO;EACbC,QAAAA,KAAK,EAAE,MAAM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AA,IAAI,EAAE;EACJC,QAAAA,KAAK,EAAE,GAAG;EACVC,QAAAA,MAAM,EAAE;EACV;EACF;EACF;EACF,CAAC,CACF;;EC1FM,MAAMS,aAAa,GAAG;EAE3BC,EAEAC,KAAK,EAAE,OAWT,CAAU;;;;;;ACTH,QAAMC,IAAuB,GAAG;EACrCxC,EAAAA,aAAa,EAAEiB,cAAc;EAC7BrB,EAAAA,KAAK,EAAE,IAAI;IACX6C,KAAK,EAAEJ,aAAa,CAACE,KAAK;EAC1BG,EAAAA,OAAO,EAAE,SAAS;EAClBC,EAAAA,GAAG,EAAE;EACHC,IAAAA,OAAO,EAAE1B,YAAY;MACrB2B,OAAO,EAAEC,GAAG,CAACD,OAAO;EACpBE,IAAAA,UAAU,EAAE9B,cAAc;EAC1BjB,IAAAA,aAAa,EAAEiB;KAChB;IACDxB,SAAS;EACT0B,EAAAA;EACF;;;;;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"meta.min.js","sources":["../src/configure.ts","../src/constants.ts","../src/meta.ts","../../../../shared/src/index.ts","../src/snippets.ts"],"sourcesContent":["/**\n * Text Configure\n * 文本组件配置\n */\n\nimport type { Configure } from '@easy-editor/core'\n\nexport const configure: Configure = {\n props: [\n {\n type: 'group',\n title: '属性',\n setter: 'TabSetter',\n items: [\n {\n type: 'group',\n key: 'config',\n title: '配置',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n // 基础配置\n {\n name: 'id',\n title: 'ID',\n setter: 'NodeInfoSetter',\n extraProps: {\n // @ts-expect-error label is not a valid extra prop\n label: false,\n },\n },\n {\n name: 'title',\n title: '标题',\n setter: 'StringSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('title')\n },\n setValue(target, value) {\n target.setExtraPropValue('title', value)\n },\n },\n },\n {\n type: 'group',\n title: '基础属性',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'rect',\n title: '位置尺寸',\n setter: 'RectSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('$dashboard.rect')\n },\n setValue(target, value) {\n target.setExtraPropValue('$dashboard.rect', value)\n },\n },\n },\n ],\n },\n // 组件配置\n {\n type: 'group',\n title: '内容',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'content',\n title: '文本内容',\n setter: 'TextAreaSetter',\n extraProps: {\n defaultValue: '文本内容',\n },\n },\n {\n name: 'isLink',\n title: '作为链接',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: false,\n },\n },\n {\n name: 'href',\n title: '链接地址',\n setter: 'StringSetter',\n },\n {\n name: 'target',\n title: '打开方式',\n setter: {\n componentName: 'SelectSetter',\n props: {\n options: [\n { label: '新窗口', value: '_blank' },\n { label: '当前窗口', value: '_self' },\n ],\n },\n },\n extraProps: {\n defaultValue: '_blank',\n },\n },\n ],\n },\n {\n type: 'group',\n title: '字体',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'fontSize',\n title: '字体大小',\n setter: 'NumberSetter',\n extraProps: {\n defaultValue: 16,\n },\n },\n {\n name: 'fontWeight',\n title: '字体粗细',\n setter: {\n componentName: 'SelectSetter',\n props: {\n options: [\n { label: '正常', value: 'normal' },\n { label: '粗体', value: 'bold' },\n ],\n },\n },\n extraProps: {\n defaultValue: 'normal',\n },\n },\n {\n name: 'color',\n title: '颜色',\n setter: 'ColorSetter',\n extraProps: {\n defaultValue: '#ffffff',\n },\n },\n {\n name: 'lineHeight',\n title: '行高',\n setter: 'NumberSetter',\n extraProps: {\n defaultValue: 1.5,\n },\n },\n ],\n },\n {\n type: 'group',\n title: '对齐',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'textAlign',\n title: '水平对齐',\n setter: {\n componentName: 'SegmentedSetter',\n props: {\n options: [\n { label: '左', value: 'left' },\n { label: '中', value: 'center' },\n { label: '右', value: 'right' },\n ],\n },\n },\n extraProps: {\n defaultValue: 'left',\n },\n },\n {\n name: 'verticalAlign',\n title: '垂直对齐',\n setter: {\n componentName: 'SegmentedSetter',\n props: {\n options: [\n { label: '上', value: 'top' },\n { label: '中', value: 'middle' },\n { label: '下', value: 'bottom' },\n ],\n },\n },\n extraProps: {\n defaultValue: 'middle',\n },\n },\n ],\n },\n {\n type: 'group',\n title: '效果',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'underline',\n title: '下划线',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: false,\n },\n },\n {\n name: 'glowEnable',\n title: '发光效果',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: false,\n },\n },\n {\n name: 'glowColor',\n title: '发光颜色',\n setter: 'ColorSetter',\n extraProps: {\n defaultValue: '#00d4ff',\n },\n },\n ],\n },\n ],\n },\n {\n type: 'group',\n key: 'data',\n title: '数据',\n items: [\n {\n name: 'dataBinding',\n title: '数据绑定',\n setter: 'DataBindingSetter',\n },\n ],\n },\n {\n type: 'group',\n key: 'advanced',\n title: '高级',\n items: [\n {\n name: 'condition',\n title: '显隐控制',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n supportVariable: true,\n },\n },\n ],\n },\n ],\n },\n ],\n component: {},\n supports: {},\n advanced: {},\n}\n","/**\n * 物料常量配置\n * 统一管理全局变量名等配置,确保 meta.ts 和 rollup.config.js 使用相同的值\n */\n\n/**\n * UMD 全局变量基础名称\n * 用于构建:\n * - 元数据:${GLOBAL_NAME}Meta (例如: EasyEditorMaterialsTextMeta)\n * - 组件:${GLOBAL_NAME}Component (例如: EasyEditorMaterialsTextComponent)\n * - 完整构建:${GLOBAL_NAME} (例如: EasyEditorMaterialsText)\n */\nexport const COMPONENT_NAME = 'EasyEditorMaterialsText'\n\n/**\n * 包名\n */\nexport const PACKAGE_NAME = '@easy-editor/materials-dashboard-text'\n","/**\n * Text Meta\n * 文本组件元数据\n */\n\nimport type { ComponentMetadata } from '@easy-editor/core'\nimport { configure } from './configure'\nimport { snippets } from './snippets'\nimport { COMPONENT_NAME, PACKAGE_NAME } from './constants'\nimport { MaterialGroup } from '@easy-editor/materials-shared'\nimport pkg from '../package.json'\n\nexport const meta: ComponentMetadata = {\n componentName: COMPONENT_NAME,\n title: '文本',\n group: MaterialGroup.BASIC,\n devMode: 'proCode',\n npm: {\n package: PACKAGE_NAME,\n version: pkg.version,\n globalName: COMPONENT_NAME,\n componentName: COMPONENT_NAME,\n },\n configure,\n snippets,\n}\n","/**\n * Shared types, components and utilities for EasyEditor materials\n * @package @easy-editor/materials-shared\n */\n\n// 物料分组常量\nexport const MaterialGroup = {\n /** 内置 */\n INNER: 'inner',\n /** 基础 */\n BASIC: 'basic',\n /** 图表 */\n CHART: 'chart',\n /** 数据展示 */\n DISPLAY: 'display',\n /** 媒体 */\n MEDIA: 'media',\n /** 交互 */\n INTERACTION: 'interaction',\n /** 地图 */\n MAP: 'map',\n} as const\n\nexport type MaterialGroup = (typeof MaterialGroup)[keyof typeof MaterialGroup]\n\n// 工具函数\nexport { cn } from './lib/utils'\n\nexport * from './types'\n","/**\n * Text Snippets\n * 文本组件代码片段\n */\n\nimport type { Snippet } from '@easy-editor/core'\nimport { COMPONENT_NAME } from './constants'\n\nexport const snippets: Snippet[] = [\n {\n title: '普通文本',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n title: '普通文本',\n props: {\n content: '这是一段普通文本',\n fontSize: 16,\n color: '#ffffff',\n },\n $dashboard: {\n rect: {\n width: 120,\n height: 40,\n },\n },\n },\n },\n {\n title: '标题文本',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n title: '标题文本',\n props: {\n content: '标题文本',\n fontSize: 32,\n fontWeight: 'bold',\n color: '#ffffff',\n textAlign: 'center',\n },\n $dashboard: {\n rect: {\n width: 200,\n height: 60,\n },\n },\n },\n },\n {\n title: '发光标题',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n title: '发光标题',\n props: {\n content: '发光标题',\n fontSize: 36,\n fontWeight: 'bold',\n color: '#00d4ff',\n textAlign: 'center',\n glowEnable: true,\n glowColor: '#00d4ff',\n glowIntensity: 1.5,\n },\n $dashboard: {\n rect: {\n width: 240,\n height: 80,\n },\n },\n },\n },\n {\n title: '链接文本',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n title: '链接文本',\n props: {\n content: '点击跳转',\n fontSize: 16,\n color: '#00d4ff',\n isLink: true,\n href: 'https://easy-editor-docs.vercel.app/',\n target: '_blank',\n underline: true,\n },\n $dashboard: {\n rect: {\n width: 120,\n height: 40,\n },\n },\n },\n },\n]\n"],"names":["COMPONENT_NAME","meta","componentName","title","group","devMode","npm","package","version","globalName","configure","props","type","setter","items","key","icon","name","extraProps","label","getValue","target","getExtraPropValue","setValue","value","setExtraPropValue","defaultValue","options","supportVariable","component","supports","advanced","snippets","screenshot","schema","content","fontSize","color","$dashboard","rect","width","height","fontWeight","textAlign","glowEnable","glowColor","glowIntensity","isLink","href","underline"],"mappings":"kQAOO,MCKMA,EAAiB,0BCAvB,MAAMC,EAA0B,CACrCC,cAAeF,EACfG,MAAO,KACPC,MCLO,QDMPC,QAAS,UACTC,IAAK,CACHC,QDDwB,wCCExBC,iBACAC,WAAYT,EACZE,cAAeF,GAEjBU,UFhBkC,CAClCC,MAAO,CACL,CACEC,KAAM,QACNT,MAAO,KACPU,OAAQ,YACRC,MAAO,CACL,CACEF,KAAM,QACNG,IAAK,SACLZ,MAAO,KACPU,OAAQ,CACNX,cAAe,iBACfS,MAAO,CACLK,MAAM,IAGVF,MAAO,CAEL,CACEG,KAAM,KACNd,MAAO,KACPU,OAAQ,iBACRK,WAAY,CAEVC,OAAO,IAGX,CACEF,KAAM,QACNd,MAAO,KACPU,OAAQ,eACRK,WAAY,CACVE,SAASC,GACAA,EAAOC,kBAAkB,SAElCC,QAAAA,CAASF,EAAQG,GACfH,EAAOI,kBAAkB,QAASD,EAC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B,CACEtC,MAAO,OACP8B,WAAY,GACZC,OAAQ,CACNhC,cAAeF,EACfG,MAAO,OACPQ,MAAO,CACLwB,QAAS,OACTC,SAAU,GACVM,WAAY,OACZL,MAAO,UACPM,UAAW,UAEbL,WAAY,CACVC,KAAM,CACJC,MAAO,IACPC,OAAQ,OAKhB,CACEtC,MAAO,OACP8B,WAAY,GACZC,OAAQ,CACNhC,cAAeF,EACfG,MAAO,OACPQ,MAAO,CACLwB,QAAS,OACTC,SAAU,GACVM,WAAY,OACZL,MAAO,UACPM,UAAW,SACXC,YAAY,EACZC,UAAW,UACXC,cAAe,KAEjBR,WAAY,CACVC,KAAM,CACJC,MAAO,IACPC,OAAQ,OAKhB,CACEtC,MAAO,OACP8B,WAAY,GACZC,OAAQ,CACNhC,cAAeF,EACfG,MAAO,OACPQ,MAAO,CACLwB,QAAS,OACTC,SAAU,GACVC,MAAO,UACPU,QAAQ,EACRC,KAAM,uCACN3B,OAAQ,SACR4B,WAAW,GAEbX,WAAY,CACVC,KAAM,CACJC,MAAO,IACPC,OAAQ"}
@@ -1,48 +0,0 @@
1
- /**
2
- * Text Component
3
- * 文本组件 - 支持普通文本、链接、标题、发光效果
4
- */
5
- import type { CSSProperties, Ref } from 'react';
6
- export type TextAlign = 'left' | 'center' | 'right';
7
- export type VerticalAlign = 'top' | 'middle' | 'bottom';
8
- export interface TextProps {
9
- ref?: Ref<HTMLDivElement>;
10
- /** 文本内容 */
11
- content?: string;
12
- /** 字体大小 */
13
- fontSize?: number;
14
- /** 字体粗细 */
15
- fontWeight?: number | 'normal' | 'bold';
16
- /** 字体家族 */
17
- fontFamily?: string;
18
- /** 颜色 */
19
- color?: string;
20
- /** 水平对齐 */
21
- textAlign?: TextAlign;
22
- /** 垂直对齐 */
23
- verticalAlign?: VerticalAlign;
24
- /** 行高 */
25
- lineHeight?: number;
26
- /** 字间距 */
27
- letterSpacing?: number;
28
- /** 是否为链接 */
29
- isLink?: boolean;
30
- /** 链接地址 */
31
- href?: string;
32
- /** 链接打开方式 */
33
- target?: '_self' | '_blank';
34
- /** 下划线 */
35
- underline?: boolean;
36
- /** 发光效果 */
37
- glowEnable?: boolean;
38
- /** 发光颜色 */
39
- glowColor?: string;
40
- /** 发光强度 */
41
- glowIntensity?: number;
42
- /** 显隐控制 */
43
- condition?: boolean;
44
- /** 外部样式 */
45
- style?: CSSProperties;
46
- }
47
- export declare const Text: React.FC<TextProps>;
48
- export default Text;
@@ -1,6 +0,0 @@
1
- /**
2
- * Text Configure
3
- * 文本组件配置
4
- */
5
- import type { Configure } from '@easy-editor/core';
6
- export declare const configure: Configure;
@@ -1,6 +0,0 @@
1
- /**
2
- * Text Entry
3
- * 文本组件入口
4
- */
5
- export { Text as component } from './component';
6
- export { meta } from './meta';
@@ -1,6 +0,0 @@
1
- /**
2
- * Text Meta
3
- * 文本组件元数据
4
- */
5
- import type { ComponentMetadata } from '@easy-editor/core';
6
- export declare const meta: ComponentMetadata;
@@ -1,6 +0,0 @@
1
- /**
2
- * Text Snippets
3
- * 文本组件代码片段
4
- */
5
- import type { Snippet } from '@easy-editor/core';
6
- export declare const snippets: Snippet[];
package/vite.config.ts DELETED
@@ -1,54 +0,0 @@
1
- /**
2
- * Vite Configuration for Material Development
3
- * 物料开发 Vite 配置
4
- */
5
-
6
- import { defineConfig } from 'vite'
7
- import react from '@vitejs/plugin-react'
8
- import { materialDevPlugin } from './.vite/plugins/vite-plugin-material-dev'
9
- import { externalDeps } from './.vite/plugins/vite-plugin-external-deps'
10
-
11
- export default defineConfig({
12
- plugins: [
13
- react(),
14
- // 外部化 React/ReactDOM,使用父应用提供的实例
15
- externalDeps({
16
- externals: ['react', 'react-dom', 'react/jsx-runtime', '@easy-editor/core'],
17
- globals: {
18
- react: 'React',
19
- 'react-dom': 'ReactDOM',
20
- 'react/jsx-runtime': 'jsxRuntime',
21
- '@easy-editor/core': 'EasyEditorCore',
22
- },
23
- }),
24
- materialDevPlugin({
25
- entry: '/src/index.tsx',
26
- }),
27
- ],
28
- server: {
29
- port: 5001,
30
- host: 'localhost',
31
- cors: true,
32
- hmr: {
33
- port: 5001,
34
- },
35
- },
36
- build: {
37
- target: 'esnext',
38
- rollupOptions: {
39
- // 确保生产构建也外部化这些依赖
40
- external: ['react', 'react-dom', 'react/jsx-runtime', '@easy-editor/core'],
41
- output: {
42
- globals: {
43
- react: 'React',
44
- 'react-dom': 'ReactDOM',
45
- 'react/jsx-runtime': 'jsxRuntime',
46
- '@easy-editor/core': 'EasyEditorCore',
47
- },
48
- },
49
- },
50
- },
51
- resolve: {
52
- dedupe: ['react', 'react-dom'],
53
- },
54
- })