amis-editor 3.3.6-beta.15 → 3.3.6-beta.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. package/dist/Animation.d.ts +22 -0
  2. package/dist/BasicContainerEditor.d.ts +46 -0
  3. package/dist/BasicEditor.d.ts +214 -0
  4. package/dist/Breadcrumb.d.ts +19 -0
  5. package/dist/ClassNameControl.d.ts +31 -0
  6. package/dist/CodeEditor.d.ts +34 -0
  7. package/dist/Editor.d.ts +251 -0
  8. package/dist/HighlightBox.d.ts +17 -0
  9. package/dist/MiniEditor.d.ts +9 -0
  10. package/dist/Outline.d.ts +38 -0
  11. package/dist/PositionRegion.d.ts +7 -0
  12. package/dist/Preview.d.ts +76 -0
  13. package/dist/Region.d.ts +61 -0
  14. package/dist/RendererThumb.d.ts +23 -0
  15. package/dist/Renderers.d.ts +39 -0
  16. package/dist/RenderersPicker.d.ts +28 -0
  17. package/dist/SettingForm.d.ts +20 -0
  18. package/dist/Settings.d.ts +58 -0
  19. package/dist/dom-helper.d.ts +2 -0
  20. package/dist/editors/Action.d.ts +14 -0
  21. package/dist/editors/Alert.d.ts +11 -0
  22. package/dist/editors/Audio.d.ts +9 -0
  23. package/dist/editors/ButtonGroup.d.ts +15 -0
  24. package/dist/editors/ButtonToolbar.d.ts +7 -0
  25. package/dist/editors/CRUD.d.ts +27 -0
  26. package/dist/editors/Card.d.ts +47 -0
  27. package/dist/editors/Cards.d.ts +20 -0
  28. package/dist/editors/Carousel.d.ts +9 -0
  29. package/dist/editors/Chart.d.ts +13 -0
  30. package/dist/editors/Collapse.d.ts +13 -0
  31. package/dist/editors/Container.d.ts +13 -0
  32. package/dist/editors/Date.d.ts +18 -0
  33. package/dist/editors/Dialog.d.ts +27 -0
  34. package/dist/editors/DiffEditor.d.ts +8 -0
  35. package/dist/editors/Divdier.d.ts +8 -0
  36. package/dist/editors/Drawer.d.ts +26 -0
  37. package/dist/editors/DropDownButton.d.ts +16 -0
  38. package/dist/editors/Each.d.ts +16 -0
  39. package/dist/editors/Form/Array.d.ts +12 -0
  40. package/dist/editors/Form/Button.d.ts +13 -0
  41. package/dist/editors/Form/ButtonGroup.d.ts +17 -0
  42. package/dist/editors/Form/ButtonToolbar.d.ts +15 -0
  43. package/dist/editors/Form/ChainedSelect.d.ts +8 -0
  44. package/dist/editors/Form/Checkbox.d.ts +8 -0
  45. package/dist/editors/Form/Checkboxes.d.ts +8 -0
  46. package/dist/editors/Form/City.d.ts +8 -0
  47. package/dist/editors/Form/Color.d.ts +8 -0
  48. package/dist/editors/Form/Combo.d.ts +19 -0
  49. package/dist/editors/Form/Container.d.ts +22 -0
  50. package/dist/editors/Form/Control.d.ts +15 -0
  51. package/dist/editors/Form/Date.d.ts +9 -0
  52. package/dist/editors/Form/DateRange.d.ts +9 -0
  53. package/dist/editors/Form/Datetime.d.ts +9 -0
  54. package/dist/editors/Form/DiffEditor.d.ts +8 -0
  55. package/dist/editors/Form/Editor.d.ts +12 -0
  56. package/dist/editors/Form/Email.d.ts +8 -0
  57. package/dist/editors/Form/FieldSet.d.ts +22 -0
  58. package/dist/editors/Form/File.d.ts +8 -0
  59. package/dist/editors/Form/Form.d.ts +26 -0
  60. package/dist/editors/Form/Formula.d.ts +11 -0
  61. package/dist/editors/Form/Grid.d.ts +21 -0
  62. package/dist/editors/Form/Group.d.ts +21 -0
  63. package/dist/editors/Form/HBox.d.ts +20 -0
  64. package/dist/editors/Form/Hidden.d.ts +21 -0
  65. package/dist/editors/Form/Image.d.ts +8 -0
  66. package/dist/editors/Form/InputGroup.d.ts +12 -0
  67. package/dist/editors/Form/Item.d.ts +8 -0
  68. package/dist/editors/Form/List.d.ts +16 -0
  69. package/dist/editors/Form/Matrix.d.ts +8 -0
  70. package/dist/editors/Form/NestedSelect.d.ts +50 -0
  71. package/dist/editors/Form/Number.d.ts +8 -0
  72. package/dist/editors/Form/Panel.d.ts +22 -0
  73. package/dist/editors/Form/Password.d.ts +10 -0
  74. package/dist/editors/Form/Picker.d.ts +17 -0
  75. package/dist/editors/Form/QRCode.d.ts +8 -0
  76. package/dist/editors/Form/Radios.d.ts +8 -0
  77. package/dist/editors/Form/Range.d.ts +8 -0
  78. package/dist/editors/Form/Rating.d.ts +8 -0
  79. package/dist/editors/Form/Repeat.d.ts +8 -0
  80. package/dist/editors/Form/Reset.d.ts +8 -0
  81. package/dist/editors/Form/RichText.d.ts +8 -0
  82. package/dist/editors/Form/Select.d.ts +8 -0
  83. package/dist/editors/Form/Service.d.ts +25 -0
  84. package/dist/editors/Form/Static.d.ts +18 -0
  85. package/dist/editors/Form/SubForm.d.ts +12 -0
  86. package/dist/editors/Form/Submit.d.ts +9 -0
  87. package/dist/editors/Form/Switch.d.ts +8 -0
  88. package/dist/editors/Form/Tab.d.ts +12 -0
  89. package/dist/editors/Form/Table.d.ts +25 -0
  90. package/dist/editors/Form/Tabs.d.ts +6 -0
  91. package/dist/editors/Form/Tag.d.ts +10 -0
  92. package/dist/editors/Form/Text.d.ts +10 -0
  93. package/dist/editors/Form/Textarea.d.ts +8 -0
  94. package/dist/editors/Form/Time.d.ts +9 -0
  95. package/dist/editors/Form/Tree.d.ts +50 -0
  96. package/dist/editors/Form/TreeSelect.d.ts +50 -0
  97. package/dist/editors/Form/Url.d.ts +8 -0
  98. package/dist/editors/Grid.d.ts +16 -0
  99. package/dist/editors/HBox.d.ts +13 -0
  100. package/dist/editors/IFrame.d.ts +11 -0
  101. package/dist/editors/Image.d.ts +9 -0
  102. package/dist/editors/Json.d.ts +9 -0
  103. package/dist/editors/Link.d.ts +8 -0
  104. package/dist/editors/List.d.ts +70 -0
  105. package/dist/editors/Mapping.d.ts +9 -0
  106. package/dist/editors/Nav.d.ts +142 -0
  107. package/dist/editors/Operation.d.ts +17 -0
  108. package/dist/editors/Page.d.ts +15 -0
  109. package/dist/editors/Panel.d.ts +13 -0
  110. package/dist/editors/Plain.d.ts +9 -0
  111. package/dist/editors/Progress.d.ts +9 -0
  112. package/dist/editors/QRCode.d.ts +8 -0
  113. package/dist/editors/Service.d.ts +5 -0
  114. package/dist/editors/Status.d.ts +9 -0
  115. package/dist/editors/Switch.d.ts +9 -0
  116. package/dist/editors/Tab.d.ts +13 -0
  117. package/dist/editors/Table.d.ts +27 -0
  118. package/dist/editors/TableCell.d.ts +29 -0
  119. package/dist/editors/TableColumnsRegion.d.ts +6 -0
  120. package/dist/editors/Tabs.d.ts +15 -0
  121. package/dist/editors/Tasks.d.ts +8 -0
  122. package/dist/editors/Tpl.d.ts +8 -0
  123. package/dist/editors/Video.d.ts +8 -0
  124. package/dist/editors/Wizard.d.ts +15 -0
  125. package/dist/editors/WizardStep.d.ts +19 -0
  126. package/dist/editors/Wrapper.d.ts +11 -0
  127. package/dist/editors/index.d.ts +101 -0
  128. package/dist/editors/templates.d.ts +3 -0
  129. package/dist/index.d.ts +2 -1
  130. package/dist/index.min.js +1 -1
  131. package/dist/json-ast/index.d.ts +53 -0
  132. package/dist/plugin/DataDebug.d.ts +1 -0
  133. package/dist/plugin/DiffEditor.d.ts +19 -0
  134. package/dist/plugin/Form/AnchorNav.d.ts +17 -0
  135. package/dist/plugin/Form/Array.d.ts +27 -0
  136. package/dist/plugin/Form/Button.d.ts +11 -0
  137. package/dist/plugin/Form/ButtonGroup.d.ts +22 -0
  138. package/dist/plugin/Form/City.d.ts +19 -0
  139. package/dist/plugin/Form/Container.d.ts +37 -0
  140. package/dist/plugin/Form/Date.d.ts +20 -0
  141. package/dist/plugin/Form/DateRange.d.ts +20 -0
  142. package/dist/plugin/Form/DateTime.d.ts +19 -0
  143. package/dist/plugin/Form/Email.d.ts +25 -0
  144. package/dist/plugin/Form/File.d.ts +19 -0
  145. package/dist/plugin/Form/Grid.d.ts +32 -0
  146. package/dist/plugin/Form/HBox.d.ts +73 -0
  147. package/dist/plugin/Form/Image.d.ts +20 -0
  148. package/dist/plugin/Form/InputSubForm.d.ts +1 -0
  149. package/dist/plugin/Form/List.d.ts +24 -0
  150. package/dist/plugin/Form/Location.d.ts +48 -0
  151. package/dist/plugin/Form/Matrix.d.ts +26 -0
  152. package/dist/plugin/Form/Month.d.ts +16 -0
  153. package/dist/plugin/Form/MonthRange.d.ts +20 -0
  154. package/dist/plugin/Form/Number.d.ts +20 -0
  155. package/dist/plugin/Form/Panel.d.ts +24 -0
  156. package/dist/plugin/Form/Password.d.ts +25 -0
  157. package/dist/plugin/Form/QRCode.d.ts +20 -0
  158. package/dist/plugin/Form/Range.d.ts +19 -0
  159. package/dist/plugin/Form/Rating.d.ts +19 -0
  160. package/dist/plugin/Form/Repeat.d.ts +19 -0
  161. package/dist/plugin/Form/RichText.d.ts +19 -0
  162. package/dist/plugin/Form/Service.d.ts +24 -0
  163. package/dist/plugin/Form/SubForm.d.ts +64 -0
  164. package/dist/plugin/Form/Table.d.ts +34 -0
  165. package/dist/plugin/Form/Tabs.d.ts +17 -0
  166. package/dist/plugin/Form/Tag.d.ts +21 -0
  167. package/dist/plugin/Form/Text.d.ts +20 -0
  168. package/dist/plugin/Form/Time.d.ts +19 -0
  169. package/dist/plugin/Form/Tree.d.ts +73 -0
  170. package/dist/plugin/Form/Url.d.ts +25 -0
  171. package/dist/plugin/Form/Year.d.ts +16 -0
  172. package/dist/plugin/Switch.d.ts +21 -0
  173. package/dist/store/editor.d.ts +1 -0
  174. package/dist/types.d.ts +40 -0
  175. package/dist/util.d.ts +1 -1
  176. package/package.json +14 -38
@@ -0,0 +1,20 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class QRCodeControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ icon: string;
7
+ description: string;
8
+ docLink: string;
9
+ tags: string[];
10
+ scaffold: {
11
+ type: string;
12
+ label: string;
13
+ name: string;
14
+ value: string;
15
+ };
16
+ previewSchema: any;
17
+ panelTitle: string;
18
+ panelControls: any[];
19
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
20
+ }
@@ -0,0 +1,19 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class RangeControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ icon: string;
7
+ description: string;
8
+ docLink: string;
9
+ tags: string[];
10
+ scaffold: {
11
+ type: string;
12
+ label: string;
13
+ name: string;
14
+ };
15
+ previewSchema: any;
16
+ panelTitle: string;
17
+ panelControls: any[];
18
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
19
+ }
@@ -0,0 +1,19 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class RangeControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ icon: string;
7
+ description: string;
8
+ docLink: string;
9
+ tags: string[];
10
+ scaffold: {
11
+ type: string;
12
+ label: string;
13
+ name: string;
14
+ };
15
+ previewSchema: any;
16
+ panelTitle: string;
17
+ panelControls: any[];
18
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
19
+ }
@@ -0,0 +1,19 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class RepeatControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ icon: string;
7
+ description: string;
8
+ docLink: string;
9
+ tags: string[];
10
+ scaffold: {
11
+ type: string;
12
+ label: string;
13
+ name: string;
14
+ };
15
+ previewSchema: any;
16
+ panelTitle: string;
17
+ panelControls: any[];
18
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
19
+ }
@@ -0,0 +1,19 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class RichTextControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ icon: string;
7
+ description: string;
8
+ docLink: string;
9
+ tags: string[];
10
+ scaffold: {
11
+ type: string;
12
+ label: string;
13
+ name: string;
14
+ };
15
+ previewSchema: any;
16
+ panelTitle: string;
17
+ panelControls: any[];
18
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
19
+ }
@@ -0,0 +1,24 @@
1
+ import { BasePlugin, BaseEventContext, BasicSubRenderInfo, RendererEventContext, SubRendererInfo, RegionConfig } from '../../plugin';
2
+ export declare class ServiceControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ order: number;
6
+ name: string;
7
+ icon: string;
8
+ description: string;
9
+ docLink: string;
10
+ tags: string[];
11
+ scaffold: {
12
+ type: string;
13
+ controls: {
14
+ type: string;
15
+ label: string;
16
+ name: string;
17
+ }[];
18
+ };
19
+ previewSchema: any;
20
+ regions: Array<RegionConfig>;
21
+ panelTitle: string;
22
+ panelControlsCreator: (context: BaseEventContext) => any[];
23
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
24
+ }
@@ -0,0 +1,64 @@
1
+ /// <reference types="react" />
2
+ import { BaseEventContext, BasePlugin, BasicSubRenderInfo, BasicToolbarItem, ContextMenuEventContext, ContextMenuItem, RendererEventContext, SubRendererInfo } from '../../plugin';
3
+ export declare class SubFormControlPlugin extends BasePlugin {
4
+ rendererName: string;
5
+ $schema: string;
6
+ name: string;
7
+ icon: string;
8
+ description: string;
9
+ docLink: string;
10
+ tags: string[];
11
+ scaffold: {
12
+ type: string;
13
+ name: string;
14
+ label: string;
15
+ form: {
16
+ title: string;
17
+ controls: {
18
+ type: string;
19
+ label: string;
20
+ name: string;
21
+ }[];
22
+ };
23
+ };
24
+ previewSchema: any;
25
+ panelTitle: string;
26
+ panelControlsCreator: (context: BaseEventContext) => ({
27
+ children: ({ value, onChange }: any) => JSX.Element;
28
+ name?: undefined;
29
+ type?: undefined;
30
+ value?: undefined;
31
+ label?: undefined;
32
+ description?: undefined;
33
+ visibleOn?: undefined;
34
+ } | {
35
+ name: string;
36
+ type: string;
37
+ value: string;
38
+ label: string;
39
+ description: string;
40
+ children?: undefined;
41
+ visibleOn?: undefined;
42
+ } | {
43
+ name: string;
44
+ label: string;
45
+ value: string;
46
+ type: string;
47
+ children?: undefined;
48
+ description?: undefined;
49
+ visibleOn?: undefined;
50
+ } | {
51
+ name: string;
52
+ visibleOn: string;
53
+ label: string;
54
+ type: string;
55
+ children?: undefined;
56
+ value?: undefined;
57
+ description?: undefined;
58
+ })[];
59
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
60
+ filterProps(props: any): any;
61
+ buildEditorToolbar({ id, info }: BaseEventContext, toolbars: Array<BasicToolbarItem>): void;
62
+ buildEditorContextMenu({ id, schema, region, info }: ContextMenuEventContext, menus: Array<ContextMenuItem>): void;
63
+ editDetail(id: string): void;
64
+ }
@@ -0,0 +1,34 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class TableControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ icon: string;
7
+ description: string;
8
+ docLink: string;
9
+ tags: string[];
10
+ scaffold: {
11
+ type: string;
12
+ name: string;
13
+ label: string;
14
+ columns: ({
15
+ label: string;
16
+ name: string;
17
+ quickEdit: {
18
+ type: string;
19
+ mode?: undefined;
20
+ };
21
+ } | {
22
+ label: string;
23
+ name: string;
24
+ quickEdit: {
25
+ type: string;
26
+ mode: string;
27
+ };
28
+ })[];
29
+ };
30
+ previewSchema: any;
31
+ panelTitle: string;
32
+ panelControls: never[];
33
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
34
+ }
@@ -0,0 +1,17 @@
1
+ import { BasicSubRenderInfo, RendererEventContext, SubRendererInfo, VRendererConfig } from '../../plugin';
2
+ import { TabsPlugin } from '../Tabs';
3
+ export declare class TabsControlPlugin extends TabsPlugin {
4
+ rendererName: string;
5
+ $schema: string;
6
+ name: string;
7
+ icon: string;
8
+ description: string;
9
+ docLink: string;
10
+ tags: string[];
11
+ scaffold: any;
12
+ previewSchema: any;
13
+ patchContainers: string[];
14
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
15
+ vRendererConfig: VRendererConfig;
16
+ overrides: any;
17
+ }
@@ -0,0 +1,21 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class TagControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ order: number;
6
+ name: string;
7
+ icon: string;
8
+ description: string;
9
+ docLink: string;
10
+ tags: string[];
11
+ scaffold: {
12
+ type: string;
13
+ label: string;
14
+ name: string;
15
+ options: string[];
16
+ };
17
+ previewSchema: any;
18
+ panelTitle: string;
19
+ panelControls: any[];
20
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
21
+ }
@@ -0,0 +1,20 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class TextControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ order: number;
6
+ name: string;
7
+ icon: string;
8
+ description: string;
9
+ docLink: string;
10
+ tags: string[];
11
+ scaffold: {
12
+ type: string;
13
+ label: string;
14
+ name: string;
15
+ };
16
+ previewSchema: any;
17
+ panelTitle: string;
18
+ panelControls: any[];
19
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
20
+ }
@@ -0,0 +1,19 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class TimeControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ icon: string;
7
+ description: string;
8
+ docLink: string;
9
+ tags: string[];
10
+ scaffold: {
11
+ type: string;
12
+ label: string;
13
+ name: string;
14
+ };
15
+ previewSchema: any;
16
+ panelTitle: string;
17
+ panelControls: any[];
18
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
19
+ }
@@ -0,0 +1,73 @@
1
+ import { BasePlugin, BasicSubRenderInfo, RendererEventContext, SubRendererInfo } from '../../plugin';
2
+ export declare class TreeControlPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ icon: string;
7
+ description: string;
8
+ docLink: string;
9
+ tags: string[];
10
+ scaffold: {
11
+ type: string;
12
+ label: string;
13
+ name: string;
14
+ options: ({
15
+ label: string;
16
+ value: string;
17
+ children: {
18
+ label: string;
19
+ value: string;
20
+ }[];
21
+ } | {
22
+ label: string;
23
+ value: string;
24
+ children?: undefined;
25
+ })[];
26
+ };
27
+ previewSchema: any;
28
+ panelTitle: string;
29
+ panelDefinitions: {
30
+ options: {
31
+ label: string;
32
+ name: string;
33
+ type: string;
34
+ multiple: boolean;
35
+ multiLine: boolean;
36
+ draggable: boolean;
37
+ addButtonText: string;
38
+ scaffold: {
39
+ label: string;
40
+ value: string;
41
+ };
42
+ controls: ({
43
+ type: string;
44
+ controls: ({
45
+ type: string;
46
+ name: string;
47
+ placeholder: string;
48
+ required: boolean;
49
+ unique?: undefined;
50
+ } | {
51
+ type: string;
52
+ name: string;
53
+ placeholder: string;
54
+ unique: boolean;
55
+ required?: undefined;
56
+ })[];
57
+ $ref?: undefined;
58
+ label?: undefined;
59
+ name?: undefined;
60
+ addButtonText?: undefined;
61
+ } | {
62
+ $ref: string;
63
+ label: string;
64
+ name: string;
65
+ addButtonText: string;
66
+ type?: undefined;
67
+ controls?: undefined;
68
+ })[];
69
+ };
70
+ };
71
+ panelControls: any[];
72
+ buildSubRenderers(context: RendererEventContext, renderers: Array<SubRendererInfo>): BasicSubRenderInfo | Array<BasicSubRenderInfo> | void;
73
+ }
@@ -0,0 +1,25 @@
1
+ import { TextControlPlugin } from './Text';
2
+ export declare class URLControlPlugin extends TextControlPlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ icon: string;
7
+ description: string;
8
+ scaffold: {
9
+ type: string;
10
+ label: string;
11
+ name: string;
12
+ };
13
+ previewSchema: {
14
+ type: string;
15
+ className: string;
16
+ mode: string;
17
+ wrapWithPanel: boolean;
18
+ controls: {
19
+ type: string;
20
+ label: string;
21
+ name: string;
22
+ };
23
+ };
24
+ panelTitle: string;
25
+ }
@@ -0,0 +1,16 @@
1
+ import { DateControlPlugin } from './Date';
2
+ export declare class YearControlPlugin extends DateControlPlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ icon: string;
7
+ description: string;
8
+ docLink: string;
9
+ tags: string[];
10
+ scaffold: {
11
+ type: string;
12
+ name: string;
13
+ };
14
+ previewSchema: any;
15
+ panelTitle: string;
16
+ }
@@ -0,0 +1,21 @@
1
+ import { BaseEventContext, BasePlugin } from '../plugin';
2
+ export declare class SwitchPlugin extends BasePlugin {
3
+ rendererName: string;
4
+ $schema: string;
5
+ name: string;
6
+ description: string;
7
+ tags: string[];
8
+ icon: string;
9
+ scaffold: {
10
+ type: string;
11
+ name: string;
12
+ };
13
+ previewSchema: {
14
+ value: boolean;
15
+ disabled: boolean;
16
+ type: string;
17
+ name: string;
18
+ };
19
+ panelTitle: string;
20
+ panelControlsCreator: (context: BaseEventContext) => any[];
21
+ }
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { Instance } from 'mobx-state-tree';
2
3
  import { InsertEventContext, PluginEvent, RendererInfo, SubRendererInfo, ToolbarItem, PanelItem, MoveEventContext, ScaffoldForm, PopOverForm } from '../plugin';
3
4
  import { Schema } from 'amis/lib/types';
@@ -0,0 +1,40 @@
1
+ import { RenderOptions, fetcherConfig, RootRenderProps, RenderSchemaFilter, RendererConfig, RendererComponent, TestFunc, RendererBasicConfig, RendererEnv, RendererProps, renderChildProps } from 'amis/lib/factory';
2
+ import { ClassNamesFn, ThemeInstance } from 'amis/lib/theme';
3
+ import { ApiObject, ApiString, Api, fetcherResult, fetchOptions, Schema, Button, Action } from 'amis/lib/types';
4
+ export interface Location {
5
+ pathname: string;
6
+ search: string;
7
+ state: any;
8
+ hash: string;
9
+ key?: string;
10
+ query?: any;
11
+ }
12
+ export interface PlainObject {
13
+ [propsName: string]: any;
14
+ }
15
+ export interface JSONSchema {
16
+ [propsName: string]: any;
17
+ }
18
+ export declare type RequiredKnownKeys<T> = {
19
+ [K in keyof T]: {} extends Pick<T, K> ? never : K;
20
+ } extends {
21
+ [_ in keyof T]: infer U;
22
+ } ? {} extends U ? never : U : never;
23
+ export declare type OptionalKnownKeys<T> = {
24
+ [K in keyof T]: string extends K ? never : number extends K ? never : {} extends Pick<T, K> ? K : never;
25
+ } extends {
26
+ [_ in keyof T]: infer U;
27
+ } ? {} extends U ? never : U : never;
28
+ export declare type Override<T, U> = {
29
+ [K in Exclude<RequiredKnownKeys<T>, keyof U>]: K extends keyof T ? T[K] : never;
30
+ } & {
31
+ [K in Exclude<OptionalKnownKeys<T>, keyof U>]?: K extends keyof T ? T[K] : never;
32
+ } & U;
33
+ export declare type MakeOptional<T, U> = {
34
+ [K in OptionalKnownKeys<T>]?: K extends keyof T ? T[K] : never;
35
+ } & {
36
+ [K in Exclude<RequiredKnownKeys<T>, keyof U>]: K extends keyof T ? T[K] : never;
37
+ } & {
38
+ [K in Extract<RequiredKnownKeys<T>, keyof U>]?: K extends keyof T ? T[K] : never;
39
+ };
40
+ export { ApiObject, ApiString, Api, fetcherResult, fetchOptions, Schema, Button, Action, TestFunc, RendererBasicConfig, ClassNamesFn, ThemeInstance, RendererEnv, RendererProps, renderChildProps, RendererComponent, RendererConfig, RenderSchemaFilter, RootRenderProps, RenderOptions, fetcherConfig };
package/dist/util.d.ts CHANGED
@@ -41,7 +41,7 @@ export declare function filterSchemaForConfig(schema: any, valueWithConfig?: any
41
41
  */
42
42
  export declare function filterSchemaForEditor(schema: any): any;
43
43
  export declare function blackList(list: Array<string>): (str: string) => boolean;
44
- export declare function sortByList(list: Array<string>, attr: string | Function): (a: any, b: any) => 1 | -1 | 0;
44
+ export declare function sortByList(list: Array<string>, attr: string | Function): (a: any, b: any) => 0 | 1 | -1;
45
45
  export declare function persistGet(key: string, defaultValue?: any): any;
46
46
  export declare function persistSet(key: string, value: any): void;
47
47
  export declare function normalizeId(id: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-editor",
3
- "version": "3.3.6-beta.15",
3
+ "version": "3.3.6-beta.18",
4
4
  "description": "amis 可视化编辑器",
5
5
  "main": "dist/index.min.js",
6
6
  "types": "dist/index.d.ts",
@@ -23,8 +23,7 @@
23
23
  "dependencies": {
24
24
  "@types/deep-diff": "^1.0.0",
25
25
  "deep-diff": "1.0.2",
26
- "dom-helpers": "^3.3.1",
27
- "json-ast-comments": "^1.0.6",
26
+ "json-ast-comments": "^1.0.7",
28
27
  "mobx": "^4.5.0",
29
28
  "mobx-react": "^6.1.4",
30
29
  "mobx-state-tree": "^3.17.3",
@@ -32,41 +31,23 @@
32
31
  },
33
32
  "devDependencies": {
34
33
  "@fortawesome/fontawesome-free": "^5.15.3",
35
- "@rollup/plugin-buble": "^0.21.3",
36
- "@rollup/plugin-commonjs": "^15.0.0",
37
- "@rollup/plugin-typescript": "^6.0.0",
38
34
  "@svgr/webpack": "^5.5.0",
39
35
  "@types/async": "^2.0.45",
40
36
  "@types/classnames": "^2.2.3",
41
- "@types/dom-helpers": "^3.4.1",
42
37
  "@types/history": "^4.6.0",
43
38
  "@types/hoist-non-react-statics": "^3.0.1",
44
39
  "@types/lodash": "^4.14.76",
45
40
  "@types/node": "^14.0.24",
46
- "@types/pretty-bytes": "^4.0.0",
47
- "@types/prop-types": "^15.5.2",
48
41
  "@types/qs": "^6.5.1",
49
42
  "@types/react": "^16.9.11",
50
- "@types/react-addons-update": "^0.14.19",
51
- "@types/react-color": "^2.13.3",
52
- "@types/react-cropper": "^0.10.1",
53
43
  "@types/react-dom": "^16.9.4",
54
- "@types/react-dropzone": "^4.1.0",
55
- "@types/react-json-tree": "^0.6.6",
56
- "@types/react-onclickoutside": "^6.0.2",
57
44
  "@types/react-overlays": "^0.6.9",
58
45
  "@types/react-router": "^4.0.16",
59
- "@types/react-select": "^1.0.59",
60
- "@types/react-transition-group": "^2.0.6",
61
- "@types/sortablejs": "^1.3.32",
62
- "@types/whatwg-fetch": "0.0.33",
63
- "animate.css": "3.5.2",
64
- "axios": "0.16.2",
65
- "bootstrap": "3.3.7",
46
+ "axios": "0.21.1",
66
47
  "concurrently": "^6.2.0",
67
- "css-loader": "^3.6.0",
68
- "faker": "^4.1.0",
69
- "fis-parser-sass": "^1.0.2",
48
+ "css-loader": "^6.2.0",
49
+ "faker": "^5.5.3",
50
+ "fis-parser-sass": "^1.1.0",
70
51
  "fis-parser-svgr": "^1.0.1",
71
52
  "fis3": "^3.4.45",
72
53
  "fis3-hook-commonjs": "^0.1.32",
@@ -76,28 +57,23 @@
76
57
  "fis3-prepackager-stand-alone-pack": "^1.0.1",
77
58
  "fis3-preprocessor-js-require-css": "^0.1.3",
78
59
  "fis3-preprocessor-js-require-file": "^0.1.3",
79
- "highlight.js": "^10.7.2",
80
60
  "husky": "^6.0.0",
81
- "js-yaml": "^3.10.0",
82
- "marked": "^0.3.7",
83
- "mini-css-extract-plugin": "^0.9.0",
84
- "mobx-wiretap": "^0.12.0",
61
+ "mini-css-extract-plugin": "^2.3.0",
85
62
  "prettier": "^2.2.1",
86
63
  "pretty-quick": "^3.1.0",
87
64
  "react": "^16.8.6",
88
65
  "react-dom": "^16.8.6",
89
66
  "react-router": "3.2.0",
90
- "rollup": "^2.27.0",
91
67
  "sass": "^1.26.10",
92
- "sass-loader": "^9.0.2",
93
- "strip-json-comments": "^2.0.1",
94
- "style-loader": "^1.2.1",
95
- "ts-loader": "^8.0.0",
68
+ "sass-loader": "^12.1.0",
69
+ "style-loader": "^3.2.1",
70
+ "ts-loader": "^9.2.5",
96
71
  "tslib": "^2.3.1",
97
72
  "typescript": "^4.4.2",
98
- "webpack": "^4.43.0",
99
- "webpack-cli": "^3.3.12",
100
- "webpack-node-externals": "^2.3.0"
73
+ "webpack": "^5.52.1",
74
+ "webpack-cli": "^4.8.0",
75
+ "webpack-node-externals": "^3.0.0",
76
+ "amis": "1.2.4-beta.11"
101
77
  },
102
78
  "peerDependencies": {
103
79
  "amis": "*"