amis-editor 4.1.0-beta.27 → 4.2.0-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. package/dist/component/ClassNameControl.d.ts +1 -1
  2. package/dist/component/Control/APIControl.d.ts +2 -2
  3. package/dist/component/Control/OptionControl.d.ts +3 -3
  4. package/dist/component/Control/PopoverEdit.d.ts +4 -4
  5. package/dist/component/Control/ValidationControl.d.ts +1 -1
  6. package/dist/component/Editor.d.ts +1 -1
  7. package/dist/component/IFramePreview.d.ts +2 -1
  8. package/dist/component/NodeWrapper.d.ts +1 -1
  9. package/dist/component/Preview.d.ts +3 -1
  10. package/dist/component/ScaffoldModal.d.ts +1 -1
  11. package/dist/component/base/InputComponentName.d.ts +1 -1
  12. package/dist/env.d.ts +1 -1
  13. package/dist/exports.min.js +1 -1
  14. package/dist/index.min.js +1 -1
  15. package/dist/manager.d.ts +6 -24
  16. package/dist/plugin/Alert.d.ts +1 -1
  17. package/dist/plugin/Button.d.ts +1 -1
  18. package/dist/plugin/Dialog.d.ts +1 -1
  19. package/dist/plugin/Drawer.d.ts +1 -1
  20. package/dist/plugin/Form/Formula.d.ts +3 -3
  21. package/dist/plugin/IFrame.d.ts +3 -3
  22. package/dist/plugin/Page.d.ts +1 -1
  23. package/dist/plugin/Table.d.ts +1 -1
  24. package/dist/plugin.d.ts +3 -3
  25. package/dist/store/editor.d.ts +38 -20
  26. package/dist/util.d.ts +1 -1
  27. package/package.json +5 -2
  28. package/src/plugin/Alert.tsx +1 -1
  29. package/src/plugin/AnchorNav.tsx +1 -1
  30. package/src/plugin/Audio.tsx +1 -8
  31. package/src/plugin/Button.tsx +2 -4
  32. package/src/plugin/ButtonGroup.tsx +3 -6
  33. package/src/plugin/ButtonToolbar.tsx +4 -6
  34. package/src/plugin/CRUD.tsx +4 -4
  35. package/src/plugin/Card.tsx +1 -1
  36. package/src/plugin/Cards.tsx +1 -1
  37. package/src/plugin/Carousel.tsx +3 -12
  38. package/src/plugin/Chart.tsx +1 -1
  39. package/src/plugin/Collapse.tsx +1 -8
  40. package/src/plugin/Container.tsx +2 -6
  41. package/src/plugin/Date.tsx +1 -8
  42. package/src/plugin/Datetime.tsx +1 -8
  43. package/src/plugin/Dialog.tsx +2 -4
  44. package/src/plugin/Drawer.tsx +3 -6
  45. package/src/plugin/DropDownButton.tsx +2 -4
  46. package/src/plugin/Each.tsx +2 -7
  47. package/src/plugin/Flex.tsx +4 -9
  48. package/src/plugin/Form/ButtonGroupSelect.tsx +2 -13
  49. package/src/plugin/Form/ButtonToolbar.tsx +2 -13
  50. package/src/plugin/Form/CodeEditor.tsx +2 -12
  51. package/src/plugin/Form/Combo.tsx +1 -1
  52. package/src/plugin/Form/ConditionBuilder.tsx +4 -13
  53. package/src/plugin/Form/DiffEditor.tsx +1 -7
  54. package/src/plugin/Form/FieldSet.tsx +3 -15
  55. package/src/plugin/Form/Form.tsx +1 -6
  56. package/src/plugin/Form/Formula.tsx +2 -14
  57. package/src/plugin/Form/Group.tsx +2 -7
  58. package/src/plugin/Form/Hidden.tsx +1 -13
  59. package/src/plugin/Form/InputFile.tsx +1 -8
  60. package/src/plugin/Form/InputGroup.tsx +4 -13
  61. package/src/plugin/Form/InputImage.tsx +2 -13
  62. package/src/plugin/Form/InputNumber.tsx +2 -10
  63. package/src/plugin/Form/InputRepeat.tsx +5 -17
  64. package/src/plugin/Form/InputRichText.tsx +2 -13
  65. package/src/plugin/Form/InputSubForm.tsx +2 -11
  66. package/src/plugin/Form/InputTable.tsx +1 -1
  67. package/src/plugin/Form/InputTag.tsx +2 -13
  68. package/src/plugin/Form/InputTime.tsx +2 -12
  69. package/src/plugin/Form/InputTree.tsx +2 -13
  70. package/src/plugin/Form/ListSelect.tsx +2 -13
  71. package/src/plugin/Form/LocationPicker.tsx +1 -14
  72. package/src/plugin/Form/MatrixCheckboxes.tsx +2 -13
  73. package/src/plugin/Form/NestedSelect.tsx +2 -13
  74. package/src/plugin/Form/Picker.tsx +2 -10
  75. package/src/plugin/Form/Radios.tsx +2 -13
  76. package/src/plugin/Form/Static.tsx +2 -15
  77. package/src/plugin/Form/Switch.tsx +2 -13
  78. package/src/plugin/Form/TabsTransfer.tsx +2 -13
  79. package/src/plugin/Form/Textarea.tsx +2 -13
  80. package/src/plugin/Form/Transfer.tsx +2 -13
  81. package/src/plugin/Grid.tsx +1 -2
  82. package/src/plugin/IFrame.tsx +1 -3
  83. package/src/plugin/Image.tsx +0 -4
  84. package/src/plugin/Images.tsx +1 -8
  85. package/src/plugin/Json.tsx +1 -8
  86. package/src/plugin/Link.tsx +2 -4
  87. package/src/plugin/List.tsx +1 -4
  88. package/src/plugin/ListItem.tsx +0 -4
  89. package/src/plugin/Mapping.tsx +1 -8
  90. package/src/plugin/Nav.tsx +2 -4
  91. package/src/plugin/Operation.tsx +2 -4
  92. package/src/plugin/Others/Action.tsx +2 -4
  93. package/src/plugin/Others/BasicToolbar.tsx +2 -8
  94. package/src/plugin/Others/TableCell.tsx +1 -1
  95. package/src/plugin/Page.tsx +1 -3
  96. package/src/plugin/Panel.tsx +1 -1
  97. package/src/plugin/Plain.tsx +1 -8
  98. package/src/plugin/Progress.tsx +1 -8
  99. package/src/plugin/QRCode.tsx +1 -3
  100. package/src/plugin/Service.tsx +3 -8
  101. package/src/plugin/Status.tsx +1 -3
  102. package/src/plugin/Steps.tsx +2 -14
  103. package/src/plugin/Table.tsx +4 -16
  104. package/src/plugin/TableView.tsx +2 -4
  105. package/src/plugin/Tabs.tsx +0 -2
  106. package/src/plugin/Tasks.tsx +1 -3
  107. package/src/plugin/Time.tsx +1 -8
  108. package/src/plugin/Tpl.tsx +1 -5
  109. package/src/plugin/Video.tsx +2 -4
  110. package/src/plugin/WebComponent.tsx +1 -4
  111. package/src/plugin/Wizard.tsx +1 -4
  112. package/src/plugin/Wrapper.tsx +1 -1
  113. package/src/plugin.ts +5 -4
@@ -1,11 +1,8 @@
1
- import {SchemaObject} from 'amis';
2
- import {RendererConfig} from 'amis/lib/factory';
3
1
  import {registerEditorPlugin} from '../manager';
4
2
  import {
5
3
  BaseEventContext,
6
4
  BasePlugin,
7
5
  BasicToolbarItem,
8
- RegionConfig,
9
6
  RendererInfo,
10
7
  VRendererConfig
11
8
  } from '../plugin';
@@ -37,7 +34,7 @@ export class WizardPlugin extends BasePlugin {
37
34
  {
38
35
  type: 'input-text',
39
36
  label: '文本',
40
- name: 'var1',
37
+ name: 'var1'
41
38
  }
42
39
  ]
43
40
  },
@@ -1,4 +1,4 @@
1
- import {Button, SchemaObject} from 'amis';
1
+ import {Button} from 'amis';
2
2
  import React from 'react';
3
3
  import {registerEditorPlugin} from '../manager';
4
4
  import {BasePlugin, RegionConfig, RendererInfo} from '../plugin';
package/src/plugin.ts CHANGED
@@ -1,9 +1,7 @@
1
1
  /**
2
2
  * @file 定义插件的 interface,以及提供一个 BasePlugin 基类,把一些通用的方法放在这。
3
3
  */
4
- import {BaseSchema, SchemaObject} from 'amis';
5
- import {MenuDivider, MenuItem} from 'amis/lib/components/ContextMenu';
6
- import {RendererConfig} from 'amis/lib/factory';
4
+
7
5
  import {RegionWrapperProps} from './component/RegionWrapper';
8
6
  import {EditorManager} from './manager';
9
7
  import {EditorStoreType} from './store/editor';
@@ -13,6 +11,9 @@ import {EditorDNDManager} from './dnd';
13
11
  import React from 'react';
14
12
  import {DiffChange} from './util';
15
13
  import find from 'lodash/find';
14
+ import type {RendererConfig} from 'amis-core/lib/factory';
15
+ import type {MenuDivider, MenuItem} from 'amis-ui/lib/components/ContextMenu';
16
+ import type {BaseSchema} from 'amis/lib/Schema';
16
17
 
17
18
  /**
18
19
  * 区域的定义,容器渲染器都需要定义区域信息。
@@ -412,7 +413,7 @@ export interface PanelItem {
412
413
  component?: React.ComponentType<PanelProps | any>;
413
414
  order: number;
414
415
  position?: 'left' | 'right';
415
- render?:(props: PanelProps) => JSX.Element;
416
+ render?: (props: PanelProps) => JSX.Element;
416
417
  menus?: Array<any>;
417
418
  }
418
419