@fibery/schema 10.2.3 → 10.2.5

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.
@@ -81,7 +81,7 @@ class FieldObject {
81
81
  this.isLinkRuleDisabled = rawMeta["link-rule/disabled?"] || false;
82
82
  this.linkRuleDisableReason = rawMeta["link-rule/disable-reason"] || null;
83
83
  this.relation = rawMeta["fibery/relation"] || null;
84
- this.defaultValue = rawMeta["fibery/default-value"] || null;
84
+ this.defaultValue = rawMeta["fibery/default-value"] ?? null;
85
85
  this.objectEditorOrder = rawMeta["ui/object-editor-order"] || 0;
86
86
  this.isRequired = rawMeta["fibery/required?"] === true;
87
87
  this.isHidden = rawMeta["ui/hidden?"] === true;
@@ -120,7 +120,12 @@ class FieldObject {
120
120
  title: {
121
121
  configurable: false,
122
122
  enumerable: true,
123
- get: lodash_1.default.once(() => (0, utils_1.toNonEnumTitle)(rawFieldObject["fibery/name"])),
123
+ get: lodash_1.default.once(() => {
124
+ if (this.name === "fibery/role" && this.holderType === "fibery/user") {
125
+ return "User Role";
126
+ }
127
+ return (0, utils_1.toNonEnumTitle)(rawFieldObject["fibery/name"]);
128
+ }),
124
129
  },
125
130
  multiRelatedFieldObjects: {
126
131
  configurable: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/schema",
3
- "version": "10.2.3",
3
+ "version": "10.2.5",
4
4
  "description": "Fibery schema utils",
5
5
  "main": "./lib/index.js",
6
6
  "files": [