amis-editor-core 6.14.0-beta.8 → 7.0.0-next.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.
@@ -5,6 +5,7 @@
5
5
  import { IAnyModelType, Instance, SnapshotIn } from 'mobx-state-tree';
6
6
  import { RegionConfig, RendererInfo } from '../plugin';
7
7
  import React from 'react';
8
+ import type { RendererConfig } from 'amis-core';
8
9
  export declare const EditorNode: import("mobx-state-tree").IModelType<{
9
10
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
10
11
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -219,7 +220,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
219
220
  }): any;
220
221
  removeChild(child: any): void;
221
222
  toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
222
- patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined, ids?: Map<string, string>): void;
223
+ patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
223
224
  updateSchema(value: any): void;
224
225
  updateSchemaStyle(value: any): void;
225
226
  setComponent(value: any): void;
@@ -450,7 +451,7 @@ export declare const EditorNodeContext: React.Context<({
450
451
  }): any;
451
452
  removeChild(child: any): void;
452
453
  toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
453
- patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined, ids?: Map<string, string>): void;
454
+ patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
454
455
  updateSchema(value: any): void;
455
456
  updateSchemaStyle(value: any): void;
456
457
  setComponent(value: any): void;
@@ -680,7 +681,7 @@ export declare const EditorNodeContext: React.Context<({
680
681
  }): any;
681
682
  removeChild(child: any): void;
682
683
  toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
683
- patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined, ids?: Map<string, string>): void;
684
+ patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
684
685
  updateSchema(value: any): void;
685
686
  updateSchemaStyle(value: any): void;
686
687
  setComponent(value: any): void;
package/esm/tpl.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { SchemaObject } from 'amis';
3
2
  export declare function getSchemaTpl(name: string, patch?: object, options?: object): any;
4
3
  export declare function setSchemaTpl(name: string, value: any): void;
@@ -19,6 +18,9 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
19
18
  alignItems?: import("csstype").Property.AlignItems | undefined;
20
19
  alignSelf?: import("csstype").Property.AlignSelf | undefined;
21
20
  alignTracks?: import("csstype").Property.AlignTracks | undefined;
21
+ alignmentBaseline?: import("csstype").Property.AlignmentBaseline | undefined;
22
+ anchorName?: import("csstype").Property.AnchorName | undefined;
23
+ anchorScope?: import("csstype").Property.AnchorScope | undefined;
22
24
  animationComposition?: import("csstype").Property.AnimationComposition | undefined;
23
25
  animationDelay?: import("csstype").Property.AnimationDelay<string & {}> | undefined;
24
26
  animationDirection?: import("csstype").Property.AnimationDirection | undefined;
@@ -45,17 +47,14 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
45
47
  backgroundPositionY?: import("csstype").Property.BackgroundPositionY<string | number> | undefined;
46
48
  backgroundRepeat?: import("csstype").Property.BackgroundRepeat | undefined;
47
49
  backgroundSize?: import("csstype").Property.BackgroundSize<string | number> | undefined;
48
- blockOverflow?: import("csstype").Property.BlockOverflow | undefined;
50
+ baselineShift?: import("csstype").Property.BaselineShift<string | number> | undefined;
49
51
  blockSize?: import("csstype").Property.BlockSize<string | number> | undefined;
50
- borderBlockColor?: import("csstype").Property.BorderBlockColor | undefined;
51
52
  borderBlockEndColor?: import("csstype").Property.BorderBlockEndColor | undefined;
52
53
  borderBlockEndStyle?: import("csstype").Property.BorderBlockEndStyle | undefined;
53
54
  borderBlockEndWidth?: import("csstype").Property.BorderBlockEndWidth<string | number> | undefined;
54
55
  borderBlockStartColor?: import("csstype").Property.BorderBlockStartColor | undefined;
55
56
  borderBlockStartStyle?: import("csstype").Property.BorderBlockStartStyle | undefined;
56
57
  borderBlockStartWidth?: import("csstype").Property.BorderBlockStartWidth<string | number> | undefined;
57
- borderBlockStyle?: import("csstype").Property.BorderBlockStyle | undefined;
58
- borderBlockWidth?: import("csstype").Property.BorderBlockWidth<string | number> | undefined;
59
58
  borderBottomColor?: import("csstype").Property.BorderBottomColor | undefined;
60
59
  borderBottomLeftRadius?: import("csstype").Property.BorderBottomLeftRadius<string | number> | undefined;
61
60
  borderBottomRightRadius?: import("csstype").Property.BorderBottomRightRadius<string | number> | undefined;
@@ -69,15 +68,12 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
69
68
  borderImageSlice?: import("csstype").Property.BorderImageSlice | undefined;
70
69
  borderImageSource?: import("csstype").Property.BorderImageSource | undefined;
71
70
  borderImageWidth?: import("csstype").Property.BorderImageWidth<string | number> | undefined;
72
- borderInlineColor?: import("csstype").Property.BorderInlineColor | undefined;
73
71
  borderInlineEndColor?: import("csstype").Property.BorderInlineEndColor | undefined;
74
72
  borderInlineEndStyle?: import("csstype").Property.BorderInlineEndStyle | undefined;
75
73
  borderInlineEndWidth?: import("csstype").Property.BorderInlineEndWidth<string | number> | undefined;
76
74
  borderInlineStartColor?: import("csstype").Property.BorderInlineStartColor | undefined;
77
75
  borderInlineStartStyle?: import("csstype").Property.BorderInlineStartStyle | undefined;
78
76
  borderInlineStartWidth?: import("csstype").Property.BorderInlineStartWidth<string | number> | undefined;
79
- borderInlineStyle?: import("csstype").Property.BorderInlineStyle | undefined;
80
- borderInlineWidth?: import("csstype").Property.BorderInlineWidth<string | number> | undefined;
81
77
  borderLeftColor?: import("csstype").Property.BorderLeftColor | undefined;
82
78
  borderLeftStyle?: import("csstype").Property.BorderLeftStyle | undefined;
83
79
  borderLeftWidth?: import("csstype").Property.BorderLeftWidth<string | number> | undefined;
@@ -104,8 +100,10 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
104
100
  caretShape?: import("csstype").Property.CaretShape | undefined;
105
101
  clear?: import("csstype").Property.Clear | undefined;
106
102
  clipPath?: import("csstype").Property.ClipPath | undefined;
103
+ clipRule?: import("csstype").Property.ClipRule | undefined;
107
104
  color?: import("csstype").Property.Color | undefined;
108
105
  colorAdjust?: import("csstype").Property.PrintColorAdjust | undefined;
106
+ colorInterpolationFilters?: import("csstype").Property.ColorInterpolationFilters | undefined;
109
107
  colorScheme?: import("csstype").Property.ColorScheme | undefined;
110
108
  columnCount?: import("csstype").Property.ColumnCount | undefined;
111
109
  columnFill?: import("csstype").Property.ColumnFill | undefined;
@@ -128,9 +126,17 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
128
126
  counterReset?: import("csstype").Property.CounterReset | undefined;
129
127
  counterSet?: import("csstype").Property.CounterSet | undefined;
130
128
  cursor?: import("csstype").Property.Cursor | undefined;
129
+ cx?: import("csstype").Property.Cx<string | number> | undefined;
130
+ cy?: import("csstype").Property.Cy<string | number> | undefined;
131
+ d?: import("csstype").Property.D | undefined;
131
132
  direction?: import("csstype").Property.Direction | undefined;
132
133
  display?: import("csstype").Property.Display | undefined;
134
+ dominantBaseline?: import("csstype").Property.DominantBaseline | undefined;
133
135
  emptyCells?: import("csstype").Property.EmptyCells | undefined;
136
+ fieldSizing?: import("csstype").Property.FieldSizing | undefined;
137
+ fill?: import("csstype").Property.Fill | undefined;
138
+ fillOpacity?: import("csstype").Property.FillOpacity | undefined;
139
+ fillRule?: import("csstype").Property.FillRule | undefined;
134
140
  filter?: import("csstype").Property.Filter | undefined;
135
141
  flexBasis?: import("csstype").Property.FlexBasis<string | number> | undefined;
136
142
  flexDirection?: import("csstype").Property.FlexDirection | undefined;
@@ -138,6 +144,8 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
138
144
  flexShrink?: import("csstype").Property.FlexShrink | undefined;
139
145
  flexWrap?: import("csstype").Property.FlexWrap | undefined;
140
146
  float?: import("csstype").Property.Float | undefined;
147
+ floodColor?: import("csstype").Property.FloodColor | undefined;
148
+ floodOpacity?: import("csstype").Property.FloodOpacity | undefined;
141
149
  fontFamily?: import("csstype").Property.FontFamily | undefined;
142
150
  fontFeatureSettings?: import("csstype").Property.FontFeatureSettings | undefined;
143
151
  fontKerning?: import("csstype").Property.FontKerning | undefined;
@@ -147,7 +155,6 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
147
155
  fontSize: import("csstype").Property.FontSize<string | number>;
148
156
  fontSizeAdjust?: import("csstype").Property.FontSizeAdjust | undefined;
149
157
  fontSmooth?: import("csstype").Property.FontSmooth<string | number> | undefined;
150
- fontStretch?: import("csstype").Property.FontStretch | undefined;
151
158
  fontStyle?: import("csstype").Property.FontStyle | undefined;
152
159
  fontSynthesis?: import("csstype").Property.FontSynthesis | undefined;
153
160
  fontSynthesisPosition?: import("csstype").Property.FontSynthesisPosition | undefined;
@@ -164,6 +171,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
164
171
  fontVariantPosition?: import("csstype").Property.FontVariantPosition | undefined;
165
172
  fontVariationSettings?: import("csstype").Property.FontVariationSettings | undefined;
166
173
  fontWeight?: import("csstype").Property.FontWeight | undefined;
174
+ fontWidth?: import("csstype").Property.FontWidth | undefined;
167
175
  forcedColorAdjust?: import("csstype").Property.ForcedColorAdjust | undefined;
168
176
  gridAutoColumns?: import("csstype").Property.GridAutoColumns<string | number> | undefined;
169
177
  gridAutoFlow?: import("csstype").Property.GridAutoFlow | undefined;
@@ -184,12 +192,13 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
184
192
  imageRendering?: import("csstype").Property.ImageRendering | undefined;
185
193
  imageResolution?: import("csstype").Property.ImageResolution | undefined;
186
194
  initialLetter?: import("csstype").Property.InitialLetter | undefined;
195
+ initialLetterAlign?: import("csstype").Property.InitialLetterAlign | undefined;
187
196
  inlineSize?: import("csstype").Property.InlineSize<string | number> | undefined;
188
- inputSecurity?: import("csstype").Property.InputSecurity | undefined;
189
197
  insetBlockEnd?: import("csstype").Property.InsetBlockEnd<string | number> | undefined;
190
198
  insetBlockStart?: import("csstype").Property.InsetBlockStart<string | number> | undefined;
191
199
  insetInlineEnd?: import("csstype").Property.InsetInlineEnd<string | number> | undefined;
192
200
  insetInlineStart?: import("csstype").Property.InsetInlineStart<string | number> | undefined;
201
+ interpolateSize?: import("csstype").Property.InterpolateSize | undefined;
193
202
  isolation?: import("csstype").Property.Isolation | undefined;
194
203
  justifyContent?: import("csstype").Property.JustifyContent | undefined;
195
204
  justifyItems?: import("csstype").Property.JustifyItems | undefined;
@@ -197,6 +206,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
197
206
  justifyTracks?: import("csstype").Property.JustifyTracks | undefined;
198
207
  left?: import("csstype").Property.Left<string | number> | undefined;
199
208
  letterSpacing?: import("csstype").Property.LetterSpacing<string | number> | undefined;
209
+ lightingColor?: import("csstype").Property.LightingColor | undefined;
200
210
  lineBreak?: import("csstype").Property.LineBreak | undefined;
201
211
  lineHeight?: import("csstype").Property.LineHeight<string | number> | undefined;
202
212
  lineHeightStep?: import("csstype").Property.LineHeightStep<string | number> | undefined;
@@ -212,6 +222,10 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
212
222
  marginRight?: import("csstype").Property.MarginRight<string | number> | undefined;
213
223
  marginTop?: import("csstype").Property.MarginTop<string | number> | undefined;
214
224
  marginTrim?: import("csstype").Property.MarginTrim | undefined;
225
+ marker?: import("csstype").Property.Marker | undefined;
226
+ markerEnd?: import("csstype").Property.MarkerEnd | undefined;
227
+ markerMid?: import("csstype").Property.MarkerMid | undefined;
228
+ markerStart?: import("csstype").Property.MarkerStart | undefined;
215
229
  maskBorderMode?: import("csstype").Property.MaskBorderMode | undefined;
216
230
  maskBorderOutset?: import("csstype").Property.MaskBorderOutset<string | number> | undefined;
217
231
  maskBorderRepeat?: import("csstype").Property.MaskBorderRepeat | undefined;
@@ -246,6 +260,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
246
260
  motionRotation?: import("csstype").Property.OffsetRotate | undefined;
247
261
  objectFit?: import("csstype").Property.ObjectFit | undefined;
248
262
  objectPosition?: import("csstype").Property.ObjectPosition<string | number> | undefined;
263
+ objectViewBox?: import("csstype").Property.ObjectViewBox | undefined;
249
264
  offsetAnchor?: import("csstype").Property.OffsetAnchor<string | number> | undefined;
250
265
  offsetDistance?: import("csstype").Property.OffsetDistance<string | number> | undefined;
251
266
  offsetPath?: import("csstype").Property.OffsetPath | undefined;
@@ -281,25 +296,32 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
281
296
  paddingRight?: import("csstype").Property.PaddingRight<string | number> | undefined;
282
297
  paddingTop?: import("csstype").Property.PaddingTop<string | number> | undefined;
283
298
  page?: import("csstype").Property.Page | undefined;
284
- pageBreakAfter?: import("csstype").Property.PageBreakAfter | undefined;
285
- pageBreakBefore?: import("csstype").Property.PageBreakBefore | undefined;
286
- pageBreakInside?: import("csstype").Property.PageBreakInside | undefined;
287
299
  paintOrder?: import("csstype").Property.PaintOrder | undefined;
288
300
  perspective?: import("csstype").Property.Perspective<string | number> | undefined;
289
301
  perspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
290
302
  pointerEvents?: import("csstype").Property.PointerEvents | undefined;
291
303
  position?: import("csstype").Property.Position | undefined;
304
+ positionAnchor?: import("csstype").Property.PositionAnchor | undefined;
305
+ positionArea?: import("csstype").Property.PositionArea | undefined;
306
+ positionTryFallbacks?: import("csstype").Property.PositionTryFallbacks | undefined;
307
+ positionTryOrder?: import("csstype").Property.PositionTryOrder | undefined;
308
+ positionVisibility?: import("csstype").Property.PositionVisibility | undefined;
292
309
  printColorAdjust?: import("csstype").Property.PrintColorAdjust | undefined;
293
310
  quotes?: import("csstype").Property.Quotes | undefined;
311
+ r?: import("csstype").Property.R<string | number> | undefined;
294
312
  resize?: import("csstype").Property.Resize | undefined;
295
313
  right?: import("csstype").Property.Right<string | number> | undefined;
296
314
  rotate?: import("csstype").Property.Rotate | undefined;
297
315
  rowGap?: import("csstype").Property.RowGap<string | number> | undefined;
298
316
  rubyAlign?: import("csstype").Property.RubyAlign | undefined;
299
317
  rubyMerge?: import("csstype").Property.RubyMerge | undefined;
318
+ rubyOverhang?: import("csstype").Property.RubyOverhang | undefined;
300
319
  rubyPosition?: import("csstype").Property.RubyPosition | undefined;
320
+ rx?: import("csstype").Property.Rx<string | number> | undefined;
321
+ ry?: import("csstype").Property.Ry<string | number> | undefined;
301
322
  scale?: import("csstype").Property.Scale | undefined;
302
323
  scrollBehavior?: import("csstype").Property.ScrollBehavior | undefined;
324
+ scrollInitialTarget?: import("csstype").Property.ScrollInitialTarget | undefined;
303
325
  scrollMarginBlockEnd?: import("csstype").Property.ScrollMarginBlockEnd<string | number> | undefined;
304
326
  scrollMarginBlockStart?: import("csstype").Property.ScrollMarginBlockStart<string | number> | undefined;
305
327
  scrollMarginBottom?: import("csstype").Property.ScrollMarginBottom<string | number> | undefined;
@@ -331,10 +353,28 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
331
353
  shapeImageThreshold?: import("csstype").Property.ShapeImageThreshold | undefined;
332
354
  shapeMargin?: import("csstype").Property.ShapeMargin<string | number> | undefined;
333
355
  shapeOutside?: import("csstype").Property.ShapeOutside | undefined;
356
+ shapeRendering?: import("csstype").Property.ShapeRendering | undefined;
357
+ speakAs?: import("csstype").Property.SpeakAs | undefined;
358
+ stopColor?: import("csstype").Property.StopColor | undefined;
359
+ stopOpacity?: import("csstype").Property.StopOpacity | undefined;
360
+ stroke?: import("csstype").Property.Stroke | undefined;
361
+ strokeColor?: import("csstype").Property.StrokeColor | undefined;
362
+ strokeDasharray?: import("csstype").Property.StrokeDasharray<string | number> | undefined;
363
+ strokeDashoffset?: import("csstype").Property.StrokeDashoffset<string | number> | undefined;
364
+ strokeLinecap?: import("csstype").Property.StrokeLinecap | undefined;
365
+ strokeLinejoin?: import("csstype").Property.StrokeLinejoin | undefined;
366
+ strokeMiterlimit?: import("csstype").Property.StrokeMiterlimit | undefined;
367
+ strokeOpacity?: import("csstype").Property.StrokeOpacity | undefined;
368
+ strokeWidth?: import("csstype").Property.StrokeWidth<string | number> | undefined;
334
369
  tabSize?: import("csstype").Property.TabSize<string | number> | undefined;
335
370
  tableLayout?: import("csstype").Property.TableLayout | undefined;
336
371
  textAlign?: import("csstype").Property.TextAlign | undefined;
337
372
  textAlignLast?: import("csstype").Property.TextAlignLast | undefined;
373
+ textAnchor?: import("csstype").Property.TextAnchor | undefined;
374
+ textAutospace?: import("csstype").Property.TextAutospace | undefined;
375
+ textBox?: import("csstype").Property.TextBox | undefined;
376
+ textBoxEdge?: import("csstype").Property.TextBoxEdge | undefined;
377
+ textBoxTrim?: import("csstype").Property.TextBoxTrim | undefined;
338
378
  textCombineUpright?: import("csstype").Property.TextCombineUpright | undefined;
339
379
  textDecorationColor?: import("csstype").Property.TextDecorationColor | undefined;
340
380
  textDecorationLine?: import("csstype").Property.TextDecorationLine | undefined;
@@ -352,10 +392,12 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
352
392
  textRendering?: import("csstype").Property.TextRendering | undefined;
353
393
  textShadow?: import("csstype").Property.TextShadow | undefined;
354
394
  textSizeAdjust?: import("csstype").Property.TextSizeAdjust | undefined;
395
+ textSpacingTrim?: import("csstype").Property.TextSpacingTrim | undefined;
355
396
  textTransform?: import("csstype").Property.TextTransform | undefined;
356
397
  textUnderlineOffset?: import("csstype").Property.TextUnderlineOffset<string | number> | undefined;
357
398
  textUnderlinePosition?: import("csstype").Property.TextUnderlinePosition | undefined;
358
- textWrap?: import("csstype").Property.TextWrap | undefined;
399
+ textWrapMode?: import("csstype").Property.TextWrapMode | undefined;
400
+ textWrapStyle?: import("csstype").Property.TextWrapStyle | undefined;
359
401
  timelineScope?: import("csstype").Property.TimelineScope | undefined;
360
402
  top?: import("csstype").Property.Top<string | number> | undefined;
361
403
  touchAction?: import("csstype").Property.TouchAction | undefined;
@@ -371,15 +413,16 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
371
413
  translate?: import("csstype").Property.Translate<string | number> | undefined;
372
414
  unicodeBidi?: import("csstype").Property.UnicodeBidi | undefined;
373
415
  userSelect?: import("csstype").Property.UserSelect | undefined;
416
+ vectorEffect?: import("csstype").Property.VectorEffect | undefined;
374
417
  verticalAlign?: import("csstype").Property.VerticalAlign<string | number> | undefined;
375
418
  viewTimelineAxis?: import("csstype").Property.ViewTimelineAxis | undefined;
376
419
  viewTimelineInset?: import("csstype").Property.ViewTimelineInset<string | number> | undefined;
377
420
  viewTimelineName?: import("csstype").Property.ViewTimelineName | undefined;
421
+ viewTransitionClass?: import("csstype").Property.ViewTransitionClass | undefined;
378
422
  viewTransitionName?: import("csstype").Property.ViewTransitionName | undefined;
379
423
  visibility?: import("csstype").Property.Visibility | undefined;
380
424
  whiteSpace?: import("csstype").Property.WhiteSpace | undefined;
381
425
  whiteSpaceCollapse?: import("csstype").Property.WhiteSpaceCollapse | undefined;
382
- whiteSpaceTrim?: import("csstype").Property.WhiteSpaceTrim | undefined;
383
426
  widows?: import("csstype").Property.Widows | undefined;
384
427
  width?: import("csstype").Property.Width<string | number> | undefined;
385
428
  willChange?: import("csstype").Property.WillChange | undefined;
@@ -387,23 +430,31 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
387
430
  wordSpacing?: import("csstype").Property.WordSpacing<string | number> | undefined;
388
431
  wordWrap?: import("csstype").Property.WordWrap | undefined;
389
432
  writingMode?: import("csstype").Property.WritingMode | undefined;
433
+ x?: import("csstype").Property.X<string | number> | undefined;
434
+ y?: import("csstype").Property.Y<string | number> | undefined;
390
435
  zIndex?: import("csstype").Property.ZIndex | undefined;
391
436
  zoom?: import("csstype").Property.Zoom | undefined;
392
- all?: import("csstype").Globals | undefined;
437
+ all?: import("csstype").Property.All | undefined;
393
438
  animation?: import("csstype").Property.Animation<string & {}> | undefined;
394
439
  animationRange?: import("csstype").Property.AnimationRange<string | number> | undefined;
395
440
  background?: import("csstype").Property.Background<string | number> | undefined;
396
441
  backgroundPosition?: import("csstype").Property.BackgroundPosition<string | number> | undefined;
397
442
  border?: import("csstype").Property.Border<string | number> | undefined;
398
443
  borderBlock?: import("csstype").Property.BorderBlock<string | number> | undefined;
444
+ borderBlockColor?: import("csstype").Property.BorderBlockColor | undefined;
399
445
  borderBlockEnd?: import("csstype").Property.BorderBlockEnd<string | number> | undefined;
400
446
  borderBlockStart?: import("csstype").Property.BorderBlockStart<string | number> | undefined;
447
+ borderBlockStyle?: import("csstype").Property.BorderBlockStyle | undefined;
448
+ borderBlockWidth?: import("csstype").Property.BorderBlockWidth<string | number> | undefined;
401
449
  borderBottom?: import("csstype").Property.BorderBottom<string | number> | undefined;
402
450
  borderColor?: import("csstype").Property.BorderColor | undefined;
403
451
  borderImage?: import("csstype").Property.BorderImage | undefined;
404
452
  borderInline?: import("csstype").Property.BorderInline<string | number> | undefined;
453
+ borderInlineColor?: import("csstype").Property.BorderInlineColor | undefined;
405
454
  borderInlineEnd?: import("csstype").Property.BorderInlineEnd<string | number> | undefined;
406
455
  borderInlineStart?: import("csstype").Property.BorderInlineStart<string | number> | undefined;
456
+ borderInlineStyle?: import("csstype").Property.BorderInlineStyle | undefined;
457
+ borderInlineWidth?: import("csstype").Property.BorderInlineWidth<string | number> | undefined;
407
458
  borderLeft?: import("csstype").Property.BorderLeft<string | number> | undefined;
408
459
  borderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
409
460
  borderRight?: import("csstype").Property.BorderRight<string | number> | undefined;
@@ -445,6 +496,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
445
496
  placeContent?: import("csstype").Property.PlaceContent | undefined;
446
497
  placeItems?: import("csstype").Property.PlaceItems | undefined;
447
498
  placeSelf?: import("csstype").Property.PlaceSelf | undefined;
499
+ positionTry?: import("csstype").Property.PositionTry | undefined;
448
500
  scrollMargin?: import("csstype").Property.ScrollMargin<string | number> | undefined;
449
501
  scrollMarginBlock?: import("csstype").Property.ScrollMarginBlock<string | number> | undefined;
450
502
  scrollMarginInline?: import("csstype").Property.ScrollMarginInline<string | number> | undefined;
@@ -455,6 +507,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
455
507
  scrollTimeline?: import("csstype").Property.ScrollTimeline | undefined;
456
508
  textDecoration?: import("csstype").Property.TextDecoration<string | number> | undefined;
457
509
  textEmphasis?: import("csstype").Property.TextEmphasis | undefined;
510
+ textWrap?: import("csstype").Property.TextWrap | undefined;
458
511
  transition?: import("csstype").Property.Transition<string & {}> | undefined;
459
512
  viewTimeline?: import("csstype").Property.ViewTimeline | undefined;
460
513
  MozAnimationDelay?: import("csstype").Property.AnimationDelay<string & {}> | undefined;
@@ -466,6 +519,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
466
519
  MozAnimationPlayState?: import("csstype").Property.AnimationPlayState | undefined;
467
520
  MozAnimationTimingFunction?: import("csstype").Property.AnimationTimingFunction | undefined;
468
521
  MozAppearance?: import("csstype").Property.MozAppearance | undefined;
522
+ MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
469
523
  MozBinding?: import("csstype").Property.MozBinding | undefined;
470
524
  MozBorderBottomColors?: import("csstype").Property.MozBorderBottomColors | undefined;
471
525
  MozBorderEndColor?: import("csstype").Property.BorderInlineEndColor | undefined;
@@ -477,8 +531,6 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
477
531
  MozBorderStartStyle?: import("csstype").Property.BorderInlineStartStyle | undefined;
478
532
  MozBorderTopColors?: import("csstype").Property.MozBorderTopColors | undefined;
479
533
  MozBoxSizing?: import("csstype").Property.BoxSizing | undefined;
480
- MozColumnCount?: import("csstype").Property.ColumnCount | undefined;
481
- MozColumnFill?: import("csstype").Property.ColumnFill | undefined;
482
534
  MozColumnRuleColor?: import("csstype").Property.ColumnRuleColor | undefined;
483
535
  MozColumnRuleStyle?: import("csstype").Property.ColumnRuleStyle | undefined;
484
536
  MozColumnRuleWidth?: import("csstype").Property.ColumnRuleWidth<string | number> | undefined;
@@ -487,7 +539,6 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
487
539
  MozFontFeatureSettings?: import("csstype").Property.FontFeatureSettings | undefined;
488
540
  MozFontLanguageOverride?: import("csstype").Property.FontLanguageOverride | undefined;
489
541
  MozHyphens?: import("csstype").Property.Hyphens | undefined;
490
- MozImageRegion?: import("csstype").Property.MozImageRegion | undefined;
491
542
  MozMarginEnd?: import("csstype").Property.MarginInlineEnd<string | number> | undefined;
492
543
  MozMarginStart?: import("csstype").Property.MarginInlineStart<string | number> | undefined;
493
544
  MozOrient?: import("csstype").Property.MozOrient | undefined;
@@ -498,11 +549,15 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
498
549
  MozOutlineRadiusTopright?: import("csstype").Property.MozOutlineRadiusTopright<string | number> | undefined;
499
550
  MozPaddingEnd?: import("csstype").Property.PaddingInlineEnd<string | number> | undefined;
500
551
  MozPaddingStart?: import("csstype").Property.PaddingInlineStart<string | number> | undefined;
552
+ MozPerspective?: import("csstype").Property.Perspective<string | number> | undefined;
553
+ MozPerspectiveOrigin?: import("csstype").Property.PerspectiveOrigin<string | number> | undefined;
501
554
  MozStackSizing?: import("csstype").Property.MozStackSizing | undefined;
502
555
  MozTabSize?: import("csstype").Property.TabSize<string | number> | undefined;
503
556
  MozTextBlink?: import("csstype").Property.MozTextBlink | undefined;
504
557
  MozTextSizeAdjust?: import("csstype").Property.TextSizeAdjust | undefined;
505
- MozUserFocus?: import("csstype").Property.MozUserFocus | undefined;
558
+ MozTransform?: import("csstype").Property.Transform | undefined;
559
+ MozTransformOrigin?: import("csstype").Property.TransformOrigin<string | number> | undefined;
560
+ MozTransformStyle?: import("csstype").Property.TransformStyle | undefined;
506
561
  MozUserModify?: import("csstype").Property.MozUserModify | undefined;
507
562
  MozUserSelect?: import("csstype").Property.UserSelect | undefined;
508
563
  MozWindowDragging?: import("csstype").Property.MozWindowDragging | undefined;
@@ -621,6 +676,8 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
621
676
  WebkitJustifyContent?: import("csstype").Property.JustifyContent | undefined;
622
677
  WebkitLineBreak?: import("csstype").Property.LineBreak | undefined;
623
678
  WebkitLineClamp?: import("csstype").Property.WebkitLineClamp | undefined;
679
+ WebkitLogicalHeight?: import("csstype").Property.BlockSize<string | number> | undefined;
680
+ WebkitLogicalWidth?: import("csstype").Property.InlineSize<string | number> | undefined;
624
681
  WebkitMarginEnd?: import("csstype").Property.MarginInlineEnd<string | number> | undefined;
625
682
  WebkitMarginStart?: import("csstype").Property.MarginInlineStart<string | number> | undefined;
626
683
  WebkitMaskAttachment?: import("csstype").Property.WebkitMaskAttachment | undefined;
@@ -675,13 +732,14 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
675
732
  WebkitTransitionProperty?: import("csstype").Property.TransitionProperty | undefined;
676
733
  WebkitTransitionTimingFunction?: import("csstype").Property.TransitionTimingFunction | undefined;
677
734
  WebkitUserModify?: import("csstype").Property.WebkitUserModify | undefined;
678
- WebkitUserSelect?: import("csstype").Property.UserSelect | undefined;
735
+ WebkitUserSelect?: import("csstype").Property.WebkitUserSelect | undefined;
679
736
  WebkitWritingMode?: import("csstype").Property.WritingMode | undefined;
680
737
  MozAnimation?: import("csstype").Property.Animation<string & {}> | undefined;
681
738
  MozBorderImage?: import("csstype").Property.BorderImage | undefined;
682
739
  MozColumnRule?: import("csstype").Property.ColumnRule<string | number> | undefined;
683
740
  MozColumns?: import("csstype").Property.Columns<string | number> | undefined;
684
741
  MozOutlineRadius?: import("csstype").Property.MozOutlineRadius<string | number> | undefined;
742
+ MozTransition?: import("csstype").Property.Transition<string & {}> | undefined;
685
743
  msContentZoomLimit?: import("csstype").Property.MsContentZoomLimit | undefined;
686
744
  msContentZoomSnap?: import("csstype").Property.MsContentZoomSnap | undefined;
687
745
  msFlex?: import("csstype").Property.Flex<string | number> | undefined;
@@ -702,7 +760,6 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
702
760
  WebkitTextEmphasis?: import("csstype").Property.TextEmphasis | undefined;
703
761
  WebkitTextStroke?: import("csstype").Property.WebkitTextStroke<string | number> | undefined;
704
762
  WebkitTransition?: import("csstype").Property.Transition<string & {}> | undefined;
705
- azimuth?: import("csstype").Property.Azimuth | undefined;
706
763
  boxAlign?: import("csstype").Property.BoxAlign | undefined;
707
764
  boxDirection?: import("csstype").Property.BoxDirection | undefined;
708
765
  boxFlex?: import("csstype").Property.BoxFlex | undefined;
@@ -712,16 +769,22 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
712
769
  boxOrient?: import("csstype").Property.BoxOrient | undefined;
713
770
  boxPack?: import("csstype").Property.BoxPack | undefined;
714
771
  clip?: import("csstype").Property.Clip | undefined;
772
+ fontStretch?: import("csstype").Property.FontStretch | undefined;
715
773
  gridColumnGap?: import("csstype").Property.GridColumnGap<string | number> | undefined;
716
774
  gridGap?: import("csstype").Property.GridGap<string | number> | undefined;
717
775
  gridRowGap?: import("csstype").Property.GridRowGap<string | number> | undefined;
718
776
  imeMode?: import("csstype").Property.ImeMode | undefined;
777
+ insetArea?: import("csstype").Property.PositionArea | undefined;
719
778
  offsetBlock?: import("csstype").Property.InsetBlock<string | number> | undefined;
720
779
  offsetBlockEnd?: import("csstype").Property.InsetBlockEnd<string | number> | undefined;
721
780
  offsetBlockStart?: import("csstype").Property.InsetBlockStart<string | number> | undefined;
722
781
  offsetInline?: import("csstype").Property.InsetInline<string | number> | undefined;
723
782
  offsetInlineEnd?: import("csstype").Property.InsetInlineEnd<string | number> | undefined;
724
783
  offsetInlineStart?: import("csstype").Property.InsetInlineStart<string | number> | undefined;
784
+ pageBreakAfter?: import("csstype").Property.PageBreakAfter | undefined;
785
+ pageBreakBefore?: import("csstype").Property.PageBreakBefore | undefined;
786
+ pageBreakInside?: import("csstype").Property.PageBreakInside | undefined;
787
+ positionTryOptions?: import("csstype").Property.PositionTryFallbacks | undefined;
725
788
  scrollSnapCoordinate?: import("csstype").Property.ScrollSnapCoordinate<string | number> | undefined;
726
789
  scrollSnapDestination?: import("csstype").Property.ScrollSnapDestination<string | number> | undefined;
727
790
  scrollSnapPointsX?: import("csstype").Property.ScrollSnapPointsX | undefined;
@@ -739,9 +802,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
739
802
  KhtmlLineBreak?: import("csstype").Property.LineBreak | undefined;
740
803
  KhtmlOpacity?: import("csstype").Property.Opacity | undefined;
741
804
  KhtmlUserSelect?: import("csstype").Property.UserSelect | undefined;
742
- MozBackfaceVisibility?: import("csstype").Property.BackfaceVisibility | undefined;
743
805
  MozBackgroundClip?: import("csstype").Property.BackgroundClip | undefined;
744
- MozBackgroundInlinePolicy?: import("csstype").Property.BoxDecorationBreak | undefined;
745
806
  MozBackgroundOrigin?: import("csstype").Property.BackgroundOrigin | undefined;
746
807
  MozBackgroundSize?: import("csstype").Property.BackgroundSize<string | number> | undefined;
747
808
  MozBorderRadius?: import("csstype").Property.BorderRadius<string | number> | undefined;
@@ -756,6 +817,8 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
756
817
  MozBoxOrient?: import("csstype").Property.BoxOrient | undefined;
757
818
  MozBoxPack?: import("csstype").Property.BoxPack | undefined;
758
819
  MozBoxShadow?: import("csstype").Property.BoxShadow | undefined;
820
+ MozColumnCount?: import("csstype").Property.ColumnCount | undefined;
821
+ MozColumnFill?: import("csstype").Property.ColumnFill | undefined;
759
822
  MozFloatEdge?: import("csstype").Property.MozFloatEdge | undefined;
760
823
  MozForceBrokenImageIcon?: import("csstype").Property.MozForceBrokenImageIcon | undefined;
761
824
  MozOpacity?: import("csstype").Property.Opacity | undefined;
@@ -763,20 +826,15 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
763
826
  MozOutlineColor?: import("csstype").Property.OutlineColor | undefined;
764
827
  MozOutlineStyle?: import("csstype").Property.OutlineStyle | undefined;
765
828
  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;
768
829
  MozTextAlignLast?: import("csstype").Property.TextAlignLast | undefined;
769
830
  MozTextDecorationColor?: import("csstype").Property.TextDecorationColor | undefined;
770
831
  MozTextDecorationLine?: import("csstype").Property.TextDecorationLine | undefined;
771
832
  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
833
  MozTransitionDelay?: import("csstype").Property.TransitionDelay<string & {}> | undefined;
777
834
  MozTransitionDuration?: import("csstype").Property.TransitionDuration<string & {}> | undefined;
778
835
  MozTransitionProperty?: import("csstype").Property.TransitionProperty | undefined;
779
836
  MozTransitionTimingFunction?: import("csstype").Property.TransitionTimingFunction | undefined;
837
+ MozUserFocus?: import("csstype").Property.MozUserFocus | undefined;
780
838
  MozUserInput?: import("csstype").Property.MozUserInput | undefined;
781
839
  msImeMode?: import("csstype").Property.ImeMode | undefined;
782
840
  OAnimation?: import("csstype").Property.Animation<string & {}> | undefined;
@@ -809,36 +867,9 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
809
867
  WebkitBoxOrdinalGroup?: import("csstype").Property.BoxOrdinalGroup | undefined;
810
868
  WebkitBoxOrient?: import("csstype").Property.BoxOrient | undefined;
811
869
  WebkitBoxPack?: import("csstype").Property.BoxPack | undefined;
812
- alignmentBaseline?: import("csstype").Property.AlignmentBaseline | undefined;
813
- baselineShift?: import("csstype").Property.BaselineShift<string | number> | undefined;
814
- clipRule?: import("csstype").Property.ClipRule | undefined;
815
870
  colorInterpolation?: import("csstype").Property.ColorInterpolation | undefined;
816
871
  colorRendering?: import("csstype").Property.ColorRendering | undefined;
817
- dominantBaseline?: import("csstype").Property.DominantBaseline | undefined;
818
- fill?: import("csstype").Property.Fill | undefined;
819
- fillOpacity?: import("csstype").Property.FillOpacity | undefined;
820
- fillRule?: import("csstype").Property.FillRule | undefined;
821
- floodColor?: import("csstype").Property.FloodColor | undefined;
822
- floodOpacity?: import("csstype").Property.FloodOpacity | undefined;
823
872
  glyphOrientationVertical?: import("csstype").Property.GlyphOrientationVertical | undefined;
824
- lightingColor?: import("csstype").Property.LightingColor | undefined;
825
- marker?: import("csstype").Property.Marker | undefined;
826
- markerEnd?: import("csstype").Property.MarkerEnd | undefined;
827
- markerMid?: import("csstype").Property.MarkerMid | undefined;
828
- markerStart?: import("csstype").Property.MarkerStart | undefined;
829
- shapeRendering?: import("csstype").Property.ShapeRendering | undefined;
830
- stopColor?: import("csstype").Property.StopColor | undefined;
831
- stopOpacity?: import("csstype").Property.StopOpacity | undefined;
832
- stroke?: import("csstype").Property.Stroke | undefined;
833
- strokeDasharray?: import("csstype").Property.StrokeDasharray<string | number> | undefined;
834
- strokeDashoffset?: import("csstype").Property.StrokeDashoffset<string | number> | undefined;
835
- strokeLinecap?: import("csstype").Property.StrokeLinecap | undefined;
836
- strokeLinejoin?: import("csstype").Property.StrokeLinejoin | undefined;
837
- strokeMiterlimit?: import("csstype").Property.StrokeMiterlimit | undefined;
838
- strokeOpacity?: import("csstype").Property.StrokeOpacity | undefined;
839
- strokeWidth?: import("csstype").Property.StrokeWidth<string | number> | undefined;
840
- textAnchor?: import("csstype").Property.TextAnchor | undefined;
841
- vectorEffect?: import("csstype").Property.VectorEffect | undefined;
842
873
  };
843
874
  className: string;
844
875
  body: string | SchemaObject[];
package/esm/util.d.ts CHANGED
@@ -1,11 +1,8 @@
1
- /// <reference types="lodash" />
2
1
  import type { Schema } from 'amis';
3
2
  import type { VariableItem } from 'amis-ui';
4
3
  import { Diff } from 'deep-diff';
5
4
  import { EditorModalBody } from './store/editor';
6
5
  import type { SchemaType } from 'amis/lib/Schema';
7
- import type { DialogSchema } from 'amis/lib/renderers/Dialog';
8
- import type { DrawerSchema } from 'amis/lib/renderers/Drawer';
9
6
  declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
10
7
  export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
11
8
  export declare let themeConfig: any;
@@ -76,7 +73,7 @@ export declare const autobind: any;
76
73
  export declare function addDragingClass(el: HTMLElement): void;
77
74
  export declare function removeDragingClass(el: HTMLElement): void;
78
75
  export declare function camelize(str: string): string;
79
- export declare const reactionWithOldValue: <T>(expression: () => T, effect: (newValue: T, oldValue?: T | undefined) => void) => import("mobx").IReactionDisposer;
76
+ export declare const reactionWithOldValue: <T>(expression: () => T, effect: (newValue: T, oldValue?: T) => void) => import("mobx").IReactionDisposer;
80
77
  export declare function repeatArray<T>(child: T, count?: number): Array<T>;
81
78
  export type DiffChange = Diff<any, any>;
82
79
  export declare function diff(left: any, right: any, prefilter?: (currentPath: Array<string>, key: string) => boolean): Array<DiffChange> | undefined;
@@ -198,7 +195,7 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
198
195
  */
199
196
  export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
200
197
  export declare function setDefaultColSize(regionList: any[], row: number, preRow?: number): any[];
201
- export declare function getModals(schema: any): (DialogSchema | DrawerSchema)[];
198
+ export declare function getModals(schema: any): (import("amis/lib/renderers/Dialog").AMISDialogSchema | import("amis/lib/renderers/Drawer").AMISDrawerSchema)[];
202
199
  export declare function collectRefs(schema: any): string[];
203
200
  /**
204
201
  * 深度 splice 数组,同时返回新的对象,按需拷贝,没有副作用
@@ -20,7 +20,7 @@ export declare class ClassNameControl extends React.Component<ClassNameControlPr
20
20
  handleFocus(e: any): void;
21
21
  handleBlur(e: any): void;
22
22
  handleChange(e: React.ChangeEvent<HTMLInputElement>): void;
23
- getParent(): Element | Text | null;
23
+ getParent(): any;
24
24
  getTarget(): HTMLElement;
25
25
  handlePopOverChange(option: any): void;
26
26
  renderGroup(option: any, index: number): React.JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="lodash" />
2
1
  import React from 'react';
3
2
  export interface AMisCodeEditorProps {
4
3
  value: any;
@@ -3,7 +3,9 @@ import { PanelProps } from '../../plugin';
3
3
  type PanelStates = {
4
4
  toggleCollapseFolderStatus: boolean;
5
5
  };
6
- export declare class AvailableRenderersPanel extends React.Component<PanelProps, PanelStates> {
6
+ export declare class AvailableRenderersPanel extends React.Component<PanelProps & {
7
+ tabsChildren?: React.ReactNode | ((props: PanelProps) => React.ReactNode);
8
+ }, PanelStates> {
7
9
  handleSelect(key: string): void;
8
10
  render(): React.JSX.Element;
9
11
  }