@chamn/engine 0.0.7 → 0.0.8
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 +12 -0
- package/README.md +2 -2
- package/build.config.js +16 -2
- package/dist/component/Workbench/style.module.scss.d.ts +0 -1
- package/dist/index.cjs.js +90 -362
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +17539 -45541
- package/dist/index.es.js.map +1 -1
- package/dist/plugins/Designer/util.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/utils/defaultEngineConfig.d.ts +5 -0
- 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_/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/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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.0.8](https://github.com/ByteCrazy/chameleon/compare/v0.0.7...v0.0.8) (2023-04-16)
|
|
7
|
+
|
|
8
|
+
### ✨ Features | 新功能
|
|
9
|
+
|
|
10
|
+
* **build-script, engine, layout, model, render:** 🎸 optimize pack package ([78d99c5](https://github.com/ByteCrazy/chameleon/commit/78d99c507ad65ca39101f0239467737d2b445c87))
|
|
11
|
+
* **docs-website, engine, layout:** 🎸 add defaultRender for engine, add some docs ([91f4257](https://github.com/ByteCrazy/chameleon/commit/91f4257e9f9b9391267e4b8d64e6ed811912381f))
|
|
12
|
+
* **docs-website, engine:** 🎸 add docs ([0e6f605](https://github.com/ByteCrazy/chameleon/commit/0e6f6053fa3cd5e13b6a7a8258c27518c30470c5))
|
|
13
|
+
|
|
14
|
+
### 📝 Documentation | 文档
|
|
15
|
+
|
|
16
|
+
* **docs-website, engine:** ✏️ add doc ([2fb5cf5](https://github.com/ByteCrazy/chameleon/commit/2fb5cf5fd4dcb3859ecbdc8d42adf787d9e0255d))
|
|
17
|
+
|
|
6
18
|
## [0.0.7](https://github.com/ByteCrazy/chameleon/compare/v0.0.6...v0.0.7) (2023-03-29)
|
|
7
19
|
|
|
8
20
|
### ✨ Features | 新功能
|
package/README.md
CHANGED
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
A streamlined low-code engine, all modules support custom extensions, which can be used for web page generation and rendering. Applicable to a variety of business scenarios, PC Page, H5 Page etc
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## [Document](https://hlerenow.github.io/chameleon/documents/)
|
|
8
8
|
|
|
9
|
-
[
|
|
9
|
+
## [Demo](https://hlerenow.github.io/chameleon/)
|
|
10
10
|
|
|
11
11
|
## Install
|
|
12
12
|
|
package/build.config.js
CHANGED
|
@@ -7,7 +7,7 @@ const monacoEditorPlugin = require('vite-plugin-monaco-editor').default;
|
|
|
7
7
|
|
|
8
8
|
// 开发模式默认读取 index.html 作为开发模式入口
|
|
9
9
|
// entry 作为打包库入口
|
|
10
|
-
const plugins = [
|
|
10
|
+
const plugins = [];
|
|
11
11
|
|
|
12
12
|
if (process.env.ANALYZE) {
|
|
13
13
|
plugins.push(
|
|
@@ -20,12 +20,26 @@ if (process.env.ANALYZE) {
|
|
|
20
20
|
);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
if (process.env.BUILD_TYPE !== 'PKG') {
|
|
24
|
+
plugins.push(
|
|
25
|
+
monacoEditorPlugin({
|
|
26
|
+
customDistPath: (root, buildOutDir) => {
|
|
27
|
+
console.log(111, root, buildOutDir);
|
|
28
|
+
return path.resolve(__dirname, './example/monacoeditorwork');
|
|
29
|
+
},
|
|
30
|
+
})
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
23
34
|
const mainConfig = {
|
|
24
35
|
libMode: process.env.BUILD_TYPE !== 'APP',
|
|
25
36
|
entry: './src/index.tsx',
|
|
26
37
|
// libName: 'CEngine',
|
|
27
38
|
fileName: 'index',
|
|
28
|
-
external:
|
|
39
|
+
external:
|
|
40
|
+
process.env.BUILD_TYPE === 'APP'
|
|
41
|
+
? []
|
|
42
|
+
: ['react', 'react-dom', 'monaco-editor', 'antd', '@chamn/model', '@chamn/layout'],
|
|
29
43
|
global: {
|
|
30
44
|
react: 'React',
|
|
31
45
|
'react-dom': 'ReactDOM',
|
|
@@ -2,7 +2,6 @@ import globalClassNames from '../../style.d';
|
|
|
2
2
|
declare const classNames: typeof globalClassNames & {
|
|
3
3
|
readonly workbenchContainer: 'workbenchContainer';
|
|
4
4
|
readonly topToolBarBox: 'topToolBarBox';
|
|
5
|
-
readonly logo: 'logo';
|
|
6
5
|
readonly topToolBarView: 'topToolBarView';
|
|
7
6
|
readonly bodyContent: 'bodyContent';
|
|
8
7
|
readonly leftBox: 'leftBox';
|