Compare commits

...

4 Commits

Author SHA1 Message Date
JackLian
1e95f1d0d0 chore(release): publish 1.1.4-beta.1 2023-03-16 11:23:10 +08:00
JackLian
e6f1a34c2b chore(docs): publish docs 1.0.21 2023-03-16 11:20:33 +08:00
liujuping
43d618dbc6 refactor: rename internalToShell to internalToShellField 2023-03-16 11:20:33 +08:00
JackLian
f295278bfb chore(release): publish 1.1.4-beta.0 2023-03-16 09:32:17 +08:00
22 changed files with 85 additions and 85 deletions

View File

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

View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-designer",
"version": "1.1.3",
"version": "1.1.4-beta.1",
"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.1.3",
"@alilc/lowcode-types": "1.1.3",
"@alilc/lowcode-utils": "1.1.3",
"@alilc/lowcode-editor-core": "1.1.4-beta.1",
"@alilc/lowcode-types": "1.1.4-beta.1",
"@alilc/lowcode-utils": "1.1.4-beta.1",
"classnames": "^2.2.6",
"react": "^16",
"react-dom": "^16.7.0",

View File

@ -73,7 +73,7 @@ INode
onEffect(action: () => void): IPublicTypeDisposable;
internalToShell(): IPublicModelSettingField;
internalToShellField(): IPublicModelSettingField;
}
export class SettingField extends SettingPropEntry implements ISettingField {
@ -143,7 +143,7 @@ export class SettingField extends SettingPropEntry implements ISettingField {
}
if (isDynamicSetter(this._setter)) {
return untracked(() => {
const shellThis = this.internalToShell();
const shellThis = this.internalToShellField();
return (this._setter as IPublicTypeDynamicSetter)?.call(shellThis, shellThis!);
});
}
@ -296,7 +296,7 @@ export class SettingField extends SettingPropEntry implements ISettingField {
}
internalToShell() {
internalToShellField() {
return this.designer!.shellModelFactory.createSettingField(this);
}
}

View File

@ -35,7 +35,7 @@ export interface ISettingPropEntry extends ISettingEntry {
setValue(val: any, isHotValue?: boolean, force?: boolean, extraOptions?: IPublicTypeSetValueOptions): void;
internalToShell(): IPublicModelSettingField;
internalToShellField(): IPublicModelSettingField;
}
export class SettingPropEntry implements ISettingPropEntry {
@ -157,7 +157,7 @@ export class SettingPropEntry implements ISettingPropEntry {
if (this.type !== 'field') {
const { getValue } = this.extraProps;
return getValue
? getValue(this.internalToShell()!, undefined) === undefined
? getValue(this.internalToShellField()!, undefined) === undefined
? 0
: 1
: 0;
@ -196,7 +196,7 @@ export class SettingPropEntry implements ISettingPropEntry {
}
const { getValue } = this.extraProps;
try {
return getValue ? getValue(this.internalToShell()!, val) : val;
return getValue ? getValue(this.internalToShellField()!, val) : val;
} catch (e) {
console.warn(e);
return val;
@ -215,7 +215,7 @@ export class SettingPropEntry implements ISettingPropEntry {
const { setValue } = this.extraProps;
if (setValue && !extraOptions?.disableMutator) {
try {
setValue(this.internalToShell()!, val);
setValue(this.internalToShellField()!, val);
} catch (e) {
/* istanbul ignore next */
console.warn(e);
@ -238,7 +238,7 @@ export class SettingPropEntry implements ISettingPropEntry {
const { setValue } = this.extraProps;
if (setValue) {
try {
setValue(this.internalToShell()!, undefined);
setValue(this.internalToShellField()!, undefined);
} catch (e) {
/* istanbul ignore next */
console.warn(e);
@ -394,7 +394,7 @@ export class SettingPropEntry implements ISettingPropEntry {
return v;
}
internalToShell(): IPublicModelSettingField {
internalToShellField(): IPublicModelSettingField {
return this.designer!.shellModelFactory.createSettingField(this);;
}
}

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-editor-core",
"version": "1.1.3",
"version": "1.1.4-beta.1",
"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.1.3",
"@alilc/lowcode-utils": "1.1.3",
"@alilc/lowcode-types": "1.1.4-beta.1",
"@alilc/lowcode-utils": "1.1.4-beta.1",
"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.1.3",
"version": "1.1.4-beta.1",
"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.1.3",
"@alilc/lowcode-editor-core": "1.1.3",
"@alilc/lowcode-types": "1.1.3",
"@alilc/lowcode-utils": "1.1.3",
"@alilc/lowcode-designer": "1.1.4-beta.1",
"@alilc/lowcode-editor-core": "1.1.4-beta.1",
"@alilc/lowcode-types": "1.1.4-beta.1",
"@alilc/lowcode-utils": "1.1.4-beta.1",
"classnames": "^2.2.6",
"react": "^16.8.1",
"react-dom": "^16.8.1"

View File

@ -80,7 +80,7 @@ class SettingFieldView extends Component<SettingFieldViewProps, SettingFieldView
const { extraProps } = this.field;
const { condition } = extraProps;
try {
return typeof condition === 'function' ? condition(this.field.internalToShell()) !== false : true;
return typeof condition === 'function' ? condition(this.field.internalToShellField()) !== false : true;
} catch (error) {
console.error('exception when condition (hidden) is excuted', error);
}
@ -123,7 +123,7 @@ class SettingFieldView extends Component<SettingFieldViewProps, SettingFieldView
if (setter.props) {
setterProps = setter.props;
if (typeof setterProps === 'function') {
setterProps = setterProps(this.field.internalToShell());
setterProps = setterProps(this.field.internalToShellField());
}
}
if (setter.initialValue != null) {
@ -190,7 +190,7 @@ class SettingFieldView extends Component<SettingFieldViewProps, SettingFieldView
}
// 当前 field 没有 value 值时,将 initialValue 写入 field
// 之所以用 initialValue而不是 defaultValue 是为了保持跟 props.onInitial 的逻辑一致
const _initialValue = typeof initialValue === 'function' ? initialValue(this.field.internalToShell()) : initialValue;
const _initialValue = typeof initialValue === 'function' ? initialValue(this.field.internalToShellField()) : initialValue;
this.field.setValue(_initialValue);
}
@ -238,9 +238,9 @@ class SettingFieldView extends Component<SettingFieldViewProps, SettingFieldView
forceInline: extraProps.forceInline,
key: field.id,
// === injection
prop: field.internalToShell(), // for compatible vision
prop: field.internalToShellField(), // for compatible vision
selected: field.top?.getNode()?.internalToShellNode(),
field: field.internalToShell(),
field: field.internalToShellField(),
// === IO
value, // reaction point
initialValue,
@ -257,7 +257,7 @@ class SettingFieldView extends Component<SettingFieldViewProps, SettingFieldView
if (initialValue == null) {
return;
}
const value = typeof initialValue === 'function' ? initialValue(field.internalToShell()) : initialValue;
const value = typeof initialValue === 'function' ? initialValue(field.internalToShellField()) : initialValue;
this.setState({
// eslint-disable-next-line react/no-unused-state
value,
@ -316,7 +316,7 @@ class SettingGroupView extends Component<SettingGroupViewProps> {
const { field } = this.props;
const { extraProps } = field;
const { condition, display } = extraProps;
const visible = field.isSingle && typeof condition === 'function' ? condition(field.internalToShell()) !== false : true;
const visible = field.isSingle && typeof condition === 'function' ? condition(field.internalToShellField()) !== false : true;
if (!visible) {
return null;

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-rax-renderer",
"version": "1.1.3",
"version": "1.1.4-beta.1",
"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.1.3",
"@alilc/lowcode-utils": "1.1.3",
"@alilc/lowcode-renderer-core": "1.1.4-beta.1",
"@alilc/lowcode-utils": "1.1.4-beta.1",
"rax-find-dom-node": "^1.0.1"
},
"devDependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-rax-simulator-renderer",
"version": "1.1.3",
"version": "1.1.4-beta.1",
"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.1.3",
"@alilc/lowcode-rax-renderer": "1.1.3",
"@alilc/lowcode-types": "1.1.3",
"@alilc/lowcode-utils": "1.1.3",
"@alilc/lowcode-designer": "1.1.4-beta.1",
"@alilc/lowcode-rax-renderer": "1.1.4-beta.1",
"@alilc/lowcode-types": "1.1.4-beta.1",
"@alilc/lowcode-utils": "1.1.4-beta.1",
"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.1.3",
"version": "1.1.4-beta.1",
"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.1.3"
"@alilc/lowcode-renderer-core": "1.1.4-beta.1"
},
"devDependencies": {
"@alib/build-scripts": "^0.1.18",

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-react-simulator-renderer",
"version": "1.1.3",
"version": "1.1.4-beta.1",
"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.1.3",
"@alilc/lowcode-react-renderer": "1.1.3",
"@alilc/lowcode-types": "1.1.3",
"@alilc/lowcode-utils": "1.1.3",
"@alilc/lowcode-designer": "1.1.4-beta.1",
"@alilc/lowcode-react-renderer": "1.1.4-beta.1",
"@alilc/lowcode-types": "1.1.4-beta.1",
"@alilc/lowcode-utils": "1.1.4-beta.1",
"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.1.3",
"version": "1.1.4-beta.1",
"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.1.3",
"@alilc/lowcode-utils": "1.1.3",
"@alilc/lowcode-types": "1.1.4-beta.1",
"@alilc/lowcode-utils": "1.1.4-beta.1",
"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.1.3",
"@alilc/lowcode-designer": "1.1.4-beta.1",
"@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.1.3",
"version": "1.1.4-beta.1",
"description": "Shell Layer for AliLowCodeEngine",
"main": "lib/index.js",
"module": "es/index.js",
@ -15,12 +15,12 @@
},
"license": "MIT",
"dependencies": {
"@alilc/lowcode-designer": "1.1.3",
"@alilc/lowcode-editor-core": "1.1.3",
"@alilc/lowcode-editor-skeleton": "1.1.3",
"@alilc/lowcode-types": "1.1.3",
"@alilc/lowcode-utils": "1.1.3",
"@alilc/lowcode-workspace": "1.1.3",
"@alilc/lowcode-designer": "1.1.4-beta.1",
"@alilc/lowcode-editor-core": "1.1.4-beta.1",
"@alilc/lowcode-editor-skeleton": "1.1.4-beta.1",
"@alilc/lowcode-types": "1.1.4-beta.1",
"@alilc/lowcode-utils": "1.1.4-beta.1",
"@alilc/lowcode-workspace": "1.1.4-beta.1",
"classnames": "^2.2.6",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",

View File

@ -143,7 +143,7 @@ export class SettingField implements IPublicModelSettingField {
if (isCustomView(item)) {
return item;
}
return item.internalToShell();
return item.internalToShellField();
});
}

View File

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

View File

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

View File

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