amis-editor-core 6.9.0-rc.1 → 6.9.0-rc.10
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.
- package/esm/component/Editor.d.ts +5 -0
- package/esm/component/ModalForm.d.ts +25 -0
- package/esm/component/Preview.d.ts +1 -0
- package/esm/component/RegionWrapper.d.ts +2 -2
- package/esm/component/SubEditor.d.ts +14 -2
- package/esm/component/VRenderer.d.ts +2 -2
- package/esm/component/base/SchemaForm.d.ts +2 -1
- package/esm/component/factory.d.ts +1 -1
- package/esm/deepSplice.d.ts +12 -0
- package/esm/index.d.ts +4 -1
- package/esm/index.js +2 -2
- package/esm/layout/flex.d.ts +10 -10
- package/esm/manager.d.ts +16 -5
- package/esm/plugin.d.ts +5 -0
- package/esm/store/editor.d.ts +25 -9
- package/esm/store/node.d.ts +3 -3
- package/esm/util.d.ts +9 -0
- package/lib/component/Editor.d.ts +5 -0
- package/lib/component/ModalForm.d.ts +25 -0
- package/lib/component/Preview.d.ts +1 -0
- package/lib/component/RegionWrapper.d.ts +2 -2
- package/lib/component/SubEditor.d.ts +14 -2
- package/lib/component/VRenderer.d.ts +2 -2
- package/lib/component/base/BackTop.d.ts +1 -1
- package/lib/component/base/SchemaForm.d.ts +2 -1
- package/lib/component/factory.d.ts +1 -1
- package/lib/deepSplice.d.ts +12 -0
- package/lib/dnd/flex.d.ts +1 -1
- package/lib/editor.js +1 -1
- package/lib/index.d.ts +4 -1
- package/lib/index.js +2 -2
- package/lib/layout/flex.d.ts +10 -11
- package/lib/manager.d.ts +16 -5
- package/lib/plugin.d.ts +5 -0
- package/lib/store/editor.d.ts +25 -10
- package/lib/store/node.d.ts +3 -3
- package/lib/style.css +1 -1
- package/lib/util.d.ts +9 -0
- package/package.json +4 -3
package/lib/util.d.ts
CHANGED
|
@@ -199,6 +199,15 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
|
|
|
199
199
|
export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
|
|
200
200
|
export declare function setDefaultColSize(regionList: any[], row: number, preRow?: number): any[];
|
|
201
201
|
export declare function getModals(schema: any): (DialogSchema | DrawerSchema)[];
|
|
202
|
+
/**
|
|
203
|
+
* 深度 splice 数组,同时返回新的对象,按需拷贝,没有副作用
|
|
204
|
+
* @param target
|
|
205
|
+
* @param path
|
|
206
|
+
* @param numberToDelete
|
|
207
|
+
* @param items
|
|
208
|
+
* @returns
|
|
209
|
+
*/
|
|
210
|
+
export declare function deepSplice(target: any, path: string, numberToDelete: number, ...items: any[]): any;
|
|
202
211
|
export declare const RAW_TYPE_MAP: {
|
|
203
212
|
[k in SchemaType | 'user-select' | 'department-select']?: 'string' | 'number' | 'array' | 'boolean' | 'object' | 'enum' | 'date' | 'datetime' | 'time' | 'quarter' | 'year' | 'month' | 'user' | 'department';
|
|
204
213
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "amis-editor-core",
|
|
3
|
-
"version": "6.9.0-rc.
|
|
3
|
+
"version": "6.9.0-rc.10",
|
|
4
4
|
"description": "amis 可视化编辑器",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"test": "echo \"Warnings: no test specified\"",
|
|
30
|
-
"build": "npm run clean-dist && NODE_ENV=production rollup -c",
|
|
31
|
-
"build-esm": "npm run clean-dist && NODE_ENV=production rollup -c rollup.esm.config.js",
|
|
30
|
+
"build": "npm run clean-dist && cross-env NODE_ENV=production rollup -c",
|
|
31
|
+
"build-esm": "npm run clean-dist && cross-env NODE_ENV=production rollup -c rollup.esm.config.js",
|
|
32
32
|
"clean-dist": "rimraf lib/* esm/*",
|
|
33
33
|
"i18n:update": "npx i18n update --config=./i18nConfig.js",
|
|
34
34
|
"i18n:translate": "npx i18n translate --config=./i18nConfig.js --l=en-US",
|
|
@@ -84,6 +84,7 @@
|
|
|
84
84
|
"ajv": "^8.8.2",
|
|
85
85
|
"autoprefixer": "^10.4.12",
|
|
86
86
|
"concurrently": "^6.2.0",
|
|
87
|
+
"cross-env": "^7.0.3",
|
|
87
88
|
"css-loader": "^6.2.0",
|
|
88
89
|
"faker": "^5.5.3",
|
|
89
90
|
"i18n-command": "^0.0.23-beta.15",
|