amis-editor-core 5.2.5 → 5.4.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.
Files changed (69) hide show
  1. package/esm/builder/DSBuilder.d.ts +4 -3
  2. package/esm/component/ClassNameControl.d.ts +1 -1
  3. package/esm/component/ContainerWrapper.d.ts +2 -2
  4. package/esm/component/Editor.d.ts +6 -2
  5. package/esm/component/IFramePreview.d.ts +1 -2
  6. package/esm/component/MiniEditor.d.ts +0 -1
  7. package/esm/component/Panel/RenderersPanel.d.ts +1 -1
  8. package/esm/component/Preview.d.ts +1 -2
  9. package/esm/component/RegionWrapper.d.ts +12 -12
  10. package/esm/component/RendererThumb.d.ts +1 -1
  11. package/esm/component/ScaffoldModal.d.ts +2 -10
  12. package/esm/component/SubEditor.d.ts +1 -1
  13. package/esm/component/VRenderer.d.ts +18 -30
  14. package/esm/component/factory.d.ts +2 -3
  15. package/esm/index.d.ts +2 -1
  16. package/esm/index.js +2 -2
  17. package/esm/manager.d.ts +18 -17
  18. package/esm/mocker.d.ts +1 -1
  19. package/esm/plugin/AvailableRenderers.d.ts +1 -0
  20. package/esm/plugin/BasicToolbar.d.ts +1 -0
  21. package/esm/plugin/Code.d.ts +1 -0
  22. package/esm/plugin/DataDebug.d.ts +1 -1
  23. package/esm/plugin/ErrorRenderer.d.ts +1 -0
  24. package/esm/plugin/Name.d.ts +1 -0
  25. package/esm/plugin/Outline.d.ts +1 -0
  26. package/esm/plugin/Unknown.d.ts +1 -0
  27. package/esm/plugin.d.ts +8 -3
  28. package/esm/store/editor.d.ts +59 -56
  29. package/esm/store/node.d.ts +3 -4
  30. package/esm/tpl.d.ts +37 -17
  31. package/esm/util.d.ts +9 -8
  32. package/esm/variable.d.ts +1 -1
  33. package/lib/builder/DSBuilder.d.ts +4 -3
  34. package/lib/component/ClassNameControl.d.ts +1 -1
  35. package/lib/component/ContainerWrapper.d.ts +2 -2
  36. package/lib/component/Editor.d.ts +6 -2
  37. package/lib/component/IFramePreview.d.ts +1 -2
  38. package/lib/component/MiniEditor.d.ts +0 -1
  39. package/lib/component/Panel/RenderersPanel.d.ts +1 -1
  40. package/lib/component/Preview.d.ts +1 -2
  41. package/lib/component/RegionWrapper.d.ts +12 -12
  42. package/lib/component/RendererThumb.d.ts +1 -1
  43. package/lib/component/ScaffoldModal.d.ts +2 -10
  44. package/lib/component/SubEditor.d.ts +1 -1
  45. package/lib/component/VRenderer.d.ts +18 -30
  46. package/lib/component/base/BackTop.d.ts +1 -1
  47. package/lib/component/factory.d.ts +2 -3
  48. package/lib/editor.js +2 -2
  49. package/lib/index.d.ts +2 -1
  50. package/lib/index.js +2 -2
  51. package/lib/manager.d.ts +18 -17
  52. package/lib/mocker.d.ts +1 -1
  53. package/lib/plugin/AvailableRenderers.d.ts +1 -0
  54. package/lib/plugin/BasicToolbar.d.ts +1 -0
  55. package/lib/plugin/Code.d.ts +1 -0
  56. package/lib/plugin/DataDebug.d.ts +1 -1
  57. package/lib/plugin/ErrorRenderer.d.ts +1 -0
  58. package/lib/plugin/Name.d.ts +1 -0
  59. package/lib/plugin/Outline.d.ts +1 -0
  60. package/lib/plugin/Unknown.d.ts +1 -0
  61. package/lib/plugin.d.ts +8 -3
  62. package/lib/store/editor.d.ts +59 -57
  63. package/lib/store/node.d.ts +3 -4
  64. package/lib/style.css +1 -1
  65. package/lib/tpl.d.ts +37 -17
  66. package/lib/util.d.ts +10 -9
  67. package/lib/variable.d.ts +1 -1
  68. package/package.json +9 -6
  69. package/static/nav-mode.gif +0 -0
package/lib/tpl.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { SchemaObject } from 'amis/lib/Schema';
2
+ import type { SchemaObject } from 'amis';
3
3
  export declare function getSchemaTpl(name: string, patch?: object, rendererSchema?: any): any;
4
4
  export declare function setSchemaTpl(name: string, value: any): void;
5
5
  export declare function valuePipeOut(value: any): any;
@@ -99,6 +99,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
99
99
  breakInside?: import("csstype").Property.BreakInside | undefined;
100
100
  captionSide?: import("csstype").Property.CaptionSide | undefined;
101
101
  caretColor?: import("csstype").Property.CaretColor | undefined;
102
+ caretShape?: import("csstype").Property.CaretShape | undefined;
102
103
  clear?: import("csstype").Property.Clear | undefined;
103
104
  clipPath?: import("csstype").Property.ClipPath | undefined;
104
105
  color?: import("csstype").Property.Color | undefined;
@@ -113,6 +114,12 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
113
114
  columnSpan?: import("csstype").Property.ColumnSpan | undefined;
114
115
  columnWidth?: import("csstype").Property.ColumnWidth<string | number> | undefined;
115
116
  contain?: import("csstype").Property.Contain | undefined;
117
+ containIntrinsicBlockSize?: import("csstype").Property.ContainIntrinsicBlockSize<string | number> | undefined;
118
+ containIntrinsicHeight?: import("csstype").Property.ContainIntrinsicHeight<string | number> | undefined;
119
+ containIntrinsicInlineSize?: import("csstype").Property.ContainIntrinsicInlineSize<string | number> | undefined;
120
+ containIntrinsicWidth?: import("csstype").Property.ContainIntrinsicWidth<string | number> | undefined;
121
+ containerName?: import("csstype").Property.ContainerName | undefined;
122
+ containerType?: import("csstype").Property.ContainerType | undefined;
116
123
  content?: import("csstype").Property.Content | undefined;
117
124
  contentVisibility?: import("csstype").Property.ContentVisibility | undefined;
118
125
  counterIncrement?: import("csstype").Property.CounterIncrement | undefined;
@@ -134,6 +141,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
134
141
  fontKerning?: import("csstype").Property.FontKerning | undefined;
135
142
  fontLanguageOverride?: import("csstype").Property.FontLanguageOverride | undefined;
136
143
  fontOpticalSizing?: import("csstype").Property.FontOpticalSizing | undefined;
144
+ fontPalette?: import("csstype").Property.FontPalette | undefined;
137
145
  fontSize: import("csstype").Property.FontSize<string | number>;
138
146
  fontSizeAdjust?: import("csstype").Property.FontSizeAdjust | undefined;
139
147
  fontSmooth?: import("csstype").Property.FontSmooth<string | number> | undefined;
@@ -144,6 +152,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
144
152
  fontVariantAlternates?: import("csstype").Property.FontVariantAlternates | undefined;
145
153
  fontVariantCaps?: import("csstype").Property.FontVariantCaps | undefined;
146
154
  fontVariantEastAsian?: import("csstype").Property.FontVariantEastAsian | undefined;
155
+ fontVariantEmoji?: import("csstype").Property.FontVariantEmoji | undefined;
147
156
  fontVariantLigatures?: import("csstype").Property.FontVariantLigatures | undefined;
148
157
  fontVariantNumeric?: import("csstype").Property.FontVariantNumeric | undefined;
149
158
  fontVariantPosition?: import("csstype").Property.FontVariantPosition | undefined;
@@ -163,6 +172,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
163
172
  hangingPunctuation?: import("csstype").Property.HangingPunctuation | undefined;
164
173
  height?: import("csstype").Property.Height<string | number> | undefined;
165
174
  hyphenateCharacter?: import("csstype").Property.HyphenateCharacter | undefined;
175
+ hyphenateLimitChars?: import("csstype").Property.HyphenateLimitChars | undefined;
166
176
  hyphens?: import("csstype").Property.Hyphens | undefined;
167
177
  imageOrientation?: import("csstype").Property.ImageOrientation | undefined;
168
178
  imageRendering?: import("csstype").Property.ImageRendering | undefined;
@@ -170,11 +180,8 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
170
180
  initialLetter?: import("csstype").Property.InitialLetter | undefined;
171
181
  inlineSize?: import("csstype").Property.InlineSize<string | number> | undefined;
172
182
  inputSecurity?: import("csstype").Property.InputSecurity | undefined;
173
- inset?: import("csstype").Property.Inset<string | number> | undefined;
174
- insetBlock?: import("csstype").Property.InsetBlock<string | number> | undefined;
175
183
  insetBlockEnd?: import("csstype").Property.InsetBlockEnd<string | number> | undefined;
176
184
  insetBlockStart?: import("csstype").Property.InsetBlockStart<string | number> | undefined;
177
- insetInline?: import("csstype").Property.InsetInline<string | number> | undefined;
178
185
  insetInlineEnd?: import("csstype").Property.InsetInlineEnd<string | number> | undefined;
179
186
  insetInlineStart?: import("csstype").Property.InsetInlineStart<string | number> | undefined;
180
187
  isolation?: import("csstype").Property.Isolation | undefined;
@@ -190,16 +197,15 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
190
197
  listStyleImage?: import("csstype").Property.ListStyleImage | undefined;
191
198
  listStylePosition?: import("csstype").Property.ListStylePosition | undefined;
192
199
  listStyleType?: import("csstype").Property.ListStyleType | undefined;
193
- marginBlock?: import("csstype").Property.MarginBlock<string | number> | undefined;
194
200
  marginBlockEnd?: import("csstype").Property.MarginBlockEnd<string | number> | undefined;
195
201
  marginBlockStart?: import("csstype").Property.MarginBlockStart<string | number> | undefined;
196
202
  marginBottom?: import("csstype").Property.MarginBottom<string | number> | undefined;
197
- marginInline?: import("csstype").Property.MarginInline<string | number> | undefined;
198
203
  marginInlineEnd?: import("csstype").Property.MarginInlineEnd<string | number> | undefined;
199
204
  marginInlineStart?: import("csstype").Property.MarginInlineStart<string | number> | undefined;
200
205
  marginLeft?: import("csstype").Property.MarginLeft<string | number> | undefined;
201
206
  marginRight?: import("csstype").Property.MarginRight<string | number> | undefined;
202
207
  marginTop?: import("csstype").Property.MarginTop<string | number> | undefined;
208
+ marginTrim?: import("csstype").Property.MarginTrim | undefined;
203
209
  maskBorderMode?: import("csstype").Property.MaskBorderMode | undefined;
204
210
  maskBorderOutset?: import("csstype").Property.MaskBorderOutset<string | number> | undefined;
205
211
  maskBorderRepeat?: import("csstype").Property.MaskBorderRepeat | undefined;
@@ -236,6 +242,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
236
242
  offsetAnchor?: import("csstype").Property.OffsetAnchor<string | number> | undefined;
237
243
  offsetDistance?: import("csstype").Property.OffsetDistance<string | number> | undefined;
238
244
  offsetPath?: import("csstype").Property.OffsetPath | undefined;
245
+ offsetPosition?: import("csstype").Property.OffsetPosition<string | number> | undefined;
239
246
  offsetRotate?: import("csstype").Property.OffsetRotate | undefined;
240
247
  offsetRotation?: import("csstype").Property.OffsetRotate | undefined;
241
248
  opacity?: import("csstype").Property.Opacity | undefined;
@@ -257,23 +264,21 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
257
264
  overscrollBehaviorInline?: import("csstype").Property.OverscrollBehaviorInline | undefined;
258
265
  overscrollBehaviorX?: import("csstype").Property.OverscrollBehaviorX | undefined;
259
266
  overscrollBehaviorY?: import("csstype").Property.OverscrollBehaviorY | undefined;
260
- paddingBlock?: import("csstype").Property.PaddingBlock<string | number> | undefined;
261
267
  paddingBlockEnd?: import("csstype").Property.PaddingBlockEnd<string | number> | undefined;
262
268
  paddingBlockStart?: import("csstype").Property.PaddingBlockStart<string | number> | undefined;
263
269
  paddingBottom?: import("csstype").Property.PaddingBottom<string | number> | undefined;
264
- paddingInline?: import("csstype").Property.PaddingInline<string | number> | undefined;
265
270
  paddingInlineEnd?: import("csstype").Property.PaddingInlineEnd<string | number> | undefined;
266
271
  paddingInlineStart?: import("csstype").Property.PaddingInlineStart<string | number> | undefined;
267
272
  paddingLeft?: import("csstype").Property.PaddingLeft<string | number> | undefined;
268
273
  paddingRight?: import("csstype").Property.PaddingRight<string | number> | undefined;
269
274
  paddingTop?: import("csstype").Property.PaddingTop<string | number> | undefined;
275
+ page?: import("csstype").Property.Page | undefined;
270
276
  pageBreakAfter?: import("csstype").Property.PageBreakAfter | undefined;
271
277
  pageBreakBefore?: import("csstype").Property.PageBreakBefore | undefined;
272
278
  pageBreakInside?: import("csstype").Property.PageBreakInside | undefined;
273
279
  paintOrder?: import("csstype").Property.PaintOrder | undefined;
274
280
  perspective?: import("csstype").Property.Perspective<string | number> | undefined;
275
281
  perspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
276
- placeContent?: import("csstype").Property.PlaceContent | undefined;
277
282
  pointerEvents?: import("csstype").Property.PointerEvents | undefined;
278
283
  position?: import("csstype").Property.Position | undefined;
279
284
  printColorAdjust?: import("csstype").Property.PrintColorAdjust | undefined;
@@ -287,36 +292,31 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
287
292
  rubyPosition?: import("csstype").Property.RubyPosition | undefined;
288
293
  scale?: import("csstype").Property.Scale | undefined;
289
294
  scrollBehavior?: import("csstype").Property.ScrollBehavior | undefined;
290
- scrollMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
291
- scrollMarginBlock?: import("csstype").Property.ScrollMarginBlock<string | number> | undefined;
292
295
  scrollMarginBlockEnd?: import("csstype").Property.ScrollMarginBlockEnd<string | number> | undefined;
293
296
  scrollMarginBlockStart?: import("csstype").Property.ScrollMarginBlockStart<string | number> | undefined;
294
297
  scrollMarginBottom?: import("csstype").Property.ScrollMarginBottom<string | number> | undefined;
295
- scrollMarginInline?: import("csstype").Property.ScrollMarginInline<string | number> | undefined;
296
298
  scrollMarginInlineEnd?: import("csstype").Property.ScrollMarginInlineEnd<string | number> | undefined;
297
299
  scrollMarginInlineStart?: import("csstype").Property.ScrollMarginInlineStart<string | number> | undefined;
298
300
  scrollMarginLeft?: import("csstype").Property.ScrollMarginLeft<string | number> | undefined;
299
301
  scrollMarginRight?: import("csstype").Property.ScrollMarginRight<string | number> | undefined;
300
302
  scrollMarginTop?: import("csstype").Property.ScrollMarginTop<string | number> | undefined;
301
- scrollPadding?: import("csstype").Property.ScrollPadding<string | number> | undefined;
302
- scrollPaddingBlock?: import("csstype").Property.ScrollPaddingBlock<string | number> | undefined;
303
303
  scrollPaddingBlockEnd?: import("csstype").Property.ScrollPaddingBlockEnd<string | number> | undefined;
304
304
  scrollPaddingBlockStart?: import("csstype").Property.ScrollPaddingBlockStart<string | number> | undefined;
305
305
  scrollPaddingBottom?: import("csstype").Property.ScrollPaddingBottom<string | number> | undefined;
306
- scrollPaddingInline?: import("csstype").Property.ScrollPaddingInline<string | number> | undefined;
307
306
  scrollPaddingInlineEnd?: import("csstype").Property.ScrollPaddingInlineEnd<string | number> | undefined;
308
307
  scrollPaddingInlineStart?: import("csstype").Property.ScrollPaddingInlineStart<string | number> | undefined;
309
308
  scrollPaddingLeft?: import("csstype").Property.ScrollPaddingLeft<string | number> | undefined;
310
309
  scrollPaddingRight?: import("csstype").Property.ScrollPaddingRight<string | number> | undefined;
311
310
  scrollPaddingTop?: import("csstype").Property.ScrollPaddingTop<string | number> | undefined;
312
311
  scrollSnapAlign?: import("csstype").Property.ScrollSnapAlign | undefined;
313
- scrollSnapMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
314
312
  scrollSnapMarginBottom?: import("csstype").Property.ScrollMarginBottom<string | number> | undefined;
315
313
  scrollSnapMarginLeft?: import("csstype").Property.ScrollMarginLeft<string | number> | undefined;
316
314
  scrollSnapMarginRight?: import("csstype").Property.ScrollMarginRight<string | number> | undefined;
317
315
  scrollSnapMarginTop?: import("csstype").Property.ScrollMarginTop<string | number> | undefined;
318
316
  scrollSnapStop?: import("csstype").Property.ScrollSnapStop | undefined;
319
317
  scrollSnapType?: import("csstype").Property.ScrollSnapType | undefined;
318
+ scrollTimelineAxis?: import("csstype").Property.ScrollTimelineAxis | undefined;
319
+ scrollTimelineName?: import("csstype").Property.ScrollTimelineName | undefined;
320
320
  scrollbarColor?: import("csstype").Property.ScrollbarColor | undefined;
321
321
  scrollbarGutter?: import("csstype").Property.ScrollbarGutter | undefined;
322
322
  scrollbarWidth?: import("csstype").Property.ScrollbarWidth | undefined;
@@ -361,6 +361,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
361
361
  unicodeBidi?: import("csstype").Property.UnicodeBidi | undefined;
362
362
  userSelect?: import("csstype").Property.UserSelect | undefined;
363
363
  verticalAlign?: import("csstype").Property.VerticalAlign<string | number> | undefined;
364
+ viewTransitionName?: import("csstype").Property.ViewTransitionName | undefined;
364
365
  visibility?: import("csstype").Property.Visibility | undefined;
365
366
  whiteSpace?: import("csstype").Property.WhiteSpace | undefined;
366
367
  widows?: import("csstype").Property.Widows | undefined;
@@ -392,8 +393,11 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
392
393
  borderStyle?: import("csstype").Property.BorderStyle | undefined;
393
394
  borderTop?: import("csstype").Property.BorderTop<string | number> | undefined;
394
395
  borderWidth?: import("csstype").Property.BorderWidth<string | number> | undefined;
396
+ caret?: import("csstype").Property.Caret | undefined;
395
397
  columnRule?: import("csstype").Property.ColumnRule<string | number> | undefined;
396
398
  columns?: import("csstype").Property.Columns<string | number> | undefined;
399
+ containIntrinsicSize?: import("csstype").Property.ContainIntrinsicSize<string | number> | undefined;
400
+ container?: import("csstype").Property.Container | undefined;
397
401
  flex?: import("csstype").Property.Flex<string | number> | undefined;
398
402
  flexFlow?: import("csstype").Property.FlexFlow | undefined;
399
403
  font?: import("csstype").Property.Font | undefined;
@@ -403,9 +407,14 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
403
407
  gridColumn?: import("csstype").Property.GridColumn | undefined;
404
408
  gridRow?: import("csstype").Property.GridRow | undefined;
405
409
  gridTemplate?: import("csstype").Property.GridTemplate | undefined;
410
+ inset?: import("csstype").Property.Inset<string | number> | undefined;
411
+ insetBlock?: import("csstype").Property.InsetBlock<string | number> | undefined;
412
+ insetInline?: import("csstype").Property.InsetInline<string | number> | undefined;
406
413
  lineClamp?: import("csstype").Property.LineClamp | undefined;
407
414
  listStyle?: import("csstype").Property.ListStyle | undefined;
408
415
  margin?: import("csstype").Property.Margin<string | number> | undefined;
416
+ marginBlock?: import("csstype").Property.MarginBlock<string | number> | undefined;
417
+ marginInline?: import("csstype").Property.MarginInline<string | number> | undefined;
409
418
  mask?: import("csstype").Property.Mask<string | number> | undefined;
410
419
  maskBorder?: import("csstype").Property.MaskBorder | undefined;
411
420
  motion?: import("csstype").Property.Offset<string | number> | undefined;
@@ -414,8 +423,19 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
414
423
  overflow?: import("csstype").Property.Overflow | undefined;
415
424
  overscrollBehavior?: import("csstype").Property.OverscrollBehavior | undefined;
416
425
  padding?: import("csstype").Property.Padding<string | number> | undefined;
426
+ paddingBlock?: import("csstype").Property.PaddingBlock<string | number> | undefined;
427
+ paddingInline?: import("csstype").Property.PaddingInline<string | number> | undefined;
428
+ placeContent?: import("csstype").Property.PlaceContent | undefined;
417
429
  placeItems?: import("csstype").Property.PlaceItems | undefined;
418
430
  placeSelf?: import("csstype").Property.PlaceSelf | undefined;
431
+ scrollMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
432
+ scrollMarginBlock?: import("csstype").Property.ScrollMarginBlock<string | number> | undefined;
433
+ scrollMarginInline?: import("csstype").Property.ScrollMarginInline<string | number> | undefined;
434
+ scrollPadding?: import("csstype").Property.ScrollPadding<string | number> | undefined;
435
+ scrollPaddingBlock?: import("csstype").Property.ScrollPaddingBlock<string | number> | undefined;
436
+ scrollPaddingInline?: import("csstype").Property.ScrollPaddingInline<string | number> | undefined;
437
+ scrollSnapMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
438
+ scrollTimeline?: import("csstype").Property.ScrollTimeline | undefined;
419
439
  textDecoration?: import("csstype").Property.TextDecoration<string | number> | undefined;
420
440
  textEmphasis?: import("csstype").Property.TextEmphasis | undefined;
421
441
  transition?: import("csstype").Property.Transition<string & {}> | undefined;
@@ -429,6 +449,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
429
449
  MozAnimationTimingFunction?: import("csstype").Property.AnimationTimingFunction | undefined;
430
450
  MozAppearance?: import("csstype").Property.MozAppearance | undefined;
431
451
  MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
452
+ MozBinding?: import("csstype").Property.MozBinding | undefined;
432
453
  MozBorderBottomColors?: import("csstype").Property.MozBorderBottomColors | undefined;
433
454
  MozBorderEndColor?: import("csstype").Property.BorderInlineEndColor | undefined;
434
455
  MozBorderEndStyle?: import("csstype").Property.BorderInlineEndStyle | undefined;
@@ -709,7 +730,6 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
709
730
  MozBackgroundInlinePolicy?: import("csstype").Property.BoxDecorationBreak | undefined;
710
731
  MozBackgroundOrigin?: import("csstype").Property.BackgroundOrigin | undefined;
711
732
  MozBackgroundSize?: import("csstype").Property.BackgroundSize<string | number> | undefined;
712
- MozBinding?: import("csstype").Property.MozBinding | undefined;
713
733
  MozBorderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
714
734
  MozBorderRadiusBottomleft?: import("csstype").Property.BorderBottomLeftRadius<string | number> | undefined;
715
735
  MozBorderRadiusBottomright?: import("csstype").Property.BorderBottomRightRadius<string | number> | undefined;
package/lib/util.d.ts CHANGED
@@ -1,11 +1,9 @@
1
- /**
2
- * @file 功能类函数集合。
3
- */
4
- import { utils } from 'amis';
5
1
  import { Diff } from 'deep-diff';
6
2
  import type { Schema } from 'amis';
7
- declare const guid: typeof utils.guid, omitControls: typeof utils.omitControls, isObjectShallowModified: typeof utils.isObjectShallowModified, cloneObject: typeof utils.cloneObject, anyChanged: typeof utils.anyChanged, noop: typeof utils.noop, makeHorizontalDeeper: typeof utils.makeHorizontalDeeper, isEmpty: typeof utils.isEmpty, eachTree: typeof utils.eachTree, createObject: typeof utils.createObject;
3
+ declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
8
4
  export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
5
+ export declare let themeConfig: any;
6
+ export declare let themeOptionsData: any;
9
7
  export declare function __uri(id: string): string;
10
8
  export declare function cleanUndefined(obj: any): any;
11
9
  /**
@@ -16,7 +14,7 @@ export declare function cleanUndefined(obj: any): any;
16
14
  export declare function JSONPipeIn(obj: any): any;
17
15
  export declare function JSONPipeOut(obj: any, filterHiddenProps?: boolean | ((key: string, prop: any) => boolean)): any;
18
16
  /**
19
- * 如果存在css属性,则给对应的className加上name
17
+ * 如果存在themeCss属性,则给对应的className加上name
20
18
  */
21
19
  export declare function addStyleClassName(obj: Schema): Schema;
22
20
  export declare function JSONGetByPath(json: any, paths: Array<string>, stacks?: Array<any>): any;
@@ -56,11 +54,11 @@ export declare function filterSchemaForConfig(schema: any, valueWithConfig?: any
56
54
  */
57
55
  export declare function filterSchemaForEditor(schema: any): any;
58
56
  export declare function blackList(list: Array<string>): (str: string) => boolean;
59
- export declare function sortByList(list: Array<string>, attr: string | Function): (a: any, b: any) => 1 | -1 | 0;
57
+ export declare function sortByList(list: Array<string>, attr: string | Function): (a: any, b: any) => 0 | 1 | -1;
60
58
  export declare function persistGet(key: string, defaultValue?: any): any;
61
59
  export declare function persistSet(key: string, value: any): void;
62
60
  export declare function normalizeId(id: string): string;
63
- export declare const autobind: typeof import("amis").autobindMethod;
61
+ export declare const autobind: any;
64
62
  export declare function addDragingClass(el: HTMLElement): void;
65
63
  export declare function removeDragingClass(el: HTMLElement): void;
66
64
  export declare function camelize(str: string): string;
@@ -86,7 +84,7 @@ export declare function isString(obj: any): boolean;
86
84
  * 判断是否是对象类型
87
85
  * */
88
86
  export declare function isObject(curObj: any): boolean;
89
- export declare function jsonToJsonSchema(json?: any): any;
87
+ export declare function jsonToJsonSchema(json?: any, titleBuilder?: (type: string, key: string) => string, maxDepth?: number): any;
90
88
  /**
91
89
  * 生成节点id
92
90
  */
@@ -120,3 +118,6 @@ export declare function appTranslate(value?: string): any;
120
118
  * 判断是否需要给组件增加填充占位样式
121
119
  */
122
120
  export declare function needFillPlaceholder(curProps: any): boolean;
121
+ export declare function setThemeConfig(config: any): void;
122
+ export declare function setThemeDefaultData(data: any): any;
123
+ export declare function deleteThemeConfigData(data: any): any;
package/lib/variable.d.ts CHANGED
@@ -42,7 +42,7 @@ export declare class VariableManager {
42
42
  /**
43
43
  * 获取外部变量的上下文数据结构
44
44
  */
45
- getVariableContextSchema(): import("json-schema").JSONSchema7[];
45
+ getVariableContextSchema(): JSONSchema[];
46
46
  /**
47
47
  * 获取公式编辑器中变量的Option结构
48
48
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-editor-core",
3
- "version": "5.2.5",
3
+ "version": "5.4.0",
4
4
  "description": "amis 可视化编辑器",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",
@@ -15,21 +15,24 @@
15
15
  "import": "./esm/*"
16
16
  },
17
17
  "./scss/*": {
18
+ "style": "./scss/*",
18
19
  "require": "./scss/*",
19
20
  "import": "./scss/*"
20
21
  },
22
+ "./lib/style.css": "./lib/style.css",
21
23
  "./*": {
22
24
  "require": "./lib/*.js",
23
25
  "import": "./esm/*.js"
24
26
  }
25
27
  },
26
28
  "scripts": {
27
- "test": "echo \"Error: no test specified\" && exit 1",
29
+ "test": "echo \"Warnings: no test specified\"",
28
30
  "build": "npm run clean-dist && NODE_ENV=production rollup -c",
29
31
  "clean-dist": "rimraf lib/* esm/*",
30
32
  "i18n:update": "npx i18n update --config=./i18nConfig.js",
31
33
  "i18n:translate": "npx i18n translate --config=./i18nConfig.js --l=en-US",
32
- "i18n:merge": "npx i18n merge --config=./i18nConfig.js --l=en-US"
34
+ "i18n:merge": "npx i18n merge --config=./i18nConfig.js --l=en-US",
35
+ "format": "prettier --write \"{src,scss}/**/**/*.{js,jsx,ts,tsx,vue,scss,json}\""
33
36
  },
34
37
  "keywords": [
35
38
  "amis",
@@ -80,8 +83,7 @@
80
83
  "concurrently": "^6.2.0",
81
84
  "css-loader": "^6.2.0",
82
85
  "faker": "^5.5.3",
83
- "husky": "^7.0.0",
84
- "lint-staged": "^12.1.2",
86
+ "i18n-command": "^0.0.23-beta.15",
85
87
  "mini-css-extract-plugin": "^2.3.0",
86
88
  "postcss-import": "^14.1.0",
87
89
  "postcss-minify": "^1.1.0",
@@ -110,9 +112,10 @@
110
112
  "amis": "*",
111
113
  "amis-core": "*",
112
114
  "amis-formula": "*",
115
+ "amis-theme-editor-helper": "*",
113
116
  "amis-ui": "*",
114
117
  "i18n-runtime": "*",
115
118
  "react": ">=16.8.6",
116
119
  "react-dom": ">=16.8.6"
117
120
  }
118
- }
121
+ }
Binary file