@dyrected/nuxt 2.5.60 → 2.5.61

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.59"
4
+ "version": "2.5.60"
5
5
  }
package/dist/module.mjs CHANGED
@@ -78,7 +78,8 @@ const module = defineNuxtModule({
78
78
  { name: "useDyrectedAuth", from: resolver.resolve("./runtime/composables/useDyrectedAuth") },
79
79
  { name: "useLivePreview", from: "@dyrected/vue" },
80
80
  { name: "useDyPath", from: "@dyrected/vue" },
81
- { name: "provideDyPath", from: "@dyrected/vue" }
81
+ { name: "provideDyPath", from: "@dyrected/vue" },
82
+ { name: "getPreviewToken", from: "@dyrected/vue" }
82
83
  ]);
83
84
  const runtimeConfig = {
84
85
  ...options,
@@ -183,9 +184,10 @@ export default defineNitroPlugin(async (nitroApp) => {
183
184
  const base = listener.url.replace(/\/$/, "");
184
185
  const adminSlug = options.adminPath || "cms";
185
186
  const apiSlug = options.apiBase || "/dyrected";
187
+ const apiUrl = apiSlug.startsWith("http") ? apiSlug : `${base}${apiSlug}`;
186
188
  console.log(`
187
189
  \u279C Dyrected admin: ${base}/${adminSlug}`);
188
- console.log(` \u279C Dyrected API: ${base}${apiSlug}
190
+ console.log(` \u279C Dyrected API: ${apiUrl}
189
191
  `);
190
192
  });
191
193
  if (options.db) {
@@ -1,7 +1,6 @@
1
1
  <template>
2
- <DyrectedAdmin
3
- :config="config"
4
- :basename="basename || '/cms-admin'"
2
+ <DyrectedAdmin
3
+ :config="config"
5
4
  :components="components"
6
5
  />
7
6
  </template>
@@ -12,11 +11,6 @@ import { useRuntimeConfig } from "#imports";
12
11
  import { DyrectedAdmin } from "@dyrected/vue";
13
12
 
14
13
  defineProps<{
15
- /**
16
- * The base path where the admin is mounted.
17
- * @default "/cms-admin"
18
- */
19
- basename?: string;
20
14
  /**
21
15
  * Custom components to inject into the Admin UI.
22
16
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dyrected/nuxt",
3
- "version": "2.5.60",
3
+ "version": "2.5.61",
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/vue": "2.5.60",
24
- "@dyrected/admin": "2.5.60",
25
- "@dyrected/sdk": "2.5.60",
26
- "@dyrected/core": "2.5.60"
23
+ "@dyrected/sdk": "2.5.61",
24
+ "@dyrected/core": "2.5.61",
25
+ "@dyrected/vue": "2.5.61",
26
+ "@dyrected/admin": "2.5.61"
27
27
  },
28
28
  "peerDependencies": {
29
29
  "nuxt": "^3.0.0",