@chamn/engine 0.1.1 → 0.2.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.
Files changed (65) hide show
  1. package/dist/_dev_/index.d.ts +1 -0
  2. package/dist/_dev_/lib/index.d.ts +1 -0
  3. package/dist/_dev_/page/Editor/index.d.ts +1 -0
  4. package/dist/_dev_/page/Preview/index.d.ts +1 -0
  5. package/dist/_dev_/render.d.ts +1 -0
  6. package/dist/_dev_/router.d.ts +1 -0
  7. package/dist/component/CSSEditor/index.d.ts +1 -1
  8. package/dist/component/CSSPropertiesEditor/index.d.ts +1 -2
  9. package/dist/component/CSSPropertiesEditor/signleProperty.d.ts +1 -2
  10. package/dist/component/CSSPropertiesEditor/util.d.ts +1 -0
  11. package/dist/component/CSSPropertiesVariableBindEditor/SingleProperty.d.ts +1 -2
  12. package/dist/component/CSSPropertiesVariableBindEditor/index.d.ts +1 -2
  13. package/dist/component/CSSPropertiesVariableBindEditor/util.d.ts +1 -0
  14. package/dist/component/CSSSizeInput/index.d.ts +7 -7
  15. package/dist/component/CSSUIPanel/BackgroundInput/index.d.ts +1 -2
  16. package/dist/component/CSSUIPanel/BorderInput/index.d.ts +1 -2
  17. package/dist/component/CSSUIPanel/DimensionInput/index.d.ts +1 -2
  18. package/dist/component/CSSUIPanel/FontInput/index.d.ts +1 -2
  19. package/dist/component/CSSUIPanel/MarginAndPaddingInput/index.d.ts +1 -2
  20. package/dist/component/CSSUIPanel/ShadowInput/index.d.ts +1 -2
  21. package/dist/component/CSSUIPanel/index.d.ts +1 -2
  22. package/dist/component/ClassNameEditor/index.d.ts +1 -1
  23. package/dist/component/CustomColorPicker/index.d.ts +2 -3
  24. package/dist/component/CustomSchemaForm/components/Form/Field/index.d.ts +1 -1
  25. package/dist/component/CustomSchemaForm/components/Form/context.d.ts +1 -1
  26. package/dist/component/CustomSchemaForm/components/Form/index.d.ts +5 -3
  27. package/dist/component/CustomSchemaForm/components/SetterSwitcher/index.d.ts +1 -1
  28. package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/ArrayItem.d.ts +1 -1
  29. package/dist/component/CustomSchemaForm/components/Setters/CSSSizeSetter/index.d.ts +1 -1
  30. package/dist/component/CustomSchemaForm/components/Setters/FunctionSetter/defaultDts.d.ts +78 -0
  31. package/dist/component/CustomSchemaForm/components/Setters/type.d.ts +0 -1
  32. package/dist/component/CustomSchemaForm/context.d.ts +1 -1
  33. package/dist/component/CustomSchemaForm/index.d.ts +1 -1
  34. package/dist/component/CustomSchemaForm/utils.d.ts +2 -2
  35. package/dist/component/Workbench/index.d.ts +2 -2
  36. package/dist/core/pluginManager.d.ts +1 -1
  37. package/dist/i18n/index.d.ts +1 -1
  38. package/dist/index.cjs +383 -0
  39. package/dist/index.cjs.map +1 -0
  40. package/dist/index.d.ts +5 -5
  41. package/dist/index.js +38342 -237
  42. package/dist/index.js.map +1 -1
  43. package/dist/material/innerMaterial.d.ts +37 -2
  44. package/dist/plugins/ComponentLibrary/components/DragItem/index.d.ts +1 -1
  45. package/dist/plugins/Designer/components/Canvas/advanceCustomHook.d.ts +12 -13
  46. package/dist/plugins/Designer/components/Canvas/index.d.ts +3 -4
  47. package/dist/plugins/Designer/type.d.ts +0 -1
  48. package/dist/plugins/DisplaySourceSchema/index.d.ts +1 -1
  49. package/dist/plugins/OutlineTree/components/TreeView/context.d.ts +2 -2
  50. package/dist/plugins/OutlineTree/components/TreeView/dataStruct.d.ts +1 -1
  51. package/dist/plugins/OutlineTree/components/TreeView/index.d.ts +2 -2
  52. package/dist/plugins/PropertyPanel/utils.d.ts +2 -0
  53. package/dist/plugins/RightPanel/view.d.ts +1 -1
  54. package/dist/stories/components/inputPlus.stories.d.ts +5 -0
  55. package/dist/stories/plugins/CSSEditor.stories.d.ts +5 -0
  56. package/dist/stories/plugins/VisualPanelPlus.stories.d.ts +5 -0
  57. package/dist/stories/setters/colorSetter.stories.d.ts +5 -0
  58. package/dist/type.d.ts +0 -1
  59. package/dist/utils/css.d.ts +1 -1
  60. package/dist/utils/defaultEngineConfig.d.ts +7 -7
  61. package/dist/utils/index.d.ts +2 -2
  62. package/dist/utils/logger.d.ts +1 -1
  63. package/package.json +9 -8
  64. package/dist/index.mjs +0 -35957
  65. package/dist/index.mjs.map +0 -1
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const CLayout: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const App: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const Preview: () => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export declare const router: any;
@@ -1,5 +1,5 @@
1
1
  import { MutableRefObject } from 'react';
2
- declare const DOM_CSS_STATUS: ("normal" | "hover" | "focus" | "focus-within" | "focus-visible" | "checked" | "disable" | "active")[];
2
+ declare const DOM_CSS_STATUS: ("normal" | "active" | "checked" | "hover" | "focus" | "focus-within" | "focus-visible" | "disable")[];
3
3
  type DomCSSStatusType = typeof DOM_CSS_STATUS[number];
4
4
  export type CSSVal = Partial<Record<DomCSSStatusType, Record<
5
5
  /** media query key */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export declare const defaultPropertyOptions: {
3
2
  value: string;
4
3
  }[];
@@ -18,4 +17,4 @@ export type CSSPropertiesEditorRef = {
18
17
  value: string;
19
18
  }[]) => void;
20
19
  };
21
- export declare const CSSPropertiesEditor: import("react").ForwardRefExoticComponent<CSSPropertiesEditorProps & import("react").RefAttributes<CSSPropertiesEditorRef>>;
20
+ export declare const CSSPropertiesEditor: import('react').ForwardRefExoticComponent<CSSPropertiesEditorProps & import('react').RefAttributes<CSSPropertiesEditorRef>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export type SinglePropertyEditorProps = {
3
2
  mode: 'create' | 'edit';
4
3
  value?: {
@@ -22,4 +21,4 @@ export type SinglePropertyEditorProps = {
22
21
  export type SinglePropertyEditorRef = {
23
22
  reset: () => void;
24
23
  };
25
- export declare const SinglePropertyEditor: import("react").ForwardRefExoticComponent<SinglePropertyEditorProps & import("react").RefAttributes<SinglePropertyEditorRef>>;
24
+ export declare const SinglePropertyEditor: import('react').ForwardRefExoticComponent<SinglePropertyEditorProps & import('react').RefAttributes<SinglePropertyEditorRef>>;
@@ -0,0 +1 @@
1
+ export declare const getTextWidth: (text: string, fontSize?: number) => Promise<string>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { JSExpressionPropType } from '@chamn/model';
3
2
  export type InnerSinglePropertyEditorProps = {
4
3
  value?: {
@@ -21,4 +20,4 @@ export type InnerSinglePropertyEditorProps = {
21
20
  export type InnerSinglePropertyEditorRef = {
22
21
  reset: () => void;
23
22
  };
24
- export declare const SinglePropertyEditor: import("react").ForwardRefExoticComponent<InnerSinglePropertyEditorProps & import("react").RefAttributes<InnerSinglePropertyEditorRef>>;
23
+ export declare const SinglePropertyEditor: import('react').ForwardRefExoticComponent<InnerSinglePropertyEditorProps & import('react').RefAttributes<InnerSinglePropertyEditorRef>>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { JSExpressionPropType } from '@chamn/model';
3
2
  export type CSSPropertiesVariableBindEditorProps = {
4
3
  initialValue?: {
@@ -16,4 +15,4 @@ export type CSSPropertiesVariableBindEditorRef = {
16
15
  value: string | JSExpressionPropType;
17
16
  }[]) => void;
18
17
  };
19
- export declare const CSSPropertiesVariableBindEditor: import("react").ForwardRefExoticComponent<CSSPropertiesVariableBindEditorProps & import("react").RefAttributes<CSSPropertiesVariableBindEditorRef>>;
18
+ export declare const CSSPropertiesVariableBindEditor: import('react').ForwardRefExoticComponent<CSSPropertiesVariableBindEditorProps & import('react').RefAttributes<CSSPropertiesVariableBindEditorRef>>;
@@ -0,0 +1 @@
1
+ export declare const getTextWidth: (text: string, fontSize?: number) => Promise<string>;
@@ -7,14 +7,14 @@ type CumulativeInfoType = {
7
7
  cumulativeY: number;
8
8
  };
9
9
  export declare const useDragSize: (options?: {
10
- onStart?: ((data: CumulativeInfoType) => void) | undefined;
11
- onChange?: ((data: CumulativeInfoType) => void) | undefined;
12
- onEnd?: ((data: CumulativeInfoType) => void) | undefined;
10
+ onStart?: (data: CumulativeInfoType) => void;
11
+ onChange?: (data: CumulativeInfoType) => void;
12
+ onEnd?: (data: CumulativeInfoType) => void;
13
13
  limitCumulative?: {
14
- x?: [number | undefined, number | undefined] | undefined;
15
- y?: [number | undefined, number | undefined] | undefined;
16
- } | undefined;
17
- } | undefined) => {
14
+ x?: [number | undefined, number | undefined];
15
+ y?: [number | undefined, number | undefined];
16
+ };
17
+ }) => {
18
18
  onMouseDown: MouseEventHandler<any>;
19
19
  };
20
20
  type MinMaxType = {
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputCommonRef } from '../type';
3
2
  declare const CSS_BACKGROUND_KEY_LIST: readonly ["background-color", "background-image", "background-repeat", "background-size"];
4
3
  type CSSBackgroundKeyType = typeof CSS_BACKGROUND_KEY_LIST[number];
@@ -8,5 +7,5 @@ export type BackgroundInputProps = {
8
7
  initialValue?: Value;
9
8
  onChange?: (newVal: Value) => void;
10
9
  };
11
- export declare const BackgroundInput: import("react").ForwardRefExoticComponent<BackgroundInputProps & import("react").RefAttributes<InputCommonRef>>;
10
+ export declare const BackgroundInput: import('react').ForwardRefExoticComponent<BackgroundInputProps & import('react').RefAttributes<InputCommonRef>>;
12
11
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputCommonRef } from '../type';
3
2
  declare const CSS_BORDER_KEY_LIST: readonly ["border", "border-radius"];
4
3
  type CSSBorderKeyType = typeof CSS_BORDER_KEY_LIST[number];
@@ -8,5 +7,5 @@ export type BorderInputProps = {
8
7
  initialValue?: Value;
9
8
  onChange?: (newVal: Value) => void;
10
9
  };
11
- export declare const BorderInput: import("react").ForwardRefExoticComponent<BorderInputProps & import("react").RefAttributes<InputCommonRef>>;
10
+ export declare const BorderInput: import('react').ForwardRefExoticComponent<BorderInputProps & import('react').RefAttributes<InputCommonRef>>;
12
11
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputCommonRef } from '../type';
3
2
  declare const keyList: readonly ["width", "height", "min-width", "max-width", "min-height", "max-height", "flex", "display"];
4
3
  type Value = Record<typeof keyList[number], string>;
@@ -7,5 +6,5 @@ export type DimensionInputProps = {
7
6
  initialValue?: Value;
8
7
  onChange?: (newVal: Value) => void;
9
8
  };
10
- export declare const DimensionInput: import("react").ForwardRefExoticComponent<DimensionInputProps & import("react").RefAttributes<InputCommonRef>>;
9
+ export declare const DimensionInput: import('react').ForwardRefExoticComponent<DimensionInputProps & import('react').RefAttributes<InputCommonRef>>;
11
10
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputCommonRef } from '../type';
3
2
  declare const FONT_CSS_KEY_LIST: readonly ["font-size", "color", "text-align", "font-weight"];
4
3
  type FontKeyType = typeof FONT_CSS_KEY_LIST[number];
@@ -8,5 +7,5 @@ export type FontInputProps = {
8
7
  value?: Value;
9
8
  onChange?: (newVal: Value) => void;
10
9
  };
11
- export declare const FontInput: import("react").ForwardRefExoticComponent<FontInputProps & import("react").RefAttributes<InputCommonRef>>;
10
+ export declare const FontInput: import('react').ForwardRefExoticComponent<FontInputProps & import('react').RefAttributes<InputCommonRef>>;
12
11
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputCommonRef } from '../type';
3
2
  type Value = Record<string, string>;
4
3
  export type MarginAndPaddingInputProps = {
@@ -7,5 +6,5 @@ export type MarginAndPaddingInputProps = {
7
6
  onChange?: (newVal: Value) => void;
8
7
  prefix: 'margin' | 'padding';
9
8
  };
10
- export declare const MarginAndPaddingInput: import("react").ForwardRefExoticComponent<MarginAndPaddingInputProps & import("react").RefAttributes<InputCommonRef>>;
9
+ export declare const MarginAndPaddingInput: import('react').ForwardRefExoticComponent<MarginAndPaddingInputProps & import('react').RefAttributes<InputCommonRef>>;
11
10
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputCommonRef } from '../type';
3
2
  type Value = Record<'box-shadow', string>;
4
3
  export type ShadowInputProps = {
@@ -6,5 +5,5 @@ export type ShadowInputProps = {
6
5
  initialValue?: Value;
7
6
  onChange?: (newVal: Value) => void;
8
7
  };
9
- export declare const ShadowInput: import("react").ForwardRefExoticComponent<ShadowInputProps & import("react").RefAttributes<InputCommonRef>>;
8
+ export declare const ShadowInput: import('react').ForwardRefExoticComponent<ShadowInputProps & import('react').RefAttributes<InputCommonRef>>;
10
9
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { InputCommonRef } from './type';
3
2
  export type CSSUIPanelProps = {
4
3
  initialVal?: Record<string, string>;
@@ -6,4 +5,4 @@ export type CSSUIPanelProps = {
6
5
  onValueChange?: (newVal: Record<string, string>) => void;
7
6
  };
8
7
  export type CSSUIPanelRef = InputCommonRef;
9
- export declare const CSSUIPanel: import("react").ForwardRefExoticComponent<CSSUIPanelProps & import("react").RefAttributes<InputCommonRef>>;
8
+ export declare const CSSUIPanel: import('react').ForwardRefExoticComponent<CSSUIPanelProps & import('react').RefAttributes<InputCommonRef>>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { ClassNameType } from '@chamn/model';
3
3
  export type ClassNameEditorProps = {
4
4
  initialValue?: ClassNameType[];
@@ -1,8 +1,7 @@
1
- /// <reference types="react" />
2
1
  import { ColorPickerProps } from 'antd';
3
2
  export type CustomColorPickerRef = {
4
3
  updateColor: (color: string) => void;
5
4
  };
6
- export declare const CustomColorPicker: import("react").ForwardRefExoticComponent<Omit<ColorPickerProps, "onChange"> & {
5
+ export declare const CustomColorPicker: import('react').ForwardRefExoticComponent<Omit<ColorPickerProps, "onChange"> & {
7
6
  onChange: (color: string) => void;
8
- } & import("react").RefAttributes<CustomColorPickerRef>>;
7
+ } & import('react').RefAttributes<CustomColorPickerRef>>;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
2
2
  export type CFieldProps = {
3
3
  children: React.ReactNode;
4
4
  label?: string;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { CSetter } from '../Setters/type';
3
3
  export type ContextState = Record<string, any>;
4
4
  export type CFormContextData = {
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
3
2
  import { CFormContextData, ContextState } from './context';
4
3
  export type CFormProps = {
5
4
  name: string;
@@ -8,10 +7,13 @@ export type CFormProps = {
8
7
  customSetterMap: CFormContextData['customSetterMap'];
9
8
  onValueChange?: (formData: Record<string, any>) => void;
10
9
  };
11
- export declare const registerCustomSetter: (customSetterMap: CFormContextData['customSetterMap']) => void;
10
+ export declare const registerCustomSetter: (customSetterMap: CFormContextData["customSetterMap"]) => void;
12
11
  export declare class CForm extends React.Component<CFormProps, CFormContextData> {
13
12
  updateContext: (newState: ContextState) => void;
13
+ isMount: boolean;
14
14
  constructor(props: CFormProps);
15
+ componentDidMount(): void;
16
+ componentWillUnmount(): void;
15
17
  getFieldsValue: () => Record<string, any>;
16
18
  setFields: (state: Record<string, any>) => void;
17
19
  formatValue: (data: Record<string, any>) => Record<string, any>;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { SetterObjType } from '@chamn/model';
3
3
  import { CFieldProps } from '../Form/Field';
4
4
  import { CSetter } from '../Setters/type';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { SetterObjType } from '@chamn/model';
3
3
  export declare function ArrayItem(props: {
4
4
  index: number;
@@ -1,3 +1,3 @@
1
1
  import { CSetter } from '../type';
2
- import { CSSSizeInputProps } from '../../../../../component/CSSSizeInput';
2
+ import { CSSSizeInputProps } from '../../../../CSSSizeInput';
3
3
  export declare const CSSSizeSetter: CSetter<CSSSizeInputProps>;
@@ -0,0 +1,78 @@
1
+ type SetStateInternal<T> = {
2
+ _(partial: T | Partial<T> | {
3
+ _(state: T): T | Partial<T>;
4
+ }['_'], replace?: boolean | undefined): void;
5
+ }['_'];
6
+ export interface StoreApi<T> {
7
+ setState: SetStateInternal<T>;
8
+ getState: () => T;
9
+ subscribe: (listener: (state: T, prevState: T) => void) => () => void;
10
+ /**
11
+ * @deprecated Use `unsubscribe` returned by `subscribe`
12
+ */
13
+ destroy: () => void;
14
+ }
15
+ export declare class StoreManager {
16
+ storeMap: Map<string, StoreApi<any>>;
17
+ getStore(storeName: string): StoreApi<any> | undefined;
18
+ getState(nodeId: string): any;
19
+ getStateObj(nodeId: string): {
20
+ state: any;
21
+ updateState: (newState: Record<any, any>) => void;
22
+ };
23
+ setState(nodeId: string, newState: Record<any, any>): void | undefined;
24
+ connect<T extends Record<any, any> = any>(name: string, cb: (newState: T) => void): () => void;
25
+ getStateSnapshot(): Record<string, any>;
26
+ destroy(): void;
27
+ }
28
+ type ContextType = {
29
+ /** 渲染函数的入口参数 */
30
+ params?: Record<any, any>;
31
+ /** 全局状态 */
32
+ globalState?: Record<any, any>;
33
+ /** 获取最新的GlobalState */
34
+ getGlobalState?: () => Record<any, any>;
35
+ /** 更新全局状态 */
36
+ updateGlobalState?: (newState: any) => void;
37
+ /** 存储当前节点的数据,不具有响应性 **/
38
+ staticVar?: Record<string | number, any>;
39
+ getStaticVar?: () => Record<string, any>;
40
+ getStaticVarById?: (nodeId: string) => Record<string, any>;
41
+ methods?: Record<string, (...arg: any) => any>;
42
+ getMethods?: () => Record<string, (...arg: any) => any>;
43
+ getMethodsById?: (nodeId: string) => Record<string, (...arg: any) => any>;
44
+ /** 当前节点状态 **/
45
+ state?: Record<any, any>;
46
+ /** 更新当前节点状态 */
47
+ updateState?: (newState: any) => void;
48
+ getState?: () => Record<any, any>;
49
+ getStateById?: (nodeId: string) => Record<any, any>;
50
+ updateStateById?: (nodeId: string, newState: Record<any, any>) => void;
51
+ getStateObj?: () => {
52
+ state?: Record<any, any>;
53
+ updateState?: (newState: any) => void;
54
+ };
55
+ getStateObjById?: (nodeId: string) => {
56
+ state?: Record<any, any>;
57
+ updateState?: (newState: any) => void;
58
+ };
59
+ /** 用于访访问和管理页面被注册为全局的局部 state 快照,在闭包中使用会存在值不是最新的情况 */
60
+ stateManager: Record<string, {
61
+ state: any;
62
+ updateState: (newState: Record<string, any>) => void;
63
+ }>;
64
+ /** 循环数据 */
65
+ loopData?: Record<any, any>;
66
+ /** 组件节点的 Ref */
67
+ refs?: {
68
+ get: (nodeId: string) => any;
69
+ };
70
+ storeManager?: StoreManager;
71
+ /** 第三方辅助库 */
72
+ thirdLibs?: Record<string, any>;
73
+ };
74
+ /** 渲染上下文 */
75
+ declare global {
76
+ const $$context: ContextType;
77
+ }
78
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CPluginCtx } from '../../../../core/pluginManager';
3
2
  export type CSetter<T = any> = {
4
3
  (props: CSetterProps<T>): JSX.Element;
@@ -1,4 +1,4 @@
1
- import React, { Ref } from 'react';
1
+ import { default as React, Ref } from 'react';
2
2
  import { CustomSchemaFormInstance } from '.';
3
3
  import { CPluginCtx } from '../../core/pluginManager';
4
4
  import { CForm } from './components/Form';
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { CMaterialPropsType } from '@chamn/model';
3
3
  import { CForm } from './components/Form';
4
4
  import { CPluginCtx } from '../../core/pluginManager';
@@ -1,2 +1,2 @@
1
- import { SetterObjType, SetterType } from '@chamn/model';
2
- export declare const getSetterList: <T extends string = "">(setters?: SetterType<T>[]) => SetterObjType<T>[];
1
+ import { SetterBasicType, SetterObjType, SetterType } from '@chamn/model';
2
+ export declare const getSetterList: <T extends SetterBasicType = "">(setters?: SetterType<T>[]) => SetterObjType<T>[];
@@ -1,6 +1,6 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  import { ResizeCallback } from 're-resizable';
3
- import { Emitter } from 'mitt';
3
+ import { Emitter } from '../../../node_modules/mitt';
4
4
  export interface PluginContext {
5
5
  openPanel: () => void;
6
6
  closePanel: () => void;
@@ -1,6 +1,6 @@
1
1
  import { Engine } from '../index';
2
2
  import { CPage } from '@chamn/model';
3
- import { Emitter } from 'mitt';
3
+ import { Emitter } from '../../node_modules/mitt';
4
4
  import { Workbench } from '../component/Workbench';
5
5
  import { CustomI18n } from '../i18n';
6
6
  import { AssetsPackageListManager } from './assetPackagesListManage';
@@ -1,4 +1,4 @@
1
- import i18n from 'i18next';
1
+ import { default as i18n } from 'i18next';
2
2
  export type CustomI18n = typeof i18n & {
3
3
  update: () => void;
4
4
  };