@wix/himalaya-cli 0.1741.0 → 0.1743.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 (287) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +7 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/pricing-plans/src/index.d.ts +6 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-members.mjs +6 -0
  4. package/dist/cli.mjs +162 -74
  5. package/guides/getting-started.md +18 -7
  6. package/guides/himi-json-output.md +11 -0
  7. package/guides/himi-skill.md +18 -7
  8. package/guides/sdk-reference.json +11 -2
  9. package/guides/skill.md +24 -13
  10. package/package.json +2 -2
  11. package/templates/beauty-salon/l10n/en.json +55 -0
  12. package/templates/beauty-salon/l10n/fr.json +297 -0
  13. package/templates/beauty-salon/l10n/he.json +319 -0
  14. package/templates/beauty-salon/recipes/blog-list-thumb-start.json +364 -0
  15. package/templates/beauty-salon/recipes/blog-list.json +364 -0
  16. package/templates/beauty-salon/recipes/blog-see-all.json +50 -0
  17. package/templates/beauty-salon/recipes/events-inline-list.json +203 -0
  18. package/templates/beauty-salon/recipes/events-inline.json +284 -0
  19. package/templates/beauty-salon/recipes/members-list.json +445 -0
  20. package/templates/beauty-salon/recipes/plans-card.json +811 -0
  21. package/templates/beauty-salon/recipes/programs-card.json +254 -0
  22. package/templates/beauty-salon/recipes/programs-carousel.json +234 -0
  23. package/templates/beauty-salon/recipes/section-error.json +58 -0
  24. package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +207 -0
  25. package/templates/beauty-salon/tier5-src/_shared/event-registration.ts +86 -0
  26. package/templates/beauty-salon/tier5-src/_shared/events-card.ts +33 -0
  27. package/templates/beauty-salon/tier5-src/_shared/events-inline-options.ts +25 -0
  28. package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +82 -0
  29. package/templates/beauty-salon/tier5-src/_shared/member-activity.ts +34 -0
  30. package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +167 -0
  31. package/templates/beauty-salon/tier5-src/_shared/members-directory-view.ts +39 -0
  32. package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +267 -0
  33. package/templates/beauty-salon/tier5-src/_shared/plan-facts.ts +87 -0
  34. package/templates/beauty-salon/tier5-src/_shared/plans-section.ts +106 -0
  35. package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +728 -0
  36. package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +21 -0
  37. package/templates/branded-lite/l10n/fr.json +10 -0
  38. package/templates/branded-lite/l10n/he.json +88 -0
  39. package/templates/branded-lite/recipes/blog-list-thumb-start.json +364 -0
  40. package/templates/branded-lite/recipes/blog-list.json +364 -0
  41. package/templates/branded-lite/recipes/blog-see-all.json +50 -0
  42. package/templates/branded-lite/recipes/events-inline-list.json +203 -0
  43. package/templates/branded-lite/recipes/events-inline.json +284 -0
  44. package/templates/branded-lite/recipes/members-list.json +445 -0
  45. package/templates/branded-lite/recipes/plans-card.json +811 -0
  46. package/templates/branded-lite/recipes/programs-card.json +254 -0
  47. package/templates/branded-lite/recipes/programs-carousel.json +234 -0
  48. package/templates/branded-lite/recipes/section-error.json +58 -0
  49. package/templates/branded-lite/tier5-src/_shared/blog-list.ts +207 -0
  50. package/templates/branded-lite/tier5-src/_shared/events-card.ts +33 -0
  51. package/templates/branded-lite/tier5-src/_shared/events-inline-options.ts +25 -0
  52. package/templates/branded-lite/tier5-src/_shared/events-inline.ts +82 -0
  53. package/templates/branded-lite/tier5-src/_shared/member-row-extras.ts +1 -1
  54. package/templates/branded-lite/tier5-src/_shared/members-directory-view.ts +39 -0
  55. package/templates/branded-lite/tier5-src/_shared/members-directory.ts +267 -0
  56. package/templates/branded-lite/tier5-src/_shared/plan-facts.ts +87 -0
  57. package/templates/branded-lite/tier5-src/_shared/plans-section.ts +106 -0
  58. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +728 -0
  59. package/templates/branded-lite/tier5-src/_shared/relative-time.ts +21 -0
  60. package/templates/community-club/l10n/en.json +45 -0
  61. package/templates/community-club/l10n/fr.json +292 -0
  62. package/templates/community-club/l10n/he.json +315 -0
  63. package/templates/community-club/recipes/blog-list-thumb-start.json +364 -0
  64. package/templates/community-club/recipes/blog-list.json +364 -0
  65. package/templates/community-club/recipes/blog-see-all.json +50 -0
  66. package/templates/community-club/recipes/events-inline-list.json +203 -0
  67. package/templates/community-club/recipes/events-inline.json +284 -0
  68. package/templates/community-club/recipes/members-list.json +445 -0
  69. package/templates/community-club/recipes/plans-card.json +811 -0
  70. package/templates/community-club/recipes/programs-card.json +254 -0
  71. package/templates/community-club/recipes/programs-carousel.json +234 -0
  72. package/templates/community-club/recipes/section-error.json +58 -0
  73. package/templates/community-club/tier5-src/_shared/blog-list.ts +207 -0
  74. package/templates/community-club/tier5-src/_shared/detail-presence.ts +51 -0
  75. package/templates/community-club/tier5-src/_shared/events-card.ts +33 -0
  76. package/templates/community-club/tier5-src/_shared/events-inline-options.ts +25 -0
  77. package/templates/community-club/tier5-src/_shared/events-inline.ts +82 -0
  78. package/templates/community-club/tier5-src/_shared/member-activity.ts +34 -0
  79. package/templates/community-club/tier5-src/_shared/member-row-extras.ts +167 -0
  80. package/templates/community-club/tier5-src/_shared/members-directory-view.ts +39 -0
  81. package/templates/community-club/tier5-src/_shared/members-directory.ts +267 -0
  82. package/templates/community-club/tier5-src/_shared/plan-facts.ts +87 -0
  83. package/templates/community-club/tier5-src/_shared/plans-section.ts +106 -0
  84. package/templates/community-club/tier5-src/_shared/programs-section.ts +728 -0
  85. package/templates/community-club/tier5-src/_shared/relative-time.ts +21 -0
  86. package/templates/events-meetups/l10n/en.json +45 -0
  87. package/templates/events-meetups/l10n/fr.json +292 -0
  88. package/templates/events-meetups/l10n/he.json +315 -0
  89. package/templates/events-meetups/recipes/blog-list-thumb-start.json +364 -0
  90. package/templates/events-meetups/recipes/blog-list.json +364 -0
  91. package/templates/events-meetups/recipes/blog-see-all.json +50 -0
  92. package/templates/events-meetups/recipes/events-inline-list.json +203 -0
  93. package/templates/events-meetups/recipes/events-inline.json +284 -0
  94. package/templates/events-meetups/recipes/members-list.json +445 -0
  95. package/templates/events-meetups/recipes/plans-card.json +811 -0
  96. package/templates/events-meetups/recipes/programs-card.json +254 -0
  97. package/templates/events-meetups/recipes/programs-carousel.json +234 -0
  98. package/templates/events-meetups/recipes/section-error.json +58 -0
  99. package/templates/events-meetups/tier5-src/_shared/blog-list.ts +207 -0
  100. package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +51 -0
  101. package/templates/events-meetups/tier5-src/_shared/events-card.ts +33 -0
  102. package/templates/events-meetups/tier5-src/_shared/events-inline-options.ts +25 -0
  103. package/templates/events-meetups/tier5-src/_shared/events-inline.ts +82 -0
  104. package/templates/events-meetups/tier5-src/_shared/member-activity.ts +34 -0
  105. package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +167 -0
  106. package/templates/events-meetups/tier5-src/_shared/members-directory-view.ts +39 -0
  107. package/templates/events-meetups/tier5-src/_shared/members-directory.ts +267 -0
  108. package/templates/events-meetups/tier5-src/_shared/plan-facts.ts +87 -0
  109. package/templates/events-meetups/tier5-src/_shared/plans-section.ts +106 -0
  110. package/templates/events-meetups/tier5-src/_shared/programs-section.ts +728 -0
  111. package/templates/events-meetups/tier5-src/_shared/relative-time.ts +21 -0
  112. package/templates/gym-fitness/l10n/en.json +45 -0
  113. package/templates/gym-fitness/l10n/fr.json +282 -0
  114. package/templates/gym-fitness/l10n/he.json +307 -0
  115. package/templates/gym-fitness/recipes/blog-list-thumb-start.json +364 -0
  116. package/templates/gym-fitness/recipes/blog-list.json +364 -0
  117. package/templates/gym-fitness/recipes/blog-see-all.json +50 -0
  118. package/templates/gym-fitness/recipes/events-inline-list.json +203 -0
  119. package/templates/gym-fitness/recipes/events-inline.json +284 -0
  120. package/templates/gym-fitness/recipes/members-list.json +445 -0
  121. package/templates/gym-fitness/recipes/plans-card.json +811 -0
  122. package/templates/gym-fitness/recipes/programs-card.json +254 -0
  123. package/templates/gym-fitness/recipes/programs-carousel.json +234 -0
  124. package/templates/gym-fitness/recipes/section-error.json +58 -0
  125. package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +207 -0
  126. package/templates/gym-fitness/tier5-src/_shared/events-card.ts +33 -0
  127. package/templates/gym-fitness/tier5-src/_shared/events-inline-options.ts +25 -0
  128. package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +82 -0
  129. package/templates/gym-fitness/tier5-src/_shared/member-activity.ts +34 -0
  130. package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +167 -0
  131. package/templates/gym-fitness/tier5-src/_shared/members-directory-view.ts +39 -0
  132. package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +267 -0
  133. package/templates/gym-fitness/tier5-src/_shared/plan-facts.ts +87 -0
  134. package/templates/gym-fitness/tier5-src/_shared/plans-section.ts +106 -0
  135. package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +728 -0
  136. package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +21 -0
  137. package/templates/nonprofit-cause/l10n/en.json +45 -0
  138. package/templates/nonprofit-cause/l10n/fr.json +267 -0
  139. package/templates/nonprofit-cause/l10n/he.json +295 -0
  140. package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +364 -0
  141. package/templates/nonprofit-cause/recipes/blog-list.json +364 -0
  142. package/templates/nonprofit-cause/recipes/blog-see-all.json +50 -0
  143. package/templates/nonprofit-cause/recipes/events-inline-list.json +203 -0
  144. package/templates/nonprofit-cause/recipes/events-inline.json +284 -0
  145. package/templates/nonprofit-cause/recipes/members-list.json +445 -0
  146. package/templates/nonprofit-cause/recipes/plans-card.json +811 -0
  147. package/templates/nonprofit-cause/recipes/programs-card.json +254 -0
  148. package/templates/nonprofit-cause/recipes/programs-carousel.json +234 -0
  149. package/templates/nonprofit-cause/recipes/section-error.json +58 -0
  150. package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +207 -0
  151. package/templates/nonprofit-cause/tier5-src/_shared/events-card.ts +33 -0
  152. package/templates/nonprofit-cause/tier5-src/_shared/events-inline-options.ts +25 -0
  153. package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +82 -0
  154. package/templates/nonprofit-cause/tier5-src/_shared/member-activity.ts +34 -0
  155. package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +167 -0
  156. package/templates/nonprofit-cause/tier5-src/_shared/members-directory-view.ts +39 -0
  157. package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +267 -0
  158. package/templates/nonprofit-cause/tier5-src/_shared/plan-facts.ts +87 -0
  159. package/templates/nonprofit-cause/tier5-src/_shared/plans-section.ts +106 -0
  160. package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +728 -0
  161. package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +21 -0
  162. package/templates/podcast-creator/l10n/en.json +45 -0
  163. package/templates/podcast-creator/l10n/fr.json +287 -0
  164. package/templates/podcast-creator/l10n/he.json +311 -0
  165. package/templates/podcast-creator/recipes/blog-list-thumb-start.json +364 -0
  166. package/templates/podcast-creator/recipes/blog-list.json +364 -0
  167. package/templates/podcast-creator/recipes/blog-see-all.json +50 -0
  168. package/templates/podcast-creator/recipes/events-inline-list.json +203 -0
  169. package/templates/podcast-creator/recipes/events-inline.json +284 -0
  170. package/templates/podcast-creator/recipes/members-list.json +445 -0
  171. package/templates/podcast-creator/recipes/plans-card.json +811 -0
  172. package/templates/podcast-creator/recipes/programs-card.json +254 -0
  173. package/templates/podcast-creator/recipes/programs-carousel.json +234 -0
  174. package/templates/podcast-creator/recipes/section-error.json +58 -0
  175. package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +207 -0
  176. package/templates/podcast-creator/tier5-src/_shared/events-card.ts +33 -0
  177. package/templates/podcast-creator/tier5-src/_shared/events-inline-options.ts +25 -0
  178. package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +82 -0
  179. package/templates/podcast-creator/tier5-src/_shared/member-activity.ts +34 -0
  180. package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +167 -0
  181. package/templates/podcast-creator/tier5-src/_shared/members-directory-view.ts +39 -0
  182. package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +267 -0
  183. package/templates/podcast-creator/tier5-src/_shared/plan-facts.ts +87 -0
  184. package/templates/podcast-creator/tier5-src/_shared/plans-section.ts +106 -0
  185. package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +728 -0
  186. package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +21 -0
  187. package/templates/portfolio-creative/l10n/en.json +45 -0
  188. package/templates/portfolio-creative/l10n/fr.json +317 -0
  189. package/templates/portfolio-creative/l10n/he.json +335 -0
  190. package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +364 -0
  191. package/templates/portfolio-creative/recipes/blog-list.json +364 -0
  192. package/templates/portfolio-creative/recipes/blog-see-all.json +50 -0
  193. package/templates/portfolio-creative/recipes/events-inline-list.json +203 -0
  194. package/templates/portfolio-creative/recipes/events-inline.json +284 -0
  195. package/templates/portfolio-creative/recipes/members-list.json +445 -0
  196. package/templates/portfolio-creative/recipes/plans-card.json +811 -0
  197. package/templates/portfolio-creative/recipes/programs-card.json +254 -0
  198. package/templates/portfolio-creative/recipes/programs-carousel.json +234 -0
  199. package/templates/portfolio-creative/recipes/section-error.json +58 -0
  200. package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +207 -0
  201. package/templates/portfolio-creative/tier5-src/_shared/events-card.ts +33 -0
  202. package/templates/portfolio-creative/tier5-src/_shared/events-inline-options.ts +25 -0
  203. package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +82 -0
  204. package/templates/portfolio-creative/tier5-src/_shared/member-activity.ts +34 -0
  205. package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +167 -0
  206. package/templates/portfolio-creative/tier5-src/_shared/members-directory-view.ts +39 -0
  207. package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +267 -0
  208. package/templates/portfolio-creative/tier5-src/_shared/plan-facts.ts +87 -0
  209. package/templates/portfolio-creative/tier5-src/_shared/plans-section.ts +106 -0
  210. package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +728 -0
  211. package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +21 -0
  212. package/templates/restaurant/l10n/en.json +45 -0
  213. package/templates/restaurant/l10n/fr.json +317 -0
  214. package/templates/restaurant/l10n/he.json +335 -0
  215. package/templates/restaurant/recipes/blog-list-thumb-start.json +364 -0
  216. package/templates/restaurant/recipes/blog-list.json +364 -0
  217. package/templates/restaurant/recipes/blog-see-all.json +50 -0
  218. package/templates/restaurant/recipes/events-inline-list.json +203 -0
  219. package/templates/restaurant/recipes/events-inline.json +284 -0
  220. package/templates/restaurant/recipes/members-list.json +445 -0
  221. package/templates/restaurant/recipes/plans-card.json +811 -0
  222. package/templates/restaurant/recipes/programs-card.json +254 -0
  223. package/templates/restaurant/recipes/programs-carousel.json +234 -0
  224. package/templates/restaurant/recipes/section-error.json +58 -0
  225. package/templates/restaurant/tier5-src/_shared/blog-list.ts +207 -0
  226. package/templates/restaurant/tier5-src/_shared/events-card.ts +33 -0
  227. package/templates/restaurant/tier5-src/_shared/events-inline-options.ts +25 -0
  228. package/templates/restaurant/tier5-src/_shared/events-inline.ts +82 -0
  229. package/templates/restaurant/tier5-src/_shared/member-activity.ts +34 -0
  230. package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +167 -0
  231. package/templates/restaurant/tier5-src/_shared/members-directory-view.ts +39 -0
  232. package/templates/restaurant/tier5-src/_shared/members-directory.ts +267 -0
  233. package/templates/restaurant/tier5-src/_shared/plan-facts.ts +87 -0
  234. package/templates/restaurant/tier5-src/_shared/plans-section.ts +106 -0
  235. package/templates/restaurant/tier5-src/_shared/programs-section.ts +728 -0
  236. package/templates/restaurant/tier5-src/_shared/relative-time.ts +21 -0
  237. package/templates/retail-store/l10n/en.json +60 -0
  238. package/templates/retail-store/l10n/fr.json +342 -0
  239. package/templates/retail-store/l10n/he.json +355 -0
  240. package/templates/retail-store/recipes/blog-list-thumb-start.json +364 -0
  241. package/templates/retail-store/recipes/blog-list.json +364 -0
  242. package/templates/retail-store/recipes/blog-see-all.json +50 -0
  243. package/templates/retail-store/recipes/events-inline-list.json +203 -0
  244. package/templates/retail-store/recipes/events-inline.json +284 -0
  245. package/templates/retail-store/recipes/members-list.json +445 -0
  246. package/templates/retail-store/recipes/plans-card.json +811 -0
  247. package/templates/retail-store/recipes/programs-card.json +254 -0
  248. package/templates/retail-store/recipes/programs-carousel.json +234 -0
  249. package/templates/retail-store/recipes/section-error.json +58 -0
  250. package/templates/retail-store/tier5-src/_shared/blog-list.ts +207 -0
  251. package/templates/retail-store/tier5-src/_shared/event-registration.ts +86 -0
  252. package/templates/retail-store/tier5-src/_shared/events-card.ts +33 -0
  253. package/templates/retail-store/tier5-src/_shared/events-inline-options.ts +25 -0
  254. package/templates/retail-store/tier5-src/_shared/events-inline.ts +82 -0
  255. package/templates/retail-store/tier5-src/_shared/member-activity.ts +34 -0
  256. package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +167 -0
  257. package/templates/retail-store/tier5-src/_shared/members-directory-view.ts +39 -0
  258. package/templates/retail-store/tier5-src/_shared/members-directory.ts +267 -0
  259. package/templates/retail-store/tier5-src/_shared/plan-facts.ts +87 -0
  260. package/templates/retail-store/tier5-src/_shared/plans-section.ts +106 -0
  261. package/templates/retail-store/tier5-src/_shared/programs-section.ts +728 -0
  262. package/templates/retail-store/tier5-src/_shared/relative-time.ts +21 -0
  263. package/templates/yoga-studio/l10n/en.json +24 -0
  264. package/templates/yoga-studio/l10n/fr.json +64 -0
  265. package/templates/yoga-studio/l10n/he.json +132 -0
  266. package/templates/yoga-studio/recipes/blog-list-thumb-start.json +364 -0
  267. package/templates/yoga-studio/recipes/blog-list.json +364 -0
  268. package/templates/yoga-studio/recipes/blog-see-all.json +50 -0
  269. package/templates/yoga-studio/recipes/events-inline-list.json +203 -0
  270. package/templates/yoga-studio/recipes/events-inline.json +284 -0
  271. package/templates/yoga-studio/recipes/members-list.json +445 -0
  272. package/templates/yoga-studio/recipes/plans-card.json +811 -0
  273. package/templates/yoga-studio/recipes/programs-card.json +254 -0
  274. package/templates/yoga-studio/recipes/programs-carousel.json +234 -0
  275. package/templates/yoga-studio/recipes/section-error.json +58 -0
  276. package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +207 -0
  277. package/templates/yoga-studio/tier5-src/_shared/events-card.ts +33 -0
  278. package/templates/yoga-studio/tier5-src/_shared/events-inline-options.ts +25 -0
  279. package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +82 -0
  280. package/templates/yoga-studio/tier5-src/_shared/member-activity.ts +34 -0
  281. package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +167 -0
  282. package/templates/yoga-studio/tier5-src/_shared/members-directory-view.ts +39 -0
  283. package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +267 -0
  284. package/templates/yoga-studio/tier5-src/_shared/plan-facts.ts +87 -0
  285. package/templates/yoga-studio/tier5-src/_shared/plans-section.ts +106 -0
  286. package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +728 -0
  287. package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +21 -0
@@ -0,0 +1,254 @@
1
+ {
2
+ "_recipe": "Single-column full-width program cards (wide image, title, duration, access line, divider, full-width action), PAGED with the list layout's nextCursor/loadMore (inert for the carousel layout). Service: registerProgramsSection(svc,{layout:'list'|'carousel',...}). The list is the screen's own scroller: place it as a direct child of the page root.",
3
+ "_placeholders": {
4
+ "svc": "service name the page worker registered with registerProgramsSection",
5
+ "id": "unique node id prefix (e.g. the screen id)",
6
+ "detailScreen": "program detail screen id, default himi_program"
7
+ },
8
+ "node": {
9
+ "id": "{{id}}.cards",
10
+ "body": {
11
+ "package": "himalaya",
12
+ "type": "VStack",
13
+ "props": {
14
+ "spacing": 12,
15
+ "alignment": "leading",
16
+ "children": [
17
+ {
18
+ "id": "{{id}}.list",
19
+ "body": {
20
+ "package": "himalaya",
21
+ "type": "LazyList",
22
+ "props": {
23
+ "spacing": 12,
24
+ "itemsPath": "$service:{{svc}}.rows",
25
+ "items": [
26
+ {
27
+ "id": "{{id}}.card",
28
+ "body": {
29
+ "package": "himalaya",
30
+ "type": "VStack",
31
+ "props": {
32
+ "spacing": 8,
33
+ "alignment": "leading",
34
+ "children": [
35
+ {
36
+ "id": "",
37
+ "body": {
38
+ "package": "himalaya",
39
+ "type": "ZStack",
40
+ "props": {
41
+ "alignment": "leading",
42
+ "children": [
43
+ {
44
+ "id": "",
45
+ "body": {
46
+ "package": "himalaya",
47
+ "type": "Image",
48
+ "props": {
49
+ "url": "$item.image",
50
+ "fillWidth": true,
51
+ "height": 180,
52
+ "contentMode": "fill",
53
+ "contentDescription": "$item.name"
54
+ }
55
+ },
56
+ "modifiers": {
57
+ "cornerRadius": 8,
58
+ "fillMaxWidth": true,
59
+ "hiddenPath": "$item.noImage"
60
+ }
61
+ },
62
+ {
63
+ "id": "",
64
+ "body": {
65
+ "package": "himalaya",
66
+ "type": "ZStack",
67
+ "props": {
68
+ "alignment": "center",
69
+ "children": [
70
+ {
71
+ "id": "",
72
+ "body": {
73
+ "package": "himalaya",
74
+ "type": "Text",
75
+ "props": {
76
+ "text": "$item.initial",
77
+ "style": "display",
78
+ "maxLines": 1,
79
+ "color": "textOnAccent"
80
+ }
81
+ }
82
+ }
83
+ ]
84
+ }
85
+ },
86
+ "modifiers": {
87
+ "fillMaxWidth": true,
88
+ "height": 180,
89
+ "background": {
90
+ "token": "accentPrimary"
91
+ },
92
+ "cornerRadius": 8,
93
+ "hiddenPath": "$item.hasImage"
94
+ }
95
+ }
96
+ ]
97
+ }
98
+ }
99
+ },
100
+ {
101
+ "id": "",
102
+ "body": {
103
+ "package": "himalaya",
104
+ "type": "Text",
105
+ "props": {
106
+ "text": "$item.name",
107
+ "style": "bodyEmphasis",
108
+ "maxLines": 2
109
+ }
110
+ }
111
+ },
112
+ {
113
+ "id": "",
114
+ "body": {
115
+ "package": "himalaya",
116
+ "type": "Text",
117
+ "props": {
118
+ "text": "$item.durationLine",
119
+ "style": "footnote",
120
+ "maxLines": 1,
121
+ "color": "textSecondary",
122
+ "collapseWhenEmpty": true
123
+ }
124
+ },
125
+ "modifiers": {
126
+ "hiddenPath": "$item.noDuration"
127
+ }
128
+ },
129
+ {
130
+ "id": "",
131
+ "body": {
132
+ "package": "himalaya",
133
+ "type": "Text",
134
+ "props": {
135
+ "text": "$item.accessLine",
136
+ "style": "footnote",
137
+ "maxLines": 1,
138
+ "color": "textSecondary",
139
+ "collapseWhenEmpty": true
140
+ }
141
+ },
142
+ "modifiers": {
143
+ "hiddenPath": "$item.noAccess"
144
+ }
145
+ },
146
+ {
147
+ "id": "",
148
+ "body": {
149
+ "package": "himalaya",
150
+ "type": "Text",
151
+ "props": {
152
+ "text": "$item.descriptionLine",
153
+ "style": "footnote",
154
+ "maxLines": 2,
155
+ "color": "textSecondary",
156
+ "collapseWhenEmpty": true
157
+ }
158
+ }
159
+ },
160
+ {
161
+ "id": "",
162
+ "body": {
163
+ "package": "himalaya",
164
+ "type": "Text",
165
+ "props": {
166
+ "text": "$item.priceLine",
167
+ "style": "bodyEmphasis",
168
+ "maxLines": 1,
169
+ "color": "accentPrimary"
170
+ }
171
+ },
172
+ "modifiers": {
173
+ "hiddenPath": "$item.noPrice"
174
+ }
175
+ },
176
+ {
177
+ "id": "",
178
+ "body": {
179
+ "package": "himalaya",
180
+ "type": "Divider",
181
+ "props": {}
182
+ }
183
+ },
184
+ {
185
+ "id": "{{id}}.action",
186
+ "body": {
187
+ "package": "himalaya",
188
+ "type": "Button",
189
+ "props": {
190
+ "title": "$item.actionLabel",
191
+ "style": "link",
192
+ "fullWidth": true,
193
+ "disabledPath": "$item.actionDisabled",
194
+ "action": {
195
+ "actionId": "tier5.{{svc}}.open",
196
+ "params": {
197
+ "id": "$item.id"
198
+ }
199
+ }
200
+ }
201
+ }
202
+ }
203
+ ]
204
+ }
205
+ },
206
+ "modifiers": {
207
+ "background": {
208
+ "token": "surfaceElevated"
209
+ },
210
+ "border": {
211
+ "width": 1,
212
+ "color": {
213
+ "token": "border"
214
+ }
215
+ },
216
+ "cornerRadius": 8,
217
+ "padding": {
218
+ "leading": 12,
219
+ "trailing": 12,
220
+ "top": 12,
221
+ "bottom": 8
222
+ },
223
+ "fillMaxWidth": true,
224
+ "onTap": {
225
+ "actionId": "himi.open",
226
+ "params": {
227
+ "screenId": "{{detailScreen}}",
228
+ "id": "$item.id"
229
+ }
230
+ },
231
+ "pressFeedback": "scale",
232
+ "haptic": "light",
233
+ "accessibilityLabel": "$item.name"
234
+ }
235
+ }
236
+ ],
237
+ "pagination": {
238
+ "cursor": "$service:{{svc}}.nextCursor",
239
+ "onLoadMore": {
240
+ "actionId": "tier5.{{svc}}.loadMore"
241
+ },
242
+ "pageSize": 20
243
+ }
244
+ }
245
+ }
246
+ }
247
+ ]
248
+ }
249
+ },
250
+ "modifiers": {
251
+ "hiddenPath": "$service:{{svc}}.noRows"
252
+ }
253
+ }
254
+ }
@@ -0,0 +1,234 @@
1
+ {
2
+ "_recipe": "Programs carousel (one page, snapping, page dots drawn by the renderer). Service: registerProgramsSection(svc,{layout:'carousel',...}).",
3
+ "_placeholders": {
4
+ "svc": "service name the page worker registered with registerProgramsSection",
5
+ "id": "unique node id prefix (e.g. the screen id)",
6
+ "detailScreen": "program detail screen id, default himi_program"
7
+ },
8
+ "node": {
9
+ "id": "{{id}}.carousel",
10
+ "body": {
11
+ "package": "himalaya",
12
+ "type": "Carousel",
13
+ "props": {
14
+ "itemsPath": "$service:{{svc}}.rows",
15
+ "paged": true,
16
+ "items": [
17
+ {
18
+ "id": "{{id}}.card",
19
+ "body": {
20
+ "package": "himalaya",
21
+ "type": "VStack",
22
+ "props": {
23
+ "spacing": 8,
24
+ "alignment": "leading",
25
+ "children": [
26
+ {
27
+ "id": "",
28
+ "body": {
29
+ "package": "himalaya",
30
+ "type": "ZStack",
31
+ "props": {
32
+ "alignment": "leading",
33
+ "children": [
34
+ {
35
+ "id": "",
36
+ "body": {
37
+ "package": "himalaya",
38
+ "type": "Image",
39
+ "props": {
40
+ "url": "$item.image",
41
+ "fillWidth": true,
42
+ "height": 180,
43
+ "contentMode": "fill",
44
+ "contentDescription": "$item.name"
45
+ }
46
+ },
47
+ "modifiers": {
48
+ "cornerRadius": 8,
49
+ "fillMaxWidth": true,
50
+ "hiddenPath": "$item.noImage"
51
+ }
52
+ },
53
+ {
54
+ "id": "",
55
+ "body": {
56
+ "package": "himalaya",
57
+ "type": "ZStack",
58
+ "props": {
59
+ "alignment": "center",
60
+ "children": [
61
+ {
62
+ "id": "",
63
+ "body": {
64
+ "package": "himalaya",
65
+ "type": "Text",
66
+ "props": {
67
+ "text": "$item.initial",
68
+ "style": "display",
69
+ "maxLines": 1,
70
+ "color": "textOnAccent"
71
+ }
72
+ }
73
+ }
74
+ ]
75
+ }
76
+ },
77
+ "modifiers": {
78
+ "fillMaxWidth": true,
79
+ "height": 180,
80
+ "background": {
81
+ "token": "accentPrimary"
82
+ },
83
+ "cornerRadius": 8,
84
+ "hiddenPath": "$item.hasImage"
85
+ }
86
+ }
87
+ ]
88
+ }
89
+ }
90
+ },
91
+ {
92
+ "id": "",
93
+ "body": {
94
+ "package": "himalaya",
95
+ "type": "Text",
96
+ "props": {
97
+ "text": "$item.name",
98
+ "style": "bodyEmphasis",
99
+ "maxLines": 2
100
+ }
101
+ }
102
+ },
103
+ {
104
+ "id": "",
105
+ "body": {
106
+ "package": "himalaya",
107
+ "type": "Text",
108
+ "props": {
109
+ "text": "$item.durationLine",
110
+ "style": "footnote",
111
+ "maxLines": 1,
112
+ "color": "textSecondary",
113
+ "collapseWhenEmpty": true
114
+ }
115
+ },
116
+ "modifiers": {
117
+ "hiddenPath": "$item.noDuration"
118
+ }
119
+ },
120
+ {
121
+ "id": "",
122
+ "body": {
123
+ "package": "himalaya",
124
+ "type": "Text",
125
+ "props": {
126
+ "text": "$item.accessLine",
127
+ "style": "footnote",
128
+ "maxLines": 1,
129
+ "color": "textSecondary",
130
+ "collapseWhenEmpty": true
131
+ }
132
+ },
133
+ "modifiers": {
134
+ "hiddenPath": "$item.noAccess"
135
+ }
136
+ },
137
+ {
138
+ "id": "",
139
+ "body": {
140
+ "package": "himalaya",
141
+ "type": "Text",
142
+ "props": {
143
+ "text": "$item.descriptionLine",
144
+ "style": "footnote",
145
+ "maxLines": 2,
146
+ "color": "textSecondary",
147
+ "collapseWhenEmpty": true
148
+ }
149
+ }
150
+ },
151
+ {
152
+ "id": "",
153
+ "body": {
154
+ "package": "himalaya",
155
+ "type": "Text",
156
+ "props": {
157
+ "text": "$item.priceLine",
158
+ "style": "bodyEmphasis",
159
+ "maxLines": 1,
160
+ "color": "accentPrimary"
161
+ }
162
+ },
163
+ "modifiers": {
164
+ "hiddenPath": "$item.noPrice"
165
+ }
166
+ },
167
+ {
168
+ "id": "",
169
+ "body": {
170
+ "package": "himalaya",
171
+ "type": "Divider",
172
+ "props": {}
173
+ }
174
+ },
175
+ {
176
+ "id": "{{id}}.action",
177
+ "body": {
178
+ "package": "himalaya",
179
+ "type": "Button",
180
+ "props": {
181
+ "title": "$item.actionLabel",
182
+ "style": "link",
183
+ "fullWidth": true,
184
+ "disabledPath": "$item.actionDisabled",
185
+ "action": {
186
+ "actionId": "tier5.{{svc}}.open",
187
+ "params": {
188
+ "id": "$item.id"
189
+ }
190
+ }
191
+ }
192
+ }
193
+ }
194
+ ]
195
+ }
196
+ },
197
+ "modifiers": {
198
+ "background": {
199
+ "token": "surfaceElevated"
200
+ },
201
+ "border": {
202
+ "width": 1,
203
+ "color": {
204
+ "token": "border"
205
+ }
206
+ },
207
+ "cornerRadius": 8,
208
+ "padding": {
209
+ "leading": 12,
210
+ "trailing": 12,
211
+ "top": 12,
212
+ "bottom": 8
213
+ },
214
+ "fillMaxWidth": true,
215
+ "onTap": {
216
+ "actionId": "himi.open",
217
+ "params": {
218
+ "screenId": "{{detailScreen}}",
219
+ "id": "$item.id"
220
+ }
221
+ },
222
+ "pressFeedback": "scale",
223
+ "haptic": "light",
224
+ "accessibilityLabel": "$item.name"
225
+ }
226
+ }
227
+ ]
228
+ }
229
+ },
230
+ "modifiers": {
231
+ "hiddenPath": "$service:{{svc}}.noRows"
232
+ }
233
+ }
234
+ }
@@ -0,0 +1,58 @@
1
+ {
2
+ "_recipe": "A section's failed read: a message and a retry button, shown only while the service is in its error state. ONE node. Placed beside a section recipe whose list hides on `noRows`, so a failure never leaves a blank section. Service: any section module that publishes `notErrored` and the action named by `action`.",
3
+ "_placeholders": {
4
+ "svc": "service name the page worker registered",
5
+ "id": "unique node id prefix for this section",
6
+ "action": "the service action that reads again: load, or retry"
7
+ },
8
+ "node": {
9
+ "id": "{{id}}.error",
10
+ "body": {
11
+ "package": "himalaya",
12
+ "type": "VStack",
13
+ "props": {
14
+ "spacing": 8,
15
+ "alignment": "leading",
16
+ "children": [
17
+ {
18
+ "id": "{{id}}.error.text",
19
+ "body": {
20
+ "package": "himalaya",
21
+ "type": "Text",
22
+ "props": {
23
+ "text": "This couldn't be loaded. Check your connection and try again.",
24
+ "style": "body",
25
+ "color": "textSecondary"
26
+ }
27
+ }
28
+ },
29
+ {
30
+ "id": "{{id}}.error.retry",
31
+ "body": {
32
+ "package": "himalaya",
33
+ "type": "Button",
34
+ "props": {
35
+ "title": "Try again",
36
+ "style": "secondary",
37
+ "size": "md",
38
+ "action": {
39
+ "actionId": "tier5.{{svc}}.{{action}}",
40
+ "params": {}
41
+ }
42
+ }
43
+ }
44
+ }
45
+ ]
46
+ }
47
+ },
48
+ "modifiers": {
49
+ "hiddenPath": "$service:{{svc}}.notErrored",
50
+ "padding": {
51
+ "leading": 0,
52
+ "trailing": 0,
53
+ "top": 0,
54
+ "bottom": 0
55
+ }
56
+ }
57
+ }
58
+ }