@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
@@ -3705,7 +3705,12 @@ export interface SplashConfig {
3705
3705
  /** #4675 — how the surface leaves once the app is ready. Absent / "fade" ⇒ a short crossfade into the first
3706
3706
  * screen. "cut" ⇒ gone on the next frame, as a React Native app that hides its splash does. Unknown fades. */
3707
3707
  exitTransition?: SplashExitTransition;
3708
+ /** #6676 — the status-bar content over the splash while it shows: "light-content" (white glyphs) or
3709
+ * "dark-content", React Native's `barStyle` values. Absent / "" ⇒ the system's own. iOS and Android; the web
3710
+ * host has no status bar. */
3711
+ statusBarStyle?: SplashStatusBarStyle;
3708
3712
  }
3713
+ export type SplashStatusBarStyle = "" | "light-content" | "dark-content";
3709
3714
  export type SplashExitTransition = "" | "fade" | "cut";
3710
3715
  export type SplashReadySignal = "" | "seeded" | "first_content";
3711
3716
  export interface DeepLinkPattern {
@@ -530,3 +530,30 @@ export declare function setDeliveryMethodForCurrentCartV2(code: string, appId?:
530
530
  * no longer available). No cart yet → `{ cart: { lineItems: [] } }`, not a throw.
531
531
  * @scope visitor — the cart belongs to the session (visitor or member) that calls it. */
532
532
  export declare function estimateCurrentCartV2(): Promise<WixEstimateCartV2Response>;
533
+ export interface WixWishlistCatalogReference {
534
+ catalogItemId: string;
535
+ appId: string;
536
+ options?: Record<string, unknown> | null;
537
+ }
538
+ export interface WixWishlistItem {
539
+ catalogReference?: WixWishlistCatalogReference;
540
+ addedDate?: string;
541
+ }
542
+ export interface WixWishlist {
543
+ id?: string;
544
+ memberId?: string;
545
+ items?: WixWishlistItem[];
546
+ }
547
+ export interface WixWishlistResponse {
548
+ wishlist?: WixWishlist;
549
+ }
550
+ /** The signed-in member's default wishlist. `appId` keeps only that catalog's items.
551
+ * @scope member — a visitor is refused (403). */
552
+ export declare function getDefaultWishlist(appId?: string): Promise<WixWishlistResponse>;
553
+ /** Save one catalog item to the member's default wishlist; answers the updated wishlist.
554
+ * @scope member — a visitor is refused (403). */
555
+ export declare function addWishlistItem(catalogReference: WixWishlistCatalogReference): Promise<WixWishlistResponse>;
556
+ /** Remove one catalog item (the exact reference it was saved with) from the member's default
557
+ * wishlist; answers the updated wishlist.
558
+ * @scope member — a visitor is refused (403). */
559
+ export declare function removeWishlistItem(catalogReference: WixWishlistCatalogReference): Promise<WixWishlistResponse>;
@@ -8586,6 +8586,7 @@ var SPLASH_MAX_HOLD_MS_MAX = 8e3;
8586
8586
  var SPLASH_LAYOUTS = ["centered", "centeredStacked", "logoOnly"];
8587
8587
  var SPLASH_READY_SIGNALS = ["", "seeded", "first_content"];
8588
8588
  var SPLASH_EXIT_TRANSITIONS = ["", "fade", "cut"];
8589
+ var SPLASH_STATUS_BAR_STYLES = ["", "light-content", "dark-content"];
8589
8590
  function validateA11y(a11y) {
8590
8591
  if (!a11y || typeof a11y !== "object" || Array.isArray(a11y)) {
8591
8592
  throw new Error('defineApp: a11y must be an object like { enforce: "warn" }.');
@@ -8729,6 +8730,11 @@ function validateSplash(splash, colors, tokensPath) {
8729
8730
  `defineApp: splash.exitTransition "${splash.exitTransition}" is not one of "", "fade", "cut".`
8730
8731
  );
8731
8732
  }
8733
+ if (splash.statusBarStyle !== void 0 && !SPLASH_STATUS_BAR_STYLES.includes(splash.statusBarStyle)) {
8734
+ throw new Error(
8735
+ `defineApp: splash.statusBarStyle "${splash.statusBarStyle}" is not one of "", "light-content", "dark-content".`
8736
+ );
8737
+ }
8732
8738
  for (const [field, value, max] of [
8733
8739
  ["logoWidth", splash.logoWidth, 1024],
8734
8740
  ["minVisibleMs", splash.minVisibleMs, SPLASH_MIN_VISIBLE_MS_MAX],
@@ -237,6 +237,19 @@ async function estimateCurrentCartV2() {
237
237
  throw e;
238
238
  }
239
239
  }
240
+ function getDefaultWishlist(appId) {
241
+ return wixCall("GET", `/ecom/v1/wishlists/get-default${appId ? `?appId=${encodeURIComponent(appId)}` : ""}`);
242
+ }
243
+ function wishlistItemBody(catalogReference) {
244
+ if (!catalogReference?.catalogItemId || !catalogReference.appId) throw new Error("wishlist: catalogReference.catalogItemId and appId are required");
245
+ return { catalogReference, returnEntity: true };
246
+ }
247
+ function addWishlistItem(catalogReference) {
248
+ return wixCall("POST", "/ecom/v1/wishlists/add-item", wishlistItemBody(catalogReference));
249
+ }
250
+ function removeWishlistItem(catalogReference) {
251
+ return wixCall("POST", "/ecom/v1/wishlists/remove-item", wishlistItemBody(catalogReference));
252
+ }
240
253
 
241
254
  // ../../stdlib/wix-sdk/ecom/src/index.ts
242
255
  function wixCallHeaders(opts) {
@@ -282,6 +295,7 @@ export {
282
295
  addCouponToCurrentCart,
283
296
  addLineItemsToCurrentCartV2,
284
297
  addToCurrentCart,
298
+ addWishlistItem,
285
299
  archiveOrder,
286
300
  calculateCurrentCart,
287
301
  cancelOrder,
@@ -297,6 +311,7 @@ export {
297
311
  getCurrentCart,
298
312
  getCurrentCartV2,
299
313
  getDefaultMemberAddress,
314
+ getDefaultWishlist,
300
315
  getMemberAddress,
301
316
  getOrder,
302
317
  isEmptyCurrentCartError,
@@ -311,6 +326,7 @@ export {
311
326
  removeCouponFromCurrentCart,
312
327
  removeLineItemsFromCurrentCart,
313
328
  removeLineItemsFromCurrentCartV2,
329
+ removeWishlistItem,
314
330
  searchOrders,
315
331
  setDefaultMemberAddress,
316
332
  setDeliveryMethodForCurrentCartV2,