@slicemachine/adapter-nuxt 0.3.18-dev-next-release.6 → 0.3.18-dev-slice-templates-svelte-nuxt.0

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.
Files changed (31) hide show
  1. package/dist/AlternateGrid/javascript.vue +228 -0
  2. package/dist/AlternateGrid/screenshot-default.png +0 -0
  3. package/dist/AlternateGrid/screenshot-imageRight.png +0 -0
  4. package/dist/AlternateGrid/typescript.vue +235 -0
  5. package/dist/CustomerLogos/javascript.vue +117 -0
  6. package/dist/CustomerLogos/screenshot-default.png +0 -0
  7. package/dist/CustomerLogos/typescript.vue +124 -0
  8. package/dist/plugin.cjs +4 -1
  9. package/dist/plugin.cjs.map +1 -1
  10. package/dist/plugin.js +4 -1
  11. package/dist/plugin.js.map +1 -1
  12. package/dist/sliceTemplates/AlternateGrid/index.cjs +436 -0
  13. package/dist/sliceTemplates/AlternateGrid/index.cjs.map +1 -0
  14. package/dist/sliceTemplates/AlternateGrid/index.d.ts +8 -0
  15. package/dist/sliceTemplates/AlternateGrid/index.js +436 -0
  16. package/dist/sliceTemplates/AlternateGrid/index.js.map +1 -0
  17. package/dist/sliceTemplates/CallToAction/index.cjs +264 -0
  18. package/dist/sliceTemplates/CallToAction/index.cjs.map +1 -0
  19. package/dist/sliceTemplates/CallToAction/index.d.ts +8 -0
  20. package/dist/sliceTemplates/CallToAction/index.js +264 -0
  21. package/dist/sliceTemplates/CallToAction/index.js.map +1 -0
  22. package/dist/sliceTemplates/CustomerLogos/index.cjs +314 -0
  23. package/dist/sliceTemplates/CustomerLogos/index.cjs.map +1 -0
  24. package/dist/sliceTemplates/CustomerLogos/index.d.ts +7 -0
  25. package/dist/sliceTemplates/CustomerLogos/index.js +314 -0
  26. package/dist/sliceTemplates/CustomerLogos/index.js.map +1 -0
  27. package/package.json +3 -3
  28. package/src/plugin.ts +4 -1
  29. package/src/sliceTemplates/AlternateGrid/index.ts +441 -0
  30. package/src/sliceTemplates/CallToAction/index.ts +265 -0
  31. package/src/sliceTemplates/CustomerLogos/index.ts +313 -0
@@ -0,0 +1,265 @@
1
+ import type { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
2
+ import { SharedSliceContent } from "@prismicio/types-internal/lib/content";
3
+
4
+ export const screenshotPaths = {
5
+ default: "CallToAction/screenshot-default.png",
6
+ alignLeft: "CallToAction/screenshot-alignLeft.png",
7
+ };
8
+
9
+ export const mocks: SharedSliceContent[] = [
10
+ {
11
+ __TYPE__: "SharedSliceContent",
12
+ variation: "default",
13
+ primary: {
14
+ title: {
15
+ __TYPE__: "StructuredTextContent",
16
+ value: [
17
+ {
18
+ type: "heading1",
19
+ content: {
20
+ text: "Collector Slices kit",
21
+ spans: [],
22
+ },
23
+ direction: "ltr",
24
+ },
25
+ ],
26
+ },
27
+ paragraph: {
28
+ __TYPE__: "StructuredTextContent",
29
+ value: [
30
+ {
31
+ type: "paragraph",
32
+ content: {
33
+ text: "It’s very easy to create stylish and beautiful prototypes for your future projects, both graphical and dynamic.",
34
+ spans: [],
35
+ },
36
+ direction: "ltr",
37
+ },
38
+ ],
39
+ },
40
+ buttonLink: {
41
+ __TYPE__: "LinkContent",
42
+ value: {
43
+ __TYPE__: "ExternalLink",
44
+ url: "https://twitter.com/prismicio",
45
+ },
46
+ },
47
+ buttonlabel: {
48
+ __TYPE__: "FieldContent",
49
+ type: "Text",
50
+ value: "Click here",
51
+ },
52
+ image: {
53
+ origin: {
54
+ id: "9aOswReDKPo",
55
+ url: "https://images.unsplash.com/photo-1523049673857-eb18f1d7b578?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwxOXx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85",
56
+ width: 8040,
57
+ height: 6024,
58
+ },
59
+ url: "https://images.unsplash.com/photo-1523049673857-eb18f1d7b578?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwxOXx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85",
60
+ width: 8040,
61
+ height: 6024,
62
+ edit: {
63
+ background: "transparent",
64
+ zoom: 1,
65
+ crop: {
66
+ x: 0,
67
+ y: 0,
68
+ },
69
+ },
70
+ credits: null,
71
+ alt: "Example Image",
72
+ __TYPE__: "ImageContent",
73
+ thumbnails: {},
74
+ },
75
+ buttonLabel: {
76
+ __TYPE__: "FieldContent",
77
+ type: "Text",
78
+ value: "Learn more",
79
+ },
80
+ },
81
+ items: [],
82
+ },
83
+ {
84
+ __TYPE__: "SharedSliceContent",
85
+ variation: "alignLeft",
86
+ primary: {
87
+ image: {
88
+ origin: {
89
+ id: "euqiHwS38Rw",
90
+ url: "https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85",
91
+ width: 2500,
92
+ height: 2500,
93
+ },
94
+ url: "https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85",
95
+ width: 2500,
96
+ height: 2500,
97
+ edit: {
98
+ background: "transparent",
99
+ zoom: 1,
100
+ crop: {
101
+ x: 0,
102
+ y: 0,
103
+ },
104
+ },
105
+ credits: null,
106
+ alt: "Example Image",
107
+ __TYPE__: "ImageContent",
108
+ thumbnails: {},
109
+ },
110
+ title: {
111
+ __TYPE__: "StructuredTextContent",
112
+ value: [
113
+ {
114
+ type: "heading1",
115
+ content: {
116
+ text: "Collector Slices kit",
117
+ spans: [],
118
+ },
119
+ direction: "ltr",
120
+ },
121
+ ],
122
+ },
123
+ paragraph: {
124
+ __TYPE__: "StructuredTextContent",
125
+ value: [
126
+ {
127
+ type: "paragraph",
128
+ content: {
129
+ text: "It’s very easy to create stylish and beautiful prototypes for your future projects, both graphical and dynamic.",
130
+ spans: [],
131
+ },
132
+ direction: "ltr",
133
+ },
134
+ ],
135
+ },
136
+ buttonLink: {
137
+ __TYPE__: "LinkContent",
138
+ value: {
139
+ __TYPE__: "ExternalLink",
140
+ url: "https://prismic.io",
141
+ },
142
+ },
143
+ buttonLabel: {
144
+ __TYPE__: "FieldContent",
145
+ type: "Text",
146
+ value: "Learn more!",
147
+ },
148
+ },
149
+ items: [
150
+ {
151
+ __TYPE__: "GroupItemContent",
152
+ value: [],
153
+ },
154
+ ],
155
+ },
156
+ ];
157
+
158
+ export const model: SharedSlice = {
159
+ id: "call_to_action",
160
+ type: "SharedSlice",
161
+ name: "CallToAction",
162
+ description: "CallToAction",
163
+ variations: [
164
+ {
165
+ id: "default",
166
+ name: "Default",
167
+ docURL: "...",
168
+ version: "initial",
169
+ description: "Default",
170
+ imageUrl: "",
171
+ primary: {
172
+ image: {
173
+ type: "Image",
174
+ config: { label: "Image", constraint: {}, thumbnails: [] },
175
+ },
176
+ title: {
177
+ type: "StructuredText",
178
+ config: {
179
+ label: "title",
180
+ placeholder: "",
181
+ allowTargetBlank: true,
182
+ single: "heading1,heading2,heading3,heading4,heading5,heading6",
183
+ },
184
+ },
185
+ paragraph: {
186
+ type: "StructuredText",
187
+ config: {
188
+ label: "paragraph",
189
+ placeholder: "",
190
+ allowTargetBlank: true,
191
+ single:
192
+ "paragraph,preformatted,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl",
193
+ },
194
+ },
195
+ buttonLink: {
196
+ type: "Link",
197
+ config: {
198
+ label: "buttonLink",
199
+ placeholder: "Redirect URL for CTA button",
200
+ allowTargetBlank: true,
201
+ select: null,
202
+ },
203
+ },
204
+ buttonLabel: {
205
+ type: "Text",
206
+ config: {
207
+ label: "buttonLabel",
208
+ placeholder: "Label for CTA button",
209
+ },
210
+ },
211
+ },
212
+ items: {},
213
+ },
214
+ {
215
+ id: "alignLeft",
216
+ name: "AlignLeft",
217
+ docURL: "...",
218
+ version: "initial",
219
+ description: "Default",
220
+ imageUrl: "",
221
+ primary: {
222
+ image: {
223
+ type: "Image",
224
+ config: { label: "Image", constraint: {}, thumbnails: [] },
225
+ },
226
+ title: {
227
+ type: "StructuredText",
228
+ config: {
229
+ label: "title",
230
+ placeholder: "",
231
+ allowTargetBlank: true,
232
+ single: "heading1,heading2,heading3,heading4,heading5,heading6",
233
+ },
234
+ },
235
+ paragraph: {
236
+ type: "StructuredText",
237
+ config: {
238
+ label: "paragraph",
239
+ placeholder: "",
240
+ allowTargetBlank: true,
241
+ single:
242
+ "paragraph,preformatted,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl",
243
+ },
244
+ },
245
+ buttonLink: {
246
+ type: "Link",
247
+ config: {
248
+ label: "buttonLink",
249
+ placeholder: "Redirect URL for CTA button",
250
+ allowTargetBlank: true,
251
+ select: null,
252
+ },
253
+ },
254
+ buttonLabel: {
255
+ type: "Text",
256
+ config: {
257
+ label: "buttonLabel",
258
+ placeholder: "Label for CTA button",
259
+ },
260
+ },
261
+ },
262
+ items: {},
263
+ },
264
+ ],
265
+ };
@@ -0,0 +1,313 @@
1
+ import type { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
2
+ import { SharedSliceContent } from "@prismicio/types-internal/lib/content";
3
+
4
+ export const screenshotPaths = {
5
+ default: "CustomerLogos/screenshot-default.png",
6
+ };
7
+
8
+ export const mocks: SharedSliceContent[] = [
9
+ {
10
+ __TYPE__: "SharedSliceContent",
11
+ variation: "default",
12
+ primary: {
13
+ callToActionLabel: {
14
+ __TYPE__: "FieldContent",
15
+ type: "Text",
16
+ value: "View customer stories",
17
+ },
18
+ callToActionLink: {
19
+ __TYPE__: "LinkContent",
20
+ value: {
21
+ __TYPE__: "ExternalLink",
22
+ url: "https://prismic.io",
23
+ target: "_blank",
24
+ },
25
+ },
26
+ eyebrowHeadline: {
27
+ __TYPE__: "StructuredTextContent",
28
+ value: [
29
+ {
30
+ type: "heading2",
31
+ content: {
32
+ text: "Trusted by",
33
+ spans: [],
34
+ },
35
+ direction: "ltr",
36
+ },
37
+ ],
38
+ },
39
+ },
40
+ items: [
41
+ {
42
+ __TYPE__: "GroupItemContent",
43
+ value: [
44
+ [
45
+ "image",
46
+ {
47
+ origin: {
48
+ id: "main",
49
+ url: "https://images.prismic.io/slicesexamples/95a608cd-8d3c-40c1-a554-0bec1b89eda5_logo-3.svg",
50
+ width: 2545,
51
+ height: 2545,
52
+ },
53
+ url: "https://images.prismic.io/slicesexamples/95a608cd-8d3c-40c1-a554-0bec1b89eda5_logo-3.svg",
54
+ width: 2545,
55
+ height: 2545,
56
+ edit: {
57
+ zoom: 1,
58
+ crop: {
59
+ x: 0,
60
+ y: 0,
61
+ },
62
+ background: "transparent",
63
+ },
64
+ credits: null,
65
+ alt: "Customer Logo",
66
+ __TYPE__: "ImageContent",
67
+ thumbnails: {},
68
+ },
69
+ ],
70
+ [
71
+ "link",
72
+ {
73
+ __TYPE__: "LinkContent",
74
+ value: {
75
+ __TYPE__: "ExternalLink",
76
+ url: "http://twitter.com",
77
+ },
78
+ },
79
+ ],
80
+ ],
81
+ },
82
+ {
83
+ __TYPE__: "GroupItemContent",
84
+ value: [
85
+ [
86
+ "image",
87
+ {
88
+ url: "https://images.prismic.io/slicesexamples/b62a8629-f7f1-4d2e-885a-bd7c6bcff201_logo-2.svg",
89
+ origin: {
90
+ id: "xnRg3xDcNnE",
91
+ url: "https://images.prismic.io/slicesexamples/b62a8629-f7f1-4d2e-885a-bd7c6bcff201_logo-2.svg",
92
+ width: 7173,
93
+ height: 10041,
94
+ },
95
+ width: 7173,
96
+ height: 10041,
97
+ edit: {
98
+ background: "transparent",
99
+ zoom: 1,
100
+ crop: {
101
+ x: 0,
102
+ y: 0,
103
+ },
104
+ },
105
+ credits: null,
106
+ alt: "Customer Logo",
107
+ __TYPE__: "ImageContent",
108
+ thumbnails: {},
109
+ },
110
+ ],
111
+ [
112
+ "link",
113
+ {
114
+ __TYPE__: "LinkContent",
115
+ value: {
116
+ __TYPE__: "ExternalLink",
117
+ url: "https://prismic.io",
118
+ target: "_blank",
119
+ },
120
+ },
121
+ ],
122
+ ],
123
+ },
124
+ {
125
+ __TYPE__: "GroupItemContent",
126
+ value: [
127
+ [
128
+ "image",
129
+ {
130
+ url: "https://images.prismic.io/slicesexamples/4360a72b-bfe4-4144-911c-597146f72c00_logo-5.svg",
131
+ origin: {
132
+ id: "U1iYwZ8Dx7k",
133
+ url: "https://images.prismic.io/slicesexamples/4360a72b-bfe4-4144-911c-597146f72c00_logo-5.svg",
134
+ width: 3337,
135
+ height: 4171,
136
+ },
137
+ width: 3337,
138
+ height: 4171,
139
+ edit: {
140
+ background: "transparent",
141
+ zoom: 1,
142
+ crop: {
143
+ x: 0,
144
+ y: 0,
145
+ },
146
+ },
147
+ credits: null,
148
+ alt: "Customer Logo",
149
+ __TYPE__: "ImageContent",
150
+ thumbnails: {},
151
+ },
152
+ ],
153
+ [
154
+ "link",
155
+ {
156
+ __TYPE__: "LinkContent",
157
+ value: {
158
+ __TYPE__: "ExternalLink",
159
+ url: "https://prismic.io",
160
+ target: "",
161
+ },
162
+ },
163
+ ],
164
+ ],
165
+ },
166
+ {
167
+ __TYPE__: "GroupItemContent",
168
+ value: [
169
+ [
170
+ "image",
171
+ {
172
+ url: "https://images.prismic.io/slicesexamples/846576e2-c93c-40dd-8aaa-b97f4e99e7aa_logo-1.svg",
173
+ origin: {
174
+ id: "nibgG33H0F8",
175
+ url: "https://images.prismic.io/slicesexamples/846576e2-c93c-40dd-8aaa-b97f4e99e7aa_logo-1.svg",
176
+ width: 4000,
177
+ height: 6000,
178
+ },
179
+ width: 4000,
180
+ height: 6000,
181
+ edit: {
182
+ background: "transparent",
183
+ zoom: 1,
184
+ crop: {
185
+ x: 0,
186
+ y: 0,
187
+ },
188
+ },
189
+ credits: null,
190
+ alt: "Customer Logo",
191
+ __TYPE__: "ImageContent",
192
+ thumbnails: {},
193
+ },
194
+ ],
195
+ [
196
+ "link",
197
+ {
198
+ __TYPE__: "LinkContent",
199
+ value: {
200
+ __TYPE__: "ExternalLink",
201
+ url: "https://prismic.io",
202
+ target: "",
203
+ },
204
+ },
205
+ ],
206
+ ],
207
+ },
208
+ {
209
+ __TYPE__: "GroupItemContent",
210
+ value: [
211
+ [
212
+ "image",
213
+ {
214
+ url: "https://images.prismic.io/slicesexamples/23461395-458d-41f5-be25-bac37a4ff53e_logo-6.svg",
215
+ origin: {
216
+ id: "nAOZCYcLND8",
217
+ url: "https://images.prismic.io/slicesexamples/23461395-458d-41f5-be25-bac37a4ff53e_logo-6.svg",
218
+ width: 2749,
219
+ height: 4124,
220
+ },
221
+ width: 2749,
222
+ height: 4124,
223
+ edit: {
224
+ background: "transparent",
225
+ zoom: 1,
226
+ crop: {
227
+ x: 0,
228
+ y: 0,
229
+ },
230
+ },
231
+ credits: null,
232
+ alt: "Customer Logo",
233
+ __TYPE__: "ImageContent",
234
+ thumbnails: {},
235
+ },
236
+ ],
237
+ [
238
+ "link",
239
+ {
240
+ __TYPE__: "LinkContent",
241
+ value: {
242
+ __TYPE__: "ExternalLink",
243
+ url: "https://prismic.io",
244
+ target: "",
245
+ },
246
+ },
247
+ ],
248
+ ],
249
+ },
250
+ ],
251
+ },
252
+ ];
253
+
254
+ export const model: SharedSlice = {
255
+ id: "customer_logos",
256
+ type: "SharedSlice",
257
+ name: "CustomerLogos",
258
+ description: "CustomerLogos",
259
+ variations: [
260
+ {
261
+ id: "default",
262
+ name: "Default",
263
+ docURL: "...",
264
+ version: "initial",
265
+ description: "Default",
266
+ imageUrl: "",
267
+ primary: {
268
+ eyebrowHeadline: {
269
+ type: "StructuredText",
270
+ config: {
271
+ label: "eyebrowHeadline",
272
+ placeholder: "",
273
+ allowTargetBlank: true,
274
+ single: "strong,em,rtl,heading2",
275
+ },
276
+ },
277
+ callToActionLabel: {
278
+ type: "Text",
279
+ config: {
280
+ label: "callToActionLabel",
281
+ placeholder: "",
282
+ },
283
+ },
284
+ callToActionLink: {
285
+ type: "Link",
286
+ config: {
287
+ label: "callToActionLink",
288
+ placeholder: "",
289
+ select: null,
290
+ },
291
+ },
292
+ },
293
+ items: {
294
+ image: {
295
+ type: "Image",
296
+ config: {
297
+ label: "image",
298
+ constraint: {},
299
+ thumbnails: [],
300
+ },
301
+ },
302
+ link: {
303
+ type: "Link",
304
+ config: {
305
+ label: "link",
306
+ placeholder: "",
307
+ select: null,
308
+ },
309
+ },
310
+ },
311
+ },
312
+ ],
313
+ };