@dyrected/nuxt 2.6.1 → 2.6.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@dyrected/nuxt",
3
3
  "configKey": "dyrected",
4
- "version": "2.5.65"
4
+ "version": "2.6.2"
5
5
  }
@@ -2,6 +2,9 @@
2
2
  <DyrectedAdmin
3
3
  :config="config"
4
4
  :components="components"
5
+ :theme="theme"
6
+ :system-theme="systemTheme"
7
+ :on-theme-change="onThemeChange"
5
8
  />
6
9
  </template>
7
10
 
@@ -9,12 +12,19 @@
9
12
  // @ts-ignore
10
13
  import { useRuntimeConfig } from "#imports";
11
14
  import { DyrectedAdmin } from "@dyrected/vue";
15
+ import type { AdminThemePreference, ResolvedAdminTheme } from "@dyrected/admin";
12
16
 
13
17
  defineProps<{
14
18
  /**
15
19
  * Custom components to inject into the Admin UI.
16
20
  */
17
21
  components?: any;
22
+ /** Preferred theme for the embedded admin. */
23
+ theme?: AdminThemePreference;
24
+ /** Current resolved system theme for the embedded admin. */
25
+ systemTheme?: ResolvedAdminTheme;
26
+ /** Callback fired when the embedded admin changes its preferred theme. */
27
+ onThemeChange?: (theme: AdminThemePreference) => void;
18
28
  }>();
19
29
 
20
30
  const runtimeConfig = useRuntimeConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyrected/nuxt",
3
- "version": "2.6.1",
3
+ "version": "2.6.2",
4
4
  "type": "module",
5
5
  "main": "./dist/module.mjs",
6
6
  "types": "./dist/module.d.ts",
@@ -20,10 +20,10 @@
20
20
  "h3": "^1.15.0",
21
21
  "react": "^18.0.0 || ^19.0.0",
22
22
  "react-dom": "^18.0.0 || ^19.0.0",
23
- "@dyrected/core": "2.6.1",
24
- "@dyrected/admin": "2.6.1",
25
- "@dyrected/vue": "2.6.1",
26
- "@dyrected/sdk": "2.6.1"
23
+ "@dyrected/core": "2.6.2",
24
+ "@dyrected/sdk": "2.6.2",
25
+ "@dyrected/admin": "2.6.2",
26
+ "@dyrected/vue": "2.6.2"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "nuxt": "^3.0.0",