@wix/himalaya-cli 0.1954.0 → 0.1956.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 (42) hide show
  1. package/dist/cli.mjs +154 -72
  2. package/guides/one-app-section-mappings.md +1 -1
  3. package/guides/one-app-to-himi-app.md +11 -7
  4. package/package.json +2 -2
  5. package/templates/branded-lite/l10n/ar.json +5 -0
  6. package/templates/branded-lite/l10n/cs.json +5 -0
  7. package/templates/branded-lite/l10n/da.json +5 -0
  8. package/templates/branded-lite/l10n/de.json +5 -0
  9. package/templates/branded-lite/l10n/el.json +5 -0
  10. package/templates/branded-lite/l10n/es.json +5 -0
  11. package/templates/branded-lite/l10n/fi.json +5 -0
  12. package/templates/branded-lite/l10n/fr.json +5 -0
  13. package/templates/branded-lite/l10n/he.json +5 -0
  14. package/templates/branded-lite/l10n/hu.json +5 -0
  15. package/templates/branded-lite/l10n/id.json +5 -0
  16. package/templates/branded-lite/l10n/it.json +5 -0
  17. package/templates/branded-lite/l10n/ja.json +5 -0
  18. package/templates/branded-lite/l10n/ko.json +5 -0
  19. package/templates/branded-lite/l10n/lt.json +5 -0
  20. package/templates/branded-lite/l10n/nl.json +5 -0
  21. package/templates/branded-lite/l10n/no.json +5 -0
  22. package/templates/branded-lite/l10n/pl.json +5 -0
  23. package/templates/branded-lite/l10n/pt.json +5 -0
  24. package/templates/branded-lite/l10n/ru.json +5 -0
  25. package/templates/branded-lite/l10n/sv.json +5 -0
  26. package/templates/branded-lite/l10n/th.json +5 -0
  27. package/templates/branded-lite/l10n/tr.json +5 -0
  28. package/templates/branded-lite/l10n/uk.json +5 -0
  29. package/templates/branded-lite/l10n/vi.json +5 -0
  30. package/templates/branded-lite/l10n/zh.json +5 -0
  31. package/templates/branded-lite/recipes/blog-carousel-classic.json +335 -0
  32. package/templates/branded-lite/recipes/blog-carousel-full.json +374 -0
  33. package/templates/branded-lite/recipes/events-inline-carousel.json +308 -0
  34. package/templates/branded-lite/recipes/galleries-carousel.json +51 -2
  35. package/templates/branded-lite/recipes/galleries-collage.json +51 -2
  36. package/templates/branded-lite/recipes/galleries-list.json +51 -2
  37. package/templates/branded-lite/recipes/groups-cards.json +194 -86
  38. package/templates/branded-lite/recipes/groups-list.json +209 -62
  39. package/templates/branded-lite/tier5-src/_shared/blog-list.ts +5 -1
  40. package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +70 -23
  41. package/templates/branded-lite/tier5-src/_shared/groups-section.ts +297 -26
  42. package/templates/branded-lite/recipes/blog-hero.json +0 -95
@@ -0,0 +1,374 @@
1
+ {
2
+ "_recipe": "Blog carousel, FULL layout: a rail of post cards, scrolling sideways. Each card is an accent panel, the cover over it (tinted), and the title, the author line (photo, name, time) and the icon counts laid over both; a post with no cover (or a section with covers off, or a cover that fails to load) shows the panel, so the card keeps its shape. Which author and count facts show is the service's `show`. ONE node, hidden while there are no posts. Service: registerBlogList(svc, { limit, show }); the page worker's onAppear (on an always-mounted box around this node) calls tier5.<svc>.load.",
3
+ "_placeholders": {
4
+ "svc": "service name the page worker registered with registerBlogList",
5
+ "id": "unique node id prefix for this section",
6
+ "detailScreen": "blog post screen id, himi_blog_post"
7
+ },
8
+ "node": {
9
+ "id": "{{id}}.hero",
10
+ "body": {
11
+ "package": "himalaya",
12
+ "type": "Carousel",
13
+ "props": {
14
+ "itemsPath": "$service:{{svc}}.rows",
15
+ "items": [
16
+ {
17
+ "id": "{{id}}.card",
18
+ "body": {
19
+ "package": "himalaya",
20
+ "type": "ZStack",
21
+ "props": {
22
+ "alignment": "leading",
23
+ "children": [
24
+ {
25
+ "id": "{{id}}.panel",
26
+ "body": {
27
+ "package": "himalaya",
28
+ "type": "VStack",
29
+ "props": {
30
+ "spacing": 0,
31
+ "alignment": "leading",
32
+ "children": []
33
+ }
34
+ },
35
+ "modifiers": {
36
+ "fillMaxWidth": true,
37
+ "height": 240,
38
+ "background": {
39
+ "token": "accentPrimary"
40
+ },
41
+ "accessibilityRole": "decorative"
42
+ }
43
+ },
44
+ {
45
+ "id": "{{id}}.cover",
46
+ "body": {
47
+ "package": "himalaya",
48
+ "type": "Image",
49
+ "props": {
50
+ "url": "$item.cover",
51
+ "fillWidth": true,
52
+ "height": 240,
53
+ "contentMode": "fill",
54
+ "contentDescription": "$item.title",
55
+ "shape": "rect"
56
+ }
57
+ },
58
+ "modifiers": {
59
+ "fillMaxWidth": true,
60
+ "hiddenPath": "$item.noCover"
61
+ }
62
+ },
63
+ {
64
+ "id": "{{id}}.scrim",
65
+ "body": {
66
+ "package": "himalaya",
67
+ "type": "VStack",
68
+ "props": {
69
+ "spacing": 0,
70
+ "alignment": "leading",
71
+ "children": []
72
+ }
73
+ },
74
+ "modifiers": {
75
+ "fillMaxWidth": true,
76
+ "height": 240,
77
+ "background": {
78
+ "token": "accentPrimary"
79
+ },
80
+ "opacity": 0.55,
81
+ "accessibilityRole": "decorative",
82
+ "hiddenPath": "$item.noCover"
83
+ }
84
+ },
85
+ {
86
+ "id": "{{id}}.content",
87
+ "body": {
88
+ "package": "himalaya",
89
+ "type": "VStack",
90
+ "props": {
91
+ "spacing": 8,
92
+ "alignment": "leading",
93
+ "children": [
94
+ {
95
+ "id": "",
96
+ "body": {
97
+ "package": "himalaya",
98
+ "type": "Spacer",
99
+ "props": {}
100
+ }
101
+ },
102
+ {
103
+ "id": "{{id}}.title",
104
+ "body": {
105
+ "package": "himalaya",
106
+ "type": "Text",
107
+ "props": {
108
+ "text": "$item.title",
109
+ "style": "bodyEmphasis",
110
+ "color": "textOnAccent",
111
+ "maxLines": 2
112
+ }
113
+ }
114
+ },
115
+ {
116
+ "id": "{{id}}.info",
117
+ "body": {
118
+ "package": "himalaya",
119
+ "type": "HStack",
120
+ "props": {
121
+ "spacing": 8,
122
+ "alignment": "center",
123
+ "children": [
124
+ {
125
+ "id": "{{id}}.avatar",
126
+ "body": {
127
+ "package": "himalaya",
128
+ "type": "Image",
129
+ "props": {
130
+ "url": "$item.authorPhoto",
131
+ "width": 24,
132
+ "height": 24,
133
+ "shape": "circle",
134
+ "contentMode": "fill",
135
+ "contentDescription": "$item.avatarLabel"
136
+ }
137
+ },
138
+ "modifiers": {
139
+ "hiddenPath": "$item.noAvatar"
140
+ }
141
+ },
142
+ {
143
+ "id": "",
144
+ "body": {
145
+ "package": "himalaya",
146
+ "type": "VStack",
147
+ "props": {
148
+ "spacing": 2,
149
+ "alignment": "leading",
150
+ "children": [
151
+ {
152
+ "id": "{{id}}.author",
153
+ "body": {
154
+ "package": "himalaya",
155
+ "type": "Text",
156
+ "props": {
157
+ "text": "$item.authorName",
158
+ "style": "caption",
159
+ "color": "textOnAccent",
160
+ "maxLines": 1
161
+ }
162
+ },
163
+ "modifiers": {
164
+ "hiddenPath": "$item.noAuthor"
165
+ }
166
+ },
167
+ {
168
+ "id": "{{id}}.meta",
169
+ "body": {
170
+ "package": "himalaya",
171
+ "type": "Text",
172
+ "props": {
173
+ "text": "$item.meta",
174
+ "style": "caption",
175
+ "color": "textOnAccent",
176
+ "maxLines": 1,
177
+ "collapseWhenEmpty": true
178
+ }
179
+ }
180
+ }
181
+ ]
182
+ }
183
+ }
184
+ }
185
+ ]
186
+ }
187
+ },
188
+ "modifiers": {
189
+ "hiddenPath": "$item.noInfo"
190
+ }
191
+ },
192
+ {
193
+ "id": "{{id}}.counts",
194
+ "body": {
195
+ "package": "himalaya",
196
+ "type": "HStack",
197
+ "props": {
198
+ "spacing": 12,
199
+ "alignment": "center",
200
+ "children": [
201
+ {
202
+ "id": "",
203
+ "body": {
204
+ "package": "himalaya",
205
+ "type": "HStack",
206
+ "props": {
207
+ "spacing": 4,
208
+ "alignment": "center",
209
+ "children": [
210
+ {
211
+ "id": "",
212
+ "body": {
213
+ "package": "himalaya",
214
+ "type": "Icon",
215
+ "props": {
216
+ "name": "$item.count1Icon",
217
+ "size": 14,
218
+ "tint": "textOnAccent"
219
+ }
220
+ }
221
+ },
222
+ {
223
+ "id": "",
224
+ "body": {
225
+ "package": "himalaya",
226
+ "type": "Text",
227
+ "props": {
228
+ "text": "$item.count1Num",
229
+ "style": "caption",
230
+ "maxLines": 1,
231
+ "color": "textOnAccent"
232
+ }
233
+ }
234
+ }
235
+ ]
236
+ }
237
+ },
238
+ "modifiers": {
239
+ "accessibilityLabel": "$item.count1Text",
240
+ "hiddenPath": "$item.noCount1"
241
+ }
242
+ },
243
+ {
244
+ "id": "",
245
+ "body": {
246
+ "package": "himalaya",
247
+ "type": "HStack",
248
+ "props": {
249
+ "spacing": 4,
250
+ "alignment": "center",
251
+ "children": [
252
+ {
253
+ "id": "",
254
+ "body": {
255
+ "package": "himalaya",
256
+ "type": "Icon",
257
+ "props": {
258
+ "name": "$item.count2Icon",
259
+ "size": 14,
260
+ "tint": "textOnAccent"
261
+ }
262
+ }
263
+ },
264
+ {
265
+ "id": "",
266
+ "body": {
267
+ "package": "himalaya",
268
+ "type": "Text",
269
+ "props": {
270
+ "text": "$item.count2Num",
271
+ "style": "caption",
272
+ "maxLines": 1,
273
+ "color": "textOnAccent"
274
+ }
275
+ }
276
+ }
277
+ ]
278
+ }
279
+ },
280
+ "modifiers": {
281
+ "accessibilityLabel": "$item.count2Text",
282
+ "hiddenPath": "$item.noCount2"
283
+ }
284
+ },
285
+ {
286
+ "id": "",
287
+ "body": {
288
+ "package": "himalaya",
289
+ "type": "HStack",
290
+ "props": {
291
+ "spacing": 4,
292
+ "alignment": "center",
293
+ "children": [
294
+ {
295
+ "id": "",
296
+ "body": {
297
+ "package": "himalaya",
298
+ "type": "Icon",
299
+ "props": {
300
+ "name": "$item.count3Icon",
301
+ "size": 14,
302
+ "tint": "textOnAccent"
303
+ }
304
+ }
305
+ },
306
+ {
307
+ "id": "",
308
+ "body": {
309
+ "package": "himalaya",
310
+ "type": "Text",
311
+ "props": {
312
+ "text": "$item.count3Num",
313
+ "style": "caption",
314
+ "maxLines": 1,
315
+ "color": "textOnAccent"
316
+ }
317
+ }
318
+ }
319
+ ]
320
+ }
321
+ },
322
+ "modifiers": {
323
+ "accessibilityLabel": "$item.count3Text",
324
+ "hiddenPath": "$item.noCount3"
325
+ }
326
+ }
327
+ ]
328
+ }
329
+ },
330
+ "modifiers": {
331
+ "hiddenPath": "$item.noCounts"
332
+ }
333
+ }
334
+ ]
335
+ }
336
+ },
337
+ "modifiers": {
338
+ "fillMaxWidth": true,
339
+ "height": 240,
340
+ "padding": {
341
+ "leading": 16,
342
+ "trailing": 16,
343
+ "top": 16,
344
+ "bottom": 16
345
+ }
346
+ }
347
+ }
348
+ ]
349
+ }
350
+ },
351
+ "modifiers": {
352
+ "width": 300,
353
+ "height": 240,
354
+ "cornerRadius": 12,
355
+ "onTap": {
356
+ "actionId": "himi.open",
357
+ "params": {
358
+ "screenId": "{{detailScreen}}",
359
+ "id": "$item.id"
360
+ }
361
+ },
362
+ "pressFeedback": "scale",
363
+ "haptic": "light",
364
+ "accessibilityLabel": "$item.title"
365
+ }
366
+ }
367
+ ]
368
+ }
369
+ },
370
+ "modifiers": {
371
+ "hiddenPath": "$service:{{svc}}.noRows"
372
+ }
373
+ }
374
+ }