better-supabase 0.63.1 → 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.
- package/dist/{adapter-base-DXF0tNJJ.js → adapter-base-BWp_GpBq.js} +1 -1
- package/dist/{api-C506eYSc.js → api-TwaJ4nS8.js} +1 -1
- package/dist/astro/index.js +3 -3
- package/dist/{build-DUasKASQ.js → build-CF_wE706.js} +1 -1
- package/dist/cli/{add-BymOCZ8D.js → add-CAEF20DB.js} +9 -9
- package/dist/cli/{add-B5Ras98V.js → add-DAbzG8-C.js} +2 -2
- package/dist/cli/add-bP1hqEPB.js +1 -0
- package/dist/cli/{app-table-files-DAt5YA7_.js → app-table-files-BNnw-4C9.js} +3 -3
- package/dist/cli/{app-tables-CTZeU4F2.js → app-tables-D2TRhx62.js} +2 -2
- package/dist/cli/{backfill-mm77568B.js → backfill-DgqbUamk.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-D2Vir61A.js → blocks-CWVG1w3P.js} +1 -1
- package/dist/cli/{blocks-BHUYzWRT.js → blocks-DykCgrRb.js} +1 -1
- package/dist/cli/{cache-DKdjMfP9.js → cache-JroD4zCO.js} +1 -1
- package/dist/cli/{codemod-Dne7b20w.js → codemod-CAz5XmH0.js} +4 -4
- package/dist/cli/{codemod-naming-ByeMo_ll.js → codemod-naming-DtzMgEs7.js} +1 -1
- package/dist/cli/{column-renames-FlO8U6SA.js → column-renames-DcEFMXX4.js} +2 -2
- package/dist/cli/{content-mapper-VUqqAubX.js → content-mapper-DQczPByw.js} +1 -1
- package/dist/cli/{dev-CI10aUMK.js → dev-Bwy7jmxv.js} +3 -3
- package/dist/cli/{doctor-DwEBENcA.js → doctor-BjwgIEEk.js} +22 -20
- package/dist/cli/{emit-Ds-4pNsQ.js → emit-D1NL_ewe.js} +2 -2
- package/dist/cli/{gen-Dqnmr3yO.js → gen-5GahcSRz.js} +3 -3
- package/dist/cli/{gen-tasks-CaqMHY4E.js → gen-tasks-BNqtXDSZ.js} +9 -9
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +7 -7
- package/dist/cli/{init-Dsi-1Q9D.js → init-DwJ-fzKE.js} +8 -8
- package/dist/cli/{live-gVsjEaEB.js → live-hA0NkWeP.js} +2 -2
- package/dist/cli/{mcp-DsTQAIyD.js → mcp-BpU-r3at.js} +2 -2
- package/dist/cli/{memo-backend-DvchDMYn.js → memo-backend-jPoQR64l.js} +1 -1
- package/dist/cli/{metadata-Dm63aecV.js → metadata-DsItgHac.js} +4 -4
- package/dist/cli/{migrate-auWUrtTl.js → migrate-bs8m1S4X.js} +1 -1
- package/dist/cli/{migration-safety-QkRu7ef8.js → migration-safety-CYnC7qr0.js} +1 -1
- package/dist/cli/{module-migration-Ddk92fRs.js → module-migration-DI1bC407.js} +1 -1
- package/dist/cli/{partition-BuX62VyM.js → partition-B_o9eCEl.js} +1 -1
- package/dist/cli/powersync-BeiG2uAK.js +1 -0
- package/dist/cli/{powersync-Cex4H5my.js → powersync-CYzLue5S.js} +3 -3
- package/dist/cli/{print-D4XpS5Qp.js → print-CX3mfrR4.js} +2 -2
- package/dist/cli/{providers-D7U-7DDW.js → providers-C_0X8CZ5.js} +1 -1
- package/dist/cli/{prune-workflows-CKW78AsP.js → prune-workflows-BRymSktV.js} +1 -1
- package/dist/cli/{remove-t4JoqycQ.js → remove-Ddd7JMeU.js} +6 -6
- package/dist/cli/{render-CIdg7VKj.js → render-D0JOrrdH.js} +4 -4
- package/dist/cli/{render-cache-Zjt3OgD_.js → render-cache-B6_cW4jQ.js} +1 -1
- package/dist/cli/{run-BIT66ThJ.js → run-CRbd_qI2.js} +30 -30
- package/dist/cli/{run-C-zh0kxb.js → run-CivaFfvS.js} +101 -21
- package/dist/cli/{shared-D5_5NsEI.js → shared-77CYy2Ff.js} +1 -1
- package/dist/cli/{source-50A8IPu1.js → source-H6tArdAg.js} +1 -1
- package/dist/cli/{spec-CiZPOLx8.js → spec-Bn4ArkKk.js} +2 -2
- package/dist/cli/{spec-DvCBeVz2.js → spec-CKr1A_Oo.js} +1 -1
- package/dist/cli/{sql-layout-n5vgZ671.js → sql-layout--Tblsahr.js} +2 -2
- package/dist/cli/{squash-PNv_rd5n.js → squash-BdHHGvSy.js} +1 -1
- package/dist/cli/{sync-DNSR4TUL.js → sync-koAHC0Xq.js} +4 -4
- package/dist/cli/{upgrade-B5LgLXX4.js → upgrade-B6MOyby0.js} +5 -5
- package/dist/cli/{upgrade-b477KsEI.js → upgrade-D9dPPfIy.js} +5 -5
- package/dist/cli/{version-CyIR9dhg.js → version-3_JBFBjw.js} +1 -1
- package/dist/client/index.js +1 -1
- package/dist/client/native/index.js +2 -2
- package/dist/{composite-C13UCNgm.js → composite-RorL_F8I.js} +1 -1
- package/dist/config/index.js +4 -4
- package/dist/{config-1kAVpZc_.js → config-BuZW7wNr.js} +3 -3
- package/dist/{config-L5_4kg24.js → config-ocvgjLWV.js} +1 -1
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.js +4 -4
- package/dist/{define-runtime-BbNPkt-5.js → define-runtime-DQC2Gjdr.js} +4 -0
- package/dist/{define-runtime-full-gpz09qAj.js → define-runtime-full-BIrEQWJR.js} +1 -1
- package/dist/edge/index.js +4 -4
- package/dist/{executor-DABWqMfV.js → executor-D7avvqx3.js} +1 -1
- package/dist/expo/index.js +3 -3
- package/dist/{former-permission-keys-FPrqQHXf.js → former-permission-keys-DVwR65bj.js} +1 -1
- package/dist/{framework-BQgHM3zD.js → framework-DxCx0pmS.js} +1 -1
- package/dist/generators/factories/index.js +1 -1
- package/dist/generators/json-schema/index.js +1 -1
- package/dist/generators/nuqs/index.js +1 -1
- package/dist/generators/standard-schema/index.js +1 -1
- package/dist/generators/valibot/index.js +1 -1
- package/dist/generators/zod/index.js +1 -1
- package/dist/hono/index.js +3 -3
- package/dist/{index-B2NJNoRd.d.ts → index-CwvF-r09.d.ts} +8 -0
- package/dist/{instances-PZAWgQEX.js → instances-B9oCgEOH.js} +76 -0
- package/dist/{json-schema-Cb5ORIIa.js → json-schema-BuzopJOK.js} +1 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.js +1 -1
- package/dist/mcp/sdk/index.js +1 -1
- package/dist/{mcp-DkcsgPP9.js → mcp-BCP-kBjf.js} +3 -3
- package/dist/next/index.js +2 -2
- package/dist/orpc/index.js +2 -2
- package/dist/otel/index.js +5 -5
- package/dist/{ports-ClJbgoyt.js → ports-BfHdHz1e.js} +1 -1
- package/dist/powersync/index.js +1 -1
- package/dist/preset/index.js +3 -3
- package/dist/{preset-BcwGsW_B.js → preset-DrfMF0Hv.js} +2 -2
- package/dist/{project-DYyr_iyu.js → project-BdZTXDVG.js} +5 -5
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +1 -1
- package/dist/react/server.d.ts +1 -1
- package/dist/react/server.js +1 -1
- package/dist/{react-hb2gg5UV.js → react-BkLf1aNc.js} +14 -1
- package/dist/react-router/index.js +3 -3
- package/dist/server/index.js +4 -4
- package/dist/{server-B0T944J9.js → server-DpcMKAt_.js} +1 -1
- package/dist/solid-start/index.js +3 -3
- package/dist/spec/index.js +2 -2
- package/dist/sql/index.js +2 -2
- package/dist/{sql-DPpcMNUF.js → sql-B3e0Ji-Q.js} +79 -3
- package/dist/sqlite/index.js +1 -1
- package/dist/sveltekit/index.js +3 -3
- package/dist/tanstack-start/index.js +3 -3
- package/dist/testing/index.js +3 -3
- package/dist/{version-BH2jtOjn.js → version-Adj2H6dY.js} +1 -1
- package/dist/webmcp/index.js +1 -1
- package/package.json +1 -1
- package/skills/better-supabase/references/ui-recipes.md +1174 -532
- package/dist/cli/add-CEqHL96B.js +0 -1
- package/dist/cli/powersync-BEebY0Uf.js +0 -1
|
@@ -6,7 +6,7 @@ import { p as isQuerySpec } from "./read-set-DfScfSsf.js";
|
|
|
6
6
|
import { a as ok, r as err, s as toDbError } from "./result-DijoXEFG.js";
|
|
7
7
|
import { n as simplifyOrFalse } from "./simplify-BzThKn5b.js";
|
|
8
8
|
import { n as whereClause, t as integer } from "./shared-BRFaCh8n.js";
|
|
9
|
-
import { t as provideConnectionRuntime } from "./define-runtime-full-
|
|
9
|
+
import { t as provideConnectionRuntime } from "./define-runtime-full-BIrEQWJR.js";
|
|
10
10
|
// src/compile/sqlite.ts
|
|
11
11
|
/**
|
|
12
12
|
* The operation needs something the SQLite dialect can't express: full-text
|
package/dist/expo/index.js
CHANGED
|
@@ -6,11 +6,11 @@ import { t as tenantOf } from "../tenant-Duq0dWqX.js";
|
|
|
6
6
|
import { i as claimsOf } from "../claims-CX-ar1vt.js";
|
|
7
7
|
import { t as DbException } from "../db-exception-Dv18UZ-I.js";
|
|
8
8
|
import { c as toProblem } from "../problem-BwplIuhI.js";
|
|
9
|
-
import { t as adapterBase } from "../adapter-base-
|
|
9
|
+
import { t as adapterBase } from "../adapter-base-BWp_GpBq.js";
|
|
10
10
|
import { g as unexpectedResponse } from "../sessions-w6xril_l.js";
|
|
11
|
-
import { c as bootstrapSchema, l as bootstrapWith, n as extendServer, s as accessOf, t as createServer } from "../server-
|
|
11
|
+
import { c as bootstrapSchema, l as bootstrapWith, n as extendServer, s as accessOf, t as createServer } from "../server-DpcMKAt_.js";
|
|
12
12
|
import { i as userSessionTags, r as tableTags, t as sessionIdTag } from "../cache-tags-C5Oivuxo.js";
|
|
13
|
-
import { t as withBetterSupabase } from "../composite-
|
|
13
|
+
import { t as withBetterSupabase } from "../composite-RorL_F8I.js";
|
|
14
14
|
import { r as refreshFor } from "../request-kind-BMNdlQpz.js";
|
|
15
15
|
import { i as guard, o as respond } from "../respond-DLvLJwwN.js";
|
|
16
16
|
import { bufferRequest, pipeline, seedContext } from "@supabase/middleware";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as entityNoun, i as entityNames, n as checkEntityName, s as tenantRename, t as DEFAULT_TENANT } from "./entity-naming-CUsC8bC1.js";
|
|
2
|
-
import { B as resolveBlock, I as PRESET_CATALOG, V as tenantNameOf } from "./instances-
|
|
2
|
+
import { B as resolveBlock, I as PRESET_CATALOG, V as tenantNameOf } from "./instances-B9oCgEOH.js";
|
|
3
3
|
// src/config/defaults.ts
|
|
4
4
|
/**
|
|
5
5
|
* Every default `resolveConfig` fills in. Other modules (the SQL module
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { c as snapshotOf } from "./snapshot-C1KUHKTc.js";
|
|
2
2
|
import { i as toSession } from "./view-DpKWWhP2.js";
|
|
3
|
-
import { t as withBetterSupabase } from "./composite-
|
|
3
|
+
import { t as withBetterSupabase } from "./composite-RorL_F8I.js";
|
|
4
4
|
// src/server/framework.ts
|
|
5
5
|
/**
|
|
6
6
|
* Every caller: the framework factories guard per loader, action or route
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VERSION } from "../../version-
|
|
1
|
+
import { t as VERSION } from "../../version-Adj2H6dY.js";
|
|
2
2
|
import { f as siblingPath, t as HEADER } from "../../shared-BXRDj6UR.js";
|
|
3
3
|
import { r as relativeImport } from "../../kit-D6kdfQFj.js";
|
|
4
4
|
// src/generators/factories.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as jsonSchema, n as toJsonSchema } from "../../json-schema-
|
|
1
|
+
export { t as jsonSchema, n as toJsonSchema } from "../../json-schema-BuzopJOK.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as VERSION } from "../../version-
|
|
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-
|
|
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-
|
|
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";
|
package/dist/hono/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
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";
|
package/dist/mapper/bin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { d as loadSnapshot } from "../cli/sql-layout
|
|
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-
|
|
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-
|
|
6
|
-
import { i as lastTypesModule, o as typesModuleKey, s as writeAtomic } from "../cli/cache-
|
|
7
|
-
import { t as VERSION } from "../cli/version-
|
|
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-
|
|
1
|
+
export { r as MCP_PROTOCOL_VERSION, i as answerLine, a as answerMessage, t as createMcp, n as defineTool } from "../mcp-BCP-kBjf.js";
|
package/dist/mcp/sdk/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
7
|
-
import { t as adapterBase } from "./adapter-base-
|
|
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-
|
|
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";
|
package/dist/next/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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";
|
package/dist/orpc/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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";
|
package/dist/otel/index.js
CHANGED
|
@@ -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-
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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-
|
|
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";
|
package/dist/powersync/index.js
CHANGED
|
@@ -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-
|
|
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";
|
package/dist/preset/index.js
CHANGED
|
@@ -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-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
-
import { N as groupEntries, _ as defaultPreset, a as presetOf, c as presetSpec, f as resolvePreset, i as presetConfig, s as presetOfSpec } from "./config-
|
|
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-
|
|
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-
|
|
3
|
-
import { I as PRESET_CATALOG, b as appDefaultError, d as appIdentifierError, f as appNameLengthError, p as appReservedColumns, x as isAppDefault } from "./instances-
|
|
4
|
-
import { i as resolveConfig } from "./config-
|
|
5
|
-
import { Ft as SQL_MODULES, ot as renderBlocks, q as moduleLayout } from "./sql-
|
|
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;
|
package/dist/react/index.d.ts
CHANGED
|
@@ -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-
|
|
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 };
|
package/dist/react/index.js
CHANGED
|
@@ -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-
|
|
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";
|
package/dist/react/server.d.ts
CHANGED
|
@@ -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-
|
|
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";
|
package/dist/react/server.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as PermissionsProvider, u as can } from "../react-
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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
|