@wix/himalaya-cli 0.1953.0 → 0.1955.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 (120) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/auth-providers/wix/src/index.d.ts +5 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-auth.mjs +2 -1
  3. package/dist/cli.mjs +224 -98
  4. package/guides/one-app-section-mappings.md +4 -4
  5. package/guides/one-app-to-himi-app.md +14 -10
  6. package/package.json +2 -2
  7. package/templates/bare-fashion/tier5-src/_shared/engine-intl.ts +6 -0
  8. package/templates/beauty-salon/tier5-src/_shared/agenda-calendar.ts +95 -0
  9. package/templates/beauty-salon/tier5-src/_shared/booking-session.ts +10 -0
  10. package/templates/beauty-salon/tier5-src/_shared/class-sessions.ts +113 -0
  11. package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +6 -0
  12. package/templates/beauty-salon/tier5-src/himi-branded-lite-agenda/index.ts +13 -146
  13. package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +6 -0
  14. package/templates/beauty-salon-owner/tier5-src/_shared/owner-selected-site.ts +13 -0
  15. package/templates/branded-lite/l10n/ar.json +10 -0
  16. package/templates/branded-lite/l10n/cs.json +10 -0
  17. package/templates/branded-lite/l10n/da.json +10 -0
  18. package/templates/branded-lite/l10n/de.json +10 -0
  19. package/templates/branded-lite/l10n/el.json +10 -0
  20. package/templates/branded-lite/l10n/es.json +10 -0
  21. package/templates/branded-lite/l10n/fi.json +10 -0
  22. package/templates/branded-lite/l10n/fr.json +10 -0
  23. package/templates/branded-lite/l10n/he.json +9 -0
  24. package/templates/branded-lite/l10n/hu.json +10 -0
  25. package/templates/branded-lite/l10n/id.json +10 -0
  26. package/templates/branded-lite/l10n/it.json +10 -0
  27. package/templates/branded-lite/l10n/ja.json +10 -0
  28. package/templates/branded-lite/l10n/ko.json +10 -0
  29. package/templates/branded-lite/l10n/lt.json +10 -0
  30. package/templates/branded-lite/l10n/nl.json +10 -0
  31. package/templates/branded-lite/l10n/no.json +10 -0
  32. package/templates/branded-lite/l10n/pl.json +10 -0
  33. package/templates/branded-lite/l10n/pt.json +10 -0
  34. package/templates/branded-lite/l10n/ru.json +10 -0
  35. package/templates/branded-lite/l10n/sv.json +10 -0
  36. package/templates/branded-lite/l10n/th.json +10 -0
  37. package/templates/branded-lite/l10n/tr.json +10 -0
  38. package/templates/branded-lite/l10n/uk.json +10 -0
  39. package/templates/branded-lite/l10n/vi.json +10 -0
  40. package/templates/branded-lite/l10n/zh.json +10 -0
  41. package/templates/branded-lite/recipes/blog-carousel-classic.json +335 -0
  42. package/templates/branded-lite/recipes/blog-carousel-full.json +374 -0
  43. package/templates/branded-lite/recipes/class-calendar.json +707 -0
  44. package/templates/branded-lite/recipes/events-inline-carousel.json +308 -0
  45. package/templates/branded-lite/recipes/galleries-carousel.json +51 -2
  46. package/templates/branded-lite/recipes/galleries-collage.json +51 -2
  47. package/templates/branded-lite/recipes/galleries-list.json +51 -2
  48. package/templates/branded-lite/recipes/groups-cards.json +194 -86
  49. package/templates/branded-lite/recipes/groups-list.json +209 -62
  50. package/templates/branded-lite/recipes/upcoming-sessions.json +280 -0
  51. package/templates/branded-lite/tier5-src/_shared/agenda-calendar.ts +95 -0
  52. package/templates/branded-lite/tier5-src/_shared/blog-list.ts +5 -1
  53. package/templates/branded-lite/tier5-src/_shared/booking-session.ts +10 -0
  54. package/templates/branded-lite/tier5-src/_shared/class-calendar-section.ts +280 -0
  55. package/templates/branded-lite/tier5-src/_shared/class-sessions.ts +113 -0
  56. package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +6 -0
  57. package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +70 -23
  58. package/templates/branded-lite/tier5-src/_shared/groups-section.ts +297 -26
  59. package/templates/branded-lite/tier5-src/_shared/upcoming-sessions-section.ts +121 -0
  60. package/templates/branded-lite/tier5-src/himi-branded-lite-agenda/index.ts +13 -146
  61. package/templates/brandy/tier5-src/_shared/engine-intl.ts +6 -0
  62. package/templates/community-club/tier5-src/_shared/engine-intl.ts +6 -0
  63. package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +6 -0
  64. package/templates/community-club-owner/tier5-src/_shared/owner-selected-site.ts +13 -0
  65. package/templates/conference/tier5-src/_shared/engine-intl.ts +6 -0
  66. package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +6 -0
  67. package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +6 -0
  68. package/templates/events-meetups-owner/tier5-src/_shared/owner-selected-site.ts +13 -0
  69. package/templates/fitness-gym/tier5-src/_shared/agenda-calendar.ts +95 -0
  70. package/templates/fitness-gym/tier5-src/_shared/booking-session.ts +10 -0
  71. package/templates/fitness-gym/tier5-src/_shared/class-sessions.ts +113 -0
  72. package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +6 -0
  73. package/templates/fitness-gym/tier5-src/himi-branded-lite-agenda/index.ts +13 -146
  74. package/templates/gym-fitness/tier5-src/_shared/agenda-calendar.ts +95 -0
  75. package/templates/gym-fitness/tier5-src/_shared/booking-session.ts +10 -0
  76. package/templates/gym-fitness/tier5-src/_shared/class-sessions.ts +113 -0
  77. package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +6 -0
  78. package/templates/gym-fitness/tier5-src/himi-branded-lite-agenda/index.ts +13 -146
  79. package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +6 -0
  80. package/templates/gym-fitness-owner/tier5-src/_shared/owner-selected-site.ts +13 -0
  81. package/templates/medical-services/tier5-src/_shared/booking-session.ts +10 -0
  82. package/templates/medical-services/tier5-src/_shared/engine-intl.ts +6 -0
  83. package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +6 -0
  84. package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +6 -0
  85. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-selected-site.ts +13 -0
  86. package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +6 -0
  87. package/templates/owner-lite/tier5-src/_shared/owner-selected-site.ts +13 -0
  88. package/templates/personal-fitness-trainer/tier5-src/_shared/agenda-calendar.ts +95 -0
  89. package/templates/personal-fitness-trainer/tier5-src/_shared/booking-session.ts +10 -0
  90. package/templates/personal-fitness-trainer/tier5-src/_shared/class-sessions.ts +113 -0
  91. package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +6 -0
  92. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-agenda/index.ts +13 -146
  93. package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +6 -0
  94. package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +6 -0
  95. package/templates/podcast-creator-owner/tier5-src/_shared/owner-selected-site.ts +13 -0
  96. package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +6 -0
  97. package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +6 -0
  98. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-selected-site.ts +13 -0
  99. package/templates/professional-services/tier5-src/_shared/booking-session.ts +10 -0
  100. package/templates/professional-services/tier5-src/_shared/engine-intl.ts +6 -0
  101. package/templates/restaurant/tier5-src/_shared/engine-intl.ts +6 -0
  102. package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +6 -0
  103. package/templates/restaurant-owner/tier5-src/_shared/owner-selected-site.ts +13 -0
  104. package/templates/retail-store/tier5-src/_shared/engine-intl.ts +6 -0
  105. package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +6 -0
  106. package/templates/retail-store-owner/tier5-src/_shared/owner-selected-site.ts +13 -0
  107. package/templates/salon-spa/tier5-src/_shared/agenda-calendar.ts +95 -0
  108. package/templates/salon-spa/tier5-src/_shared/booking-session.ts +10 -0
  109. package/templates/salon-spa/tier5-src/_shared/class-sessions.ts +113 -0
  110. package/templates/salon-spa/tier5-src/_shared/engine-intl.ts +6 -0
  111. package/templates/salon-spa/tier5-src/himi-branded-lite-agenda/index.ts +13 -146
  112. package/templates/wholesale-store/tier5-src/_shared/engine-intl.ts +6 -0
  113. package/templates/yoga-studio/tier5-src/_shared/agenda-calendar.ts +95 -0
  114. package/templates/yoga-studio/tier5-src/_shared/booking-session.ts +10 -0
  115. package/templates/yoga-studio/tier5-src/_shared/class-sessions.ts +113 -0
  116. package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +6 -0
  117. package/templates/yoga-studio/tier5-src/himi-branded-lite-agenda/index.ts +13 -146
  118. package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +6 -0
  119. package/templates/yoga-studio-owner/tier5-src/_shared/owner-selected-site.ts +13 -0
  120. package/templates/branded-lite/recipes/blog-hero.json +0 -95
@@ -0,0 +1,707 @@
1
+ {
2
+ "_recipe": "A page's class calendar (the One App's bookings_agenda_section): the section's title with a See All button to the Agenda, the Agenda's week strip (pages by week, opens into the month; dots on days with a session, past days dimmed), filter chips (All, Booked for a member, each class; hidden when there is no class), the title of the day shown, and that day's sessions as Agenda rows: time and length, the class (a tap opens it on this session), its coach, spots and place, and ONE control (Book opens Choose Time on the session; View Course, Join Waitlist and the member's Booked / On waitlist open the class on it; or why there is none). Then the empty text. ONE node, always mounted. Service: registerClassCalendarSection(svc, { limit }).",
3
+ "_placeholders": {
4
+ "svc": "service name the page worker registered with registerClassCalendarSection",
5
+ "id": "unique node id prefix for this section",
6
+ "title": "the section's title. The header keeps exactly one flexing child: the generator removes {{id}}.headSpacer when the title shows (the title takes the row) and {{id}}.title when the source hides it (the spacer keeps See All trailing)",
7
+ "seeAllLabel": "the See All button's label",
8
+ "seeAllScreen": "the Agenda screen, himi_agenda",
9
+ "timeScreen": "the Choose Time screen Book opens, himi_time",
10
+ "serviceScreen": "the service screen, himi_service: a row, View Course, Join Waitlist, Booked and On waitlist open it on the session"
11
+ },
12
+ "_keys": {
13
+ "Filters": "shop.filtersTitle",
14
+ "All": "collection.all",
15
+ "Book": "tab.book",
16
+ "View Course": "agenda.viewCourseCta",
17
+ "Booked": "agenda.bookedLabel",
18
+ "On waitlist": "agenda.onWaitlistLabel",
19
+ "Course": "agenda.courseTag",
20
+ "Class calendar": "agenda.calendarLabel"
21
+ },
22
+ "node": {
23
+ "id": "{{id}}.calendar",
24
+ "body": {
25
+ "package": "himalaya",
26
+ "type": "VStack",
27
+ "props": {
28
+ "spacing": 12,
29
+ "alignment": "leading",
30
+ "children": [
31
+ {
32
+ "id": "{{id}}.head",
33
+ "body": {
34
+ "package": "himalaya",
35
+ "type": "HStack",
36
+ "props": {
37
+ "spacing": 8,
38
+ "alignment": "center",
39
+ "children": [
40
+ {
41
+ "id": "{{id}}.title",
42
+ "body": {
43
+ "package": "himalaya",
44
+ "type": "Text",
45
+ "props": {
46
+ "text": "{{title}}",
47
+ "style": "title3",
48
+ "maxLines": 2
49
+ }
50
+ },
51
+ "modifiers": {
52
+ "weight": 1
53
+ }
54
+ },
55
+ {
56
+ "id": "{{id}}.headSpacer",
57
+ "body": {
58
+ "package": "himalaya",
59
+ "type": "Spacer",
60
+ "props": {}
61
+ }
62
+ },
63
+ {
64
+ "id": "{{id}}.all",
65
+ "body": {
66
+ "package": "himalaya",
67
+ "type": "Button",
68
+ "props": {
69
+ "title": "{{seeAllLabel}}",
70
+ "style": "tertiary",
71
+ "size": "md",
72
+ "action": {
73
+ "actionId": "himi.open",
74
+ "params": {
75
+ "screenId": "{{seeAllScreen}}"
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+ ]
82
+ }
83
+ },
84
+ "modifiers": {
85
+ "fillMaxWidth": true
86
+ }
87
+ },
88
+ {
89
+ "id": "{{id}}.week",
90
+ "body": {
91
+ "package": "himalaya",
92
+ "type": "MonthCalendar",
93
+ "props": {
94
+ "displayMode": "week",
95
+ "expandable": true,
96
+ "maxDots": 1,
97
+ "selectedDatePath": "$service:{{svc}}.selectedDate",
98
+ "decorationsPath": "$service:{{svc}}.decorations",
99
+ "onSelectDate": {
100
+ "actionId": "tier5.{{svc}}.selectDate"
101
+ },
102
+ "onVisibleRangeChange": {
103
+ "actionId": "tier5.{{svc}}.rangeChanged"
104
+ },
105
+ "onMonthChange": {
106
+ "actionId": "tier5.{{svc}}.monthChanged"
107
+ }
108
+ }
109
+ },
110
+ "modifiers": {
111
+ "fillMaxWidth": true,
112
+ "accessibilityLabel": "Class calendar"
113
+ }
114
+ },
115
+ {
116
+ "id": "{{id}}.filters",
117
+ "body": {
118
+ "package": "himalaya",
119
+ "type": "FilterChips",
120
+ "props": {
121
+ "chips": [
122
+ {
123
+ "id": "",
124
+ "label": "All"
125
+ }
126
+ ],
127
+ "optionsPath": "$service:{{svc}}.filters",
128
+ "selectedIds": [
129
+ "$service:{{svc}}.filterId"
130
+ ],
131
+ "onChange": {
132
+ "actionId": "tier5.{{svc}}.setFilter"
133
+ }
134
+ }
135
+ },
136
+ "modifiers": {
137
+ "accessibilityLabel": "Filters",
138
+ "hiddenPath": "$service:{{svc}}.hideFilters"
139
+ }
140
+ },
141
+ {
142
+ "id": "{{id}}.loading",
143
+ "body": {
144
+ "package": "himalaya",
145
+ "type": "Skeleton",
146
+ "props": {
147
+ "height": 72,
148
+ "count": 2,
149
+ "cornerRadius": 12
150
+ }
151
+ },
152
+ "modifiers": {
153
+ "hiddenPath": "$service:{{svc}}.notLoading"
154
+ }
155
+ },
156
+ {
157
+ "id": "{{id}}.day",
158
+ "body": {
159
+ "package": "himalaya",
160
+ "type": "Text",
161
+ "props": {
162
+ "text": "$service:{{svc}}.dayTitle",
163
+ "style": "footnote",
164
+ "color": "textSecondary",
165
+ "maxLines": 1
166
+ }
167
+ },
168
+ "modifiers": {
169
+ "hiddenPath": "$service:{{svc}}.noDayTitle"
170
+ }
171
+ },
172
+ {
173
+ "id": "{{id}}.list",
174
+ "body": {
175
+ "package": "himalaya",
176
+ "type": "LazyList",
177
+ "props": {
178
+ "spacing": 0,
179
+ "itemsPath": "$service:{{svc}}.rows",
180
+ "items": [
181
+ {
182
+ "id": "{{id}}.row",
183
+ "body": {
184
+ "package": "himalaya",
185
+ "type": "HStack",
186
+ "props": {
187
+ "spacing": 12,
188
+ "alignment": "center",
189
+ "children": [
190
+ {
191
+ "id": "{{id}}.when",
192
+ "body": {
193
+ "package": "himalaya",
194
+ "type": "VStack",
195
+ "props": {
196
+ "spacing": 2,
197
+ "alignment": "leading",
198
+ "children": [
199
+ {
200
+ "id": "{{id}}.time",
201
+ "body": {
202
+ "package": "himalaya",
203
+ "type": "Text",
204
+ "props": {
205
+ "text": "$item.time",
206
+ "style": "bodyEmphasis",
207
+ "maxLines": 1,
208
+ "monospacedDigits": true
209
+ }
210
+ }
211
+ },
212
+ {
213
+ "id": "{{id}}.length",
214
+ "body": {
215
+ "package": "himalaya",
216
+ "type": "Text",
217
+ "props": {
218
+ "text": "$item.length",
219
+ "style": "footnote",
220
+ "color": "textSecondary",
221
+ "maxLines": 2,
222
+ "collapseWhenEmpty": true
223
+ }
224
+ }
225
+ }
226
+ ]
227
+ }
228
+ },
229
+ "modifiers": {
230
+ "width": 80
231
+ }
232
+ },
233
+ {
234
+ "id": "{{id}}.details",
235
+ "body": {
236
+ "package": "himalaya",
237
+ "type": "VStack",
238
+ "props": {
239
+ "spacing": 2,
240
+ "alignment": "leading",
241
+ "children": [
242
+ {
243
+ "id": "{{id}}.course",
244
+ "body": {
245
+ "package": "himalaya",
246
+ "type": "Text",
247
+ "props": {
248
+ "text": "Course",
249
+ "style": "caption",
250
+ "color": "textSecondary",
251
+ "maxLines": 1
252
+ }
253
+ },
254
+ "modifiers": {
255
+ "hiddenPath": "$item.notCourse",
256
+ "background": {
257
+ "token": "surfaceTertiary"
258
+ },
259
+ "cornerRadius": 4,
260
+ "padding": {
261
+ "leading": 6,
262
+ "trailing": 6,
263
+ "top": 2,
264
+ "bottom": 2
265
+ }
266
+ }
267
+ },
268
+ {
269
+ "id": "{{id}}.name",
270
+ "body": {
271
+ "package": "himalaya",
272
+ "type": "Text",
273
+ "props": {
274
+ "text": "$item.title",
275
+ "style": "bodyEmphasis",
276
+ "maxLines": 2
277
+ }
278
+ }
279
+ },
280
+ {
281
+ "id": "{{id}}.coach",
282
+ "body": {
283
+ "package": "himalaya",
284
+ "type": "Text",
285
+ "props": {
286
+ "text": "$item.coach",
287
+ "style": "footnote",
288
+ "color": "textSecondary",
289
+ "maxLines": 2
290
+ }
291
+ },
292
+ "modifiers": {
293
+ "hiddenPath": "$item.noCoach"
294
+ }
295
+ },
296
+ {
297
+ "id": "{{id}}.spots",
298
+ "body": {
299
+ "package": "himalaya",
300
+ "type": "Text",
301
+ "props": {
302
+ "text": "$item.spots",
303
+ "style": "footnote",
304
+ "color": "textSecondary",
305
+ "maxLines": 2
306
+ }
307
+ },
308
+ "modifiers": {
309
+ "hiddenPath": "$item.noSpots"
310
+ }
311
+ },
312
+ {
313
+ "id": "{{id}}.place",
314
+ "body": {
315
+ "package": "himalaya",
316
+ "type": "Text",
317
+ "props": {
318
+ "text": "$item.place",
319
+ "style": "footnote",
320
+ "color": "textSecondary",
321
+ "maxLines": 2
322
+ }
323
+ },
324
+ "modifiers": {
325
+ "hiddenPath": "$item.noPlace"
326
+ }
327
+ }
328
+ ]
329
+ }
330
+ },
331
+ "modifiers": {
332
+ "weight": 1,
333
+ "onTap": {
334
+ "actionId": "himi.open",
335
+ "params": {
336
+ "screenId": "{{serviceScreen}}",
337
+ "id": "$item.serviceId",
338
+ "sessionId": "$item.sessionId",
339
+ "start": "$item.start"
340
+ }
341
+ },
342
+ "pressFeedback": "highlight",
343
+ "accessibilityRole": "button",
344
+ "accessibilityLabel": "$item.detailsA11y"
345
+ }
346
+ },
347
+ {
348
+ "id": "{{id}}.control",
349
+ "body": {
350
+ "package": "himalaya",
351
+ "type": "VStack",
352
+ "props": {
353
+ "spacing": 0,
354
+ "alignment": "trailing",
355
+ "children": [
356
+ {
357
+ "id": "{{id}}.book",
358
+ "body": {
359
+ "package": "himalaya",
360
+ "type": "HStack",
361
+ "props": {
362
+ "spacing": 0,
363
+ "alignment": "center",
364
+ "children": [
365
+ {
366
+ "id": "{{id}}.book.label",
367
+ "body": {
368
+ "package": "himalaya",
369
+ "type": "Text",
370
+ "props": {
371
+ "text": "Book",
372
+ "style": "footnote",
373
+ "color": "textPrimary",
374
+ "maxLines": 1
375
+ }
376
+ }
377
+ }
378
+ ]
379
+ }
380
+ },
381
+ "modifiers": {
382
+ "hiddenPath": "$item.hideBook",
383
+ "height": 36,
384
+ "padding": {
385
+ "leading": 16,
386
+ "trailing": 16
387
+ },
388
+ "cornerRadius": 18,
389
+ "border": {
390
+ "width": 1,
391
+ "color": {
392
+ "token": "textPrimary"
393
+ }
394
+ },
395
+ "pressFeedback": "scale",
396
+ "haptic": "light",
397
+ "onTap": {
398
+ "actionId": "himi.open",
399
+ "params": {
400
+ "screenId": "{{timeScreen}}",
401
+ "id": "$item.serviceId",
402
+ "start": "$item.start",
403
+ "sessionId": "$item.sessionId"
404
+ }
405
+ },
406
+ "accessibilityRole": "button",
407
+ "accessibilityLabel": "$item.bookA11y"
408
+ }
409
+ },
410
+ {
411
+ "id": "{{id}}.waitlist",
412
+ "body": {
413
+ "package": "himalaya",
414
+ "type": "HStack",
415
+ "props": {
416
+ "spacing": 0,
417
+ "alignment": "center",
418
+ "children": [
419
+ {
420
+ "id": "{{id}}.waitlist.label",
421
+ "body": {
422
+ "package": "himalaya",
423
+ "type": "Text",
424
+ "props": {
425
+ "text": "$item.waitlistLabel",
426
+ "style": "footnote",
427
+ "color": "textPrimary",
428
+ "maxLines": 1
429
+ }
430
+ }
431
+ }
432
+ ]
433
+ }
434
+ },
435
+ "modifiers": {
436
+ "hiddenPath": "$item.hideWaitlist",
437
+ "height": 36,
438
+ "padding": {
439
+ "leading": 16,
440
+ "trailing": 16
441
+ },
442
+ "cornerRadius": 18,
443
+ "border": {
444
+ "width": 1,
445
+ "color": {
446
+ "token": "textPrimary"
447
+ }
448
+ },
449
+ "pressFeedback": "scale",
450
+ "haptic": "light",
451
+ "onTap": {
452
+ "actionId": "himi.open",
453
+ "params": {
454
+ "screenId": "{{serviceScreen}}",
455
+ "id": "$item.serviceId",
456
+ "sessionId": "$item.sessionId",
457
+ "start": "$item.start"
458
+ }
459
+ },
460
+ "accessibilityRole": "button",
461
+ "accessibilityLabel": "$item.waitlistLabel"
462
+ }
463
+ },
464
+ {
465
+ "id": "{{id}}.viewCourse",
466
+ "body": {
467
+ "package": "himalaya",
468
+ "type": "HStack",
469
+ "props": {
470
+ "spacing": 0,
471
+ "alignment": "center",
472
+ "children": [
473
+ {
474
+ "id": "{{id}}.viewCourse.label",
475
+ "body": {
476
+ "package": "himalaya",
477
+ "type": "Text",
478
+ "props": {
479
+ "text": "View Course",
480
+ "style": "footnote",
481
+ "color": "textPrimary",
482
+ "maxLines": 1
483
+ }
484
+ }
485
+ }
486
+ ]
487
+ }
488
+ },
489
+ "modifiers": {
490
+ "hiddenPath": "$item.hideCourse",
491
+ "height": 36,
492
+ "padding": {
493
+ "leading": 16,
494
+ "trailing": 16
495
+ },
496
+ "cornerRadius": 18,
497
+ "border": {
498
+ "width": 1,
499
+ "color": {
500
+ "token": "textPrimary"
501
+ }
502
+ },
503
+ "pressFeedback": "scale",
504
+ "haptic": "light",
505
+ "onTap": {
506
+ "actionId": "himi.open",
507
+ "params": {
508
+ "screenId": "{{serviceScreen}}",
509
+ "id": "$item.serviceId",
510
+ "sessionId": "$item.sessionId",
511
+ "start": "$item.start"
512
+ }
513
+ },
514
+ "accessibilityRole": "button",
515
+ "accessibilityLabel": "View Course"
516
+ }
517
+ },
518
+ {
519
+ "id": "{{id}}.booked",
520
+ "body": {
521
+ "package": "himalaya",
522
+ "type": "HStack",
523
+ "props": {
524
+ "spacing": 4,
525
+ "alignment": "center",
526
+ "children": [
527
+ {
528
+ "id": "{{id}}.booked.icon",
529
+ "body": {
530
+ "package": "himalaya",
531
+ "type": "Icon",
532
+ "props": {
533
+ "name": "check",
534
+ "size": 16,
535
+ "tint": "success"
536
+ }
537
+ },
538
+ "modifiers": {
539
+ "accessibilityRole": "decorative"
540
+ }
541
+ },
542
+ {
543
+ "id": "{{id}}.booked.label",
544
+ "body": {
545
+ "package": "himalaya",
546
+ "type": "Text",
547
+ "props": {
548
+ "text": "Booked",
549
+ "style": "footnote",
550
+ "color": "textPrimary",
551
+ "maxLines": 1
552
+ }
553
+ }
554
+ }
555
+ ]
556
+ }
557
+ },
558
+ "modifiers": {
559
+ "hiddenPath": "$item.hideBooked",
560
+ "height": 36,
561
+ "padding": {
562
+ "leading": 12,
563
+ "trailing": 12
564
+ },
565
+ "cornerRadius": 18,
566
+ "background": {
567
+ "token": "surfaceSecondary"
568
+ },
569
+ "pressFeedback": "highlight",
570
+ "onTap": {
571
+ "actionId": "himi.open",
572
+ "params": {
573
+ "screenId": "{{serviceScreen}}",
574
+ "id": "$item.serviceId",
575
+ "sessionId": "$item.sessionId",
576
+ "start": "$item.start"
577
+ }
578
+ },
579
+ "accessibilityRole": "button",
580
+ "accessibilityLabel": "Booked"
581
+ }
582
+ },
583
+ {
584
+ "id": "{{id}}.onWaitlist",
585
+ "body": {
586
+ "package": "himalaya",
587
+ "type": "HStack",
588
+ "props": {
589
+ "spacing": 4,
590
+ "alignment": "center",
591
+ "children": [
592
+ {
593
+ "id": "{{id}}.onWaitlist.icon",
594
+ "body": {
595
+ "package": "himalaya",
596
+ "type": "Icon",
597
+ "props": {
598
+ "name": "clock",
599
+ "size": 16,
600
+ "tint": "textSecondary"
601
+ }
602
+ },
603
+ "modifiers": {
604
+ "accessibilityRole": "decorative"
605
+ }
606
+ },
607
+ {
608
+ "id": "{{id}}.onWaitlist.label",
609
+ "body": {
610
+ "package": "himalaya",
611
+ "type": "Text",
612
+ "props": {
613
+ "text": "On waitlist",
614
+ "style": "footnote",
615
+ "color": "textPrimary",
616
+ "maxLines": 1
617
+ }
618
+ }
619
+ }
620
+ ]
621
+ }
622
+ },
623
+ "modifiers": {
624
+ "hiddenPath": "$item.hideOnWaitlist",
625
+ "height": 36,
626
+ "padding": {
627
+ "leading": 12,
628
+ "trailing": 12
629
+ },
630
+ "cornerRadius": 18,
631
+ "background": {
632
+ "token": "surfaceSecondary"
633
+ },
634
+ "pressFeedback": "highlight",
635
+ "onTap": {
636
+ "actionId": "himi.open",
637
+ "params": {
638
+ "screenId": "{{serviceScreen}}",
639
+ "id": "$item.serviceId",
640
+ "sessionId": "$item.sessionId",
641
+ "start": "$item.start"
642
+ }
643
+ },
644
+ "accessibilityRole": "button",
645
+ "accessibilityLabel": "On waitlist"
646
+ }
647
+ },
648
+ {
649
+ "id": "{{id}}.closed",
650
+ "body": {
651
+ "package": "himalaya",
652
+ "type": "Text",
653
+ "props": {
654
+ "text": "$item.closedLabel",
655
+ "style": "footnote",
656
+ "color": "textTertiary",
657
+ "maxLines": 1
658
+ }
659
+ },
660
+ "modifiers": {
661
+ "hiddenPath": "$item.hideClosed"
662
+ }
663
+ }
664
+ ]
665
+ }
666
+ }
667
+ }
668
+ ]
669
+ }
670
+ },
671
+ "modifiers": {
672
+ "padding": {
673
+ "leading": 0,
674
+ "trailing": 0,
675
+ "top": 12,
676
+ "bottom": 12
677
+ },
678
+ "fillMaxWidth": true
679
+ }
680
+ }
681
+ ]
682
+ }
683
+ },
684
+ "modifiers": {
685
+ "hiddenPath": "$service:{{svc}}.noRows"
686
+ }
687
+ },
688
+ {
689
+ "id": "{{id}}.empty",
690
+ "body": {
691
+ "package": "himalaya",
692
+ "type": "Text",
693
+ "props": {
694
+ "text": "$service:{{svc}}.emptyText",
695
+ "style": "body",
696
+ "color": "textSecondary"
697
+ }
698
+ },
699
+ "modifiers": {
700
+ "hiddenPath": "$service:{{svc}}.noEmpty"
701
+ }
702
+ }
703
+ ]
704
+ }
705
+ }
706
+ }
707
+ }