@fibery/views 25.1.1 → 25.1.3

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 CHANGED
@@ -1,3 +1,5 @@
1
- ## How to update and publish @fibery/views
1
+ # @fibery/views
2
2
 
3
- Please refer to [How to make changes to packages](../../README.md#how-to-make-changes-to-packages)
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 isEqual from "lodash/isEqual.js";
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) => isEqual(x.expression, unit.expression));
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.1",
3
+ "version": "25.1.3",
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.1",
37
- "@fibery/query-utils": "7.2.0",
38
- "@fibery/helpers": "4.1.1",
39
- "@fibery/schema": "12.0.2"
36
+ "@fibery/helpers": "4.2.0",
37
+ "@fibery/expression-utils": "16.0.3",
38
+ "@fibery/query-utils": "7.2.2",
39
+ "@fibery/schema": "13.0.1"
40
40
  },
41
41
  "peerDependencies": {
42
- "@fibery/expression-utils": "^16.0.1",
43
- "@fibery/schema": "^12.0.2",
42
+ "@fibery/expression-utils": "^16.0.3",
43
+ "@fibery/schema": "^13.0.1",
44
44
  "lodash": "4.17.21"
45
45
  }
46
46
  }