@chamn/engine 0.0.9 → 0.0.11

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 (277) hide show
  1. package/dist/component/CSSEditor/index.d.ts +16 -0
  2. package/dist/component/CSSPropertiesEditor/cssProperties.d.ts +898 -0
  3. package/dist/component/CSSPropertiesEditor/index.d.ts +43 -0
  4. package/dist/component/CSSPropertiesEditor/util.d.ts +1 -0
  5. package/dist/component/CSSPropertiesVariableBindEditor/cssProperties.d.ts +898 -0
  6. package/dist/component/CSSPropertiesVariableBindEditor/index.d.ts +37 -0
  7. package/dist/component/CSSPropertiesVariableBindEditor/util.d.ts +1 -0
  8. package/dist/component/ClassNameEditor/index.d.ts +16 -0
  9. package/dist/component/CustomSchemaForm/components/Form/Field/index.d.ts +11 -0
  10. package/dist/component/CustomSchemaForm/components/Form/context.d.ts +12 -0
  11. package/dist/component/CustomSchemaForm/components/Form/index.d.ts +18 -0
  12. package/dist/component/CustomSchemaForm/components/SetterSwitcher/index.d.ts +14 -0
  13. package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/ArrayItem.d.ts +11 -0
  14. package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/SortItemOrderModal.d.ts +10 -0
  15. package/dist/component/CustomSchemaForm/components/Setters/ArraySetter/index.d.ts +14 -0
  16. package/dist/component/CustomSchemaForm/components/Setters/BooleanSetter/index.d.ts +5 -0
  17. package/dist/component/CustomSchemaForm/components/Setters/CSSValueSetter/index.d.ts +6 -0
  18. package/dist/component/CustomSchemaForm/components/Setters/ExpressionSetter/index.d.ts +8 -0
  19. package/dist/component/CustomSchemaForm/components/Setters/FunctionSetter/defaultDts.d.ts +1 -0
  20. package/dist/component/CustomSchemaForm/components/Setters/FunctionSetter/index.d.ts +2 -0
  21. package/dist/component/CustomSchemaForm/components/Setters/JSONSetter/index.d.ts +2 -0
  22. package/dist/component/CustomSchemaForm/components/Setters/NumberSetter/index.d.ts +3 -0
  23. package/dist/component/CustomSchemaForm/components/Setters/SelectSetter/index.d.ts +3 -0
  24. package/dist/component/CustomSchemaForm/components/Setters/ShapeSetter/index.d.ts +8 -0
  25. package/dist/component/CustomSchemaForm/components/Setters/StringSetter/index.d.ts +3 -0
  26. package/dist/component/CustomSchemaForm/components/Setters/TextAreaSetter/index.d.ts +3 -0
  27. package/dist/component/CustomSchemaForm/components/Setters/index.d.ts +3 -0
  28. package/dist/component/CustomSchemaForm/components/Setters/type.d.ts +19 -0
  29. package/dist/component/CustomSchemaForm/context.d.ts +15 -0
  30. package/dist/component/CustomSchemaForm/index.d.ts +20 -0
  31. package/dist/component/CustomSchemaForm/utils.d.ts +2 -0
  32. package/dist/component/MonacoEditor/index.d.ts +15 -0
  33. package/dist/component/Workbench/index.d.ts +61 -0
  34. package/dist/core/pluginManager.d.ts +61 -0
  35. package/dist/i18n/en_US/index.d.ts +5 -0
  36. package/dist/i18n/index.d.ts +6 -0
  37. package/dist/i18n/zh_CN/index.d.ts +5 -0
  38. package/dist/index.d.ts +44 -0
  39. package/dist/index.js +197 -0
  40. package/dist/index.js.map +1 -0
  41. package/dist/{index.es.js → index.mjs} +6867 -6541
  42. package/dist/index.mjs.map +1 -0
  43. package/dist/material/innerMaterial.d.ts +2 -0
  44. package/dist/plugins/AdvancePanel/index.d.ts +10 -0
  45. package/dist/plugins/ComponentLibrary/components/DragItem/index.d.ts +12 -0
  46. package/dist/plugins/ComponentLibrary/components/ListView/index.d.ts +9 -0
  47. package/dist/plugins/ComponentLibrary/index.d.ts +3 -0
  48. package/dist/plugins/ComponentLibrary/localize/en_US/index.d.ts +1 -0
  49. package/dist/plugins/ComponentLibrary/localize/index.d.ts +2 -0
  50. package/dist/plugins/ComponentLibrary/localize/zh_CN/index.d.ts +1 -0
  51. package/dist/plugins/ComponentLibrary/util.d.ts +1 -0
  52. package/dist/plugins/ComponentStatePanel/index.d.ts +10 -0
  53. package/dist/plugins/Designer/components/DefaultSelectToolBar/index.d.ts +10 -0
  54. package/dist/plugins/Designer/components/GhostView/index.d.ts +5 -0
  55. package/dist/plugins/Designer/config.d.ts +1 -0
  56. package/dist/plugins/Designer/index.d.ts +15 -0
  57. package/dist/plugins/Designer/localize/en_US/index.d.ts +1 -0
  58. package/dist/plugins/Designer/localize/index.d.ts +2 -0
  59. package/dist/plugins/Designer/localize/zh_CN/index.d.ts +1 -0
  60. package/dist/plugins/Designer/util.d.ts +2 -0
  61. package/dist/plugins/Designer/view.d.ts +30 -0
  62. package/dist/plugins/DisplaySourceSchema/index.d.ts +9 -0
  63. package/dist/plugins/GlobalStatePanel/index.d.ts +3 -0
  64. package/dist/plugins/GlobalStatePanel/localize/en_US/index.d.ts +1 -0
  65. package/dist/plugins/GlobalStatePanel/localize/index.d.ts +2 -0
  66. package/dist/plugins/GlobalStatePanel/localize/zh_CN/index.d.ts +1 -0
  67. package/dist/plugins/History/index.d.ts +2 -0
  68. package/dist/plugins/OutlineTree/components/TreeView/context.d.ts +30 -0
  69. package/dist/plugins/OutlineTree/components/TreeView/dataStruct.d.ts +21 -0
  70. package/dist/plugins/OutlineTree/components/TreeView/index.d.ts +34 -0
  71. package/dist/plugins/OutlineTree/components/TreeView/treeNode.d.ts +9 -0
  72. package/dist/plugins/OutlineTree/index.d.ts +3 -0
  73. package/dist/plugins/OutlineTree/localize/en_US/index.d.ts +1 -0
  74. package/dist/plugins/OutlineTree/localize/index.d.ts +2 -0
  75. package/dist/plugins/OutlineTree/localize/zh_CN/index.d.ts +1 -0
  76. package/dist/plugins/OutlineTree/util.d.ts +15 -0
  77. package/dist/plugins/PropertyPanel/index.d.ts +9 -0
  78. package/dist/plugins/RightPanel/index.d.ts +2 -0
  79. package/dist/plugins/RightPanel/view.d.ts +38 -0
  80. package/dist/plugins/VisualPanelPlus/index.d.ts +9 -0
  81. package/dist/plugins/index.d.ts +9 -0
  82. package/dist/utils/css.d.ts +19 -0
  83. package/dist/utils/defaultEngineConfig.d.ts +5 -0
  84. package/dist/utils/index.d.ts +6 -0
  85. package/dist/utils/logger.d.ts +1 -0
  86. package/package.json +12 -9
  87. package/.eslintignore +0 -1
  88. package/.eslintrc.js +0 -36
  89. package/.prettierrc.json +0 -7
  90. package/.storybook/main.js +0 -24
  91. package/.storybook/preview.js +0 -9
  92. package/CHANGELOG.md +0 -50
  93. package/__tests__/demo.test.ts +0 -3
  94. package/build.config.js +0 -88
  95. package/dist/index.cjs.js +0 -197
  96. package/dist/index.cjs.js.map +0 -1
  97. package/dist/index.es.js.map +0 -1
  98. package/index.html +0 -16
  99. package/jest.config.js +0 -196
  100. package/public/_dev_/render.d.ts +0 -2
  101. package/public/render.umd.js +0 -42
  102. package/public/render.umd.js.map +0 -1
  103. package/src/Engine.module.scss +0 -10
  104. package/src/Engine.module.scss.d.ts +0 -5
  105. package/src/_dev_/index.css +0 -22
  106. package/src/_dev_/index.tsx +0 -5
  107. package/src/_dev_/page/Editor/index.tsx +0 -198
  108. package/src/_dev_/page/Editor/indexCustom.tsx +0 -274
  109. package/src/_dev_/page/Preview/index.tsx +0 -56
  110. package/src/_dev_/render.ts +0 -3
  111. package/src/_dev_/router.tsx +0 -14
  112. package/src/assets/react.svg +0 -4
  113. package/src/assets/styles/mixin.scss +0 -15
  114. package/src/component/CSSEditor/index.tsx +0 -247
  115. package/src/component/CSSEditor/style.module.scss +0 -22
  116. package/src/component/CSSEditor/style.module.scss.d.ts +0 -6
  117. package/src/component/CSSPropertiesEditor/cssProperties.ts +0 -1062
  118. package/src/component/CSSPropertiesEditor/index.tsx +0 -389
  119. package/src/component/CSSPropertiesEditor/style.module.scss +0 -46
  120. package/src/component/CSSPropertiesEditor/style.module.scss.d.ts +0 -15
  121. package/src/component/CSSPropertiesEditor/util.ts +0 -19
  122. package/src/component/CSSPropertiesVariableBindEditor/cssProperties.ts +0 -782
  123. package/src/component/CSSPropertiesVariableBindEditor/index.tsx +0 -366
  124. package/src/component/CSSPropertiesVariableBindEditor/style.module.scss +0 -48
  125. package/src/component/CSSPropertiesVariableBindEditor/style.module.scss.d.ts +0 -15
  126. package/src/component/CSSPropertiesVariableBindEditor/util.ts +0 -19
  127. package/src/component/ClassNameEditor/index.tsx +0 -91
  128. package/src/component/ClassNameEditor/style.module.scss +0 -0
  129. package/src/component/CustomSchemaForm/components/Form/Field/index.tsx +0 -81
  130. package/src/component/CustomSchemaForm/components/Form/Field/style.module.scss +0 -32
  131. package/src/component/CustomSchemaForm/components/Form/Field/style.module.scss.d.ts +0 -8
  132. package/src/component/CustomSchemaForm/components/Form/context.ts +0 -23
  133. package/src/component/CustomSchemaForm/components/Form/index.tsx +0 -71
  134. package/src/component/CustomSchemaForm/components/SetterSwitcher/index.tsx +0 -273
  135. package/src/component/CustomSchemaForm/components/SetterSwitcher/style.module.scss +0 -16
  136. package/src/component/CustomSchemaForm/components/SetterSwitcher/style.module.scss.d.ts +0 -7
  137. package/src/component/CustomSchemaForm/components/Setters/ArraySetter/ArrayItem.tsx +0 -55
  138. package/src/component/CustomSchemaForm/components/Setters/ArraySetter/SortItemOrderModal.tsx +0 -160
  139. package/src/component/CustomSchemaForm/components/Setters/ArraySetter/index.tsx +0 -129
  140. package/src/component/CustomSchemaForm/components/Setters/ArraySetter/style.module.scss +0 -22
  141. package/src/component/CustomSchemaForm/components/Setters/ArraySetter/style.module.scss.d.ts +0 -7
  142. package/src/component/CustomSchemaForm/components/Setters/BooleanSetter/index.tsx +0 -32
  143. package/src/component/CustomSchemaForm/components/Setters/CSSValueSetter/index.tsx +0 -78
  144. package/src/component/CustomSchemaForm/components/Setters/CSSValueSetter/style.module.scss +0 -7
  145. package/src/component/CustomSchemaForm/components/Setters/CSSValueSetter/style.module.scss.d.ts +0 -6
  146. package/src/component/CustomSchemaForm/components/Setters/ExpressionSetter/index.tsx +0 -47
  147. package/src/component/CustomSchemaForm/components/Setters/FunctionSetter/defaultDts.ts +0 -28
  148. package/src/component/CustomSchemaForm/components/Setters/FunctionSetter/index.tsx +0 -93
  149. package/src/component/CustomSchemaForm/components/Setters/JSONSetter/index.tsx +0 -80
  150. package/src/component/CustomSchemaForm/components/Setters/NumberSetter/index.tsx +0 -34
  151. package/src/component/CustomSchemaForm/components/Setters/SelectSetter/index.tsx +0 -35
  152. package/src/component/CustomSchemaForm/components/Setters/ShapeSetter/index.tsx +0 -65
  153. package/src/component/CustomSchemaForm/components/Setters/StringSetter/index.tsx +0 -30
  154. package/src/component/CustomSchemaForm/components/Setters/TextAreaSetter/index.tsx +0 -31
  155. package/src/component/CustomSchemaForm/components/Setters/index.ts +0 -26
  156. package/src/component/CustomSchemaForm/components/Setters/type.ts +0 -18
  157. package/src/component/CustomSchemaForm/context.ts +0 -20
  158. package/src/component/CustomSchemaForm/index.tsx +0 -93
  159. package/src/component/CustomSchemaForm/style.module.scss +0 -15
  160. package/src/component/CustomSchemaForm/style.module.scss.d.ts +0 -11
  161. package/src/component/CustomSchemaForm/utils.ts +0 -13
  162. package/src/component/MonacoEditor/index.tsx +0 -81
  163. package/src/component/Workbench/index.tsx +0 -329
  164. package/src/component/Workbench/style.module.scss +0 -159
  165. package/src/component/Workbench/style.module.scss.d.ts +0 -25
  166. package/src/core/pluginManager.ts +0 -151
  167. package/src/i18n/en_US/index.ts +0 -5
  168. package/src/i18n/index.ts +0 -39
  169. package/src/i18n/zh_CN/index.ts +0 -5
  170. package/src/index.tsx +0 -150
  171. package/src/material/innerMaterial.ts +0 -343
  172. package/src/plugins/AdvancePanel/index.tsx +0 -191
  173. package/src/plugins/AdvancePanel/style.module.scss +0 -8
  174. package/src/plugins/AdvancePanel/style.module.scss.d.ts +0 -7
  175. package/src/plugins/ComponentLibrary/components/DragItem/index.tsx +0 -65
  176. package/src/plugins/ComponentLibrary/components/DragItem/style.module.scss +0 -58
  177. package/src/plugins/ComponentLibrary/components/DragItem/style.module.scss.d.ts +0 -9
  178. package/src/plugins/ComponentLibrary/components/ListView/index.tsx +0 -50
  179. package/src/plugins/ComponentLibrary/components/ListView/style.module.scss +0 -27
  180. package/src/plugins/ComponentLibrary/components/ListView/style.module.scss.d.ts +0 -12
  181. package/src/plugins/ComponentLibrary/index.tsx +0 -184
  182. package/src/plugins/ComponentLibrary/localize/en_US/index.ts +0 -3
  183. package/src/plugins/ComponentLibrary/localize/index.ts +0 -3
  184. package/src/plugins/ComponentLibrary/localize/zh_CN/index.ts +0 -3
  185. package/src/plugins/ComponentLibrary/style.module.scss +0 -31
  186. package/src/plugins/ComponentLibrary/style.module.scss.d.ts +0 -11
  187. package/src/plugins/ComponentLibrary/util.ts +0 -14
  188. package/src/plugins/ComponentStatePanel/index.tsx +0 -59
  189. package/src/plugins/Designer/components/DefaultSelectToolBar/index.tsx +0 -94
  190. package/src/plugins/Designer/components/DefaultSelectToolBar/style.module.scss +0 -59
  191. package/src/plugins/Designer/components/DefaultSelectToolBar/style.module.scss.d.ts +0 -11
  192. package/src/plugins/Designer/components/GhostView/index.tsx +0 -18
  193. package/src/plugins/Designer/config.ts +0 -1
  194. package/src/plugins/Designer/index.tsx +0 -61
  195. package/src/plugins/Designer/localize/en_US/index.ts +0 -3
  196. package/src/plugins/Designer/localize/index.ts +0 -3
  197. package/src/plugins/Designer/localize/zh_CN/index.ts +0 -3
  198. package/src/plugins/Designer/style.module.scss +0 -10
  199. package/src/plugins/Designer/style.module.scss.d.ts +0 -5
  200. package/src/plugins/Designer/util.ts +0 -18
  201. package/src/plugins/Designer/view.tsx +0 -225
  202. package/src/plugins/DisplaySourceSchema/index.tsx +0 -76
  203. package/src/plugins/GlobalStatePanel/index.tsx +0 -96
  204. package/src/plugins/GlobalStatePanel/localize/en_US/index.ts +0 -3
  205. package/src/plugins/GlobalStatePanel/localize/index.ts +0 -3
  206. package/src/plugins/GlobalStatePanel/localize/zh_CN/index.ts +0 -3
  207. package/src/plugins/GlobalStatePanel/style.module.scss +0 -8
  208. package/src/plugins/GlobalStatePanel/style.module.scss.d.ts +0 -5
  209. package/src/plugins/History/index.tsx +0 -110
  210. package/src/plugins/OutlineTree/components/TreeView/context.ts +0 -43
  211. package/src/plugins/OutlineTree/components/TreeView/dataStruct.ts +0 -58
  212. package/src/plugins/OutlineTree/components/TreeView/index.tsx +0 -376
  213. package/src/plugins/OutlineTree/components/TreeView/style.module.scss +0 -93
  214. package/src/plugins/OutlineTree/components/TreeView/style.module.scss.d.ts +0 -16
  215. package/src/plugins/OutlineTree/components/TreeView/treeNode.tsx +0 -271
  216. package/src/plugins/OutlineTree/index.tsx +0 -39
  217. package/src/plugins/OutlineTree/localize/en_US/index.ts +0 -3
  218. package/src/plugins/OutlineTree/localize/index.ts +0 -3
  219. package/src/plugins/OutlineTree/localize/zh_CN/index.ts +0 -3
  220. package/src/plugins/OutlineTree/util.tsx +0 -302
  221. package/src/plugins/PropertyPanel/index.tsx +0 -63
  222. package/src/plugins/PropertyPanel/style.module.scss +0 -12
  223. package/src/plugins/PropertyPanel/style.module.scss.d.ts +0 -10
  224. package/src/plugins/PropertyPanel/utils.ts +0 -13
  225. package/src/plugins/RightPanel/index.tsx +0 -30
  226. package/src/plugins/RightPanel/style.module.scss +0 -16
  227. package/src/plugins/RightPanel/style.module.scss.d.ts +0 -10
  228. package/src/plugins/RightPanel/view.tsx +0 -177
  229. package/src/plugins/VisualPanel/index.tsx +0 -185
  230. package/src/plugins/VisualPanel/style.module.scss +0 -17
  231. package/src/plugins/VisualPanelPlus/index.tsx +0 -103
  232. package/src/plugins/VisualPanelPlus/style.module.scss +0 -20
  233. package/src/plugins/VisualPanelPlus/style.module.scss.d.ts +0 -10
  234. package/src/plugins/index.tsx +0 -26
  235. package/src/stories/Button.jsx +0 -50
  236. package/src/stories/Button.stories.jsx +0 -40
  237. package/src/stories/Introduction.stories.mdx +0 -194
  238. package/src/stories/assets/code-brackets.svg +0 -1
  239. package/src/stories/assets/colors.svg +0 -1
  240. package/src/stories/assets/comments.svg +0 -1
  241. package/src/stories/assets/direction.svg +0 -1
  242. package/src/stories/assets/flow.svg +0 -1
  243. package/src/stories/assets/plugin.svg +0 -1
  244. package/src/stories/assets/repo.svg +0 -1
  245. package/src/stories/assets/stackalt.svg +0 -1
  246. package/src/stories/button.css +0 -30
  247. package/src/stories/plugins/CSSEditor.stories.tsx +0 -75
  248. package/src/stories/plugins/VisualPanelPlus.stories.tsx +0 -74
  249. package/src/style.d.ts +0 -2
  250. package/src/typing.d.ts +0 -9
  251. package/src/utils/css.ts +0 -88
  252. package/src/utils/defaultEngineConfig.tsx +0 -55
  253. package/src/utils/index.ts +0 -12
  254. package/src/utils/logger.ts +0 -4
  255. package/src/vite-env.d.ts +0 -1
  256. package/tsconfig.json +0 -32
  257. /package/{public → dist}/Engine.module.scss.d.ts +0 -0
  258. /package/{public → dist}/component/CSSEditor/style.module.scss.d.ts +0 -0
  259. /package/{public → dist}/component/CSSPropertiesEditor/style.module.scss.d.ts +0 -0
  260. /package/{public → dist}/component/CSSPropertiesVariableBindEditor/style.module.scss.d.ts +0 -0
  261. /package/{public → dist}/component/CustomSchemaForm/components/Form/Field/style.module.scss.d.ts +0 -0
  262. /package/{public → dist}/component/CustomSchemaForm/components/SetterSwitcher/style.module.scss.d.ts +0 -0
  263. /package/{public → dist}/component/CustomSchemaForm/components/Setters/ArraySetter/style.module.scss.d.ts +0 -0
  264. /package/{public → dist}/component/CustomSchemaForm/components/Setters/CSSValueSetter/style.module.scss.d.ts +0 -0
  265. /package/{public → dist}/component/CustomSchemaForm/style.module.scss.d.ts +0 -0
  266. /package/{public → dist}/component/Workbench/style.module.scss.d.ts +0 -0
  267. /package/{public → dist}/plugins/AdvancePanel/style.module.scss.d.ts +0 -0
  268. /package/{public → dist}/plugins/ComponentLibrary/components/DragItem/style.module.scss.d.ts +0 -0
  269. /package/{public → dist}/plugins/ComponentLibrary/components/ListView/style.module.scss.d.ts +0 -0
  270. /package/{public → dist}/plugins/ComponentLibrary/style.module.scss.d.ts +0 -0
  271. /package/{public → dist}/plugins/Designer/components/DefaultSelectToolBar/style.module.scss.d.ts +0 -0
  272. /package/{public → dist}/plugins/Designer/style.module.scss.d.ts +0 -0
  273. /package/{public → dist}/plugins/GlobalStatePanel/style.module.scss.d.ts +0 -0
  274. /package/{public → dist}/plugins/OutlineTree/components/TreeView/style.module.scss.d.ts +0 -0
  275. /package/{public → dist}/plugins/PropertyPanel/style.module.scss.d.ts +0 -0
  276. /package/{public → dist}/plugins/RightPanel/style.module.scss.d.ts +0 -0
  277. /package/{public → dist}/plugins/VisualPanelPlus/style.module.scss.d.ts +0 -0
@@ -0,0 +1,2 @@
1
+ import { CMaterialType } from '@chamn/model';
2
+ export declare const InnerComponentMeta: CMaterialType[];
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { CNode, CRootNode } from '@chamn/model';
3
+ import { CPluginCtx } from '../../core/pluginManager';
4
+ import { CRightPanelItem } from '../RightPanel/view';
5
+ export type AdvancePanelProps = {
6
+ node: CNode | CRootNode;
7
+ pluginCtx: CPluginCtx;
8
+ };
9
+ export declare const AdvancePanel: (props: AdvancePanelProps) => JSX.Element;
10
+ export declare const AdvancePanelConfig: CRightPanelItem;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ export type DragComponentItemProps = {
3
+ id: string;
4
+ name: string;
5
+ description?: any;
6
+ icon: React.ReactNode | string;
7
+ iconText?: string;
8
+ style?: React.CSSProperties;
9
+ containerClassName?: string;
10
+ };
11
+ export declare const DragComponentItem: (props: DragComponentItemProps) => JSX.Element;
12
+ export declare const DRAG_ITEM_KEY = "data-drag-key";
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { SnippetsType } from '@chamn/model';
3
+ export type ListViewProps = {
4
+ dataSource: {
5
+ name: string;
6
+ list: SnippetsType[];
7
+ }[];
8
+ };
9
+ export declare const ListView: (props: ListViewProps) => JSX.Element | null;
@@ -0,0 +1,3 @@
1
+ import { CPlugin } from '../../core/pluginManager';
2
+ export declare const PLUGIN_NAME = "ComponentLib";
3
+ export declare const ComponentLibPlugin: CPlugin;
@@ -0,0 +1 @@
1
+ export declare const en_US: Record<string, any>;
@@ -0,0 +1,2 @@
1
+ declare const _default: Record<string, any>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const zh_CN: Record<string, any>;
@@ -0,0 +1 @@
1
+ export declare const getTargetMNodeKeyVal: (dom: HTMLElement | null, key: string) => null | string;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { CNode, CRootNode } from '@chamn/model';
3
+ import { CPluginCtx } from '../../core/pluginManager';
4
+ import { CRightPanelItem } from '../RightPanel/view';
5
+ export type ComponentStatePanelProps = {
6
+ node: CNode | CRootNode;
7
+ pluginCtx: CPluginCtx;
8
+ };
9
+ export declare const ComponentStatePanel: (props: ComponentStatePanelProps) => JSX.Element;
10
+ export declare const ComponentStatePanelConfig: CRightPanelItem;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ import { CNode } from '@chamn/model';
3
+ export type DefaultSelectToolBarProps = {
4
+ nodeList: CNode[];
5
+ toSelectNode: (id: string) => void;
6
+ toDelete: (id: string) => void;
7
+ toCopy: (idd: string) => void;
8
+ toHidden: (idd: string) => void;
9
+ };
10
+ export declare const DefaultSelectToolBar: ({ nodeList, toSelectNode, toDelete, toCopy, toHidden, }: DefaultSelectToolBarProps) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ import { CNode, CRootNode } from '@chamn/model';
3
+ export declare const GhostView: ({ node }: {
4
+ node: CNode | CRootNode;
5
+ }) => JSX.Element;
@@ -0,0 +1 @@
1
+ export declare const PLUGIN_NAME = "Designer";
@@ -0,0 +1,15 @@
1
+ import { DragAndDrop } from '@chamn/layout';
2
+ import { CPlugin } from '../../core/pluginManager';
3
+ import { AssetPackage, CPageDataType } from '@chamn/model';
4
+ import { RenderInstance } from '@chamn/render';
5
+ export declare const DesignerPlugin: CPlugin;
6
+ export type DesignerExports = {
7
+ reload: (params?: {
8
+ assets?: AssetPackage[];
9
+ }) => void;
10
+ getDnd: () => DragAndDrop;
11
+ selectNode: (nodeId: string) => void;
12
+ updatePage: (page: CPageDataType) => void;
13
+ getComponentInstances: (id: string) => RenderInstance[];
14
+ getDynamicComponentInstances: (id: string) => RenderInstance;
15
+ };
@@ -0,0 +1 @@
1
+ export declare const en_US: Record<string, any>;
@@ -0,0 +1,2 @@
1
+ declare const _default: Record<string, any>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const zh_CN: Record<string, any>;
@@ -0,0 +1,2 @@
1
+ import { CNode, CRootNode } from '@chamn/model';
2
+ export declare const getClosestNodeList: (node: CNode | CRootNode, level?: number) => CNode[];
@@ -0,0 +1,30 @@
1
+ import React from 'react';
2
+ import { Layout } from '@chamn/layout';
3
+ import { CNode, CPage, CRootNode } from '@chamn/model';
4
+ import { CPluginCtx } from '../../core/pluginManager';
5
+ import { AssetPackage } from '@chamn/model';
6
+ export type DesignerPropsType = {
7
+ pluginCtx: CPluginCtx;
8
+ };
9
+ type DesignerStateType = {
10
+ pageModel: CPage;
11
+ hoverToolBar: React.ReactNode;
12
+ selectToolBar: React.ReactNode;
13
+ ghostView: React.ReactNode;
14
+ assets: AssetPackage[];
15
+ };
16
+ export declare class Designer extends React.Component<DesignerPropsType, DesignerStateType> {
17
+ layoutRef: React.RefObject<Layout>;
18
+ constructor(props: DesignerPropsType);
19
+ componentDidMount(): void;
20
+ updateAssets(assets: AssetPackage[]): void;
21
+ reloadRender({ assets }: {
22
+ assets?: AssetPackage[];
23
+ }): void;
24
+ init(): Promise<void>;
25
+ onSelectNode: (node: CNode | CRootNode | null) => void;
26
+ onDragStart: (startNode: CNode | CRootNode | null) => void;
27
+ onHoverNode: (node: CNode | CRootNode | null, startNode: CNode | CRootNode) => void;
28
+ render(): JSX.Element;
29
+ }
30
+ export {};
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { CPage } from '@chamn/model';
3
+ import { EnginContext } from '../../index';
4
+ export type DisplaySourceSchemaProps = {
5
+ pageModel: CPage;
6
+ engineCtx: EnginContext;
7
+ children: React.ReactNode;
8
+ };
9
+ export declare const DisplaySourceSchema: (props: DisplaySourceSchemaProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { CPlugin } from '../../core/pluginManager';
2
+ export declare const PLUGIN_NAME = "GlobalState";
3
+ export declare const GlobalStatePanelPlugin: CPlugin;
@@ -0,0 +1 @@
1
+ export declare const en_US: Record<string, any>;
@@ -0,0 +1,2 @@
1
+ declare const _default: Record<string, any>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const zh_CN: Record<string, any>;
@@ -0,0 +1,2 @@
1
+ import { CPlugin } from '../../core/pluginManager';
2
+ export declare const HistoryPlugin: CPlugin;
@@ -0,0 +1,30 @@
1
+ import { Sensor } from '@chamn/layout';
2
+ import { CPage } from '@chamn/model';
3
+ import React from 'react';
4
+ import { DesignerExports } from '../../../Designer';
5
+ import { TreeNodeData } from './dataStruct';
6
+ export declare enum DragState {
7
+ DRAGGING = "DRAGGING",
8
+ NORMAL = "NORMAL"
9
+ }
10
+ export type ContextState = {
11
+ treeData: TreeNodeData[];
12
+ currentSelectNodeKeys: string[];
13
+ expandKeys: string[];
14
+ multiSelect: boolean;
15
+ dragState: DragState;
16
+ pageModel: CPage | null;
17
+ };
18
+ export type CTreeContextData = {
19
+ sensor?: Sensor;
20
+ state: ContextState;
21
+ updateState: (state: Partial<ContextState>) => void;
22
+ onSelectNode: (params: {
23
+ keys: string[];
24
+ node: TreeNodeData;
25
+ }) => void;
26
+ onDeleteNode: (id: string) => void;
27
+ onCopyNode: (id: string) => void;
28
+ getDesignerHandler?: () => Promise<DesignerExports>;
29
+ };
30
+ export declare const CTreeContext: React.Context<CTreeContextData>;
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ export type TreeNodeData = {
3
+ containerRender?: (params: {
4
+ item: TreeNodeData;
5
+ treeNodeView: JSX.Element;
6
+ }) => React.ReactElement;
7
+ titleViewRender?: (params: {
8
+ item: TreeNodeData;
9
+ titleView: React.ReactNode;
10
+ }) => React.ReactElement;
11
+ title: React.ReactNode;
12
+ icon?: React.ReactNode;
13
+ key?: string;
14
+ children?: TreeNodeData[];
15
+ parent?: TreeNodeData | null;
16
+ canBeSelected?: boolean;
17
+ canDrag?: boolean;
18
+ canDrop?: boolean | ('before' | 'after' | 'current')[];
19
+ rootNode?: boolean;
20
+ };
21
+ export declare const DemoTreeData: TreeNodeData;
@@ -0,0 +1,34 @@
1
+ import { Sensor } from '@chamn/layout';
2
+ import { CNode, CRootNode } from '@chamn/model';
3
+ import React from 'react';
4
+ import { WithTranslation } from 'react-i18next';
5
+ import { CPluginCtx } from '../../../../core/pluginManager';
6
+ import { DesignerExports } from '../../../Designer';
7
+ import { ContextState } from './context';
8
+ import { TreeNodeData } from './dataStruct';
9
+ interface TreeViewProps extends WithTranslation {
10
+ pluginCtx: CPluginCtx;
11
+ multiSelect?: boolean;
12
+ }
13
+ export declare class TreeView extends React.Component<TreeViewProps, ContextState & {
14
+ dropPosInfo: {
15
+ x: number;
16
+ y: number;
17
+ } | null;
18
+ }> {
19
+ domRef: React.RefObject<HTMLDivElement>;
20
+ disposeCbList: (() => void)[];
21
+ sensor?: Sensor;
22
+ constructor(props: TreeViewProps);
23
+ getDesignerHandler: () => Promise<DesignerExports>;
24
+ updateTreeDataFromNode: () => void;
25
+ getParentKeyPaths: (targetKey: string) => string[];
26
+ scrollNodeToView: (key: string) => void;
27
+ componentDidMount(): Promise<void>;
28
+ toSelectTreeNode: (node: CNode | CRootNode) => void;
29
+ containNode: (parentNode: TreeNodeData, targetNode: TreeNodeData) => null;
30
+ getTreeNodeByKey: (key: string) => TreeNodeData | null;
31
+ registerDragEvent: () => Promise<void>;
32
+ render(): JSX.Element;
33
+ }
34
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { TreeNodeData } from './dataStruct';
3
+ export declare const DRAG_ITEM_KEY = "data-drag-key";
4
+ export type TreeNodeProps = {
5
+ item: TreeNodeData;
6
+ level?: number;
7
+ paths?: (string | number)[];
8
+ };
9
+ export declare const TreeNode: (props: TreeNodeProps) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import { CPlugin } from '../../core/pluginManager';
2
+ export declare const PLUGIN_NAME = "OutlineTree";
3
+ export declare const OutlineTreePlugin: CPlugin;
@@ -0,0 +1 @@
1
+ export declare const en_US: Record<string, any>;
@@ -0,0 +1,2 @@
1
+ declare const _default: Record<string, any>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const zh_CN: Record<string, any>;
@@ -0,0 +1,15 @@
1
+ import { DropPosType } from '@chamn/layout/dist/components/DropAnchor/util';
2
+ import { CNode, CNodeDataType, CPage, CPageDataType, MTitle } from '@chamn/model';
3
+ import { TreeNodeData } from './components/TreeView/dataStruct';
4
+ export declare const getTargetMNodeKeyVal: (dom: HTMLElement | null, key: string) => null | string;
5
+ export declare const transformNodeSchemaToTreeData: (nodeSchema: CNodeDataType | CNodeDataType[], parent: TreeNodeData, pageModel: CPage) => TreeNodeData | TreeNodeData[];
6
+ export declare const transformPageSchemaToTreeData: (pageSchema: CPageDataType, pageModel: CPage) => TreeNodeData[];
7
+ export declare const traverseTree: (tree: TreeNodeData | TreeNodeData[], handler: (node: TreeNodeData) => boolean) => void;
8
+ export declare function calculateDropPosInfo(params: {
9
+ point: {
10
+ x: number;
11
+ y: number;
12
+ };
13
+ dom: HTMLElement;
14
+ }): DropPosType;
15
+ export declare const getNodePropsLabelMap: (node: CNode) => Record<string, MTitle>;
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { CNode, CRootNode } from '@chamn/model';
3
+ import { CPluginCtx } from '../../core/pluginManager';
4
+ import { CRightPanelItem } from '../RightPanel/view';
5
+ export declare const PropertyPanel: (props: {
6
+ node: CNode | CRootNode;
7
+ pluginCtx: CPluginCtx;
8
+ }) => JSX.Element;
9
+ export declare const PropertyPanelConfig: CRightPanelItem;
@@ -0,0 +1,2 @@
1
+ import { CPlugin } from '../../core/pluginManager';
2
+ export declare const RightPanelPlugin: CPlugin;
@@ -0,0 +1,38 @@
1
+ import { CNode, CRootNode } from '@chamn/model';
2
+ import React from 'react';
3
+ import { CPluginCtx } from '../../core/pluginManager';
4
+ export type RightPanelOptions = {
5
+ node: CNode | CRootNode;
6
+ pluginCtx: CPluginCtx;
7
+ };
8
+ export type CRightPanelItem = {
9
+ key: string;
10
+ name: string | ((props: RightPanelOptions) => React.ReactNode);
11
+ view: (props: RightPanelOptions) => React.ReactNode;
12
+ show?: (options: RightPanelOptions) => boolean;
13
+ };
14
+ interface RightPanelProps {
15
+ pluginCtx: CPluginCtx;
16
+ }
17
+ interface RightPanelState {
18
+ node: CNode | CRootNode | null;
19
+ activeKey: string;
20
+ panels: CRightPanelItem[];
21
+ displayPanels: CRightPanelItem[];
22
+ }
23
+ export declare class RightPanel extends React.Component<RightPanelProps, RightPanelState> {
24
+ constructor(props: RightPanelProps);
25
+ addPanel: (panel: CRightPanelItem) => void;
26
+ removePanel: (panelName: string) => void;
27
+ replacePanel: (panelName: string, newPanel: CRightPanelItem) => void;
28
+ choosePanel: (panelName: string) => void;
29
+ /** 更新被展示的 panel, 根据 panel 的 show 方法 */
30
+ updatePanels: () => {
31
+ panels: CRightPanelItem[];
32
+ displayPanels: CRightPanelItem[];
33
+ };
34
+ onNodeChange: ({ node }: any) => void;
35
+ componentDidMount(): void;
36
+ render(): JSX.Element;
37
+ }
38
+ export {};
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import { CNode, CRootNode } from '@chamn/model';
3
+ import { CPluginCtx } from '../../core/pluginManager';
4
+ import { CRightPanelItem } from '../RightPanel/view';
5
+ export declare const VisualPanelPlus: (props: {
6
+ node: CNode | CRootNode;
7
+ pluginCtx: CPluginCtx;
8
+ }) => JSX.Element;
9
+ export declare const VisualPanelPlusConfig: CRightPanelItem;
@@ -0,0 +1,9 @@
1
+ import { CPlugin } from '../core/pluginManager';
2
+ import { ComponentLibPlugin } from './ComponentLibrary';
3
+ import { DesignerPlugin } from './Designer';
4
+ import { RightPanelPlugin } from './RightPanel';
5
+ import { GlobalStatePanelPlugin } from './GlobalStatePanel';
6
+ import { DisplaySourceSchema } from './DisplaySourceSchema';
7
+ import { HistoryPlugin } from './History';
8
+ export declare const DEFAULT_PLUGIN_LIST: CPlugin[];
9
+ export { DesignerPlugin, ComponentLibPlugin, RightPanelPlugin, GlobalStatePanelPlugin, HistoryPlugin, DisplaySourceSchema, };
@@ -0,0 +1,19 @@
1
+ import { CSSVal } from '../component/CSSEditor';
2
+ import { CSSType } from '@chamn/model';
3
+ export type StyleArr = {
4
+ key: string;
5
+ value: any;
6
+ }[];
7
+ export declare const styleArr2Obj: (val: StyleArr) => Record<string, any>;
8
+ export declare const formatCSSProperty: (cssVal: Record<string, any>) => {
9
+ normalProperty: {
10
+ key: string;
11
+ value: string;
12
+ }[];
13
+ expressionProperty: {
14
+ key: string;
15
+ value: any;
16
+ }[];
17
+ };
18
+ export declare const formatCssToNodeVal: (className: string, val: CSSVal) => CSSType;
19
+ export declare const formatNodeValToEditor: (val?: CSSType) => CSSVal;
@@ -0,0 +1,5 @@
1
+ import { LayoutPropsType } from '@chamn/layout';
2
+ /** 默认使用 react 18 模式渲染 */
3
+ export declare const beforeInitRender: LayoutPropsType['beforeInitRender'];
4
+ /** 默认使用 react 18 模式渲染 */
5
+ export declare const defaultRender: LayoutPropsType['customRender'];
@@ -0,0 +1,6 @@
1
+ /**
2
+ *
3
+ * @param time 毫秒
4
+ * @returns
5
+ */
6
+ export declare const waitReactUpdate: (time?: number) => Promise<unknown>;
@@ -0,0 +1 @@
1
+ export declare const LOGGER: import("consola").Consola;
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@chamn/engine",
3
- "version": "0.0.9",
4
- "main": "dist/index.cjs.js",
5
- "module": "dist/index.es.js",
3
+ "version": "0.0.11",
4
+ "files": [
5
+ "dist"
6
+ ],
7
+ "main": "dist/index.js",
8
+ "module": "dist/index.mjs",
6
9
  "types": "dist/index.d.ts",
7
10
  "publishConfig": {
8
11
  "access": "public"
@@ -31,9 +34,9 @@
31
34
  },
32
35
  "dependencies": {
33
36
  "@ant-design/icons": "^4.8.0",
34
- "@chamn/layout": "0.0.9",
35
- "@chamn/model": "0.0.9",
36
- "@chamn/render": "0.0.9",
37
+ "@chamn/layout": "0.0.11",
38
+ "@chamn/model": "0.0.11",
39
+ "@chamn/render": "0.0.11",
37
40
  "@dnd-kit/core": "^6.0.7",
38
41
  "@dnd-kit/modifiers": "^6.0.1",
39
42
  "@dnd-kit/sortable": "^7.0.2",
@@ -52,8 +55,8 @@
52
55
  },
53
56
  "devDependencies": {
54
57
  "@babel/core": "^7.21.0",
55
- "@chamn/build-script": "0.0.9",
56
- "@chamn/demo-page": "0.0.9",
58
+ "@chamn/build-script": "0.0.11",
59
+ "@chamn/demo-page": "0.0.11",
57
60
  "@storybook/addon-actions": "^6.5.16",
58
61
  "@storybook/addon-essentials": "^6.5.16",
59
62
  "@storybook/addon-interactions": "^6.5.16",
@@ -75,5 +78,5 @@
75
78
  "vite-plugin-monaco-editor": "^1.1.0"
76
79
  },
77
80
  "config": {},
78
- "gitHead": "f073439ea704830a6f62146c916c2f0348c2e531"
81
+ "gitHead": "dab187afcca315664284a4bc03d01a40a43e1cdf"
79
82
  }
package/.eslintignore DELETED
@@ -1 +0,0 @@
1
- .*
package/.eslintrc.js DELETED
@@ -1,36 +0,0 @@
1
- /* eslint-disable no-undef */
2
- module.exports = {
3
- root: true,
4
- settings: {
5
- react: {
6
- version: 'detect',
7
- },
8
- },
9
- env: {
10
- browser: true,
11
- es2021: true,
12
- },
13
- extends: [
14
- 'eslint:recommended',
15
- 'plugin:react/recommended',
16
- 'plugin:@typescript-eslint/recommended',
17
- 'plugin:react/jsx-runtime',
18
- ],
19
- parser: '@typescript-eslint/parser',
20
- parserOptions: {
21
- ecmaFeatures: {
22
- jsx: true,
23
- },
24
- ecmaVersion: 'latest',
25
- sourceType: 'module',
26
- },
27
- plugins: ['react', '@typescript-eslint', 'react-hooks'],
28
- rules: {
29
- 'no-debugger': 0,
30
- indent: ['error', 2],
31
- 'linebreak-style': ['error', 'unix'],
32
- quotes: ['error', 'single'],
33
- semi: ['error', 'always'],
34
- '@typescript-eslint/ban-types': 'warn',
35
- },
36
- };
package/.prettierrc.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "trailingComma": "es5",
3
- "tabWidth": 2,
4
- "semi": true,
5
- "singleQuote": true,
6
- "printWidth": 120
7
- }
@@ -1,24 +0,0 @@
1
- const { mergeConfig } = require('vite');
2
- const viteConfig = require('../build.config').vite;
3
- module.exports = {
4
- stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
5
- addons: ['@storybook/addon-links', '@storybook/addon-essentials', '@storybook/addon-interactions'],
6
- framework: '@storybook/react',
7
- core: {
8
- builder: '@storybook/builder-vite',
9
- },
10
- async viteFinal(config) {
11
- return mergeConfig(config, {
12
- // Use the same "resolve" configuration as your app
13
- resolve: viteConfig.resolve,
14
- css: viteConfig.css,
15
- // Add dependencies to pre-optimization
16
- optimizeDeps: {
17
- include: ['storybook-dark-mode'],
18
- },
19
- define: {
20
- global: 'window',
21
- },
22
- });
23
- },
24
- };
@@ -1,9 +0,0 @@
1
- export const parameters = {
2
- actions: { argTypesRegex: "^on[A-Z].*" },
3
- controls: {
4
- matchers: {
5
- color: /(background|color)$/i,
6
- date: /Date$/,
7
- },
8
- },
9
- }
package/CHANGELOG.md DELETED
@@ -1,50 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## [0.0.9](https://github.com/ByteCrazy/chameleon/compare/v0.0.8...v0.0.9) (2023-04-17)
7
-
8
- ### ✨ Features | 新功能
9
-
10
- * **docs-website, engine, render:** 🎸 render add collectVariable flatObject util method ([ae25160](https://github.com/ByteCrazy/chameleon/commit/ae25160b568c267041b3827e836c95f60ecaee59))
11
-
12
- ## [0.0.8](https://github.com/ByteCrazy/chameleon/compare/v0.0.7...v0.0.8) (2023-04-16)
13
-
14
- ### ✨ Features | 新功能
15
-
16
- * **build-script, engine, layout, model, render:** 🎸 optimize pack package ([78d99c5](https://github.com/ByteCrazy/chameleon/commit/78d99c507ad65ca39101f0239467737d2b445c87))
17
- * **docs-website, engine, layout:** 🎸 add defaultRender for engine, add some docs ([91f4257](https://github.com/ByteCrazy/chameleon/commit/91f4257e9f9b9391267e4b8d64e6ed811912381f))
18
- * **docs-website, engine:** 🎸 add docs ([0e6f605](https://github.com/ByteCrazy/chameleon/commit/0e6f6053fa3cd5e13b6a7a8258c27518c30470c5))
19
-
20
- ### 📝 Documentation | 文档
21
-
22
- * **docs-website, engine:** ✏️ add doc ([2fb5cf5](https://github.com/ByteCrazy/chameleon/commit/2fb5cf5fd4dcb3859ecbdc8d42adf787d9e0255d))
23
-
24
- ## [0.0.7](https://github.com/ByteCrazy/chameleon/compare/v0.0.6...v0.0.7) (2023-03-29)
25
-
26
- ### ✨ Features | 新功能
27
-
28
- * **build-script, build-script-example, demo-page, engine, layout, material, model, render:** 🎸 external monaco eitor and remove style panel ([494d898](https://github.com/ByteCrazy/chameleon/commit/494d898fd75dabe84d867ff45e84ae63f9b59c5e))
29
-
30
- ## [0.0.6](https://github.com/ByteCrazy/chameleon/compare/v0.0.5...v0.0.6) (2023-03-28)
31
-
32
- **Note:** Version bump only for package @chamn/engine
33
-
34
- ## [0.0.5](https://github.com/ByteCrazy/chameleon/compare/v0.0.4...v0.0.5) (2023-03-28)
35
-
36
- ### ✨ Features | 新功能
37
-
38
- * **build-script, engine, layout, material, model, render:** 🎸 complete package info ([86b095d](https://github.com/ByteCrazy/chameleon/commit/86b095da6c955946300591b1775f59c1a141c065))
39
-
40
- ## [0.0.4](https://github.com/ByteCrazy/chameleon/compare/v0.0.3...v0.0.4) (2023-03-27)
41
-
42
- ### 🐛 Bug Fixes | Bug 修复
43
-
44
- * **engine:** 🐛 fixed engine d.ts path not correct problem ([fb20ca6](https://github.com/ByteCrazy/chameleon/commit/fb20ca604fff4e85b0264eff6383154ecfefd437))
45
-
46
- ## [0.0.2](https://github.com/ByteCrazy/chameleon/compare/v0.0.1...v0.0.2) (2023-03-27)
47
-
48
- ### 🐛 Bug Fixes | Bug 修复
49
-
50
- * **engine:** 🐛 fix engine not incluce dist folder ([fc2c39e](https://github.com/ByteCrazy/chameleon/commit/fc2c39e88aa2eeb82ba5e3989e5bdf244d112dfb))
@@ -1,3 +0,0 @@
1
- test('adds 1 + 2 to equal 3', () => {
2
- expect(3).toBe(3);
3
- });