Skip to content

Commit

Permalink
chore(versions): 😊 publish v1.0.0-beta.41
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Dec 16, 2021
1 parent 4bdfe5b commit ffba7ec
Show file tree
Hide file tree
Showing 16 changed files with 68 additions and 61 deletions.
18 changes: 12 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## v1.0.0-beta.40(2021-12-08)

### :beetle: Bug Fixes

1. [fix(react): fix NodePathWidget style](https://github.com/alibaba/designable/commit/814e5e6) :point_right: ( [zhili.wzl](https://github.com/zhili.wzl) )

1. [fix(react): fix prettier cdn version](https://github.com/alibaba/designable/commit/e6e0180) :point_right: ( [zhili.wzl](https://github.com/zhili.wzl) )

### :blush: Other Changes

1. [chore: add sandbox example](https://github.com/alibaba/designable/commit/624076f) :point_right: ( [zhili.wzl](https://github.com/zhili.wzl) )

## v1.0.0-beta.39(2021-12-06)

### :beetle: Bug Fixes
Expand Down Expand Up @@ -331,9 +343,3 @@
1. [refactor(react): MainPanel -> StudioPanel](https://github.com/alibaba/designable/commit/74b344f) :point_right: ( [zhili.wzl](https://github.com/zhili.wzl) )

1. [refactor(project): redesign Registry/DragSource (#59)](https://github.com/alibaba/designable/commit/764e7ec) :point_right: ( [Janry](https://github.com/Janry) )

## v0.5.29(2021-09-13)

### :beetle: Bug Fixes

1. [fix: Displaying the default DesignableFiled, all the time when prompted by text does not realise the real component name. (#58)](https://github.com/alibaba/designable/commit/1928f04) :point_right: ( [呆鸡](https://github.com/呆鸡) )
12 changes: 6 additions & 6 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designable/basic-example",
"version": "1.0.0-beta.40",
"version": "1.0.0-beta.41",
"license": "MIT",
"private": true,
"engines": {
Expand All @@ -25,11 +25,11 @@
"webpack-dev-server": "^3.10.1"
},
"dependencies": {
"@designable/core": "1.0.0-beta.40",
"@designable/react": "1.0.0-beta.40",
"@designable/react-sandbox": "1.0.0-beta.40",
"@designable/react-settings-form": "1.0.0-beta.40",
"@designable/shared": "1.0.0-beta.40",
"@designable/core": "1.0.0-beta.41",
"@designable/react": "1.0.0-beta.41",
"@designable/react-sandbox": "1.0.0-beta.41",
"@designable/react-settings-form": "1.0.0-beta.41",
"@designable/shared": "1.0.0-beta.41",
"@formily/reactive": "^2.0.2",
"@formily/reactive-react": "^2.0.2",
"antd": "^4.15.2",
Expand Down
12 changes: 6 additions & 6 deletions examples/sandbox/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designable/sandbox-example",
"version": "1.0.0-beta.40",
"version": "1.0.0-beta.41",
"license": "MIT",
"private": true,
"engines": {
Expand All @@ -25,11 +25,11 @@
"webpack-dev-server": "^3.10.1"
},
"dependencies": {
"@designable/core": "1.0.0-beta.40",
"@designable/react": "1.0.0-beta.40",
"@designable/react-sandbox": "1.0.0-beta.40",
"@designable/react-settings-form": "1.0.0-beta.40",
"@designable/shared": "1.0.0-beta.40",
"@designable/core": "1.0.0-beta.41",
"@designable/react": "1.0.0-beta.41",
"@designable/react-sandbox": "1.0.0-beta.41",
"@designable/react-settings-form": "1.0.0-beta.41",
"@designable/shared": "1.0.0-beta.41",
"@formily/reactive": "^2.0.2",
"@formily/reactive-react": "^2.0.2",
"antd": "^4.15.2",
Expand Down
12 changes: 6 additions & 6 deletions formily/antd/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designable/formily-antd",
"version": "1.0.0-beta.40",
"version": "1.0.0-beta.41",
"license": "MIT",
"main": "lib",
"module": "esm",
Expand All @@ -24,7 +24,7 @@
"start": "webpack-dev-server --config playground/webpack.dev.ts"
},
"devDependencies": {
"@designable/react-settings-form": "1.0.0-beta.40",
"@designable/react-settings-form": "1.0.0-beta.41",
"@formily/antd": "^2.0.2",
"@formily/core": "^2.0.2",
"@formily/react": "^2.0.2",
Expand Down Expand Up @@ -60,10 +60,10 @@
"react-is": ">=16.8.0 || >=17.0.0"
},
"dependencies": {
"@designable/core": "1.0.0-beta.40",
"@designable/formily-setters": "1.0.0-beta.40",
"@designable/formily-transformer": "1.0.0-beta.40",
"@designable/react": "1.0.0-beta.40"
"@designable/core": "1.0.0-beta.41",
"@designable/formily-setters": "1.0.0-beta.41",
"@designable/formily-transformer": "1.0.0-beta.41",
"@designable/react": "1.0.0-beta.41"
},
"publishConfig": {
"access": "public"
Expand Down
12 changes: 6 additions & 6 deletions formily/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designable/formily-next",
"version": "1.0.0-beta.40",
"version": "1.0.0-beta.41",
"license": "MIT",
"main": "lib",
"module": "esm",
Expand All @@ -24,7 +24,7 @@
"start": "webpack-dev-server --config playground/webpack.dev.ts"
},
"devDependencies": {
"@designable/react-settings-form": "1.0.0-beta.40",
"@designable/react-settings-form": "1.0.0-beta.41",
"@formily/core": "^2.0.2",
"@formily/next": "^2.0.2",
"@formily/react": "^2.0.2",
Expand Down Expand Up @@ -61,10 +61,10 @@
"react-is": ">=16.8.0 || >=17.0.0"
},
"dependencies": {
"@designable/core": "1.0.0-beta.40",
"@designable/formily-setters": "1.0.0-beta.40",
"@designable/formily-transformer": "1.0.0-beta.40",
"@designable/react": "1.0.0-beta.40"
"@designable/core": "1.0.0-beta.41",
"@designable/formily-setters": "1.0.0-beta.41",
"@designable/formily-transformer": "1.0.0-beta.41",
"@designable/react": "1.0.0-beta.41"
},
"publishConfig": {
"access": "public"
Expand Down
10 changes: 5 additions & 5 deletions formily/setters/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designable/formily-setters",
"version": "1.0.0-beta.40",
"version": "1.0.0-beta.41",
"license": "MIT",
"main": "lib",
"module": "esm",
Expand Down Expand Up @@ -42,10 +42,10 @@
"react-is": ">=16.8.0 || >=17.0.0"
},
"dependencies": {
"@designable/core": "1.0.0-beta.40",
"@designable/formily-transformer": "1.0.0-beta.40",
"@designable/react": "1.0.0-beta.40",
"@designable/react-settings-form": "1.0.0-beta.40"
"@designable/core": "1.0.0-beta.41",
"@designable/formily-transformer": "1.0.0-beta.41",
"@designable/react": "1.0.0-beta.41",
"@designable/react-settings-form": "1.0.0-beta.41"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 deletions formily/transformer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designable/formily-transformer",
"version": "1.0.0-beta.40",
"version": "1.0.0-beta.41",
"license": "MIT",
"main": "lib",
"engines": {
Expand Down Expand Up @@ -33,8 +33,8 @@
"@formily/json-schema": "^2.0.2"
},
"dependencies": {
"@designable/core": "1.0.0-beta.40",
"@designable/shared": "1.0.0-beta.40"
"@designable/core": "1.0.0-beta.41",
"@designable/shared": "1.0.0-beta.41"
},
"gitHead": "bda070c137ba0003cc4451b2208e089d2e326b23"
}
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.0.0-beta.40",
"version": "1.0.0-beta.41",
"npmClient": "yarn",
"useWorkspaces": true,
"npmClientArgs": ["--ignore-engines"],
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designable/core",
"version": "1.0.0-beta.40",
"version": "1.0.0-beta.41",
"license": "MIT",
"main": "lib",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -33,7 +33,7 @@
"@formily/reactive": "^2.0.2"
},
"dependencies": {
"@designable/shared": "1.0.0-beta.40",
"@designable/shared": "1.0.0-beta.41",
"@juggle/resize-observer": "^3.3.1"
},
"publishConfig": {
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/drivers/ViewportResizeDriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,21 @@ export class ViewportResizeDriver extends EventDriver<Engine> {
}

attach() {
if (this.contentWindow !== window) {
if (this.contentWindow && this.contentWindow !== window) {
this.addEventListener('resize', this.onResize)
} else {
if (this.container !== document) {
if (this.container && this.container !== document) {
this.resizeObserver = new ResizeObserver(this.onResize)
this.resizeObserver.observe(this.container as HTMLElement)
}
}
}

detach() {
if (this.contentWindow !== window) {
if (this.contentWindow && this.contentWindow !== window) {
this.removeEventListener('resize', this.onResize)
} else if (this.resizeObserver) {
if (this.container !== document) {
if (this.container && this.container !== document) {
this.resizeObserver.unobserve(this.container as HTMLElement)
this.resizeObserver.disconnect()
}
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/effects/useSelectionEffect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ export const useSelectionEffect = (engine: Engine) => {
const isHelpers = target?.closest?.(
`*[${engine.props.nodeSelectionIdAttrName}]`
)
const currentWorkspace = engine.workbench.activeWorkspace
const currentWorkspace =
event.context.workspace ?? engine.workbench.activeWorkspace
if (!currentWorkspace) return
if (!el?.getAttribute) {
const point = new Point(event.data.topClientX, event.data.topClientY)
Expand Down
8 changes: 4 additions & 4 deletions packages/core/src/models/Viewport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -258,13 +258,13 @@ export class Viewport {
getOffsetPoint(topPoint: IPoint) {
if (this.isIframe) {
return {
x: topPoint.x - this.offsetX + this.contentWindow.scrollX,
y: topPoint.y - this.offsetY + this.contentWindow.scrollY,
x: topPoint.x - this.offsetX + (this.contentWindow?.scrollX ?? 0),
y: topPoint.y - this.offsetY + (this.contentWindow?.scrollY ?? 0),
}
} else {
return {
x: topPoint.x - this.offsetX + this.viewportElement.scrollLeft,
y: topPoint.y - this.offsetY + this.viewportElement.scrollTop,
x: topPoint.x - this.offsetX + (this.viewportElement?.scrollLeft ?? 0),
y: topPoint.y - this.offsetY + (this.viewportElement?.scrollTop ?? 0),
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions packages/react-sandbox/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designable/react-sandbox",
"version": "1.0.0-beta.40",
"version": "1.0.0-beta.41",
"license": "MIT",
"main": "lib",
"types": "lib/index.d.ts",
Expand All @@ -26,8 +26,8 @@
"react": "16.x || 17.x"
},
"dependencies": {
"@designable/react": "1.0.0-beta.40",
"@designable/shared": "1.0.0-beta.40"
"@designable/react": "1.0.0-beta.41",
"@designable/shared": "1.0.0-beta.41"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/react-settings-form/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designable/react-settings-form",
"version": "1.0.0-beta.40",
"version": "1.0.0-beta.41",
"license": "MIT",
"main": "lib",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -42,9 +42,9 @@
},
"dependencies": {
"@babel/parser": "^7.14.7",
"@designable/core": "1.0.0-beta.40",
"@designable/react": "1.0.0-beta.40",
"@designable/shared": "1.0.0-beta.40",
"@designable/core": "1.0.0-beta.41",
"@designable/react": "1.0.0-beta.41",
"@designable/shared": "1.0.0-beta.41",
"@monaco-editor/react": "^4.2.1",
"monaco-editor": "^0.25.2",
"prettier": "^2.3.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designable/react",
"version": "1.0.0-beta.40",
"version": "1.0.0-beta.41",
"license": "MIT",
"main": "lib",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -33,8 +33,8 @@
"react": "16.x || 17.x"
},
"dependencies": {
"@designable/core": "1.0.0-beta.40",
"@designable/shared": "1.0.0-beta.40",
"@designable/core": "1.0.0-beta.41",
"@designable/shared": "1.0.0-beta.41",
"@juggle/resize-observer": "^3.3.1",
"dateformat": "^4.5.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designable/shared",
"version": "1.0.0-beta.40",
"version": "1.0.0-beta.41",
"license": "MIT",
"main": "lib",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit ffba7ec

Please sign in to comment.