@protobase/client 0.22.8 → 0.22.10

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.
@@ -17,6 +17,13 @@ const keptLayoutItem = (item, models) => {
17
17
  items
18
18
  }] : [];
19
19
  }
20
+ if (item.kind === "tab") {
21
+ const items = item.items.flatMap((inner) => keptLayoutItem(inner, models));
22
+ return items.length > 0 ? [{
23
+ ...item,
24
+ items
25
+ }] : [];
26
+ }
20
27
  if (item.kind !== "related") return [item];
21
28
  if (!Object.hasOwn(models, item.resource) || item.through && !Object.hasOwn(models, item.through.resource)) return [];
22
29
  const { columns, ...rest } = item;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/client",
3
- "version": "0.22.8",
3
+ "version": "0.22.10",
4
4
  "description": "Typed fetch client for the Protobase REST API.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@better-auth/passkey": "^1.7.7",
33
- "@protobase/layout": "0.22.8",
34
- "@protobase/schema": "0.22.8",
33
+ "@protobase/layout": "0.22.10",
34
+ "@protobase/schema": "0.22.10",
35
35
  "@simplewebauthn/browser": "^13.3.0",
36
36
  "better-auth": "^1.7.7"
37
37
  }