@protobase/server 0.12.12 → 0.12.14

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.
@@ -13,7 +13,7 @@ const sensitiveErrors = (view, model) => {
13
13
  ...view.list?.search ?? []
14
14
  ]],
15
15
  ["a list display", (view.list?.displays ?? []).flatMap(displayFields)],
16
- ["a filter", view.filters.map((widget) => widget.field)],
16
+ ["a filter", view.filters.flatMap((widget) => widget.kind === "flags" ? widget.fields : [widget.field])],
17
17
  ["the chart", view.chart ? [view.chart.field] : []],
18
18
  ["the sidebar", view.layout.flatMap((item) => item.kind === "sidebar" ? item.fields : [])],
19
19
  ["the recent records", view.nav?.recent ? [view.nav.recent.status] : []],
@@ -69,7 +69,12 @@ const widgetShape = shapes.oneOf({
69
69
  toggle: shapes.object({
70
70
  kind: shapes.data,
71
71
  field: shapes.field
72
- }, { requires: ["field"] })
72
+ }, { requires: ["field"] }),
73
+ flags: shapes.object({
74
+ kind: shapes.data,
75
+ fields: shapes.list(shapes.field, { nonEmpty: true }),
76
+ label: shapes.data
77
+ }, { requires: ["fields"] })
73
78
  });
74
79
  const layoutShape = (resource, models) => shapes.oneOf({
75
80
  section: shapes.object({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@protobase/server",
3
- "version": "0.12.12",
3
+ "version": "0.12.14",
4
4
  "description": "The Protobase REST API as a Hono app, with Better Auth sign-in.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -30,9 +30,9 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@better-auth/passkey": "^1.7.7",
33
- "@protobase/layout": "0.12.12",
34
- "@protobase/query": "0.12.12",
35
- "@protobase/schema": "0.12.12",
33
+ "@protobase/layout": "0.12.14",
34
+ "@protobase/query": "0.12.14",
35
+ "@protobase/schema": "0.12.14",
36
36
  "@scalar/hono-api-reference": "^0.12.10",
37
37
  "@sentry/core": "^11.7.0",
38
38
  "@simplewebauthn/server": "^13.3.1",