@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.
- package/dist/AlternateGrid/javascript.vue +228 -0
- package/dist/AlternateGrid/screenshot-default.png +0 -0
- package/dist/AlternateGrid/screenshot-imageRight.png +0 -0
- package/dist/AlternateGrid/typescript.vue +235 -0
- package/dist/CustomerLogos/javascript.vue +117 -0
- package/dist/CustomerLogos/screenshot-default.png +0 -0
- package/dist/CustomerLogos/typescript.vue +124 -0
- package/dist/plugin.cjs +4 -1
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +4 -1
- package/dist/plugin.js.map +1 -1
- package/dist/sliceTemplates/AlternateGrid/index.cjs +436 -0
- package/dist/sliceTemplates/AlternateGrid/index.cjs.map +1 -0
- package/dist/sliceTemplates/AlternateGrid/index.d.ts +8 -0
- package/dist/sliceTemplates/AlternateGrid/index.js +436 -0
- package/dist/sliceTemplates/AlternateGrid/index.js.map +1 -0
- package/dist/sliceTemplates/CallToAction/index.cjs +264 -0
- package/dist/sliceTemplates/CallToAction/index.cjs.map +1 -0
- package/dist/sliceTemplates/CallToAction/index.d.ts +8 -0
- package/dist/sliceTemplates/CallToAction/index.js +264 -0
- package/dist/sliceTemplates/CallToAction/index.js.map +1 -0
- package/dist/sliceTemplates/CustomerLogos/index.cjs +314 -0
- package/dist/sliceTemplates/CustomerLogos/index.cjs.map +1 -0
- package/dist/sliceTemplates/CustomerLogos/index.d.ts +7 -0
- package/dist/sliceTemplates/CustomerLogos/index.js +314 -0
- package/dist/sliceTemplates/CustomerLogos/index.js.map +1 -0
- package/package.json +3 -3
- package/src/plugin.ts +4 -1
- package/src/sliceTemplates/AlternateGrid/index.ts +441 -0
- package/src/sliceTemplates/CallToAction/index.ts +265 -0
- package/src/sliceTemplates/CustomerLogos/index.ts +313 -0
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const screenshotPaths = {
|
|
4
|
+
default: "CallToAction/screenshot-default.png",
|
|
5
|
+
alignLeft: "CallToAction/screenshot-alignLeft.png"
|
|
6
|
+
};
|
|
7
|
+
const mocks = [
|
|
8
|
+
{
|
|
9
|
+
__TYPE__: "SharedSliceContent",
|
|
10
|
+
variation: "default",
|
|
11
|
+
primary: {
|
|
12
|
+
title: {
|
|
13
|
+
__TYPE__: "StructuredTextContent",
|
|
14
|
+
value: [
|
|
15
|
+
{
|
|
16
|
+
type: "heading1",
|
|
17
|
+
content: {
|
|
18
|
+
text: "Collector Slices kit",
|
|
19
|
+
spans: []
|
|
20
|
+
},
|
|
21
|
+
direction: "ltr"
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
paragraph: {
|
|
26
|
+
__TYPE__: "StructuredTextContent",
|
|
27
|
+
value: [
|
|
28
|
+
{
|
|
29
|
+
type: "paragraph",
|
|
30
|
+
content: {
|
|
31
|
+
text: "It’s very easy to create stylish and beautiful prototypes for your future projects, both graphical and dynamic.",
|
|
32
|
+
spans: []
|
|
33
|
+
},
|
|
34
|
+
direction: "ltr"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
buttonLink: {
|
|
39
|
+
__TYPE__: "LinkContent",
|
|
40
|
+
value: {
|
|
41
|
+
__TYPE__: "ExternalLink",
|
|
42
|
+
url: "https://twitter.com/prismicio"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
buttonlabel: {
|
|
46
|
+
__TYPE__: "FieldContent",
|
|
47
|
+
type: "Text",
|
|
48
|
+
value: "Click here"
|
|
49
|
+
},
|
|
50
|
+
image: {
|
|
51
|
+
origin: {
|
|
52
|
+
id: "9aOswReDKPo",
|
|
53
|
+
url: "https://images.unsplash.com/photo-1523049673857-eb18f1d7b578?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwxOXx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85",
|
|
54
|
+
width: 8040,
|
|
55
|
+
height: 6024
|
|
56
|
+
},
|
|
57
|
+
url: "https://images.unsplash.com/photo-1523049673857-eb18f1d7b578?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwxOXx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85",
|
|
58
|
+
width: 8040,
|
|
59
|
+
height: 6024,
|
|
60
|
+
edit: {
|
|
61
|
+
background: "transparent",
|
|
62
|
+
zoom: 1,
|
|
63
|
+
crop: {
|
|
64
|
+
x: 0,
|
|
65
|
+
y: 0
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
credits: null,
|
|
69
|
+
alt: "Example Image",
|
|
70
|
+
__TYPE__: "ImageContent",
|
|
71
|
+
thumbnails: {}
|
|
72
|
+
},
|
|
73
|
+
buttonLabel: {
|
|
74
|
+
__TYPE__: "FieldContent",
|
|
75
|
+
type: "Text",
|
|
76
|
+
value: "Learn more"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
items: []
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
__TYPE__: "SharedSliceContent",
|
|
83
|
+
variation: "alignLeft",
|
|
84
|
+
primary: {
|
|
85
|
+
image: {
|
|
86
|
+
origin: {
|
|
87
|
+
id: "euqiHwS38Rw",
|
|
88
|
+
url: "https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85",
|
|
89
|
+
width: 2500,
|
|
90
|
+
height: 2500
|
|
91
|
+
},
|
|
92
|
+
url: "https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85",
|
|
93
|
+
width: 2500,
|
|
94
|
+
height: 2500,
|
|
95
|
+
edit: {
|
|
96
|
+
background: "transparent",
|
|
97
|
+
zoom: 1,
|
|
98
|
+
crop: {
|
|
99
|
+
x: 0,
|
|
100
|
+
y: 0
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
credits: null,
|
|
104
|
+
alt: "Example Image",
|
|
105
|
+
__TYPE__: "ImageContent",
|
|
106
|
+
thumbnails: {}
|
|
107
|
+
},
|
|
108
|
+
title: {
|
|
109
|
+
__TYPE__: "StructuredTextContent",
|
|
110
|
+
value: [
|
|
111
|
+
{
|
|
112
|
+
type: "heading1",
|
|
113
|
+
content: {
|
|
114
|
+
text: "Collector Slices kit",
|
|
115
|
+
spans: []
|
|
116
|
+
},
|
|
117
|
+
direction: "ltr"
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
paragraph: {
|
|
122
|
+
__TYPE__: "StructuredTextContent",
|
|
123
|
+
value: [
|
|
124
|
+
{
|
|
125
|
+
type: "paragraph",
|
|
126
|
+
content: {
|
|
127
|
+
text: "It’s very easy to create stylish and beautiful prototypes for your future projects, both graphical and dynamic.",
|
|
128
|
+
spans: []
|
|
129
|
+
},
|
|
130
|
+
direction: "ltr"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
},
|
|
134
|
+
buttonLink: {
|
|
135
|
+
__TYPE__: "LinkContent",
|
|
136
|
+
value: {
|
|
137
|
+
__TYPE__: "ExternalLink",
|
|
138
|
+
url: "https://prismic.io"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
buttonLabel: {
|
|
142
|
+
__TYPE__: "FieldContent",
|
|
143
|
+
type: "Text",
|
|
144
|
+
value: "Learn more!"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
items: [
|
|
148
|
+
{
|
|
149
|
+
__TYPE__: "GroupItemContent",
|
|
150
|
+
value: []
|
|
151
|
+
}
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
];
|
|
155
|
+
const model = {
|
|
156
|
+
id: "call_to_action",
|
|
157
|
+
type: "SharedSlice",
|
|
158
|
+
name: "CallToAction",
|
|
159
|
+
description: "CallToAction",
|
|
160
|
+
variations: [
|
|
161
|
+
{
|
|
162
|
+
id: "default",
|
|
163
|
+
name: "Default",
|
|
164
|
+
docURL: "...",
|
|
165
|
+
version: "initial",
|
|
166
|
+
description: "Default",
|
|
167
|
+
imageUrl: "",
|
|
168
|
+
primary: {
|
|
169
|
+
image: {
|
|
170
|
+
type: "Image",
|
|
171
|
+
config: { label: "Image", constraint: {}, thumbnails: [] }
|
|
172
|
+
},
|
|
173
|
+
title: {
|
|
174
|
+
type: "StructuredText",
|
|
175
|
+
config: {
|
|
176
|
+
label: "title",
|
|
177
|
+
placeholder: "",
|
|
178
|
+
allowTargetBlank: true,
|
|
179
|
+
single: "heading1,heading2,heading3,heading4,heading5,heading6"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
paragraph: {
|
|
183
|
+
type: "StructuredText",
|
|
184
|
+
config: {
|
|
185
|
+
label: "paragraph",
|
|
186
|
+
placeholder: "",
|
|
187
|
+
allowTargetBlank: true,
|
|
188
|
+
single: "paragraph,preformatted,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
buttonLink: {
|
|
192
|
+
type: "Link",
|
|
193
|
+
config: {
|
|
194
|
+
label: "buttonLink",
|
|
195
|
+
placeholder: "Redirect URL for CTA button",
|
|
196
|
+
allowTargetBlank: true,
|
|
197
|
+
select: null
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
buttonLabel: {
|
|
201
|
+
type: "Text",
|
|
202
|
+
config: {
|
|
203
|
+
label: "buttonLabel",
|
|
204
|
+
placeholder: "Label for CTA button"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
items: {}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
id: "alignLeft",
|
|
212
|
+
name: "AlignLeft",
|
|
213
|
+
docURL: "...",
|
|
214
|
+
version: "initial",
|
|
215
|
+
description: "Default",
|
|
216
|
+
imageUrl: "",
|
|
217
|
+
primary: {
|
|
218
|
+
image: {
|
|
219
|
+
type: "Image",
|
|
220
|
+
config: { label: "Image", constraint: {}, thumbnails: [] }
|
|
221
|
+
},
|
|
222
|
+
title: {
|
|
223
|
+
type: "StructuredText",
|
|
224
|
+
config: {
|
|
225
|
+
label: "title",
|
|
226
|
+
placeholder: "",
|
|
227
|
+
allowTargetBlank: true,
|
|
228
|
+
single: "heading1,heading2,heading3,heading4,heading5,heading6"
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
paragraph: {
|
|
232
|
+
type: "StructuredText",
|
|
233
|
+
config: {
|
|
234
|
+
label: "paragraph",
|
|
235
|
+
placeholder: "",
|
|
236
|
+
allowTargetBlank: true,
|
|
237
|
+
single: "paragraph,preformatted,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
buttonLink: {
|
|
241
|
+
type: "Link",
|
|
242
|
+
config: {
|
|
243
|
+
label: "buttonLink",
|
|
244
|
+
placeholder: "Redirect URL for CTA button",
|
|
245
|
+
allowTargetBlank: true,
|
|
246
|
+
select: null
|
|
247
|
+
}
|
|
248
|
+
},
|
|
249
|
+
buttonLabel: {
|
|
250
|
+
type: "Text",
|
|
251
|
+
config: {
|
|
252
|
+
label: "buttonLabel",
|
|
253
|
+
placeholder: "Label for CTA button"
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
items: {}
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
};
|
|
261
|
+
exports.mocks = mocks;
|
|
262
|
+
exports.model = model;
|
|
263
|
+
exports.screenshotPaths = screenshotPaths;
|
|
264
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/sliceTemplates/CallToAction/index.ts"],"sourcesContent":["import type { SharedSlice } from \"@prismicio/types-internal/lib/customtypes\";\nimport { SharedSliceContent } from \"@prismicio/types-internal/lib/content\";\n\nexport const screenshotPaths = {\n\tdefault: \"CallToAction/screenshot-default.png\",\n\talignLeft: \"CallToAction/screenshot-alignLeft.png\",\n};\n\nexport const mocks: SharedSliceContent[] = [\n\t{\n\t\t__TYPE__: \"SharedSliceContent\",\n\t\tvariation: \"default\",\n\t\tprimary: {\n\t\t\ttitle: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"heading1\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"Collector Slices kit\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\tparagraph: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"paragraph\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"It’s very easy to create stylish and beautiful prototypes for your future projects, both graphical and dynamic.\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\tbuttonLink: {\n\t\t\t\t__TYPE__: \"LinkContent\",\n\t\t\t\tvalue: {\n\t\t\t\t\t__TYPE__: \"ExternalLink\",\n\t\t\t\t\turl: \"https://twitter.com/prismicio\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tbuttonlabel: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Click here\",\n\t\t\t},\n\t\t\timage: {\n\t\t\t\torigin: {\n\t\t\t\t\tid: \"9aOswReDKPo\",\n\t\t\t\t\turl: \"https://images.unsplash.com/photo-1523049673857-eb18f1d7b578?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwxOXx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\t\twidth: 8040,\n\t\t\t\t\theight: 6024,\n\t\t\t\t},\n\t\t\t\turl: \"https://images.unsplash.com/photo-1523049673857-eb18f1d7b578?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwxOXx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\twidth: 8040,\n\t\t\t\theight: 6024,\n\t\t\t\tedit: {\n\t\t\t\t\tbackground: \"transparent\",\n\t\t\t\t\tzoom: 1,\n\t\t\t\t\tcrop: {\n\t\t\t\t\t\tx: 0,\n\t\t\t\t\t\ty: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcredits: null,\n\t\t\t\talt: \"Example Image\",\n\t\t\t\t__TYPE__: \"ImageContent\",\n\t\t\t\tthumbnails: {},\n\t\t\t},\n\t\t\tbuttonLabel: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Learn more\",\n\t\t\t},\n\t\t},\n\t\titems: [],\n\t},\n\t{\n\t\t__TYPE__: \"SharedSliceContent\",\n\t\tvariation: \"alignLeft\",\n\t\tprimary: {\n\t\t\timage: {\n\t\t\t\torigin: {\n\t\t\t\t\tid: \"euqiHwS38Rw\",\n\t\t\t\t\turl: \"https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\t\twidth: 2500,\n\t\t\t\t\theight: 2500,\n\t\t\t\t},\n\t\t\t\turl: \"https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\twidth: 2500,\n\t\t\t\theight: 2500,\n\t\t\t\tedit: {\n\t\t\t\t\tbackground: \"transparent\",\n\t\t\t\t\tzoom: 1,\n\t\t\t\t\tcrop: {\n\t\t\t\t\t\tx: 0,\n\t\t\t\t\t\ty: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcredits: null,\n\t\t\t\talt: \"Example Image\",\n\t\t\t\t__TYPE__: \"ImageContent\",\n\t\t\t\tthumbnails: {},\n\t\t\t},\n\t\t\ttitle: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"heading1\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"Collector Slices kit\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\tparagraph: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"paragraph\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"It’s very easy to create stylish and beautiful prototypes for your future projects, both graphical and dynamic.\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\tbuttonLink: {\n\t\t\t\t__TYPE__: \"LinkContent\",\n\t\t\t\tvalue: {\n\t\t\t\t\t__TYPE__: \"ExternalLink\",\n\t\t\t\t\turl: \"https://prismic.io\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tbuttonLabel: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Learn more!\",\n\t\t\t},\n\t\t},\n\t\titems: [\n\t\t\t{\n\t\t\t\t__TYPE__: \"GroupItemContent\",\n\t\t\t\tvalue: [],\n\t\t\t},\n\t\t],\n\t},\n];\n\nexport const model: SharedSlice = {\n\tid: \"call_to_action\",\n\ttype: \"SharedSlice\",\n\tname: \"CallToAction\",\n\tdescription: \"CallToAction\",\n\tvariations: [\n\t\t{\n\t\t\tid: \"default\",\n\t\t\tname: \"Default\",\n\t\t\tdocURL: \"...\",\n\t\t\tversion: \"initial\",\n\t\t\tdescription: \"Default\",\n\t\t\timageUrl: \"\",\n\t\t\tprimary: {\n\t\t\t\timage: {\n\t\t\t\t\ttype: \"Image\",\n\t\t\t\t\tconfig: { label: \"Image\", constraint: {}, thumbnails: [] },\n\t\t\t\t},\n\t\t\t\ttitle: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"title\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tsingle: \"heading1,heading2,heading3,heading4,heading5,heading6\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tparagraph: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"paragraph\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tsingle:\n\t\t\t\t\t\t\t\"paragraph,preformatted,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tbuttonLink: {\n\t\t\t\t\ttype: \"Link\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"buttonLink\",\n\t\t\t\t\t\tplaceholder: \"Redirect URL for CTA button\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tselect: null,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tbuttonLabel: {\n\t\t\t\t\ttype: \"Text\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"buttonLabel\",\n\t\t\t\t\t\tplaceholder: \"Label for CTA button\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\titems: {},\n\t\t},\n\t\t{\n\t\t\tid: \"alignLeft\",\n\t\t\tname: \"AlignLeft\",\n\t\t\tdocURL: \"...\",\n\t\t\tversion: \"initial\",\n\t\t\tdescription: \"Default\",\n\t\t\timageUrl: \"\",\n\t\t\tprimary: {\n\t\t\t\timage: {\n\t\t\t\t\ttype: \"Image\",\n\t\t\t\t\tconfig: { label: \"Image\", constraint: {}, thumbnails: [] },\n\t\t\t\t},\n\t\t\t\ttitle: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"title\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tsingle: \"heading1,heading2,heading3,heading4,heading5,heading6\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tparagraph: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"paragraph\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tsingle:\n\t\t\t\t\t\t\t\"paragraph,preformatted,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tbuttonLink: {\n\t\t\t\t\ttype: \"Link\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"buttonLink\",\n\t\t\t\t\t\tplaceholder: \"Redirect URL for CTA button\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tselect: null,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tbuttonLabel: {\n\t\t\t\t\ttype: \"Text\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"buttonLabel\",\n\t\t\t\t\t\tplaceholder: \"Label for CTA button\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\titems: {},\n\t\t},\n\t],\n};\n"],"names":[],"mappings":";;AAGO,MAAM,kBAAkB;AAAA,EAC9B,SAAS;AAAA,EACT,WAAW;;AAGL,MAAM,QAA8B;AAAA,EAC1C;AAAA,IACC,UAAU;AAAA,IACV,WAAW;AAAA,IACX,SAAS;AAAA,MACR,OAAO;AAAA,QACN,UAAU;AAAA,QACV,OAAO;AAAA,UACN;AAAA,YACC,MAAM;AAAA,YACN,SAAS;AAAA,cACR,MAAM;AAAA,cACN,OAAO,CAAE;AAAA,YACT;AAAA,YACD,WAAW;AAAA,UACX;AAAA,QACD;AAAA,MACD;AAAA,MACD,WAAW;AAAA,QACV,UAAU;AAAA,QACV,OAAO;AAAA,UACN;AAAA,YACC,MAAM;AAAA,YACN,SAAS;AAAA,cACR,MAAM;AAAA,cACN,OAAO,CAAE;AAAA,YACT;AAAA,YACD,WAAW;AAAA,UACX;AAAA,QACD;AAAA,MACD;AAAA,MACD,YAAY;AAAA,QACX,UAAU;AAAA,QACV,OAAO;AAAA,UACN,UAAU;AAAA,UACV,KAAK;AAAA,QACL;AAAA,MACD;AAAA,MACD,aAAa;AAAA,Q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AAA,QACD,aAAa;AAAA,UACZ,MAAM;AAAA,UACN,QAAQ;AAAA,YACP,OAAO;AAAA,YACP,aAAa;AAAA,UACb;AAAA,QACD;AAAA,MACD;AAAA,MACD,OAAO,CAAE;AAAA,IACT;AAAA,IACD;AAAA,MACC,IAAI;AAAA,MACJ,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,aAAa;AAAA,MACb,UAAU;AAAA,MACV,SAAS;AAAA,QACR,OAAO;AAAA,UACN,MAAM;AAAA,UACN,QAAQ,EAAE,OAAO,SAAS,YAAY,CAAE,GAAE,YAAY,GAAI;AAAA,QAC1D;AAAA,QACD,OAAO;AAAA,UACN,MAAM;AAAA,UACN,QAAQ;AAAA,YACP,OAAO;AAAA,YACP,aAAa;AAAA,YACb,kBAAkB;AAAA,YAClB,QAAQ;AAAA,UACR;AAAA,QACD;AAAA,QACD,WAAW;AAAA,UACV,MAAM;AAAA,UACN,QAAQ;AAAA,YACP,OAAO;AAAA,YACP,aAAa;AAAA,YACb,kBAAkB;AAAA,YAClB,QACC;AAAA,UACD;AAAA,QACD;AAAA,QACD,YAAY;AAAA,UACX,MAAM;AAAA,UACN,QAAQ;AAAA,YACP,OAAO;AAAA,YACP,aAAa;AAAA,YACb,kBAAkB;AAAA,YAClB,QAAQ;AAAA,UACR;AAAA,QACD;AAAA,QACD,aAAa;AAAA,UACZ,MAAM;AAAA,UACN,QAAQ;AAAA,YACP,OAAO;AAAA,YACP,aAAa;AAAA,UACb;AAAA,QACD;AAAA,MACD;AAAA,MACD,OAAO,CAAE;AAAA,IACT;AAAA,EACD;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { SharedSlice } from "@prismicio/types-internal/lib/customtypes";
|
|
2
|
+
import { SharedSliceContent } from "@prismicio/types-internal/lib/content";
|
|
3
|
+
export declare const screenshotPaths: {
|
|
4
|
+
default: string;
|
|
5
|
+
alignLeft: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const mocks: SharedSliceContent[];
|
|
8
|
+
export declare const model: SharedSlice;
|
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
const screenshotPaths = {
|
|
2
|
+
default: "CallToAction/screenshot-default.png",
|
|
3
|
+
alignLeft: "CallToAction/screenshot-alignLeft.png"
|
|
4
|
+
};
|
|
5
|
+
const mocks = [
|
|
6
|
+
{
|
|
7
|
+
__TYPE__: "SharedSliceContent",
|
|
8
|
+
variation: "default",
|
|
9
|
+
primary: {
|
|
10
|
+
title: {
|
|
11
|
+
__TYPE__: "StructuredTextContent",
|
|
12
|
+
value: [
|
|
13
|
+
{
|
|
14
|
+
type: "heading1",
|
|
15
|
+
content: {
|
|
16
|
+
text: "Collector Slices kit",
|
|
17
|
+
spans: []
|
|
18
|
+
},
|
|
19
|
+
direction: "ltr"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
paragraph: {
|
|
24
|
+
__TYPE__: "StructuredTextContent",
|
|
25
|
+
value: [
|
|
26
|
+
{
|
|
27
|
+
type: "paragraph",
|
|
28
|
+
content: {
|
|
29
|
+
text: "It’s very easy to create stylish and beautiful prototypes for your future projects, both graphical and dynamic.",
|
|
30
|
+
spans: []
|
|
31
|
+
},
|
|
32
|
+
direction: "ltr"
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
buttonLink: {
|
|
37
|
+
__TYPE__: "LinkContent",
|
|
38
|
+
value: {
|
|
39
|
+
__TYPE__: "ExternalLink",
|
|
40
|
+
url: "https://twitter.com/prismicio"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
buttonlabel: {
|
|
44
|
+
__TYPE__: "FieldContent",
|
|
45
|
+
type: "Text",
|
|
46
|
+
value: "Click here"
|
|
47
|
+
},
|
|
48
|
+
image: {
|
|
49
|
+
origin: {
|
|
50
|
+
id: "9aOswReDKPo",
|
|
51
|
+
url: "https://images.unsplash.com/photo-1523049673857-eb18f1d7b578?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwxOXx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85",
|
|
52
|
+
width: 8040,
|
|
53
|
+
height: 6024
|
|
54
|
+
},
|
|
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
|
+
edit: {
|
|
59
|
+
background: "transparent",
|
|
60
|
+
zoom: 1,
|
|
61
|
+
crop: {
|
|
62
|
+
x: 0,
|
|
63
|
+
y: 0
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
credits: null,
|
|
67
|
+
alt: "Example Image",
|
|
68
|
+
__TYPE__: "ImageContent",
|
|
69
|
+
thumbnails: {}
|
|
70
|
+
},
|
|
71
|
+
buttonLabel: {
|
|
72
|
+
__TYPE__: "FieldContent",
|
|
73
|
+
type: "Text",
|
|
74
|
+
value: "Learn more"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
items: []
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
__TYPE__: "SharedSliceContent",
|
|
81
|
+
variation: "alignLeft",
|
|
82
|
+
primary: {
|
|
83
|
+
image: {
|
|
84
|
+
origin: {
|
|
85
|
+
id: "euqiHwS38Rw",
|
|
86
|
+
url: "https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85",
|
|
87
|
+
width: 2500,
|
|
88
|
+
height: 2500
|
|
89
|
+
},
|
|
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
|
+
edit: {
|
|
94
|
+
background: "transparent",
|
|
95
|
+
zoom: 1,
|
|
96
|
+
crop: {
|
|
97
|
+
x: 0,
|
|
98
|
+
y: 0
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
credits: null,
|
|
102
|
+
alt: "Example Image",
|
|
103
|
+
__TYPE__: "ImageContent",
|
|
104
|
+
thumbnails: {}
|
|
105
|
+
},
|
|
106
|
+
title: {
|
|
107
|
+
__TYPE__: "StructuredTextContent",
|
|
108
|
+
value: [
|
|
109
|
+
{
|
|
110
|
+
type: "heading1",
|
|
111
|
+
content: {
|
|
112
|
+
text: "Collector Slices kit",
|
|
113
|
+
spans: []
|
|
114
|
+
},
|
|
115
|
+
direction: "ltr"
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
paragraph: {
|
|
120
|
+
__TYPE__: "StructuredTextContent",
|
|
121
|
+
value: [
|
|
122
|
+
{
|
|
123
|
+
type: "paragraph",
|
|
124
|
+
content: {
|
|
125
|
+
text: "It’s very easy to create stylish and beautiful prototypes for your future projects, both graphical and dynamic.",
|
|
126
|
+
spans: []
|
|
127
|
+
},
|
|
128
|
+
direction: "ltr"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
buttonLink: {
|
|
133
|
+
__TYPE__: "LinkContent",
|
|
134
|
+
value: {
|
|
135
|
+
__TYPE__: "ExternalLink",
|
|
136
|
+
url: "https://prismic.io"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
buttonLabel: {
|
|
140
|
+
__TYPE__: "FieldContent",
|
|
141
|
+
type: "Text",
|
|
142
|
+
value: "Learn more!"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
items: [
|
|
146
|
+
{
|
|
147
|
+
__TYPE__: "GroupItemContent",
|
|
148
|
+
value: []
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
}
|
|
152
|
+
];
|
|
153
|
+
const model = {
|
|
154
|
+
id: "call_to_action",
|
|
155
|
+
type: "SharedSlice",
|
|
156
|
+
name: "CallToAction",
|
|
157
|
+
description: "CallToAction",
|
|
158
|
+
variations: [
|
|
159
|
+
{
|
|
160
|
+
id: "default",
|
|
161
|
+
name: "Default",
|
|
162
|
+
docURL: "...",
|
|
163
|
+
version: "initial",
|
|
164
|
+
description: "Default",
|
|
165
|
+
imageUrl: "",
|
|
166
|
+
primary: {
|
|
167
|
+
image: {
|
|
168
|
+
type: "Image",
|
|
169
|
+
config: { label: "Image", constraint: {}, thumbnails: [] }
|
|
170
|
+
},
|
|
171
|
+
title: {
|
|
172
|
+
type: "StructuredText",
|
|
173
|
+
config: {
|
|
174
|
+
label: "title",
|
|
175
|
+
placeholder: "",
|
|
176
|
+
allowTargetBlank: true,
|
|
177
|
+
single: "heading1,heading2,heading3,heading4,heading5,heading6"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
paragraph: {
|
|
181
|
+
type: "StructuredText",
|
|
182
|
+
config: {
|
|
183
|
+
label: "paragraph",
|
|
184
|
+
placeholder: "",
|
|
185
|
+
allowTargetBlank: true,
|
|
186
|
+
single: "paragraph,preformatted,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl"
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
buttonLink: {
|
|
190
|
+
type: "Link",
|
|
191
|
+
config: {
|
|
192
|
+
label: "buttonLink",
|
|
193
|
+
placeholder: "Redirect URL for CTA button",
|
|
194
|
+
allowTargetBlank: true,
|
|
195
|
+
select: null
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
buttonLabel: {
|
|
199
|
+
type: "Text",
|
|
200
|
+
config: {
|
|
201
|
+
label: "buttonLabel",
|
|
202
|
+
placeholder: "Label for CTA button"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
items: {}
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
id: "alignLeft",
|
|
210
|
+
name: "AlignLeft",
|
|
211
|
+
docURL: "...",
|
|
212
|
+
version: "initial",
|
|
213
|
+
description: "Default",
|
|
214
|
+
imageUrl: "",
|
|
215
|
+
primary: {
|
|
216
|
+
image: {
|
|
217
|
+
type: "Image",
|
|
218
|
+
config: { label: "Image", constraint: {}, thumbnails: [] }
|
|
219
|
+
},
|
|
220
|
+
title: {
|
|
221
|
+
type: "StructuredText",
|
|
222
|
+
config: {
|
|
223
|
+
label: "title",
|
|
224
|
+
placeholder: "",
|
|
225
|
+
allowTargetBlank: true,
|
|
226
|
+
single: "heading1,heading2,heading3,heading4,heading5,heading6"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
paragraph: {
|
|
230
|
+
type: "StructuredText",
|
|
231
|
+
config: {
|
|
232
|
+
label: "paragraph",
|
|
233
|
+
placeholder: "",
|
|
234
|
+
allowTargetBlank: true,
|
|
235
|
+
single: "paragraph,preformatted,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl"
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
buttonLink: {
|
|
239
|
+
type: "Link",
|
|
240
|
+
config: {
|
|
241
|
+
label: "buttonLink",
|
|
242
|
+
placeholder: "Redirect URL for CTA button",
|
|
243
|
+
allowTargetBlank: true,
|
|
244
|
+
select: null
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
buttonLabel: {
|
|
248
|
+
type: "Text",
|
|
249
|
+
config: {
|
|
250
|
+
label: "buttonLabel",
|
|
251
|
+
placeholder: "Label for CTA button"
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
items: {}
|
|
256
|
+
}
|
|
257
|
+
]
|
|
258
|
+
};
|
|
259
|
+
export {
|
|
260
|
+
mocks,
|
|
261
|
+
model,
|
|
262
|
+
screenshotPaths
|
|
263
|
+
};
|
|
264
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/sliceTemplates/CallToAction/index.ts"],"sourcesContent":["import type { SharedSlice } from \"@prismicio/types-internal/lib/customtypes\";\nimport { SharedSliceContent } from \"@prismicio/types-internal/lib/content\";\n\nexport const screenshotPaths = {\n\tdefault: \"CallToAction/screenshot-default.png\",\n\talignLeft: \"CallToAction/screenshot-alignLeft.png\",\n};\n\nexport const mocks: SharedSliceContent[] = [\n\t{\n\t\t__TYPE__: \"SharedSliceContent\",\n\t\tvariation: \"default\",\n\t\tprimary: {\n\t\t\ttitle: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"heading1\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"Collector Slices kit\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\tparagraph: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"paragraph\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"It’s very easy to create stylish and beautiful prototypes for your future projects, both graphical and dynamic.\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\tbuttonLink: {\n\t\t\t\t__TYPE__: \"LinkContent\",\n\t\t\t\tvalue: {\n\t\t\t\t\t__TYPE__: \"ExternalLink\",\n\t\t\t\t\turl: \"https://twitter.com/prismicio\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tbuttonlabel: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Click here\",\n\t\t\t},\n\t\t\timage: {\n\t\t\t\torigin: {\n\t\t\t\t\tid: \"9aOswReDKPo\",\n\t\t\t\t\turl: \"https://images.unsplash.com/photo-1523049673857-eb18f1d7b578?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwxOXx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\t\twidth: 8040,\n\t\t\t\t\theight: 6024,\n\t\t\t\t},\n\t\t\t\turl: \"https://images.unsplash.com/photo-1523049673857-eb18f1d7b578?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwxOXx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\twidth: 8040,\n\t\t\t\theight: 6024,\n\t\t\t\tedit: {\n\t\t\t\t\tbackground: \"transparent\",\n\t\t\t\t\tzoom: 1,\n\t\t\t\t\tcrop: {\n\t\t\t\t\t\tx: 0,\n\t\t\t\t\t\ty: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcredits: null,\n\t\t\t\talt: \"Example Image\",\n\t\t\t\t__TYPE__: \"ImageContent\",\n\t\t\t\tthumbnails: {},\n\t\t\t},\n\t\t\tbuttonLabel: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Learn more\",\n\t\t\t},\n\t\t},\n\t\titems: [],\n\t},\n\t{\n\t\t__TYPE__: \"SharedSliceContent\",\n\t\tvariation: \"alignLeft\",\n\t\tprimary: {\n\t\t\timage: {\n\t\t\t\torigin: {\n\t\t\t\t\tid: \"euqiHwS38Rw\",\n\t\t\t\t\turl: \"https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\t\twidth: 2500,\n\t\t\t\t\theight: 2500,\n\t\t\t\t},\n\t\t\t\turl: \"https://images.unsplash.com/photo-1595475207225-428b62bda831?crop=entropy&cs=srgb&fm=jpg&ixid=M3wzMzc0NjN8MHwxfHNlYXJjaHwyMHx8ZnJ1aXR8ZW58MHx8fHwxNjkzMjUxNTMxfDA&ixlib=rb-4.0.3&q=85\",\n\t\t\t\twidth: 2500,\n\t\t\t\theight: 2500,\n\t\t\t\tedit: {\n\t\t\t\t\tbackground: \"transparent\",\n\t\t\t\t\tzoom: 1,\n\t\t\t\t\tcrop: {\n\t\t\t\t\t\tx: 0,\n\t\t\t\t\t\ty: 0,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tcredits: null,\n\t\t\t\talt: \"Example Image\",\n\t\t\t\t__TYPE__: \"ImageContent\",\n\t\t\t\tthumbnails: {},\n\t\t\t},\n\t\t\ttitle: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"heading1\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"Collector Slices kit\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\tparagraph: {\n\t\t\t\t__TYPE__: \"StructuredTextContent\",\n\t\t\t\tvalue: [\n\t\t\t\t\t{\n\t\t\t\t\t\ttype: \"paragraph\",\n\t\t\t\t\t\tcontent: {\n\t\t\t\t\t\t\ttext: \"It’s very easy to create stylish and beautiful prototypes for your future projects, both graphical and dynamic.\",\n\t\t\t\t\t\t\tspans: [],\n\t\t\t\t\t\t},\n\t\t\t\t\t\tdirection: \"ltr\",\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t},\n\t\t\tbuttonLink: {\n\t\t\t\t__TYPE__: \"LinkContent\",\n\t\t\t\tvalue: {\n\t\t\t\t\t__TYPE__: \"ExternalLink\",\n\t\t\t\t\turl: \"https://prismic.io\",\n\t\t\t\t},\n\t\t\t},\n\t\t\tbuttonLabel: {\n\t\t\t\t__TYPE__: \"FieldContent\",\n\t\t\t\ttype: \"Text\",\n\t\t\t\tvalue: \"Learn more!\",\n\t\t\t},\n\t\t},\n\t\titems: [\n\t\t\t{\n\t\t\t\t__TYPE__: \"GroupItemContent\",\n\t\t\t\tvalue: [],\n\t\t\t},\n\t\t],\n\t},\n];\n\nexport const model: SharedSlice = {\n\tid: \"call_to_action\",\n\ttype: \"SharedSlice\",\n\tname: \"CallToAction\",\n\tdescription: \"CallToAction\",\n\tvariations: [\n\t\t{\n\t\t\tid: \"default\",\n\t\t\tname: \"Default\",\n\t\t\tdocURL: \"...\",\n\t\t\tversion: \"initial\",\n\t\t\tdescription: \"Default\",\n\t\t\timageUrl: \"\",\n\t\t\tprimary: {\n\t\t\t\timage: {\n\t\t\t\t\ttype: \"Image\",\n\t\t\t\t\tconfig: { label: \"Image\", constraint: {}, thumbnails: [] },\n\t\t\t\t},\n\t\t\t\ttitle: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"title\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tsingle: \"heading1,heading2,heading3,heading4,heading5,heading6\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tparagraph: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"paragraph\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tsingle:\n\t\t\t\t\t\t\t\"paragraph,preformatted,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tbuttonLink: {\n\t\t\t\t\ttype: \"Link\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"buttonLink\",\n\t\t\t\t\t\tplaceholder: \"Redirect URL for CTA button\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tselect: null,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tbuttonLabel: {\n\t\t\t\t\ttype: \"Text\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"buttonLabel\",\n\t\t\t\t\t\tplaceholder: \"Label for CTA button\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\titems: {},\n\t\t},\n\t\t{\n\t\t\tid: \"alignLeft\",\n\t\t\tname: \"AlignLeft\",\n\t\t\tdocURL: \"...\",\n\t\t\tversion: \"initial\",\n\t\t\tdescription: \"Default\",\n\t\t\timageUrl: \"\",\n\t\t\tprimary: {\n\t\t\t\timage: {\n\t\t\t\t\ttype: \"Image\",\n\t\t\t\t\tconfig: { label: \"Image\", constraint: {}, thumbnails: [] },\n\t\t\t\t},\n\t\t\t\ttitle: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"title\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tsingle: \"heading1,heading2,heading3,heading4,heading5,heading6\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tparagraph: {\n\t\t\t\t\ttype: \"StructuredText\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"paragraph\",\n\t\t\t\t\t\tplaceholder: \"\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tsingle:\n\t\t\t\t\t\t\t\"paragraph,preformatted,strong,em,hyperlink,image,embed,list-item,o-list-item,rtl\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tbuttonLink: {\n\t\t\t\t\ttype: \"Link\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"buttonLink\",\n\t\t\t\t\t\tplaceholder: \"Redirect URL for CTA button\",\n\t\t\t\t\t\tallowTargetBlank: true,\n\t\t\t\t\t\tselect: null,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\tbuttonLabel: {\n\t\t\t\t\ttype: \"Text\",\n\t\t\t\t\tconfig: {\n\t\t\t\t\t\tlabel: \"buttonLabel\",\n\t\t\t\t\t\tplaceholder: \"Label for CTA button\",\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\titems: {},\n\t\t},\n\t],\n};\n"],"names":[],"mappings":"AAGO,MAAM,kBAAkB;AAAA,EAC9B,SAAS;AAAA,EACT,WAAW;;AAGL,MAAM,QAA8B;AAAA,EAC1C;AAAA,IACC,UAAU;AAAA,IACV,WAAW;AAAA,IACX,SAAS;AAAA,MACR,OAAO;AAAA,QACN,UAAU;AAAA,QACV,OAAO;AAAA,UACN;AAAA,YACC,MAAM;AAAA,YACN,SAAS;AAAA,cACR,MAAM;AAAA,cACN,OAAO,CAAE;AAAA,YACT;AAAA,YACD,WAAW;AAAA,UACX;AAAA,QACD;AAAA,MACD;AAAA,MACD,WAAW;AAAA,QACV,UAAU;AAAA,QACV,OAAO;AAAA,UACN;AAAA,YACC,MAAM;AAAA,YACN,SAAS;AAAA,cACR,MAAM;AAAA,cACN,OAAO,CAAE;AAAA,YACT;AAAA,YACD,WAAW;AAAA,UACX;AAAA,QACD;AAAA,MACD;AAAA,MACD,YAAY;AAAA,QACX,UAAU;AAAA,QACV,OAAO;AAAA,UACN,UAAU;AAAA,UACV,KAAK;AAAA,QACL;AAAA,MACD;AAAA,MACD,aAAa;AAAA,QACZ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