@stonecrop/nuxt 0.44.0 → 0.45.1

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/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stonecrop/nuxt",
3
3
  "configKey": "stonecrop",
4
- "version": "0.44.0",
4
+ "version": "0.45.1",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.3",
7
7
  "unbuild": "unknown"
@@ -25,11 +25,11 @@ import type { Doctype, Registry, RouteContext, Stonecrop } from '@stonecrop/ston
25
25
  *
26
26
  * ## RouteContext vs DoctypeContext
27
27
  *
28
- * - **RouteContext** (`{ path, segments }`): Raw URL routing context. Used by the router
29
- * layer to identify "where we are" in the application (e.g., `/plan/123` → segments `['plan', '123']`).
28
+ * - **RouteContext** (`{ path, segments }`): Raw URL routing context, "where we are" in the
29
+ * application (e.g., `/plan/123` → segments `['plan', '123']`).
30
30
  *
31
- * - **DoctypeContext** (`{ doctype, recordId? }`): Semantic doctype context. Used by the
32
- * data layer to identify "what we're working with" (e.g., `{ doctype: 'Plan', recordId: '123' }`).
31
+ * - **DoctypeContext** (`{ doctype, recordId? }`): Semantic doctype context, "what we're working
32
+ * with" (e.g., `{ doctype: 'Plan', recordId: '123' }`).
33
33
  *
34
34
  * Your `setMeta` implementation (configured via `useStonecropSetup()`) bridges these:
35
35
  * extract doctype/recordId from the route segments and pass `DoctypeContext` to your data client.
@@ -121,8 +121,8 @@ export declare function useStonecropRegistry(): {
121
121
  slug?: string;
122
122
  }, action: string, args?: unknown[]): Promise<ActionDispatchResult>;
123
123
  /**
124
- * Set the `getMeta` function on the Registry.
125
- * Called by `useStonecrop({ doctype: 'slug' })` to lazy-load that doctype's metadata.
124
+ * Set the `getMeta` function on the Registry, which loads a doctype's metadata the first
125
+ * time the doctype is asked for by slug.
126
126
  *
127
127
  * You must bridge `RouteContext` → `DoctypeContext`:
128
128
  * - Extract doctype name from `segments` (e.g., `segments[0]`)
@@ -98,8 +98,8 @@ export function useStonecropRegistry() {
98
98
  return stonecrop.dispatchAction(meta, action, args);
99
99
  },
100
100
  /**
101
- * Set the `getMeta` function on the Registry.
102
- * Called by `useStonecrop({ doctype: 'slug' })` to lazy-load that doctype's metadata.
101
+ * Set the `getMeta` function on the Registry, which loads a doctype's metadata the first
102
+ * time the doctype is asked for by slug.
103
103
  *
104
104
  * You must bridge `RouteContext` → `DoctypeContext`:
105
105
  * - Extract doctype name from `segments` (e.g., `segments[0]`)
@@ -71,8 +71,8 @@ export declare function useStonecropSetup(): {
71
71
  */
72
72
  registerClient(client: DataClient): void;
73
73
  /**
74
- * Set the `getMeta` function on the Registry.
75
- * Called by `useStonecrop({ doctype: 'slug' })` to lazy-load that doctype's metadata.
74
+ * Set the `getMeta` function on the Registry, which loads a doctype's metadata the first
75
+ * time the doctype is asked for by slug.
76
76
  *
77
77
  * You must bridge `RouteContext` → `DoctypeContext`:
78
78
  * - Extract doctype name from `segments` (e.g., `segments[0]`)
@@ -46,8 +46,8 @@ export function useStonecropSetup() {
46
46
  stonecrop.setClient(client);
47
47
  },
48
48
  /**
49
- * Set the `getMeta` function on the Registry.
50
- * Called by `useStonecrop({ doctype: 'slug' })` to lazy-load that doctype's metadata.
49
+ * Set the `getMeta` function on the Registry, which loads a doctype's metadata the first
50
+ * time the doctype is asked for by slug.
51
51
  *
52
52
  * You must bridge `RouteContext` → `DoctypeContext`:
53
53
  * - Extract doctype name from `segments` (e.g., `segments[0]`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/nuxt",
3
- "version": "0.44.0",
3
+ "version": "0.45.1",
4
4
  "description": "Nuxt module for Stonecrop",
5
5
  "keywords": [
6
6
  "nuxt",
@@ -60,18 +60,18 @@
60
60
  "pathe": "^2.0.3",
61
61
  "pinia": "^3.0.4",
62
62
  "prompts": "^2.4.2",
63
- "@stonecrop/aform": "0.44.0",
64
- "@stonecrop/desktop": "0.44.0",
65
- "@stonecrop/casl-middleware": "0.44.0",
66
- "@stonecrop/code-editor": "0.44.0",
67
- "@stonecrop/graphql-client": "0.44.0",
68
- "@stonecrop/atable": "0.44.0",
69
- "@stonecrop/graphql-middleware": "0.44.0",
70
- "@stonecrop/nuxt-grafserv": "0.44.0",
71
- "@stonecrop/schema": "0.44.0",
72
- "@stonecrop/stonecrop": "0.44.0",
73
- "@stonecrop/node-editor": "0.44.0",
74
- "@stonecrop/themes": "0.44.0"
63
+ "@stonecrop/aform": "0.45.1",
64
+ "@stonecrop/atable": "0.45.1",
65
+ "@stonecrop/casl-middleware": "0.45.1",
66
+ "@stonecrop/code-editor": "0.45.1",
67
+ "@stonecrop/desktop": "0.45.1",
68
+ "@stonecrop/graphql-client": "0.45.1",
69
+ "@stonecrop/graphql-middleware": "0.45.1",
70
+ "@stonecrop/node-editor": "0.45.1",
71
+ "@stonecrop/nuxt-grafserv": "0.45.1",
72
+ "@stonecrop/schema": "0.45.1",
73
+ "@stonecrop/stonecrop": "0.45.1",
74
+ "@stonecrop/themes": "0.45.1"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@eslint/js": "^10.0.1",