@uniformdev/uniform-nuxt 18.6.0 → 18.7.1-alpha.11

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": "nuxt-uniform",
3
3
  "configKey": "uniform",
4
- "version": "18.6.0"
4
+ "version": "18.7.1-alpha.11+7cf93b7e6"
5
5
  }
package/dist/module.mjs CHANGED
@@ -24,7 +24,7 @@ const module = defineNuxtModule({
24
24
  throw new Error("uniform-nuxt: The module options 'projectId' and 'readOnlyApiKey' are required.");
25
25
  }
26
26
  optimizeDeps(["rfdc"]);
27
- nuxt.options.runtimeConfig.public["$uniform"] = { ...options };
27
+ nuxt.options.runtimeConfig.public["$uniform"] = { ...options, manifest: { ...options.manifest } };
28
28
  if (options.uniformContextPath) {
29
29
  const resolvedUserContextPath = resolveConfigFilePath(nuxt, options.uniformContextPath);
30
30
  addTemplate({
@@ -121,17 +121,21 @@ function setupPreview(nuxtApp) {
121
121
  log("uniform-nuxt: \u{1F575}\uFE0F Entering preview mode");
122
122
  preview = {
123
123
  slug: route.query.slug,
124
- compositionId: route.query.id
124
+ compositionId: route.query.id,
125
+ path: route.query.path,
126
+ locale: route.query.locale
125
127
  };
126
128
  }
127
129
  nuxtApp.hook("app:beforeMount", () => {
128
- if (preview && route.query.slug) {
130
+ if (preview && (route.query.slug || route.query.path)) {
129
131
  router.push({
130
- path: preview?.slug,
132
+ path: preview?.path ?? preview?.slug,
131
133
  query: {
132
134
  ...route.query,
133
135
  slug: void 0,
134
- id: void 0
136
+ id: void 0,
137
+ path: void 0,
138
+ locale: void 0
135
139
  }
136
140
  });
137
141
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/uniform-nuxt",
3
- "version": "18.6.0",
3
+ "version": "18.7.1-alpha.11+7cf93b7e6",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -22,7 +22,7 @@
22
22
  "format": "prettier --write \"src/**/*.{js,ts,tsx}\""
23
23
  },
24
24
  "dependencies": {
25
- "@nuxt/kit": "3.0.0",
25
+ "@nuxt/kit": "3.2.0",
26
26
  "vue-demi": "^0.13.11"
27
27
  },
28
28
  "peerDependencies": {
@@ -33,20 +33,20 @@
33
33
  },
34
34
  "devDependencies": {
35
35
  "@nuxt/module-builder": "0.2.1",
36
- "@nuxt/schema": "3.0.0",
36
+ "@nuxt/schema": "3.2.0",
37
37
  "@nuxtjs/eslint-config-typescript": "12.0.0",
38
- "@uniformdev/canvas": "18.6.0",
39
- "@uniformdev/canvas-vue": "18.6.0",
40
- "@uniformdev/context": "18.6.0",
41
- "@uniformdev/context-vue": "18.6.0",
42
- "esbuild": "0.17.4",
38
+ "@uniformdev/canvas": "18.7.1-alpha.11+7cf93b7e6",
39
+ "@uniformdev/canvas-vue": "18.7.1-alpha.11+7cf93b7e6",
40
+ "@uniformdev/context": "18.7.1-alpha.11+7cf93b7e6",
41
+ "@uniformdev/context-vue": "18.7.1-alpha.11+7cf93b7e6",
42
+ "esbuild": "0.17.5",
43
43
  "eslint": "^8.31.0",
44
- "nuxt": "3.0.0",
44
+ "nuxt": "3.2.0",
45
45
  "vue": "3.2.45",
46
46
  "vue-router": "4.1.6"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
- "gitHead": "2e2b4d179180900386f8b3ceb30d4a854a7e22fd"
51
+ "gitHead": "7cf93b7e693ac5a98f87d00f0028c43be13733da"
52
52
  }