@stonecrop/nuxt 0.58.1 → 0.58.2
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/module.mjs +5 -0
- package/dist/runtime/plugin.js +0 -2
- package/package.json +13 -13
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { realpathSync, existsSync } from 'node:fs';
|
|
|
2
2
|
import { readdir, readFile } from 'node:fs/promises';
|
|
3
3
|
import { createRequire } from 'node:module';
|
|
4
4
|
import { dirname, join, extname } from 'node:path';
|
|
5
|
+
import { fileURLToPath } from 'node:url';
|
|
5
6
|
import { createResolver, defineNuxtModule, useLogger, resolvePath, addLayout, extendPages, addServerHandler, addComponent, addPlugin, addImportsDir } from '@nuxt/kit';
|
|
6
7
|
|
|
7
8
|
function declaredRoutePages(doctypes, componentPath) {
|
|
@@ -281,6 +282,10 @@ const module$1 = defineNuxtModule({
|
|
|
281
282
|
logger.error("Error adding plugin:", pluginError);
|
|
282
283
|
throw new Error(`[@stonecrop/nuxt] Failed to add plugin at ${pluginPath}`, { cause: pluginError });
|
|
283
284
|
}
|
|
285
|
+
const nodeEditorPath = fileURLToPath(import.meta.resolve("@stonecrop/node-editor"));
|
|
286
|
+
for (const name of ["NodeEditor", "StateEditor"]) {
|
|
287
|
+
addComponent({ name, export: name, filePath: nodeEditorPath, global: true });
|
|
288
|
+
}
|
|
284
289
|
addImportsDir(resolve("runtime/app/composables"));
|
|
285
290
|
}
|
|
286
291
|
});
|
package/dist/runtime/plugin.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { install as AForm } from "@stonecrop/aform";
|
|
2
2
|
import { install as CodeEditor } from "@stonecrop/code-editor";
|
|
3
|
-
import { install as NodeEditor } from "@stonecrop/node-editor";
|
|
4
3
|
import StonecropPlugin from "@stonecrop/stonecrop";
|
|
5
4
|
import { createPinia } from "pinia";
|
|
6
5
|
import { defineNuxtPlugin, useRouter } from "nuxt/app";
|
|
@@ -16,7 +15,6 @@ export default defineNuxtPlugin({
|
|
|
16
15
|
app.use(AForm);
|
|
17
16
|
const { monacoPath } = nuxt.$config.public.stonecrop;
|
|
18
17
|
app.use(CodeEditor, { vsPath: `${nuxt.$config.app.baseURL.replace(/\/+$/, "")}${monacoPath}/vs` });
|
|
19
|
-
app.use(NodeEditor);
|
|
20
18
|
app.use(StonecropPlugin, { router });
|
|
21
19
|
const registry = app.config.globalProperties.$registry;
|
|
22
20
|
const stonecrop = app.config.globalProperties.$stonecrop;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stonecrop/nuxt",
|
|
3
|
-
"version": "0.58.
|
|
3
|
+
"version": "0.58.2",
|
|
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/
|
|
65
|
-
"@stonecrop/casl-middleware": "0.58.
|
|
66
|
-
"@stonecrop/
|
|
67
|
-
"@stonecrop/
|
|
68
|
-
"@stonecrop/graphql-middleware": "0.58.
|
|
69
|
-
"@stonecrop/
|
|
70
|
-
"@stonecrop/
|
|
71
|
-
"@stonecrop/nuxt-grafserv": "0.58.
|
|
72
|
-
"@stonecrop/
|
|
73
|
-
"@stonecrop/
|
|
74
|
-
"@stonecrop/
|
|
63
|
+
"@stonecrop/atable": "0.58.2",
|
|
64
|
+
"@stonecrop/aform": "0.58.2",
|
|
65
|
+
"@stonecrop/casl-middleware": "0.58.2",
|
|
66
|
+
"@stonecrop/code-editor": "0.58.2",
|
|
67
|
+
"@stonecrop/desktop": "0.58.2",
|
|
68
|
+
"@stonecrop/graphql-middleware": "0.58.2",
|
|
69
|
+
"@stonecrop/graphql-client": "0.58.2",
|
|
70
|
+
"@stonecrop/node-editor": "0.58.2",
|
|
71
|
+
"@stonecrop/nuxt-grafserv": "0.58.2",
|
|
72
|
+
"@stonecrop/schema": "0.58.2",
|
|
73
|
+
"@stonecrop/stonecrop": "0.58.2",
|
|
74
|
+
"@stonecrop/themes": "0.58.2"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@eslint/js": "^10.0.1",
|