amis-editor-core 6.6.0 → 6.8.0

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/util.d.ts CHANGED
@@ -3,10 +3,12 @@ import type { Schema } from 'amis';
3
3
  import type { VariableItem } from 'amis-ui';
4
4
  import { Diff } from 'deep-diff';
5
5
  import { EditorModalBody } from './store/editor';
6
+ import type { SchemaType } from 'amis/lib/Schema';
6
7
  declare const guid: any, omitControls: any, isObjectShallowModified: any, cloneObject: any, anyChanged: any, noop: any, makeHorizontalDeeper: any, isEmpty: any, eachTree: any, createObject: any;
7
8
  export { guid, isObjectShallowModified, anyChanged, noop, makeHorizontalDeeper, omitControls, isEmpty, cloneObject, eachTree, createObject };
8
9
  export declare let themeConfig: any;
9
10
  export declare let themeOptionsData: any;
11
+ export declare let cssVars: any;
10
12
  export declare function __uri(id: string): string;
11
13
  export declare function cleanUndefined(obj: any): any;
12
14
  /**
@@ -19,6 +21,7 @@ export declare function JSONPipeOut(obj: any, filterHiddenProps?: boolean | ((ke
19
21
  export declare function JSONGetByPath(json: any, paths: Array<string>, stacks?: Array<any>): any;
20
22
  export declare function JSONGetPathById(json: any, id: string, idKey?: string): Array<string> | null;
21
23
  export declare function JSONGetById(json: any, id: string, idKey?: string): any;
24
+ export declare function JSONGetNodesById(json: any, id: string, idKey?: string): Array<any>;
22
25
  export declare function JSONGetParentById(json: any, id: string, skipArray?: boolean): any;
23
26
  export declare function JSONUpdate(json: any, id: string, value: any, replace?: boolean): any;
24
27
  export declare function JSONDelete(json: any, id: string, pathsRef?: Array<string>, deleteIfEmpty?: boolean): any;
@@ -129,6 +132,14 @@ export declare function appTranslate(value?: string): any;
129
132
  */
130
133
  export declare function needFillPlaceholder(curProps: any): boolean;
131
134
  export declare function setThemeConfig(config: any): void;
135
+ /**
136
+ * 获取组件的css变量
137
+ * @param id 组件id
138
+ * @param selectorText 选择器
139
+ * @returns css变量
140
+ */
141
+ export declare function getCssVarById(id: string, selectorText: string): PlainObject;
142
+ export declare function getAllCssVar(): any;
132
143
  export declare function getThemeConfig(): any;
133
144
  /**
134
145
  * 将style转换为组件ThemeCSS格式
@@ -185,3 +196,7 @@ export declare function modalsToDefinitions(modals: Array<EditorModalBody>, defi
185
196
  */
186
197
  export declare function mergeDefinitions(originSchema: any, definitions: any, modal: any): any;
187
198
  export declare function setDefaultColSize(regionList: any[], row: number, preRow?: number): any[];
199
+ export declare function getModals(schema: any): any[];
200
+ export declare const RAW_TYPE_MAP: {
201
+ [k in SchemaType | 'user-select' | 'department-select']?: 'string' | 'number' | 'array' | 'boolean' | 'object' | 'enum' | 'date' | 'datetime' | 'time' | 'quarter' | 'year' | 'month' | 'user' | 'department';
202
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-editor-core",
3
- "version": "6.6.0",
3
+ "version": "6.8.0",
4
4
  "description": "amis 可视化编辑器",
5
5
  "main": "lib/index.js",
6
6
  "module": "esm/index.js",