@uniformdev/uniform-nuxt 18.33.0 → 18.34.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 CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "nuxt-uniform",
3
3
  "configKey": "uniform",
4
- "version": "18.33.0"
4
+ "version": "18.34.0"
5
5
  }
@@ -1,9 +1,10 @@
1
1
  import {
2
2
  CANVAS_DRAFT_STATE,
3
3
  CANVAS_PUBLISHED_STATE,
4
- CanvasClient
4
+ CanvasClient,
5
+ IN_CONTEXT_EDITOR_QUERY_STRING_PARAM
5
6
  } from "@uniformdev/canvas";
6
- import { Composition, SlotContent, useCompositionEventEffect } from "@uniformdev/canvas-vue";
7
+ import { UniformComposition, UniformSlot, useCompositionEventEffect } from "@uniformdev/canvas-vue";
7
8
  import {
8
9
  Context,
9
10
  CookieTransitionDataStore,
@@ -107,8 +108,8 @@ function setupContext(nuxtApp) {
107
108
  }
108
109
  function setupCanvas(nuxtApp) {
109
110
  const options = getModuleOptions();
110
- nuxtApp.vueApp.component("Composition", Composition);
111
- nuxtApp.vueApp.component("SlotContent", SlotContent);
111
+ nuxtApp.vueApp.component("Composition", UniformComposition);
112
+ nuxtApp.vueApp.component("SlotContent", UniformSlot);
112
113
  const uniformCanvasClient = new CanvasClient({
113
114
  projectId: options.projectId,
114
115
  apiKey: options.readOnlyApiKey,
@@ -152,7 +153,11 @@ function setupPreview(nuxtApp) {
152
153
  return next({
153
154
  path: to.path,
154
155
  hash: to.hash,
155
- query: { ...to.query, preview: "true" }
156
+ query: {
157
+ ...to.query,
158
+ preview: "true",
159
+ [IN_CONTEXT_EDITOR_QUERY_STRING_PARAM]: from.query[IN_CONTEXT_EDITOR_QUERY_STRING_PARAM]
160
+ }
156
161
  });
157
162
  }
158
163
  return next();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/uniform-nuxt",
3
- "version": "18.33.0",
3
+ "version": "18.34.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -36,10 +36,10 @@
36
36
  "@nuxt/module-builder": "0.2.1",
37
37
  "@nuxt/schema": "3.2.0",
38
38
  "@nuxtjs/eslint-config-typescript": "12.0.0",
39
- "@uniformdev/canvas": "18.33.0",
40
- "@uniformdev/canvas-vue": "18.33.0",
41
- "@uniformdev/context": "18.33.0",
42
- "@uniformdev/context-vue": "18.33.0",
39
+ "@uniformdev/canvas": "18.34.0",
40
+ "@uniformdev/canvas-vue": "18.34.0",
41
+ "@uniformdev/context": "18.34.0",
42
+ "@uniformdev/context-vue": "18.34.0",
43
43
  "esbuild": "0.17.14",
44
44
  "eslint": "^8.31.0",
45
45
  "nuxt": "3.2.0",
@@ -49,5 +49,5 @@
49
49
  "publishConfig": {
50
50
  "access": "public"
51
51
  },
52
- "gitHead": "2b6ca533e90fa133ead4ce435f4a3f19e30b21c1"
52
+ "gitHead": "563ab31aa4308102c988bea321028e73efe836d0"
53
53
  }