@sit-onyx/nuxt 1.0.0-beta.9 → 1.0.0-beta.90
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.d.mts +1 -1
- package/dist/module.d.ts +1 -1
- package/dist/module.json +2 -2
- package/dist/module.mjs +2 -1
- package/dist/runtime/plugins/onyx.js +12 -11
- package/package.json +14 -11
package/dist/module.d.mts
CHANGED
|
@@ -32,6 +32,6 @@ interface ModuleOptions {
|
|
|
32
32
|
registerLocales?: Record<string, "en-US" | "de-DE" | "ko-KR">;
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
35
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
36
36
|
|
|
37
37
|
export { type ModuleOptions, _default as default };
|
package/dist/module.d.ts
CHANGED
|
@@ -32,6 +32,6 @@ interface ModuleOptions {
|
|
|
32
32
|
registerLocales?: Record<string, "en-US" | "de-DE" | "ko-KR">;
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
|
|
35
|
+
declare const _default: _nuxt_schema.NuxtModule<ModuleOptions, ModuleOptions, false>;
|
|
36
36
|
|
|
37
37
|
export { type ModuleOptions, _default as default };
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -15,7 +15,8 @@ const module = defineNuxtModule({
|
|
|
15
15
|
nuxt.options.postcss.plugins.cssnano = { preset: ["default", { calc: false }] };
|
|
16
16
|
nuxt.options.css.push("sit-onyx/style.css");
|
|
17
17
|
if (options.theme !== "onyx") {
|
|
18
|
-
nuxt.options.css.push(`sit-onyx/themes/${options.theme}.css`);
|
|
18
|
+
nuxt.options.css.push(`sit-onyx/themes/${options.theme}-light.css`);
|
|
19
|
+
nuxt.options.css.push(`sit-onyx/themes/${options.theme}-dark.css`);
|
|
19
20
|
}
|
|
20
21
|
if (!options.disableGlobalStyles) {
|
|
21
22
|
nuxt.options.css.push("sit-onyx/global.css");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { computed
|
|
1
|
+
import { computed } from "#imports";
|
|
2
2
|
import { defineNuxtPlugin, useNuxtApp } from "nuxt/app";
|
|
3
|
-
import {
|
|
3
|
+
import { createOnyx } from "sit-onyx";
|
|
4
4
|
export default defineNuxtPlugin({
|
|
5
5
|
name: "onyx:plugin",
|
|
6
6
|
// @ts-ignore: dependency comes from @nuxtjs/i18n
|
|
@@ -12,14 +12,15 @@ export default defineNuxtPlugin({
|
|
|
12
12
|
return translate(`onyx.${key}`, placeholders?.n ?? 1, { named: placeholders });
|
|
13
13
|
};
|
|
14
14
|
});
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
app.vueApp.use(
|
|
16
|
+
createOnyx({
|
|
17
|
+
i18n: {
|
|
18
|
+
locale: computed(
|
|
19
|
+
() => localeProperties.value.language ?? localeProperties.value.iso ?? "en-US"
|
|
20
|
+
),
|
|
21
|
+
t
|
|
22
|
+
}
|
|
23
|
+
})
|
|
24
|
+
);
|
|
24
25
|
}
|
|
25
26
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sit-onyx/nuxt",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.90",
|
|
4
4
|
"description": "A Nuxt module to easily integrate onyx into Nuxt projects",
|
|
5
5
|
"author": "Schwarz IT KG",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -26,22 +26,25 @@
|
|
|
26
26
|
"dist"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@nuxt/kit": "^3.
|
|
29
|
+
"@nuxt/kit": "^3.14.1592"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@nuxt/devtools": "^1.3
|
|
33
|
-
"@nuxt/module-builder": "~0.8.
|
|
34
|
-
"@nuxt/schema": "^3.
|
|
35
|
-
"@nuxt/test-utils": "^3.
|
|
36
|
-
"@nuxtjs/i18n": "^
|
|
37
|
-
"nuxt": "^3.
|
|
38
|
-
"
|
|
32
|
+
"@nuxt/devtools": "^1.6.3",
|
|
33
|
+
"@nuxt/module-builder": "~0.8.4",
|
|
34
|
+
"@nuxt/schema": "^3.14.1592",
|
|
35
|
+
"@nuxt/test-utils": "^3.15.1",
|
|
36
|
+
"@nuxtjs/i18n": "^9.1.1",
|
|
37
|
+
"nuxt": "^3.14.1592",
|
|
38
|
+
"typescript": "5.6.3",
|
|
39
|
+
"vue-i18n": "^10.0.5",
|
|
40
|
+
"sit-onyx": "^1.0.0-beta.89"
|
|
39
41
|
},
|
|
40
42
|
"peerDependencies": {
|
|
41
|
-
"sit-onyx": "^1.0.0-beta.
|
|
43
|
+
"sit-onyx": "^1.0.0-beta.89"
|
|
42
44
|
},
|
|
43
45
|
"scripts": {
|
|
44
|
-
"dev": "
|
|
46
|
+
"dev": "turbo run turbo:dev --filter=.",
|
|
47
|
+
"turbo:dev": "nuxi dev playground",
|
|
45
48
|
"dev:build": "nuxi build playground",
|
|
46
49
|
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
47
50
|
"build": "pnpm run dev:prepare && nuxt-module-build build",
|