@fibery/views 25.1.1 → 25.1.2
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/README.md +4 -2
- package/lib/private/smart-folder.js +2 -2
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
# @fibery/views
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
View metadata validation and transformations: expressions, field/type references, and view-specific configuration.
|
|
4
|
+
|
|
5
|
+
The root export includes `assertMetaValid`, `isMetaValid`, and operations for updating view expressions when schema fields or types change.
|
|
@@ -3,7 +3,7 @@ import { enableHideWhenEmptyForCheckedEditableUnit, fixViewUnit } from "./units.
|
|
|
3
3
|
import { truthy } from "@fibery/helpers/src/_";
|
|
4
4
|
import get from "lodash/get.js";
|
|
5
5
|
import { replaceIdsWithNamesVisitor, replaceNamesWithIdsVisitor } from "@fibery/expression-utils/src/visitors";
|
|
6
|
-
import
|
|
6
|
+
import { deepEqual } from "@fibery/helpers/src/equal";
|
|
7
7
|
//#region src/private/smart-folder.ts
|
|
8
8
|
const visitSmartFolder = (smartFolder, visitor) => {
|
|
9
9
|
const updateColumnAggFunc = (columnAggFunc) => {
|
|
@@ -150,7 +150,7 @@ const fixUserSelectedUnitsInSmartFolder = (schema, view, { unitDefinitions, getD
|
|
|
150
150
|
if (unit.kind !== "user-button") {
|
|
151
151
|
if (unit.type === "rich-text" && view?.["fibery/type"] === "grid") {
|
|
152
152
|
if (unit.checked) {
|
|
153
|
-
const snippetUnitForField = units.filter((x) => x.kind === "field" && x.type === "rich-text-snippet").find((x) =>
|
|
153
|
+
const snippetUnitForField = units.filter((x) => x.kind === "field" && x.type === "rich-text-snippet").find((x) => deepEqual(x.expression, unit.expression));
|
|
154
154
|
if (snippetUnitForField && !snippetUnitForField.checked) snippetUnitForField.checked = true;
|
|
155
155
|
}
|
|
156
156
|
return REMOVE;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fibery/views",
|
|
3
|
-
"version": "25.1.
|
|
3
|
+
"version": "25.1.2",
|
|
4
4
|
"description": "Operations on view objects",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Fibery",
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
"date-fns": "2.29.2",
|
|
34
34
|
"lodash": "4.17.21",
|
|
35
35
|
"moment": "2.31.0",
|
|
36
|
-
"@fibery/expression-utils": "16.0.
|
|
37
|
-
"@fibery/
|
|
38
|
-
"@fibery/
|
|
39
|
-
"@fibery/
|
|
36
|
+
"@fibery/expression-utils": "16.0.2",
|
|
37
|
+
"@fibery/helpers": "4.1.2",
|
|
38
|
+
"@fibery/schema": "13.0.0",
|
|
39
|
+
"@fibery/query-utils": "7.2.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@fibery/expression-utils": "^16.0.
|
|
43
|
-
"@fibery/schema": "^
|
|
42
|
+
"@fibery/expression-utils": "^16.0.2",
|
|
43
|
+
"@fibery/schema": "^13.0.0",
|
|
44
44
|
"lodash": "4.17.21"
|
|
45
45
|
}
|
|
46
46
|
}
|