@fibery/views 9.2.1 → 10.0.1
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/lib/views.js +11 -0
- package/package.json +6 -6
package/lib/views.js
CHANGED
|
@@ -219,6 +219,17 @@ const fixViewUnit = (schema, fromType, unit, units, view) => {
|
|
|
219
219
|
}
|
|
220
220
|
return REMOVE;
|
|
221
221
|
}
|
|
222
|
+
if (type === "avatar" && !expression) {
|
|
223
|
+
var _schema$typeObjectsBy;
|
|
224
|
+
const isAvatarExntensionEnabled = (_schema$typeObjectsBy = schema.typeObjectsByName[fromType]) == null ? void 0 : _schema$typeObjectsBy.installedMixins.has("avatar/avatar-mixin");
|
|
225
|
+
const hasAvatarExntensionField = getFieldType(schema, fromType, "avatar/avatars") === "fibery/file";
|
|
226
|
+
if (isAvatarExntensionEnabled && hasAvatarExntensionField) {
|
|
227
|
+
return {
|
|
228
|
+
...unit,
|
|
229
|
+
expression: ["avatar/avatars"]
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
}
|
|
222
233
|
return unit;
|
|
223
234
|
};
|
|
224
235
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/views",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "10.0.1",
|
|
4
4
|
"description": "Operations on view objects",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Fibery",
|
|
@@ -19,13 +19,13 @@
|
|
|
19
19
|
"lodash": "4.17.21",
|
|
20
20
|
"microbundle": "0.15.1",
|
|
21
21
|
"@fibery/babel-preset": "7.4.0",
|
|
22
|
-
"@fibery/
|
|
23
|
-
"@fibery/
|
|
24
|
-
"@fibery/
|
|
22
|
+
"@fibery/expression-utils": "9.0.1",
|
|
23
|
+
"@fibery/eslint-config": "8.6.0",
|
|
24
|
+
"@fibery/schema": "10.2.1"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@fibery/expression-utils": "^
|
|
28
|
-
"@fibery/schema": "^10.1
|
|
27
|
+
"@fibery/expression-utils": "^9.0.1",
|
|
28
|
+
"@fibery/schema": "^10.2.1",
|
|
29
29
|
"immutability-helper": "^2.4.0",
|
|
30
30
|
"lodash": "^4.17.21"
|
|
31
31
|
},
|