amis-editor-core 6.14.0-beta.1 → 6.14.0-beta.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/lib/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;
@@ -389,7 +388,7 @@ export declare function tipedLabel(body: string | Array<SchemaObject>, tip: stri
389
388
  writingMode?: import("csstype").Property.WritingMode | undefined;
390
389
  zIndex?: import("csstype").Property.ZIndex | undefined;
391
390
  zoom?: import("csstype").Property.Zoom | undefined;
392
- all?: import("csstype").Globals | undefined;
391
+ all?: import("csstype").Property.All | undefined;
393
392
  animation?: import("csstype").Property.Animation<string & {}> | undefined;
394
393
  animationRange?: import("csstype").Property.AnimationRange<string | number> | undefined;
395
394
  background?: import("csstype").Property.Background<string | number> | undefined;
package/lib/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,8 @@ 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)[];
199
+ export declare function collectRefs(schema: any): string[];
202
200
  /**
203
201
  * 深度 splice 数组,同时返回新的对象,按需拷贝,没有副作用
204
202
  * @param target
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-editor-core",
3
- "version": "6.14.0-beta.1",
3
+ "version": "6.14.0-beta.10",
4
4
  "description": "amis 可视化编辑器",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",
@@ -109,7 +109,7 @@
109
109
  "stylelint": "^14.11.0",
110
110
  "ts-loader": "^9.2.5",
111
111
  "tslib": "^2.3.1",
112
- "typescript": "^4.4.2"
112
+ "typescript": "^5.8.3"
113
113
  },
114
114
  "peerDependencies": {
115
115
  "amis": "*",
@@ -117,7 +117,7 @@
117
117
  "amis-formula": "*",
118
118
  "amis-theme-editor-helper": "*",
119
119
  "amis-ui": "*",
120
- "i18n-runtime": "*",
120
+ "i18n-runtime": "1.0.10",
121
121
  "react": ">=16.8.6",
122
122
  "react-dom": ">=16.8.6"
123
123
  }