amis-editor-core 5.7.0 → 6.1.0

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/lib/tpl.d.ts CHANGED
@@ -27,6 +27,8 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
27
27
  animationIterationCount?: import("csstype").Property.AnimationIterationCount | undefined;
28
28
  animationName?: import("csstype").Property.AnimationName | undefined;
29
29
  animationPlayState?: import("csstype").Property.AnimationPlayState | undefined;
30
+ animationRangeEnd?: import("csstype").Property.AnimationRangeEnd<string | number> | undefined;
31
+ animationRangeStart?: import("csstype").Property.AnimationRangeStart<string | number> | undefined;
30
32
  animationTimeline?: import("csstype").Property.AnimationTimeline | undefined;
31
33
  animationTimingFunction?: import("csstype").Property.AnimationTimingFunction | undefined;
32
34
  appearance?: import("csstype").Property.Appearance | undefined;
@@ -148,6 +150,10 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
148
150
  fontStretch?: import("csstype").Property.FontStretch | undefined;
149
151
  fontStyle?: import("csstype").Property.FontStyle | undefined;
150
152
  fontSynthesis?: import("csstype").Property.FontSynthesis | undefined;
153
+ fontSynthesisPosition?: import("csstype").Property.FontSynthesisPosition | undefined;
154
+ fontSynthesisSmallCaps?: import("csstype").Property.FontSynthesisSmallCaps | undefined;
155
+ fontSynthesisStyle?: import("csstype").Property.FontSynthesisStyle | undefined;
156
+ fontSynthesisWeight?: import("csstype").Property.FontSynthesisWeight | undefined;
151
157
  fontVariant?: import("csstype").Property.FontVariant | undefined;
152
158
  fontVariantAlternates?: import("csstype").Property.FontVariantAlternates | undefined;
153
159
  fontVariantCaps?: import("csstype").Property.FontVariantCaps | undefined;
@@ -221,6 +227,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
221
227
  maskRepeat?: import("csstype").Property.MaskRepeat | undefined;
222
228
  maskSize?: import("csstype").Property.MaskSize<string | number> | undefined;
223
229
  maskType?: import("csstype").Property.MaskType | undefined;
230
+ masonryAutoFlow?: import("csstype").Property.MasonryAutoFlow | undefined;
224
231
  mathDepth?: import("csstype").Property.MathDepth | undefined;
225
232
  mathShift?: import("csstype").Property.MathShift | undefined;
226
233
  mathStyle?: import("csstype").Property.MathStyle | undefined;
@@ -260,6 +267,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
260
267
  overflowWrap?: import("csstype").Property.OverflowWrap | undefined;
261
268
  overflowX?: import("csstype").Property.OverflowX | undefined;
262
269
  overflowY?: import("csstype").Property.OverflowY | undefined;
270
+ overlay?: import("csstype").Property.Overlay | undefined;
263
271
  overscrollBehaviorBlock?: import("csstype").Property.OverscrollBehaviorBlock | undefined;
264
272
  overscrollBehaviorInline?: import("csstype").Property.OverscrollBehaviorInline | undefined;
265
273
  overscrollBehaviorX?: import("csstype").Property.OverscrollBehaviorX | undefined;
@@ -347,12 +355,15 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
347
355
  textTransform?: import("csstype").Property.TextTransform | undefined;
348
356
  textUnderlineOffset?: import("csstype").Property.TextUnderlineOffset<string | number> | undefined;
349
357
  textUnderlinePosition?: import("csstype").Property.TextUnderlinePosition | undefined;
358
+ textWrap?: import("csstype").Property.TextWrap | undefined;
359
+ timelineScope?: import("csstype").Property.TimelineScope | undefined;
350
360
  top?: import("csstype").Property.Top<string | number> | undefined;
351
361
  touchAction?: import("csstype").Property.TouchAction | undefined;
352
362
  transform?: import("csstype").Property.Transform | undefined;
353
363
  transformBox?: import("csstype").Property.TransformBox | undefined;
354
364
  transformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
355
365
  transformStyle?: import("csstype").Property.TransformStyle | undefined;
366
+ transitionBehavior?: import("csstype").Property.TransitionBehavior | undefined;
356
367
  transitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
357
368
  transitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
358
369
  transitionProperty?: import("csstype").Property.TransitionProperty | undefined;
@@ -361,9 +372,14 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
361
372
  unicodeBidi?: import("csstype").Property.UnicodeBidi | undefined;
362
373
  userSelect?: import("csstype").Property.UserSelect | undefined;
363
374
  verticalAlign?: import("csstype").Property.VerticalAlign<string | number> | undefined;
375
+ viewTimelineAxis?: import("csstype").Property.ViewTimelineAxis | undefined;
376
+ viewTimelineInset?: import("csstype").Property.ViewTimelineInset<string | number> | undefined;
377
+ viewTimelineName?: import("csstype").Property.ViewTimelineName | undefined;
364
378
  viewTransitionName?: import("csstype").Property.ViewTransitionName | undefined;
365
379
  visibility?: import("csstype").Property.Visibility | undefined;
366
380
  whiteSpace?: import("csstype").Property.WhiteSpace | undefined;
381
+ whiteSpaceCollapse?: import("csstype").Property.WhiteSpaceCollapse | undefined;
382
+ whiteSpaceTrim?: import("csstype").Property.WhiteSpaceTrim | undefined;
367
383
  widows?: import("csstype").Property.Widows | undefined;
368
384
  width?: import("csstype").Property.Width<string | number> | undefined;
369
385
  willChange?: import("csstype").Property.WillChange | undefined;
@@ -375,6 +391,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
375
391
  zoom?: import("csstype").Property.Zoom | undefined;
376
392
  all?: import("csstype").Globals | undefined;
377
393
  animation?: import("csstype").Property.Animation<string & {}> | undefined;
394
+ animationRange?: import("csstype").Property.AnimationRange<string | number> | undefined;
378
395
  background?: import("csstype").Property.Background<string | number> | undefined;
379
396
  backgroundPosition?: import("csstype").Property.BackgroundPosition<string | number> | undefined;
380
397
  border?: import("csstype").Property.Border<string | number> | undefined;
@@ -439,6 +456,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
439
456
  textDecoration?: import("csstype").Property.TextDecoration<string | number> | undefined;
440
457
  textEmphasis?: import("csstype").Property.TextEmphasis | undefined;
441
458
  transition?: import("csstype").Property.Transition<string & {}> | undefined;
459
+ viewTimeline?: import("csstype").Property.ViewTimeline | undefined;
442
460
  MozAnimationDelay?: import("csstype").Property.AnimationDelay<string & {}> | undefined;
443
461
  MozAnimationDirection?: import("csstype").Property.AnimationDirection | undefined;
444
462
  MozAnimationDuration?: import("csstype").Property.AnimationDuration<string & {}> | undefined;
@@ -448,7 +466,6 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
448
466
  MozAnimationPlayState?: import("csstype").Property.AnimationPlayState | undefined;
449
467
  MozAnimationTimingFunction?: import("csstype").Property.AnimationTimingFunction | undefined;
450
468
  MozAppearance?: import("csstype").Property.MozAppearance | undefined;
451
- MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
452
469
  MozBinding?: import("csstype").Property.MozBinding | undefined;
453
470
  MozBorderBottomColors?: import("csstype").Property.MozBorderBottomColors | undefined;
454
471
  MozBorderEndColor?: import("csstype").Property.BorderInlineEndColor | undefined;
@@ -475,20 +492,16 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
475
492
  MozMarginStart?: import("csstype").Property.MarginInlineStart<string | number> | undefined;
476
493
  MozOrient?: import("csstype").Property.MozOrient | undefined;
477
494
  MozOsxFontSmoothing?: import("csstype").Property.FontSmooth<string | number> | undefined;
495
+ MozOutlineRadiusBottomleft?: import("csstype").Property.MozOutlineRadiusBottomleft<string | number> | undefined;
496
+ MozOutlineRadiusBottomright?: import("csstype").Property.MozOutlineRadiusBottomright<string | number> | undefined;
497
+ MozOutlineRadiusTopleft?: import("csstype").Property.MozOutlineRadiusTopleft<string | number> | undefined;
498
+ MozOutlineRadiusTopright?: import("csstype").Property.MozOutlineRadiusTopright<string | number> | undefined;
478
499
  MozPaddingEnd?: import("csstype").Property.PaddingInlineEnd<string | number> | undefined;
479
500
  MozPaddingStart?: import("csstype").Property.PaddingInlineStart<string | number> | undefined;
480
- MozPerspective?: import("csstype").Property.Perspective<string | number> | undefined;
481
- MozPerspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
482
501
  MozStackSizing?: import("csstype").Property.MozStackSizing | undefined;
483
502
  MozTabSize?: import("csstype").Property.TabSize<string | number> | undefined;
484
503
  MozTextBlink?: import("csstype").Property.MozTextBlink | undefined;
485
504
  MozTextSizeAdjust?: import("csstype").Property.TextSizeAdjust | undefined;
486
- MozTransformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
487
- MozTransformStyle?: import("csstype").Property.TransformStyle | undefined;
488
- MozTransitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
489
- MozTransitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
490
- MozTransitionProperty?: import("csstype").Property.TransitionProperty | undefined;
491
- MozTransitionTimingFunction?: import("csstype").Property.TransitionTimingFunction | undefined;
492
505
  MozUserFocus?: import("csstype").Property.MozUserFocus | undefined;
493
506
  MozUserModify?: import("csstype").Property.MozUserModify | undefined;
494
507
  MozUserSelect?: import("csstype").Property.UserSelect | undefined;
@@ -668,7 +681,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
668
681
  MozBorderImage?: import("csstype").Property.BorderImage | undefined;
669
682
  MozColumnRule?: import("csstype").Property.ColumnRule<string | number> | undefined;
670
683
  MozColumns?: import("csstype").Property.Columns<string | number> | undefined;
671
- MozTransition?: import("csstype").Property.Transition<string & {}> | undefined;
684
+ MozOutlineRadius?: import("csstype").Property.MozOutlineRadius<string | number> | undefined;
672
685
  msContentZoomLimit?: import("csstype").Property.MsContentZoomLimit | undefined;
673
686
  msContentZoomSnap?: import("csstype").Property.MsContentZoomSnap | undefined;
674
687
  msFlex?: import("csstype").Property.Flex<string | number> | undefined;
@@ -726,6 +739,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
726
739
  KhtmlLineBreak?: import("csstype").Property.LineBreak | undefined;
727
740
  KhtmlOpacity?: import("csstype").Property.Opacity | undefined;
728
741
  KhtmlUserSelect?: import("csstype").Property.UserSelect | undefined;
742
+ MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
729
743
  MozBackgroundClip?: import("csstype").Property.BackgroundClip | undefined;
730
744
  MozBackgroundInlinePolicy?: import("csstype").Property.BoxDecorationBreak | undefined;
731
745
  MozBackgroundOrigin?: import("csstype").Property.BackgroundOrigin | undefined;
@@ -747,17 +761,22 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
747
761
  MozOpacity?: import("csstype").Property.Opacity | undefined;
748
762
  MozOutline?: import("csstype").Property.Outline<string | number> | undefined;
749
763
  MozOutlineColor?: import("csstype").Property.OutlineColor | undefined;
750
- MozOutlineRadius?: import("csstype").Property.MozOutlineRadius<string | number> | undefined;
751
- MozOutlineRadiusBottomleft?: import("csstype").Property.MozOutlineRadiusBottomleft<string | number> | undefined;
752
- MozOutlineRadiusBottomright?: import("csstype").Property.MozOutlineRadiusBottomright<string | number> | undefined;
753
- MozOutlineRadiusTopleft?: import("csstype").Property.MozOutlineRadiusTopleft<string | number> | undefined;
754
- MozOutlineRadiusTopright?: import("csstype").Property.MozOutlineRadiusTopright<string | number> | undefined;
755
764
  MozOutlineStyle?: import("csstype").Property.OutlineStyle | undefined;
756
765
  MozOutlineWidth?: import("csstype").Property.OutlineWidth<string | number> | undefined;
766
+ MozPerspective?: import("csstype").Property.Perspective<string | number> | undefined;
767
+ MozPerspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
757
768
  MozTextAlignLast?: import("csstype").Property.TextAlignLast | undefined;
758
769
  MozTextDecorationColor?: import("csstype").Property.TextDecorationColor | undefined;
759
770
  MozTextDecorationLine?: import("csstype").Property.TextDecorationLine | undefined;
760
771
  MozTextDecorationStyle?: import("csstype").Property.TextDecorationStyle | undefined;
772
+ MozTransform?: import("csstype").Property.Transform | undefined;
773
+ MozTransformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
774
+ MozTransformStyle?: import("csstype").Property.TransformStyle | undefined;
775
+ MozTransition?: import("csstype").Property.Transition<string & {}> | undefined;
776
+ MozTransitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
777
+ MozTransitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
778
+ MozTransitionProperty?: import("csstype").Property.TransitionProperty | undefined;
779
+ MozTransitionTimingFunction?: import("csstype").Property.TransitionTimingFunction | undefined;
761
780
  MozUserInput?: import("csstype").Property.MozUserInput | undefined;
762
781
  msImeMode?: import("csstype").Property.ImeMode | undefined;
763
782
  OAnimation?: import("csstype").Property.Animation<string & {}> | undefined;
@@ -790,8 +809,6 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
790
809
  WebkitBoxOrdinalGroup?: import("csstype").Property.BoxOrdinalGroup | undefined;
791
810
  WebkitBoxOrient?: import("csstype").Property.BoxOrient | undefined;
792
811
  WebkitBoxPack?: import("csstype").Property.BoxPack | undefined;
793
- WebkitScrollSnapPointsX?: import("csstype").Property.ScrollSnapPointsX | undefined;
794
- WebkitScrollSnapPointsY?: import("csstype").Property.ScrollSnapPointsY | undefined;
795
812
  alignmentBaseline?: import("csstype").Property.AlignmentBaseline | undefined;
796
813
  baselineShift?: import("csstype").Property.BaselineShift<string | number> | undefined;
797
814
  clipRule?: import("csstype").Property.ClipRule | undefined;
package/lib/util.d.ts CHANGED
@@ -30,7 +30,17 @@ export declare function JSONDuplicate(json: any, id: string, reIds?: {
30
30
  [propKey: string]: string;
31
31
  }): any;
32
32
  /**
33
- * 用于复制或粘贴的时候重新生成
33
+ * 用于复制或粘贴的时候重新生成组件id
34
+ * 【备注】需考虑以下两类使用场景:
35
+ * 1. 组件模板插入到页面中,组件模板含事件动作,事件动作中的componentId需替换成最新的;
36
+ * 2. 页面中的复制&粘贴,复制的组件含事件动作,且componentId关联的是页面其他组件,此时无需重置componentId。
37
+ * 【逻辑说明】
38
+ * 1. 第一次遍历,确保重置所有组件id,并记录下当前所有组件的新旧id对应关系(reIds);
39
+ * 2. 第一次遍历中,如果遇到事件动作,则将componentId替换成reIds中的新id,如果reIds中不存在对应的id,则重置componentId,并记录在reComptIds中;
40
+ * 3. 完成第一次遍历后,检测reComptIds中是否存在reIds中没有的组件id(识别第2种场景),并将不在reIds种的id记录到resetComptIds,然后开始第二次遍历;
41
+ * 4. 第二次遍历,恢复resetComptIds中的componentId。
42
+ * 【额外说明】
43
+ * 1. 仅第二类使用场景会触发第二次遍历,如果是第一类使用情况或者其他通用场景,则不会触发第二次遍历。
34
44
  * @param json
35
45
  */
36
46
  export declare function reGenerateID(json: any, reIds?: {
@@ -125,6 +135,7 @@ export declare function getThemeConfig(): any;
125
135
  * @returns 处理后的数据
126
136
  */
127
137
  export declare function style2ThemeCss(data: any): any;
138
+ export declare function clearDirtyCssKey(data: any): any;
128
139
  /**
129
140
  * 从amis数据域中取变量数据
130
141
  * @param node
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-editor-core",
3
- "version": "5.7.0",
3
+ "version": "6.1.0",
4
4
  "description": "amis 可视化编辑器",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",