@uniformdev/uniform-nuxt 18.7.0 → 18.8.0
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 +1 -1
- package/dist/runtime/plugin.mjs +8 -4
- package/package.json +9 -9
package/dist/module.json
CHANGED
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({
|
package/dist/runtime/plugin.mjs
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "18.8.0",
|
|
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.
|
|
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.
|
|
36
|
+
"@nuxt/schema": "3.2.0",
|
|
37
37
|
"@nuxtjs/eslint-config-typescript": "12.0.0",
|
|
38
|
-
"@uniformdev/canvas": "18.
|
|
39
|
-
"@uniformdev/canvas-vue": "18.
|
|
40
|
-
"@uniformdev/context": "18.
|
|
41
|
-
"@uniformdev/context-vue": "18.
|
|
38
|
+
"@uniformdev/canvas": "18.8.0",
|
|
39
|
+
"@uniformdev/canvas-vue": "18.8.0",
|
|
40
|
+
"@uniformdev/context": "18.8.0",
|
|
41
|
+
"@uniformdev/context-vue": "18.8.0",
|
|
42
42
|
"esbuild": "0.17.5",
|
|
43
43
|
"eslint": "^8.31.0",
|
|
44
|
-
"nuxt": "3.
|
|
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": "
|
|
51
|
+
"gitHead": "d1a61982946fad3479b8c1d5fdc89c241a5893df"
|
|
52
52
|
}
|