@uniformdev/uniform-nuxt 18.28.0 → 18.30.1-alpha.15
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/README.md +1 -0
- package/dist/module.d.ts +5 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +1 -1
- package/dist/runtime/plugin.mjs +2 -1
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -59,6 +59,7 @@ These are the option you pass to the module in `nuxt.config.ts`.
|
|
|
59
59
|
| `manifest` | ManifestV2 | The Uniform Context manifest. This one is usually fetched right before the app is started using Uniform's CLI. Uniform Context won't be enabled if a manifest is missing. |
|
|
60
60
|
| `outputType` | 'standard' \| 'edge' | Set it to 'edge' when building the app for the edge using [NESI technology](https://docs.uniform.app/context/reference/netlify). Defaults to 'standard' |
|
|
61
61
|
| `apiHost` | string | The host to be used when calling the API. Defaults to `https://uniform.app` |
|
|
62
|
+
| `edgeApiHost` | string | The host to be used when calling the Edge API. Defaults to `https://uniform.global` |
|
|
62
63
|
| `defaultConsent` | boolean | Sets the default value of the user consent. Defaults to `false` |
|
|
63
64
|
| `enableContextDevTools` | boolean | Enables the [Context DevTools](https://docs.uniform.app/context/getting-started/browser-extension) plugin. Defaults to `true` |
|
|
64
65
|
| `uniformContextPath` | string | The path to a file that exports a Unifrom Context instance as default.<br>This will override the values of `manifest`, `defaultConsent` and `enableContextDevTools`. Useful for advanced use cases (such us using plugins other than the Context DevTools one). |
|
package/dist/module.d.ts
CHANGED
|
@@ -11,6 +11,11 @@ interface UniformModuleOptions {
|
|
|
11
11
|
* @default 'https://uniform.app'
|
|
12
12
|
*/
|
|
13
13
|
apiHost?: string;
|
|
14
|
+
/**
|
|
15
|
+
* The host to be used when calling the Edge API.
|
|
16
|
+
* @default 'https://uniform.global'
|
|
17
|
+
*/
|
|
18
|
+
edgeApiHost?: string;
|
|
14
19
|
/** The Uniform Context manifest. This one is usually fetched right before the app is started using Uniform's CLI. Uniform Context won't be enabled if a manifest is missing. */
|
|
15
20
|
manifest?: ManifestV2;
|
|
16
21
|
/**
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -12,6 +12,7 @@ const module = defineNuxtModule({
|
|
|
12
12
|
projectId: "",
|
|
13
13
|
readOnlyApiKey: "",
|
|
14
14
|
apiHost: "https://uniform.app",
|
|
15
|
+
edgeApiHost: "https://uniform.global",
|
|
15
16
|
manifest: void 0,
|
|
16
17
|
outputType: void 0,
|
|
17
18
|
uniformContextPath: void 0,
|
|
@@ -19,7 +20,6 @@ const module = defineNuxtModule({
|
|
|
19
20
|
enableContextDevTools: true
|
|
20
21
|
},
|
|
21
22
|
setup(options, nuxt) {
|
|
22
|
-
options.apiHost;
|
|
23
23
|
if (!options.projectId || !options.readOnlyApiKey) {
|
|
24
24
|
throw new Error("uniform-nuxt: The module options 'projectId' and 'readOnlyApiKey' are required.");
|
|
25
25
|
}
|
package/dist/runtime/plugin.mjs
CHANGED
|
@@ -112,7 +112,8 @@ function setupCanvas(nuxtApp) {
|
|
|
112
112
|
const uniformCanvasClient = new CanvasClient({
|
|
113
113
|
projectId: options.projectId,
|
|
114
114
|
apiKey: options.readOnlyApiKey,
|
|
115
|
-
apiHost: options.apiHost
|
|
115
|
+
apiHost: options.apiHost,
|
|
116
|
+
edgeApiHost: options.edgeApiHost
|
|
116
117
|
});
|
|
117
118
|
return uniformCanvasClient;
|
|
118
119
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/uniform-nuxt",
|
|
3
|
-
"version": "18.
|
|
3
|
+
"version": "18.30.1-alpha.15+d985383e0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -36,11 +36,11 @@
|
|
|
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.
|
|
40
|
-
"@uniformdev/canvas-vue": "18.
|
|
41
|
-
"@uniformdev/context": "18.
|
|
42
|
-
"@uniformdev/context-vue": "18.
|
|
43
|
-
"esbuild": "0.17.
|
|
39
|
+
"@uniformdev/canvas": "18.30.1-alpha.15+d985383e0",
|
|
40
|
+
"@uniformdev/canvas-vue": "18.30.1-alpha.15+d985383e0",
|
|
41
|
+
"@uniformdev/context": "18.30.1-alpha.15+d985383e0",
|
|
42
|
+
"@uniformdev/context-vue": "18.30.1-alpha.15+d985383e0",
|
|
43
|
+
"esbuild": "0.17.13",
|
|
44
44
|
"eslint": "^8.31.0",
|
|
45
45
|
"nuxt": "3.2.0",
|
|
46
46
|
"vue": "3.2.45",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "d985383e09e6f498197945f05ab5a43e0bc61eb2"
|
|
53
53
|
}
|