Compare commits

...

10 Commits

Author SHA1 Message Date
JackLian
0d8e00b781 chore(release): publish 1.1.0-beta.10 2022-12-22 16:20:01 +08:00
JackLian
f0c3b1f2e5 chore: merge from develop 2022-12-22 16:13:57 +08:00
JackLian
f831643dc1 chore(release): publish 1.1.0-beta.9 2022-12-22 13:55:34 +08:00
JackLian
87be4f2761 fix(rax-renderer): fix type issue during build 2022-12-22 13:47:43 +08:00
JackLian
f610c7d0b0 chore: merge from develop 2022-12-22 13:42:01 +08:00
JackLian
7f69561232 chore(release): publish 1.1.0-beta.8 2022-12-22 13:10:29 +08:00
JackLian
0f38cc8e3d chore: merge from develop 2022-12-22 12:44:04 +08:00
JackLian
46789ac581 chore(release): publish 1.1.0-beta.7 2022-12-22 06:34:24 +08:00
JackLian
81c4659b79 chore: adjust beta version 2022-12-22 06:26:11 +08:00
JackLian
cb9b85660b feat: add some big features to engine 2022-12-22 06:18:49 +08:00
32 changed files with 165 additions and 72 deletions

View File

@ -5,6 +5,7 @@ tags: [FAQ]
---
## 简单场景
可以利用 props.__designMode
![image.png](https://img.alicdn.com/imgextra/i3/O1CN01btr66024FOEldBOr2_!!6000000007361-2-tps-1616-440.png)
设计态中__designMode 值为 "design"
@ -13,10 +14,12 @@ tags: [FAQ]
## 复杂场景
在资产包里定义 editUrls
![image.png](https://img.alicdn.com/imgextra/i1/O1CN01odal6P27Rhjn8NoJ6_!!6000000007794-2-tps-1590-538.png)
### editUrls
在 lowcode/xx/ 下新建一个 view.tsx
![image.png](https://img.alicdn.com/imgextra/i3/O1CN01q0Bbn91Lrig7d0alA_!!6000000001353-2-tps-598-154.png)
再执行

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-engine-docs",
"version": "1.0.9",
"version": "1.0.10",
"description": "低代码引擎版本化文档",
"license": "MIT",
"files": [

View File

@ -1,6 +1,6 @@
{
"lerna": "4.0.0",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"npmClient": "yarn",
"useWorkspaces": true,
"packages": [

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-designer",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "Designer for Ali LowCode Engine",
"main": "lib/index.js",
"module": "es/index.js",
@ -15,9 +15,9 @@
},
"license": "MIT",
"dependencies": {
"@alilc/lowcode-editor-core": "1.0.18",
"@alilc/lowcode-types": "1.0.18",
"@alilc/lowcode-utils": "1.0.18",
"@alilc/lowcode-editor-core": "1.1.0-beta.10",
"@alilc/lowcode-types": "1.1.0-beta.10",
"@alilc/lowcode-utils": "1.1.0-beta.10",
"classnames": "^2.2.6",
"react": "^16",
"react-dom": "^16.7.0",

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-editor-core",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "Core Api for Ali lowCode engine",
"license": "MIT",
"main": "lib/index.js",
@ -14,8 +14,8 @@
},
"dependencies": {
"@alifd/next": "^1.19.16",
"@alilc/lowcode-types": "1.0.18",
"@alilc/lowcode-utils": "1.0.18",
"@alilc/lowcode-types": "1.1.0-beta.10",
"@alilc/lowcode-utils": "1.1.0-beta.10",
"classnames": "^2.2.6",
"debug": "^4.1.1",
"intl-messageformat": "^9.3.1",

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-editor-skeleton",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "alibaba lowcode editor skeleton",
"main": "lib/index.js",
"module": "es/index.js",
@ -18,10 +18,10 @@
],
"dependencies": {
"@alifd/next": "^1.20.12",
"@alilc/lowcode-designer": "1.0.18",
"@alilc/lowcode-editor-core": "1.0.18",
"@alilc/lowcode-types": "1.0.18",
"@alilc/lowcode-utils": "1.0.18",
"@alilc/lowcode-designer": "1.1.0-beta.10",
"@alilc/lowcode-editor-core": "1.1.0-beta.10",
"@alilc/lowcode-types": "1.1.0-beta.10",
"@alilc/lowcode-utils": "1.1.0-beta.10",
"classnames": "^2.2.6",
"react": "^16.8.1",
"react-dom": "^16.8.1"

View File

@ -13,7 +13,7 @@ export class SettingsMain {
private _sessionId = '';
@obx.ref private _settings?: SettingTopEntry | null = null;
@obx.ref private _settings?: SettingTopEntry;
@computed get length(): number | undefined {
return this._settings?.nodes.length;

View File

@ -21,6 +21,9 @@ export class SettingsPrimaryPane extends Component<{ engineEditor: Editor; confi
constructor(props) {
super(props);
makeObservable(this);
const workspace = globalContext.get('workspace');
const editor = workspace.isActive ? workspace.window.editor : globalContext.get('editor');
this.main = new SettingsMain(editor);
}
componentDidMount() {

View File

@ -370,6 +370,12 @@ export class Skeleton {
...this.parseConfig(config),
...extraConfig,
};
parsedConfig.contentProps = {
pluginContext: this.editor.get('innerPlugins')?._getLowCodePluginContext({
pluginName: 'any',
}),
...(parsedConfig.contentProps || {}),
};
let { area } = parsedConfig;
if (!area) {
if (parsedConfig.type === 'Panel') {

View File

@ -25,6 +25,25 @@ const releaseVersion = getVersion();
module.exports = ({ context, onGetWebpackConfig }) => {
onGetWebpackConfig((config) => {
['jsx', 'tsx'].forEach((rule) => {
config.module
.rule(rule)
.exclude.clear()
.add(/node_modules(?!(.+_component_demo|.+build-plugin-component))/)
.end()
.use('babel-loader')
.tap((options) => {
const { plugins = [] } = options;
console.log('plugins', plugins);
return {
...options,
plugins: [
...plugins,
['@babel/plugin-proposal-class-properties', { loose: true }],
],
};
});
});
config.resolve
.plugin('tsconfigpaths')
.use(TsconfigPathsPlugin, [{

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-engine",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "An enterprise-class low-code technology stack with scale-out design / 一套面向扩展设计的企业级低代码技术体系",
"main": "lib/engine-core.js",
"module": "es/engine-core.js",
@ -19,14 +19,14 @@
"license": "MIT",
"dependencies": {
"@alifd/next": "^1.19.12",
"@alilc/lowcode-designer": "1.0.18",
"@alilc/lowcode-editor-core": "1.0.18",
"@alilc/lowcode-editor-skeleton": "1.0.18",
"@alilc/lowcode-designer": "1.1.0-beta.10",
"@alilc/lowcode-editor-core": "1.1.0-beta.10",
"@alilc/lowcode-editor-skeleton": "1.1.0-beta.10",
"@alilc/lowcode-engine-ext": "^1.0.0",
"@alilc/lowcode-plugin-designer": "1.0.18",
"@alilc/lowcode-plugin-outline-pane": "1.0.18",
"@alilc/lowcode-shell": "1.0.18",
"@alilc/lowcode-utils": "1.0.18",
"@alilc/lowcode-plugin-designer": "1.1.0-beta.10",
"@alilc/lowcode-plugin-outline-pane": "1.1.0-beta.10",
"@alilc/lowcode-shell": "1.1.0-beta.10",
"@alilc/lowcode-utils": "1.1.0-beta.10",
"react": "^16.8.1",
"react-dom": "^16.8.1"
},

View File

@ -172,7 +172,7 @@ export async function init(
// 注册一批内置插件
await plugins.register(OutlinePlugin);
await plugins.register(componentMetaParser(designer));
await plugins.register(setterRegistry);
await plugins.register(setterRegistry, {}, { autoInit: true });
await plugins.register(defaultPanelRegistry(editor, designer));
await plugins.register(builtinHotkey);

View File

@ -6,6 +6,26 @@ const { version } = lernaConfig;
module.exports = ({ context, onGetWebpackConfig }) => {
onGetWebpackConfig((config) => {
['jsx', 'tsx'].forEach((rule) => {
config.module
.rule(rule)
.exclude.clear()
.add(/node_modules(?!(.+_component_demo|.+build-plugin-component))/)
.end()
.use('babel-loader')
.tap((options) => {
const { plugins = [] } = options;
console.log('plugins', plugins);
return {
...options,
plugins: [
...plugins,
['@babel/plugin-proposal-class-properties', { loose: true }],
],
};
});
});
config.resolve.plugin('tsconfigpaths').use(TsconfigPathsPlugin, [
{
configFile: './tsconfig.json',

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-ignitor",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "点火器bootstrap lce project",
"main": "lib/index.js",
"private": true,

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-plugin-designer",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "alibaba lowcode editor designer plugin",
"files": [
"es",
@ -18,9 +18,9 @@
],
"author": "xiayang.xy",
"dependencies": {
"@alilc/lowcode-designer": "1.0.18",
"@alilc/lowcode-editor-core": "1.0.18",
"@alilc/lowcode-utils": "1.0.18",
"@alilc/lowcode-designer": "1.1.0-beta.10",
"@alilc/lowcode-editor-core": "1.1.0-beta.10",
"@alilc/lowcode-utils": "1.1.0-beta.10",
"react": "^16.8.1",
"react-dom": "^16.8.1"
},

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-plugin-outline-pane",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "Outline pane for Ali lowCode engine",
"files": [
"es",
@ -13,10 +13,10 @@
},
"dependencies": {
"@alifd/next": "^1.19.16",
"@alilc/lowcode-designer": "1.0.18",
"@alilc/lowcode-editor-core": "1.0.18",
"@alilc/lowcode-types": "1.0.18",
"@alilc/lowcode-utils": "1.0.18",
"@alilc/lowcode-designer": "1.1.0-beta.10",
"@alilc/lowcode-editor-core": "1.1.0-beta.10",
"@alilc/lowcode-types": "1.1.0-beta.10",
"@alilc/lowcode-utils": "1.1.0-beta.10",
"classnames": "^2.2.6",
"react": "^16",
"react-dom": "^16.7.0",

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-rax-renderer",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "Rax renderer for Ali lowCode engine",
"main": "lib/index.js",
"module": "es/index.js",
@ -30,8 +30,8 @@
"build": "build-scripts build"
},
"dependencies": {
"@alilc/lowcode-renderer-core": "1.0.18",
"@alilc/lowcode-utils": "1.0.18",
"@alilc/lowcode-renderer-core": "1.1.0-beta.10",
"@alilc/lowcode-utils": "1.1.0-beta.10",
"rax-find-dom-node": "^1.0.1"
},
"devDependencies": {

View File

@ -41,8 +41,8 @@ function factory() {
};
}
const RaxRenderer = factory();
const Engine = RaxRenderer;
const RaxRenderer: any = factory();
const Engine: any = RaxRenderer;
export {
Engine,

View File

@ -1,6 +1,6 @@
import { blockRendererFactory, types } from '@alilc/lowcode-renderer-core';
export default function raxBlockRendererFactory() {
const raxBlockRendererFactory: () => any = () => {
const OriginBlock = blockRendererFactory();
return class BlockRenderer extends OriginBlock {
render() {
@ -21,4 +21,5 @@ export default function raxBlockRendererFactory() {
return that.__renderContextConsumer(children);
}
};
}
};
export default raxBlockRendererFactory;

View File

@ -1,6 +1,6 @@
import { componentRendererFactory, types } from '@alilc/lowcode-renderer-core';
export default function raxComponentRendererFactory() {
const raxComponentRendererFactory: () => any = () => {
const OriginComponent = componentRendererFactory();
return class ComponentRenderer extends OriginComponent {
render() {
@ -33,4 +33,5 @@ export default function raxComponentRendererFactory() {
return that.__renderContent(content);
}
};
}
};
export default raxComponentRendererFactory;

View File

@ -1,6 +1,6 @@
import { pageRendererFactory, types } from '@alilc/lowcode-renderer-core';
export default function raxPageRendererFactory() {
const raxPageRendererFactory: () => any = () => {
const OriginPage = pageRendererFactory();
return class PageRenderer extends OriginPage {
async componentDidUpdate() {
@ -33,4 +33,6 @@ export default function raxPageRendererFactory() {
}));
}
};
}
};
export default raxPageRendererFactory;

View File

@ -1,5 +1,24 @@
module.exports = ({ onGetWebpackConfig }) => {
onGetWebpackConfig((config) => {
['jsx', 'tsx'].forEach((rule) => {
config.module
.rule(rule)
.exclude.clear()
.add(/node_modules(?!(.+_component_demo|.+build-plugin-component))/)
.end()
.use('babel-loader')
.tap((options) => {
const { plugins = [] } = options;
console.log('plugins', plugins);
return {
...options,
plugins: [
...plugins,
['@babel/plugin-proposal-class-properties', { loose: true }],
],
};
});
});
config.performance.hints(false);
});
};

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-rax-simulator-renderer",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "rax simulator renderer for alibaba lowcode designer",
"main": "lib/index.js",
"module": "es/index.js",
@ -13,10 +13,10 @@
"build:umd": "build-scripts build --config build.umd.json"
},
"dependencies": {
"@alilc/lowcode-designer": "1.0.18",
"@alilc/lowcode-rax-renderer": "1.0.18",
"@alilc/lowcode-types": "1.0.18",
"@alilc/lowcode-utils": "1.0.18",
"@alilc/lowcode-designer": "1.1.0-beta.10",
"@alilc/lowcode-rax-renderer": "1.1.0-beta.10",
"@alilc/lowcode-types": "1.1.0-beta.10",
"@alilc/lowcode-utils": "1.1.0-beta.10",
"classnames": "^2.2.6",
"driver-universal": "^3.1.3",
"history": "^5.0.0",

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-react-renderer",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "react renderer for ali lowcode engine",
"main": "lib/index.js",
"module": "es/index.js",
@ -22,7 +22,7 @@
],
"dependencies": {
"@alifd/next": "^1.21.16",
"@alilc/lowcode-renderer-core": "1.0.18"
"@alilc/lowcode-renderer-core": "1.1.0-beta.10"
},
"devDependencies": {
"@alib/build-scripts": "^0.1.18",

View File

@ -1,5 +1,24 @@
module.exports = ({ onGetWebpackConfig }) => {
onGetWebpackConfig((config) => {
['jsx', 'tsx'].forEach((rule) => {
config.module
.rule(rule)
.exclude.clear()
.add(/node_modules(?!(.+_component_demo|.+build-plugin-component))/)
.end()
.use('babel-loader')
.tap((options) => {
const { plugins = [] } = options;
console.log('plugins', plugins);
return {
...options,
plugins: [
...plugins,
['@babel/plugin-proposal-class-properties', { loose: true }],
],
};
});
});
config.performance.hints(false);
});
};

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-react-simulator-renderer",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "react simulator renderer for alibaba lowcode designer",
"main": "lib/index.js",
"module": "es/index.js",
@ -17,10 +17,10 @@
"test:cov": "build-scripts test --config build.test.json --jest-coverage"
},
"dependencies": {
"@alilc/lowcode-designer": "1.0.18",
"@alilc/lowcode-react-renderer": "1.0.18",
"@alilc/lowcode-types": "1.0.18",
"@alilc/lowcode-utils": "1.0.18",
"@alilc/lowcode-designer": "1.1.0-beta.10",
"@alilc/lowcode-react-renderer": "1.1.0-beta.10",
"@alilc/lowcode-types": "1.1.0-beta.10",
"@alilc/lowcode-utils": "1.1.0-beta.10",
"classnames": "^2.2.6",
"mobx": "^6.3.0",
"mobx-react": "^7.2.0",

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-renderer-core",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "renderer core",
"license": "MIT",
"main": "lib/index.js",
@ -16,8 +16,8 @@
},
"dependencies": {
"@alilc/lowcode-datasource-engine": "^1.0.0",
"@alilc/lowcode-types": "1.0.18",
"@alilc/lowcode-utils": "1.0.18",
"@alilc/lowcode-types": "1.1.0-beta.10",
"@alilc/lowcode-utils": "1.1.0-beta.10",
"classnames": "^2.2.6",
"debug": "^4.1.1",
"fetch-jsonp": "^1.1.3",
@ -32,7 +32,7 @@
"devDependencies": {
"@alib/build-scripts": "^0.1.18",
"@alifd/next": "^1.26.0",
"@alilc/lowcode-designer": "1.0.18",
"@alilc/lowcode-designer": "1.1.0-beta.10",
"@babel/plugin-transform-typescript": "^7.16.8",
"@testing-library/react": "^11.2.2",
"@types/classnames": "^2.2.11",

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-shell",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "Shell Layer for AliLowCodeEngine",
"main": "lib/index.js",
"module": "es/index.js",
@ -15,11 +15,11 @@
},
"license": "MIT",
"dependencies": {
"@alilc/lowcode-designer": "1.0.18",
"@alilc/lowcode-editor-core": "1.0.18",
"@alilc/lowcode-editor-skeleton": "1.0.18",
"@alilc/lowcode-types": "1.0.18",
"@alilc/lowcode-utils": "1.0.18",
"@alilc/lowcode-designer": "1.1.0-beta.10",
"@alilc/lowcode-editor-core": "1.1.0-beta.10",
"@alilc/lowcode-editor-skeleton": "1.1.0-beta.10",
"@alilc/lowcode-types": "1.1.0-beta.10",
"@alilc/lowcode-utils": "1.1.0-beta.10",
"classnames": "^2.2.6",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-types",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "Types for Ali lowCode engine",
"files": [
"es",

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-utils",
"version": "1.0.18",
"version": "1.1.0-beta.10",
"description": "Utils for Ali lowCode engine",
"files": [
"lib",
@ -14,7 +14,7 @@
},
"dependencies": {
"@alifd/next": "^1.19.16",
"@alilc/lowcode-types": "1.0.18",
"@alilc/lowcode-types": "1.1.0-beta.10",
"lodash": "^4.17.21",
"mobx": "^6.3.0",
"react": "^16"

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-workspace",
"version": "1.0.15",
"version": "1.1.0-beta.10",
"description": "Shell Layer for AliLowCodeEngine",
"main": "lib/index.js",
"private": true,

View File

@ -133,7 +133,7 @@ export class BasicContext {
// 注册一批内置插件
this.registerInnerPlugins = async function registerPlugins() {
await plugins.register(componentMetaParser(designer));
await plugins.register(setterRegistry);
await plugins.register(setterRegistry, {}, { autoInit: true });
await plugins.register(defaultPanelRegistry(editor, designer));
await plugins.register(builtinHotkey);
};