@wix/himalaya-cli 0.1747.0 → 0.1748.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 (221) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +34 -8
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +45 -18
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +36 -14
  4. package/dist/cli.mjs +2498 -1816
  5. package/guides/one-app-to-himi-app.md +11 -6
  6. package/guides/wix-business-context.md +25 -1
  7. package/guides/wix-site-to-himi-app.md +2 -1
  8. package/package.json +2 -2
  9. package/templates/beauty-salon/l10n/fr.json +25 -5
  10. package/templates/beauty-salon/l10n/he.json +20 -4
  11. package/templates/beauty-salon/recipes/blog-hero.json +95 -0
  12. package/templates/beauty-salon/recipes/blog-list-thumb-start.json +177 -147
  13. package/templates/beauty-salon/recipes/blog-list.json +172 -142
  14. package/templates/beauty-salon/recipes/events-inline-list.json +30 -5
  15. package/templates/beauty-salon/recipes/events-inline.json +30 -5
  16. package/templates/beauty-salon/recipes/faq-list.json +503 -0
  17. package/templates/beauty-salon/recipes/groups-list.json +196 -0
  18. package/templates/beauty-salon/recipes/products-carousel.json +141 -0
  19. package/templates/beauty-salon/recipes/products-grid.json +143 -0
  20. package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +9 -9
  21. package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +7 -5
  22. package/templates/beauty-salon/tier5-src/_shared/faq-list.ts +405 -0
  23. package/templates/beauty-salon/tier5-src/_shared/groups-section.ts +110 -0
  24. package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +10 -2
  25. package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +9 -5
  26. package/templates/beauty-salon/tier5-src/_shared/products-section.ts +76 -0
  27. package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +2 -2
  28. package/templates/branded-lite/l10n/fr.json +10 -5
  29. package/templates/branded-lite/l10n/he.json +8 -4
  30. package/templates/branded-lite/recipes/blog-hero.json +95 -0
  31. package/templates/branded-lite/recipes/blog-list-thumb-start.json +177 -147
  32. package/templates/branded-lite/recipes/blog-list.json +172 -142
  33. package/templates/branded-lite/recipes/events-inline-list.json +30 -5
  34. package/templates/branded-lite/recipes/events-inline.json +30 -5
  35. package/templates/branded-lite/recipes/faq-list.json +503 -0
  36. package/templates/branded-lite/recipes/groups-list.json +196 -0
  37. package/templates/branded-lite/recipes/products-carousel.json +141 -0
  38. package/templates/branded-lite/recipes/products-grid.json +143 -0
  39. package/templates/branded-lite/tier5-src/_shared/blog-list.ts +9 -9
  40. package/templates/branded-lite/tier5-src/_shared/events-inline.ts +7 -5
  41. package/templates/branded-lite/tier5-src/_shared/faq-list.ts +405 -0
  42. package/templates/branded-lite/tier5-src/_shared/groups-section.ts +110 -0
  43. package/templates/branded-lite/tier5-src/_shared/member-row-extras.ts +10 -2
  44. package/templates/branded-lite/tier5-src/_shared/members-directory.ts +9 -5
  45. package/templates/branded-lite/tier5-src/_shared/products-section.ts +76 -0
  46. package/templates/branded-lite/tier5-src/_shared/programs-section.ts +2 -2
  47. package/templates/branded-lite/tier5-src/himi-branded-lite-faq/index.ts +5 -369
  48. package/templates/brandy/README.md +46 -5
  49. package/templates/brandy/config.ts +11 -0
  50. package/templates/brandy/himalaya.template.json +1 -1
  51. package/templates/community-club/l10n/fr.json +25 -5
  52. package/templates/community-club/l10n/he.json +20 -4
  53. package/templates/community-club/recipes/blog-hero.json +95 -0
  54. package/templates/community-club/recipes/blog-list-thumb-start.json +177 -147
  55. package/templates/community-club/recipes/blog-list.json +172 -142
  56. package/templates/community-club/recipes/events-inline-list.json +30 -5
  57. package/templates/community-club/recipes/events-inline.json +30 -5
  58. package/templates/community-club/recipes/faq-list.json +503 -0
  59. package/templates/community-club/recipes/groups-list.json +196 -0
  60. package/templates/community-club/recipes/products-carousel.json +141 -0
  61. package/templates/community-club/recipes/products-grid.json +143 -0
  62. package/templates/community-club/tier5-src/_shared/blog-list.ts +9 -9
  63. package/templates/community-club/tier5-src/_shared/events-inline.ts +7 -5
  64. package/templates/community-club/tier5-src/_shared/faq-list.ts +405 -0
  65. package/templates/community-club/tier5-src/_shared/groups-section.ts +110 -0
  66. package/templates/community-club/tier5-src/_shared/member-row-extras.ts +10 -2
  67. package/templates/community-club/tier5-src/_shared/members-directory.ts +9 -5
  68. package/templates/community-club/tier5-src/_shared/products-section.ts +76 -0
  69. package/templates/community-club/tier5-src/_shared/programs-section.ts +2 -2
  70. package/templates/events-meetups/l10n/fr.json +25 -5
  71. package/templates/events-meetups/l10n/he.json +20 -4
  72. package/templates/events-meetups/recipes/blog-hero.json +95 -0
  73. package/templates/events-meetups/recipes/blog-list-thumb-start.json +177 -147
  74. package/templates/events-meetups/recipes/blog-list.json +172 -142
  75. package/templates/events-meetups/recipes/events-inline-list.json +30 -5
  76. package/templates/events-meetups/recipes/events-inline.json +30 -5
  77. package/templates/events-meetups/recipes/faq-list.json +503 -0
  78. package/templates/events-meetups/recipes/groups-list.json +196 -0
  79. package/templates/events-meetups/recipes/products-carousel.json +141 -0
  80. package/templates/events-meetups/recipes/products-grid.json +143 -0
  81. package/templates/events-meetups/tier5-src/_shared/blog-list.ts +9 -9
  82. package/templates/events-meetups/tier5-src/_shared/events-inline.ts +7 -5
  83. package/templates/events-meetups/tier5-src/_shared/faq-list.ts +405 -0
  84. package/templates/events-meetups/tier5-src/_shared/groups-section.ts +110 -0
  85. package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +10 -2
  86. package/templates/events-meetups/tier5-src/_shared/members-directory.ts +9 -5
  87. package/templates/events-meetups/tier5-src/_shared/products-section.ts +76 -0
  88. package/templates/events-meetups/tier5-src/_shared/programs-section.ts +2 -2
  89. package/templates/gym-fitness/l10n/fr.json +25 -5
  90. package/templates/gym-fitness/l10n/he.json +20 -4
  91. package/templates/gym-fitness/recipes/blog-hero.json +95 -0
  92. package/templates/gym-fitness/recipes/blog-list-thumb-start.json +177 -147
  93. package/templates/gym-fitness/recipes/blog-list.json +172 -142
  94. package/templates/gym-fitness/recipes/events-inline-list.json +30 -5
  95. package/templates/gym-fitness/recipes/events-inline.json +30 -5
  96. package/templates/gym-fitness/recipes/faq-list.json +503 -0
  97. package/templates/gym-fitness/recipes/groups-list.json +196 -0
  98. package/templates/gym-fitness/recipes/products-carousel.json +141 -0
  99. package/templates/gym-fitness/recipes/products-grid.json +143 -0
  100. package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +9 -9
  101. package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +7 -5
  102. package/templates/gym-fitness/tier5-src/_shared/faq-list.ts +405 -0
  103. package/templates/gym-fitness/tier5-src/_shared/groups-section.ts +110 -0
  104. package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +10 -2
  105. package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +9 -5
  106. package/templates/gym-fitness/tier5-src/_shared/products-section.ts +76 -0
  107. package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +2 -2
  108. package/templates/nonprofit-cause/l10n/fr.json +25 -5
  109. package/templates/nonprofit-cause/l10n/he.json +20 -4
  110. package/templates/nonprofit-cause/recipes/blog-hero.json +95 -0
  111. package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +177 -147
  112. package/templates/nonprofit-cause/recipes/blog-list.json +172 -142
  113. package/templates/nonprofit-cause/recipes/events-inline-list.json +30 -5
  114. package/templates/nonprofit-cause/recipes/events-inline.json +30 -5
  115. package/templates/nonprofit-cause/recipes/faq-list.json +503 -0
  116. package/templates/nonprofit-cause/recipes/groups-list.json +196 -0
  117. package/templates/nonprofit-cause/recipes/products-carousel.json +141 -0
  118. package/templates/nonprofit-cause/recipes/products-grid.json +143 -0
  119. package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +9 -9
  120. package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +7 -5
  121. package/templates/nonprofit-cause/tier5-src/_shared/faq-list.ts +405 -0
  122. package/templates/nonprofit-cause/tier5-src/_shared/groups-section.ts +110 -0
  123. package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +10 -2
  124. package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +9 -5
  125. package/templates/nonprofit-cause/tier5-src/_shared/products-section.ts +76 -0
  126. package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +2 -2
  127. package/templates/podcast-creator/l10n/fr.json +35 -5
  128. package/templates/podcast-creator/l10n/he.json +28 -4
  129. package/templates/podcast-creator/recipes/blog-hero.json +95 -0
  130. package/templates/podcast-creator/recipes/blog-list-thumb-start.json +177 -147
  131. package/templates/podcast-creator/recipes/blog-list.json +172 -142
  132. package/templates/podcast-creator/recipes/events-inline-list.json +30 -5
  133. package/templates/podcast-creator/recipes/events-inline.json +30 -5
  134. package/templates/podcast-creator/recipes/faq-list.json +503 -0
  135. package/templates/podcast-creator/recipes/groups-list.json +196 -0
  136. package/templates/podcast-creator/recipes/products-carousel.json +141 -0
  137. package/templates/podcast-creator/recipes/products-grid.json +143 -0
  138. package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +9 -9
  139. package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +7 -5
  140. package/templates/podcast-creator/tier5-src/_shared/faq-list.ts +405 -0
  141. package/templates/podcast-creator/tier5-src/_shared/groups-section.ts +110 -0
  142. package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +10 -2
  143. package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +9 -5
  144. package/templates/podcast-creator/tier5-src/_shared/products-section.ts +76 -0
  145. package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +2 -2
  146. package/templates/portfolio-creative/l10n/fr.json +25 -5
  147. package/templates/portfolio-creative/l10n/he.json +20 -4
  148. package/templates/portfolio-creative/recipes/blog-hero.json +95 -0
  149. package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +177 -147
  150. package/templates/portfolio-creative/recipes/blog-list.json +172 -142
  151. package/templates/portfolio-creative/recipes/events-inline-list.json +30 -5
  152. package/templates/portfolio-creative/recipes/events-inline.json +30 -5
  153. package/templates/portfolio-creative/recipes/faq-list.json +503 -0
  154. package/templates/portfolio-creative/recipes/groups-list.json +196 -0
  155. package/templates/portfolio-creative/recipes/products-carousel.json +141 -0
  156. package/templates/portfolio-creative/recipes/products-grid.json +143 -0
  157. package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +9 -9
  158. package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +7 -5
  159. package/templates/portfolio-creative/tier5-src/_shared/faq-list.ts +405 -0
  160. package/templates/portfolio-creative/tier5-src/_shared/groups-section.ts +110 -0
  161. package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +10 -2
  162. package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +9 -5
  163. package/templates/portfolio-creative/tier5-src/_shared/products-section.ts +76 -0
  164. package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +2 -2
  165. package/templates/restaurant/l10n/fr.json +35 -5
  166. package/templates/restaurant/l10n/he.json +28 -4
  167. package/templates/restaurant/recipes/blog-hero.json +95 -0
  168. package/templates/restaurant/recipes/blog-list-thumb-start.json +177 -147
  169. package/templates/restaurant/recipes/blog-list.json +172 -142
  170. package/templates/restaurant/recipes/events-inline-list.json +30 -5
  171. package/templates/restaurant/recipes/events-inline.json +30 -5
  172. package/templates/restaurant/recipes/faq-list.json +503 -0
  173. package/templates/restaurant/recipes/groups-list.json +196 -0
  174. package/templates/restaurant/recipes/products-carousel.json +141 -0
  175. package/templates/restaurant/recipes/products-grid.json +143 -0
  176. package/templates/restaurant/tier5-src/_shared/blog-list.ts +9 -9
  177. package/templates/restaurant/tier5-src/_shared/events-inline.ts +7 -5
  178. package/templates/restaurant/tier5-src/_shared/faq-list.ts +405 -0
  179. package/templates/restaurant/tier5-src/_shared/groups-section.ts +110 -0
  180. package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +10 -2
  181. package/templates/restaurant/tier5-src/_shared/members-directory.ts +9 -5
  182. package/templates/restaurant/tier5-src/_shared/products-section.ts +76 -0
  183. package/templates/restaurant/tier5-src/_shared/programs-section.ts +2 -2
  184. package/templates/retail-store/l10n/fr.json +25 -5
  185. package/templates/retail-store/l10n/he.json +20 -4
  186. package/templates/retail-store/recipes/blog-hero.json +95 -0
  187. package/templates/retail-store/recipes/blog-list-thumb-start.json +177 -147
  188. package/templates/retail-store/recipes/blog-list.json +172 -142
  189. package/templates/retail-store/recipes/events-inline-list.json +30 -5
  190. package/templates/retail-store/recipes/events-inline.json +30 -5
  191. package/templates/retail-store/recipes/faq-list.json +503 -0
  192. package/templates/retail-store/recipes/groups-list.json +196 -0
  193. package/templates/retail-store/recipes/products-carousel.json +141 -0
  194. package/templates/retail-store/recipes/products-grid.json +143 -0
  195. package/templates/retail-store/tier5-src/_shared/blog-list.ts +9 -9
  196. package/templates/retail-store/tier5-src/_shared/events-inline.ts +7 -5
  197. package/templates/retail-store/tier5-src/_shared/faq-list.ts +405 -0
  198. package/templates/retail-store/tier5-src/_shared/groups-section.ts +110 -0
  199. package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +10 -2
  200. package/templates/retail-store/tier5-src/_shared/members-directory.ts +9 -5
  201. package/templates/retail-store/tier5-src/_shared/products-section.ts +76 -0
  202. package/templates/retail-store/tier5-src/_shared/programs-section.ts +2 -2
  203. package/templates/yoga-studio/l10n/fr.json +35 -5
  204. package/templates/yoga-studio/l10n/he.json +28 -4
  205. package/templates/yoga-studio/recipes/blog-hero.json +95 -0
  206. package/templates/yoga-studio/recipes/blog-list-thumb-start.json +177 -147
  207. package/templates/yoga-studio/recipes/blog-list.json +172 -142
  208. package/templates/yoga-studio/recipes/events-inline-list.json +30 -5
  209. package/templates/yoga-studio/recipes/events-inline.json +30 -5
  210. package/templates/yoga-studio/recipes/faq-list.json +503 -0
  211. package/templates/yoga-studio/recipes/groups-list.json +196 -0
  212. package/templates/yoga-studio/recipes/products-carousel.json +141 -0
  213. package/templates/yoga-studio/recipes/products-grid.json +143 -0
  214. package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +9 -9
  215. package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +7 -5
  216. package/templates/yoga-studio/tier5-src/_shared/faq-list.ts +405 -0
  217. package/templates/yoga-studio/tier5-src/_shared/groups-section.ts +110 -0
  218. package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +10 -2
  219. package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +9 -5
  220. package/templates/yoga-studio/tier5-src/_shared/products-section.ts +76 -0
  221. package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +2 -2
@@ -28,7 +28,7 @@ import { descriptionBody } from "./rich-body.js";
28
28
  import { programDescription } from "./program-description.js";
29
29
  import { isNotFoundError } from "./detail-presence.js";
30
30
  import { copyParam, copyTemplate, stashCopy } from "./himi-copy.js";
31
- import { formatCurrency, formatDateMedium } from "./engine-intl.js";
31
+ import { formatCurrency, formatDateMedium, formatNumber } from "./engine-intl.js";
32
32
  import { iapPriceCopy, resetUnhydratedKeysOnOlderRuntime } from "./iap-worker.js";
33
33
 
34
34
  const PAGE_SIZE = 20;
@@ -256,7 +256,7 @@ function accessLine(p: WixProgram, participants: number | undefined): string {
256
256
  if (participants === undefined) return label;
257
257
  const count = participants === 1
258
258
  ? copyParam("memberPrograms.participantsOne", "1 participant")
259
- : copyTemplate("memberPrograms.participantsMany", "{count} participants", { count: participants });
259
+ : copyTemplate("memberPrograms.participantsMany", "{count} participants", { count: formatNumber(participants) });
260
260
  return `${label} · ${count}`;
261
261
  }
262
262
 
@@ -3145,6 +3145,11 @@
3145
3145
  "translation": "Impossible de charger les informations de votre compte. Réessayez.",
3146
3146
  "origin": "machine"
3147
3147
  },
3148
+ "h_6e6a6f2086bb": {
3149
+ "source": "Other",
3150
+ "translation": "Autre",
3151
+ "origin": "one-app:wix-one-app-ecom-platform:merchant.order.markPaidModal.paymentMethod.other"
3152
+ },
3148
3153
  "h_72eaa74acd95": {
3149
3154
  "source": "Book a class",
3150
3155
  "translation": "Réserver un cours",
@@ -4870,6 +4875,16 @@
4870
4875
  "translation": "Groupe",
4871
4876
  "origin": "one-app:wix-one-groups:GROUPS_CREATE_GROUP_QUICK_ACTION_SHORT"
4872
4877
  },
4878
+ "h_fd0ceb4f46f0": {
4879
+ "source": "Join the conversation.",
4880
+ "translation": "Rejoindre la conversation.",
4881
+ "origin": "machine"
4882
+ },
4883
+ "h_330de5ba68b6": {
4884
+ "source": "No groups are published yet.",
4885
+ "translation": "Aucun groupe n'est encore publié.",
4886
+ "origin": "machine"
4887
+ },
4873
4888
  "h_0f7689264bc6": {
4874
4889
  "source": "Good morning",
4875
4890
  "translation": "Bonjour",
@@ -5745,11 +5760,6 @@
5745
5760
  "translation": "Vous pouvez choisir une date de début ultérieure.",
5746
5761
  "origin": "machine"
5747
5762
  },
5748
- "h_cb7c8c83bd90": {
5749
- "source": "No upcoming events.",
5750
- "translation": "Aucun événement à venir.",
5751
- "origin": "machine"
5752
- },
5753
5763
  "h_e84d8431b504": {
5754
5764
  "source": "{n, plural, one {for # day} other {for # days}}",
5755
5765
  "translation": "{n, plural, one {pendant # jour} other {pendant # jours}}",
@@ -5789,6 +5799,16 @@
5789
5799
  "source": "{n, plural, one {per year} other {every # years}}",
5790
5800
  "translation": "{n, plural, one {par an} other {tous les # ans}}",
5791
5801
  "origin": "machine"
5802
+ },
5803
+ "h_41ea36c1a2ec": {
5804
+ "source": "No Events Yet",
5805
+ "translation": "Aucun événement pour le moment",
5806
+ "origin": "machine"
5807
+ },
5808
+ "h_baa225c8b45b": {
5809
+ "source": "Once we add new events you'll be able to RSVP and buy tickets for them here.",
5810
+ "translation": "Dès que nous ajouterons de nouveaux événements, vous pourrez vous y inscrire et acheter des billets ici.",
5811
+ "origin": "machine"
5792
5812
  }
5793
5813
  }
5794
5814
  }
@@ -2602,6 +2602,10 @@
2602
2602
  "source": "Your account details could not be loaded. Try again.",
2603
2603
  "translation": "לא ניתן לטעון את פרטי החשבון שלך. יש לנסות שוב."
2604
2604
  },
2605
+ "h_6e6a6f2086bb": {
2606
+ "source": "Other",
2607
+ "translation": "אחר"
2608
+ },
2605
2609
  "h_72eaa74acd95": {
2606
2610
  "source": "Book a class",
2607
2611
  "translation": "להירשם לשיעור"
@@ -3982,6 +3986,14 @@
3982
3986
  "source": "Group",
3983
3987
  "translation": "קבוצה"
3984
3988
  },
3989
+ "h_fd0ceb4f46f0": {
3990
+ "source": "Join the conversation.",
3991
+ "translation": "הצטרפו לשיחה."
3992
+ },
3993
+ "h_330de5ba68b6": {
3994
+ "source": "No groups are published yet.",
3995
+ "translation": "אין עדיין קבוצות שפורסמו."
3996
+ },
3985
3997
  "h_0f7689264bc6": {
3986
3998
  "source": "Good morning",
3987
3999
  "translation": "בוקר טוב"
@@ -4682,10 +4694,6 @@
4682
4694
  "source": "You can choose a later start date.",
4683
4695
  "translation": "אפשר לבחור תאריך התחלה מאוחר יותר."
4684
4696
  },
4685
- "h_cb7c8c83bd90": {
4686
- "source": "No upcoming events.",
4687
- "translation": "אין אירועים קרובים."
4688
- },
4689
4697
  "h_e84d8431b504": {
4690
4698
  "source": "{n, plural, one {for # day} other {for # days}}",
4691
4699
  "translation": "{n, plural, one {ליום אחד} other {ל-# ימים}}"
@@ -4717,6 +4725,14 @@
4717
4725
  "h_55db55f1bd29": {
4718
4726
  "source": "{n, plural, one {per year} other {every # years}}",
4719
4727
  "translation": "{n, plural, one {לשנה} other {כל # שנים}}"
4728
+ },
4729
+ "h_41ea36c1a2ec": {
4730
+ "source": "No Events Yet",
4731
+ "translation": "עדיין אין אירועים"
4732
+ },
4733
+ "h_baa225c8b45b": {
4734
+ "source": "Once we add new events you'll be able to RSVP and buy tickets for them here.",
4735
+ "translation": "כשנוסיף אירועים חדשים תוכלו להירשם אליהם ולקנות כרטיסים כאן."
4720
4736
  }
4721
4737
  }
4722
4738
  }
@@ -0,0 +1,95 @@
1
+ {
2
+ "_recipe": "Blog hero: the latest posts as a snapping carousel (one post per page, page dots drawn by the renderer): cover image, then title and time under it. ONE node. Service: registerBlogList(svc, { limit }); 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
+ "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": "{{id}}.cover",
28
+ "body": {
29
+ "package": "himalaya",
30
+ "type": "Image",
31
+ "props": {
32
+ "url": "$item.cover",
33
+ "initials": "$item.initial",
34
+ "fillWidth": true,
35
+ "height": 200,
36
+ "contentMode": "fill",
37
+ "contentDescription": "$item.title",
38
+ "shape": "rect"
39
+ }
40
+ },
41
+ "modifiers": {
42
+ "fillMaxWidth": true,
43
+ "hiddenPath": "$item.noCover"
44
+ }
45
+ },
46
+ {
47
+ "id": "{{id}}.title",
48
+ "body": {
49
+ "package": "himalaya",
50
+ "type": "Text",
51
+ "props": {
52
+ "text": "$item.title",
53
+ "style": "bodyEmphasis",
54
+ "maxLines": 2
55
+ }
56
+ }
57
+ },
58
+ {
59
+ "id": "{{id}}.meta",
60
+ "body": {
61
+ "package": "himalaya",
62
+ "type": "Text",
63
+ "props": {
64
+ "text": "$item.meta",
65
+ "style": "caption",
66
+ "maxLines": 1,
67
+ "color": "textSecondary",
68
+ "collapseWhenEmpty": true
69
+ }
70
+ }
71
+ }
72
+ ]
73
+ }
74
+ },
75
+ "modifiers": {
76
+ "fillMaxWidth": true,
77
+ "onTap": {
78
+ "actionId": "himi.open",
79
+ "params": {
80
+ "screenId": "{{detailScreen}}",
81
+ "id": "$item.id"
82
+ }
83
+ },
84
+ "pressFeedback": "scale",
85
+ "accessibilityLabel": "$item.title"
86
+ }
87
+ }
88
+ ]
89
+ }
90
+ },
91
+ "modifiers": {
92
+ "hiddenPath": "$service:{{svc}}.noRows"
93
+ }
94
+ }
95
+ }
@@ -89,224 +89,248 @@
89
89
  "id": "{{id}}",
90
90
  "body": {
91
91
  "package": "himalaya",
92
- "type": "HStack",
92
+ "type": "VStack",
93
93
  "props": {
94
- "spacing": 12,
94
+ "spacing": 8,
95
95
  "alignment": "leading",
96
96
  "children": [
97
97
  {
98
- "id": "{{id}}.cover",
98
+ "id": "{{id}}.main",
99
99
  "body": {
100
100
  "package": "himalaya",
101
- "type": "Image",
101
+ "type": "HStack",
102
102
  "props": {
103
- "url": "$item.cover",
104
- "initials": "$item.initial",
105
- "width": 96,
106
- "height": 72,
107
- "shape": "rounded",
108
- "contentMode": "fill",
109
- "contentDescription": "$item.title"
110
- }
111
- },
112
- "modifiers": {
113
- "hiddenPath": "$item.noCover"
114
- }
115
- },
116
- {
117
- "id": "{{id}}.text",
118
- "body": {
119
- "package": "himalaya",
120
- "type": "VStack",
121
- "props": {
122
- "spacing": 4,
103
+ "spacing": 12,
123
104
  "alignment": "leading",
124
105
  "children": [
125
106
  {
126
- "id": "{{id}}.title",
107
+ "id": "{{id}}.cover",
127
108
  "body": {
128
109
  "package": "himalaya",
129
- "type": "Text",
110
+ "type": "Image",
130
111
  "props": {
131
- "text": "$item.title",
132
- "style": "bodyEmphasis",
133
- "maxLines": 3
112
+ "url": "$item.cover",
113
+ "initials": "$item.initial",
114
+ "width": 72,
115
+ "height": 72,
116
+ "shape": "rounded",
117
+ "contentMode": "fill",
118
+ "contentDescription": "$item.title"
134
119
  }
120
+ },
121
+ "modifiers": {
122
+ "hiddenPath": "$item.noCover"
135
123
  }
136
124
  },
137
125
  {
138
- "id": "{{id}}.author",
126
+ "id": "{{id}}.text",
139
127
  "body": {
140
128
  "package": "himalaya",
141
- "type": "Text",
129
+ "type": "VStack",
142
130
  "props": {
143
- "text": "$item.authorName",
144
- "style": "caption",
145
- "maxLines": 1
131
+ "spacing": 4,
132
+ "alignment": "leading",
133
+ "children": [
134
+ {
135
+ "id": "{{id}}.title",
136
+ "body": {
137
+ "package": "himalaya",
138
+ "type": "Text",
139
+ "props": {
140
+ "text": "$item.title",
141
+ "style": "bodyEmphasis",
142
+ "maxLines": 3
143
+ }
144
+ }
145
+ },
146
+ {
147
+ "id": "{{id}}.author",
148
+ "body": {
149
+ "package": "himalaya",
150
+ "type": "Text",
151
+ "props": {
152
+ "text": "$item.authorName",
153
+ "style": "caption",
154
+ "maxLines": 1
155
+ }
156
+ },
157
+ "modifiers": {
158
+ "hiddenPath": "$item.noAuthor"
159
+ }
160
+ },
161
+ {
162
+ "id": "{{id}}.meta",
163
+ "body": {
164
+ "package": "himalaya",
165
+ "type": "Text",
166
+ "props": {
167
+ "text": "$item.meta",
168
+ "style": "caption",
169
+ "maxLines": 1,
170
+ "color": "textSecondary",
171
+ "collapseWhenEmpty": true
172
+ }
173
+ }
174
+ }
175
+ ]
146
176
  }
147
177
  },
148
178
  "modifiers": {
149
- "hiddenPath": "$item.noAuthor"
179
+ "weight": 1
150
180
  }
151
- },
181
+ }
182
+ ]
183
+ }
184
+ },
185
+ "modifiers": {
186
+ "fillMaxWidth": true
187
+ }
188
+ },
189
+ {
190
+ "id": "{{id}}.counts",
191
+ "body": {
192
+ "package": "himalaya",
193
+ "type": "HStack",
194
+ "props": {
195
+ "spacing": 12,
196
+ "alignment": "center",
197
+ "children": [
152
198
  {
153
- "id": "{{id}}.meta",
199
+ "id": "",
154
200
  "body": {
155
201
  "package": "himalaya",
156
- "type": "Text",
202
+ "type": "HStack",
157
203
  "props": {
158
- "text": "$item.meta",
159
- "style": "caption",
160
- "maxLines": 1,
161
- "color": "textSecondary",
162
- "collapseWhenEmpty": true
204
+ "spacing": 4,
205
+ "alignment": "center",
206
+ "children": [
207
+ {
208
+ "id": "",
209
+ "body": {
210
+ "package": "himalaya",
211
+ "type": "Icon",
212
+ "props": {
213
+ "name": "$item.count1Icon",
214
+ "size": 14,
215
+ "tint": "textSecondary"
216
+ }
217
+ }
218
+ },
219
+ {
220
+ "id": "",
221
+ "body": {
222
+ "package": "himalaya",
223
+ "type": "Text",
224
+ "props": {
225
+ "text": "$item.count1Num",
226
+ "style": "caption",
227
+ "maxLines": 1,
228
+ "color": "textSecondary"
229
+ }
230
+ }
231
+ }
232
+ ]
163
233
  }
234
+ },
235
+ "modifiers": {
236
+ "hiddenPath": "$item.noCount1"
164
237
  }
165
238
  },
166
239
  {
167
- "id": "{{id}}.counts",
240
+ "id": "",
168
241
  "body": {
169
242
  "package": "himalaya",
170
243
  "type": "HStack",
171
244
  "props": {
172
- "spacing": 12,
245
+ "spacing": 4,
173
246
  "alignment": "center",
174
247
  "children": [
175
248
  {
176
249
  "id": "",
177
250
  "body": {
178
251
  "package": "himalaya",
179
- "type": "HStack",
252
+ "type": "Icon",
180
253
  "props": {
181
- "spacing": 4,
182
- "alignment": "center",
183
- "children": [
184
- {
185
- "id": "",
186
- "body": {
187
- "package": "himalaya",
188
- "type": "Icon",
189
- "props": {
190
- "name": "$item.count1Icon",
191
- "size": 14,
192
- "tint": "textSecondary"
193
- }
194
- }
195
- },
196
- {
197
- "id": "",
198
- "body": {
199
- "package": "himalaya",
200
- "type": "Text",
201
- "props": {
202
- "text": "$item.count1Text",
203
- "style": "caption",
204
- "maxLines": 1,
205
- "color": "textSecondary"
206
- }
207
- }
208
- }
209
- ]
254
+ "name": "$item.count2Icon",
255
+ "size": 14,
256
+ "tint": "textSecondary"
210
257
  }
211
- },
212
- "modifiers": {
213
- "hiddenPath": "$item.noCount1"
214
258
  }
215
259
  },
216
260
  {
217
261
  "id": "",
218
262
  "body": {
219
263
  "package": "himalaya",
220
- "type": "HStack",
264
+ "type": "Text",
221
265
  "props": {
222
- "spacing": 4,
223
- "alignment": "center",
224
- "children": [
225
- {
226
- "id": "",
227
- "body": {
228
- "package": "himalaya",
229
- "type": "Icon",
230
- "props": {
231
- "name": "$item.count2Icon",
232
- "size": 14,
233
- "tint": "textSecondary"
234
- }
235
- }
236
- },
237
- {
238
- "id": "",
239
- "body": {
240
- "package": "himalaya",
241
- "type": "Text",
242
- "props": {
243
- "text": "$item.count2Text",
244
- "style": "caption",
245
- "maxLines": 1,
246
- "color": "textSecondary"
247
- }
248
- }
249
- }
250
- ]
266
+ "text": "$item.count2Num",
267
+ "style": "caption",
268
+ "maxLines": 1,
269
+ "color": "textSecondary"
270
+ }
271
+ }
272
+ }
273
+ ]
274
+ }
275
+ },
276
+ "modifiers": {
277
+ "hiddenPath": "$item.noCount2"
278
+ }
279
+ },
280
+ {
281
+ "id": "",
282
+ "body": {
283
+ "package": "himalaya",
284
+ "type": "HStack",
285
+ "props": {
286
+ "spacing": 4,
287
+ "alignment": "center",
288
+ "children": [
289
+ {
290
+ "id": "",
291
+ "body": {
292
+ "package": "himalaya",
293
+ "type": "Icon",
294
+ "props": {
295
+ "name": "$item.count3Icon",
296
+ "size": 14,
297
+ "tint": "textSecondary"
251
298
  }
252
- },
253
- "modifiers": {
254
- "hiddenPath": "$item.noCount2"
255
299
  }
256
300
  },
257
301
  {
258
302
  "id": "",
259
303
  "body": {
260
304
  "package": "himalaya",
261
- "type": "HStack",
305
+ "type": "Text",
262
306
  "props": {
263
- "spacing": 4,
264
- "alignment": "center",
265
- "children": [
266
- {
267
- "id": "",
268
- "body": {
269
- "package": "himalaya",
270
- "type": "Icon",
271
- "props": {
272
- "name": "$item.count3Icon",
273
- "size": 14,
274
- "tint": "textSecondary"
275
- }
276
- }
277
- },
278
- {
279
- "id": "",
280
- "body": {
281
- "package": "himalaya",
282
- "type": "Text",
283
- "props": {
284
- "text": "$item.count3Text",
285
- "style": "caption",
286
- "maxLines": 1,
287
- "color": "textSecondary"
288
- }
289
- }
290
- }
291
- ]
307
+ "text": "$item.count3Num",
308
+ "style": "caption",
309
+ "maxLines": 1,
310
+ "color": "textSecondary"
292
311
  }
293
- },
294
- "modifiers": {
295
- "hiddenPath": "$item.noCount3"
296
312
  }
297
313
  }
298
314
  ]
299
315
  }
300
316
  },
301
317
  "modifiers": {
302
- "hiddenPath": "$item.noCounts"
318
+ "hiddenPath": "$item.noCount3"
303
319
  }
304
320
  }
305
321
  ]
306
322
  }
307
323
  },
308
324
  "modifiers": {
309
- "weight": 1
325
+ "hiddenPath": "$item.noCounts"
326
+ }
327
+ },
328
+ {
329
+ "id": "{{id}}.divider",
330
+ "body": {
331
+ "package": "himalaya",
332
+ "type": "Divider",
333
+ "props": {}
310
334
  }
311
335
  }
312
336
  ]
@@ -321,7 +345,13 @@
321
345
  }
322
346
  },
323
347
  "pressFeedback": "scale",
324
- "accessibilityLabel": "$item.title"
348
+ "accessibilityLabel": "$item.title",
349
+ "padding": {
350
+ "leading": 16,
351
+ "trailing": 16,
352
+ "top": 12,
353
+ "bottom": 0
354
+ }
325
355
  }
326
356
  }
327
357
  ],