@xh/hoist 72.0.0-SNAPSHOT.1736893155432 → 72.0.0-SNAPSHOT.1737063455869
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -456,7 +456,8 @@ export class ViewManagerModel<T = PlainObject> extends HoistModel {
|
|
|
456
456
|
if (name.length > maxLength) {
|
|
457
457
|
return `Name cannot be longer than ${maxLength} characters`;
|
|
458
458
|
}
|
|
459
|
-
|
|
459
|
+
const views = existing?.isGlobal ? this.globalViews : this.ownedViews;
|
|
460
|
+
if (views.some(view => view.name === name && view.token != existing?.token)) {
|
|
460
461
|
return `A ${this.typeDisplayName} with name '${name}' already exists.`;
|
|
461
462
|
}
|
|
462
463
|
return null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "72.0.0-SNAPSHOT.
|
|
3
|
+
"version": "72.0.0-SNAPSHOT.1737063455869",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
"lint:all": "yarn lint:ts && yarn lint:js && yarn lint:styles",
|
|
13
13
|
"lint:js": "eslint --ext .js,.jsx .",
|
|
14
14
|
"lint:ts": "eslint --ext .ts,.tsx .",
|
|
15
|
-
"tsc": "./node_modules/typescript/bin/tsc",
|
|
16
15
|
"lint:styles": "stylelint \"**/*.s?(a|c)ss\"",
|
|
17
16
|
"prepare": "husky"
|
|
18
17
|
},
|