@usethrottle/builder-schema 0.1.0 → 0.1.2
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/__tests__/fixtures/parity/01-hero-boxed.json +68 -0
- package/__tests__/fixtures/parity/02-full-bleed-image-hero.json +61 -0
- package/__tests__/fixtures/parity/03-two-columns-50-50.json +66 -0
- package/__tests__/fixtures/parity/04-three-columns-phone-widths.json +87 -0
- package/__tests__/fixtures/parity/05-four-columns-tablet-two-by-two.json +108 -0
- package/__tests__/fixtures/parity/06-inner-section-in-column.json +101 -0
- package/__tests__/fixtures/parity/07-hidden-on-phone.json +47 -0
- package/__tests__/fixtures/parity/08-device-specific-text-and-size.json +46 -0
- package/__tests__/fixtures/parity/09-every-basic-widget.json +100 -0
- package/__tests__/fixtures/parity/10-header-part.json +87 -0
- package/__tests__/fixtures/parity/11-footer-part.json +105 -0
- package/__tests__/fixtures/parity/12-announcement-bar.json +34 -0
- package/__tests__/fixtures/parity/13-product-slot-context.json +69 -0
- package/__tests__/fixtures/parity/14-published-snapshot-with-assets-and-custom-widget.json +84 -0
- package/__tests__/fixtures/parity/15-empty-document.json +4 -0
- package/__tests__/fixtures/parity/16-product-grid-and-featured.json +140 -0
- package/__tests__/fixtures/parity/17-collection-shelf-and-categories.json +153 -0
- package/__tests__/fixtures/parity/18-search-switches-and-greeting.json +80 -0
- package/__tests__/fixtures/parity/19-shop-slot-context.json +42 -0
- package/dist/index.cjs +240 -225
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +240 -225
- package/package.json +8 -3
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"sections": [
|
|
4
|
+
{
|
|
5
|
+
"id": "s0000129",
|
|
6
|
+
"type": "section",
|
|
7
|
+
"props": {
|
|
8
|
+
"paddingY": "m"
|
|
9
|
+
},
|
|
10
|
+
"columns": [
|
|
11
|
+
{
|
|
12
|
+
"id": "c0000123",
|
|
13
|
+
"type": "column",
|
|
14
|
+
"props": {
|
|
15
|
+
"width": 40
|
|
16
|
+
},
|
|
17
|
+
"children": [
|
|
18
|
+
{
|
|
19
|
+
"id": "w0000122",
|
|
20
|
+
"type": "catalog.search-box",
|
|
21
|
+
"v": 1,
|
|
22
|
+
"props": {}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "c0000126",
|
|
28
|
+
"type": "column",
|
|
29
|
+
"props": {
|
|
30
|
+
"width": 30
|
|
31
|
+
},
|
|
32
|
+
"children": [
|
|
33
|
+
{
|
|
34
|
+
"id": "w0000124",
|
|
35
|
+
"type": "catalog.locale-switch",
|
|
36
|
+
"v": 1,
|
|
37
|
+
"props": {}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"id": "w0000125",
|
|
41
|
+
"type": "catalog.currency-switch",
|
|
42
|
+
"v": 1,
|
|
43
|
+
"props": {}
|
|
44
|
+
}
|
|
45
|
+
]
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"id": "c0000128",
|
|
49
|
+
"type": "column",
|
|
50
|
+
"props": {
|
|
51
|
+
"width": 30
|
|
52
|
+
},
|
|
53
|
+
"children": [
|
|
54
|
+
{
|
|
55
|
+
"id": "w0000127",
|
|
56
|
+
"type": "commerce.customer-greeting",
|
|
57
|
+
"v": 1,
|
|
58
|
+
"props": {
|
|
59
|
+
"greeting": {
|
|
60
|
+
"en": "Welcome back, {name}"
|
|
61
|
+
},
|
|
62
|
+
"guest": {
|
|
63
|
+
"en": "Welcome, guest"
|
|
64
|
+
},
|
|
65
|
+
"align": "left",
|
|
66
|
+
"size": "m"
|
|
67
|
+
},
|
|
68
|
+
"data": {
|
|
69
|
+
"customer": {
|
|
70
|
+
"source": "throttle.customer",
|
|
71
|
+
"params": {}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
]
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"sections": [
|
|
4
|
+
{
|
|
5
|
+
"id": "s0000132",
|
|
6
|
+
"type": "section",
|
|
7
|
+
"props": {
|
|
8
|
+
"paddingY": "l"
|
|
9
|
+
},
|
|
10
|
+
"columns": [
|
|
11
|
+
{
|
|
12
|
+
"id": "c0000131",
|
|
13
|
+
"type": "column",
|
|
14
|
+
"props": {
|
|
15
|
+
"width": 100
|
|
16
|
+
},
|
|
17
|
+
"children": [
|
|
18
|
+
{
|
|
19
|
+
"id": "w0000130",
|
|
20
|
+
"type": "catalog.collection-shelf",
|
|
21
|
+
"v": 1,
|
|
22
|
+
"props": {
|
|
23
|
+
"title": {
|
|
24
|
+
"en": "More from this collection"
|
|
25
|
+
},
|
|
26
|
+
"layout": "grid",
|
|
27
|
+
"columnsDesktop": 4,
|
|
28
|
+
"columnsMobile": 2,
|
|
29
|
+
"showViewAll": false
|
|
30
|
+
},
|
|
31
|
+
"data": {
|
|
32
|
+
"collection": {
|
|
33
|
+
"source": "context.listing"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}
|