@stonecrop/nuxt 0.45.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 +1 -1
- package/dist/runtime/app/composables/useStonecropRegistry.d.ts +6 -6
- package/dist/runtime/app/composables/useStonecropRegistry.js +2 -2
- package/dist/runtime/app/composables/useStonecropSetup.d.ts +2 -2
- package/dist/runtime/app/composables/useStonecropSetup.js +2 -2
- package/package.json +13 -13
package/dist/module.json
CHANGED
|
@@ -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
|
|
29
|
-
*
|
|
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
|
|
32
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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.45.
|
|
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.45.
|
|
64
|
-
"@stonecrop/atable": "0.45.
|
|
65
|
-
"@stonecrop/
|
|
66
|
-
"@stonecrop/
|
|
67
|
-
"@stonecrop/
|
|
68
|
-
"@stonecrop/
|
|
69
|
-
"@stonecrop/
|
|
70
|
-
"@stonecrop/
|
|
71
|
-
"@stonecrop/
|
|
72
|
-
"@stonecrop/
|
|
73
|
-
"@stonecrop/
|
|
74
|
-
"@stonecrop/
|
|
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",
|