@verikit/vue 0.23.1 → 0.23.7

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/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # @verikit/vue
2
+
3
+ Vue UI bindings for VeriKit resource workflows.
4
+
5
+ See the [VeriKit documentation](https://verikit.dev) for setup and usage.
@@ -13,9 +13,8 @@ export interface UseResourceFormOptions<TRecord> {
13
13
  /** Called with the created or updated record after a successful submit. */
14
14
  onSuccess?: (record: TRecord) => void;
15
15
  /**
16
- * Called when the create/update mutation itself fails (e.g. a network error
17
- * or a permission-denied response) — not for client-side field validation
18
- * failures, which surface via `fieldErrors`/`submitError` instead.
16
+ * Called when the create/update mutation fails, not for client-side
17
+ * validation errors, which surface through `fieldErrors`/`submitError`.
19
18
  */
20
19
  onError?: (error: Error) => void;
21
20
  }
@@ -27,13 +26,9 @@ export interface UseResourceFormResult<TRecord = Record<string, unknown>> extend
27
26
  submitError: ComputedRef<Error | null>;
28
27
  }
29
28
  /**
30
- * The single resource-backed form composable: takes a `Resource` (or its
31
- * `ResourceSchema`) and wires `useVerikitForm` straight to its create/update
32
- * mutation composables its own name is the one source of truth for both the
33
- * fields and which resource to submit to, so there's no separate `name`
34
- * string or raw field map to keep in sync with it. Submitting infers,
35
- * validates, and sends the request in one step. Creates when no `id` option
36
- * is given, updates that record's id otherwise.
29
+ * Resource-backed form composable that uses the resource as the source of
30
+ * truth for fields, validation, and create/update mutations. Creates when no
31
+ * `id` is provided; otherwise updates the specified record.
37
32
  */
38
33
  export declare function useResourceForm<TRecord = Record<string, unknown>>(resource: UseResourceFormSource, { id, defaultValues, onSuccess, onError, }?: UseResourceFormOptions<TRecord>): UseResourceFormResult<TRecord>;
39
34
  //# sourceMappingURL=use-resource-form.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-resource-form.d.ts","sourceRoot":"","sources":["../../src/query/use-resource-form.ts"],"names":[],"mappings":"AAAA,OAAO,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../form/use-verikit-form.js";
3
3
  import { useCreateResource, useUpdateResource, } from "./use-resource-mutations.js";
4
4
  /**
5
- * The single resource-backed form composable: takes a `Resource` (or its
6
- * `ResourceSchema`) and wires `useVerikitForm` straight to its create/update
7
- * mutation composables its own name is the one source of truth for both the
8
- * fields and which resource to submit to, so there's no separate `name`
9
- * string or raw field map to keep in sync with it. Submitting infers,
10
- * validates, and sends the request in one step. Creates when no `id` option
11
- * is given, updates that record's id otherwise.
5
+ * Resource-backed form composable that uses the resource as the source of
6
+ * truth for fields, validation, and create/update mutations. Creates when no
7
+ * `id` is provided; otherwise updates the specified record.
12
8
  */
13
9
  export function useResourceForm(resource, { id, defaultValues, onSuccess, onError, } = {}) {
14
10
  const create = useCreateResource(resource.name, { onError });
@@ -11,9 +11,9 @@ declare const resourceTableFeatures: {
11
11
  globalFilteringFeature: import("@tanstack/vue-table").TableFeature;
12
12
  };
13
13
  type ResourceTableFeatures = typeof resourceTableFeatures;
14
- /** A resource builder or its finalized schema — either carries its own name. */
14
+ /** A resource builder or its finalized schema either carries its own name. */
15
15
  export type UseResourceTableSource = Resource | ResourceSchema;
16
- /** Active per-field filters, keyed by field name — the same shape `ListParams.filters` sends to the server. */
16
+ /** Active per-field filters, keyed by field name the same shape `ListParams.filters` sends to the server. */
17
17
  export type ResourceTableFilters = NonNullable<ListParams["filters"]>;
18
18
  /** Options for creating a resource-backed table. */
19
19
  export interface UseResourceTableOptions {
@@ -22,7 +22,7 @@ export interface UseResourceTableOptions {
22
22
  }
23
23
  /** State and helpers returned by {@link useResourceTable}. */
24
24
  export interface UseResourceTableResult<TRecord extends RowData = Record<string, unknown>> {
25
- /** The TanStack Table instance — headless: render your own markup from it. */
25
+ /** The TanStack Table instance headless: render your own markup from it. */
26
26
  table: Table<ResourceTableFeatures, TRecord>;
27
27
  /** Whether the current page's initial fetch is still in flight. */
28
28
  isLoading: UseQueryReturnType<ListResponse<TRecord>, Error>["isLoading"];
@@ -1 +1 @@
1
- {"version":3,"file":"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// reactive update: calling a `useQuery`-backed composable there instead
54
- // of once here creates a brand-new query (with its own watchers) on
55
- // every render, each one immediately reporting state and triggering
56
- // another render — an infinite loop.
52
+ // Create the query composable once outside the render closure; calling it
53
+ // during render creates new watchers on every update, causing an infinite loop.
57
54
  const relationshipName = props.relationship.name ?? "";
58
55
  const relationshipQuery = useResourceRelationship(props.relationship.resource, relationshipName, { pageSize: RELATIONSHIP_PICKER_PAGE_SIZE }, { enabled: relationshipName.length > 0 });
59
56
  return () => {
@@ -9,7 +9,7 @@ export declare function dateTimeFilterValue(value: string): string | undefined;
9
9
  export declare function dateTimeLocalInputValue(value: string): string;
10
10
  /** Props for {@link ResourceTableFilterPanel}. */
11
11
  export interface ResourceTableFilterPanelProps {
12
- /** Field schemas to render controls for — only entries with `filterable: true` produce a control. */
12
+ /** Field schemas to render controls for only entries with `filterable: true` produce a control. */
13
13
  fields: Record<string, FieldSchema>;
14
14
  /** The table's current active filters. */
15
15
  filters: ResourceTableFilters;
@@ -17,10 +17,8 @@ export interface ResourceTableFilterPanelProps {
17
17
  onFiltersChange: (filters: ResourceTableFilters) => void;
18
18
  }
19
19
  /**
20
- * A grid of per-field filter controls — one per `filterable` field, typed to
21
- * that field's `fieldType` (boolean toggle, select dropdown, number/date
22
- * range, or exact-match text) — that read and write `ResourceTable`'s active
23
- * filters. Renders nothing if no field is `filterable`.
20
+ * Renders field-appropriate controls for each filterable field and syncs
21
+ * them with the ResourceTable's active filters.
24
22
  */
25
23
  export declare const ResourceTableFilterPanel: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
26
24
  fields: {
@@ -1 +1 @@
1
- {"version":3,"file":"resource-table-filters.d.ts","sourceRoot":"","sources":["../../src/resource/resource-table-filters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAsB,KAAK,QAAQ,EAAE,KAAK,KAAK,EAAE,MAAM,KAAK,CAAC;AAWpE,OAAO,KAAK,EA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EAAE,MAAM,gCAAgC,CAAC;AAI3E,yDAAyD;AACzD,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,GAClC,WAAW,EAAE,CAEf;AAID,yFAAyF;AACzF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKrE;AAED,6EAA6E;AAC7E,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAM7D;AA0QD,kDAAkD;AAClD,MAAM,WAAW,6BAA6B;IAC5C,oGAAoG;IACpG,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACpC,0CAA0C;IAC1C,OAAO,EAAE,oBAAoB,CAAC;IAC9B,8EAA8E;IAC9E,eAAe,EAAE,CAAC,OAAO,EAAE,oBAAoB,KAAK,IAAI,CAAC;CAC1D;AAED;;;GAGG;AACH,eAAO,MAAM,wBAAwB;;cAIf,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;;;;cAG5B,QAAQ,CAAC,oBAAoB,CAAC;;;;cAErC,QAAQ,CAAC,CAAC,OAAO,EAAE,oBAAoB,KAAK,IAAI,CAAC;;;;;;;cALnD,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;;;;cAG5B,QAAQ,CAAC,oBAAoB,CAAC;;;;cAErC,QAAQ,CAAC,CAAC,OAAO,EAAE,oBAAoB,KAAK,IAAI,CAAC;;;iGA8DvE,CAAC"}
@@ -225,10 +225,8 @@ function filterControl(field, value, onChange) {
225
225
  return h(TextFilterControl, { field, value, onChange });
226
226
  }
227
227
  /**
228
- * A grid of per-field filter controls — one per `filterable` field, typed to
229
- * that field's `fieldType` (boolean toggle, select dropdown, number/date
230
- * range, or exact-match text) — that read and write `ResourceTable`'s active
231
- * filters. Renders nothing if no field is `filterable`.
228
+ * Renders field-appropriate controls for each filterable field and syncs
229
+ * them with the ResourceTable's active filters.
232
230
  */
233
231
  export const ResourceTableFilterPanel = defineComponent({
234
232
  name: "ResourceTableFilterPanel",
@@ -1 +1 @@
1
- {"version":3,"file":"resource-table.d.ts","sourceRoot":"","sources":["../../src/resource/resource-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAC;AAY9E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAgBnD,OAAO,EAEL,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC5B,MAAM,gCAAgC,CAAC;AAuBxC,uCAAuC;AACvC,MAAM,WAAW,kBAAkB,CACjC,OAAO,SAAS,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CACjD,SAAQ,uBAAuB;IAC/B,oFAAoF;IACpF,QAAQ,EAAE,sBAAsB,CAAC;IACjC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,UAAU,CAAC;IAChD,4DAA4D;IAC5D,iBAAiB,CAAC,EAAE,CAClB,OAAO,EAAE,OAAO,EAAE,EAClB,cAAc,EAAE,MAAM,IAAI,KACvB,UAAU,CAAC;IAChB,0FAA0F;IAC1F,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAuCD;;;GAGG;AACH,eAAO,MAAM,aAAa;;cAIJ,QAAQ,CAAC,sBAAsB,CAAC;;;;cAIhC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;;;cAK1B,QAAQ,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;;;;cAI7C,QAAQ,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;;;;cAI1C,QAAQ,CAAC,UAAU,CAAC;;;;cAI7B,QAAQ,C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qCD;;;GAGG;AACH,eAAO,MAAM,aAAa;;cAIJ,QAAQ,CAAC,sBAAsB,CAAC;;;;cAIhC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;;;cAK1B,QAAQ,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;;;;cAI7C,QAAQ,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;;;;cAI1C,QAAQ,CAAC,UAAU,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;;cArB5B,QAAQ,CAAC,sBAAsB,CAAC;;;;cAIhC,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;;;cAK1B,QAAQ,CAAC,kBAAkB,CAAC,eAAe,CAAC,CAAC;;;;cAI7C,QAAQ,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAC;;;;cAI1C,QAAQ,CAAC,UAAU,CAAC;;;;cAI7B,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;;;;;;;yDA5EX,UAAU;6EAI7B,MAAM,IAAI,KACvB,UAAU;4EA+0Bf,CAAC"}
@@ -20,9 +20,7 @@ function isPermissionDenied(error) {
20
20
  "status" in error &&
21
21
  error.status === 403);
22
22
  }
23
- // `useResourceTable` always sets `header` to `field.label` (a required,
24
- // non-empty string field on every `FieldSchema`), so this always reads a
25
- // plain string back — no function-header or missing-header case to guard.
23
+ // `header` is always the field's required string label.
26
24
  function headerText(header) {
27
25
  return header.column.columnDef.header;
28
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verikit/vue",
3
- "version": "0.23.1",
3
+ "version": "0.23.7",
4
4
  "description": "Vue UI bindings for Verikit resource workflows.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,6 +16,11 @@
16
16
  ],
17
17
  "author": "Chidi E <hi@ceeso.dev>",
18
18
  "license": "MIT",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/verikit-project/verikit",
22
+ "directory": "packages/vue"
23
+ },
19
24
  "engines": {
20
25
  "node": ">=24"
21
26
  },
@@ -56,11 +61,11 @@
56
61
  "lucide-vue-next": "^1.0.0",
57
62
  "reka-ui": "^2.10.3",
58
63
  "tailwind-merge": "^3.6.0",
59
- "@verikit/client": "0.23.1",
60
- "@verikit/core": "0.23.1",
61
- "@verikit/runtime": "0.23.1",
62
- "@verikit/ui-core": "0.23.1",
63
- "@verikit/theme": "0.23.1"
64
+ "@verikit/client": "0.23.7",
65
+ "@verikit/core": "0.23.7",
66
+ "@verikit/runtime": "0.23.7",
67
+ "@verikit/theme": "0.23.7",
68
+ "@verikit/ui-core": "0.23.7"
64
69
  },
65
70
  "devDependencies": {
66
71
  "@types/jsdom": "^28.0.3",