@wix/himalaya-cli 0.1948.0 → 0.1950.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 (176) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/files/src/index.d.ts +23 -2
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/network/src/index.d.ts +22 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +1 -1
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/message-format.d.ts +1 -1
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/social-feed/src/index.d.ts +13 -4
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/video/src/display.d.ts +3 -0
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -1
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -1
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -1
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -1
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/files.mjs +4 -1
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/l10n.mjs +1 -8
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -1
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -1
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/network.mjs +19 -3
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -1
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +4 -9
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -1
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -1
  20. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-video.mjs +4 -0
  21. package/dist/browser-plane/assets.json +5 -5
  22. package/dist/browser-plane/preview-deferred/{1425fc7ef3149df8ba41fdbcca629cefd430a2cae524822c21985f0aade6430a.bin → bb3ece9e6e814275817059f029f1b2db624dceb90d9e1a53ebae2b45fe6d36e5.bin} +1 -1
  23. package/dist/browser-plane/sw.js +9 -9
  24. package/dist/cli.mjs +185 -95
  25. package/dist/preview-assets.generated.bin +0 -0
  26. package/guides/app-icon.md +7 -3
  27. package/guides/one-app-to-himi-app.md +2 -2
  28. package/guides/release-notes.md +11 -0
  29. package/guides/sdk-reference.json +55 -6
  30. package/guides/web-page-sdk-reference.md +1 -1
  31. package/package.json +2 -2
  32. package/templates/beauty-salon-owner/config.ts +7 -0
  33. package/templates/beauty-salon-owner/dev/index.ts +567 -0
  34. package/templates/beauty-salon-owner/himalaya.content.json +3 -0
  35. package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  36. package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  37. package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  38. package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  39. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  40. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  41. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  42. package/templates/branded-lite/l10n/ar.json +21 -0
  43. package/templates/branded-lite/l10n/cs.json +21 -0
  44. package/templates/branded-lite/l10n/da.json +21 -0
  45. package/templates/branded-lite/l10n/de.json +21 -0
  46. package/templates/branded-lite/l10n/el.json +21 -0
  47. package/templates/branded-lite/l10n/en.json +5 -0
  48. package/templates/branded-lite/l10n/es.json +21 -0
  49. package/templates/branded-lite/l10n/fi.json +21 -0
  50. package/templates/branded-lite/l10n/fr.json +21 -0
  51. package/templates/branded-lite/l10n/he.json +21 -0
  52. package/templates/branded-lite/l10n/hu.json +21 -0
  53. package/templates/branded-lite/l10n/id.json +21 -0
  54. package/templates/branded-lite/l10n/it.json +21 -0
  55. package/templates/branded-lite/l10n/ja.json +21 -0
  56. package/templates/branded-lite/l10n/ko.json +21 -0
  57. package/templates/branded-lite/l10n/lt.json +21 -0
  58. package/templates/branded-lite/l10n/nl.json +21 -0
  59. package/templates/branded-lite/l10n/no.json +21 -0
  60. package/templates/branded-lite/l10n/pl.json +21 -0
  61. package/templates/branded-lite/l10n/pt.json +21 -0
  62. package/templates/branded-lite/l10n/ru.json +21 -0
  63. package/templates/branded-lite/l10n/sv.json +21 -0
  64. package/templates/branded-lite/l10n/th.json +21 -0
  65. package/templates/branded-lite/l10n/tr.json +21 -0
  66. package/templates/branded-lite/l10n/uk.json +21 -0
  67. package/templates/branded-lite/l10n/vi.json +21 -0
  68. package/templates/branded-lite/l10n/zh.json +21 -0
  69. package/templates/branded-lite/recipes/group-feed.json +221 -3
  70. package/templates/branded-lite/recipes/groups-newsfeed.json +160 -2
  71. package/templates/branded-lite/recipes/video-library.json +475 -0
  72. package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +119 -7
  73. package/templates/branded-lite/tier5-src/_shared/groups-newsfeed-section.ts +17 -9
  74. package/templates/branded-lite/tier5-src/_shared/videos-section.ts +134 -2
  75. package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +4 -2
  76. package/templates/community-club-owner/config.ts +7 -0
  77. package/templates/community-club-owner/dev/index.ts +567 -0
  78. package/templates/community-club-owner/himalaya.content.json +3 -0
  79. package/templates/community-club-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  80. package/templates/community-club-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  81. package/templates/community-club-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  82. package/templates/community-club-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  83. package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  84. package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  85. package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  86. package/templates/events-meetups-owner/config.ts +7 -0
  87. package/templates/events-meetups-owner/dev/index.ts +567 -0
  88. package/templates/events-meetups-owner/himalaya.content.json +3 -0
  89. package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  90. package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  91. package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  92. package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  93. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  94. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  95. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  96. package/templates/gym-fitness-owner/config.ts +7 -0
  97. package/templates/gym-fitness-owner/dev/index.ts +567 -0
  98. package/templates/gym-fitness-owner/himalaya.content.json +3 -0
  99. package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  100. package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  101. package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  102. package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  103. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  104. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  105. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  106. package/templates/nonprofit-cause-owner/config.ts +7 -0
  107. package/templates/nonprofit-cause-owner/dev/index.ts +567 -0
  108. package/templates/nonprofit-cause-owner/himalaya.content.json +3 -0
  109. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  110. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  111. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  112. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  113. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  114. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  115. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  116. package/templates/owner-lite/config.ts +7 -0
  117. package/templates/owner-lite/dev/index.ts +567 -0
  118. package/templates/owner-lite/himalaya.content.json +3 -0
  119. package/templates/owner-lite/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  120. package/templates/owner-lite/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  121. package/templates/owner-lite/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  122. package/templates/owner-lite/tier5-src/_shared/owner-maestro-when.ts +13 -0
  123. package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  124. package/templates/owner-lite/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  125. package/templates/owner-lite/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  126. package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-video/index.ts +4 -2
  127. package/templates/podcast-creator-owner/config.ts +7 -0
  128. package/templates/podcast-creator-owner/dev/index.ts +567 -0
  129. package/templates/podcast-creator-owner/himalaya.content.json +3 -0
  130. package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  131. package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  132. package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  133. package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  134. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  135. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  136. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  137. package/templates/portfolio-creative-owner/config.ts +7 -0
  138. package/templates/portfolio-creative-owner/dev/index.ts +567 -0
  139. package/templates/portfolio-creative-owner/himalaya.content.json +3 -0
  140. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  141. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  142. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  143. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  144. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  145. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  146. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  147. package/templates/restaurant-owner/config.ts +7 -0
  148. package/templates/restaurant-owner/dev/index.ts +567 -0
  149. package/templates/restaurant-owner/himalaya.content.json +3 -0
  150. package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  151. package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  152. package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  153. package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  154. package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  155. package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  156. package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  157. package/templates/retail-store-owner/config.ts +7 -0
  158. package/templates/retail-store-owner/dev/index.ts +567 -0
  159. package/templates/retail-store-owner/himalaya.content.json +3 -0
  160. package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  161. package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  162. package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  163. package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  164. package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  165. package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  166. package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
  167. package/templates/yoga-studio-owner/config.ts +7 -0
  168. package/templates/yoga-studio-owner/dev/index.ts +567 -0
  169. package/templates/yoga-studio-owner/himalaya.content.json +3 -0
  170. package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-activity.ts +151 -0
  171. package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-availability.ts +15 -2
  172. package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-chat.ts +20 -7
  173. package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-when.ts +13 -0
  174. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +60 -11
  175. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro-activity/index.ts +228 -0
  176. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +1 -11
@@ -0,0 +1,475 @@
1
+ {
2
+ "_recipe": "The site's Wix Video channels, each inline: the channel's cover, title and size (\"1 video · Free\"), Play All, its first clips as rows (thumbnail with the length on it, title, the video's host when it is not Wix, a play glyph) and See All when the channel has more. A clip and Play All open the video screen with the video, its channel and title; See All opens the channel's screen (the generator removes it when the scaffold has none). A site with no ready video shows \"No videos yet.\". ONE node, always mounted. Service: registerVideoLibrarySection(svc, { channelId, channels, videosPerChannel }); a failed read shows the shared section-error piece.",
3
+ "_keys": {
4
+ "Play All": "videos.playAllCta",
5
+ "See All": "videos.seeAllCta",
6
+ "No videos yet.": "videos.libraryEmpty"
7
+ },
8
+ "_placeholders": {
9
+ "svc": "service name the page worker registered with registerVideoLibrarySection",
10
+ "id": "unique node id prefix for this section",
11
+ "detailScreen": "video screen id, himi_video",
12
+ "channelScreen": "channel screen id, himi_video_channel",
13
+ "videosScreen": "the videos screen id, himi_videos: See All to every channel when the site has more than the section shows (the generator removes it when the section names one channel or the scaffold has no such screen)"
14
+ },
15
+ "node": {
16
+ "id": "{{id}}.library",
17
+ "body": {
18
+ "package": "himalaya",
19
+ "type": "VStack",
20
+ "props": {
21
+ "spacing": 16,
22
+ "alignment": "leading",
23
+ "children": [
24
+ {
25
+ "id": "{{id}}.loading",
26
+ "body": {
27
+ "package": "himalaya",
28
+ "type": "Skeleton",
29
+ "props": {
30
+ "height": 160,
31
+ "count": 1,
32
+ "cornerRadius": 12
33
+ }
34
+ },
35
+ "modifiers": {
36
+ "padding": {
37
+ "leading": 0,
38
+ "trailing": 0,
39
+ "top": 0,
40
+ "bottom": 0
41
+ },
42
+ "hiddenPath": "$service:{{svc}}.notLoading"
43
+ }
44
+ },
45
+ {
46
+ "id": "{{id}}.channels",
47
+ "body": {
48
+ "package": "himalaya",
49
+ "type": "Grid",
50
+ "props": {
51
+ "columns": 1,
52
+ "spacing": 24,
53
+ "itemsPath": "$service:{{svc}}.channels",
54
+ "items": [
55
+ {
56
+ "id": "{{id}}.channel",
57
+ "body": {
58
+ "package": "himalaya",
59
+ "type": "VStack",
60
+ "props": {
61
+ "spacing": 12,
62
+ "alignment": "leading",
63
+ "children": [
64
+ {
65
+ "id": "{{id}}.cover",
66
+ "body": {
67
+ "package": "himalaya",
68
+ "type": "Image",
69
+ "props": {
70
+ "url": "$item.coverUrl",
71
+ "fillWidth": true,
72
+ "height": 160,
73
+ "contentMode": "fill",
74
+ "shape": "rect"
75
+ }
76
+ },
77
+ "modifiers": {
78
+ "fillMaxWidth": true,
79
+ "cornerRadius": 12,
80
+ "hiddenPath": "$item.noCover",
81
+ "accessibilityRole": "decorative",
82
+ "imagePreview": "off"
83
+ }
84
+ },
85
+ {
86
+ "id": "{{id}}.head",
87
+ "body": {
88
+ "package": "himalaya",
89
+ "type": "VStack",
90
+ "props": {
91
+ "spacing": 2,
92
+ "alignment": "leading",
93
+ "children": [
94
+ {
95
+ "id": "{{id}}.channel_title",
96
+ "body": {
97
+ "package": "himalaya",
98
+ "type": "Text",
99
+ "props": {
100
+ "text": "$item.title",
101
+ "style": "title3",
102
+ "maxLines": 2,
103
+ "collapseWhenEmpty": true
104
+ }
105
+ }
106
+ },
107
+ {
108
+ "id": "{{id}}.summary",
109
+ "body": {
110
+ "package": "himalaya",
111
+ "type": "Text",
112
+ "props": {
113
+ "text": "$item.summary",
114
+ "style": "footnote",
115
+ "color": "textSecondary",
116
+ "maxLines": 1
117
+ }
118
+ }
119
+ }
120
+ ]
121
+ }
122
+ }
123
+ },
124
+ {
125
+ "id": "{{id}}.play_all",
126
+ "body": {
127
+ "package": "himalaya",
128
+ "type": "Button",
129
+ "props": {
130
+ "title": "Play All",
131
+ "style": "link",
132
+ "leadingIcon": "play",
133
+ "action": {
134
+ "actionId": "himi.open",
135
+ "params": {
136
+ "screenId": "{{detailScreen}}",
137
+ "id": "$item.playId",
138
+ "channelId": "$item.playChannelId",
139
+ "title": "$item.playTitle"
140
+ }
141
+ }
142
+ }
143
+ },
144
+ "modifiers": {
145
+ "hiddenPath": "$item.noPlayAll",
146
+ "accessibilityLabel": "$item.playAllLabel"
147
+ }
148
+ },
149
+ {
150
+ "id": "{{id}}.clips",
151
+ "body": {
152
+ "package": "himalaya",
153
+ "type": "Grid",
154
+ "props": {
155
+ "columns": 1,
156
+ "spacing": 12,
157
+ "itemsPath": "$item.videos",
158
+ "items": [
159
+ {
160
+ "id": "{{id}}.clip",
161
+ "body": {
162
+ "package": "himalaya",
163
+ "type": "HStack",
164
+ "props": {
165
+ "spacing": 12,
166
+ "alignment": "center",
167
+ "children": [
168
+ {
169
+ "id": "{{id}}.thumb",
170
+ "body": {
171
+ "package": "himalaya",
172
+ "type": "ZStack",
173
+ "props": {
174
+ "alignment": "leading",
175
+ "children": [
176
+ {
177
+ "id": "{{id}}.thumb_image",
178
+ "body": {
179
+ "package": "himalaya",
180
+ "type": "Image",
181
+ "props": {
182
+ "url": "$item.coverUrl",
183
+ "width": 112,
184
+ "height": 63,
185
+ "contentMode": "fill",
186
+ "shape": "rect"
187
+ }
188
+ },
189
+ "modifiers": {
190
+ "hiddenPath": "$item.noCover",
191
+ "accessibilityRole": "decorative"
192
+ }
193
+ },
194
+ {
195
+ "id": "{{id}}.thumb_placeholder",
196
+ "body": {
197
+ "package": "himalaya",
198
+ "type": "ZStack",
199
+ "props": {
200
+ "alignment": "center",
201
+ "children": [
202
+ {
203
+ "id": "",
204
+ "body": {
205
+ "package": "himalaya",
206
+ "type": "Icon",
207
+ "props": {
208
+ "name": "play",
209
+ "size": 20,
210
+ "tint": "accentPrimary"
211
+ }
212
+ },
213
+ "modifiers": {
214
+ "accessibilityRole": "decorative"
215
+ }
216
+ }
217
+ ]
218
+ }
219
+ },
220
+ "modifiers": {
221
+ "width": 112,
222
+ "height": 63,
223
+ "background": {
224
+ "token": "accentSurface"
225
+ },
226
+ "hiddenPath": "$item.hasCover"
227
+ }
228
+ },
229
+ {
230
+ "id": "",
231
+ "body": {
232
+ "package": "himalaya",
233
+ "type": "VStack",
234
+ "props": {
235
+ "spacing": 0,
236
+ "alignment": "leading",
237
+ "children": [
238
+ {
239
+ "id": "",
240
+ "body": {
241
+ "package": "himalaya",
242
+ "type": "Spacer",
243
+ "props": {}
244
+ }
245
+ },
246
+ {
247
+ "id": "",
248
+ "body": {
249
+ "package": "himalaya",
250
+ "type": "HStack",
251
+ "props": {
252
+ "spacing": 0,
253
+ "alignment": "center",
254
+ "children": [
255
+ {
256
+ "id": "",
257
+ "body": {
258
+ "package": "himalaya",
259
+ "type": "Spacer",
260
+ "props": {}
261
+ }
262
+ },
263
+ {
264
+ "id": "{{id}}.duration",
265
+ "body": {
266
+ "package": "himalaya",
267
+ "type": "Text",
268
+ "props": {
269
+ "text": "$item.duration",
270
+ "style": "caption",
271
+ "color": "textOnAccent",
272
+ "maxLines": 1
273
+ }
274
+ },
275
+ "modifiers": {
276
+ "background": {
277
+ "token": "accentPrimary"
278
+ },
279
+ "cornerRadius": 4,
280
+ "padding": {
281
+ "leading": 6,
282
+ "trailing": 6,
283
+ "top": 1,
284
+ "bottom": 1
285
+ },
286
+ "hiddenPath": "$item.noDuration"
287
+ }
288
+ }
289
+ ]
290
+ }
291
+ }
292
+ }
293
+ ]
294
+ }
295
+ },
296
+ "modifiers": {
297
+ "width": 112,
298
+ "height": 63,
299
+ "padding": {
300
+ "leading": 4,
301
+ "trailing": 4,
302
+ "top": 4,
303
+ "bottom": 4
304
+ }
305
+ }
306
+ }
307
+ ]
308
+ }
309
+ },
310
+ "modifiers": {
311
+ "width": 112,
312
+ "height": 63,
313
+ "cornerRadius": 8
314
+ }
315
+ },
316
+ {
317
+ "id": "{{id}}.clip_text",
318
+ "body": {
319
+ "package": "himalaya",
320
+ "type": "VStack",
321
+ "props": {
322
+ "spacing": 2,
323
+ "alignment": "leading",
324
+ "children": [
325
+ {
326
+ "id": "{{id}}.clip_title",
327
+ "body": {
328
+ "package": "himalaya",
329
+ "type": "Text",
330
+ "props": {
331
+ "text": "$item.title",
332
+ "style": "bodyEmphasis",
333
+ "maxLines": 2
334
+ }
335
+ }
336
+ },
337
+ {
338
+ "id": "{{id}}.provider",
339
+ "body": {
340
+ "package": "himalaya",
341
+ "type": "Text",
342
+ "props": {
343
+ "text": "$item.provider",
344
+ "style": "footnote",
345
+ "color": "textSecondary",
346
+ "maxLines": 1
347
+ }
348
+ },
349
+ "modifiers": {
350
+ "hiddenPath": "$item.noProvider"
351
+ }
352
+ }
353
+ ]
354
+ }
355
+ },
356
+ "modifiers": {
357
+ "weight": 1
358
+ }
359
+ },
360
+ {
361
+ "id": "",
362
+ "body": {
363
+ "package": "himalaya",
364
+ "type": "Icon",
365
+ "props": {
366
+ "name": "play",
367
+ "size": 20,
368
+ "tint": "accentPrimary"
369
+ }
370
+ },
371
+ "modifiers": {
372
+ "accessibilityRole": "decorative"
373
+ }
374
+ }
375
+ ]
376
+ }
377
+ },
378
+ "modifiers": {
379
+ "fillMaxWidth": true,
380
+ "onTap": {
381
+ "actionId": "himi.open",
382
+ "params": {
383
+ "screenId": "{{detailScreen}}",
384
+ "id": "$item.id",
385
+ "channelId": "$item.channelId",
386
+ "title": "$item.title"
387
+ }
388
+ },
389
+ "pressFeedback": "scale",
390
+ "haptic": "light",
391
+ "accessibilityLabel": "$item.accessibilityLabel"
392
+ }
393
+ }
394
+ ]
395
+ }
396
+ }
397
+ },
398
+ {
399
+ "id": "{{id}}.channel_all",
400
+ "body": {
401
+ "package": "himalaya",
402
+ "type": "Button",
403
+ "props": {
404
+ "title": "See All",
405
+ "style": "link",
406
+ "action": {
407
+ "actionId": "himi.open",
408
+ "params": {
409
+ "screenId": "{{channelScreen}}",
410
+ "id": "$item.id"
411
+ }
412
+ }
413
+ }
414
+ },
415
+ "modifiers": {
416
+ "hiddenPath": "$item.noMore",
417
+ "accessibilityLabel": "$item.seeAllLabel"
418
+ }
419
+ }
420
+ ]
421
+ }
422
+ },
423
+ "modifiers": {
424
+ "fillMaxWidth": true
425
+ }
426
+ }
427
+ ]
428
+ }
429
+ },
430
+ "modifiers": {
431
+ "hiddenPath": "$service:{{svc}}.noRows"
432
+ }
433
+ },
434
+ {
435
+ "id": "{{id}}.all_channels",
436
+ "body": {
437
+ "package": "himalaya",
438
+ "type": "Button",
439
+ "props": {
440
+ "title": "See All",
441
+ "style": "secondary",
442
+ "size": "md",
443
+ "fullWidth": true,
444
+ "action": {
445
+ "actionId": "himi.open",
446
+ "params": {
447
+ "screenId": "{{videosScreen}}"
448
+ }
449
+ }
450
+ }
451
+ },
452
+ "modifiers": {
453
+ "hiddenPath": "$service:{{svc}}.noMoreChannels"
454
+ }
455
+ },
456
+ {
457
+ "id": "{{id}}.empty",
458
+ "body": {
459
+ "package": "himalaya",
460
+ "type": "Text",
461
+ "props": {
462
+ "text": "No videos yet.",
463
+ "style": "body",
464
+ "color": "textSecondary"
465
+ }
466
+ },
467
+ "modifiers": {
468
+ "hiddenPath": "$service:{{svc}}.noEmpty"
469
+ }
470
+ }
471
+ ]
472
+ }
473
+ }
474
+ }
475
+ }