amis-editor-core 6.9.0-rc.7 → 6.9.0-rc.9

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.
@@ -0,0 +1,12 @@
1
+ /**
2
+ * 深度 splice 数组,同时返回新的对象,按需拷贝,没有副作用
3
+ *
4
+ * 第二个参数可以是一个函数,函数的返回值不为 false 时,表示找到了目标,函数的返回值为 number 时,表示偏移量
5
+ *
6
+ * @param target
7
+ * @param path
8
+ * @param numberToDelete
9
+ * @param items
10
+ * @returns
11
+ */
12
+ export declare function deepSplice(target: any, path: string | ((value: any, index: number | string, stack: Array<any>) => any), numberToDelete: number, provider?: ((origin: any) => any) | any, ...items: any[]): any;
package/esm/index.d.ts CHANGED
@@ -41,6 +41,7 @@ import WidthDraggableContainer from './component/base/WidthDraggableContainer';
41
41
  import { SchemaFrom } from './component/base/SchemaForm';
42
42
  import { RendererThumb } from './component/RendererThumb';
43
43
  import { AvailableRenderersPanel } from './component/Panel/AvailableRenderersPanel';
44
+ import { deepSplice } from './deepSplice';
44
45
  export declare const version = "__buildVersion";
45
46
  export default Editor;
46
- export { Editor, MiniEditor, utils, mapReactElement, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, IFramePreview as IFrameEditor, SearchPanel, EditorNodeType, EditorNodeSnapshot, EditorStoreType, ContainerWrapper, AvailableRenderersPlugin, AvailableRenderersPanel, BasicToolbarPlugin, CodePlugin, ErrorRendererPlugin, OutlinePlugin, UnknownRendererPlugin, ShortcutKey, SchemaFrom, WidthDraggableContainer, RendererThumb };
47
+ export { Editor, MiniEditor, utils, deepSplice, mapReactElement, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, IFramePreview as IFrameEditor, SearchPanel, EditorNodeType, EditorNodeSnapshot, EditorStoreType, ContainerWrapper, AvailableRenderersPlugin, AvailableRenderersPanel, BasicToolbarPlugin, CodePlugin, ErrorRendererPlugin, OutlinePlugin, UnknownRendererPlugin, ShortcutKey, SchemaFrom, WidthDraggableContainer, RendererThumb };