@uniformdev/uniform-nuxt 16.0.1-nuxt.159 → 16.0.1-nuxt.166

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": "16.0.1-nuxt.159+47b981cde"
4
+ "version": "16.0.1-nuxt.166+ce56da6c5"
5
5
  }
@@ -8,7 +8,7 @@ import {
8
8
  useState,
9
9
  useCookie
10
10
  } from "#app";
11
- import { watch } from "vue-demi";
11
+ import { watch, toRaw } from "vue-demi";
12
12
  import {
13
13
  CanvasClient,
14
14
  CANVAS_DRAFT_STATE,
@@ -17,6 +17,7 @@ import {
17
17
  import {
18
18
  Context,
19
19
  CookieTransitionDataStore,
20
+ enableContextDevTools,
20
21
  UNIFORM_DEFAULT_COOKIE_NAME
21
22
  } from "@uniformdev/context";
22
23
  import { Composition, SlotContent, useCompositionEventEffect } from "@uniformdev/canvas-vue";
@@ -52,12 +53,14 @@ function setupContext(nuxtApp) {
52
53
  let uniformContext;
53
54
  if (options.manifest) {
54
55
  console.log("uniform-nuxt: \u{1F4DC} found a manifest, will initialize Context");
56
+ const manifestAsSimpleObject = toRaw(options.manifest);
55
57
  uniformContext = new Context({
56
58
  defaultConsent: true,
57
- manifest: options.manifest,
59
+ manifest: manifestAsSimpleObject,
58
60
  transitionStore: new CookieTransitionDataStore({
59
61
  serverCookieValue: uniformCookie
60
- })
62
+ }),
63
+ plugins: [enableContextDevTools()]
61
64
  });
62
65
  }
63
66
  provideUniformContext({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/uniform-nuxt",
3
- "version": "16.0.1-nuxt.159+47b981cde",
3
+ "version": "16.0.1-nuxt.166+ce56da6c5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -30,10 +30,10 @@
30
30
  "devDependencies": {
31
31
  "@nuxt/module-builder": "0.1.7",
32
32
  "@nuxtjs/eslint-config-typescript": "10.0.0",
33
- "@uniformdev/canvas": "^16.0.1-nuxt.159+47b981cde",
34
- "@uniformdev/canvas-vue": "^16.0.1-nuxt.159+47b981cde",
35
- "@uniformdev/context": "^16.0.1-nuxt.159+47b981cde",
36
- "@uniformdev/context-vue": "^16.0.1-nuxt.159+47b981cde",
33
+ "@uniformdev/canvas": "^16.0.1-nuxt.166+ce56da6c5",
34
+ "@uniformdev/canvas-vue": "^16.0.1-nuxt.166+ce56da6c5",
35
+ "@uniformdev/context": "^16.0.1-nuxt.166+ce56da6c5",
36
+ "@uniformdev/context-vue": "^16.0.1-nuxt.166+ce56da6c5",
37
37
  "esbuild": "0.13.15",
38
38
  "eslint": "latest",
39
39
  "nuxt": "^3.0.0-rc.4"
@@ -41,5 +41,5 @@
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "47b981cde5f19beb1b6a85b0cd6acf98e388b599"
44
+ "gitHead": "ce56da6c5608c89d33524abf60993a68855afcd2"
45
45
  }