@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
 
@@ -1824,6 +1824,11 @@
1824
1824
  "translation": "Impossible de charger les informations de votre compte. Réessayez.",
1825
1825
  "origin": "machine"
1826
1826
  },
1827
+ "h_6e6a6f2086bb": {
1828
+ "source": "Other",
1829
+ "translation": "Autre",
1830
+ "origin": "one-app:wix-one-app-ecom-platform:merchant.order.markPaidModal.paymentMethod.other"
1831
+ },
1827
1832
  "h_de886b7696df": {
1828
1833
  "source": "This season",
1829
1834
  "translation": "Cette saison",
@@ -2944,6 +2949,16 @@
2944
2949
  "translation": "Traitement de votre achat…",
2945
2950
  "origin": "machine"
2946
2951
  },
2952
+ "h_013147ef56fa": {
2953
+ "source": "No products in this category yet.",
2954
+ "translation": "Aucun produit dans cette catégorie pour le moment.",
2955
+ "origin": "machine"
2956
+ },
2957
+ "h_87659e19efce": {
2958
+ "source": "No products are published yet.",
2959
+ "translation": "Aucun produit n'est encore publié.",
2960
+ "origin": "machine"
2961
+ },
2947
2962
  "h_a7677e84b666": {
2948
2963
  "source": "Ticket",
2949
2964
  "translation": "Billet",
@@ -3229,11 +3244,6 @@
3229
3244
  "translation": "Vous pouvez choisir une date de début ultérieure.",
3230
3245
  "origin": "machine"
3231
3246
  },
3232
- "h_cb7c8c83bd90": {
3233
- "source": "No upcoming events.",
3234
- "translation": "Aucun événement à venir.",
3235
- "origin": "machine"
3236
- },
3237
3247
  "h_e84d8431b504": {
3238
3248
  "source": "{n, plural, one {for # day} other {for # days}}",
3239
3249
  "translation": "{n, plural, one {pendant # jour} other {pendant # jours}}",
@@ -3273,6 +3283,16 @@
3273
3283
  "source": "{n, plural, one {per year} other {every # years}}",
3274
3284
  "translation": "{n, plural, one {par an} other {tous les # ans}}",
3275
3285
  "origin": "machine"
3286
+ },
3287
+ "h_41ea36c1a2ec": {
3288
+ "source": "No Events Yet",
3289
+ "translation": "Aucun événement pour le moment",
3290
+ "origin": "machine"
3291
+ },
3292
+ "h_baa225c8b45b": {
3293
+ "source": "Once we add new events you'll be able to RSVP and buy tickets for them here.",
3294
+ "translation": "Dès que nous ajouterons de nouveaux événements, vous pourrez vous y inscrire et acheter des billets ici.",
3295
+ "origin": "machine"
3276
3296
  }
3277
3297
  }
3278
3298
  }
@@ -1514,6 +1514,10 @@
1514
1514
  "source": "Your account details could not be loaded. Try again.",
1515
1515
  "translation": "לא ניתן לטעון את פרטי החשבון שלך. יש לנסות שוב."
1516
1516
  },
1517
+ "h_6e6a6f2086bb": {
1518
+ "source": "Other",
1519
+ "translation": "אחר"
1520
+ },
1517
1521
  "h_de886b7696df": {
1518
1522
  "source": "This season",
1519
1523
  "translation": "העונה הזו"
@@ -2410,6 +2414,14 @@
2410
2414
  "source": "Processing your purchase…",
2411
2415
  "translation": "מעבד את הרכישה…"
2412
2416
  },
2417
+ "h_013147ef56fa": {
2418
+ "source": "No products in this category yet.",
2419
+ "translation": "אין עדיין מוצרים בקטגוריה הזו."
2420
+ },
2421
+ "h_87659e19efce": {
2422
+ "source": "No products are published yet.",
2423
+ "translation": "אין עדיין מוצרים שפורסמו."
2424
+ },
2413
2425
  "h_a7677e84b666": {
2414
2426
  "source": "Ticket",
2415
2427
  "translation": "כרטיס"
@@ -2638,10 +2650,6 @@
2638
2650
  "source": "You can choose a later start date.",
2639
2651
  "translation": "אפשר לבחור תאריך התחלה מאוחר יותר."
2640
2652
  },
2641
- "h_cb7c8c83bd90": {
2642
- "source": "No upcoming events.",
2643
- "translation": "אין אירועים קרובים."
2644
- },
2645
2653
  "h_e84d8431b504": {
2646
2654
  "source": "{n, plural, one {for # day} other {for # days}}",
2647
2655
  "translation": "{n, plural, one {ליום אחד} other {ל-# ימים}}"
@@ -2673,6 +2681,14 @@
2673
2681
  "h_55db55f1bd29": {
2674
2682
  "source": "{n, plural, one {per year} other {every # years}}",
2675
2683
  "translation": "{n, plural, one {לשנה} other {כל # שנים}}"
2684
+ },
2685
+ "h_41ea36c1a2ec": {
2686
+ "source": "No Events Yet",
2687
+ "translation": "עדיין אין אירועים"
2688
+ },
2689
+ "h_baa225c8b45b": {
2690
+ "source": "Once we add new events you'll be able to RSVP and buy tickets for them here.",
2691
+ "translation": "כשנוסיף אירועים חדשים תוכלו להירשם אליהם ולקנות כרטיסים כאן."
2676
2692
  }
2677
2693
  }
2678
2694
  }
@@ -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
  ],