@dyrected/nuxt 2.5.52 → 2.5.55
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 +19 -0
- package/package.json +5 -5
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -51,6 +51,11 @@ const module = defineNuxtModule({
|
|
|
51
51
|
filePath: "@dyrected/vue",
|
|
52
52
|
export: "Blocks"
|
|
53
53
|
});
|
|
54
|
+
addComponent({
|
|
55
|
+
name: "DyrectedIcon",
|
|
56
|
+
filePath: "@dyrected/vue",
|
|
57
|
+
export: "DyrectedIcon"
|
|
58
|
+
});
|
|
54
59
|
addImports([
|
|
55
60
|
{ name: "useDyrected", from: resolver.resolve("./runtime/composables/useDyrected") },
|
|
56
61
|
{ name: "useDyrectedClient", from: resolver.resolve("./runtime/composables/useDyrected") },
|
|
@@ -193,6 +198,20 @@ export default defineNitroPlugin(async (nitroApp) => {
|
|
|
193
198
|
siteId: process.env.NUXT_PUBLIC_DYRECTED_SITE_ID || options.siteId || "default"
|
|
194
199
|
};
|
|
195
200
|
if (nuxt.options.vite) {
|
|
201
|
+
nuxt.options.vite.build = nuxt.options.vite.build || {};
|
|
202
|
+
nuxt.options.vite.build.rollupOptions = nuxt.options.vite.build.rollupOptions || {};
|
|
203
|
+
const originalOnwarn = nuxt.options.vite.build.rollupOptions.onwarn;
|
|
204
|
+
nuxt.options.vite.build.rollupOptions.onwarn = function(warning, defaultHandler) {
|
|
205
|
+
if (warning.code === "MODULE_LEVEL_DIRECTIVE")
|
|
206
|
+
return;
|
|
207
|
+
if (warning.message?.includes("Sourcemap is likely to be incorrect"))
|
|
208
|
+
return;
|
|
209
|
+
if (originalOnwarn) {
|
|
210
|
+
originalOnwarn.call(this, warning, defaultHandler);
|
|
211
|
+
} else {
|
|
212
|
+
defaultHandler(warning);
|
|
213
|
+
}
|
|
214
|
+
};
|
|
196
215
|
const adminRequire = createRequire(_require.resolve("@dyrected/admin"));
|
|
197
216
|
nuxt.options.vite.optimizeDeps = nuxt.options.vite.optimizeDeps || {};
|
|
198
217
|
nuxt.options.vite.optimizeDeps.include = nuxt.options.vite.optimizeDeps.include || [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dyrected/nuxt",
|
|
3
|
-
"version": "2.5.
|
|
3
|
+
"version": "2.5.55",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/module.mjs",
|
|
6
6
|
"types": "./dist/module.d.ts",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"h3": "^1.15.0",
|
|
20
20
|
"react": "^18.0.0 || ^19.0.0",
|
|
21
21
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
22
|
-
"@dyrected/core": "2.5.
|
|
23
|
-
"@dyrected/sdk": "2.5.
|
|
24
|
-
"@dyrected/admin": "2.5.
|
|
25
|
-
"@dyrected/vue": "2.5.
|
|
22
|
+
"@dyrected/core": "2.5.55",
|
|
23
|
+
"@dyrected/sdk": "2.5.55",
|
|
24
|
+
"@dyrected/admin": "2.5.55",
|
|
25
|
+
"@dyrected/vue": "2.5.55"
|
|
26
26
|
},
|
|
27
27
|
"peerDependencies": {
|
|
28
28
|
"nuxt": "^3.0.0",
|