@chamn/engine 0.0.7 → 0.0.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.
- package/CHANGELOG.md +18 -0
- package/README.md +2 -2
- package/build.config.js +16 -2
- package/dist/index.cjs.js +90 -362
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +17844 -46121
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +10 -9
- package/public/component/Workbench/style.module.scss.d.ts +0 -1
- package/src/_dev_/index.css +10 -0
- package/src/_dev_/page/Editor/index.tsx +9 -86
- package/src/_dev_/page/Editor/indexCustom.tsx +274 -0
- package/src/_dev_/page/Preview/index.tsx +38 -6
- package/src/_dev_/router.tsx +0 -1
- package/src/component/Workbench/index.tsx +0 -2
- package/src/component/Workbench/style.module.scss +0 -8
- package/src/component/Workbench/style.module.scss.d.ts +0 -1
- package/src/index.tsx +12 -4
- package/src/plugins/Designer/util.ts +1 -1
- package/src/plugins/Designer/view.tsx +5 -3
- package/src/utils/defaultEngineConfig.tsx +55 -0
- package/dist/Engine.module.scss.d.ts +0 -5
- package/dist/component/CSSEditor/index.d.ts +0 -16
- package/dist/component/CSSEditor/style.module.scss.d.ts +0 -6
- package/dist/component/CSSPropertiesEditor/cssProperties.d.ts +0 -898
- package/dist/component/CSSPropertiesEditor/index.d.ts +0 -43
- package/dist/component/CSSPropertiesEditor/style.module.scss.d.ts +0 -15
- package/dist/component/CSSPropertiesEditor/util.d.ts +0 -1
- package/dist/component/CSSPropertiesVariableBindEditor/cssProperties.d.ts +0 -898
- package/dist/component/CSSPropertiesVariableBindEditor/index.d.ts +0 -37
- package/dist/component/CSSPropertiesVariableBindEditor/style.module.scss.d.ts +0 -15
- package/dist/component/CSSPropertiesVariableBindEditor/util.d.ts +0 -1
- package/dist/component/ClassNameEditor/index.d.ts +0 -16
- package/dist/component/CustomSchemaForm/components/Form/Field/index.d.ts +0 -11
- package/dist/component/CustomSchemaForm/components/Form/Field/style.module.scss.d.ts +0 -8
- package/dist/component/CustomSchemaForm/components/Form/context.d.ts +0 -10
- package/dist/component/CustomSchemaForm/components/Form/index.d.ts +0 -17
- package/dist/component/CustomSchemaForm/components/SetterSwitcher/index.d.ts +0 -12
- package/dist/component/CustomSchemaForm/components/SetterSwitcher/style.module.scss.d.ts +0 -7
- package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/ArrayItem.d.ts +0 -11
- package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/SortItemOrderModal.d.ts +0 -10
- package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/index.d.ts +0 -14
- package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/style.module.scss.d.ts +0 -7
- package/dist/component/CustomSchemaForm/components/Setters/BooleanSetter/index.d.ts +0 -5
- package/dist/component/CustomSchemaForm/components/Setters/CSSValueSetter/index.d.ts +0 -6
- package/dist/component/CustomSchemaForm/components/Setters/CSSValueSetter/style.module.scss.d.ts +0 -6
- package/dist/component/CustomSchemaForm/components/Setters/ExpressionSetter/index.d.ts +0 -8
- package/dist/component/CustomSchemaForm/components/Setters/FunctionSetter/defaultDts.d.ts +0 -1
- package/dist/component/CustomSchemaForm/components/Setters/FunctionSetter/index.d.ts +0 -2
- package/dist/component/CustomSchemaForm/components/Setters/JSONSetter/index.d.ts +0 -2
- package/dist/component/CustomSchemaForm/components/Setters/NumberSetter/index.d.ts +0 -3
- package/dist/component/CustomSchemaForm/components/Setters/SelectSetter/index.d.ts +0 -3
- package/dist/component/CustomSchemaForm/components/Setters/ShapeSetter/index.d.ts +0 -8
- package/dist/component/CustomSchemaForm/components/Setters/StringSetter/index.d.ts +0 -3
- package/dist/component/CustomSchemaForm/components/Setters/TextAreaSetter/index.d.ts +0 -3
- package/dist/component/CustomSchemaForm/components/Setters/index.d.ts +0 -3
- package/dist/component/CustomSchemaForm/components/Setters/type.d.ts +0 -19
- package/dist/component/CustomSchemaForm/context.d.ts +0 -15
- package/dist/component/CustomSchemaForm/index.d.ts +0 -17
- package/dist/component/CustomSchemaForm/style.module.scss.d.ts +0 -11
- package/dist/component/CustomSchemaForm/utils.d.ts +0 -2
- package/dist/component/MonacoEditor/index.d.ts +0 -15
- package/dist/component/Workbench/index.d.ts +0 -57
- package/dist/component/Workbench/style.module.scss.d.ts +0 -26
- package/dist/core/pluginManager.d.ts +0 -56
- package/dist/i18n/en_US/index.d.ts +0 -5
- package/dist/i18n/index.d.ts +0 -6
- package/dist/i18n/zh_CN/index.d.ts +0 -5
- package/dist/index.d.ts +0 -42
- package/dist/material/innerMaterial.d.ts +0 -2
- package/dist/monacoeditorwork/css.worker.bundle.js +0 -45072
- package/dist/monacoeditorwork/editor.worker.bundle.js +0 -8294
- package/dist/monacoeditorwork/html.worker.bundle.js +0 -24321
- package/dist/monacoeditorwork/json.worker.bundle.js +0 -15550
- package/dist/monacoeditorwork/ts.worker.bundle.js +0 -169967
- package/dist/plugins/AdvancePanel/index.d.ts +0 -10
- package/dist/plugins/AdvancePanel/style.module.scss.d.ts +0 -7
- package/dist/plugins/ComponentLibrary/components/DragItem/index.d.ts +0 -12
- package/dist/plugins/ComponentLibrary/components/DragItem/style.module.scss.d.ts +0 -9
- package/dist/plugins/ComponentLibrary/components/ListView/index.d.ts +0 -9
- package/dist/plugins/ComponentLibrary/components/ListView/style.module.scss.d.ts +0 -12
- package/dist/plugins/ComponentLibrary/index.d.ts +0 -3
- package/dist/plugins/ComponentLibrary/localize/en_US/index.d.ts +0 -1
- package/dist/plugins/ComponentLibrary/localize/index.d.ts +0 -2
- package/dist/plugins/ComponentLibrary/localize/zh_CN/index.d.ts +0 -1
- package/dist/plugins/ComponentLibrary/style.module.scss.d.ts +0 -11
- package/dist/plugins/ComponentLibrary/util.d.ts +0 -1
- package/dist/plugins/ComponentStatePanel/index.d.ts +0 -10
- package/dist/plugins/Designer/components/DefaultSelectToolBar/index.d.ts +0 -10
- package/dist/plugins/Designer/components/DefaultSelectToolBar/style.module.scss.d.ts +0 -11
- package/dist/plugins/Designer/components/GhostView/index.d.ts +0 -5
- package/dist/plugins/Designer/config.d.ts +0 -1
- package/dist/plugins/Designer/index.d.ts +0 -15
- package/dist/plugins/Designer/localize/en_US/index.d.ts +0 -1
- package/dist/plugins/Designer/localize/index.d.ts +0 -2
- package/dist/plugins/Designer/localize/zh_CN/index.d.ts +0 -1
- package/dist/plugins/Designer/style.module.scss.d.ts +0 -5
- package/dist/plugins/Designer/util.d.ts +0 -2
- package/dist/plugins/Designer/view.d.ts +0 -30
- package/dist/plugins/DisplaySourceSchema/index.d.ts +0 -9
- package/dist/plugins/GlobalStatePanel/index.d.ts +0 -3
- package/dist/plugins/GlobalStatePanel/localize/en_US/index.d.ts +0 -1
- package/dist/plugins/GlobalStatePanel/localize/index.d.ts +0 -2
- package/dist/plugins/GlobalStatePanel/localize/zh_CN/index.d.ts +0 -1
- package/dist/plugins/GlobalStatePanel/style.module.scss.d.ts +0 -5
- package/dist/plugins/History/index.d.ts +0 -2
- package/dist/plugins/OutlineTree/components/TreeView/context.d.ts +0 -30
- package/dist/plugins/OutlineTree/components/TreeView/dataStruct.d.ts +0 -21
- package/dist/plugins/OutlineTree/components/TreeView/index.d.ts +0 -34
- package/dist/plugins/OutlineTree/components/TreeView/style.module.scss.d.ts +0 -16
- package/dist/plugins/OutlineTree/components/TreeView/treeNode.d.ts +0 -9
- package/dist/plugins/OutlineTree/index.d.ts +0 -3
- package/dist/plugins/OutlineTree/localize/en_US/index.d.ts +0 -1
- package/dist/plugins/OutlineTree/localize/index.d.ts +0 -2
- package/dist/plugins/OutlineTree/localize/zh_CN/index.d.ts +0 -1
- package/dist/plugins/OutlineTree/util.d.ts +0 -15
- package/dist/plugins/PropertyPanel/index.d.ts +0 -9
- package/dist/plugins/PropertyPanel/style.module.scss.d.ts +0 -10
- package/dist/plugins/RightPanel/index.d.ts +0 -2
- package/dist/plugins/RightPanel/style.module.scss.d.ts +0 -10
- package/dist/plugins/RightPanel/view.d.ts +0 -34
- package/dist/plugins/VisualPanelPlus/index.d.ts +0 -9
- package/dist/plugins/VisualPanelPlus/style.module.scss.d.ts +0 -10
- package/dist/plugins/index.d.ts +0 -9
- package/dist/utils/css.d.ts +0 -19
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/logger.d.ts +0 -1
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export type SinglePropertyEditorProps = {
|
|
3
|
-
mode: 'create' | 'edit';
|
|
4
|
-
value: {
|
|
5
|
-
key: string;
|
|
6
|
-
value: string;
|
|
7
|
-
};
|
|
8
|
-
allValues: {
|
|
9
|
-
key: string;
|
|
10
|
-
value: string;
|
|
11
|
-
}[];
|
|
12
|
-
onValueChange: (value: {
|
|
13
|
-
key: string;
|
|
14
|
-
value: string;
|
|
15
|
-
}) => void;
|
|
16
|
-
onCreate?: (value: {
|
|
17
|
-
key: string;
|
|
18
|
-
value: string;
|
|
19
|
-
}) => void;
|
|
20
|
-
onDelete?: () => void;
|
|
21
|
-
};
|
|
22
|
-
type SinglePropertyEditorRef = {
|
|
23
|
-
reset: () => void;
|
|
24
|
-
};
|
|
25
|
-
export declare const SinglePropertyEditor: import("react").ForwardRefExoticComponent<SinglePropertyEditorProps & import("react").RefAttributes<SinglePropertyEditorRef>>;
|
|
26
|
-
export type CSSPropertiesEditorProps = {
|
|
27
|
-
initialValue?: {
|
|
28
|
-
key: string;
|
|
29
|
-
value: string;
|
|
30
|
-
}[];
|
|
31
|
-
onValueChange?: (val: {
|
|
32
|
-
key: string;
|
|
33
|
-
value: string;
|
|
34
|
-
}[]) => void;
|
|
35
|
-
};
|
|
36
|
-
export type CSSPropertiesEditorRef = {
|
|
37
|
-
setValue: (val: {
|
|
38
|
-
key: string;
|
|
39
|
-
value: string;
|
|
40
|
-
}[]) => void;
|
|
41
|
-
};
|
|
42
|
-
export declare const CSSPropertiesEditor: import("react").ForwardRefExoticComponent<CSSPropertiesEditorProps & import("react").RefAttributes<CSSPropertiesEditorRef>>;
|
|
43
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import globalClassNames from '../../style.d';
|
|
2
|
-
declare const classNames: typeof globalClassNames & {
|
|
3
|
-
readonly cssFieldBox: 'cssFieldBox';
|
|
4
|
-
readonly 'ant-select-selector': 'ant-select-selector';
|
|
5
|
-
readonly 'ant-select-single': 'ant-select-single';
|
|
6
|
-
readonly 'ant-select-selection-search': 'ant-select-selection-search';
|
|
7
|
-
readonly 'ant-select-status-error': 'ant-select-status-error';
|
|
8
|
-
readonly inputAuto: 'inputAuto';
|
|
9
|
-
readonly active: 'active';
|
|
10
|
-
readonly cssBox: 'cssBox';
|
|
11
|
-
readonly 'ant-collapse-borderless': 'ant-collapse-borderless';
|
|
12
|
-
readonly 'ant-collapse-item': 'ant-collapse-item';
|
|
13
|
-
readonly 'ant-collapse-content-box': 'ant-collapse-content-box';
|
|
14
|
-
};
|
|
15
|
-
export = classNames;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getTextWidth: (text: string, fontSize?: number) => Promise<string>;
|