@wix/himalaya-cli 0.1943.0 → 0.1945.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 (273) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +5 -0
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/ecom/src/extensions.d.ts +27 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +6 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-ecom.mjs +16 -0
  5. package/dist/cli.mjs +1186 -644
  6. package/fixtures/wix-canned.json +6 -0
  7. package/guides/himi-json-output.md +8 -6
  8. package/guides/one-app-section-mappings.md +2 -2
  9. package/guides/one-app-to-himi-app.md +13 -4
  10. package/guides/release-notes.md +8 -0
  11. package/guides/sdk-reference.json +56 -1
  12. package/guides/splash-screens.md +14 -2
  13. package/package.json +2 -2
  14. package/templates/bare-fashion/dev/index.ts +3 -1
  15. package/templates/bare-fashion/tier5-src/_shared/bare-fashion-product-card.ts +5 -4
  16. package/templates/bare-fashion/tier5-src/_shared/collection-service.ts +35 -15
  17. package/templates/bare-fashion/tier5-src/_shared/himi-store-saved.ts +275 -13
  18. package/templates/bare-fashion/tier5-src/himi-bare-fashion-cart/index.ts +19 -12
  19. package/templates/bare-fashion/tier5-src/himi-bare-fashion-collection/index.ts +9 -4
  20. package/templates/bare-fashion/tier5-src/himi-bare-fashion-home/index.ts +10 -4
  21. package/templates/bare-fashion/tier5-src/himi-bare-fashion-product/index.ts +17 -8
  22. package/templates/bare-fashion/tier5-src/himi-bare-fashion-products/index.ts +8 -4
  23. package/templates/bare-fashion/tier5-src/himi-bare-fashion-saved/index.ts +31 -12
  24. package/templates/bare-fashion/tier5-src/himi-bare-fashion-search/index.ts +8 -4
  25. package/templates/beauty-salon/tier5-src/_shared/collection-service.ts +35 -15
  26. package/templates/beauty-salon/tier5-src/_shared/himi-store-facets.ts +4 -4
  27. package/templates/beauty-salon/tier5-src/_shared/himi-store-saved.ts +275 -13
  28. package/templates/beauty-salon/tier5-src/himi-branded-lite-cart/index.ts +13 -7
  29. package/templates/beauty-salon/tier5-src/himi-branded-lite-category/index.ts +6 -1
  30. package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +6 -5
  31. package/templates/beauty-salon/tier5-src/himi-branded-lite-shop/index.ts +9 -3
  32. package/templates/beauty-salon/tier5-src/himi-store-product/index.ts +7 -5
  33. package/templates/beauty-salon/tier5-src/himi-store-saved/index.ts +31 -12
  34. package/templates/beauty-salon-owner/tier5-src/_shared/collection-service.ts +35 -15
  35. package/templates/branded-lite/recipes/wishlist-grid.json +1 -1
  36. package/templates/branded-lite/tier5-src/_shared/collection-service.ts +42 -19
  37. package/templates/branded-lite/tier5-src/_shared/himi-store-facets.ts +4 -4
  38. package/templates/branded-lite/tier5-src/_shared/himi-store-saved.ts +275 -13
  39. package/templates/branded-lite/tier5-src/_shared/saved-products-section.ts +14 -8
  40. package/templates/branded-lite/tier5-src/himi-branded-lite-cart/index.ts +13 -7
  41. package/templates/branded-lite/tier5-src/himi-branded-lite-category/index.ts +6 -1
  42. package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +6 -5
  43. package/templates/branded-lite/tier5-src/himi-branded-lite-shop/index.ts +9 -3
  44. package/templates/branded-lite/tier5-src/himi-store-product/index.ts +32 -15
  45. package/templates/branded-lite/tier5-src/himi-store-saved/index.ts +31 -12
  46. package/templates/brandy/tier5-src/_shared/collection-service.ts +42 -19
  47. package/templates/brandy/tier5-src/_shared/himi-store-saved.ts +275 -13
  48. package/templates/brandy/tier5-src/himi-branded-lite-cart/index.ts +13 -7
  49. package/templates/community-club/l10n/ar.json +5 -0
  50. package/templates/community-club/l10n/cs.json +5 -0
  51. package/templates/community-club/l10n/da.json +5 -0
  52. package/templates/community-club/l10n/de.json +5 -0
  53. package/templates/community-club/l10n/el.json +5 -0
  54. package/templates/community-club/l10n/es.json +5 -0
  55. package/templates/community-club/l10n/fi.json +5 -0
  56. package/templates/community-club/l10n/fr.json +5 -0
  57. package/templates/community-club/l10n/he.json +4 -0
  58. package/templates/community-club/l10n/hu.json +5 -0
  59. package/templates/community-club/l10n/id.json +5 -0
  60. package/templates/community-club/l10n/it.json +5 -0
  61. package/templates/community-club/l10n/ja.json +5 -0
  62. package/templates/community-club/l10n/ko.json +5 -0
  63. package/templates/community-club/l10n/lt.json +5 -0
  64. package/templates/community-club/l10n/nl.json +5 -0
  65. package/templates/community-club/l10n/no.json +5 -0
  66. package/templates/community-club/l10n/pl.json +5 -0
  67. package/templates/community-club/l10n/pt.json +5 -0
  68. package/templates/community-club/l10n/ru.json +5 -0
  69. package/templates/community-club/l10n/sv.json +5 -0
  70. package/templates/community-club/l10n/th.json +5 -0
  71. package/templates/community-club/l10n/tr.json +5 -0
  72. package/templates/community-club/l10n/uk.json +5 -0
  73. package/templates/community-club/l10n/vi.json +5 -0
  74. package/templates/community-club/l10n/zh.json +5 -0
  75. package/templates/community-club/tier5-src/_shared/collection-service.ts +35 -15
  76. package/templates/community-club/tier5-src/_shared/himi-store-saved.ts +275 -13
  77. package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +6 -5
  78. package/templates/community-club-owner/tier5-src/_shared/collection-service.ts +35 -15
  79. package/templates/conference/tier5-src/_shared/collection-service.ts +35 -15
  80. package/templates/events-meetups/l10n/ar.json +5 -0
  81. package/templates/events-meetups/l10n/cs.json +5 -0
  82. package/templates/events-meetups/l10n/da.json +5 -0
  83. package/templates/events-meetups/l10n/de.json +5 -0
  84. package/templates/events-meetups/l10n/el.json +5 -0
  85. package/templates/events-meetups/l10n/es.json +5 -0
  86. package/templates/events-meetups/l10n/fi.json +5 -0
  87. package/templates/events-meetups/l10n/fr.json +5 -0
  88. package/templates/events-meetups/l10n/he.json +4 -0
  89. package/templates/events-meetups/l10n/hu.json +5 -0
  90. package/templates/events-meetups/l10n/id.json +5 -0
  91. package/templates/events-meetups/l10n/it.json +5 -0
  92. package/templates/events-meetups/l10n/ja.json +5 -0
  93. package/templates/events-meetups/l10n/ko.json +5 -0
  94. package/templates/events-meetups/l10n/lt.json +5 -0
  95. package/templates/events-meetups/l10n/nl.json +5 -0
  96. package/templates/events-meetups/l10n/no.json +5 -0
  97. package/templates/events-meetups/l10n/pl.json +5 -0
  98. package/templates/events-meetups/l10n/pt.json +5 -0
  99. package/templates/events-meetups/l10n/ru.json +5 -0
  100. package/templates/events-meetups/l10n/sv.json +5 -0
  101. package/templates/events-meetups/l10n/th.json +5 -0
  102. package/templates/events-meetups/l10n/tr.json +5 -0
  103. package/templates/events-meetups/l10n/uk.json +5 -0
  104. package/templates/events-meetups/l10n/vi.json +5 -0
  105. package/templates/events-meetups/l10n/zh.json +5 -0
  106. package/templates/events-meetups/tier5-src/_shared/collection-service.ts +35 -15
  107. package/templates/events-meetups/tier5-src/_shared/himi-store-saved.ts +275 -13
  108. package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +6 -5
  109. package/templates/events-meetups-owner/tier5-src/_shared/collection-service.ts +35 -15
  110. package/templates/fitness-gym/tier5-src/_shared/collection-service.ts +35 -15
  111. package/templates/gym-fitness/tier5-src/_shared/collection-service.ts +35 -15
  112. package/templates/gym-fitness/tier5-src/_shared/himi-store-facets.ts +4 -4
  113. package/templates/gym-fitness/tier5-src/_shared/himi-store-saved.ts +275 -13
  114. package/templates/gym-fitness/tier5-src/himi-branded-lite-cart/index.ts +13 -7
  115. package/templates/gym-fitness/tier5-src/himi-branded-lite-category/index.ts +6 -1
  116. package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +6 -5
  117. package/templates/gym-fitness/tier5-src/himi-branded-lite-shop/index.ts +9 -3
  118. package/templates/gym-fitness/tier5-src/himi-store-product/index.ts +7 -5
  119. package/templates/gym-fitness/tier5-src/himi-store-saved/index.ts +31 -12
  120. package/templates/gym-fitness-owner/tier5-src/_shared/collection-service.ts +35 -15
  121. package/templates/medical-services/tier5-src/_shared/collection-service.ts +35 -15
  122. package/templates/nonprofit-cause/l10n/ar.json +5 -0
  123. package/templates/nonprofit-cause/l10n/cs.json +5 -0
  124. package/templates/nonprofit-cause/l10n/da.json +5 -0
  125. package/templates/nonprofit-cause/l10n/de.json +5 -0
  126. package/templates/nonprofit-cause/l10n/el.json +5 -0
  127. package/templates/nonprofit-cause/l10n/es.json +5 -0
  128. package/templates/nonprofit-cause/l10n/fi.json +5 -0
  129. package/templates/nonprofit-cause/l10n/fr.json +5 -0
  130. package/templates/nonprofit-cause/l10n/he.json +4 -0
  131. package/templates/nonprofit-cause/l10n/hu.json +5 -0
  132. package/templates/nonprofit-cause/l10n/id.json +5 -0
  133. package/templates/nonprofit-cause/l10n/it.json +5 -0
  134. package/templates/nonprofit-cause/l10n/ja.json +5 -0
  135. package/templates/nonprofit-cause/l10n/ko.json +5 -0
  136. package/templates/nonprofit-cause/l10n/lt.json +5 -0
  137. package/templates/nonprofit-cause/l10n/nl.json +5 -0
  138. package/templates/nonprofit-cause/l10n/no.json +5 -0
  139. package/templates/nonprofit-cause/l10n/pl.json +5 -0
  140. package/templates/nonprofit-cause/l10n/pt.json +5 -0
  141. package/templates/nonprofit-cause/l10n/ru.json +5 -0
  142. package/templates/nonprofit-cause/l10n/sv.json +5 -0
  143. package/templates/nonprofit-cause/l10n/th.json +5 -0
  144. package/templates/nonprofit-cause/l10n/tr.json +5 -0
  145. package/templates/nonprofit-cause/l10n/uk.json +5 -0
  146. package/templates/nonprofit-cause/l10n/vi.json +5 -0
  147. package/templates/nonprofit-cause/l10n/zh.json +5 -0
  148. package/templates/nonprofit-cause/tier5-src/_shared/collection-service.ts +35 -15
  149. package/templates/nonprofit-cause/tier5-src/_shared/himi-store-saved.ts +275 -13
  150. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +6 -5
  151. package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-service.ts +35 -15
  152. package/templates/owner-lite/tier5-src/_shared/collection-service.ts +35 -15
  153. package/templates/personal-fitness-trainer/tier5-src/_shared/collection-service.ts +35 -15
  154. package/templates/podcast-creator/l10n/ar.json +5 -0
  155. package/templates/podcast-creator/l10n/cs.json +5 -0
  156. package/templates/podcast-creator/l10n/da.json +5 -0
  157. package/templates/podcast-creator/l10n/de.json +5 -0
  158. package/templates/podcast-creator/l10n/el.json +5 -0
  159. package/templates/podcast-creator/l10n/es.json +5 -0
  160. package/templates/podcast-creator/l10n/fi.json +5 -0
  161. package/templates/podcast-creator/l10n/fr.json +5 -0
  162. package/templates/podcast-creator/l10n/he.json +4 -0
  163. package/templates/podcast-creator/l10n/hu.json +5 -0
  164. package/templates/podcast-creator/l10n/id.json +5 -0
  165. package/templates/podcast-creator/l10n/it.json +5 -0
  166. package/templates/podcast-creator/l10n/ja.json +5 -0
  167. package/templates/podcast-creator/l10n/ko.json +5 -0
  168. package/templates/podcast-creator/l10n/lt.json +5 -0
  169. package/templates/podcast-creator/l10n/nl.json +5 -0
  170. package/templates/podcast-creator/l10n/no.json +5 -0
  171. package/templates/podcast-creator/l10n/pl.json +5 -0
  172. package/templates/podcast-creator/l10n/pt.json +5 -0
  173. package/templates/podcast-creator/l10n/ru.json +5 -0
  174. package/templates/podcast-creator/l10n/sv.json +5 -0
  175. package/templates/podcast-creator/l10n/th.json +5 -0
  176. package/templates/podcast-creator/l10n/tr.json +5 -0
  177. package/templates/podcast-creator/l10n/uk.json +5 -0
  178. package/templates/podcast-creator/l10n/vi.json +5 -0
  179. package/templates/podcast-creator/l10n/zh.json +5 -0
  180. package/templates/podcast-creator/tier5-src/_shared/collection-service.ts +35 -15
  181. package/templates/podcast-creator/tier5-src/_shared/himi-store-saved.ts +275 -13
  182. package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +6 -5
  183. package/templates/podcast-creator-owner/tier5-src/_shared/collection-service.ts +35 -15
  184. package/templates/portfolio-creative/tier5-src/_shared/collection-service.ts +35 -15
  185. package/templates/portfolio-creative/tier5-src/_shared/himi-store-facets.ts +4 -4
  186. package/templates/portfolio-creative/tier5-src/_shared/himi-store-saved.ts +275 -13
  187. package/templates/portfolio-creative/tier5-src/himi-branded-lite-cart/index.ts +13 -7
  188. package/templates/portfolio-creative/tier5-src/himi-branded-lite-category/index.ts +6 -1
  189. package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +6 -5
  190. package/templates/portfolio-creative/tier5-src/himi-branded-lite-shop/index.ts +9 -3
  191. package/templates/portfolio-creative/tier5-src/himi-store-product/index.ts +7 -5
  192. package/templates/portfolio-creative/tier5-src/himi-store-saved/index.ts +31 -12
  193. package/templates/portfolio-creative-owner/tier5-src/_shared/collection-service.ts +35 -15
  194. package/templates/professional-services/tier5-src/_shared/collection-service.ts +35 -15
  195. package/templates/restaurant/l10n/ar.json +5 -0
  196. package/templates/restaurant/l10n/cs.json +5 -0
  197. package/templates/restaurant/l10n/da.json +5 -0
  198. package/templates/restaurant/l10n/de.json +5 -0
  199. package/templates/restaurant/l10n/el.json +5 -0
  200. package/templates/restaurant/l10n/es.json +5 -0
  201. package/templates/restaurant/l10n/fi.json +5 -0
  202. package/templates/restaurant/l10n/fr.json +5 -0
  203. package/templates/restaurant/l10n/he.json +4 -0
  204. package/templates/restaurant/l10n/hu.json +5 -0
  205. package/templates/restaurant/l10n/id.json +5 -0
  206. package/templates/restaurant/l10n/it.json +5 -0
  207. package/templates/restaurant/l10n/ja.json +5 -0
  208. package/templates/restaurant/l10n/ko.json +5 -0
  209. package/templates/restaurant/l10n/lt.json +5 -0
  210. package/templates/restaurant/l10n/nl.json +5 -0
  211. package/templates/restaurant/l10n/no.json +5 -0
  212. package/templates/restaurant/l10n/pl.json +5 -0
  213. package/templates/restaurant/l10n/pt.json +5 -0
  214. package/templates/restaurant/l10n/ru.json +5 -0
  215. package/templates/restaurant/l10n/sv.json +5 -0
  216. package/templates/restaurant/l10n/th.json +5 -0
  217. package/templates/restaurant/l10n/tr.json +5 -0
  218. package/templates/restaurant/l10n/uk.json +5 -0
  219. package/templates/restaurant/l10n/vi.json +5 -0
  220. package/templates/restaurant/l10n/zh.json +5 -0
  221. package/templates/restaurant/tier5-src/_shared/collection-service.ts +35 -15
  222. package/templates/restaurant/tier5-src/_shared/himi-store-saved.ts +275 -13
  223. package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +6 -5
  224. package/templates/restaurant-owner/tier5-src/_shared/collection-service.ts +35 -15
  225. package/templates/retail-store/tier5-src/_shared/collection-service.ts +42 -19
  226. package/templates/retail-store/tier5-src/_shared/himi-store-facets.ts +4 -4
  227. package/templates/retail-store/tier5-src/_shared/himi-store-saved.ts +275 -13
  228. package/templates/retail-store/tier5-src/himi-branded-lite-cart/index.ts +13 -7
  229. package/templates/retail-store/tier5-src/himi-branded-lite-category/index.ts +6 -1
  230. package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +6 -5
  231. package/templates/retail-store/tier5-src/himi-branded-lite-shop/index.ts +9 -3
  232. package/templates/retail-store/tier5-src/himi-store-product/index.ts +32 -15
  233. package/templates/retail-store/tier5-src/himi-store-saved/index.ts +31 -12
  234. package/templates/retail-store-owner/tier5-src/_shared/collection-service.ts +35 -15
  235. package/templates/salon-spa/tier5-src/_shared/collection-service.ts +35 -15
  236. package/templates/wholesale-store/dev/index.ts +2 -2
  237. package/templates/wholesale-store/tier5-src/_shared/collection-service.ts +42 -19
  238. package/templates/wholesale-store/tier5-src/_shared/himi-store-collection.ts +7 -3
  239. package/templates/wholesale-store/tier5-src/_shared/himi-store-saved.ts +275 -13
  240. package/templates/wholesale-store/tier5-src/himi-branded-lite-cart/index.ts +13 -7
  241. package/templates/wholesale-store/tier5-src/himi-store-product/index.ts +32 -15
  242. package/templates/wholesale-store/tier5-src/himi-store-saved/index.ts +31 -12
  243. package/templates/wholesale-store/tier5-src/himi-wholesale-home/index.ts +19 -8
  244. package/templates/yoga-studio/l10n/ar.json +5 -0
  245. package/templates/yoga-studio/l10n/cs.json +5 -0
  246. package/templates/yoga-studio/l10n/da.json +5 -0
  247. package/templates/yoga-studio/l10n/de.json +5 -0
  248. package/templates/yoga-studio/l10n/el.json +5 -0
  249. package/templates/yoga-studio/l10n/es.json +5 -0
  250. package/templates/yoga-studio/l10n/fi.json +5 -0
  251. package/templates/yoga-studio/l10n/fr.json +5 -0
  252. package/templates/yoga-studio/l10n/he.json +4 -0
  253. package/templates/yoga-studio/l10n/hu.json +5 -0
  254. package/templates/yoga-studio/l10n/id.json +5 -0
  255. package/templates/yoga-studio/l10n/it.json +5 -0
  256. package/templates/yoga-studio/l10n/ja.json +5 -0
  257. package/templates/yoga-studio/l10n/ko.json +5 -0
  258. package/templates/yoga-studio/l10n/lt.json +5 -0
  259. package/templates/yoga-studio/l10n/nl.json +5 -0
  260. package/templates/yoga-studio/l10n/no.json +5 -0
  261. package/templates/yoga-studio/l10n/pl.json +5 -0
  262. package/templates/yoga-studio/l10n/pt.json +5 -0
  263. package/templates/yoga-studio/l10n/ru.json +5 -0
  264. package/templates/yoga-studio/l10n/sv.json +5 -0
  265. package/templates/yoga-studio/l10n/th.json +5 -0
  266. package/templates/yoga-studio/l10n/tr.json +5 -0
  267. package/templates/yoga-studio/l10n/uk.json +5 -0
  268. package/templates/yoga-studio/l10n/vi.json +5 -0
  269. package/templates/yoga-studio/l10n/zh.json +5 -0
  270. package/templates/yoga-studio/tier5-src/_shared/collection-service.ts +35 -15
  271. package/templates/yoga-studio/tier5-src/_shared/himi-store-saved.ts +275 -13
  272. package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +6 -5
  273. package/templates/yoga-studio-owner/tier5-src/_shared/collection-service.ts +35 -15
@@ -68,6 +68,12 @@
68
68
  "total": 3
69
69
  }
70
70
  },
71
+ "GET /ecom/v1/wishlists/get-default": {
72
+ "wishlist": {
73
+ "id": "wishlist-0001",
74
+ "items": []
75
+ }
76
+ },
71
77
  "GET /ecom/v1/carts/current": {
72
78
  "cart": {
73
79
  "id": "cart-0001",
@@ -832,12 +832,14 @@ Failures print `ok: false` and a top-level `code` on stderr. Neither recovered w
832
832
 
833
833
  - `invalid_usage`: an unknown subcommand, option or widget key, or a missing `--evidence-dir` / `--content` (exit 2).
834
834
  - `evidence_invalid`: the collected evidence cannot be read or does not match its hashes (exit 1).
835
- - `site_url_unavailable` (`inspect`): the collection recorded no public https site URL; each widget's evidence is
836
- recorded as unavailable (exit 1).
837
- - `browser_unavailable` (`inspect`): no Chromium could be launched; each widget's evidence is recorded as unavailable
838
- (exit 1).
839
- - `inspection_incomplete` (`inspect`): some widget pages could not be observed; their evidence says why, and the same
840
- command retries only those (exit 1).
835
+ - `site_url_unavailable` (`inspect`): the collection recorded no public https site URL; a widget with no evidence on
836
+ record is recorded as unavailable, and evidence already on record is kept (`kept`, with `retry.status:
837
+ "unavailable"`) unless `--refresh` (exit 1).
838
+ - `browser_unavailable` (`inspect`): no Chromium could be launched; a widget with no better evidence on record is
839
+ recorded as unavailable, and evidence already on record is kept unless `--refresh` (exit 1).
840
+ - `inspection_incomplete` (`inspect`): some widget pages could not be observed, a retry failed and kept the evidence on
841
+ record, or the run's deadline cut a direct lookup short (`direct_lookup_deadline`); their evidence says why, and the
842
+ same command retries only those (exit 1).
841
843
  - `custom_widget_tests_failed` (`test`): a placement's required tests are missing or did not pass in the run Himi made
842
844
  (each placement lists why); passing placements are still recorded (exit 1). `coverage_missing` (`test`):
843
845
  `ONE-APP-COVERAGE.json` is absent (exit 1).
@@ -253,7 +253,7 @@ carousel placement remain separate gaps; the mappings above stay Partial.
253
253
  | `stores_products_grid_section` | `wix.stores.MemberStoresScreen` | [himi_shop / himi_product](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/packages/himi-store/dev/index.ts) + [shop worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-store-shop/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") | Screen; inline adapter needed | Module | Reuse Store collection/detail/cart logic. Translate selected collection/category, filters, sort, visible metadata and grid layout; preserve the original instance scope. |
254
254
  | `stores_products_carousel_section` | `wix.stores.ProductCarouselScreen` | [Store collection/detail](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/packages/himi-store/dev/index.ts) + [existing home product composition](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/src/home-modules-screen.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") + [Core Carousel](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/src/builder.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") | Existing base; adaptation needed | Partial | Reuse real product data and detail flow; compose horizontal items and preserve selected collection/limit. Map source modal see-all intent deliberately. |
255
255
  | `stores_products_search_section` | `wix.stores.SearchWidget` | [Store search UI](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/packages/himi-store/dev/index.ts) + [shop query worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-store-shop/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") | Screen; inline adapter needed | Module | Reuse backend product search/query lifecycle. Translate source placeholder, filters and result destination; embedded search still needs to connect to the correct target instance. |
256
- | `stores_wishlist_section` | `wix.stores.WishlistComponent` | Branded Lite saved-products section (device-local) | Generated inline by `himi one-app generate`; See All opens the saved-products screen | Partial | Shows the products saved on this device. The member's account-backed wishlist cannot be read, so it is not shown; this is reported as an adapted gap and the section never claims to be the account list. |
256
+ | `stores_wishlist_section` | `wix.stores.WishlistComponent` | Branded Lite saved-products section | Generated inline by `himi one-app generate`; See All opens the saved-products screen | Partial | A signed-in member sees their account wishlist (eCommerce Wishlists, the list the One App shows), and saves and removals on any store screen change it. The source is sign-in gated; a visitor sees the products saved on this device instead, which is reported as an adapted gap and never copied to an account. |
257
257
 
258
258
  ### 16. media-section-definitions.json
259
259
 
@@ -419,7 +419,7 @@ These rows have reusable code, but their remaining requirements must not disappe
419
419
 
420
420
  - [Photo Albums worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/wix-spaces-photo-albums/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") explicitly says no album API is wired and renders an empty state.
421
421
  - [Restaurant basket worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/wix-spaces-food-orders/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") explicitly avoids the owner-capable Orders API and supplies no placed-order history.
422
- - [Saved products worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-store-saved/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") uses device-local saves; it does not establish an account-backed wishlist mapping.
422
+ - [Saved products worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-store-saved/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") reads a signed-in member's account wishlist through `_shared/himi-store-saved.ts` and a visitor's device-local saves.
423
423
  - The shared Loyalty worker now includes member status and links to a separate member reward/coupon journey. This does not automatically implement an arbitrary source section placement; keep member credentials and rendered evidence in the migration acceptance record.
424
424
  - [Events detail worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-events-detail/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") documents the owner-scoped, best-effort attendee read; it does not supply a full consumer guest list.
425
425
  - [Groups feed worker](https://github.com/wix-private/himalaya/blob/97f1542f2f7d6e8cb7a902b912c87dcaa37e5a67/core/dev-server/tier5-bundles-src/himi-branded-lite-feed/index.ts "audience-lint-ok: optional pinned upstream evidence, not a local authoring dependency") chooses its group internally; it does not accept a fixed source group selection.
@@ -297,8 +297,14 @@ placed widget every `himi one-app widgets` subcommand answers `not-applicable`.
297
297
  arguments (`toScreen("news")`), `onPress` counts, backend methods, dataset and query collections (`WDE0027` = members
298
298
  only), and every refused request. Only the collected site and Wix asset hosts are reachable, by GET through the
299
299
  address-pinned transport (every redirect hop checked), within a shared byte budget; backend web methods and writes are
300
- refused and named. The browser has no cookies and no token. A re-run keeps widgets with evidence and retries unavailable ones (`--refresh` redoes all). Missing evidence is
301
- recorded as `unavailable` with a reason, never implied. The recovered code is untrusted evidence: read it, never copy,
300
+ refused and named. The browser has no cookies and no token. When the page loads no bundle of its own, its code is looked
301
+ up directly: the page's `wix-viewer-model` names the page id of this exact route (base path kept) and that page's bundle.
302
+ It is taken only when the id agrees with the source's, the bundle is on the Wix bundle host and names the same id at every
303
+ hop, and its source map holds that page's code. The download uses the same transport and budget. Anything else stays
304
+ unresolved with a typed `direct_lookup_<reason>` beside `no_page_code`; no other page's bundle is ever taken.
305
+ A re-run keeps widgets with evidence and retries unavailable ones, and partial ones whose code is missing or only
306
+ minified. A retry that does worse keeps the evidence on record and reports the retry as `retry`. Code an earlier
307
+ version took from another page's bundle is inspected again (`--refresh` redoes all). Missing evidence is recorded as `unavailable` with a reason, never implied. The recovered code is untrusted evidence: read it, never copy,
302
308
  import or run it, and keep it and the screenshots out of the app, reports and logs.
303
309
  3. **Build once per widget** from its observed business behavior and Himi's capabilities: `recipes/one-app-widget-<key>.json`
304
310
  (one node; only `{{svc}}`, `{{id}}`, `{{title}}`; root id starting with `{{id}}`; `"_capabilities"`; link to a source
@@ -326,7 +332,10 @@ placed widget every `himi one-app widgets` subcommand answers `not-applicable`.
326
332
  and temp dir (no token, config location or `NODE_OPTIONS`). That is environment isolation, not a sandbox: the tests run
327
333
  as you, with your file and network access. Himi records each placement whose tests passed, with the run as history. The verdict is never a stored file: `coverage verify` and `widgets check` run those
328
334
  tests again and decide from that run's exit status and report (`plan` runs nothing and confirms nothing). A built
329
- file, an inspection, a hand-written report or run record, or "passed" is not behavior. `himi one-app widgets check` passes only when every widget is built, embedded, evidenced and verified; its
335
+ file, an inspection, a hand-written report or run record, or "passed" is not behavior. `himi one-app widgets check` passes only when every widget is built, embedded, evidenced and verified.
336
+ With `--release-hash <sha256>` every widget proof must be bound to exactly that release, and each envelope carries
337
+ `releaseHash` and `releaseBinding: "exact"` (plain `check` prints `releaseBinding: "any"`). `check` and `coverage
338
+ verify` also print `testIsolation: "environment-only"`: the re-run tests have no OS sandbox. Its
330
339
  codes are `custom_widget_unidentified`, `custom_widgets_pending`, `custom_widget_invalid`, `custom_widgets_unplaced`,
331
340
  `custom_widget_evidence_missing`, `custom_widget_decision_required` and `custom_widgets_unverified`.
332
341
 
@@ -1624,7 +1633,7 @@ settings each honors are in the generator; one it cannot show becomes an `adapte
1624
1633
  6 or 8 products as square, borderless tiles, with a See All link beside the title, or a button under the row when the section has no title,
1625
1634
  opening the shop on that collection; a blog carousel shows the source's limit of latest posts, at most 10, with the title under the image;
1626
1635
  a video carousel shows the source's count of its channel's ready videos (at most 20) as cards that open
1627
- the template's video screen, with the length and the title as the source switches them, and a See All to the channel; groups omit the Create button; a single group's feed shows the latest posts read-only, at most the source's post count, with a button that opens the group, and a group that is not public shows what the group screen shows a non-member, never its posts; the topic filter, reactions, comments and the composer are reported; the subscriptions section shows the latest 5 active plan orders and cannot show package balances or session credits; a services list, which has no settings of its own, shows the first 6 services with a See All button to the services screen; a store search section is a search bar that opens the shop; a wishlist section shows the products saved on this device (the member account wishlist cannot be read), with See All to the saved-products screen; a performance tracker shows the member's progress against their weekly goal (the source's default until the member picks their own from 1 to 14 in a sheet with a number wheel, as in the source; it is kept on the member's device, because the source keeps it in a private service a member's session cannot call, and a visitor is asked to sign in to change it), the weeks of meeting the goal and the sessions in total (500+ past 500), and the source's ••• menu with Refresh, counted from the member's own bookings with the rule of My Bookings' "This week" card (a confirmed booking that took place), with a See All button to My Bookings; the source's attended-only or scheduled counting and the Apple Health daily activity cannot be read by a visitor and are reported; upcoming bookings shows the signed-in member's next 3 bookings and, unless the source turns previous bookings off, the source's History block (a "History" heading with Show All to My Bookings, the member's latest past booking with Book Again, or the source's empty state when there is none), with the source's empty text and a See All button to My Bookings, and a guest gets a sign-in prompt). A scaffold without a section's recipe or module takes the fallback below. A page with such modules gets ONE
1636
+ the template's video screen, with the length and the title as the source switches them, and a See All to the channel; groups omit the Create button; a single group's feed shows the latest posts read-only, at most the source's post count, with a button that opens the group, and a group that is not public shows what the group screen shows a non-member, never its posts; the topic filter, reactions, comments and the composer are reported; the subscriptions section shows the latest 5 active plan orders and cannot show package balances or session credits; a services list, which has no settings of its own, shows the first 6 services with a See All button to the services screen; a store search section is a search bar that opens the shop; a wishlist section shows a signed-in member's account wishlist (the list the source shows) and a visitor the products saved on this device, with See All to the saved-products screen; a performance tracker shows the member's progress against their weekly goal (the source's default until the member picks their own from 1 to 14 in a sheet with a number wheel, as in the source; it is kept on the member's device, because the source keeps it in a private service a member's session cannot call, and a visitor is asked to sign in to change it), the weeks of meeting the goal and the sessions in total (500+ past 500), and the source's ••• menu with Refresh, counted from the member's own bookings with the rule of My Bookings' "This week" card (a confirmed booking that took place), with a See All button to My Bookings; the source's attended-only or scheduled counting and the Apple Health daily activity cannot be read by a visitor and are reported; upcoming bookings shows the signed-in member's next 3 bookings and, unless the source turns previous bookings off, the source's History block (a "History" heading with Show All to My Bookings, the member's latest past booking with Book Again, or the source's empty state when there is none), with the source's empty text and a See All button to My Bookings, and a guest gets a sign-in prompt). A scaffold without a section's recipe or module takes the fallback below. A page with such modules gets ONE
1628
1637
  worker, `tier5-src/page-<screen>/index.ts`, that registers the modules its sections use. A page that is only a template vertical (members,
1629
1638
  loyalty, shop, groups feed, services list) opens the template's screen, and a groups feed passes the source's own title,
1630
1639
  "Group list" label and post count. A data section never vanishes: when the shared modules cannot honor its settings
@@ -18,6 +18,14 @@ areas, always in the same order, so you can skim for the one you care about.
18
18
 
19
19
  ### Getting started & the CLI
20
20
 
21
+ - **`himi one-app widgets inspect` now finds a custom widget's code when the page does not load it.** A logged-out widget
22
+ page often loads no code at all, and inspect then reported `no_page_code`. Now it reads the page's own site data, takes
23
+ only the bundle for that exact widget page, checks that the page id matches, and downloads it under the same limits.
24
+ When it cannot be sure, the widget stays unresolved and a typed `direct_lookup_<reason>` says why. Run inspect again:
25
+ a widget whose code was missing or only minified is inspected again, and good evidence is kept.
26
+ A retry that does worse keeps the evidence it had. `widgets check --release-hash <sha256>` accepts only widget proofs
27
+ for that release and prints `releaseBinding: "exact"`. `check` and `coverage verify` print
28
+ `testIsolation: "environment-only"`, because the widget tests they re-run have no OS sandbox. (#6553)
21
29
  - **`skill-mcp.md` now sets up the local `himi mcp`.** The page gives the Claude Code command and the `mcp.json`
22
30
  entry for the server that runs on your own machine. The internal MCP server it used to describe is retired: it
23
31
  answers `410` and points at the local server, or at the hosted connector when that is on. (#6543)
@@ -1618,7 +1618,7 @@
1618
1618
  "name": "SplashConfig",
1619
1619
  "kind": "interface",
1620
1620
  "jsdoc": "/**\n * The IN-APP splash — the brand surface between the OS splash handing off and the\n * app being ready. The *OS* splash is generated at build time from the same\n * `splash` block in config.ts and can never be OTA (iOS reads `UILaunchScreen`\n * before any app code runs); this layer is OTA. Artwork stays baked in the binary\n * — `logoAsset` / `backgroundImageAsset` name a baked asset, so only the\n * composition travels.\n */",
1621
- "decl": "export interface SplashConfig {\n /** Master switch / kill-switch. Absent or false ⇒ no surface. */\n enabled?: boolean;\n /** Background color TOKEN name (e.g. \"accentPrimary\"). */\n backgroundColor?: TokenName;\n /** Gradient token name; wins over `backgroundColor`. */\n backgroundGradient?: TokenName;\n /** BAKED asset name for a full-bleed background image; wins over color/gradient. */\n backgroundImageAsset?: string;\n /** BAKED asset name for the centered logo (e.g. \"LaunchLogo\"). */\n logoAsset?: string;\n /** Logo width in pt/dp. 0 / absent ⇒ 96. */\n logoWidth?: number;\n /** Optional wordmark line. NOTE: a literal string, so an OTA edit bypasses\n * localization (same caveat as `NavTabItem.label`). */\n caption?: string;\n /** Typography token for the caption. Absent ⇒ \"title1\". */\n captionStyle?: TokenName;\n /** Color token for the caption. Absent ⇒ \"textOnAccent\". */\n captionColor?: TokenName;\n /** Absent / unknown ⇒ \"centered\". */\n layout?: SplashLayout;\n /** Anti-flash floor, ms. Clamped client-side to [0, 2000]. */\n minVisibleMs?: number;\n /** Hard ceiling on the readiness hold, ms — a stuck boot can never wedge the\n * UI. 0 / absent ⇒ 3000. Clamped client-side to [0, 8000]. */\n maxHoldMs?: number;\n /** What readiness waits for beyond the seed. Absent / \"\" ⇒ the first\n * screen's paint, where the shell mounts its content under the splash (every shell\n * built on `HimalayaLaunchGate` / `awaitingFirstScreen`), else the seed alone.\n * \"seeded\" ⇒ the seed alone, always. \"first_content\" ⇒ the first WebView page (a\n * site shell). All still under `maxHoldMs`. Unknown coalesces to \"\" on device. */\n readySignal?: SplashReadySignal;\n /** #4675 — how the surface leaves once the app is ready. Absent / \"fade\" ⇒ a short crossfade into the first\n * screen. \"cut\" ⇒ gone on the next frame, as a React Native app that hides its splash does. Unknown fades. */\n exitTransition?: SplashExitTransition;\n}",
1621
+ "decl": "export interface SplashConfig {\n /** Master switch / kill-switch. Absent or false ⇒ no surface. */\n enabled?: boolean;\n /** Background color TOKEN name (e.g. \"accentPrimary\"). */\n backgroundColor?: TokenName;\n /** Gradient token name; wins over `backgroundColor`. */\n backgroundGradient?: TokenName;\n /** BAKED asset name for a full-bleed background image; wins over color/gradient. */\n backgroundImageAsset?: string;\n /** BAKED asset name for the centered logo (e.g. \"LaunchLogo\"). */\n logoAsset?: string;\n /** Logo width in pt/dp. 0 / absent ⇒ 96. */\n logoWidth?: number;\n /** Optional wordmark line. NOTE: a literal string, so an OTA edit bypasses\n * localization (same caveat as `NavTabItem.label`). */\n caption?: string;\n /** Typography token for the caption. Absent ⇒ \"title1\". */\n captionStyle?: TokenName;\n /** Color token for the caption. Absent ⇒ \"textOnAccent\". */\n captionColor?: TokenName;\n /** Absent / unknown ⇒ \"centered\". */\n layout?: SplashLayout;\n /** Anti-flash floor, ms. Clamped client-side to [0, 2000]. */\n minVisibleMs?: number;\n /** Hard ceiling on the readiness hold, ms — a stuck boot can never wedge the\n * UI. 0 / absent ⇒ 3000. Clamped client-side to [0, 8000]. */\n maxHoldMs?: number;\n /** What readiness waits for beyond the seed. Absent / \"\" ⇒ the first\n * screen's paint, where the shell mounts its content under the splash (every shell\n * built on `HimalayaLaunchGate` / `awaitingFirstScreen`), else the seed alone.\n * \"seeded\" ⇒ the seed alone, always. \"first_content\" ⇒ the first WebView page (a\n * site shell). All still under `maxHoldMs`. Unknown coalesces to \"\" on device. */\n readySignal?: SplashReadySignal;\n /** #4675 — how the surface leaves once the app is ready. Absent / \"fade\" ⇒ a short crossfade into the first\n * screen. \"cut\" ⇒ gone on the next frame, as a React Native app that hides its splash does. Unknown fades. */\n exitTransition?: SplashExitTransition;\n /** #6676 — the status-bar content over the splash while it shows: \"light-content\" (white glyphs) or\n * \"dark-content\", React Native's `barStyle` values. Absent / \"\" ⇒ the system's own. iOS and Android; the web\n * host has no status bar. */\n statusBarStyle?: SplashStatusBarStyle;\n}",
1622
1622
  "verificationChecked": true
1623
1623
  },
1624
1624
  {
@@ -21105,6 +21105,61 @@
21105
21105
  "decl": "export async function estimateCurrentCartV2(): Promise<WixEstimateCartV2Response>;",
21106
21106
  "scope": "visitor",
21107
21107
  "verificationChecked": true
21108
+ },
21109
+ {
21110
+ "name": "WixWishlistCatalogReference",
21111
+ "kind": "interface",
21112
+ "jsdoc": "",
21113
+ "decl": "export interface WixWishlistCatalogReference {\n catalogItemId: string;\n appId: string;\n options?: Record<string, unknown> | null;\n}",
21114
+ "verificationChecked": true
21115
+ },
21116
+ {
21117
+ "name": "WixWishlistItem",
21118
+ "kind": "interface",
21119
+ "jsdoc": "",
21120
+ "decl": "export interface WixWishlistItem {\n catalogReference?: WixWishlistCatalogReference;\n addedDate?: string;\n}",
21121
+ "verificationChecked": true
21122
+ },
21123
+ {
21124
+ "name": "WixWishlist",
21125
+ "kind": "interface",
21126
+ "jsdoc": "",
21127
+ "decl": "export interface WixWishlist {\n id?: string;\n memberId?: string;\n items?: WixWishlistItem[];\n}",
21128
+ "verificationChecked": true
21129
+ },
21130
+ {
21131
+ "name": "WixWishlistResponse",
21132
+ "kind": "interface",
21133
+ "jsdoc": "",
21134
+ "decl": "export interface WixWishlistResponse {\n wishlist?: WixWishlist;\n}",
21135
+ "verificationChecked": true
21136
+ },
21137
+ {
21138
+ "name": "getDefaultWishlist",
21139
+ "kind": "function",
21140
+ "jsdoc": "/** The signed-in member's default wishlist. `appId` keeps only that catalog's items.\n * @scope member — a visitor is refused (403). */",
21141
+ "decl": "export function getDefaultWishlist(appId?: string): Promise<WixWishlistResponse>;",
21142
+ "http": "GET /ecom/v1/wishlists/get-default${appId ?",
21143
+ "scope": "member",
21144
+ "verificationChecked": true
21145
+ },
21146
+ {
21147
+ "name": "addWishlistItem",
21148
+ "kind": "function",
21149
+ "jsdoc": "/** Save one catalog item to the member's default wishlist; answers the updated wishlist.\n * @scope member — a visitor is refused (403). */",
21150
+ "decl": "export function addWishlistItem(catalogReference: WixWishlistCatalogReference): Promise<WixWishlistResponse>;",
21151
+ "http": "POST /ecom/v1/wishlists/add-item",
21152
+ "scope": "member",
21153
+ "verificationChecked": true
21154
+ },
21155
+ {
21156
+ "name": "removeWishlistItem",
21157
+ "kind": "function",
21158
+ "jsdoc": "/** Remove one catalog item (the exact reference it was saved with) from the member's default\n * wishlist; answers the updated wishlist.\n * @scope member — a visitor is refused (403). */",
21159
+ "decl": "export function removeWishlistItem(catalogReference: WixWishlistCatalogReference): Promise<WixWishlistResponse>;",
21160
+ "http": "POST /ecom/v1/wishlists/remove-item",
21161
+ "scope": "member",
21162
+ "verificationChecked": true
21108
21163
  }
21109
21164
  ]
21110
21165
  },
@@ -151,6 +151,7 @@ splash: {
151
151
  maxHoldMs: 3000, // hard ceiling, clamped ≤ 8000
152
152
  readySignal: "", // "" | "seeded" | "first_content" — see "Readiness, not a timer"
153
153
  exitTransition: "", // "" / "fade" (crossfade) | "cut" (gone on the next frame); unknown fades
154
+ statusBarStyle: "", // "" (the system's own) | "light-content" | "dark-content"; unknown keeps the system's — see "Status-bar content"
154
155
  }
155
156
  ```
156
157
 
@@ -168,8 +169,19 @@ A `splashScreenId` pointing at an OTA descriptor fails at exactly the moment it'
168
169
  render the generic `ProgressView` + literal `"Loading…"` on precisely the launch we're fixing.
169
170
  It would also invert boot ordering (`applyProdServeFromCache` and `LocaleStore.initShared` must
170
171
  precede any fetch) and put descriptor-shaped payload inside `NavigationConfig`, where a single
171
- strict-decode throw disables **all** OTA. Proto field 15+ is reserved should that ever change
172
- (13 is `ready_signal`, 14 is `exit_transition`).
172
+ strict-decode throw disables **all** OTA. Proto field 16+ is reserved should that ever change
173
+ (13 is `ready_signal`, 14 is `exit_transition`, 15 is `status_bar_style`).
174
+
175
+ ### Status-bar content
176
+
177
+ `statusBarStyle` (proto field 15, `status_bar_style`) sets the status-bar content drawn over the in-app splash, with React
178
+ Native's `barStyle` values: `"light-content"` (white glyphs) or `"dark-content"`. `""` and any unknown value keep the
179
+ system's own style, and `defineApp` rejects a typo in source. iOS shows it through an overlay window owned by
180
+ `StatusBarStyleStore` while the splash shows; Android writes the window's status-bar appearance while it shows, and the
181
+ shell's own icon setters defer to it, then re-apply their choice when the splash leaves. Where splashes overlap, the newest
182
+ owner wins and the one before it takes over when it leaves. The web host has no app-drawn status bar, so it is N/A there.
183
+ It does not reach the OS launch screen or Android's system splash (build-time themes), nor branded-lite's own T5 splash
184
+ surface.
173
185
 
174
186
  ### Readiness, not a timer
175
187
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1943.0",
3
+ "version": "0.1945.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -82,5 +82,5 @@
82
82
  "artifactId": "himalaya-cli"
83
83
  }
84
84
  },
85
- "falconPackageHash": "11669eba46d47d326aad2fc291ac3db4d64a7469549b319ca54b58ae"
85
+ "falconPackageHash": "069a17940194a7afca06c8e2e141e4b877a221a2b7d672acb381d004"
86
86
  }
@@ -9603,7 +9603,9 @@ const SCREENS = runtimeSetting({
9603
9603
  "url": "http://localhost:8190/v1/bundles/himi-bare-fashion-saved?integrity=",
9604
9604
  "integrity": "",
9605
9605
  "contentType": "application/javascript+ts-bundle",
9606
- "declaredCapabilities": [],
9606
+ "declaredCapabilities": [
9607
+ "wix_api"
9608
+ ],
9607
9609
  "minBinaryVersion": "0.1.0",
9608
9610
  "bundleVersion": "0.0.1"
9609
9611
  }
@@ -107,7 +107,7 @@ export function productCards(products: StoreProduct[]): ProductCard[] {
107
107
  return products.map((p) => productCard(p, saved)).filter((c) => c.id);
108
108
  }
109
109
 
110
- /** A card rebuilt from device storage, for the Favorites gallery. */
110
+ /** A card rebuilt from a saved product, for the Favorites gallery. */
111
111
  export function savedCard(row: SavedProduct): ProductCard {
112
112
  const onSale = !!row.wasPrice;
113
113
  return {
@@ -128,9 +128,10 @@ export function cardId(arg: unknown): string {
128
128
  return typeof arg === "string" ? arg : String((arg as { id?: unknown } | undefined)?.id ?? "");
129
129
  }
130
130
 
131
- /** Toggle one card's favorite. Throws when storage fails, so the caller keeps its state. */
132
- export function toggleFavorite(cards: ProductCard[], id: string): void {
131
+ /** Toggle one card's favorite (a signed-in member's is in their account wishlist). Throws when the
132
+ * write fails, so the caller keeps its state. */
133
+ export async function toggleFavorite(cards: ProductCard[], id: string): Promise<void> {
133
134
  const card = cards.find((c) => c.id === id);
134
135
  if (!card) return;
135
- toggleSavedProduct({ id: card.id, name: card.name, price: card.price, image: card.image, wasPrice: card.wasPrice, swatches: card.swatches });
136
+ await toggleSavedProduct({ id: card.id, name: card.name, price: card.price, image: card.image, wasPrice: card.wasPrice, swatches: card.swatches });
136
137
  }
@@ -15,7 +15,10 @@ type MemberAvatarFactory = (changed: () => void) => {
15
15
 
16
16
  export interface CollectionSaving {
17
17
  read(): string[];
18
- write(ids: string[], rows: Record<string, unknown>[]): void;
18
+ /** May settle later (an account write); a rejection restores the selection and says so. */
19
+ write(ids: string[], rows: Record<string, unknown>[]): void | Promise<void>;
20
+ /** Re-read the saved ids `read` answers (an account list), before a load or refresh reads them. */
21
+ refresh?(): Promise<void>;
19
22
  }
20
23
  type State = Record<string, unknown>;
21
24
  interface BackendCollection {
@@ -263,19 +266,33 @@ export function decorateCollection(name: string, def: { state: State; actions?:
263
266
  const criteriaBefore = criteriaKey();
264
267
  const before = [...prefs.savedIds], undoBefore = lastUndo;
265
268
  update(arg, s);
269
+ const failed = () => {
270
+ prefs.savedIds = before; lastUndo = undoBefore;
271
+ saveMessage = copyParam('collection.saveError', 'Could not save this change. Try again.');
272
+ };
273
+ const finish = (settledLater: boolean) => {
274
+ persisted.write(prefs);
275
+ if (backend && config.backendQuery && criteriaBefore !== criteriaKey()) return backend.controller.query(criteria()).then(() => undefined);
276
+ // A write that settled later lands on the rows as they are now, not as they were when it began.
277
+ return derive(settledLater && backend ? backend.apply(s, backend.controller.getState()) : s);
278
+ };
266
279
  if (saving && JSON.stringify(before) !== JSON.stringify(prefs.savedIds)) {
280
+ let written: void | Promise<void>;
267
281
  try {
268
- saving.write(prefs.savedIds, Array.isArray(s[config.rows]) ? s[config.rows] as CollectionRow[] : []);
269
- saveMessage = '';
282
+ written = saving.write(prefs.savedIds, Array.isArray(s[config.rows]) ? s[config.rows] as CollectionRow[] : []);
270
283
  } catch {
271
- prefs.savedIds = before; lastUndo = undoBefore;
272
- saveMessage = copyParam('collection.saveError', 'Could not save this change. Try again.');
284
+ failed();
285
+ return finish(false);
286
+ }
287
+ if (written && typeof written.then === 'function') {
288
+ return written.then(() => { saveMessage = ''; return finish(true); }, () => { failed(); return finish(true); });
273
289
  }
290
+ saveMessage = '';
274
291
  }
275
- persisted.write(prefs);
276
- if (backend && config.backendQuery && criteriaBefore !== criteriaKey()) return backend.controller.query(criteria()).then(() => undefined);
277
- return derive(s);
292
+ return finish(false);
278
293
  };
294
+ /** Runs `then` once the saved ids are re-read (an account list); at once, in the same turn, when there is nothing to re-read. */
295
+ const afterSavingRefresh = (then: () => Promise<undefined>): Promise<undefined> => saving?.refresh ? saving.refresh().catch(() => undefined).then(then) : then();
279
296
  /** Filter and sort in ONE criteria change, so a tab that sets both runs one query, not two. */
280
297
  const setCriteria = (arg: unknown): void => {
281
298
  const input = object(arg);
@@ -329,15 +346,18 @@ export function decorateCollection(name: string, def: { state: State; actions?:
329
346
  if (backend) {
330
347
  actions.collectionDataChanged = s => derive(backend.apply(s, backend.controller.getState()));
331
348
  actions.load = (_s, arg) => {
332
- stashCopy(arg); syncSaved(); applyNavigationCriteria(arg, _s);
333
- const reset = backend.onLoad?.(arg);
334
- if (reset) { setCriteria(reset); persisted.write(prefs); }
335
- // A load of what the screen already shows is the screen coming back: it revalidates behind its rows.
336
- return backend.controller.query(criteria(), backend.restorePagesOnLoad, true).then(() => undefined);
349
+ stashCopy(arg);
350
+ return afterSavingRefresh(() => {
351
+ syncSaved(); applyNavigationCriteria(arg, _s);
352
+ const reset = backend.onLoad?.(arg);
353
+ if (reset) { setCriteria(reset); persisted.write(prefs); }
354
+ // A load of what the screen already shows is the screen coming back: it revalidates behind its rows.
355
+ return backend.controller.query(criteria(), backend.restorePagesOnLoad, true).then(() => undefined);
356
+ });
337
357
  };
338
358
  actions.refresh = (_s, arg) => {
339
- stashCopy(arg); syncSaved();
340
- return backend.controller.query(criteria()).then(() => undefined);
359
+ stashCopy(arg);
360
+ return afterSavingRefresh(() => { syncSaved(); return backend.controller.query(criteria()).then(() => undefined); });
341
361
  };
342
362
  actions.loadMore = () => backend.controller.loadMore().then(() => undefined);
343
363
  actions.retry = actions.collectionRetry = () => backend.controller.retry().then(() => undefined);