@chamn/engine 0.0.9 → 0.0.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.
Files changed (110) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/Engine.module.scss.d.ts +5 -0
  3. package/dist/component/CSSEditor/index.d.ts +16 -0
  4. package/dist/component/CSSEditor/style.module.scss.d.ts +6 -0
  5. package/dist/component/CSSPropertiesEditor/cssProperties.d.ts +898 -0
  6. package/dist/component/CSSPropertiesEditor/index.d.ts +43 -0
  7. package/dist/component/CSSPropertiesEditor/style.module.scss.d.ts +15 -0
  8. package/dist/component/CSSPropertiesEditor/util.d.ts +1 -0
  9. package/dist/component/CSSPropertiesVariableBindEditor/cssProperties.d.ts +898 -0
  10. package/dist/component/CSSPropertiesVariableBindEditor/index.d.ts +37 -0
  11. package/dist/component/CSSPropertiesVariableBindEditor/style.module.scss.d.ts +15 -0
  12. package/dist/component/CSSPropertiesVariableBindEditor/util.d.ts +1 -0
  13. package/dist/component/ClassNameEditor/index.d.ts +16 -0
  14. package/dist/component/CustomSchemaForm/components/Form/Field/index.d.ts +11 -0
  15. package/dist/component/CustomSchemaForm/components/Form/Field/style.module.scss.d.ts +8 -0
  16. package/dist/component/CustomSchemaForm/components/Form/context.d.ts +10 -0
  17. package/dist/component/CustomSchemaForm/components/Form/index.d.ts +17 -0
  18. package/dist/component/CustomSchemaForm/components/SetterSwitcher/index.d.ts +12 -0
  19. package/dist/component/CustomSchemaForm/components/SetterSwitcher/style.module.scss.d.ts +7 -0
  20. package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/ArrayItem.d.ts +11 -0
  21. package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/SortItemOrderModal.d.ts +10 -0
  22. package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/index.d.ts +14 -0
  23. package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/style.module.scss.d.ts +7 -0
  24. package/dist/component/CustomSchemaForm/components/Setters/BooleanSetter/index.d.ts +5 -0
  25. package/dist/component/CustomSchemaForm/components/Setters/CSSValueSetter/index.d.ts +6 -0
  26. package/dist/component/CustomSchemaForm/components/Setters/CSSValueSetter/style.module.scss.d.ts +6 -0
  27. package/dist/component/CustomSchemaForm/components/Setters/ExpressionSetter/index.d.ts +8 -0
  28. package/dist/component/CustomSchemaForm/components/Setters/FunctionSetter/defaultDts.d.ts +1 -0
  29. package/dist/component/CustomSchemaForm/components/Setters/FunctionSetter/index.d.ts +2 -0
  30. package/dist/component/CustomSchemaForm/components/Setters/JSONSetter/index.d.ts +2 -0
  31. package/dist/component/CustomSchemaForm/components/Setters/NumberSetter/index.d.ts +3 -0
  32. package/dist/component/CustomSchemaForm/components/Setters/SelectSetter/index.d.ts +3 -0
  33. package/dist/component/CustomSchemaForm/components/Setters/ShapeSetter/index.d.ts +8 -0
  34. package/dist/component/CustomSchemaForm/components/Setters/StringSetter/index.d.ts +3 -0
  35. package/dist/component/CustomSchemaForm/components/Setters/TextAreaSetter/index.d.ts +3 -0
  36. package/dist/component/CustomSchemaForm/components/Setters/index.d.ts +3 -0
  37. package/dist/component/CustomSchemaForm/components/Setters/type.d.ts +19 -0
  38. package/dist/component/CustomSchemaForm/context.d.ts +15 -0
  39. package/dist/component/CustomSchemaForm/index.d.ts +17 -0
  40. package/dist/component/CustomSchemaForm/style.module.scss.d.ts +11 -0
  41. package/dist/component/CustomSchemaForm/utils.d.ts +2 -0
  42. package/dist/component/MonacoEditor/index.d.ts +15 -0
  43. package/dist/component/Workbench/index.d.ts +57 -0
  44. package/dist/component/Workbench/style.module.scss.d.ts +25 -0
  45. package/dist/core/pluginManager.d.ts +56 -0
  46. package/dist/i18n/en_US/index.d.ts +5 -0
  47. package/dist/i18n/index.d.ts +6 -0
  48. package/dist/i18n/zh_CN/index.d.ts +5 -0
  49. package/dist/index.cjs.js +34 -34
  50. package/dist/index.cjs.js.map +1 -1
  51. package/dist/index.d.ts +43 -0
  52. package/dist/index.es.js +6407 -6132
  53. package/dist/index.es.js.map +1 -1
  54. package/dist/material/innerMaterial.d.ts +2 -0
  55. package/dist/plugins/AdvancePanel/index.d.ts +10 -0
  56. package/dist/plugins/AdvancePanel/style.module.scss.d.ts +7 -0
  57. package/dist/plugins/ComponentLibrary/components/DragItem/index.d.ts +12 -0
  58. package/dist/plugins/ComponentLibrary/components/DragItem/style.module.scss.d.ts +9 -0
  59. package/dist/plugins/ComponentLibrary/components/ListView/index.d.ts +9 -0
  60. package/dist/plugins/ComponentLibrary/components/ListView/style.module.scss.d.ts +12 -0
  61. package/dist/plugins/ComponentLibrary/index.d.ts +3 -0
  62. package/dist/plugins/ComponentLibrary/localize/en_US/index.d.ts +1 -0
  63. package/dist/plugins/ComponentLibrary/localize/index.d.ts +2 -0
  64. package/dist/plugins/ComponentLibrary/localize/zh_CN/index.d.ts +1 -0
  65. package/dist/plugins/ComponentLibrary/style.module.scss.d.ts +11 -0
  66. package/dist/plugins/ComponentLibrary/util.d.ts +1 -0
  67. package/dist/plugins/ComponentStatePanel/index.d.ts +10 -0
  68. package/dist/plugins/Designer/components/DefaultSelectToolBar/index.d.ts +10 -0
  69. package/dist/plugins/Designer/components/DefaultSelectToolBar/style.module.scss.d.ts +11 -0
  70. package/dist/plugins/Designer/components/GhostView/index.d.ts +5 -0
  71. package/dist/plugins/Designer/config.d.ts +1 -0
  72. package/dist/plugins/Designer/index.d.ts +15 -0
  73. package/dist/plugins/Designer/localize/en_US/index.d.ts +1 -0
  74. package/dist/plugins/Designer/localize/index.d.ts +2 -0
  75. package/dist/plugins/Designer/localize/zh_CN/index.d.ts +1 -0
  76. package/dist/plugins/Designer/style.module.scss.d.ts +5 -0
  77. package/dist/plugins/Designer/util.d.ts +2 -0
  78. package/dist/plugins/Designer/view.d.ts +30 -0
  79. package/dist/plugins/DisplaySourceSchema/index.d.ts +9 -0
  80. package/dist/plugins/GlobalStatePanel/index.d.ts +3 -0
  81. package/dist/plugins/GlobalStatePanel/localize/en_US/index.d.ts +1 -0
  82. package/dist/plugins/GlobalStatePanel/localize/index.d.ts +2 -0
  83. package/dist/plugins/GlobalStatePanel/localize/zh_CN/index.d.ts +1 -0
  84. package/dist/plugins/GlobalStatePanel/style.module.scss.d.ts +5 -0
  85. package/dist/plugins/History/index.d.ts +2 -0
  86. package/dist/plugins/OutlineTree/components/TreeView/context.d.ts +30 -0
  87. package/dist/plugins/OutlineTree/components/TreeView/dataStruct.d.ts +21 -0
  88. package/dist/plugins/OutlineTree/components/TreeView/index.d.ts +34 -0
  89. package/dist/plugins/OutlineTree/components/TreeView/style.module.scss.d.ts +16 -0
  90. package/dist/plugins/OutlineTree/components/TreeView/treeNode.d.ts +9 -0
  91. package/dist/plugins/OutlineTree/index.d.ts +3 -0
  92. package/dist/plugins/OutlineTree/localize/en_US/index.d.ts +1 -0
  93. package/dist/plugins/OutlineTree/localize/index.d.ts +2 -0
  94. package/dist/plugins/OutlineTree/localize/zh_CN/index.d.ts +1 -0
  95. package/dist/plugins/OutlineTree/util.d.ts +15 -0
  96. package/dist/plugins/PropertyPanel/index.d.ts +9 -0
  97. package/dist/plugins/PropertyPanel/style.module.scss.d.ts +10 -0
  98. package/dist/plugins/RightPanel/index.d.ts +2 -0
  99. package/dist/plugins/RightPanel/style.module.scss.d.ts +10 -0
  100. package/dist/plugins/RightPanel/view.d.ts +34 -0
  101. package/dist/plugins/VisualPanelPlus/index.d.ts +9 -0
  102. package/dist/plugins/VisualPanelPlus/style.module.scss.d.ts +10 -0
  103. package/dist/plugins/index.d.ts +9 -0
  104. package/dist/utils/css.d.ts +19 -0
  105. package/dist/utils/defaultEngineConfig.d.ts +5 -0
  106. package/dist/utils/index.d.ts +6 -0
  107. package/dist/utils/logger.d.ts +1 -0
  108. package/package.json +7 -7
  109. package/public/render.umd.js +12 -12
  110. package/public/render.umd.js.map +1 -1
@@ -0,0 +1,43 @@
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 {};
@@ -0,0 +1,15 @@
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;
@@ -0,0 +1 @@
1
+ export declare const getTextWidth: (text: string, fontSize?: number) => Promise<string>;