@solidnumber/cli 2.34.1 → 2.34.3
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/CHANGELOG.md +41 -0
- package/README.md +1 -1
- package/dist/commands/domains.d.ts +8 -0
- package/dist/commands/domains.d.ts.map +1 -1
- package/dist/commands/domains.js +29 -3
- package/dist/commands/domains.js.map +1 -1
- package/dist/commands/drafts.d.ts.map +1 -1
- package/dist/commands/drafts.js +6 -6
- package/dist/commands/drafts.js.map +1 -1
- package/dist/commands/how-to.d.ts +10 -0
- package/dist/commands/how-to.d.ts.map +1 -1
- package/dist/commands/how-to.js +35 -1
- package/dist/commands/how-to.js.map +1 -1
- package/dist/commands/leads-test.d.ts +16 -0
- package/dist/commands/leads-test.d.ts.map +1 -1
- package/dist/commands/leads-test.js +42 -3
- package/dist/commands/leads-test.js.map +1 -1
- package/dist/commands/nest.d.ts +5 -0
- package/dist/commands/nest.d.ts.map +1 -1
- package/dist/commands/nest.js +76 -4
- package/dist/commands/nest.js.map +1 -1
- package/dist/commands/pages.d.ts.map +1 -1
- package/dist/commands/pages.js +5 -7
- package/dist/commands/pages.js.map +1 -1
- package/dist/commands/payment.js +13 -3
- package/dist/commands/payment.js.map +1 -1
- package/dist/commands/publish.d.ts +14 -0
- package/dist/commands/publish.d.ts.map +1 -1
- package/dist/commands/publish.js +34 -12
- package/dist/commands/publish.js.map +1 -1
- package/dist/commands/sandbox.js +3 -4
- package/dist/commands/sandbox.js.map +1 -1
- package/dist/data/cms-blocks.json +123 -100
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/api-client.d.ts +6 -0
- package/dist/lib/api-client.d.ts.map +1 -1
- package/dist/lib/api-client.js +10 -0
- package/dist/lib/api-client.js.map +1 -1
- package/dist/lib/cwd-guard.d.ts +12 -0
- package/dist/lib/cwd-guard.d.ts.map +1 -0
- package/dist/lib/cwd-guard.js +38 -0
- package/dist/lib/cwd-guard.js.map +1 -0
- package/dist/lib/owner-preview.d.ts +16 -0
- package/dist/lib/owner-preview.d.ts.map +1 -0
- package/dist/lib/owner-preview.js +46 -0
- package/dist/lib/owner-preview.js.map +1 -0
- package/package.json +1 -1
- package/platform-docs/llms.txt +5 -5
- package/dist/lib/command-count.d.ts +0 -15
- package/dist/lib/command-count.d.ts.map +0 -1
- package/dist/lib/command-count.js +0 -37
- package/dist/lib/command-count.js.map +0 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
"version": "synced-from-live-1",
|
|
4
4
|
"source": "solid-backend/schemas/block_schema.py (served live at GET /api/v1/cms/pages/schema)",
|
|
5
5
|
"extracted_from": "block types, props, list item fields, allowed values and examples: solid-backend/schemas/block_schema.py + block_shapes.py (scripts/sync-block-schema.ts); component names and categories: kept by hand",
|
|
6
|
-
"synced_at": "2026-
|
|
7
|
-
"note": "OFFLINE FALLBACK. `solid schema pages` fetches the live schema first and only uses this file when the API is unreachable
|
|
6
|
+
"synced_at": "2026-12-01",
|
|
7
|
+
"note": "OFFLINE FALLBACK. `solid schema pages` fetches the live schema first and only uses this file when the API is unreachable — output says so. GENERATED: run `npx ts-node scripts/sync-block-schema.ts`, do not edit."
|
|
8
8
|
},
|
|
9
9
|
"envelope": {
|
|
10
10
|
"sections": "array of block objects",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"props": {
|
|
75
75
|
"title": "string",
|
|
76
76
|
"subtitle": "string",
|
|
77
|
-
"items": "AccordionItem[]
|
|
77
|
+
"items": "AccordionItem[] — { id, title, content }",
|
|
78
78
|
"allowMultiple": "boolean"
|
|
79
79
|
},
|
|
80
80
|
"example": {
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
"example_source": "live",
|
|
92
92
|
"shows_when": "items has at least one entry",
|
|
93
93
|
"items": {
|
|
94
|
-
"items": "{id, title, content}
|
|
94
|
+
"items": "{id, title, content} — all three; content is plain text"
|
|
95
95
|
}
|
|
96
96
|
},
|
|
97
97
|
{
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"props": {
|
|
107
107
|
"title": "string",
|
|
108
108
|
"subtitle": "string",
|
|
109
|
-
"items": "ComparisonItem[]
|
|
109
|
+
"items": "ComparisonItem[] — { before, after, caption }"
|
|
110
110
|
},
|
|
111
111
|
"example": {
|
|
112
112
|
"type": "before-after",
|
|
@@ -139,9 +139,9 @@
|
|
|
139
139
|
"tiles"
|
|
140
140
|
],
|
|
141
141
|
"props": {
|
|
142
|
-
"tiles": "unknown
|
|
143
|
-
"heading": "unknown
|
|
144
|
-
"subheading": "unknown
|
|
142
|
+
"tiles": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
143
|
+
"heading": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
144
|
+
"subheading": "unknown — listed by the live schema; the bundled CLI data has no type for it"
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
{
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
"props": {
|
|
158
158
|
"title": "string",
|
|
159
159
|
"subtitle": "string",
|
|
160
|
-
"posts": "BlogPost[]
|
|
160
|
+
"posts": "BlogPost[] — { id, title, excerpt, image, href }",
|
|
161
161
|
"viewAllLink": "string",
|
|
162
162
|
"viewAllText": "string"
|
|
163
163
|
},
|
|
@@ -175,9 +175,9 @@
|
|
|
175
175
|
]
|
|
176
176
|
},
|
|
177
177
|
"example_source": "live",
|
|
178
|
-
"shows_when": "posts has at least one entry
|
|
178
|
+
"shows_when": "posts has at least one entry — it does not fetch posts itself",
|
|
179
179
|
"items": {
|
|
180
|
-
"posts": "{id, title, excerpt, image?, date?, category?, slug?}
|
|
180
|
+
"posts": "{id, title, excerpt, image?, date?, category?, slug?} — the link is /blog/<slug>"
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
{
|
|
@@ -195,8 +195,8 @@
|
|
|
195
195
|
"title": "string",
|
|
196
196
|
"subtitle": "string",
|
|
197
197
|
"services": "string[]",
|
|
198
|
-
"calendar_url": "unknown
|
|
199
|
-
"slot_duration": "unknown
|
|
198
|
+
"calendar_url": "unknown — accepted by the backend validator; the frontend block does not read it",
|
|
199
|
+
"slot_duration": "unknown — accepted by the backend validator; the frontend block does not read it"
|
|
200
200
|
},
|
|
201
201
|
"notes": "Pulls missing services from company context.",
|
|
202
202
|
"example": {
|
|
@@ -204,7 +204,7 @@
|
|
|
204
204
|
"title": "Book a visit"
|
|
205
205
|
},
|
|
206
206
|
"example_source": "live",
|
|
207
|
-
"shows_when": "always
|
|
207
|
+
"shows_when": "always — it reads the business's real services and times",
|
|
208
208
|
"items": {
|
|
209
209
|
"services": "a list of plain strings, used only as suggestions"
|
|
210
210
|
}
|
|
@@ -222,7 +222,7 @@
|
|
|
222
222
|
"props": {
|
|
223
223
|
"title": "string",
|
|
224
224
|
"subtitle": "string",
|
|
225
|
-
"hours": "DayHours[]
|
|
225
|
+
"hours": "DayHours[] — { day, open, close, closed }"
|
|
226
226
|
},
|
|
227
227
|
"notes": "If `hours` omitted, parses free-text hours from company context.",
|
|
228
228
|
"example": {
|
|
@@ -231,7 +231,7 @@
|
|
|
231
231
|
"hours": [
|
|
232
232
|
{
|
|
233
233
|
"day": "Monday",
|
|
234
|
-
"hours": "8am
|
|
234
|
+
"hours": "8am – 6pm"
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"day": "Sunday",
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
"example_source": "live",
|
|
243
243
|
"shows_when": "hours has an entry (left off, it reads the business's own hours if set)",
|
|
244
244
|
"items": {
|
|
245
|
-
"hours": "a LIST of {day, hours}
|
|
245
|
+
"hours": "a LIST of {day, hours} — day is the full name ('Monday'); hours is text ('8am – 6pm', or 'Closed')"
|
|
246
246
|
}
|
|
247
247
|
},
|
|
248
248
|
{
|
|
@@ -258,7 +258,7 @@
|
|
|
258
258
|
"required": [],
|
|
259
259
|
"props": {
|
|
260
260
|
"chat_id": "string",
|
|
261
|
-
"agent_id": "unknown
|
|
261
|
+
"agent_id": "unknown — accepted by the backend validator; the frontend block does not read it",
|
|
262
262
|
"position": "\"bottom-right\" | \"bottom-left\"",
|
|
263
263
|
"greeting": "string",
|
|
264
264
|
"primaryColor": "string"
|
|
@@ -276,19 +276,19 @@
|
|
|
276
276
|
"title"
|
|
277
277
|
],
|
|
278
278
|
"props": {
|
|
279
|
-
"title": "unknown
|
|
280
|
-
"eyebrow": "unknown
|
|
281
|
-
"subtitle": "unknown
|
|
282
|
-
"primaryCta": "unknown
|
|
283
|
-
"secondaryCta": "unknown
|
|
284
|
-
"asset": "unknown
|
|
285
|
-
"primaryCtaText": "unknown
|
|
286
|
-
"primaryCtaHref": "unknown
|
|
287
|
-
"secondaryCtaText": "unknown
|
|
288
|
-
"secondaryCtaHref": "unknown
|
|
289
|
-
"assetSrc": "unknown
|
|
290
|
-
"assetAlt": "unknown
|
|
291
|
-
"assetAlignment": "unknown
|
|
279
|
+
"title": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
280
|
+
"eyebrow": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
281
|
+
"subtitle": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
282
|
+
"primaryCta": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
283
|
+
"secondaryCta": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
284
|
+
"asset": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
285
|
+
"primaryCtaText": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
286
|
+
"primaryCtaHref": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
287
|
+
"secondaryCtaText": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
288
|
+
"secondaryCtaHref": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
289
|
+
"assetSrc": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
290
|
+
"assetAlt": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
291
|
+
"assetAlignment": "unknown — listed by the live schema; the bundled CLI data has no type for it"
|
|
292
292
|
}
|
|
293
293
|
},
|
|
294
294
|
{
|
|
@@ -308,9 +308,9 @@
|
|
|
308
308
|
"email": "string",
|
|
309
309
|
"phone": "string",
|
|
310
310
|
"address": "string",
|
|
311
|
-
"fields": "unknown
|
|
312
|
-
"submit_text": "unknown
|
|
313
|
-
"post_url": "unknown
|
|
311
|
+
"fields": "unknown — accepted by the backend validator; the frontend block does not read it",
|
|
312
|
+
"submit_text": "unknown — accepted by the backend validator; the frontend block does not read it",
|
|
313
|
+
"post_url": "unknown — accepted by the backend validator; the frontend block does not read it"
|
|
314
314
|
},
|
|
315
315
|
"notes": "The form sends a lead to this business with no setup. Extra fields arrive inside the message. Leave post_url off unless the form must go somewhere else.",
|
|
316
316
|
"example": {
|
|
@@ -333,9 +333,9 @@
|
|
|
333
333
|
]
|
|
334
334
|
},
|
|
335
335
|
"example_source": "live",
|
|
336
|
-
"shows_when": "always
|
|
336
|
+
"shows_when": "always — with nothing set it is a working form: name, email, phone, subject, message",
|
|
337
337
|
"items": {
|
|
338
|
-
"fields": "a name ('email') or {name, label?, type?, required?, placeholder?, options?}
|
|
338
|
+
"fields": "a name ('email') or {name, label?, type?, required?, placeholder?, options?} — type is text, email, tel, number, textarea or select; giving options makes it a select"
|
|
339
339
|
}
|
|
340
340
|
},
|
|
341
341
|
{
|
|
@@ -350,7 +350,7 @@
|
|
|
350
350
|
"ctaText": "string",
|
|
351
351
|
"ctaLink": "string"
|
|
352
352
|
},
|
|
353
|
-
"notes": "targetDate is an ISO date and time, e.g. 2026-12-01T09:00:00Z. With no title it reads 'Coming Soon'
|
|
353
|
+
"notes": "targetDate is an ISO date and time, e.g. 2026-12-01T09:00:00Z. With no title it reads 'Coming Soon' — set title and subtitle.",
|
|
354
354
|
"example": {
|
|
355
355
|
"type": "countdown",
|
|
356
356
|
"title": "Doors open",
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
"solid"
|
|
383
383
|
]
|
|
384
384
|
},
|
|
385
|
-
"notes": "A button shows only when its link goes somewhere
|
|
385
|
+
"notes": "A button shows only when its link goes somewhere — not empty and not '#'.",
|
|
386
386
|
"example": {
|
|
387
387
|
"type": "cta",
|
|
388
388
|
"title": "Ready when you are",
|
|
@@ -437,7 +437,7 @@
|
|
|
437
437
|
"props": {
|
|
438
438
|
"title": "string",
|
|
439
439
|
"subtitle": "string",
|
|
440
|
-
"faqs": "FAQItem[]
|
|
440
|
+
"faqs": "FAQItem[] — { id, question, answer }"
|
|
441
441
|
},
|
|
442
442
|
"example": {
|
|
443
443
|
"type": "faq",
|
|
@@ -453,7 +453,7 @@
|
|
|
453
453
|
"example_source": "live",
|
|
454
454
|
"shows_when": "faqs has at least one entry",
|
|
455
455
|
"items": {
|
|
456
|
-
"faqs": "{id, question, answer}
|
|
456
|
+
"faqs": "{id, question, answer} — the prop is faqs, not items"
|
|
457
457
|
}
|
|
458
458
|
},
|
|
459
459
|
{
|
|
@@ -469,7 +469,7 @@
|
|
|
469
469
|
"props": {
|
|
470
470
|
"title": "string",
|
|
471
471
|
"subtitle": "string",
|
|
472
|
-
"features": "Feature[]
|
|
472
|
+
"features": "Feature[] — { icon, title, description }",
|
|
473
473
|
"columns": "2 | 3 | 4",
|
|
474
474
|
"backgroundColor": "string"
|
|
475
475
|
},
|
|
@@ -505,7 +505,7 @@
|
|
|
505
505
|
"example_source": "live",
|
|
506
506
|
"shows_when": "features has an entry (left empty, it lists the business's own services if it has any)",
|
|
507
507
|
"items": {
|
|
508
|
-
"features": "{icon, title, description}
|
|
508
|
+
"features": "{icon, title, description} — icon is one of: Zap, Shield, Star, Rocket, Users, BarChart, Lock, Globe, Sparkles, Award, Hammer, Wrench, HardHat, Ruler, PaintRoller, Paintbrush, Drill, Building2, House, Truck, TreePine, Car, Package, Heart, Scissors, Utensils, Stethoscope, CircleCheck, Clock, MapPin, Phone, Calendar. Exact capitals; an unknown name shows Zap."
|
|
509
509
|
}
|
|
510
510
|
},
|
|
511
511
|
{
|
|
@@ -519,7 +519,7 @@
|
|
|
519
519
|
"props": {
|
|
520
520
|
"title": "string",
|
|
521
521
|
"subtitle": "string",
|
|
522
|
-
"images": "GalleryImage[]
|
|
522
|
+
"images": "GalleryImage[] — { id, src, alt, caption }",
|
|
523
523
|
"columns": "2 | 3 | 4",
|
|
524
524
|
"layout": "\"grid\" | \"masonry\""
|
|
525
525
|
},
|
|
@@ -548,7 +548,7 @@
|
|
|
548
548
|
"example_source": "live",
|
|
549
549
|
"shows_when": "images has at least one entry",
|
|
550
550
|
"items": {
|
|
551
|
-
"images": "{url, alt?, caption?}
|
|
551
|
+
"images": "{url, alt?, caption?} — the field is url, not src"
|
|
552
552
|
}
|
|
553
553
|
},
|
|
554
554
|
{
|
|
@@ -566,7 +566,7 @@
|
|
|
566
566
|
"subtitle": "string",
|
|
567
567
|
"overallRating": "number",
|
|
568
568
|
"totalReviews": "number",
|
|
569
|
-
"reviews": "Review[]
|
|
569
|
+
"reviews": "Review[] — { author, rating, text, date }"
|
|
570
570
|
},
|
|
571
571
|
"notes": "Leave reviews off to show the business's connected Google reviews.",
|
|
572
572
|
"example": {
|
|
@@ -576,7 +576,7 @@
|
|
|
576
576
|
"example_source": "live",
|
|
577
577
|
"shows_when": "reviews has an entry, or the business has Google reviews connected",
|
|
578
578
|
"items": {
|
|
579
|
-
"reviews": "{id, author, rating, text, date?}
|
|
579
|
+
"reviews": "{id, author, rating, text, date?} — date is shown as written"
|
|
580
580
|
}
|
|
581
581
|
},
|
|
582
582
|
{
|
|
@@ -595,7 +595,7 @@
|
|
|
595
595
|
"textColor": "string",
|
|
596
596
|
"buttonColor": "string",
|
|
597
597
|
"alignment": "\"left\" | \"center\" | \"right\"",
|
|
598
|
-
"backgroundVideo": "string (url, direct .mp4/.webm
|
|
598
|
+
"backgroundVideo": "string (url, direct .mp4/.webm — plays muted, looping, inline behind the content)",
|
|
599
599
|
"backgroundVideoPoster": "string (url, image shown until the video plays)"
|
|
600
600
|
},
|
|
601
601
|
"enums": {
|
|
@@ -610,7 +610,7 @@
|
|
|
610
610
|
"right"
|
|
611
611
|
]
|
|
612
612
|
},
|
|
613
|
-
"notes": "The button always shows; with no ctaText it reads 'Get Started'
|
|
613
|
+
"notes": "The button always shows; with no ctaText it reads 'Get Started' — set ctaText and ctaLink. backgroundStyle is worked out when left off: solid if backgroundColor is set, image if backgroundImage is.",
|
|
614
614
|
"example": {
|
|
615
615
|
"type": "hero",
|
|
616
616
|
"title": "Roof repairs, done in a day",
|
|
@@ -635,14 +635,14 @@
|
|
|
635
635
|
"title": "string",
|
|
636
636
|
"subtitle": "string",
|
|
637
637
|
"primaryCTA": "string",
|
|
638
|
-
"primaryLink": "unknown
|
|
638
|
+
"primaryLink": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
639
639
|
"secondaryCTA": "string",
|
|
640
640
|
"backgroundImage": "string (url)",
|
|
641
641
|
"showVideoButton": "boolean",
|
|
642
|
-
"backgroundVideo": "string (url, direct .mp4/.webm
|
|
642
|
+
"backgroundVideo": "string (url, direct .mp4/.webm — plays muted, looping, inline behind the content)",
|
|
643
643
|
"backgroundVideoPoster": "string (url, image shown until the video plays)"
|
|
644
644
|
},
|
|
645
|
-
"notes": "primaryCTA is the button's WORDS (a string); primaryLink is where it goes (default /contact). secondaryCTA shows only with showVideoButton: true, and it goes nowhere
|
|
645
|
+
"notes": "primaryCTA is the button's WORDS (a string); primaryLink is where it goes (default /contact). secondaryCTA shows only with showVideoButton: true, and it goes nowhere — leave it off.",
|
|
646
646
|
"example": {
|
|
647
647
|
"type": "hero-image",
|
|
648
648
|
"title": "Kitchens built to be used",
|
|
@@ -668,9 +668,9 @@
|
|
|
668
668
|
"subtitle": "string",
|
|
669
669
|
"features": "string[]",
|
|
670
670
|
"primaryCTA": "string",
|
|
671
|
-
"primaryLink": "unknown
|
|
671
|
+
"primaryLink": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
672
672
|
"imageUrl": "string",
|
|
673
|
-
"backgroundVideo": "string (url, direct .mp4/.webm
|
|
673
|
+
"backgroundVideo": "string (url, direct .mp4/.webm — plays muted, looping, inline behind the content)",
|
|
674
674
|
"backgroundVideoPoster": "string (url, image shown until the video plays)"
|
|
675
675
|
},
|
|
676
676
|
"notes": "primaryCTA is the button's words (a string); primaryLink is where it goes (default /contact).",
|
|
@@ -690,7 +690,7 @@
|
|
|
690
690
|
"example_source": "live",
|
|
691
691
|
"shows_when": "title or subtitle",
|
|
692
692
|
"items": {
|
|
693
|
-
"features": "a list of plain strings
|
|
693
|
+
"features": "a list of plain strings — not objects"
|
|
694
694
|
}
|
|
695
695
|
},
|
|
696
696
|
{
|
|
@@ -706,10 +706,10 @@
|
|
|
706
706
|
"phrase"
|
|
707
707
|
],
|
|
708
708
|
"props": {
|
|
709
|
-
"phrase": "unknown
|
|
710
|
-
"separator": "unknown
|
|
711
|
-
"speed": "unknown
|
|
712
|
-
"direction": "unknown
|
|
709
|
+
"phrase": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
710
|
+
"separator": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
711
|
+
"speed": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
712
|
+
"direction": "unknown — listed by the live schema; the bundled CLI data has no type for it"
|
|
713
713
|
}
|
|
714
714
|
},
|
|
715
715
|
{
|
|
@@ -726,8 +726,8 @@
|
|
|
726
726
|
"required": [],
|
|
727
727
|
"props": {
|
|
728
728
|
"title": "string",
|
|
729
|
-
"logos": "Logo[]
|
|
730
|
-
"grayscale": "unknown
|
|
729
|
+
"logos": "Logo[] — { id, name, src }",
|
|
730
|
+
"grayscale": "unknown — listed by the live schema; the bundled CLI data has no type for it"
|
|
731
731
|
},
|
|
732
732
|
"notes": "Logos are shown grey until hovered; grayscale: false shows them in colour.",
|
|
733
733
|
"example": {
|
|
@@ -756,12 +756,12 @@
|
|
|
756
756
|
],
|
|
757
757
|
"required": [],
|
|
758
758
|
"props": {
|
|
759
|
-
"heading": "unknown
|
|
760
|
-
"text": "unknown
|
|
761
|
-
"href": "unknown
|
|
762
|
-
"cta": "unknown
|
|
763
|
-
"variant": "unknown
|
|
764
|
-
"captureRadius": "unknown
|
|
759
|
+
"heading": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
760
|
+
"text": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
761
|
+
"href": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
762
|
+
"cta": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
763
|
+
"variant": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
764
|
+
"captureRadius": "unknown — listed by the live schema; the bundled CLI data has no type for it"
|
|
765
765
|
}
|
|
766
766
|
},
|
|
767
767
|
{
|
|
@@ -792,15 +792,15 @@
|
|
|
792
792
|
],
|
|
793
793
|
"required": [],
|
|
794
794
|
"props": {
|
|
795
|
-
"heading": "unknown
|
|
796
|
-
"cards": "unknown
|
|
797
|
-
"title": "unknown
|
|
798
|
-
"body": "unknown
|
|
799
|
-
"href": "unknown
|
|
800
|
-
"asset": "unknown
|
|
801
|
-
"assetSrc": "unknown
|
|
802
|
-
"assetAlt": "unknown
|
|
803
|
-
"overlayText": "unknown
|
|
795
|
+
"heading": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
796
|
+
"cards": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
797
|
+
"title": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
798
|
+
"body": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
799
|
+
"href": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
800
|
+
"asset": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
801
|
+
"assetSrc": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
802
|
+
"assetAlt": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
803
|
+
"overlayText": "unknown — listed by the live schema; the bundled CLI data has no type for it"
|
|
804
804
|
}
|
|
805
805
|
},
|
|
806
806
|
{
|
|
@@ -816,7 +816,7 @@
|
|
|
816
816
|
"props": {
|
|
817
817
|
"title": "string",
|
|
818
818
|
"subtitle": "string",
|
|
819
|
-
"tiers": "PricingTier[]
|
|
819
|
+
"tiers": "PricingTier[] — { name, price, period, description, features[], cta, ctaLink, highlighted }"
|
|
820
820
|
},
|
|
821
821
|
"notes": "highlighted: true adds a 'Most Popular' badge. Use only the business's real prices.",
|
|
822
822
|
"example": {
|
|
@@ -840,7 +840,7 @@
|
|
|
840
840
|
"example_source": "live",
|
|
841
841
|
"shows_when": "tiers has at least one entry",
|
|
842
842
|
"items": {
|
|
843
|
-
"tiers": "{name, price, period?, description, features, cta, ctaLink?, highlighted?}
|
|
843
|
+
"tiers": "{name, price, period?, description, features, cta, ctaLink?, highlighted?} — features is a list of plain strings and MUST be present on every tier; price is shown as written, so include the currency sign; cta is the button's words"
|
|
844
844
|
}
|
|
845
845
|
},
|
|
846
846
|
{
|
|
@@ -856,7 +856,7 @@
|
|
|
856
856
|
"props": {
|
|
857
857
|
"title": "string",
|
|
858
858
|
"subtitle": "string",
|
|
859
|
-
"steps": "Step[]
|
|
859
|
+
"steps": "Step[] — { id, title, description }"
|
|
860
860
|
},
|
|
861
861
|
"example": {
|
|
862
862
|
"type": "process-steps",
|
|
@@ -875,7 +875,7 @@
|
|
|
875
875
|
"example_source": "live",
|
|
876
876
|
"shows_when": "steps has at least one entry",
|
|
877
877
|
"items": {
|
|
878
|
-
"steps": "{title, description}
|
|
878
|
+
"steps": "{title, description} — the step number is added for you"
|
|
879
879
|
}
|
|
880
880
|
},
|
|
881
881
|
{
|
|
@@ -900,7 +900,7 @@
|
|
|
900
900
|
"columns": "2 | 3 | 4",
|
|
901
901
|
"show_prices": "boolean",
|
|
902
902
|
"layout": "\"grid\" | \"list\"",
|
|
903
|
-
"product_ids": "unknown
|
|
903
|
+
"product_ids": "unknown — accepted by the backend validator; the frontend block does not read it"
|
|
904
904
|
},
|
|
905
905
|
"notes": "Pulls products from company context."
|
|
906
906
|
},
|
|
@@ -923,6 +923,29 @@
|
|
|
923
923
|
},
|
|
924
924
|
"notes": "Escape hatch for imports (Nest/Ant). Use only when no native block fits the source markup. `html` is required."
|
|
925
925
|
},
|
|
926
|
+
{
|
|
927
|
+
"type": "restaurant-menu",
|
|
928
|
+
"component": "unknown (not in bundled CLI data)",
|
|
929
|
+
"category": "Uncategorized",
|
|
930
|
+
"aliases": [
|
|
931
|
+
"restaurantmenu"
|
|
932
|
+
],
|
|
933
|
+
"required": [],
|
|
934
|
+
"props": {
|
|
935
|
+
"title": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
936
|
+
"subtitle": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
937
|
+
"location_id": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
938
|
+
"show_ordering": "unknown — listed by the live schema; the bundled CLI data has no type for it"
|
|
939
|
+
},
|
|
940
|
+
"shows_when": "the business has a menu published to website or online (Bistro → Menu); otherwise the block shows nothing",
|
|
941
|
+
"notes": "Reads the menu itself: no items are written into the block. With online ordering on, guests send an order with a name and a phone and pay at pickup; the restaurant accepts it before it is made. Not `menu`, which is the product catalogue (products).",
|
|
942
|
+
"example": {
|
|
943
|
+
"type": "restaurant-menu",
|
|
944
|
+
"title": "Our menu",
|
|
945
|
+
"subtitle": "Made here, every day."
|
|
946
|
+
},
|
|
947
|
+
"example_source": "live"
|
|
948
|
+
},
|
|
926
949
|
{
|
|
927
950
|
"type": "service-area",
|
|
928
951
|
"component": "ServiceArea",
|
|
@@ -937,7 +960,7 @@
|
|
|
937
960
|
"props": {
|
|
938
961
|
"title": "string",
|
|
939
962
|
"subtitle": "string",
|
|
940
|
-
"regions": "ServiceRegion[]
|
|
963
|
+
"regions": "ServiceRegion[] — { id, name, description }",
|
|
941
964
|
"mapEmbed": "string"
|
|
942
965
|
},
|
|
943
966
|
"notes": "Without mapEmbed (a Google Maps embed address) a placeholder is shown where the map goes.",
|
|
@@ -966,9 +989,9 @@
|
|
|
966
989
|
"props": {
|
|
967
990
|
"title": "string",
|
|
968
991
|
"subtitle": "string",
|
|
969
|
-
"stats": "Stat[]
|
|
992
|
+
"stats": "Stat[] — { value, label, icon }"
|
|
970
993
|
},
|
|
971
|
-
"notes": "Any other icon name breaks the block
|
|
994
|
+
"notes": "Any other icon name breaks the block — leave icon off when unsure.",
|
|
972
995
|
"example": {
|
|
973
996
|
"type": "stats",
|
|
974
997
|
"title": "By the numbers",
|
|
@@ -984,7 +1007,7 @@
|
|
|
984
1007
|
"example_source": "live",
|
|
985
1008
|
"shows_when": "stats has at least one entry",
|
|
986
1009
|
"items": {
|
|
987
|
-
"stats": "{id, value, label, icon?}
|
|
1010
|
+
"stats": "{id, value, label, icon?} — value is text ('1,200+'); icon is trending, users, globe or zap, or left off"
|
|
988
1011
|
}
|
|
989
1012
|
},
|
|
990
1013
|
{
|
|
@@ -999,9 +1022,9 @@
|
|
|
999
1022
|
"items"
|
|
1000
1023
|
],
|
|
1001
1024
|
"props": {
|
|
1002
|
-
"items": "unknown
|
|
1003
|
-
"heading": "unknown
|
|
1004
|
-
"subheading": "unknown
|
|
1025
|
+
"items": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
1026
|
+
"heading": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
1027
|
+
"subheading": "unknown — listed by the live schema; the bundled CLI data has no type for it"
|
|
1005
1028
|
}
|
|
1006
1029
|
},
|
|
1007
1030
|
{
|
|
@@ -1015,8 +1038,8 @@
|
|
|
1015
1038
|
"props": {
|
|
1016
1039
|
"title": "string",
|
|
1017
1040
|
"subtitle": "string",
|
|
1018
|
-
"members": "TeamMember[]
|
|
1019
|
-
"columns": "unknown
|
|
1041
|
+
"members": "TeamMember[] — { id, name, role, image, bio }",
|
|
1042
|
+
"columns": "unknown — listed by the live schema; the bundled CLI data has no type for it"
|
|
1020
1043
|
},
|
|
1021
1044
|
"enums": {
|
|
1022
1045
|
"columns": [
|
|
@@ -1039,7 +1062,7 @@
|
|
|
1039
1062
|
"example_source": "live",
|
|
1040
1063
|
"shows_when": "members has at least one entry",
|
|
1041
1064
|
"items": {
|
|
1042
|
-
"members": "{name, title?, bio?, photo_url?, email?, phone?}
|
|
1065
|
+
"members": "{name, title?, bio?, photo_url?, email?, phone?} — note photo_url, with the underscore"
|
|
1043
1066
|
}
|
|
1044
1067
|
},
|
|
1045
1068
|
{
|
|
@@ -1050,7 +1073,7 @@
|
|
|
1050
1073
|
"props": {
|
|
1051
1074
|
"title": "string",
|
|
1052
1075
|
"subtitle": "string",
|
|
1053
|
-
"testimonials": "Testimonial[]
|
|
1076
|
+
"testimonials": "Testimonial[] — { quote, author, role, avatar }"
|
|
1054
1077
|
},
|
|
1055
1078
|
"notes": "When the business has Google reviews connected, those are shown INSTEAD of this list. Real words from real customers only.",
|
|
1056
1079
|
"example": {
|
|
@@ -1070,7 +1093,7 @@
|
|
|
1070
1093
|
"example_source": "live",
|
|
1071
1094
|
"shows_when": "testimonials has an entry, or the business has Google reviews",
|
|
1072
1095
|
"items": {
|
|
1073
|
-
"testimonials": "{id, name, role, company, content, rating, avatar?}
|
|
1096
|
+
"testimonials": "{id, name, role, company, content, rating, avatar?} — rating is a whole number 1 to 5"
|
|
1074
1097
|
}
|
|
1075
1098
|
},
|
|
1076
1099
|
{
|
|
@@ -1110,7 +1133,7 @@
|
|
|
1110
1133
|
"content": "We have fixed roofs here since 1998.\n\n- Family owned\n- **Free** inspections"
|
|
1111
1134
|
},
|
|
1112
1135
|
"example_source": "live",
|
|
1113
|
-
"shows_when": "always
|
|
1136
|
+
"shows_when": "always — with no content it is an empty band, so give it content"
|
|
1114
1137
|
},
|
|
1115
1138
|
{
|
|
1116
1139
|
"type": "text-mask-reveal",
|
|
@@ -1124,11 +1147,11 @@
|
|
|
1124
1147
|
"text"
|
|
1125
1148
|
],
|
|
1126
1149
|
"props": {
|
|
1127
|
-
"text": "unknown
|
|
1128
|
-
"media": "unknown
|
|
1129
|
-
"mediaSrc": "unknown
|
|
1130
|
-
"mediaType": "unknown
|
|
1131
|
-
"mediaPoster": "unknown
|
|
1150
|
+
"text": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
1151
|
+
"media": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
1152
|
+
"mediaSrc": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
1153
|
+
"mediaType": "unknown — listed by the live schema; the bundled CLI data has no type for it",
|
|
1154
|
+
"mediaPoster": "unknown — listed by the live schema; the bundled CLI data has no type for it"
|
|
1132
1155
|
}
|
|
1133
1156
|
},
|
|
1134
1157
|
{
|
|
@@ -1150,9 +1173,9 @@
|
|
|
1150
1173
|
"thumbnailUrl": "string",
|
|
1151
1174
|
"aspectRatio": "\"16:9\" | \"4:3\" | \"1:1\"",
|
|
1152
1175
|
"autoplay": "boolean (browsers only autoplay muted video)",
|
|
1153
|
-
"muted": "boolean (direct files; default true when autoplay
|
|
1176
|
+
"muted": "boolean (direct files; default true when autoplay — browsers only autoplay muted video)",
|
|
1154
1177
|
"loop": "boolean (direct files)",
|
|
1155
|
-
"playsInline": "boolean (direct files; default true
|
|
1178
|
+
"playsInline": "boolean (direct files; default true — required for inline autoplay on iOS)",
|
|
1156
1179
|
"controls": "boolean (direct files; default !autoplay)",
|
|
1157
1180
|
"posterUrl": "string (url, direct files; shown before playback; falls back to thumbnailUrl)"
|
|
1158
1181
|
},
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;GAeG"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -53,6 +53,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
53
53
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
54
54
|
};
|
|
55
55
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56
|
+
require("./lib/cwd-guard"); // ⛔ first: says plainly when the current folder cannot be read
|
|
56
57
|
const commander_1 = require("commander");
|
|
57
58
|
const chalk_1 = __importDefault(require("chalk"));
|
|
58
59
|
const fs = __importStar(require("fs"));
|