Compare commits

...

3 Commits

Author SHA1 Message Date
JackLian
d5b833b45f chore(release): publish 1.1.1-beta.1 2023-02-14 16:33:49 +08:00
liujuping
59c2ee2d65 feat: fix the problem of plugin outline tree in workspace mode 2023-02-14 16:31:14 +08:00
JackLian
f4c2b053d5 chore(release): publish 1.1.1-beta.0 2023-02-14 12:18:47 +08:00
19 changed files with 73 additions and 85 deletions

View File

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

View File

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

View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-engine",
"version": "1.1.0",
"version": "1.1.1-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.0",
"@alilc/lowcode-editor-core": "1.1.0",
"@alilc/lowcode-editor-skeleton": "1.1.0",
"@alilc/lowcode-designer": "1.1.1-beta.1",
"@alilc/lowcode-editor-core": "1.1.1-beta.1",
"@alilc/lowcode-editor-skeleton": "1.1.1-beta.1",
"@alilc/lowcode-engine-ext": "^1.0.0",
"@alilc/lowcode-plugin-designer": "1.1.0",
"@alilc/lowcode-plugin-outline-pane": "1.1.0",
"@alilc/lowcode-shell": "1.1.0",
"@alilc/lowcode-utils": "1.1.0",
"@alilc/lowcode-workspace": "1.1.0",
"@alilc/lowcode-plugin-designer": "1.1.1-beta.1",
"@alilc/lowcode-plugin-outline-pane": "1.1.1-beta.1",
"@alilc/lowcode-shell": "1.1.1-beta.1",
"@alilc/lowcode-utils": "1.1.1-beta.1",
"@alilc/lowcode-workspace": "1.1.1-beta.1",
"react": "^16.8.1",
"react-dom": "^16.8.1"
},

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-ignitor",
"version": "1.1.0",
"version": "1.1.1-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.0",
"version": "1.1.1-beta.1",
"description": "alibaba lowcode editor designer plugin",
"files": [
"es",
@ -18,9 +18,9 @@
],
"author": "xiayang.xy",
"dependencies": {
"@alilc/lowcode-designer": "1.1.0",
"@alilc/lowcode-editor-core": "1.1.0",
"@alilc/lowcode-utils": "1.1.0",
"@alilc/lowcode-designer": "1.1.1-beta.1",
"@alilc/lowcode-editor-core": "1.1.1-beta.1",
"@alilc/lowcode-utils": "1.1.1-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.0",
"version": "1.1.1-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.0",
"@alilc/lowcode-editor-core": "1.1.0",
"@alilc/lowcode-types": "1.1.0",
"@alilc/lowcode-utils": "1.1.0",
"@alilc/lowcode-designer": "1.1.1-beta.1",
"@alilc/lowcode-editor-core": "1.1.1-beta.1",
"@alilc/lowcode-types": "1.1.1-beta.1",
"@alilc/lowcode-utils": "1.1.1-beta.1",
"classnames": "^2.2.6",
"react": "^16",
"react-dom": "^16.7.0",

View File

@ -11,6 +11,10 @@ export interface ITreeBoard {
export class TreeMaster {
readonly pluginContext: IPublicModelPluginContext;
private boards = new Set<ITreeBoard>();
private treeMap = new Map<string, Tree>();
constructor(pluginContext: IPublicModelPluginContext) {
this.pluginContext = pluginContext;
let startTime: any;
@ -70,8 +74,6 @@ export class TreeMaster {
}
}
private boards = new Set<ITreeBoard>();
addBoard(board: ITreeBoard) {
this.boards.add(board);
}
@ -84,8 +86,6 @@ export class TreeMaster {
// todo others purge
}
private treeMap = new Map<string, Tree>();
get currentTree(): Tree | null {
const doc = this.pluginContext.project.getCurrentDocument();
if (doc) {
@ -100,15 +100,3 @@ export class TreeMaster {
return null;
}
}
const mastersMap = new Map<string, TreeMaster>();
export function getTreeMaster(pluginContext: IPublicModelPluginContext): TreeMaster {
const key = pluginContext.project.currentDocument?.id || 'unknown';
let master = mastersMap.get(key);
if (!master) {
master = new TreeMaster(pluginContext);
pluginContext.logger.info('TreeMaster is created');
mastersMap.set(key, master);
}
return master;
}

View File

@ -3,7 +3,7 @@ import { IconOutline } from './icons/outline';
import { IPublicModelPluginContext, IPublicModelDocumentModel } from '@alilc/lowcode-types';
import { enUS, zhCN } from './locale';
import { MasterPaneName, BackupPaneName } from './helper/consts';
import { getTreeMaster } from './controllers/tree-master';
import { TreeMaster } from './controllers/tree-master';
import { PaneController } from './controllers/pane-controller';
export const OutlinePlugin = (ctx: IPublicModelPluginContext, options: any) => {
@ -26,7 +26,7 @@ export const OutlinePlugin = (ctx: IPublicModelPluginContext, options: any) => {
masterPane: false,
backupPane: false,
};
const treeMaster = getTreeMaster(ctx);
const treeMaster = new TreeMaster(ctx);
let masterPaneController: PaneController | null = null;
let backupPaneController: PaneController | null = null;
return {

View File

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

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-react-simulator-renderer",
"version": "1.1.0",
"version": "1.1.1-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.0",
"@alilc/lowcode-react-renderer": "1.1.0",
"@alilc/lowcode-types": "1.1.0",
"@alilc/lowcode-utils": "1.1.0",
"@alilc/lowcode-designer": "1.1.1-beta.1",
"@alilc/lowcode-react-renderer": "1.1.1-beta.1",
"@alilc/lowcode-types": "1.1.1-beta.1",
"@alilc/lowcode-utils": "1.1.1-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.0",
"version": "1.1.1-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.0",
"@alilc/lowcode-utils": "1.1.0",
"@alilc/lowcode-types": "1.1.1-beta.1",
"@alilc/lowcode-utils": "1.1.1-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.0",
"@alilc/lowcode-designer": "1.1.1-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.0",
"version": "1.1.1-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.0",
"@alilc/lowcode-editor-core": "1.1.0",
"@alilc/lowcode-editor-skeleton": "1.1.0",
"@alilc/lowcode-types": "1.1.0",
"@alilc/lowcode-utils": "1.1.0",
"@alilc/lowcode-workspace": "1.1.0",
"@alilc/lowcode-designer": "1.1.1-beta.1",
"@alilc/lowcode-editor-core": "1.1.1-beta.1",
"@alilc/lowcode-editor-skeleton": "1.1.1-beta.1",
"@alilc/lowcode-types": "1.1.1-beta.1",
"@alilc/lowcode-utils": "1.1.1-beta.1",
"@alilc/lowcode-workspace": "1.1.1-beta.1",
"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.1.0",
"version": "1.1.1-beta.1",
"description": "Types for Ali lowCode engine",
"files": [
"es",

View File

@ -1,6 +1,6 @@
{
"name": "@alilc/lowcode-utils",
"version": "1.1.0",
"version": "1.1.1-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.0",
"@alilc/lowcode-types": "1.1.1-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.0",
"version": "1.1.1-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.0",
"@alilc/lowcode-editor-core": "1.1.0",
"@alilc/lowcode-editor-skeleton": "1.1.0",
"@alilc/lowcode-types": "1.1.0",
"@alilc/lowcode-utils": "1.1.0",
"@alilc/lowcode-designer": "1.1.1-beta.1",
"@alilc/lowcode-editor-core": "1.1.1-beta.1",
"@alilc/lowcode-editor-skeleton": "1.1.1-beta.1",
"@alilc/lowcode-types": "1.1.1-beta.1",
"@alilc/lowcode-utils": "1.1.1-beta.1",
"classnames": "^2.2.6",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",