better-supabase 0.63.2 → 0.64.0

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.
Files changed (113) hide show
  1. package/dist/{adapter-base-DXF0tNJJ.js → adapter-base-BWp_GpBq.js} +1 -1
  2. package/dist/{api-DhCLHpIU.js → api-TwaJ4nS8.js} +1 -1
  3. package/dist/astro/index.js +3 -3
  4. package/dist/{build-Vd4JkaqJ.js → build-CF_wE706.js} +1 -1
  5. package/dist/cli/{add-B8H-eHVK.js → add-CAEF20DB.js} +9 -9
  6. package/dist/cli/{add-DzsB2EMd.js → add-DAbzG8-C.js} +2 -2
  7. package/dist/cli/add-bP1hqEPB.js +1 -0
  8. package/dist/cli/{app-table-files-BNbkk4mU.js → app-table-files-BNnw-4C9.js} +3 -3
  9. package/dist/cli/{app-tables-B9xoTgSg.js → app-tables-D2TRhx62.js} +2 -2
  10. package/dist/cli/{backfill-DxGGF0tw.js → backfill-DgqbUamk.js} +1 -1
  11. package/dist/cli/bin.js +1 -1
  12. package/dist/cli/{blocks-zWXWOGcv.js → blocks-CWVG1w3P.js} +1 -1
  13. package/dist/cli/{blocks-xgk0tdfI.js → blocks-DykCgrRb.js} +1 -1
  14. package/dist/cli/{cache-DGTzqvsc.js → cache-JroD4zCO.js} +1 -1
  15. package/dist/cli/{codemod-C63P8ybN.js → codemod-CAz5XmH0.js} +4 -4
  16. package/dist/cli/{codemod-naming-wb0ni9VH.js → codemod-naming-DtzMgEs7.js} +1 -1
  17. package/dist/cli/{column-renames-Cw-VJmbc.js → column-renames-DcEFMXX4.js} +2 -2
  18. package/dist/cli/{content-mapper-DXjq7Wfl.js → content-mapper-DQczPByw.js} +1 -1
  19. package/dist/cli/{dev-r1oRNl1e.js → dev-Bwy7jmxv.js} +3 -3
  20. package/dist/cli/{doctor-BHIIEqOU.js → doctor-BjwgIEEk.js} +17 -17
  21. package/dist/cli/{emit-C6S__22g.js → emit-D1NL_ewe.js} +2 -2
  22. package/dist/cli/{gen-DWNQMbqr.js → gen-5GahcSRz.js} +3 -3
  23. package/dist/cli/{gen-tasks-D0_qerE6.js → gen-tasks-BNqtXDSZ.js} +9 -9
  24. package/dist/cli/index.d.ts +1 -1
  25. package/dist/cli/index.js +7 -7
  26. package/dist/cli/{init-DiYhhVtO.js → init-DwJ-fzKE.js} +8 -8
  27. package/dist/cli/{live-C7AMtQsQ.js → live-hA0NkWeP.js} +2 -2
  28. package/dist/cli/{mcp-DaymIFzT.js → mcp-BpU-r3at.js} +2 -2
  29. package/dist/cli/{memo-backend-DaO-IuUk.js → memo-backend-jPoQR64l.js} +1 -1
  30. package/dist/cli/{metadata-CsSZ8mZc.js → metadata-DsItgHac.js} +4 -4
  31. package/dist/cli/{migrate-Ceai0fte.js → migrate-bs8m1S4X.js} +1 -1
  32. package/dist/cli/{migration-safety-BXKmX5ar.js → migration-safety-CYnC7qr0.js} +1 -1
  33. package/dist/cli/{module-migration-ueN8AWpK.js → module-migration-DI1bC407.js} +1 -1
  34. package/dist/cli/{partition-DMv3-JOr.js → partition-B_o9eCEl.js} +1 -1
  35. package/dist/cli/powersync-BeiG2uAK.js +1 -0
  36. package/dist/cli/{powersync-QpdoYTM1.js → powersync-CYzLue5S.js} +3 -3
  37. package/dist/cli/{print-CQe9SQD_.js → print-CX3mfrR4.js} +2 -2
  38. package/dist/cli/{providers-DocDgHot.js → providers-C_0X8CZ5.js} +1 -1
  39. package/dist/cli/{prune-workflows-w_4KdMR9.js → prune-workflows-BRymSktV.js} +1 -1
  40. package/dist/cli/{remove-DvnCBCVe.js → remove-Ddd7JMeU.js} +6 -6
  41. package/dist/cli/{render-X1jNuye8.js → render-D0JOrrdH.js} +4 -4
  42. package/dist/cli/{render-cache-Be5Sm_Eu.js → render-cache-B6_cW4jQ.js} +1 -1
  43. package/dist/cli/{run-BoLLvybx.js → run-CRbd_qI2.js} +30 -30
  44. package/dist/cli/{run-72NxM1zM.js → run-CivaFfvS.js} +101 -21
  45. package/dist/cli/{shared-BR48oJN4.js → shared-77CYy2Ff.js} +1 -1
  46. package/dist/cli/{source-aefKuXMY.js → source-H6tArdAg.js} +1 -1
  47. package/dist/cli/{spec-Dvz-C4MP.js → spec-Bn4ArkKk.js} +2 -2
  48. package/dist/cli/{spec-CxtMMgXM.js → spec-CKr1A_Oo.js} +1 -1
  49. package/dist/cli/{sql-layout-B2fda2KP.js → sql-layout--Tblsahr.js} +2 -2
  50. package/dist/cli/{squash-D7KwCZHj.js → squash-BdHHGvSy.js} +1 -1
  51. package/dist/cli/{sync-DvD3jbb4.js → sync-koAHC0Xq.js} +4 -4
  52. package/dist/cli/{upgrade-hDU5DI6_.js → upgrade-B6MOyby0.js} +5 -5
  53. package/dist/cli/{upgrade-C6Pw49Jc.js → upgrade-D9dPPfIy.js} +5 -5
  54. package/dist/cli/{version-CiDgdPUD.js → version-3_JBFBjw.js} +1 -1
  55. package/dist/client/index.js +1 -1
  56. package/dist/client/native/index.js +2 -2
  57. package/dist/{composite-C13UCNgm.js → composite-RorL_F8I.js} +1 -1
  58. package/dist/config/index.js +4 -4
  59. package/dist/{config-1kAVpZc_.js → config-BuZW7wNr.js} +3 -3
  60. package/dist/{config-L5_4kg24.js → config-ocvgjLWV.js} +1 -1
  61. package/dist/create/index.js +3 -3
  62. package/dist/create/lite/index.js +4 -4
  63. package/dist/{define-runtime-BbNPkt-5.js → define-runtime-DQC2Gjdr.js} +4 -0
  64. package/dist/{define-runtime-full-gpz09qAj.js → define-runtime-full-BIrEQWJR.js} +1 -1
  65. package/dist/edge/index.js +4 -4
  66. package/dist/{executor-DABWqMfV.js → executor-D7avvqx3.js} +1 -1
  67. package/dist/expo/index.js +3 -3
  68. package/dist/{former-permission-keys-FPrqQHXf.js → former-permission-keys-DVwR65bj.js} +1 -1
  69. package/dist/{framework-BQgHM3zD.js → framework-DxCx0pmS.js} +1 -1
  70. package/dist/generators/factories/index.js +1 -1
  71. package/dist/generators/json-schema/index.js +1 -1
  72. package/dist/generators/nuqs/index.js +1 -1
  73. package/dist/generators/standard-schema/index.js +1 -1
  74. package/dist/generators/valibot/index.js +1 -1
  75. package/dist/generators/zod/index.js +1 -1
  76. package/dist/hono/index.js +3 -3
  77. package/dist/{index-B2NJNoRd.d.ts → index-CwvF-r09.d.ts} +8 -0
  78. package/dist/{instances-PZAWgQEX.js → instances-B9oCgEOH.js} +76 -0
  79. package/dist/{json-schema-BwfI_jJ2.js → json-schema-BuzopJOK.js} +1 -1
  80. package/dist/mapper/bin.js +5 -5
  81. package/dist/mcp/index.js +1 -1
  82. package/dist/mcp/sdk/index.js +1 -1
  83. package/dist/{mcp-Cif2SnK4.js → mcp-BCP-kBjf.js} +3 -3
  84. package/dist/next/index.js +2 -2
  85. package/dist/orpc/index.js +2 -2
  86. package/dist/otel/index.js +5 -5
  87. package/dist/{ports-ClJbgoyt.js → ports-BfHdHz1e.js} +1 -1
  88. package/dist/powersync/index.js +1 -1
  89. package/dist/preset/index.js +3 -3
  90. package/dist/{preset-BcwGsW_B.js → preset-DrfMF0Hv.js} +2 -2
  91. package/dist/{project-DYyr_iyu.js → project-BdZTXDVG.js} +5 -5
  92. package/dist/react/index.d.ts +1 -1
  93. package/dist/react/index.js +1 -1
  94. package/dist/react/server.d.ts +1 -1
  95. package/dist/react/server.js +1 -1
  96. package/dist/{react-hb2gg5UV.js → react-BkLf1aNc.js} +14 -1
  97. package/dist/react-router/index.js +3 -3
  98. package/dist/server/index.js +4 -4
  99. package/dist/{server-B0T944J9.js → server-DpcMKAt_.js} +1 -1
  100. package/dist/solid-start/index.js +3 -3
  101. package/dist/spec/index.js +2 -2
  102. package/dist/sql/index.js +2 -2
  103. package/dist/{sql-DPpcMNUF.js → sql-B3e0Ji-Q.js} +79 -3
  104. package/dist/sqlite/index.js +1 -1
  105. package/dist/sveltekit/index.js +3 -3
  106. package/dist/tanstack-start/index.js +3 -3
  107. package/dist/testing/index.js +3 -3
  108. package/dist/{version-B9H4YoiS.js → version-Adj2H6dY.js} +1 -1
  109. package/dist/webmcp/index.js +1 -1
  110. package/package.json +1 -1
  111. package/skills/better-supabase/references/ui-recipes.md +1174 -532
  112. package/dist/cli/add-BpikP7u5.js +0 -1
  113. package/dist/cli/powersync-CEhwfawV.js +0 -1
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "../../version-B9H4YoiS.js";
1
+ import { t as VERSION } from "../../version-Adj2H6dY.js";
2
2
  import { f as siblingPath, t as HEADER } from "../../shared-BXRDj6UR.js";
3
3
  // src/generators/nuqs.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "../../version-B9H4YoiS.js";
1
+ import { t as VERSION } from "../../version-Adj2H6dY.js";
2
2
  import { _ as variantTitle, c as parseImport, d as schemaName, f as siblingPath, i as fieldsFor, l as propertyKey, m as tableEntries, n as fieldDocs, p as tableDocs, r as fieldSpec, t as HEADER, v as variantsFor } from "../../shared-BXRDj6UR.js";
3
3
  import { a as objectType, i as fieldMetaLines, n as extraSchemas } from "../../extras-CW8CKLeE.js";
4
4
  import { r as relativeImport } from "../../kit-D6kdfQFj.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "../../version-B9H4YoiS.js";
1
+ import { t as VERSION } from "../../version-Adj2H6dY.js";
2
2
  import { _ as variantTitle, a as optionalLine, c as parseImport, d as schemaName, f as siblingPath, h as temporalGuardImport, i as fieldsFor, l as propertyKey, m as tableEntries, n as fieldDocs, p as tableDocs, t as HEADER, u as rowType, v as variantsFor } from "../../shared-BXRDj6UR.js";
3
3
  import { a as objectType, i as fieldMetaLines, n as extraSchemas, o as resultType, t as extraKinds } from "../../extras-CW8CKLeE.js";
4
4
  import { r as relativeImport } from "../../kit-D6kdfQFj.js";
@@ -1,4 +1,4 @@
1
- import { t as VERSION } from "../../version-B9H4YoiS.js";
1
+ import { t as VERSION } from "../../version-Adj2H6dY.js";
2
2
  import { _ as variantTitle, a as optionalLine, c as parseImport, d as schemaName, f as siblingPath, h as temporalGuardImport, i as fieldsFor, l as propertyKey, m as tableEntries, n as fieldDocs, p as tableDocs, t as HEADER, u as rowType, v as variantsFor } from "../../shared-BXRDj6UR.js";
3
3
  import { a as objectType, i as fieldMetaLines, n as extraSchemas, o as resultType, t as extraKinds } from "../../extras-CW8CKLeE.js";
4
4
  import { r as relativeImport } from "../../kit-D6kdfQFj.js";
@@ -3,16 +3,16 @@ import { i as toSession } from "../view-DpKWWhP2.js";
3
3
  import { r as handoffOf } from "../shared-Ci1g9nl4.js";
4
4
  import { r as dbErrorOf } from "../errors-DK1wGb9z.js";
5
5
  import { o as problemResponse } from "../problem-BwplIuhI.js";
6
- import { t as adapterBase } from "../adapter-base-DXF0tNJJ.js";
6
+ import { t as adapterBase } from "../adapter-base-BWp_GpBq.js";
7
7
  import { g as unexpectedResponse, p as flushEvents } from "../sessions-w6xril_l.js";
8
- import { t as withBetterSupabase } from "../composite-C13UCNgm.js";
8
+ import { t as withBetterSupabase } from "../composite-RorL_F8I.js";
9
9
  import { n as corsConfig } from "../cors-DrDFLMNn.js";
10
10
  import { i as requireCaller } from "../kit-BgRTtW9w.js";
11
11
  import { t as rateLimitGate } from "../rate-limit-Wolzge1m.js";
12
12
  import { i as defineAction, t as defineResource } from "../resource-BxSmk1R1.js";
13
13
  import { t as matchResource } from "../resources-CM9wwyfa.js";
14
14
  import { o as respond, t as assertCookieRefresh } from "../respond-DLvLJwwN.js";
15
- import { n as extendServer, t as createServer } from "../server-B0T944J9.js";
15
+ import { n as extendServer, t as createServer } from "../server-DpcMKAt_.js";
16
16
  import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
17
17
  import { withCors } from "@supabase/middleware/cors";
18
18
  import { Hono } from "hono";
@@ -308,6 +308,14 @@ declare function createRecordProvider<T extends string, B extends RecordTypeBloc
308
308
  interface RecordListUrl<Q> {
309
309
  /** The query with every default, for URL state the list refuses. */
310
310
  readonly defaults: Q;
311
+ /**
312
+ * The list's facets. nuqs holds each one under its own URL key (`status`),
313
+ * and the query holds them together under `facets`, so the hook needs the
314
+ * keys to move them.
315
+ */
316
+ readonly facets?: readonly {
317
+ readonly key: string;
318
+ }[];
311
319
  parse(input: URLSearchParams): {
312
320
  readonly ok: true;
313
321
  readonly value: Q;
@@ -2060,6 +2060,10 @@ const PRESET_CATALOG = {
2060
2060
  "permissions": {
2061
2061
  "read": "read",
2062
2062
  "write": "manage"
2063
+ },
2064
+ "search": {
2065
+ "title": "customerName",
2066
+ "body": []
2063
2067
  }
2064
2068
  }
2065
2069
  } },
@@ -2344,6 +2348,10 @@ const PRESET_CATALOG = {
2344
2348
  "permissions": {
2345
2349
  "read": "read",
2346
2350
  "write": "write"
2351
+ },
2352
+ "search": {
2353
+ "title": "name",
2354
+ "body": []
2347
2355
  }
2348
2356
  }
2349
2357
  },
@@ -2860,6 +2868,10 @@ const PRESET_CATALOG = {
2860
2868
  "read": "read",
2861
2869
  "write": "manage"
2862
2870
  },
2871
+ "search": {
2872
+ "title": "number",
2873
+ "body": []
2874
+ },
2863
2875
  "template": "template"
2864
2876
  }
2865
2877
  },
@@ -3026,6 +3038,10 @@ const PRESET_CATALOG = {
3026
3038
  "permissions": {
3027
3039
  "read": "read",
3028
3040
  "write": "manage"
3041
+ },
3042
+ "search": {
3043
+ "title": "title",
3044
+ "body": []
3029
3045
  }
3030
3046
  }
3031
3047
  } },
@@ -3886,6 +3902,10 @@ const PRESET_CATALOG = {
3886
3902
  "read": "read",
3887
3903
  "write": "write"
3888
3904
  },
3905
+ "search": {
3906
+ "title": "title",
3907
+ "body": []
3908
+ },
3889
3909
  "template": "template"
3890
3910
  }
3891
3911
  } },
@@ -4015,6 +4035,10 @@ const PRESET_CATALOG = {
4015
4035
  "read": "read",
4016
4036
  "write": "write"
4017
4037
  },
4038
+ "search": {
4039
+ "title": "title",
4040
+ "body": []
4041
+ },
4018
4042
  "template": "template"
4019
4043
  }
4020
4044
  } },
@@ -4712,6 +4736,10 @@ const PRESET_CATALOG = {
4712
4736
  "permissions": {
4713
4737
  "read": "read",
4714
4738
  "write": "manage"
4739
+ },
4740
+ "search": {
4741
+ "title": "name",
4742
+ "body": []
4715
4743
  }
4716
4744
  }
4717
4745
  },
@@ -4816,6 +4844,10 @@ const PRESET_CATALOG = {
4816
4844
  "permissions": {
4817
4845
  "read": "read",
4818
4846
  "write": "manage"
4847
+ },
4848
+ "search": {
4849
+ "title": "name",
4850
+ "body": []
4819
4851
  }
4820
4852
  }
4821
4853
  },
@@ -5237,6 +5269,10 @@ const PRESET_CATALOG = {
5237
5269
  "permissions": {
5238
5270
  "read": "read",
5239
5271
  "write": "manage"
5272
+ },
5273
+ "search": {
5274
+ "title": "title",
5275
+ "body": []
5240
5276
  }
5241
5277
  }
5242
5278
  } },
@@ -5314,6 +5350,10 @@ const PRESET_CATALOG = {
5314
5350
  "permissions": {
5315
5351
  "read": "read",
5316
5352
  "write": "manage"
5353
+ },
5354
+ "search": {
5355
+ "title": "title",
5356
+ "body": []
5317
5357
  }
5318
5358
  }
5319
5359
  },
@@ -5563,6 +5603,10 @@ const PRESET_CATALOG = {
5563
5603
  "permissions": {
5564
5604
  "read": "read",
5565
5605
  "write": "manage"
5606
+ },
5607
+ "search": {
5608
+ "title": "title",
5609
+ "body": []
5566
5610
  }
5567
5611
  }
5568
5612
  },
@@ -5666,6 +5710,10 @@ const PRESET_CATALOG = {
5666
5710
  "permissions": {
5667
5711
  "read": "read",
5668
5712
  "write": "manage"
5713
+ },
5714
+ "search": {
5715
+ "title": "reference",
5716
+ "body": []
5669
5717
  }
5670
5718
  }
5671
5719
  },
@@ -5798,6 +5846,10 @@ const PRESET_CATALOG = {
5798
5846
  "permissions": {
5799
5847
  "read": "read",
5800
5848
  "write": "write"
5849
+ },
5850
+ "search": {
5851
+ "title": "title",
5852
+ "body": []
5801
5853
  }
5802
5854
  }
5803
5855
  },
@@ -6015,6 +6067,10 @@ const PRESET_CATALOG = {
6015
6067
  "permissions": {
6016
6068
  "read": "read",
6017
6069
  "write": "write"
6070
+ },
6071
+ "search": {
6072
+ "title": "title",
6073
+ "body": []
6018
6074
  }
6019
6075
  }
6020
6076
  },
@@ -7880,6 +7936,10 @@ const PRESET_CATALOG = {
7880
7936
  "permissions": {
7881
7937
  "read": "read",
7882
7938
  "write": "write"
7939
+ },
7940
+ "search": {
7941
+ "title": "title",
7942
+ "body": []
7883
7943
  }
7884
7944
  }
7885
7945
  },
@@ -9225,6 +9285,10 @@ const PRESET_CATALOG = {
9225
9285
  "permissions": {
9226
9286
  "read": "read",
9227
9287
  "write": "manage"
9288
+ },
9289
+ "search": {
9290
+ "title": "title",
9291
+ "body": []
9228
9292
  }
9229
9293
  }
9230
9294
  },
@@ -9706,6 +9770,10 @@ const PRESET_CATALOG = {
9706
9770
  "permissions": {
9707
9771
  "read": "read",
9708
9772
  "write": "write"
9773
+ },
9774
+ "search": {
9775
+ "title": "title",
9776
+ "body": []
9709
9777
  }
9710
9778
  }
9711
9779
  },
@@ -10139,6 +10207,10 @@ const PRESET_CATALOG = {
10139
10207
  "permissions": {
10140
10208
  "read": "read",
10141
10209
  "write": "write"
10210
+ },
10211
+ "search": {
10212
+ "title": "title",
10213
+ "body": []
10142
10214
  }
10143
10215
  }
10144
10216
  },
@@ -10275,6 +10347,10 @@ const PRESET_CATALOG = {
10275
10347
  "permissions": {
10276
10348
  "read": "read",
10277
10349
  "write": "write"
10350
+ },
10351
+ "search": {
10352
+ "title": "name",
10353
+ "body": []
10278
10354
  }
10279
10355
  }
10280
10356
  },
@@ -1,5 +1,5 @@
1
1
  import { i as tableJsonSchema, r as fieldJsonSchema, t as forTarget } from "./table-schema-CnUdpnfT.js";
2
- import { t as VERSION } from "./version-B9H4YoiS.js";
2
+ import { t as VERSION } from "./version-Adj2H6dY.js";
3
3
  import { t as isList } from "./guards-CsRa6v57.js";
4
4
  import { n as extraSchemas, r as fieldMeta } from "./extras-CW8CKLeE.js";
5
5
  import { _ as variantTitle, f as siblingPath, i as fieldsFor, m as tableEntries, n as fieldDocs, p as tableDocs, r as fieldSpec, v as variantsFor } from "./shared-BXRDj6UR.js";
@@ -1,10 +1,10 @@
1
- import { d as loadSnapshot } from "../cli/sql-layout-B2fda2KP.js";
1
+ import { d as loadSnapshot } from "../cli/sql-layout--Tblsahr.js";
2
2
  import { i as discoverConfig, s as loadConfig } from "../cli/config-By5EbpdJ.js";
3
- import { s as schemaStampPath } from "../cli/content-mapper-DXjq7Wfl.js";
3
+ import { s as schemaStampPath } from "../cli/content-mapper-DQczPByw.js";
4
4
  import { i as parseEnv, n as configEnvironment } from "../cli/env-CQ831uY0.js";
5
- import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-X1jNuye8.js";
6
- import { i as lastTypesModule, o as typesModuleKey, s as writeAtomic } from "../cli/cache-DGTzqvsc.js";
7
- import { t as VERSION } from "../cli/version-CiDgdPUD.js";
5
+ import { i as renderTypesModule, t as mapperFilePath } from "../cli/render-D0JOrrdH.js";
6
+ import { i as lastTypesModule, o as typesModuleKey, s as writeAtomic } from "../cli/cache-JroD4zCO.js";
7
+ import { t as VERSION } from "../cli/version-3_JBFBjw.js";
8
8
  import { existsSync, realpathSync } from "node:fs";
9
9
  import { basename, dirname, join, resolve } from "node:path";
10
10
  import { readFile } from "node:fs/promises";
package/dist/mcp/index.js CHANGED
@@ -1 +1 @@
1
- export { r as MCP_PROTOCOL_VERSION, i as answerLine, a as answerMessage, t as createMcp, n as defineTool } from "../mcp-Cif2SnK4.js";
1
+ export { r as MCP_PROTOCOL_VERSION, i as answerLine, a as answerMessage, t as createMcp, n as defineTool } from "../mcp-BCP-kBjf.js";
@@ -2,7 +2,7 @@ import { i as delegationOf } from "../../actor-DraVJ7tB.js";
2
2
  import { h as resolveToken, p as flushEvents } from "../../sessions-w6xril_l.js";
3
3
  import { t as withExtra } from "../../extra-Dz9n5y1s.js";
4
4
  import { i as guard } from "../../respond-DLvLJwwN.js";
5
- import { n as extendServer, t as createServer } from "../../server-B0T944J9.js";
5
+ import { n as extendServer, t as createServer } from "../../server-DpcMKAt_.js";
6
6
  import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "../../http-BRUI3qim.js";
7
7
  import { n as dbError } from "../../errors-DK1wGb9z.js";
8
8
  import { o as problemResponse } from "../../problem-BwplIuhI.js";
@@ -3,13 +3,13 @@ import { n as jsonResponse, t as jsonReplacer } from "./json-O5vFw243.js";
3
3
  import { a as methodNotAllowed, c as toProblem, o as problemResponse } from "./problem-BwplIuhI.js";
4
4
  import { n as validate } from "./standard-DM4THQrL.js";
5
5
  import { t as boundedTtlCache } from "./ttl-cache-C5S0L2wx.js";
6
- import { n as toJsonSchema, r as toDraft07 } from "./json-schema-BwfI_jJ2.js";
7
- import { t as adapterBase } from "./adapter-base-DXF0tNJJ.js";
6
+ import { n as toJsonSchema, r as toDraft07 } from "./json-schema-BuzopJOK.js";
7
+ import { t as adapterBase } from "./adapter-base-BWp_GpBq.js";
8
8
  import { p as flushEvents } from "./sessions-w6xril_l.js";
9
9
  import { t as withExtra } from "./extra-Dz9n5y1s.js";
10
10
  import { t as defineResource } from "./resource-BxSmk1R1.js";
11
11
  import { i as guard, s as settle } from "./respond-DLvLJwwN.js";
12
- import { n as extendServer, t as createServer } from "./server-B0T944J9.js";
12
+ import { n as extendServer, t as createServer } from "./server-DpcMKAt_.js";
13
13
  import { r as pageSchema, t as pageInputSchema } from "./resource-schemas-Bq0g2RCQ.js";
14
14
  import { a as withCors, i as metadataPreflight, n as endpointPreflight, r as isMetadataRequest, t as discovery } from "./http-BRUI3qim.js";
15
15
  import { t as base64ToText } from "./base64-DgNIlSAS.js";
@@ -11,11 +11,11 @@ import { n as validate } from "../standard-DM4THQrL.js";
11
11
  import { t as EMPTY_STATS } from "../stats-D2TN2c3B.js";
12
12
  import { r as tagFor, t as cacheTagsOf } from "../tags-CW-KvjdL.js";
13
13
  import { t as ACCOUNT_PARTS } from "../account-parts-CsuHH0Zs.js";
14
- import { t as adapterBase } from "../adapter-base-DXF0tNJJ.js";
14
+ import { t as adapterBase } from "../adapter-base-BWp_GpBq.js";
15
15
  import { t as tenantOf } from "../tenant-Duq0dWqX.js";
16
16
  import { c as serverCore, f as bearerRequest, m as handle } from "../sessions-w6xril_l.js";
17
17
  import { r as permissionsOf } from "../permissions-Dk3BH3dS.js";
18
- import { c as bootstrapSchema, l as bootstrapWith, n as extendServer, s as accessOf, t as createServer, u as mapBootstrapMemo } from "../server-B0T944J9.js";
18
+ import { c as bootstrapSchema, l as bootstrapWith, n as extendServer, s as accessOf, t as createServer, u as mapBootstrapMemo } from "../server-DpcMKAt_.js";
19
19
  import { t as withExtra } from "../extra-Dz9n5y1s.js";
20
20
  import { i as requireCaller, n as formDataObject, t as authorizeCaller } from "../kit-BgRTtW9w.js";
21
21
  import { n as resourceRouter } from "../resources-CM9wwyfa.js";
@@ -2,14 +2,14 @@ import { i as toSession } from "../view-DpKWWhP2.js";
2
2
  import { i as claimsOf } from "../claims-CX-ar1vt.js";
3
3
  import { n as dbError, r as dbErrorOf } from "../errors-DK1wGb9z.js";
4
4
  import { c as toProblem } from "../problem-BwplIuhI.js";
5
- import { t as adapterBase } from "../adapter-base-DXF0tNJJ.js";
5
+ import { t as adapterBase } from "../adapter-base-BWp_GpBq.js";
6
6
  import { p as flushEvents } from "../sessions-w6xril_l.js";
7
7
  import { t as authorizeCaller } from "../kit-BgRTtW9w.js";
8
8
  import { t as rateLimitGate } from "../rate-limit-Wolzge1m.js";
9
9
  import { t as tenantOf } from "../tenant-Duq0dWqX.js";
10
10
  import { r as refreshFor } from "../request-kind-BMNdlQpz.js";
11
11
  import { i as guard, s as settle, t as assertCookieRefresh } from "../respond-DLvLJwwN.js";
12
- import { n as extendServer, t as createServer } from "../server-B0T944J9.js";
12
+ import { n as extendServer, t as createServer } from "../server-DpcMKAt_.js";
13
13
  import { t as callWithInput } from "../block-method-DIbWG4Mj.js";
14
14
  import { r as checkPermission } from "../authorizer-DtUCjKBn.js";
15
15
  import { n as isRecord } from "../guards-CsRa6v57.js";
@@ -1,7 +1,7 @@
1
1
  import { r as blockEventAttributes } from "../block-events-uKWyOpAy.js";
2
2
  import { r as definePlugin } from "../plugin-Ca2qBiFZ.js";
3
3
  import { t as SPEC_PINS } from "../spec-pins-Dlz8OVqi.js";
4
- import "../version-B9H4YoiS.js";
4
+ import "../version-Adj2H6dY.js";
5
5
  import { SpanKind, SpanStatusCode, context, metrics, propagation, trace } from "@opentelemetry/api";
6
6
  // src/otel/index.ts
7
7
  const INSTRUMENTATION_NAME = "better-supabase";
@@ -40,9 +40,9 @@ function systemOf(executor) {
40
40
  * ```
41
41
  */
42
42
  function otel(options = {}) {
43
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.63.2");
43
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.64.0");
44
44
  let histogram;
45
- if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.63.2")).createHistogram("db.client.operation.duration", {
45
+ if (options.metrics !== false) histogram = (options.meter ?? metrics.getMeter("better-supabase", "0.64.0")).createHistogram("db.client.operation.duration", {
46
46
  unit: "s",
47
47
  description: "Duration of database client operations.",
48
48
  advice: { explicitBucketBoundaries: [
@@ -231,7 +231,7 @@ function otel(options = {}) {
231
231
  * `betterSupabase.events`. Returns a function that stops listening.
232
232
  */
233
233
  function traceAuth(betterSupabase, options = {}) {
234
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.63.2");
234
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.64.0");
235
235
  const offAuth = betterSupabase.events.on("auth", (event) => {
236
236
  const span = tracer.startSpan("auth.resolve", {
237
237
  kind: SpanKind.INTERNAL,
@@ -270,7 +270,7 @@ function traceAuth(betterSupabase, options = {}) {
270
270
  * `*.denied`) set an error status. Returns a function that stops listening.
271
271
  */
272
272
  function traceBlockEvents(betterSupabase, options = {}) {
273
- const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.63.2");
273
+ const tracer = options.tracer ?? trace.getTracer("better-supabase", "0.64.0");
274
274
  return betterSupabase.events.on("block", (event) => {
275
275
  const attributes = {
276
276
  ...options.attributes,
@@ -2,7 +2,7 @@ import { l as postgrestExecutor } from "./codec-CJaAdLjG.js";
2
2
  import { a as ok, r as err, t as AsyncResult } from "./result-DijoXEFG.js";
3
3
  import { r as decodeJwtPayload } from "./base64-DgNIlSAS.js";
4
4
  import { i as userContext } from "./impersonation-BlU6M8zN.js";
5
- import { t as provideLeanConnectionRuntime } from "./define-runtime-BbNPkt-5.js";
5
+ import { t as provideLeanConnectionRuntime } from "./define-runtime-DQC2Gjdr.js";
6
6
  import { n as hasAuthModule, r as claimedTenant } from "./auth-module-B19zCsb4.js";
7
7
  import { t as currentTenant } from "./tenant-source-46lMuMEn.js";
8
8
  import { n as identityKey } from "./user-change-Ngy8z1fZ.js";
@@ -1,4 +1,4 @@
1
- import { a as sqliteCompiler, c as quoteSqliteIdent, i as checkSqlite, l as sqliteValue, n as postgrestTimestamp, o as compileSqlite, r as sqliteExecutor, s as likeToGlob, t as fromSqliteError } from "../executor-DABWqMfV.js";
1
+ import { a as sqliteCompiler, c as quoteSqliteIdent, i as checkSqlite, l as sqliteValue, n as postgrestTimestamp, o as compileSqlite, r as sqliteExecutor, s as likeToGlob, t as fromSqliteError } from "../executor-D7avvqx3.js";
2
2
  import { i as localEngine } from "../data-engine-MRAlinsa.js";
3
3
  import { n as authzVersionOf } from "../snapshot-C1KUHKTc.js";
4
4
  import { n as claimAt, s as tenantPathsFor } from "../claims-CX-ar1vt.js";
@@ -1,4 +1,4 @@
1
- import { C as PRESET_TENANT_NAMES, E as presetValueLabel, S as PRESET_FRAMEWORKS, T as presetField, _ as defaultPreset, a as presetOf, b as CONVENTION_FIELDS, c as presetSpec, d as removeComposite, f as resolvePreset, g as PRESET_NAMES, h as PRESET_GROUPS, i as presetConfig, l as listNames, m as PRESETS, o as presetFromSpec, p as DEFAULT_PRESET_NAME, r as expandPreset, s as presetOfSpec, t as conventionConfig, u as presetBlockConflict, v as isPresetName, w as integrationsForFramework, x as DEFAULT_CONVENTIONS, y as namedPreset } from "../config-L5_4kg24.js";
2
- import { I as PRESET_CATALOG, O as APP_COLUMN_FORMATS, b as appDefaultError, c as APP_NAME_MAX, d as appIdentifierError, f as appNameLengthError, i as instancePrefix, n as INSTANCE_NAME, p as appReservedColumns, t as CORE_BLOCKS, x as isAppDefault } from "../instances-PZAWgQEX.js";
3
- import { A as isDesignCode, B as safeDesignFileSource, C as decodeDesign, D as designOf, E as designFormat, F as presetArgumentOf, G as presetGlue, H as PROVIDER_COMMENT, I as presetConfigSource, K as BLOCK_CATALOG, L as presetInstallCommand, M as parseDesign, N as presetAndDesignOf, O as designSchema, P as presetApplyCommand, R as presetKey, S as createUrl, T as designFileSource, U as glueCommand, V as safeParseDesign, W as presetBlocksSource, _ as DESIGN_FORMAT, a as installedBlocks, b as MAX_DESIGN_CODE_LENGTH, c as instancesOf, d as withInstance, f as withoutInstance, g as DESIGN_FILE, h as CREATE_URL, i as entityName, k as encodeDesign, l as presetInstances, m as diffDesigns, n as blockRequires, o as instanceBlock, p as diffAppTables, r as canAddInstance, s as instanceNameProblem, t as blockEntities, u as withEntityName, v as DesignParseError, w as designConfig, x as createQuery, y as DesignTooLongError, z as readDesignFile } from "../preset-BcwGsW_B.js";
1
+ import { C as PRESET_TENANT_NAMES, E as presetValueLabel, S as PRESET_FRAMEWORKS, T as presetField, _ as defaultPreset, a as presetOf, b as CONVENTION_FIELDS, c as presetSpec, d as removeComposite, f as resolvePreset, g as PRESET_NAMES, h as PRESET_GROUPS, i as presetConfig, l as listNames, m as PRESETS, o as presetFromSpec, p as DEFAULT_PRESET_NAME, r as expandPreset, s as presetOfSpec, t as conventionConfig, u as presetBlockConflict, v as isPresetName, w as integrationsForFramework, x as DEFAULT_CONVENTIONS, y as namedPreset } from "../config-ocvgjLWV.js";
2
+ import { I as PRESET_CATALOG, O as APP_COLUMN_FORMATS, b as appDefaultError, c as APP_NAME_MAX, d as appIdentifierError, f as appNameLengthError, i as instancePrefix, n as INSTANCE_NAME, p as appReservedColumns, t as CORE_BLOCKS, x as isAppDefault } from "../instances-B9oCgEOH.js";
3
+ import { A as isDesignCode, B as safeDesignFileSource, C as decodeDesign, D as designOf, E as designFormat, F as presetArgumentOf, G as presetGlue, H as PROVIDER_COMMENT, I as presetConfigSource, K as BLOCK_CATALOG, L as presetInstallCommand, M as parseDesign, N as presetAndDesignOf, O as designSchema, P as presetApplyCommand, R as presetKey, S as createUrl, T as designFileSource, U as glueCommand, V as safeParseDesign, W as presetBlocksSource, _ as DESIGN_FORMAT, a as installedBlocks, b as MAX_DESIGN_CODE_LENGTH, c as instancesOf, d as withInstance, f as withoutInstance, g as DESIGN_FILE, h as CREATE_URL, i as entityName, k as encodeDesign, l as presetInstances, m as diffDesigns, n as blockRequires, o as instanceBlock, p as diffAppTables, r as canAddInstance, s as instanceNameProblem, t as blockEntities, u as withEntityName, v as DesignParseError, w as designConfig, x as createQuery, y as DesignTooLongError, z as readDesignFile } from "../preset-DrfMF0Hv.js";
4
4
  export { APP_COLUMN_FORMATS, APP_NAME_MAX, BLOCK_CATALOG, CONVENTION_FIELDS, CREATE_URL, DEFAULT_CONVENTIONS, DEFAULT_PRESET_NAME, DESIGN_FILE, DESIGN_FORMAT, DesignParseError, DesignTooLongError, INSTANCE_NAME, MAX_DESIGN_CODE_LENGTH, PRESETS, PRESET_CATALOG, PRESET_FRAMEWORKS, PRESET_GROUPS, PRESET_NAMES, PRESET_TENANT_NAMES, PROVIDER_COMMENT, CORE_BLOCKS as SINGLE_INSTANCE_BLOCKS, appDefaultError, appIdentifierError, appNameLengthError, appReservedColumns, blockEntities, blockRequires, canAddInstance, conventionConfig, createQuery, createUrl, decodeDesign, defaultPreset, designConfig, designFileSource, designFormat, designOf, designSchema, diffAppTables, diffDesigns, encodeDesign, entityName, expandPreset, glueCommand, installedBlocks, instanceBlock, instanceNameProblem, instancePrefix, instancesOf, integrationsForFramework, isAppDefault, isDesignCode, isPresetName, listNames, namedPreset, parseDesign, presetAndDesignOf, presetApplyCommand, presetArgumentOf, presetBlockConflict, presetBlocksSource, presetConfig, presetConfigSource, presetField, presetFromSpec, presetGlue, presetInstallCommand, presetInstances, presetKey, presetOf, presetOfSpec, presetSpec, presetValueLabel, readDesignFile, removeComposite, resolvePreset, safeDesignFileSource, safeParseDesign, withEntityName, withInstance, withoutInstance };
@@ -1,5 +1,5 @@
1
- import { I as PRESET_CATALOG, _ as appTablesOf, n as INSTANCE_NAME, t as CORE_BLOCKS, z as asBlocksConfig } from "./instances-PZAWgQEX.js";
2
- import { N as groupEntries, _ as defaultPreset, a as presetOf, c as presetSpec, f as resolvePreset, i as presetConfig, s as presetOfSpec } from "./config-L5_4kg24.js";
1
+ import { I as PRESET_CATALOG, _ as appTablesOf, n as INSTANCE_NAME, t as CORE_BLOCKS, z as asBlocksConfig } from "./instances-B9oCgEOH.js";
2
+ import { N as groupEntries, _ as defaultPreset, a as presetOf, c as presetSpec, f as resolvePreset, i as presetConfig, s as presetOfSpec } from "./config-ocvgjLWV.js";
3
3
  import { i as FIELD_FORMATS } from "./field-formats-sLYMh1ZK.js";
4
4
  // src/preset/block-catalog.generated.ts
5
5
  const BLOCK_CATALOG = {
@@ -1,8 +1,8 @@
1
- import { a as presetOf, f as resolvePreset } from "./config-L5_4kg24.js";
2
- import { D as designOf, M as parseDesign, j as jsonPointer, k as encodeDesign, v as DesignParseError, w as designConfig, y as DesignTooLongError } from "./preset-BcwGsW_B.js";
3
- import { I as PRESET_CATALOG, b as appDefaultError, d as appIdentifierError, f as appNameLengthError, p as appReservedColumns, x as isAppDefault } from "./instances-PZAWgQEX.js";
4
- import { i as resolveConfig } from "./config-1kAVpZc_.js";
5
- import { Ft as SQL_MODULES, ot as renderBlocks, q as moduleLayout } from "./sql-DPpcMNUF.js";
1
+ import { a as presetOf, f as resolvePreset } from "./config-ocvgjLWV.js";
2
+ import { D as designOf, M as parseDesign, j as jsonPointer, k as encodeDesign, v as DesignParseError, w as designConfig, y as DesignTooLongError } from "./preset-DrfMF0Hv.js";
3
+ import { I as PRESET_CATALOG, b as appDefaultError, d as appIdentifierError, f as appNameLengthError, p as appReservedColumns, x as isAppDefault } from "./instances-B9oCgEOH.js";
4
+ import { i as resolveConfig } from "./config-BuZW7wNr.js";
5
+ import { Ft as SQL_MODULES, ot as renderBlocks, q as moduleLayout } from "./sql-B3e0Ji-Q.js";
6
6
  // src/create/column-keys.ts
7
7
  /** The most options a select takes, and the longest option. */
8
8
  const MAX_OPTIONS = 100;
@@ -7,7 +7,7 @@ import { r as MembershipClaim } from "../entitlements-Djh4bBdj.js";
7
7
  import { _ as LiveQueryHookOptions, b as ProfileOf, c as DataWrites, f as BroadcastOptions, h as LiveCountHookOptions, l as ActionInputOf, m as ClientLike, o as DataSource, p as ClaimsOf, s as DataState, t as fieldErrorsOf, u as ActionResultOf, x as UseActionOptions } from "../field-errors-DSEpFDCa.js";
8
8
  import { n as supportOf, t as SupportView } from "../support-view-CfyHFSq4.js";
9
9
  import { a as BlockQueryActions, c as BlockRefetchOn, i as BlockMutationState, n as BlockEventSource, o as BlockQueryOptions, r as BlockMutationActions, s as BlockQueryState, t as BlockEngineOptions } from "../block-controller-Dy-Jyy8A.js";
10
- import { $ as RecordInitial, A as DataView, B as useBlockEvent, C as useConflicts, D as can, E as PermissionsProvider, F as defineOneHook, G as useRecordForm, H as useBlockQuery, I as useBlockEnv, J as RecordListUrl, K as RecordListQueryStates, L as useBlockTenant, M as defineDataHooks, N as defineInfiniteListHook, O as useCan, P as defineListHook, Q as RecordContextValue, R as useController, S as Conflicts, St as useSupabase, T as OfflineContext, U as RecordFormState, V as useBlockMutation, W as UseRecordFormOptions, X as useRecordListState, Y as RecordListUrlState, Z as RecordActionsOf, _ as useRealtimeRelay, _t as createHooks, a as Upload, at as ActionForm, b as PresenceTopic, bt as useLiveCount, c as UseImageOptions, ct as UseActionFormOptions, d as useSignedUrl, dt as useActionForm, et as RecordProviderKit, f as useUpload, ft as useOptimisticAction, g as UseRealtimeRelayOptions, gt as LiveCount, h as useDebouncedSearch, ht as BetterSupabaseProviderProps, i as StorageImage, it as createRecordProvider, j as InfiniteList, k as DataHooks, l as UseUploadOptions, lt as UseOptimisticActionOptions, m as DebouncedSearchOptions, mt as BetterSupabaseProvider, n as SignedUrl, nt as RecordState, o as UploadStatus, ot as ActionHandle, p as DebouncedSearch, pt as BetterHooks, q as RecordListState, r as SignedUrlSource, rt as RecordWriteHandlers, s as UploadTarget, st as OptimisticActionHandle, t as ImageSource, tt as RecordProviderProps, u as useImage, ut as useAction, v as Presence, vt as useAuth, w as useSyncStatus, x as usePresence, xt as useLiveQuery, y as PresenceHookOptions, yt as useBroadcast, z as useLatest } from "../index-B2NJNoRd.js";
10
+ import { $ as RecordInitial, A as DataView, B as useBlockEvent, C as useConflicts, D as can, E as PermissionsProvider, F as defineOneHook, G as useRecordForm, H as useBlockQuery, I as useBlockEnv, J as RecordListUrl, K as RecordListQueryStates, L as useBlockTenant, M as defineDataHooks, N as defineInfiniteListHook, O as useCan, P as defineListHook, Q as RecordContextValue, R as useController, S as Conflicts, St as useSupabase, T as OfflineContext, U as RecordFormState, V as useBlockMutation, W as UseRecordFormOptions, X as useRecordListState, Y as RecordListUrlState, Z as RecordActionsOf, _ as useRealtimeRelay, _t as createHooks, a as Upload, at as ActionForm, b as PresenceTopic, bt as useLiveCount, c as UseImageOptions, ct as UseActionFormOptions, d as useSignedUrl, dt as useActionForm, et as RecordProviderKit, f as useUpload, ft as useOptimisticAction, g as UseRealtimeRelayOptions, gt as LiveCount, h as useDebouncedSearch, ht as BetterSupabaseProviderProps, i as StorageImage, it as createRecordProvider, j as InfiniteList, k as DataHooks, l as UseUploadOptions, lt as UseOptimisticActionOptions, m as DebouncedSearchOptions, mt as BetterSupabaseProvider, n as SignedUrl, nt as RecordState, o as UploadStatus, ot as ActionHandle, p as DebouncedSearch, pt as BetterHooks, q as RecordListState, r as SignedUrlSource, rt as RecordWriteHandlers, s as UploadTarget, st as OptimisticActionHandle, t as ImageSource, tt as RecordProviderProps, u as useImage, ut as useAction, v as Presence, vt as useAuth, w as useSyncStatus, x as usePresence, xt as useLiveQuery, y as PresenceHookOptions, yt as useBroadcast, z as useLatest } from "../index-CwvF-r09.js";
11
11
  import { SessionProvider, SessionProviderProps, useSession, useSupportSession } from "./session.js";
12
12
  import { a as useSignIn, i as SignOut, n as PendingState, o as useSignOut, r as SignIn, t as AuthHookOptions } from "../sign-in-DkRvzECa.js";
13
13
  export { type ActionForm, type ActionHandle, type ActionInputOf, type ActionResultOf, type AuthHookOptions, type AuthSession, type BetterHooks, BetterSupabaseProvider, type BetterSupabaseProviderProps, type BlockEngineOptions, type BlockEventSource, type BlockMutationActions, type BlockMutationState, type BlockQueryActions, type BlockQueryOptions, type BlockQueryState, type BlockRefetchOn, type BroadcastOptions, type ClaimsOf, type ClientLike, type Conflicts, type DataEngine, type DataEntry, type DataHooks, type DataSource, type DataState, type DataSyncState, type DataView, type DataWrites, type DebouncedSearch, type DebouncedSearchOptions, type ImageSource, type Impersonator, type InfiniteList, type LiveCount, type LiveCountHookOptions, type LiveCountSeed, type LiveQueryHookOptions, type MembershipClaim, OfflineContext, type OptimisticActionHandle, type PendingState, PermissionsProvider, type Presence, type PresenceHookOptions, type PresenceTopic, type ProfileOf, type RecordActionsOf, type RecordContextValue, type RecordFormState, type RecordInitial, type RecordListQueryStates, type RecordListState, type RecordListUrl, type RecordListUrlState, type RecordProviderKit, type RecordProviderProps, type RecordState, type RecordWriteHandlers, type RejectedChange, SessionProvider, type SessionProviderProps, type SignIn, type SignOut, type SignedUrl, type SignedUrlSource, type StorageImage, type SupportView, type Upload, type UploadStatus, type UploadTarget, type UseActionFormOptions, type UseActionOptions, type UseImageOptions, type UseOptimisticActionOptions, type UseRealtimeRelayOptions, type UseRecordFormOptions, type UseUploadOptions, can, createHooks, createRecordProvider, defineDataHooks, defineInfiniteListHook, defineListHook, defineOneHook, escapeLike, fieldErrorsOf, supportOf, tenantOf, useAction, useActionForm, useAuth, useBlockEnv, useBlockEvent, useBlockMutation, useBlockQuery, useBlockTenant, useBroadcast, useCan, useConflicts, useController, useDebouncedSearch, useImage, useLatest, useLiveCount, useLiveQuery, useOptimisticAction, usePresence, useRealtimeRelay, useRecordForm, useRecordListState, useSession, useSignIn, useSignOut, useSignedUrl, useSupabase, useSupportSession, useSyncStatus, useUpload };
@@ -4,7 +4,7 @@ import { a as createHooks, d as useSupabase, i as BetterSupabaseProvider, l as u
4
4
  import { t as supportOf } from "../support-view-CvDEgyGY.js";
5
5
  import { i as useSupportSession, r as useSession, t as SessionProvider } from "../session-BBfnagPA.js";
6
6
  import { c as fieldErrorsOf } from "../data-hooks-Bvoc_jzM.js";
7
- import { C as useBlockTenant, E as useOptimisticAction, S as useBlockEnv, T as useActionForm, _ as useBlockMutation, a as useRealtimeRelay, b as useRecordListState, c as useSyncStatus, d as useCan, f as defineDataHooks, g as useBlockEvent, h as defineOneHook, i as useDebouncedSearch, l as PermissionsProvider, m as defineListHook, n as useSignedUrl, o as usePresence, p as defineInfiniteListHook, r as useUpload, s as useConflicts, t as useImage, u as can, v as useBlockQuery, w as useAction, x as createRecordProvider, y as useRecordForm } from "../react-hb2gg5UV.js";
7
+ import { C as useBlockTenant, E as useOptimisticAction, S as useBlockEnv, T as useActionForm, _ as useBlockMutation, a as useRealtimeRelay, b as useRecordListState, c as useSyncStatus, d as useCan, f as defineDataHooks, g as useBlockEvent, h as defineOneHook, i as useDebouncedSearch, l as PermissionsProvider, m as defineListHook, n as useSignedUrl, o as usePresence, p as defineInfiniteListHook, r as useUpload, s as useConflicts, t as useImage, u as can, v as useBlockQuery, w as useAction, x as createRecordProvider, y as useRecordForm } from "../react-BkLf1aNc.js";
8
8
  import { n as useLatest, t as useController } from "../react-controller-BBT925kb.js";
9
9
  import { t as OfflineContext } from "../offline-DC97pA8z.js";
10
10
  import { t as tenantOf } from "../tenant-Duq0dWqX.js";
@@ -1,6 +1,6 @@
1
1
  import { n as supportOf, t as SupportView } from "../support-view-CfyHFSq4.js";
2
2
  import { c as Impersonator, n as AuthSession } from "../view-DwTCw_jZ.js";
3
- import { $ as RecordInitial, B as useBlockEvent$1, C as useConflicts$1, D as can, E as PermissionsProvider, F as defineOneHook$1, G as useRecordForm$1, H as useBlockQuery$1, I as useBlockEnv$1, J as RecordListUrl, K as RecordListQueryStates, L as useBlockTenant$1, M as defineDataHooks$1, N as defineInfiniteListHook$1, O as useCan$1, P as defineListHook$1, Q as RecordContextValue, R as useController$1, St as useSupabase, T as OfflineContext, U as RecordFormState, V as useBlockMutation$1, W as UseRecordFormOptions, X as useRecordListState$1, Y as RecordListUrlState, Z as RecordActionsOf, _ as useRealtimeRelay$1, a as Upload, at as ActionForm, b as PresenceTopic, c as UseImageOptions, ct as UseActionFormOptions, d as useSignedUrl$1, et as RecordProviderKit, f as useUpload$1, g as UseRealtimeRelayOptions, gt as LiveCount, h as useDebouncedSearch$1, ht as BetterSupabaseProviderProps, i as StorageImage, it as createRecordProvider$1, l as UseUploadOptions, lt as UseOptimisticActionOptions, m as DebouncedSearchOptions, mt as BetterSupabaseProvider, n as SignedUrl, nt as RecordState, o as UploadStatus, ot as ActionHandle, p as DebouncedSearch, pt as BetterHooks, q as RecordListState, r as SignedUrlSource, rt as RecordWriteHandlers, s as UploadTarget, st as OptimisticActionHandle, t as ImageSource, tt as RecordProviderProps, u as useImage$1, v as Presence, vt as useAuth, w as useSyncStatus$1, x as usePresence$1, xt as useLiveQuery, y as PresenceHookOptions, yt as useBroadcast, z as useLatest$1 } from "../index-B2NJNoRd.js";
3
+ import { $ as RecordInitial, B as useBlockEvent$1, C as useConflicts$1, D as can, E as PermissionsProvider, F as defineOneHook$1, G as useRecordForm$1, H as useBlockQuery$1, I as useBlockEnv$1, J as RecordListUrl, K as RecordListQueryStates, L as useBlockTenant$1, M as defineDataHooks$1, N as defineInfiniteListHook$1, O as useCan$1, P as defineListHook$1, Q as RecordContextValue, R as useController$1, St as useSupabase, T as OfflineContext, U as RecordFormState, V as useBlockMutation$1, W as UseRecordFormOptions, X as useRecordListState$1, Y as RecordListUrlState, Z as RecordActionsOf, _ as useRealtimeRelay$1, a as Upload, at as ActionForm, b as PresenceTopic, c as UseImageOptions, ct as UseActionFormOptions, d as useSignedUrl$1, et as RecordProviderKit, f as useUpload$1, g as UseRealtimeRelayOptions, gt as LiveCount, h as useDebouncedSearch$1, ht as BetterSupabaseProviderProps, i as StorageImage, it as createRecordProvider$1, l as UseUploadOptions, lt as UseOptimisticActionOptions, m as DebouncedSearchOptions, mt as BetterSupabaseProvider, n as SignedUrl, nt as RecordState, o as UploadStatus, ot as ActionHandle, p as DebouncedSearch, pt as BetterHooks, q as RecordListState, r as SignedUrlSource, rt as RecordWriteHandlers, s as UploadTarget, st as OptimisticActionHandle, t as ImageSource, tt as RecordProviderProps, u as useImage$1, v as Presence, vt as useAuth, w as useSyncStatus$1, x as usePresence$1, xt as useLiveQuery, y as PresenceHookOptions, yt as useBroadcast, z as useLatest$1 } from "../index-CwvF-r09.js";
4
4
  import { dt as QuerySpec } from "../db-blocks-BQkHb77X.js";
5
5
  import { r as LiveCountSeed } from "../index-DitpSLYH.js";
6
6
  import { _ as LiveQueryHookOptions, b as ProfileOf, f as BroadcastOptions, h as LiveCountHookOptions, l as ActionInputOf, m as ClientLike, p as ClaimsOf, t as fieldErrorsOf, u as ActionResultOf, x as UseActionOptions } from "../field-errors-DSEpFDCa.js";
@@ -1,4 +1,4 @@
1
- import { l as PermissionsProvider, u as can } from "../react-hb2gg5UV.js";
1
+ import { l as PermissionsProvider, u as can } from "../react-BkLf1aNc.js";
2
2
  import { d as useSupabase, i as BetterSupabaseProvider, o as useAuth, s as useBroadcast, u as useLiveQuery } from "../sign-in-CxnkReKM.js";
3
3
  import { c as fieldErrorsOf } from "../data-hooks-Bvoc_jzM.js";
4
4
  import { t as OfflineContext } from "../offline-DC97pA8z.js";
@@ -349,6 +349,18 @@ function createRecordProvider(feature) {
349
349
  // src/react/record-list.ts
350
350
  const present = (state) => Object.fromEntries(Object.entries(state).filter(([, value]) => value !== null && value !== void 0));
351
351
  /**
352
+ * The URL state in the shape of a query: the facet keys move under `facets`, as
353
+ * `toSearchParams` reads them.
354
+ */
355
+ const asQuery = (facetKeys, state) => {
356
+ const query = {};
357
+ const facets = {};
358
+ for (const [key, value] of Object.entries(present(state))) if (facetKeys.has(key)) facets[key] = value;
359
+ else query[key] = value;
360
+ if (Object.keys(facets).length > 0) query["facets"] = facets;
361
+ return query;
362
+ };
363
+ /**
352
364
  * A record list's URL state from nuqs, with the query params the server parses.
353
365
  * Filter and sort changes reset the page. better-supabase doesn't import nuqs:
354
366
  * pass what `useQueryStates` returns.
@@ -368,7 +380,8 @@ const present = (state) => Object.fromEntries(Object.entries(state).filter(([, v
368
380
  function useRecordListState(list, queryStates) {
369
381
  const [state, setState] = queryStates;
370
382
  return useMemo(() => {
371
- const searchParams = list.toSearchParams(present(state));
383
+ const facetKeys = new Set((list.facets ?? []).map((facet) => facet.key));
384
+ const searchParams = list.toSearchParams(asQuery(facetKeys, state));
372
385
  const parsed = list.parse(searchParams);
373
386
  const query = parsed.ok ? parsed.value : list.defaults;
374
387
  return {
@@ -1,12 +1,12 @@
1
1
  import { n as bufferInPlace, t as around } from "../shared-Ci1g9nl4.js";
2
2
  import { o as problemResponse } from "../problem-BwplIuhI.js";
3
- import { t as adapterBase } from "../adapter-base-DXF0tNJJ.js";
3
+ import { t as adapterBase } from "../adapter-base-BWp_GpBq.js";
4
4
  import { _ as withFlush } from "../sessions-w6xril_l.js";
5
- import { i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-BQgHM3zD.js";
5
+ import { i as localsOf, n as actionInput, r as frameworkEntry } from "../framework-DxCx0pmS.js";
6
6
  import { i as requireCaller, o as runAction } from "../kit-BgRTtW9w.js";
7
7
  import { r as refusalResponse } from "../refusal-CgSrkirX.js";
8
8
  import { s as settle } from "../respond-DLvLJwwN.js";
9
- import { n as extendServer, t as createServer } from "../server-B0T944J9.js";
9
+ import { n as extendServer, t as createServer } from "../server-DpcMKAt_.js";
10
10
  // src/bridges/react-router.ts
11
11
  /**
12
12
  * Runs an entry array as React Router server middleware. The contributions are
@@ -1,6 +1,6 @@
1
- import { d as defineAuthorizationHooks, f as SERVER_EVENT_SOURCE, n as extendServer, r as TENANT_HEADER, t as createServer } from "../server-B0T944J9.js";
1
+ import { d as defineAuthorizationHooks, f as SERVER_EVENT_SOURCE, n as extendServer, r as TENANT_HEADER, t as createServer } from "../server-DpcMKAt_.js";
2
2
  import { n as PRIMARY_COOKIE } from "../replicas-DiDz-zyr.js";
3
- import { t as adapterBase } from "../adapter-base-DXF0tNJJ.js";
3
+ import { t as adapterBase } from "../adapter-base-BWp_GpBq.js";
4
4
  import { _ as withFlush, c as serverCore, g as unexpectedResponse, h as resolveToken, i as withSession, m as handle, p as flushEvents } from "../sessions-w6xril_l.js";
5
5
  import { n as event, t as defineEvents } from "../event-map-DLajpFiJ.js";
6
6
  import { a as PERMISSIONS_TRUNCATED_CLAIM, i as PERMISSIONS_CLAIM, n as FEATURES_CLAIM, o as PERMISSION_CAP_CLAIM, r as MEMBERSHIPS_CLAIM, t as AUTHZ_VERSION_CLAIM } from "../claim-names-B3KyK7Js.js";
@@ -18,9 +18,9 @@ import { n as supportClaims, t as sqlSupportStore } from "../support-DqbhfGgx.js
18
18
  import { t as supportOf } from "../support-view-CvDEgyGY.js";
19
19
  import { i as userContext, r as impersonatorOf } from "../impersonation-BlU6M8zN.js";
20
20
  import "../claims/index.js";
21
- import { t as provideConnectionRuntime } from "../define-runtime-full-gpz09qAj.js";
21
+ import { t as provideConnectionRuntime } from "../define-runtime-full-BIrEQWJR.js";
22
22
  import { t as postgresExecutor } from "../executor-BWg7xw7c.js";
23
- import { n as withGuard, t as withBetterSupabase } from "../composite-C13UCNgm.js";
23
+ import { n as withGuard, t as withBetterSupabase } from "../composite-RorL_F8I.js";
24
24
  import { n as jwtClaimsOf, r as userClaimsOf, t as authModeOf } from "../claims-DouHL7ZL.js";
25
25
  import { i as delegationOf, n as actorOf, r as agentClaims, t as IDENTITY_SCOPES } from "../actor-DraVJ7tB.js";
26
26
  import { t as authContext } from "../context-DxTbfhD8.js";
@@ -4,7 +4,7 @@ import { a as narrowCap, i as delegatedClaims, r as contextClaims } from "./dele
4
4
  import { i as userContext, t as actClaim } from "./impersonation-BlU6M8zN.js";
5
5
  import { m as sessionCookieName } from "./resolve-DP8w5Nl0.js";
6
6
  import { s as requestMemo, t as bindAuthorizer } from "./authorizer-DtUCjKBn.js";
7
- import { t as provideConnectionRuntime } from "./define-runtime-full-gpz09qAj.js";
7
+ import { t as provideConnectionRuntime } from "./define-runtime-full-BIrEQWJR.js";
8
8
  import { n as dbError } from "./errors-DK1wGb9z.js";
9
9
  import { l as postgrestExecutor } from "./codec-CJaAdLjG.js";
10
10
  import { a as ok, r as err, t as AsyncResult } from "./result-DijoXEFG.js";
@@ -1,11 +1,11 @@
1
1
  import { t as beforeRoute } from "../before-route-Ra3OhI2x.js";
2
2
  import { i as nitroCloudflareEnv } from "../shared-Ci1g9nl4.js";
3
- import { t as adapterBase } from "../adapter-base-DXF0tNJJ.js";
3
+ import { t as adapterBase } from "../adapter-base-BWp_GpBq.js";
4
4
  import { p as flushEvents } from "../sessions-w6xril_l.js";
5
- import { i as localsOf, r as frameworkEntry } from "../framework-BQgHM3zD.js";
5
+ import { i as localsOf, r as frameworkEntry } from "../framework-DxCx0pmS.js";
6
6
  import { i as requireCaller, o as runAction } from "../kit-BgRTtW9w.js";
7
7
  import { r as refusalResponse } from "../refusal-CgSrkirX.js";
8
- import { n as extendServer, t as createServer } from "../server-B0T944J9.js";
8
+ import { n as extendServer, t as createServer } from "../server-DpcMKAt_.js";
9
9
  // src/solid-start/index.ts
10
10
  /** SolidStart integration: middleware, guards and server function actions. */
11
11
  function createSolidStart(betterSupabase, options) {
@@ -1,5 +1,5 @@
1
- import { a as toOpenApi30Schema, n as openapiFormat, o as defineDocumentFormat, r as OPENAPI_33_PREVIEW_VERSION, t as defineApi } from "../api-DhCLHpIU.js";
2
- import { a as topicsFrom, c as PROBLEM_SCHEMA, d as mergeJson, f as pointerToken, i as safeKey, l as convertStandard, r as CLOUD_EVENT_TRAIT, s as DEFAULT_ERRORS, t as defineApiModel, u as pascal } from "../build-Vd4JkaqJ.js";
1
+ import { a as toOpenApi30Schema, n as openapiFormat, o as defineDocumentFormat, r as OPENAPI_33_PREVIEW_VERSION, t as defineApi } from "../api-TwaJ4nS8.js";
2
+ import { a as topicsFrom, c as PROBLEM_SCHEMA, d as mergeJson, f as pointerToken, i as safeKey, l as convertStandard, r as CLOUD_EVENT_TRAIT, s as DEFAULT_ERRORS, t as defineApiModel, u as pascal } from "../build-CF_wE706.js";
3
3
  import { t as FUNCTION_DESCRIPTOR } from "../function-contract-Bf6llTkE.js";
4
4
  import { r as isPlainObject } from "../clone-H_gCsL29.js";
5
5
  import { a as methodNotAllowed } from "../problem-BwplIuhI.js";