@stonecrop/nuxt 0.41.1 → 0.43.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.
- package/README.md +1 -1
- package/dist/module.json +1 -1
- package/package.json +17 -17
- package/templates/resolvers.ts +2 -6
package/README.md
CHANGED
|
@@ -125,7 +125,7 @@ export default defineNuxtPlugin(() => {
|
|
|
125
125
|
})
|
|
126
126
|
```
|
|
127
127
|
|
|
128
|
-
This wires record loading to your GraphQL (or any other) backend. It is the seam Desktop reads through as well. There is no fallback: without a registered client, `getRecord` and `getRecords` throw naming `setClient`, and Desktop skips the read and
|
|
128
|
+
This wires record loading to your GraphQL (or any other) backend. It is the seam Desktop reads through as well. There is no fallback: without a registered client, `getRecord` and `getRecords` throw naming `setClient`, and Desktop skips the read, rendering empty lists and leaving a record on its loading state.
|
|
129
129
|
|
|
130
130
|
### Use the Stonecrop Composable
|
|
131
131
|
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/nuxt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.43.0",
|
|
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/
|
|
64
|
-
"@stonecrop/atable": "0.
|
|
65
|
-
"@stonecrop/
|
|
66
|
-
"@stonecrop/
|
|
67
|
-
"@stonecrop/
|
|
68
|
-
"@stonecrop/
|
|
69
|
-
"@stonecrop/
|
|
70
|
-
"@stonecrop/
|
|
71
|
-
"@stonecrop/
|
|
72
|
-
"@stonecrop/stonecrop": "0.
|
|
73
|
-
"@stonecrop/themes": "0.
|
|
74
|
-
"@stonecrop/
|
|
63
|
+
"@stonecrop/aform": "0.43.0",
|
|
64
|
+
"@stonecrop/atable": "0.43.0",
|
|
65
|
+
"@stonecrop/casl-middleware": "0.43.0",
|
|
66
|
+
"@stonecrop/graphql-client": "0.43.0",
|
|
67
|
+
"@stonecrop/graphql-middleware": "0.43.0",
|
|
68
|
+
"@stonecrop/node-editor": "0.43.0",
|
|
69
|
+
"@stonecrop/schema": "0.43.0",
|
|
70
|
+
"@stonecrop/code-editor": "0.43.0",
|
|
71
|
+
"@stonecrop/nuxt-grafserv": "0.43.0",
|
|
72
|
+
"@stonecrop/stonecrop": "0.43.0",
|
|
73
|
+
"@stonecrop/themes": "0.43.0",
|
|
74
|
+
"@stonecrop/desktop": "0.43.0"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@eslint/js": "^10.0.1",
|
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
"@nuxt/eslint-config": "^1.16.0",
|
|
82
82
|
"@nuxt/module-builder": "^1.0.2",
|
|
83
83
|
"@nuxt/schema": "^4.4.8",
|
|
84
|
-
"@nuxt/test-utils": "^4.
|
|
84
|
+
"@nuxt/test-utils": "^4.3.1",
|
|
85
85
|
"@types/prompts": "^2.4.9",
|
|
86
86
|
"@vitejs/plugin-vue": "^6.0.6",
|
|
87
|
-
"@vitest/browser-playwright": "
|
|
88
|
-
"@vitest/coverage-istanbul": "
|
|
87
|
+
"@vitest/browser-playwright": "5.0.1",
|
|
88
|
+
"@vitest/coverage-istanbul": "5.0.1",
|
|
89
89
|
"@vue/test-utils": "^2.4.10",
|
|
90
90
|
"baseline-browser-mapping": "latest",
|
|
91
91
|
"browserslist": "latest",
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
"typescript": "^6.0.3",
|
|
104
104
|
"typescript-eslint": "^8.62.1",
|
|
105
105
|
"vite": "^8.2.2",
|
|
106
|
-
"vitest": "
|
|
106
|
+
"vitest": "5.0.1",
|
|
107
107
|
"vue": "^3.5.33",
|
|
108
108
|
"vue-router": "^5.0.6",
|
|
109
109
|
"vue-tsc": "^3.3.6"
|
package/templates/resolvers.ts
CHANGED
|
@@ -314,13 +314,9 @@ export const resolvers = {
|
|
|
314
314
|
return updated as Record<string, unknown>
|
|
315
315
|
}
|
|
316
316
|
|
|
317
|
+
// A new record carries its key only when a user typed one, a natural key.
|
|
317
318
|
const declared = patch[lookupField]
|
|
318
|
-
const identity =
|
|
319
|
-
typeof declared === 'string' && declared !== ''
|
|
320
|
-
? declared
|
|
321
|
-
: typeof declared === 'number'
|
|
322
|
-
? String(declared)
|
|
323
|
-
: nextId(d)
|
|
319
|
+
const identity = declared === undefined ? nextId(d) : String(declared)
|
|
324
320
|
const defaults =
|
|
325
321
|
d === 'project'
|
|
326
322
|
? { status: 'Active', description: '' }
|