permdock 0.23.0 → 0.24.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.
@@ -128,7 +128,14 @@ type BlockApprovalTenantPolicy = {
128
128
  readonly mode: "confirm" | "authorize";
129
129
  readonly steps: readonly {
130
130
  readonly approvers: BlockApprovalApprovers;
131
- readonly required: number | "all";
131
+ readonly required: number;
132
+ /** Every holder decides; `required` is 0 then. */
133
+ readonly all?: boolean;
134
+ /**
135
+ * An interval after which `escalateTo` may decide; PermDock has no
136
+ * counterpart.
137
+ */
138
+ readonly escalateAfter?: string;
132
139
  }[];
133
140
  readonly selfApproval: boolean;
134
141
  readonly expiresIn?: string;
@@ -139,15 +146,18 @@ type BlockApprovalTenantPolicy = {
139
146
  * `better-supabase/blocks/approvals`.
140
147
  */
141
148
  type BlockApprovalsClient<I extends BlockInstant> = {
142
- readonly request: (subject: {
143
- readonly type: string;
144
- readonly id: string;
145
- }, input: {
146
- readonly action: string;
147
- readonly reason?: string;
148
- readonly payload?: Readonly<Record<string, unknown>>;
149
- readonly fingerprint?: string;
150
- readonly tenantless?: boolean;
149
+ readonly request: (args: {
150
+ readonly subject: {
151
+ readonly type: string;
152
+ readonly id: string;
153
+ };
154
+ readonly input: {
155
+ readonly action: string;
156
+ readonly reason?: string;
157
+ readonly payload?: Readonly<Record<string, unknown>>;
158
+ readonly fingerprint?: string;
159
+ readonly tenantless?: boolean;
160
+ };
151
161
  }) => BlockResult<BlockApprovalRecord<I>>;
152
162
  readonly list: (options?: {
153
163
  readonly status?: BlockStatus | null;
@@ -155,11 +165,16 @@ type BlockApprovalsClient<I extends BlockInstant> = {
155
165
  readonly before?: I;
156
166
  readonly tenantless?: boolean;
157
167
  }) => BlockResult<readonly BlockApprovalRecord<I>[]>;
158
- readonly consume: (id: string, fingerprint?: string) => BlockResult<BlockApprovalRecord<I>>;
168
+ readonly consume: (args: {
169
+ readonly id: string;
170
+ readonly fingerprint?: string;
171
+ }) => BlockResult<BlockApprovalRecord<I>>;
159
172
  readonly approve?: BlockDecide<I>;
160
173
  readonly reject?: BlockDecide<I>;
161
174
  };
162
- type BlockDecide<I extends BlockInstant> = (id: string, comment?: string, options?: {
175
+ type BlockDecide<I extends BlockInstant> = (args: {
176
+ readonly id: string;
177
+ readonly comment?: string;
163
178
  readonly decidedBy?: string;
164
179
  }) => BlockResult<BlockApprovalRecord<I>>;
165
180
  /** The call `blockApprovalPolicySource` makes on the approvals block. */
@@ -724,14 +739,10 @@ type AuthorizationProviderOptions = {
724
739
  readonly personas?: readonly ProviderPersona[];
725
740
  /**
726
741
  * Names `permdock_subject()` as `functions.subject`, so a bootstrap seeds the
727
- * provider subject. Needs a better-supabase release that knows the field (see
728
- * the compatibility table); older conformance kits reject it.
742
+ * provider subject.
729
743
  */
730
744
  readonly subject?: boolean;
731
- /**
732
- * Fills `platformRoles` from `rls.roles`. Needs a better-supabase release
733
- * whose config schema knows the field; older ones reject it.
734
- */
745
+ /** Fills `platformRoles` from `rls.roles`. */
735
746
  readonly platformRoles?: boolean;
736
747
  };
737
748
  /** One `personas` entry of better-supabase's `AuthorizationProvider`. */
@@ -1171,7 +1182,9 @@ type ShareLinkRow = {
1171
1182
  };
1172
1183
  /** better-supabase's `ShareLinks`, or anything with its `resolve`. */
1173
1184
  type ShareLinkResolver = {
1174
- resolve: (token: string) => PromiseLike<{
1185
+ resolve: (input: {
1186
+ readonly token: string;
1187
+ }) => PromiseLike<{
1175
1188
  readonly ok: true;
1176
1189
  readonly data: ShareLinkRow | null;
1177
1190
  } | {
@@ -268,15 +268,18 @@ function blockApprovalStore(approvals, options = {}) {
268
268
  name: "better-supabase-approvals",
269
269
  async create(request) {
270
270
  await unwrap(approvals.request({
271
- type: request.resource.type,
272
- id: request.resource.id ?? request.id
273
- }, compact({
274
- action: actionOf(request.permission),
275
- reason: request.detail,
276
- payload: { permdock: request },
277
- fingerprint: request.fingerprint,
278
- tenantless: tenantless && decisionTenant(request.subject, request.membership) === void 0 ? true : void 0
279
- })), "request");
271
+ subject: {
272
+ type: request.resource.type,
273
+ id: request.resource.id ?? request.id
274
+ },
275
+ input: compact({
276
+ action: actionOf(request.permission),
277
+ reason: request.detail,
278
+ payload: { permdock: request },
279
+ fingerprint: request.fingerprint,
280
+ tenantless: tenantless && decisionTenant(request.subject, request.membership) === void 0 ? true : void 0
281
+ })
282
+ }), "request");
280
283
  },
281
284
  async get(token) {
282
285
  return (await byToken(token))?.request ?? null;
@@ -291,7 +294,11 @@ function blockApprovalStore(approvals, options = {}) {
291
294
  if (found === void 0) throw new ApprovalError("approval-not-found", "approval was not found");
292
295
  applyApprovalVerdict(found.request, verdict);
293
296
  const by = verdict.by.principal?.id;
294
- const next = requestOf(await unwrap(decide(found.record.id, verdict.note, compact({ decidedBy: by })), verdict.status === "approved" ? "approve" : "reject"));
297
+ const next = requestOf(await unwrap(decide(compact({
298
+ id: found.record.id,
299
+ comment: verdict.note,
300
+ decidedBy: by
301
+ })), verdict.status === "approved" ? "approve" : "reject"));
295
302
  if (next === null) throw new ApprovalError("approval-not-found", "approval was not found");
296
303
  return next;
297
304
  },
@@ -312,7 +319,10 @@ function blockApprovalStore(approvals, options = {}) {
312
319
  async consume(token) {
313
320
  const found = await byToken(token);
314
321
  if (found === void 0) return null;
315
- const consumed = await approvals.consume(found.record.id, found.request.fingerprint);
322
+ const consumed = await approvals.consume(compact({
323
+ id: found.record.id,
324
+ fingerprint: found.request.fingerprint
325
+ }));
316
326
  return consumed.ok ? requestOf(consumed.data) : null;
317
327
  }
318
328
  });
@@ -362,9 +372,10 @@ function stageApprovers(approvers, roleScope) {
362
372
  };
363
373
  }
364
374
  function quorumOf(step) {
365
- if (step.required !== "all") return step.required;
375
+ if (step.escalateAfter !== void 0) throw new TypeError("PermDock: an approval policy step with escalateAfter is not supported; escalation is decided by the block");
376
+ if (step.all !== true) return step.required;
366
377
  const { users = [], permission, role, team, manager } = step.approvers;
367
- if (users.length === 0 || permission !== void 0 || role !== void 0 || team !== void 0 || manager === true) throw new TypeError("PermDock: an approval policy step with required \"all\" needs users and no other approvers, since the block counts other holders when a request is filed");
378
+ if (users.length === 0 || permission !== void 0 || role !== void 0 || team !== void 0 || manager === true) throw new TypeError("PermDock: an approval policy step with `all` needs users and no other approvers, since the block counts other holders when a request is filed");
368
379
  return users.length;
369
380
  }
370
381
  const NUMERIC = /^-?\d+(?:\.\d+)?$/u;
@@ -2002,12 +2013,10 @@ function claimsOf(request) {
2002
2013
  * used only when it names the claims' user and carries a version.
2003
2014
  */
2004
2015
  function seedOf(runtime, claims) {
2005
- if (!isRecord(runtime) || !isRecord(runtime["seed"]) || !isRecord(claims)) return;
2006
- const { userId, version, subject } = runtime["seed"];
2007
- return typeof userId === "string" && userId !== "" && userId === claims["sub"] && typeof version === "number" && Number.isSafeInteger(version) && version >= 0 ? {
2008
- version,
2009
- subject
2010
- } : void 0;
2016
+ const seed = runtime?.seed;
2017
+ if (seed === void 0 || !isRecord(claims)) return;
2018
+ const { userId, version } = seed;
2019
+ return typeof userId === "string" && userId !== "" && userId === claims["sub"] && typeof version === "number" && Number.isSafeInteger(version) && version >= 0 ? seed : void 0;
2011
2020
  }
2012
2021
  const tenantOf = (request) => {
2013
2022
  const { tenant } = request.context;
@@ -2526,7 +2535,7 @@ async function subjectFromShareLink(token, options) {
2526
2535
  let row;
2527
2536
  let subject;
2528
2537
  try {
2529
- const resolved = await options.shareLinks.resolve(token);
2538
+ const resolved = await options.shareLinks.resolve({ token });
2530
2539
  if (!resolved.ok) return deny("source-threw", "resolve-failed");
2531
2540
  if (resolved.data === null) return deny("invalid-token", "share-link-unknown");
2532
2541
  const parsed = parseRow(resolved.data);
@@ -3,7 +3,7 @@ import { E as PermissionTree } from "../vocabulary-DeZvUaTw.js";
3
3
  import { o as OperationMap } from "../operations-BMPx7HyO.js";
4
4
  import { a as CatalogDocument, d as CatalogRole, f as CatalogScope, l as CatalogPermission, m as CatalogUsage, n as CatalogApproval, p as CatalogSupportAccess, r as CatalogBreakGlass, t as CatalogActivation, u as CatalogResource } from "../types-DAyp592k.js";
5
5
  import { a as pushedPolicy, i as parsePushedPolicy, n as PushedGrant, r as PushedPolicy, t as PUSHED_POLICY_SCHEMA } from "../pushed-policy-B2ZSpnRY.js";
6
- import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-JmB6unT6.js";
6
+ import { _ as RlsSuspension, a as GenKind, c as RlsActiveRow, d as RlsDialect, f as RlsFunctionMapping, g as RlsSuspendedScope, h as RlsSuspendedMembership, i as GenConfig, l as RlsApiKeys, m as RlsMemberships, n as CliIo, o as PermDockConfig, p as RlsMembershipTable, r as CollectConfig, t as CatalogConfig, u as RlsConfig, v as RlsTarget, y as RunResult } from "../types-B_s1oQaF.js";
7
7
  import { o as ResourceNameOf, r as PermissionKeyOf, s as ScopeNameOf, t as ActionNameOf } from "../type-helpers-fQdBvtU0.js";
8
8
  //#region src/cli/catalog-path.d.ts
9
9
  /**
@@ -1,4 +1,4 @@
1
- import { s as PermDockPluginOptions } from "../types-JmB6unT6.js";
1
+ import { s as PermDockPluginOptions } from "../types-B_s1oQaF.js";
2
2
  //#region src/cli/plugin.d.ts
3
3
  /** Any object: Next's `NextConfig` is an interface, so no index signature. */
4
4
  type NextConfigLike = object;
@@ -21,10 +21,13 @@ function useSnapshotPermDock() {
21
21
  const store = useStore();
22
22
  return useSyncExternalStore((listener) => store.subscribe(listener), () => store.get(), () => store.serverGet());
23
23
  }
24
+ const loaded = Object.assign(Promise.resolve(), {
25
+ status: "fulfilled",
26
+ value: void 0
27
+ });
24
28
  /** Suspends the nearest boundary until the store's evaluator has loaded. */
25
29
  function useEvaluator(store, needed = true) {
26
- const loading = needed ? store.loading() : void 0;
27
- if (loading !== void 0) use(loading);
30
+ if (needed) use(store.loading() ?? loaded);
28
31
  }
29
32
  /**
30
33
  * The instance with every check. It loads the evaluator on first use and
@@ -0,0 +1,12 @@
1
+ import { t as eagerEvaluator } from "./evaluator-eager-DvmrpdZt.js";
2
+ import { t as ProviderWith } from "./provider-with-DobrMx1N.js";
3
+ import { jsx } from "react/jsx-runtime";
4
+ //#region src/react/provider.tsx
5
+ function PermDockProvider(props) {
6
+ return /* @__PURE__ */ jsx(ProviderWith, {
7
+ ...props,
8
+ evaluator: eagerEvaluator
9
+ });
10
+ }
11
+ //#endregion
12
+ export { PermDockProvider as t };
@@ -4,26 +4,8 @@ import { t as adapterStore } from "./store-options-COLWAd1K.js";
4
4
  import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, r as PermDockSnapshotPromiseContext, t as useLiveOptions } from "./live-options-BBIT68le.js";
5
5
  import { useLayoutEffect, useMemo } from "react";
6
6
  import { jsx } from "react/jsx-runtime";
7
- //#region src/client/evaluator-lazy.ts
8
- const loaded = {};
9
- /**
10
- * Fetches the evaluator on first use. The `import()` is a chunk of its own: a
11
- * page that only reads `typeLevel` answers never downloads it.
12
- */
13
- function lazyEvaluator() {
14
- return {
15
- build: () => loaded.build,
16
- load: () => {
17
- loaded.promise ??= (async () => {
18
- loaded.build = (await import("./evaluator-mHAoYEkk.js")).buildInstance;
19
- })();
20
- return loaded.promise;
21
- }
22
- };
23
- }
24
- //#endregion
25
- //#region src/react/provider.tsx
26
- function PermDockProvider(props) {
7
+ //#region src/react/provider-with.tsx
8
+ function ProviderWith(props) {
27
9
  const promise = props.snapshotPromise ?? null;
28
10
  const suspend = props.suspend === true;
29
11
  const awaiting = promise !== null && !suspend;
@@ -44,7 +26,7 @@ function PermDockProvider(props) {
44
26
  onClear: live.onClear,
45
27
  approvalInterval: props.approvalInterval,
46
28
  refreshOn: props.refreshOn
47
- }), props.snapshot ?? emptySnapshot(), lazyEvaluator()), [
29
+ }), props.snapshot ?? emptySnapshot(), props.evaluator), [
48
30
  props.snapshot,
49
31
  props.endpoint,
50
32
  props.snapshotUrl,
@@ -84,4 +66,4 @@ function PermDockProvider(props) {
84
66
  });
85
67
  }
86
68
  //#endregion
87
- export { PermDockProvider as t };
69
+ export { ProviderWith as t };
@@ -3,6 +3,6 @@ import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
3
3
  import { n as describe } from "../describe-BZAlPHxT.js";
4
4
  import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
5
5
  import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-COLWAd1K.js";
6
- import { t as PermDockProvider } from "../provider-6mpRZO1E.js";
7
- import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-CdqR2-E2.js";
6
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-BWvZjjyt.js";
7
+ import { t as PermDockProvider } from "../provider-B085HEOf.js";
8
8
  export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -0,0 +1,12 @@
1
+ import { c as requiredPlans } from "../errors-CXxQwtbZ.js";
2
+ import { i as describe } from "../describe-CazEjtOH.js";
3
+ import { _ as SubjectView, a as ClientPermDock, b as ProtectedAction, c as GateMode, d as PermissionSet, f as PermissionState, g as RolesOptions, i as ApprovalState, l as GateView, m as ProtectedActionView, o as ClientStatus, p as ProtectedActionHandle, r as ApprovalHandle, s as FilterResult, u as PermissionOutcome, v as TenantView, y as ActionResult } from "../store-core-CDabEiO9.js";
4
+ import { a as broadcastChannelRefresh, c as visibilityRefresh, i as authzChangeRefresh, n as EventSourceRefreshOptions, o as eventSourceRefresh, r as RefreshTrigger, s as focusRefresh, t as AuthzChangeRefresh } from "../refresh-on-L9UOwATg.js";
5
+ import { n as PermDockProviderProps, r as ProtectedProps, t as PermDockDefaults } from "../types-BSGrzDPi.js";
6
+ import { t as approvalHeaders } from "../headers-B9jQxjtW.js";
7
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-DGuJNiMA.js";
8
+ import { ReactElement } from "react";
9
+ //#region src/react/lazy-provider.d.ts
10
+ export declare function PermDockProvider(props: PermDockProviderProps): ReactElement;
11
+ //#endregion
12
+ export { type ActionResult, type ApprovalHandle, type ApprovalState, type AuthzChangeRefresh, type ClientPermDock, type ClientStatus, type EventSourceRefreshOptions, type FilterResult, type GateMode, type GateView, type PermDockDefaults, type PermDockProviderProps, type PermissionOutcome, type PermissionSet, type PermissionState, Protected, type ProtectedAction, type ProtectedActionHandle, type ProtectedActionView, type ProtectedProps, type RefreshTrigger, type RolesOptions, type SubjectView, type TenantView, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -0,0 +1,36 @@
1
+ "use client";
2
+ import { r as requiredPlans } from "../problem-details-CLDgX1KV.js";
3
+ import { n as describe } from "../describe-BZAlPHxT.js";
4
+ import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
5
+ import { a as eventSourceRefresh, i as broadcastChannelRefresh, o as focusRefresh, r as authzChangeRefresh, s as visibilityRefresh } from "../store-options-COLWAd1K.js";
6
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, m as useRefreshOn, n as Protected, o as useDecision, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-BWvZjjyt.js";
7
+ import { t as ProviderWith } from "../provider-with-DobrMx1N.js";
8
+ import { jsx } from "react/jsx-runtime";
9
+ //#region src/client/evaluator-lazy.ts
10
+ const loaded = {};
11
+ /**
12
+ * Fetches the evaluator on first use. The `import()` is a chunk of its own: a
13
+ * page that only reads `typeLevel` answers never downloads it.
14
+ */
15
+ function lazyEvaluator() {
16
+ return {
17
+ build: () => loaded.build,
18
+ load: () => {
19
+ loaded.promise ??= (async () => {
20
+ loaded.build = (await import("../evaluator-mHAoYEkk.js")).buildInstance;
21
+ })();
22
+ return loaded.promise;
23
+ }
24
+ };
25
+ }
26
+ //#endregion
27
+ //#region src/react/lazy-provider.tsx
28
+ const evaluator = lazyEvaluator();
29
+ function PermDockProvider(props) {
30
+ return /* @__PURE__ */ jsx(ProviderWith, {
31
+ ...props,
32
+ evaluator
33
+ });
34
+ }
35
+ //#endregion
36
+ export { PermDockProvider, Protected, approvalHeaders, authzChangeRefresh, broadcastChannelRefresh, describe, eventSourceRefresh, focusRefresh, requiredPlans, useApproval, useAssignablePermissions, useAssignableRoles, useDecision, useDescribe, useFilter, useGate, useMemberships, usePermDock, usePermission, usePermissions, useProtectedAction, useRefreshOn, useRoles, useSubject, useTenant, visibilityRefresh };
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- export { t as PermDockProvider } from "../provider-6mpRZO1E.js";
2
+ export { t as PermDockProvider } from "../provider-B085HEOf.js";
@@ -16,7 +16,7 @@ import { r as approvalHeaders } from "../protected-action-OpOxtTsN.js";
16
16
  import { t as eagerEvaluator } from "../evaluator-eager-DvmrpdZt.js";
17
17
  import { a as eventSourceRefresh, c as isJws, n as storeOf, r as authzChangeRefresh, t as adapterStore } from "../store-options-COLWAd1K.js";
18
18
  import { a as PermDockUiContext, i as PermDockStoreContext, n as useKeyed, t as useLiveOptions } from "../live-options-BBIT68le.js";
19
- import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-CdqR2-E2.js";
19
+ import { _ as useTenant, a as useAssignableRoles, c as useFilter, d as usePermDock, f as usePermission, g as useSubject, h as useRoles, i as useAssignablePermissions, l as useGate, n as Protected, p as usePermissions, r as useApproval, s as useDescribe, t as useProtectedAction, u as useMemberships } from "../protected-action-BWvZjjyt.js";
20
20
  import { r as authzUserTopic, t as AUTHZ_EVENT } from "../authz-topic-Dbc-HDOS.js";
21
21
  import { useEffect, useMemo, useRef } from "react";
22
22
  import { jsx } from "react/jsx-runtime";
@@ -428,7 +428,7 @@ type RlsConfig = {
428
428
  * and writes `permdock.m.*` with `current_setting` and `set_config`.
429
429
  * `'better-supabase'` calls `better_supabase.memo_get` and `memo_set`, so the
430
430
  * memo shares better-supabase's one mechanism; the keys stay `permdock.m.*`.
431
- * Needs the `better_supabase` schema (better-supabase 0.52 or later).
431
+ * Needs the `better_supabase` schema.
432
432
  */
433
433
  readonly memo?: "permdock" | "better-supabase";
434
434
  /**
@@ -1,4 +1,4 @@
1
- import { s as PermDockPluginOptions } from "../types-JmB6unT6.js";
1
+ import { s as PermDockPluginOptions } from "../types-B_s1oQaF.js";
2
2
  import { createUnplugin } from "unplugin";
3
3
  //#region src/unplugin/index.d.ts
4
4
  type CreateUnplugin = typeof createUnplugin<PermDockPluginOptions | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "permdock",
3
- "version": "0.23.0",
3
+ "version": "0.24.0",
4
4
  "description": "Typed permissions for TypeScript apps, APIs, databases, and AI agents, with the permdock CLI and test runners.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -62,6 +62,10 @@
62
62
  "types": "./dist/react/index.d.ts",
63
63
  "default": "./dist/react/index.js"
64
64
  },
65
+ "./react/lazy": {
66
+ "types": "./dist/react/lazy.d.ts",
67
+ "default": "./dist/react/lazy.js"
68
+ },
65
69
  "./react-native": {
66
70
  "types": "./dist/react-native/index.d.ts",
67
71
  "default": "./dist/react-native/index.js"
@@ -358,8 +362,8 @@
358
362
  "ajv": "8.20.0",
359
363
  "astro": "7.4.0",
360
364
  "babel-plugin-react-compiler": "1.0.0",
361
- "better-supabase": "0.39.0",
362
- "better-supabase-floor": "npm:better-supabase@0.39.0",
365
+ "better-supabase": "0.53.0",
366
+ "better-supabase-floor": "npm:better-supabase@0.53.0",
363
367
  "chat": "4.42.0",
364
368
  "diff": "9.0.0",
365
369
  "drizzle-orm": "1.0.0-rc.5-5935859",
@@ -418,7 +422,7 @@
418
422
  "@trpc/server": ">=11",
419
423
  "ai": ">=5",
420
424
  "astro": ">=5",
421
- "better-supabase": ">=0.39.0",
425
+ "better-supabase": ">=0.53.0",
422
426
  "chat": ">=4",
423
427
  "drizzle-orm": ">=0.40 || >=1.0.0-rc.0",
424
428
  "elysia": ">=1",