Skip to content

Commit

Permalink
chore(versions): 😊 publish v0.1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Jun 9, 2021
1 parent 65e0088 commit c939031
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 32 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v0.1.15(2021-06-09)

### :beetle: Bug Fixes

1. [fix(settings): fix settings dataSource locales](https://github.com/alibaba/designable/commit/30ce798) :point_right: ( [janryWang](https://github.com/janryWang) )

## v0.1.14(2021-06-09)

### :beetle: Bug Fixes
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.1.15",
"version": "0.1.16",
"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": "0.1.15",
"version": "0.1.16",
"license": "MIT",
"main": "lib",
"types": "lib/index.d.ts",
Expand All @@ -15,7 +15,7 @@
"build:umd": "rollup --config"
},
"dependencies": {
"@designable/shared": "0.1.15",
"@designable/shared": "0.1.16",
"@formily/json-schema": "^2.0.0-beta.50",
"@formily/path": "^2.0.0-beta.50",
"@formily/reactive": "^2.0.0-beta.50",
Expand Down
21 changes: 8 additions & 13 deletions packages/core/src/registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,21 +109,16 @@ const DESIGNER_GlobalRegistry = {
},

getDesignerMessage(token: string) {
const getMessage = () => {
const lang = getISOCode(DESINGER_LOCALES.language)
const locale = DESINGER_LOCALES.messages[lang]
if (!locale) {
for (let key in DESINGER_LOCALES.messages) {
const message = Path.getIn(DESINGER_LOCALES.messages[key], token)
if (message) return message
}
return
const lang = getISOCode(DESINGER_LOCALES.language)
const locale = DESINGER_LOCALES.messages[lang]
if (!locale) {
for (let key in DESINGER_LOCALES.messages) {
const message = Path.getIn(DESINGER_LOCALES.messages[key], token)
if (message) return message
}
return Path.getIn(locale, token)
return
}
const message = getMessage()
if (isStr(message)) return message
return message?.title || message?.self
return Path.getIn(locale, token)
},

registerDesignerLocales(...packages: IDesignerLocales['messages'][]) {
Expand Down
12 changes: 6 additions & 6 deletions packages/playground/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@designable/playground",
"version": "0.1.15",
"version": "0.1.16",
"license": "MIT",
"private": true,
"engines": {
Expand All @@ -25,11 +25,11 @@
"webpack-dev-server": "^3.10.1"
},
"dependencies": {
"@designable/core": "0.1.15",
"@designable/react": "0.1.15",
"@designable/react-sandbox": "0.1.15",
"@designable/react-settings-form": "0.1.15",
"@designable/shared": "0.1.15",
"@designable/core": "0.1.16",
"@designable/react": "0.1.16",
"@designable/react-sandbox": "0.1.16",
"@designable/react-settings-form": "0.1.16",
"@designable/shared": "0.1.16",
"@formily/reactive": "^2.0.0-beta.50",
"@formily/reactive-react": "^2.0.0-beta.50",
"antd": "^4.15.2",
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": "0.1.15",
"version": "0.1.16",
"license": "MIT",
"main": "lib",
"types": "lib/index.d.ts",
Expand All @@ -18,8 +18,8 @@
"react": "16.x || 17.x"
},
"dependencies": {
"@designable/react": "0.1.15",
"@designable/shared": "0.1.15"
"@designable/react": "0.1.16",
"@designable/shared": "0.1.16"
},
"publishConfig": {
"access": "public"
Expand Down
6 changes: 3 additions & 3 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": "0.1.15",
"version": "0.1.16",
"license": "MIT",
"main": "lib",
"types": "lib/index.d.ts",
Expand All @@ -21,8 +21,8 @@
"antd": "^4.15.5"
},
"dependencies": {
"@designable/core": "0.1.15",
"@designable/react": "0.1.15",
"@designable/core": "0.1.16",
"@designable/react": "0.1.16",
"@formily/antd": "^2.0.0-beta.50",
"@formily/core": "^2.0.0-beta.50",
"@formily/react": "^2.0.0-beta.50",
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": "0.1.15",
"version": "0.1.16",
"license": "MIT",
"main": "lib",
"types": "lib/index.d.ts",
Expand All @@ -19,8 +19,8 @@
"react": "16.x || 17.x"
},
"dependencies": {
"@designable/core": "0.1.15",
"@designable/shared": "0.1.15",
"@designable/core": "0.1.16",
"@designable/shared": "0.1.16",
"@formily/reactive": "^2.0.0-beta.50",
"@formily/reactive-react": "^2.0.0-beta.50",
"@juggle/resize-observer": "^3.3.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": "0.1.15",
"version": "0.1.16",
"license": "MIT",
"main": "lib",
"types": "lib/index.d.ts",
Expand Down

0 comments on commit c939031

Please sign in to comment.