@uniformdev/uniform-nuxt 16.0.1-nuxt.146 → 16.0.1-nuxt.149

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.d.ts CHANGED
@@ -6,6 +6,7 @@ interface ModuleOptions {
6
6
  readOnlyApiKey?: string;
7
7
  apiHost?: string;
8
8
  manifest?: ManifestV2;
9
+ outputType?: string;
9
10
  }
10
11
  declare const _default: _nuxt_schema.NuxtModule<ModuleOptions>;
11
12
 
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.146+04197b8d4"
4
+ "version": "16.0.1-nuxt.149+df378f9ac"
5
5
  }
package/dist/module.mjs CHANGED
@@ -11,7 +11,8 @@ const module = defineNuxtModule({
11
11
  projectId: void 0,
12
12
  readOnlyApiKey: void 0,
13
13
  apiHost: "https://uniform.app",
14
- manifest: void 0
14
+ manifest: void 0,
15
+ outputType: void 0
15
16
  },
16
17
  setup(options, nuxt) {
17
18
  nuxt.options.runtimeConfig.public["$uniform"] = { ...options };
@@ -1,5 +1,13 @@
1
- import { defineNuxtPlugin, useRoute, useRuntimeConfig, useHead } from "#app";
2
- import { watch, ref } from "vue";
1
+ import {
2
+ defineNuxtPlugin,
3
+ useRoute,
4
+ useRuntimeConfig,
5
+ useHead,
6
+ refreshNuxtData,
7
+ useAsyncData,
8
+ useState
9
+ } from "#app";
10
+ import { watch } from "vue-demi";
3
11
  import {
4
12
  CanvasClient,
5
13
  CANVAS_DRAFT_STATE,
@@ -16,7 +24,7 @@ export default defineNuxtPlugin((nuxtApp) => {
16
24
  if (nuxtApp.$uniformIsSetup) {
17
25
  return;
18
26
  }
19
- const currentCompositionId = ref();
27
+ const currentCompositionId = useState("currentCompositionId", () => "");
20
28
  const preview = setupPreview();
21
29
  const uniformContext = setupContext(nuxtApp);
22
30
  const uniformCanvasClient = setupCanvas(nuxtApp);
@@ -37,7 +45,7 @@ function setupContext(nuxtApp) {
37
45
  const options = useRuntimeConfig().public.$uniform;
38
46
  let uniformContext;
39
47
  if (options.manifest) {
40
- console.log("\u{1F4DC} found a manifest, will initialize Context");
48
+ console.log("uniform-nuxt: \u{1F4DC} found a manifest, will initialize Context");
41
49
  uniformContext = new Context({
42
50
  defaultConsent: true,
43
51
  manifest: options.manifest
@@ -69,7 +77,7 @@ function setupPreview() {
69
77
  const route = useRoute();
70
78
  let preview;
71
79
  if (route.query.preview === "true") {
72
- console.log("\u{1F575}\uFE0F Entering preview mode");
80
+ console.log("uniform-nuxt: \u{1F575}\uFE0F Entering preview mode");
73
81
  preview = {
74
82
  slug: route.query.slug
75
83
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/uniform-nuxt",
3
- "version": "16.0.1-nuxt.146+04197b8d4",
3
+ "version": "16.0.1-nuxt.149+df378f9ac",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {
@@ -30,15 +30,15 @@
30
30
  "devDependencies": {
31
31
  "@nuxt/module-builder": "latest",
32
32
  "@nuxtjs/eslint-config-typescript": "latest",
33
- "@uniformdev/canvas": "^16.0.1-nuxt.146+04197b8d4",
34
- "@uniformdev/canvas-vue": "^16.0.1-nuxt.146+04197b8d4",
35
- "@uniformdev/context": "^16.0.1-nuxt.146+04197b8d4",
36
- "@uniformdev/context-vue": "^16.0.1-nuxt.146+04197b8d4",
33
+ "@uniformdev/canvas": "^16.0.1-nuxt.149+df378f9ac",
34
+ "@uniformdev/canvas-vue": "^16.0.1-nuxt.149+df378f9ac",
35
+ "@uniformdev/context": "^16.0.1-nuxt.149+df378f9ac",
36
+ "@uniformdev/context-vue": "^16.0.1-nuxt.149+df378f9ac",
37
37
  "eslint": "latest",
38
38
  "nuxt": "^3.0.0-rc.4"
39
39
  },
40
40
  "publishConfig": {
41
41
  "access": "public"
42
42
  },
43
- "gitHead": "04197b8d483707f49939875b690b902f48f1ccfe"
43
+ "gitHead": "df378f9aceb4936066e0fbcaa76de8630f0fe654"
44
44
  }