Skip to content

Commit 934de69

Browse files
committed
Move pages folder and fix integer default values
1 parent 520abd8 commit 934de69

35 files changed

+3336
-3792
lines changed

packages/core/cms/faststore/base.jsonc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,7 @@
1212
// Every component schema must extend this base schema.
1313
"base-component": {
1414
"type": "object",
15-
"required": [
16-
"$componentKey",
17-
"$componentTitle"
18-
],
15+
"required": ["$componentKey", "$componentTitle"],
1916
"properties": {
2017
"$componentKey": {
2118
"type": "string",

packages/core/cms/faststore/components/cms_component__alert.jsonc

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,17 @@
11
{
2-
"$extends": [
3-
"#/$defs/base-component"
4-
],
2+
"$extends": ["#/$defs/base-component"],
53
"$componentKey": "Alert",
64
"$componentTitle": "Alert",
75
"title": "Alert",
86
"description": "Add an alert",
97
"type": "object",
10-
"required": [
11-
"icon",
12-
"content",
13-
"dismissible"
14-
],
8+
"required": ["icon", "content", "dismissible"],
159
"properties": {
1610
"icon": {
1711
"type": "string",
1812
"title": "Icon",
19-
"enumNames": [
20-
"Bell",
21-
"BellRinging",
22-
"Checked",
23-
"Info",
24-
"Truck",
25-
"User"
26-
],
27-
"enum": [
28-
"Bell",
29-
"BellRinging",
30-
"Checked",
31-
"Info",
32-
"Truck",
33-
"User"
34-
]
13+
"enumNames": ["Bell", "BellRinging", "Checked", "Info", "Truck", "User"],
14+
"enum": ["Bell", "BellRinging", "Checked", "Info", "Truck", "User"]
3515
},
3616
"content": {
3717
"type": "string",

packages/core/cms/faststore/components/cms_component__bannernewsletter.jsonc

Lines changed: 17 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,16 @@
11
{
2-
"$extends": [
3-
"#/$defs/base-component"
4-
],
2+
"$extends": ["#/$defs/base-component"],
53
"$componentKey": "BannerNewsletter",
64
"$componentTitle": "Banner Newsletter",
75
"title": "Banner Newsletter",
86
"description": "Add newsletter with a banner",
97
"type": "object",
10-
"required": [
11-
"banner",
12-
"newsletter"
13-
],
8+
"required": ["banner", "newsletter"],
149
"properties": {
1510
"banner": {
1611
"title": "Banner",
1712
"type": "object",
18-
"required": [
19-
"title",
20-
"link"
21-
],
13+
"required": ["title", "link"],
2214
"properties": {
2315
"title": {
2416
"title": "Title",
@@ -33,10 +25,7 @@
3325
"link": {
3426
"title": "Call to Action",
3527
"type": "object",
36-
"required": [
37-
"text",
38-
"url"
39-
],
28+
"required": ["text", "url"],
4029
"properties": {
4130
"text": {
4231
"title": "Text",
@@ -53,40 +42,23 @@
5342
"colorVariant": {
5443
"title": "Color variant",
5544
"type": "string",
56-
"enumNames": [
57-
"Main",
58-
"Light",
59-
"Accent"
60-
],
61-
"enum": [
62-
"main",
63-
"light",
64-
"accent"
65-
],
45+
"enumNames": ["Main", "Light", "Accent"],
46+
"enum": ["main", "light", "accent"],
6647
"default": "light"
6748
},
6849
"variant": {
6950
"title": "Variant",
7051
"type": "string",
71-
"enumNames": [
72-
"Primary",
73-
"Secondary"
74-
],
75-
"enum": [
76-
"primary",
77-
"secondary"
78-
],
52+
"enumNames": ["Primary", "Secondary"],
53+
"enum": ["primary", "secondary"],
7954
"default": "secondary"
8055
}
8156
}
8257
},
8358
"newsletter": {
8459
"title": "Newsletter",
8560
"type": "object",
86-
"required": [
87-
"title",
88-
"description"
89-
],
61+
"required": ["title", "description"],
9062
"properties": {
9163
"icon": {
9264
"title": "Icon",
@@ -95,12 +67,8 @@
9567
"icon": {
9668
"title": "Icon",
9769
"type": "string",
98-
"enumNames": [
99-
"Envelope"
100-
],
101-
"enum": [
102-
"Envelope"
103-
],
70+
"enumNames": ["Envelope"],
71+
"enum": ["Envelope"],
10472
"default": "Envelope"
10573
},
10674
"alt": {
@@ -155,16 +123,8 @@
155123
"colorVariant": {
156124
"title": "Color variant",
157125
"type": "string",
158-
"enumNames": [
159-
"Main",
160-
"Light",
161-
"Accent"
162-
],
163-
"enum": [
164-
"main",
165-
"light",
166-
"accent"
167-
],
126+
"enumNames": ["Main", "Light", "Accent"],
127+
"enum": ["main", "light", "accent"],
168128
"default": "main"
169129
},
170130
"toastSubscribe": {
@@ -186,12 +146,8 @@
186146
"icon": {
187147
"title": "Icon",
188148
"type": "string",
189-
"enumNames": [
190-
"CircleWavyCheck"
191-
],
192-
"enum": [
193-
"CircleWavyCheck"
194-
],
149+
"enumNames": ["CircleWavyCheck"],
150+
"enum": ["CircleWavyCheck"],
195151
"default": "CircleWavyCheck"
196152
}
197153
}
@@ -215,12 +171,8 @@
215171
"icon": {
216172
"title": "Icon",
217173
"type": "string",
218-
"enumNames": [
219-
"CircleWavyWarning"
220-
],
221-
"enum": [
222-
"CircleWavyWarning"
223-
],
174+
"enumNames": ["CircleWavyWarning"],
175+
"enum": ["CircleWavyWarning"],
224176
"default": "CircleWavyWarning"
225177
}
226178
}
Lines changed: 7 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
{
2-
"$extends": [
3-
"#/$defs/base-component"
4-
],
2+
"$extends": ["#/$defs/base-component"],
53
"$componentKey": "BannerText",
64
"$componentTitle": "Banner Text",
75
"title": "Banner Text",
86
"description": "Add a quick promotion with a text/action pair",
97
"type": "object",
10-
"required": [
11-
"title",
12-
"caption",
13-
"link"
14-
],
8+
"required": ["title", "caption", "link"],
159
"properties": {
1610
"title": {
1711
"title": "Title",
@@ -24,10 +18,7 @@
2418
"link": {
2519
"title": "Call to Action",
2620
"type": "object",
27-
"required": [
28-
"text",
29-
"url"
30-
],
21+
"required": ["text", "url"],
3122
"properties": {
3223
"text": {
3324
"title": "Text",
@@ -47,28 +38,14 @@
4738
"colorVariant": {
4839
"type": "string",
4940
"title": "Color variant",
50-
"enumNames": [
51-
"Main",
52-
"Light",
53-
"Accent"
54-
],
55-
"enum": [
56-
"main",
57-
"light",
58-
"accent"
59-
]
41+
"enumNames": ["Main", "Light", "Accent"],
42+
"enum": ["main", "light", "accent"]
6043
},
6144
"variant": {
6245
"type": "string",
6346
"title": "Variant",
64-
"enumNames": [
65-
"Primary",
66-
"Secondary"
67-
],
68-
"enum": [
69-
"primary",
70-
"secondary"
71-
]
47+
"enumNames": ["Primary", "Secondary"],
48+
"enum": ["primary", "secondary"]
7249
}
7350
}
7451
}

packages/core/cms/faststore/components/cms_component__breadcrumb.jsonc

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
11
{
2-
"$extends": [
3-
"#/$defs/base-component"
4-
],
2+
"$extends": ["#/$defs/base-component"],
53
"$componentKey": "Breadcrumb",
64
"$componentTitle": "Breadcrumb",
75
"title": "Breadcrumb",
86
"description": "Configure the breadcrumb icon and depth",
97
"type": "object",
10-
"required": [
11-
"icon",
12-
"alt"
13-
],
8+
"required": ["icon", "alt"],
149
"properties": {
1510
"icon": {
1611
"title": "Icon",
1712
"type": "string",
18-
"enumNames": [
19-
"House"
20-
],
21-
"enum": [
22-
"House"
23-
]
13+
"enumNames": ["House"],
14+
"enum": ["House"]
2415
},
2516
"alt": {
2617
"title": "Alternative Label",

packages/core/cms/faststore/components/cms_component__cartsidebar.jsonc

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"$extends": [
3-
"#/$defs/base-component"
4-
],
2+
"$extends": ["#/$defs/base-component"],
53
"$componentKey": "CartSidebar",
64
"$componentTitle": "Cart Sidebar",
75
"title": "Cart Sidebar",
@@ -20,10 +18,7 @@
2018
"icon": {
2119
"title": "Icon",
2220
"type": "object",
23-
"required": [
24-
"icon",
25-
"alt"
26-
],
21+
"required": ["icon", "alt"],
2722
"properties": {
2823
"icon": {
2924
"title": "Icon",
@@ -63,11 +58,7 @@
6358
"checkoutButton": {
6459
"title": "Checkout button",
6560
"type": "object",
66-
"required": [
67-
"label",
68-
"loadingLabel",
69-
"icon"
70-
],
61+
"required": ["label", "loadingLabel", "icon"],
7162
"properties": {
7263
"label": {
7364
"title": "Label",
@@ -82,20 +73,13 @@
8273
"icon": {
8374
"title": "Icon",
8475
"type": "object",
85-
"required": [
86-
"icon",
87-
"alt"
88-
],
76+
"required": ["icon", "alt"],
8977
"properties": {
9078
"icon": {
9179
"title": "Icon",
9280
"type": "string",
93-
"enumNames": [
94-
"ArrowRight"
95-
],
96-
"enum": [
97-
"ArrowRight"
98-
],
81+
"enumNames": ["ArrowRight"],
82+
"enum": ["ArrowRight"],
9983
"default": "ArrowRight"
10084
},
10185
"alt": {

packages/core/cms/faststore/components/cms_component__children.jsonc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
{
2-
"$extends": [
3-
"#/$defs/base-component"
4-
],
2+
"$extends": ["#/$defs/base-component"],
53
"$componentKey": "Children",
64
"$componentTitle": "Children",
75
"title": "Children",

0 commit comments

Comments
 (0)