@stonecrop/nuxt 0.56.2 → 0.56.4

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.56.2",
4
+ "version": "0.56.4",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "1.0.3",
7
7
  "unbuild": "unknown"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/nuxt",
3
- "version": "0.56.2",
3
+ "version": "0.56.4",
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.56.2",
64
- "@stonecrop/atable": "0.56.2",
65
- "@stonecrop/code-editor": "0.56.2",
66
- "@stonecrop/desktop": "0.56.2",
67
- "@stonecrop/graphql-client": "0.56.2",
68
- "@stonecrop/graphql-middleware": "0.56.2",
69
- "@stonecrop/node-editor": "0.56.2",
70
- "@stonecrop/schema": "0.56.2",
71
- "@stonecrop/casl-middleware": "0.56.2",
72
- "@stonecrop/stonecrop": "0.56.2",
73
- "@stonecrop/themes": "0.56.2",
74
- "@stonecrop/nuxt-grafserv": "0.56.2"
63
+ "@stonecrop/aform": "0.56.4",
64
+ "@stonecrop/atable": "0.56.4",
65
+ "@stonecrop/code-editor": "0.56.4",
66
+ "@stonecrop/desktop": "0.56.4",
67
+ "@stonecrop/casl-middleware": "0.56.4",
68
+ "@stonecrop/graphql-client": "0.56.4",
69
+ "@stonecrop/graphql-middleware": "0.56.4",
70
+ "@stonecrop/node-editor": "0.56.4",
71
+ "@stonecrop/schema": "0.56.4",
72
+ "@stonecrop/stonecrop": "0.56.4",
73
+ "@stonecrop/themes": "0.56.4",
74
+ "@stonecrop/nuxt-grafserv": "0.56.4"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@eslint/js": "^10.0.1",
@@ -99,11 +99,11 @@
99
99
  "nuxt-graphql-middleware": "^5.4.0",
100
100
  "playwright": "^1.63.0",
101
101
  "postgraphile": "^5.0.3",
102
- "rolldown": "1.2.14",
102
+ "rolldown": "1.2.15",
103
103
  "temporal-polyfill": "^1.0.5",
104
104
  "typescript": "^6.0.3",
105
105
  "typescript-eslint": "^8.62.1",
106
- "vite": "npm:@voidzero-dev/vite-plus-core@1.3.0",
106
+ "vite": "npm:@voidzero-dev/vite-plus-core@1.4.0",
107
107
  "vitest": "5.0.5",
108
108
  "vue": "^3.5.33",
109
109
  "vue-router": "^5.0.6",
@@ -181,6 +181,11 @@ export const actionHandlers: Record<string, Record<string, ActionHandler>> = {
181
181
  // Resolvers (Grafast plan format)
182
182
  // ============================================================
183
183
 
184
+ // One action's reply: the dispatcher's outcome, and the record as `stonecropRecord` returns it.
185
+ // Declared because, left to infer it, `loadOne` settles on the shape of an early failure, which
186
+ // carries no `record`, and rejects the replies that do.
187
+ type ActionReply = { success: boolean; data: unknown; error: string | null; record?: Project | Task | null }
188
+
184
189
  export const resolvers = {
185
190
  Query: {
186
191
  plans: {
@@ -258,7 +263,7 @@ export const resolvers = {
258
263
  object({ doctype: $doctype, action: $action, actionArgs: $actionArgs }),
259
264
  async (specs: readonly any[]) => {
260
265
  return Promise.all(
261
- specs.map(async spec => {
266
+ specs.map(async (spec): Promise<ActionReply> => {
262
267
  const meta = getMeta(spec.doctype)
263
268
  if (!meta) return { success: false, data: null, error: `Unknown doctype: ${spec.doctype}` }
264
269