@uniformdev/uniform-nuxt 17.3.0 → 17.3.1-alpha.146
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/runtime/plugin.mjs +4 -2
- package/dist/types.d.ts +1 -1
- package/package.json +8 -8
package/dist/module.json
CHANGED
package/dist/runtime/plugin.mjs
CHANGED
|
@@ -29,6 +29,8 @@ import {
|
|
|
29
29
|
onRouteChange,
|
|
30
30
|
useUniformContext
|
|
31
31
|
} from "@uniformdev/context-vue";
|
|
32
|
+
const log = process.env.NODE_ENV === "development" ? (...args) => console.log(...args) : () => {
|
|
33
|
+
};
|
|
32
34
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
33
35
|
if (nuxtApp.$uniformIsSetup) {
|
|
34
36
|
return;
|
|
@@ -64,7 +66,7 @@ function setupContext(nuxtApp) {
|
|
|
64
66
|
);
|
|
65
67
|
}
|
|
66
68
|
if (!uniformContext && options.manifest) {
|
|
67
|
-
|
|
69
|
+
log("uniform-nuxt: \u{1F4DC} found a manifest, will initialize Context");
|
|
68
70
|
const manifestAsSimpleObject = toRaw(options.manifest);
|
|
69
71
|
uniformContext = new Context({
|
|
70
72
|
defaultConsent: Boolean(options.defaultConsent),
|
|
@@ -116,7 +118,7 @@ function setupPreview() {
|
|
|
116
118
|
const route = useRoute();
|
|
117
119
|
let preview;
|
|
118
120
|
if (route.query.preview === "true") {
|
|
119
|
-
|
|
121
|
+
log("uniform-nuxt: \u{1F575}\uFE0F Entering preview mode");
|
|
120
122
|
preview = {
|
|
121
123
|
slug: route.query.slug,
|
|
122
124
|
compositionId: route.query.id
|
package/dist/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/uniform-nuxt",
|
|
3
|
-
"version": "17.3.
|
|
3
|
+
"version": "17.3.1-alpha.146+33ba1d5c7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
"@uniformdev/context-vue": ">15"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@nuxt/module-builder": "0.
|
|
35
|
+
"@nuxt/module-builder": "0.2.0",
|
|
36
36
|
"@nuxt/schema": "3.0.0-rc.9",
|
|
37
37
|
"@nuxtjs/eslint-config-typescript": "11.0.0",
|
|
38
|
-
"@uniformdev/canvas": "^17.3.
|
|
39
|
-
"@uniformdev/canvas-vue": "^17.3.
|
|
40
|
-
"@uniformdev/context": "^17.3.
|
|
41
|
-
"@uniformdev/context-vue": "^17.3.
|
|
42
|
-
"esbuild": "0.15.
|
|
38
|
+
"@uniformdev/canvas": "^17.3.1-alpha.146+33ba1d5c7",
|
|
39
|
+
"@uniformdev/canvas-vue": "^17.3.1-alpha.146+33ba1d5c7",
|
|
40
|
+
"@uniformdev/context": "^17.3.1-alpha.146+33ba1d5c7",
|
|
41
|
+
"@uniformdev/context-vue": "^17.3.1-alpha.146+33ba1d5c7",
|
|
42
|
+
"esbuild": "0.15.11",
|
|
43
43
|
"eslint": "latest",
|
|
44
44
|
"nuxt": "3.0.0-rc.9",
|
|
45
45
|
"vue": "3.2.39",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "33ba1d5c7cf8aca1d9d5c7c14e0d97c0805f6840"
|
|
52
52
|
}
|