amis-editor-core 6.14.0-beta.8 → 6.14.0-beta.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.
@@ -5,6 +5,7 @@
5
5
  import { IAnyModelType, Instance, SnapshotIn } from 'mobx-state-tree';
6
6
  import { RegionConfig, RendererInfo } from '../plugin';
7
7
  import React from 'react';
8
+ import type { RendererConfig } from 'amis-core';
8
9
  export declare const EditorNode: import("mobx-state-tree").IModelType<{
9
10
  parentId: import("mobx-state-tree").IType<string | undefined, string, string>;
10
11
  parentRegion: import("mobx-state-tree").IType<string | undefined, string, string>;
@@ -219,7 +220,7 @@ export declare const EditorNode: import("mobx-state-tree").IModelType<{
219
220
  }): any;
220
221
  removeChild(child: any): void;
221
222
  toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
222
- patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined, ids?: Map<string, string>): void;
223
+ patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
223
224
  updateSchema(value: any): void;
224
225
  updateSchemaStyle(value: any): void;
225
226
  setComponent(value: any): void;
@@ -450,7 +451,7 @@ export declare const EditorNodeContext: React.Context<({
450
451
  }): any;
451
452
  removeChild(child: any): void;
452
453
  toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
453
- patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined, ids?: Map<string, string>): void;
454
+ patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
454
455
  updateSchema(value: any): void;
455
456
  updateSchemaStyle(value: any): void;
456
457
  setComponent(value: any): void;
@@ -680,7 +681,7 @@ export declare const EditorNodeContext: React.Context<({
680
681
  }): any;
681
682
  removeChild(child: any): void;
682
683
  toggleFold(e: React.MouseEvent<HTMLAnchorElement>): void;
683
- patch(store: any, force?: boolean, setPatchInfo?: ((id: string, value: any) => void) | undefined, ids?: Map<string, string>): void;
684
+ patch(store: any, force?: boolean, setPatchInfo?: (id: string, value: any) => void, ids?: Map<string, string>): void;
684
685
  updateSchema(value: any): void;
685
686
  updateSchemaStyle(value: any): void;
686
687
  setComponent(value: any): void;
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,4 +1,3 @@
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';
@@ -76,7 +75,7 @@ export declare const autobind: any;
76
75
  export declare function addDragingClass(el: HTMLElement): void;
77
76
  export declare function removeDragingClass(el: HTMLElement): void;
78
77
  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;
78
+ export declare const reactionWithOldValue: <T>(expression: () => T, effect: (newValue: T, oldValue?: T) => void) => import("mobx").IReactionDisposer;
80
79
  export declare function repeatArray<T>(child: T, count?: number): Array<T>;
81
80
  export type DiffChange = Diff<any, any>;
82
81
  export declare function diff(left: any, right: any, prefilter?: (currentPath: Array<string>, key: string) => boolean): Array<DiffChange> | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amis-editor-core",
3
- "version": "6.14.0-beta.8",
3
+ "version": "6.14.0-beta.9",
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
  }