@uniformdev/uniform-nuxt 16.0.1-nuxt.166 → 16.0.1-nuxt.179
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 +91 -4
- package/dist/module.json +1 -1
- package/dist/runtime/plugin.mjs +16 -518
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -1,9 +1,96 @@
|
|
|
1
|
-
# Uniform Nuxt
|
|
1
|
+
# Uniform Nuxt module
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## Getting started
|
|
4
|
+
|
|
5
|
+
Install the peer dependencies of the module (if you haven't already):
|
|
6
|
+
```
|
|
7
|
+
npm i @uniformdev/canvas @uniformdev/canvas-vue @uniformdev/context @uniformdev/context-vue
|
|
8
|
+
```
|
|
9
|
+
Install the module
|
|
10
|
+
```
|
|
11
|
+
npm i @uniformdev/uniform-nuxt
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Add the module to you Nuxt config:
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import { defineNuxtConfig } from 'nuxt';
|
|
18
|
+
|
|
19
|
+
export default defineNuxtConfig({
|
|
20
|
+
transpile: ['@uniformdev/canvas-vue', '@uniformdev/context-vue'],
|
|
21
|
+
modules: [
|
|
22
|
+
[
|
|
23
|
+
'@uniformdev/uniform-nuxt',
|
|
24
|
+
{
|
|
25
|
+
projectId: process.env.UNIFORM_PROJECT_ID,
|
|
26
|
+
readOnlyApiKey: process.env.UNIFORM_API_KEY,
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
],
|
|
30
|
+
});
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Features
|
|
34
|
+
|
|
35
|
+
- Auto-registers the needed Uniform components.
|
|
36
|
+
- Creates a Canvas client automatically.
|
|
37
|
+
- Creates a Uniform Context instance and provides it through the whole app, without the need of a wrapping component.
|
|
38
|
+
- Provides a handy `$useComposition` composable, build on top of Nuxt's [useAsyncData](https://v3.nuxtjs.org/api/composables/use-async-data).
|
|
39
|
+
- Handle Live Preview.
|
|
40
|
+
- Watches query string change, which Nuxt doesn't do by default.
|
|
41
|
+
|
|
42
|
+
## API reference
|
|
43
|
+
|
|
44
|
+
### Options
|
|
45
|
+
These are the option you pass to the module in `nuxt.config.ts`.
|
|
46
|
+
|
|
47
|
+
| Option | Type | Description |
|
|
48
|
+
|---|---|---|
|
|
49
|
+
| `projectId`* | string | The ID of the Uniform project you want to use in your app. |
|
|
50
|
+
| `readOnlyApiKey`* | string | An API key that has read permissions to your Uniform project. ⚠️ Make sure the API key has only read access, because it's used in Nuxt's public runtime config |
|
|
51
|
+
| `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. |
|
|
52
|
+
| `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' |
|
|
53
|
+
| `apiHost` | string | The host to be used when calling the API. Defaults to 'https://uniform.app' |
|
|
54
|
+
\* Required
|
|
55
|
+
|
|
56
|
+
### Injected in the Nuxt instance
|
|
57
|
+
These are the properties that the module injects in the Nuxt app instance, so you can use them anywhere in your app.
|
|
58
|
+
|
|
59
|
+
| Property | Type | Description |
|
|
60
|
+
|---|---|---|
|
|
61
|
+
| `$useComposition` | function | A compasable that you can use to fetch a Canvas composition. It's preview-aware, it will automatically fetch the draft composition if the app is in preview mode, otherwise it will return the published one. It uses Suspense under the hood, so you can have access to the error and pending states of the request |
|
|
62
|
+
| `$useUniformContext` | function | A compasable that returns the current Uniform Context instance which allows you interact with the context such updating the scores and so on. It also returns other provided properties such as `outputType` |
|
|
63
|
+
| `$preview` | object \| undefined | This object is only defined in preview mode, so you can use it to adjust your app if it's in preview mode. It contains the slug of the current composition. |
|
|
64
|
+
| `$uniformCanvasClient` | CanvasClient | Returns the Canvas client which you can use to fetch or update compositions. For composition fetching, it's recommended to use `$useComposition` instead. |
|
|
65
|
+
| `uniformCanvasClient` | CanvasClient | Returns the Canvas client which you can use to fetch or update compositions. For composition fetching, it's recommended to use `$useComposition` instead. |
|
|
66
|
+
|
|
67
|
+
### Components
|
|
68
|
+
These are the components that the module auto registers for you, so you can use them without import.
|
|
69
|
+
|
|
70
|
+
#### <Composition />
|
|
71
|
+
This component wraps the whole composition, it
|
|
72
|
+
|
|
73
|
+
| Prop | Type | Description |
|
|
74
|
+
|---|---|---|
|
|
75
|
+
| `data`* | string | The data of the composition to be rendered, this is usually the `composition` object that you get from `$useComposition` |
|
|
76
|
+
| `resolveRenderer` | function | This function is responsible of mapping Canvas components to Vue components. It takes a ComponentInstance object and should return a Vue component (usually based on the component `type`). If no resolver is provided, it will try to resolve the componnet in on the global context of the app, so if you have globally defined components, it will try to map them based on the `name` of the Vue component and the `type` of Canvas component|
|
|
77
|
+
|
|
78
|
+
* Required
|
|
79
|
+
|
|
80
|
+
#### <SlotContent />
|
|
81
|
+
This component is used to render the slots of a composition, and it can be only used inside a `<Composition />`.
|
|
82
|
+
You can nest `<SlotContent />` inside each other if you have nested slots.
|
|
83
|
+
|
|
84
|
+
| Prop | Type | Description |
|
|
85
|
+
|---|---|---|
|
|
86
|
+
| `name` | string | The name of the Canvas slot to render. If no name is provided, all the slots will be rendered. This is not recommended as the order is not guaranteed |
|
|
87
|
+
|
|
88
|
+
## Example
|
|
89
|
+
|
|
90
|
+
Here are some example where the module is used:
|
|
91
|
+
- https://github.com/uniformdev/uniformconf-nuxt
|
|
92
|
+
- https://github.com/uniformdev/nuxt-canvas-nuxt
|
|
4
93
|
|
|
5
|
-
In the meantime, here is a working example on how to use the module:
|
|
6
|
-
https://github.com/uniformdev/uniformconf-nuxt/blob/main/nuxt.config.ts
|
|
7
94
|
|
|
8
95
|
|
|
9
96
|
-----
|
package/dist/module.json
CHANGED
package/dist/runtime/plugin.mjs
CHANGED
|
@@ -8,7 +8,6 @@ import {
|
|
|
8
8
|
useState,
|
|
9
9
|
useCookie
|
|
10
10
|
} from "#app";
|
|
11
|
-
import { watch, toRaw } from "vue-demi";
|
|
12
11
|
import {
|
|
13
12
|
CanvasClient,
|
|
14
13
|
CANVAS_DRAFT_STATE,
|
|
@@ -17,32 +16,29 @@ import {
|
|
|
17
16
|
import {
|
|
18
17
|
Context,
|
|
19
18
|
CookieTransitionDataStore,
|
|
20
|
-
enableContextDevTools,
|
|
21
19
|
UNIFORM_DEFAULT_COOKIE_NAME
|
|
22
20
|
} from "@uniformdev/context";
|
|
23
21
|
import { Composition, SlotContent, useCompositionEventEffect } from "@uniformdev/canvas-vue";
|
|
24
22
|
import {
|
|
25
|
-
provideUniformContext
|
|
26
|
-
onRouteChange,
|
|
27
|
-
useUniformContext
|
|
23
|
+
provideUniformContext
|
|
28
24
|
} from "@uniformdev/context-vue";
|
|
29
25
|
export default defineNuxtPlugin((nuxtApp) => {
|
|
30
26
|
if (nuxtApp.$uniformIsSetup) {
|
|
31
27
|
return;
|
|
32
28
|
}
|
|
29
|
+
nuxtApp.vueApp.provide("hello", "world3");
|
|
33
30
|
const currentCompositionId = useState("currentCompositionId", () => "");
|
|
34
31
|
const preview = setupPreview();
|
|
35
|
-
const
|
|
32
|
+
const uniformContextData = setupContext(nuxtApp);
|
|
36
33
|
const uniformCanvasClient = setupCanvas(nuxtApp);
|
|
37
34
|
setupLivePreview(currentCompositionId, Boolean(preview));
|
|
38
35
|
const useComposition = setupUseComposition(uniformCanvasClient, currentCompositionId, preview);
|
|
39
36
|
return {
|
|
40
37
|
provide: {
|
|
41
38
|
uniformIsSetup: true,
|
|
42
|
-
useUniformContext,
|
|
43
39
|
preview,
|
|
44
40
|
uniformCanvasClient,
|
|
45
|
-
uniformContext,
|
|
41
|
+
uniformContext: uniformContextData.context,
|
|
46
42
|
useComposition
|
|
47
43
|
}
|
|
48
44
|
};
|
|
@@ -53,26 +49,29 @@ function setupContext(nuxtApp) {
|
|
|
53
49
|
let uniformContext;
|
|
54
50
|
if (options.manifest) {
|
|
55
51
|
console.log("uniform-nuxt: \u{1F4DC} found a manifest, will initialize Context");
|
|
56
|
-
const manifestAsSimpleObject = toRaw(options.manifest);
|
|
57
52
|
uniformContext = new Context({
|
|
58
53
|
defaultConsent: true,
|
|
59
|
-
manifest:
|
|
54
|
+
manifest: options.manifest,
|
|
60
55
|
transitionStore: new CookieTransitionDataStore({
|
|
61
56
|
serverCookieValue: uniformCookie
|
|
62
|
-
})
|
|
63
|
-
plugins: [enableContextDevTools()]
|
|
57
|
+
})
|
|
64
58
|
});
|
|
65
59
|
}
|
|
66
60
|
provideUniformContext({
|
|
67
61
|
context: uniformContext,
|
|
68
62
|
outputType: options.outputType,
|
|
69
|
-
|
|
63
|
+
vueAppInstance: nuxtApp.vueApp
|
|
70
64
|
});
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
65
|
+
nuxtApp.hook("vue:setup ", (vueApp) => {
|
|
66
|
+
console.log("\u{1FA9D} vue:setup ", vueApp);
|
|
67
|
+
provideUniformContext({
|
|
68
|
+
context: uniformContext,
|
|
69
|
+
outputType: options.outputType,
|
|
70
|
+
vueAppInstance: nuxtApp.vueApp
|
|
71
|
+
});
|
|
74
72
|
});
|
|
75
|
-
|
|
73
|
+
console.log("setupContext nuxtApp.vueApp._uid", nuxtApp.vueApp._uid);
|
|
74
|
+
return { context: uniformContext, outputType: options.outputType };
|
|
76
75
|
}
|
|
77
76
|
function setupCanvas(nuxtApp) {
|
|
78
77
|
const options = useRuntimeConfig().public.$uniform;
|
|
@@ -112,507 +111,6 @@ function setupLivePreview(currentCompositionId, isPreview = false) {
|
|
|
112
111
|
effect: onCompositionChange
|
|
113
112
|
});
|
|
114
113
|
}
|
|
115
|
-
const SAMPLE_COMPOSITION_RESPONSE = {
|
|
116
|
-
composition: {
|
|
117
|
-
_id: "ecf48923-00c6-4d2b-8493-b1e0895d2807",
|
|
118
|
-
type: "page",
|
|
119
|
-
_name: "Home",
|
|
120
|
-
_slug: "/",
|
|
121
|
-
slots: {
|
|
122
|
-
footer: [
|
|
123
|
-
{
|
|
124
|
-
type: "footer",
|
|
125
|
-
parameters: {}
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
header: [
|
|
129
|
-
{
|
|
130
|
-
type: "header",
|
|
131
|
-
parameters: {
|
|
132
|
-
text: {
|
|
133
|
-
type: "text",
|
|
134
|
-
value: "V1"
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
content: [
|
|
140
|
-
{
|
|
141
|
-
type: "$personalization",
|
|
142
|
-
slots: {
|
|
143
|
-
pz: [
|
|
144
|
-
{
|
|
145
|
-
type: "hero",
|
|
146
|
-
parameters: {
|
|
147
|
-
text: {
|
|
148
|
-
type: "text",
|
|
149
|
-
value: "Now check out the conference sessions and add them to your agenda"
|
|
150
|
-
},
|
|
151
|
-
image: {
|
|
152
|
-
type: "text",
|
|
153
|
-
value: "/images/registration-hero.svg"
|
|
154
|
-
},
|
|
155
|
-
title: {
|
|
156
|
-
type: "text",
|
|
157
|
-
value: "Thank you for joining!"
|
|
158
|
-
},
|
|
159
|
-
$pzCrit: {
|
|
160
|
-
type: "$pzCrit",
|
|
161
|
-
value: {
|
|
162
|
-
crit: [
|
|
163
|
-
{
|
|
164
|
-
l: "registrationComplete",
|
|
165
|
-
r: 50,
|
|
166
|
-
op: ">"
|
|
167
|
-
}
|
|
168
|
-
]
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
intentTag: {
|
|
172
|
-
type: "intentTag",
|
|
173
|
-
value: null
|
|
174
|
-
},
|
|
175
|
-
buttonText: {
|
|
176
|
-
type: "text",
|
|
177
|
-
value: "See sessions"
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
type: "hero",
|
|
183
|
-
parameters: {
|
|
184
|
-
text: {
|
|
185
|
-
type: "text",
|
|
186
|
-
value: "We can't wait to receive your talk submission!"
|
|
187
|
-
},
|
|
188
|
-
image: {
|
|
189
|
-
type: "text",
|
|
190
|
-
value: "/images/call-for-papers-hero.svg"
|
|
191
|
-
},
|
|
192
|
-
title: {
|
|
193
|
-
type: "text",
|
|
194
|
-
value: "Call for papers open now!"
|
|
195
|
-
},
|
|
196
|
-
$pzCrit: {
|
|
197
|
-
type: "$pzCrit",
|
|
198
|
-
value: {
|
|
199
|
-
crit: [
|
|
200
|
-
{
|
|
201
|
-
l: "submitCallForPapers",
|
|
202
|
-
r: 50,
|
|
203
|
-
op: ">="
|
|
204
|
-
}
|
|
205
|
-
]
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
intentTag: {
|
|
209
|
-
type: "intentTag",
|
|
210
|
-
value: null
|
|
211
|
-
},
|
|
212
|
-
buttonText: {
|
|
213
|
-
type: "text",
|
|
214
|
-
value: "Submit your talk"
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
type: "hero",
|
|
220
|
-
parameters: {
|
|
221
|
-
text: {
|
|
222
|
-
type: "text",
|
|
223
|
-
value: "We think you might be interested in this content."
|
|
224
|
-
},
|
|
225
|
-
image: {
|
|
226
|
-
type: "text",
|
|
227
|
-
value: "/images/developer-hero.svg"
|
|
228
|
-
},
|
|
229
|
-
title: {
|
|
230
|
-
type: "text",
|
|
231
|
-
value: "Hey, developer!"
|
|
232
|
-
},
|
|
233
|
-
$pzCrit: {
|
|
234
|
-
type: "$pzCrit",
|
|
235
|
-
value: {
|
|
236
|
-
crit: [
|
|
237
|
-
{
|
|
238
|
-
l: "techies",
|
|
239
|
-
op: "+"
|
|
240
|
-
}
|
|
241
|
-
]
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
intentTag: {
|
|
245
|
-
type: "intentTag",
|
|
246
|
-
value: null
|
|
247
|
-
},
|
|
248
|
-
buttonText: {
|
|
249
|
-
type: "text",
|
|
250
|
-
value: null
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
type: "hero",
|
|
256
|
-
parameters: {
|
|
257
|
-
text: {
|
|
258
|
-
type: "text",
|
|
259
|
-
value: "We think you may be a marketer. This might be of interest to you!"
|
|
260
|
-
},
|
|
261
|
-
image: {
|
|
262
|
-
type: "text",
|
|
263
|
-
value: "/images/marketer-hero.svg"
|
|
264
|
-
},
|
|
265
|
-
title: {
|
|
266
|
-
type: "text",
|
|
267
|
-
value: "Howdy, Marketer!"
|
|
268
|
-
},
|
|
269
|
-
$pzCrit: {
|
|
270
|
-
type: "$pzCrit",
|
|
271
|
-
value: {
|
|
272
|
-
crit: [
|
|
273
|
-
{
|
|
274
|
-
l: "nonTechies",
|
|
275
|
-
op: "+"
|
|
276
|
-
}
|
|
277
|
-
]
|
|
278
|
-
}
|
|
279
|
-
},
|
|
280
|
-
intentTag: {
|
|
281
|
-
type: "intentTag",
|
|
282
|
-
value: null
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
type: "hero",
|
|
288
|
-
parameters: {
|
|
289
|
-
text: {
|
|
290
|
-
type: "text",
|
|
291
|
-
value: "Whether you are a developer or a marketer, we got great content for you."
|
|
292
|
-
},
|
|
293
|
-
image: {
|
|
294
|
-
type: "text",
|
|
295
|
-
value: "/images/default-hero.svg"
|
|
296
|
-
},
|
|
297
|
-
title: {
|
|
298
|
-
type: "text",
|
|
299
|
-
value: "Welcome to UniformConf"
|
|
300
|
-
},
|
|
301
|
-
buttonLink: {
|
|
302
|
-
type: "text",
|
|
303
|
-
value: "/registration"
|
|
304
|
-
},
|
|
305
|
-
buttonText: {
|
|
306
|
-
type: "text",
|
|
307
|
-
value: "Register"
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
]
|
|
312
|
-
},
|
|
313
|
-
parameters: {
|
|
314
|
-
trackingEventName: {
|
|
315
|
-
type: "text",
|
|
316
|
-
value: "Home Hero"
|
|
317
|
-
}
|
|
318
|
-
}
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
type: "$personalization",
|
|
322
|
-
slots: {
|
|
323
|
-
pz: [
|
|
324
|
-
{
|
|
325
|
-
type: "talklist",
|
|
326
|
-
slots: {
|
|
327
|
-
talks: [
|
|
328
|
-
{
|
|
329
|
-
type: "talk",
|
|
330
|
-
parameters: {
|
|
331
|
-
title: {
|
|
332
|
-
type: "text",
|
|
333
|
-
value: "Jamstack 101"
|
|
334
|
-
},
|
|
335
|
-
audience: {
|
|
336
|
-
type: "select",
|
|
337
|
-
value: "Marketers"
|
|
338
|
-
},
|
|
339
|
-
intentTag: {
|
|
340
|
-
type: "intentTag",
|
|
341
|
-
value: null
|
|
342
|
-
},
|
|
343
|
-
description: {
|
|
344
|
-
type: "text",
|
|
345
|
-
value: "Learn what Jamstack is in this introductory course for both developers and marketers."
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
},
|
|
349
|
-
{
|
|
350
|
-
type: "talk",
|
|
351
|
-
parameters: {
|
|
352
|
-
title: {
|
|
353
|
-
type: "text",
|
|
354
|
-
value: "Personalization the Jamstack way"
|
|
355
|
-
},
|
|
356
|
-
audience: {
|
|
357
|
-
type: "select",
|
|
358
|
-
value: "Marketers"
|
|
359
|
-
},
|
|
360
|
-
description: {
|
|
361
|
-
type: "text",
|
|
362
|
-
value: "Marketers can learn about the basics of personalization and how to do it the Jamstack way."
|
|
363
|
-
}
|
|
364
|
-
}
|
|
365
|
-
},
|
|
366
|
-
{
|
|
367
|
-
type: "talk",
|
|
368
|
-
parameters: {
|
|
369
|
-
title: {
|
|
370
|
-
type: "text",
|
|
371
|
-
value: "3rd party scripts and performance"
|
|
372
|
-
},
|
|
373
|
-
audience: {
|
|
374
|
-
type: "select",
|
|
375
|
-
value: "Marketers"
|
|
376
|
-
},
|
|
377
|
-
description: {
|
|
378
|
-
type: "text",
|
|
379
|
-
value: "The effect of 3rd party scripts on performance can be huge and the additional JavaScript payload coming from 3rd party scripts can easily exceed the amount of JavaScript you need to render your site."
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
}
|
|
383
|
-
]
|
|
384
|
-
},
|
|
385
|
-
parameters: {
|
|
386
|
-
title: {
|
|
387
|
-
type: "text",
|
|
388
|
-
value: "Personalized talks for marketers"
|
|
389
|
-
},
|
|
390
|
-
$pzCrit: {
|
|
391
|
-
type: "$pzCrit",
|
|
392
|
-
value: {
|
|
393
|
-
crit: [
|
|
394
|
-
{
|
|
395
|
-
l: "nonTechies",
|
|
396
|
-
op: "+"
|
|
397
|
-
}
|
|
398
|
-
]
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
},
|
|
403
|
-
{
|
|
404
|
-
type: "talklist",
|
|
405
|
-
slots: {
|
|
406
|
-
talks: [
|
|
407
|
-
{
|
|
408
|
-
type: "talk",
|
|
409
|
-
parameters: {
|
|
410
|
-
title: {
|
|
411
|
-
type: "text",
|
|
412
|
-
value: "What's next in Next.js?"
|
|
413
|
-
},
|
|
414
|
-
audience: {
|
|
415
|
-
type: "select",
|
|
416
|
-
value: "Developers"
|
|
417
|
-
},
|
|
418
|
-
description: {
|
|
419
|
-
type: "text",
|
|
420
|
-
value: "Find out what's new in the latest Next.js release. Find out in this content packed session!"
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
type: "talk",
|
|
426
|
-
parameters: {
|
|
427
|
-
title: {
|
|
428
|
-
type: "text",
|
|
429
|
-
value: "Edge-side computing basics"
|
|
430
|
-
},
|
|
431
|
-
audience: {
|
|
432
|
-
type: "select",
|
|
433
|
-
value: "Developers"
|
|
434
|
-
},
|
|
435
|
-
description: {
|
|
436
|
-
type: "text",
|
|
437
|
-
value: "Learn how to take the static to the new realm by adding edge-side logic to your application."
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
type: "talk",
|
|
443
|
-
parameters: {
|
|
444
|
-
title: {
|
|
445
|
-
type: "text",
|
|
446
|
-
value: "Personalization the for developers"
|
|
447
|
-
},
|
|
448
|
-
audience: {
|
|
449
|
-
type: "select",
|
|
450
|
-
value: "Developers"
|
|
451
|
-
},
|
|
452
|
-
description: {
|
|
453
|
-
type: "text",
|
|
454
|
-
value: "Developers should know the basics of personalization and how to do it the Jamstack way."
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
]
|
|
459
|
-
},
|
|
460
|
-
parameters: {
|
|
461
|
-
title: {
|
|
462
|
-
type: "text",
|
|
463
|
-
value: "Personalized talks for developers"
|
|
464
|
-
},
|
|
465
|
-
$pzCrit: {
|
|
466
|
-
type: "$pzCrit",
|
|
467
|
-
value: {
|
|
468
|
-
crit: [
|
|
469
|
-
{
|
|
470
|
-
l: "techies",
|
|
471
|
-
op: "+"
|
|
472
|
-
}
|
|
473
|
-
]
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
},
|
|
478
|
-
{
|
|
479
|
-
type: "talklist",
|
|
480
|
-
slots: {
|
|
481
|
-
talks: [
|
|
482
|
-
{
|
|
483
|
-
type: "talk",
|
|
484
|
-
parameters: {
|
|
485
|
-
title: {
|
|
486
|
-
type: "text",
|
|
487
|
-
value: "What's next in Next.js?"
|
|
488
|
-
},
|
|
489
|
-
audience: {
|
|
490
|
-
type: "select",
|
|
491
|
-
value: "Developers"
|
|
492
|
-
},
|
|
493
|
-
description: {
|
|
494
|
-
type: "text",
|
|
495
|
-
value: "Find out what's new in the latest Next.js release. Find out in this content packed session!"
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
},
|
|
499
|
-
{
|
|
500
|
-
type: "talk",
|
|
501
|
-
parameters: {
|
|
502
|
-
title: {
|
|
503
|
-
type: "text",
|
|
504
|
-
value: "Personalization the Jamstack way"
|
|
505
|
-
},
|
|
506
|
-
audience: {
|
|
507
|
-
type: "select",
|
|
508
|
-
value: "Marketers"
|
|
509
|
-
},
|
|
510
|
-
description: {
|
|
511
|
-
type: "text",
|
|
512
|
-
value: "Marketers can learn about the basics of personalization and how to do it the Jamstack way."
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
},
|
|
516
|
-
{
|
|
517
|
-
type: "talk",
|
|
518
|
-
parameters: {
|
|
519
|
-
title: {
|
|
520
|
-
type: "text",
|
|
521
|
-
value: "Personalization the for developers"
|
|
522
|
-
},
|
|
523
|
-
audience: {
|
|
524
|
-
type: "select",
|
|
525
|
-
value: "Developers"
|
|
526
|
-
},
|
|
527
|
-
description: {
|
|
528
|
-
type: "text",
|
|
529
|
-
value: "Developers should know the basics of personalization and how to do it the Jamstack way."
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
]
|
|
534
|
-
},
|
|
535
|
-
parameters: {
|
|
536
|
-
title: {
|
|
537
|
-
type: "text",
|
|
538
|
-
value: "Our conference talks for everyone"
|
|
539
|
-
},
|
|
540
|
-
$pzCrit: {
|
|
541
|
-
type: "$pzCrit",
|
|
542
|
-
value: null
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
]
|
|
547
|
-
},
|
|
548
|
-
parameters: {
|
|
549
|
-
trackingEventName: {
|
|
550
|
-
type: "text",
|
|
551
|
-
value: "Home page talks"
|
|
552
|
-
}
|
|
553
|
-
}
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
type: "$test",
|
|
557
|
-
slots: {
|
|
558
|
-
test: [
|
|
559
|
-
{
|
|
560
|
-
type: "whyattend",
|
|
561
|
-
variant: "whyattendright",
|
|
562
|
-
parameters: {
|
|
563
|
-
text: {
|
|
564
|
-
type: "text",
|
|
565
|
-
value: "This conference has something to offer developers and marketers alike. From basics to advanced, learn more about:\n\n1. Enterprise JAMstack Personalization\n2. Uniform Personalization\n3. Uniform DXP\n\nExpand your knowledge on these subjects and engage with professionals from all over the world."
|
|
566
|
-
},
|
|
567
|
-
image: {
|
|
568
|
-
type: "text",
|
|
569
|
-
value: "/images/crowd.jpg"
|
|
570
|
-
},
|
|
571
|
-
title: {
|
|
572
|
-
type: "text",
|
|
573
|
-
value: "Why You Should Attend"
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
},
|
|
577
|
-
{
|
|
578
|
-
type: "whyattend",
|
|
579
|
-
variant: "whyattendleft",
|
|
580
|
-
parameters: {
|
|
581
|
-
text: {
|
|
582
|
-
type: "text",
|
|
583
|
-
value: "This conference has something to offer developers and marketers alike. From basics to advanced, learn more about:\n\n1. Enterprise JAMstack Personalization\n2. Uniform Personalization\n3. Uniform DXP\n\nExpand your knowledge on these subjects and engage with professionals from all over the world."
|
|
584
|
-
},
|
|
585
|
-
image: {
|
|
586
|
-
type: "text",
|
|
587
|
-
value: "/images/crowd.jpg"
|
|
588
|
-
},
|
|
589
|
-
title: {
|
|
590
|
-
type: "text",
|
|
591
|
-
value: "Why You Should Attend"
|
|
592
|
-
}
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
]
|
|
596
|
-
},
|
|
597
|
-
parameters: {
|
|
598
|
-
test: {
|
|
599
|
-
type: "testSelect",
|
|
600
|
-
value: "whyAttendTest"
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
]
|
|
605
|
-
},
|
|
606
|
-
parameters: {},
|
|
607
|
-
_permissions: [],
|
|
608
|
-
_use_team_permissions: true
|
|
609
|
-
},
|
|
610
|
-
projectId: "e132b5d8-2e49-4352-b2f6-640ab581784f",
|
|
611
|
-
state: 64,
|
|
612
|
-
created: "2022-06-02T10:42:50.973477+00:00",
|
|
613
|
-
modified: "2022-06-16T14:13:05.324643+00:00",
|
|
614
|
-
pattern: false
|
|
615
|
-
};
|
|
616
114
|
function setupUseComposition(uniformCanvasClient, currentCompositionId, preview) {
|
|
617
115
|
const useComposition = async (options) => {
|
|
618
116
|
const { data, pending, error } = await useAsyncData(`composition-${options.slug || options.compositionId}`, async () => await uniformCanvasClient[options.slug ? "getCompositionBySlug" : "getCompositionById"]({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/uniform-nuxt",
|
|
3
|
-
"version": "16.0.1-nuxt.
|
|
3
|
+
"version": "16.0.1-nuxt.179+842199728",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"build": "nuxt-module-build"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@nuxt/kit": "^3.0.0-rc.4"
|
|
22
|
+
"@nuxt/kit": "^3.0.0-rc.4",
|
|
23
|
+
"vue-demi": "^0.12.5"
|
|
23
24
|
},
|
|
24
25
|
"peerDependencies": {
|
|
25
26
|
"@uniformdev/canvas": ">15",
|
|
@@ -30,10 +31,10 @@
|
|
|
30
31
|
"devDependencies": {
|
|
31
32
|
"@nuxt/module-builder": "0.1.7",
|
|
32
33
|
"@nuxtjs/eslint-config-typescript": "10.0.0",
|
|
33
|
-
"@uniformdev/canvas": "^16.0.1-nuxt.
|
|
34
|
-
"@uniformdev/canvas-vue": "^16.0.1-nuxt.
|
|
35
|
-
"@uniformdev/context": "^16.0.1-nuxt.
|
|
36
|
-
"@uniformdev/context-vue": "^16.0.1-nuxt.
|
|
34
|
+
"@uniformdev/canvas": "^16.0.1-nuxt.179+842199728",
|
|
35
|
+
"@uniformdev/canvas-vue": "^16.0.1-nuxt.179+842199728",
|
|
36
|
+
"@uniformdev/context": "^16.0.1-nuxt.179+842199728",
|
|
37
|
+
"@uniformdev/context-vue": "^16.0.1-nuxt.179+842199728",
|
|
37
38
|
"esbuild": "0.13.15",
|
|
38
39
|
"eslint": "latest",
|
|
39
40
|
"nuxt": "^3.0.0-rc.4"
|
|
@@ -41,5 +42,5 @@
|
|
|
41
42
|
"publishConfig": {
|
|
42
43
|
"access": "public"
|
|
43
44
|
},
|
|
44
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "842199728b5d454c2ca7e82ef7d1fd208f835c4e"
|
|
45
46
|
}
|