@wix/himalaya-cli 0.1588.0 → 0.1590.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 (220) hide show
  1. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/sdk-types/src/capabilities.generated.d.ts +2 -1
  2. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/torch/src/index.d.ts +39 -0
  3. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/webview-page/src/capabilities.generated.d.ts +2 -0
  4. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +13 -2
  5. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/groups/src/extensions.d.ts +28 -0
  6. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +9 -5
  7. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/audio-record.mjs +1 -0
  8. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calendar.mjs +1 -0
  9. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/calls.mjs +1 -0
  10. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/contacts.mjs +1 -0
  11. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/location.mjs +1 -0
  12. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/motion.mjs +1 -0
  13. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/photos.mjs +1 -0
  14. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdk-types.mjs +1 -0
  15. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/tasks.mjs +1 -0
  16. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/torch.mjs +78 -0
  17. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-groups.mjs +14 -0
  18. package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-members.mjs +9 -8
  19. package/dist/authoring-runtime/node_modules/@wix/himalaya/package.json +4 -0
  20. package/dist/cli.mjs +121 -50
  21. package/dist/preview-assets.generated.bin +0 -0
  22. package/fixtures/wix-canned.json +16 -0
  23. package/guides/app-config.md +1 -1
  24. package/guides/importable-sdks.md +1 -0
  25. package/guides/one-app-to-himi-app.md +18 -4
  26. package/guides/qa-builds.md +12 -0
  27. package/guides/sdk-reference.json +101 -2
  28. package/guides/web-page-sdk-reference.md +1 -0
  29. package/package.json +2 -2
  30. package/templates/beauty-salon/tier5-src/_shared/app-locale.ts +61 -0
  31. package/templates/beauty-salon/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  32. package/templates/beauty-salon/tier5-src/_shared/engine-intl.ts +5 -3
  33. package/templates/beauty-salon/tier5-src/_shared/group-member-count.ts +15 -0
  34. package/templates/beauty-salon/tier5-src/_shared/himi-bookings.ts +54 -13
  35. package/templates/beauty-salon/tier5-src/_shared/himi-copy.ts +10 -2
  36. package/templates/beauty-salon/tier5-src/_shared/himi-restaurants.ts +2 -2
  37. package/templates/beauty-salon/tier5-src/_shared/restaurant-ordering.ts +1 -1
  38. package/templates/beauty-salon/tier5-src/_shared/wix-service-price.ts +2 -2
  39. package/templates/beauty-salon/tier5-src/himi-booking-services/index.ts +8 -3
  40. package/templates/beauty-salon/tier5-src/himi-branded-lite-cart/index.ts +1 -1
  41. package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +2 -1
  42. package/templates/beauty-salon/tier5-src/himi-branded-lite-plans/index.ts +1 -1
  43. package/templates/beauty-salon-owner/tier5-src/_shared/app-locale.ts +61 -0
  44. package/templates/beauty-salon-owner/tier5-src/_shared/engine-intl.ts +5 -3
  45. package/templates/beauty-salon-owner/tier5-src/_shared/himi-copy.ts +10 -2
  46. package/templates/branded-lite/config.ts +7 -0
  47. package/templates/branded-lite/dev/index.ts +469 -0
  48. package/templates/branded-lite/himalaya.content.json +3 -0
  49. package/templates/branded-lite/tier5-src/_shared/app-locale.ts +61 -0
  50. package/templates/branded-lite/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  51. package/templates/branded-lite/tier5-src/_shared/engine-intl.ts +5 -3
  52. package/templates/branded-lite/tier5-src/_shared/group-member-count.ts +15 -0
  53. package/templates/branded-lite/tier5-src/_shared/himi-bookings.ts +54 -13
  54. package/templates/branded-lite/tier5-src/_shared/himi-copy.ts +10 -2
  55. package/templates/branded-lite/tier5-src/_shared/himi-restaurants.ts +2 -2
  56. package/templates/branded-lite/tier5-src/_shared/restaurant-ordering.ts +1 -1
  57. package/templates/branded-lite/tier5-src/_shared/wix-service-price.ts +2 -2
  58. package/templates/branded-lite/tier5-src/himi-booking-services/index.ts +8 -3
  59. package/templates/branded-lite/tier5-src/himi-branded-lite-cart/index.ts +1 -1
  60. package/templates/branded-lite/tier5-src/himi-branded-lite-group/index.ts +9 -3
  61. package/templates/branded-lite/tier5-src/himi-branded-lite-group-about/index.ts +2 -1
  62. package/templates/branded-lite/tier5-src/himi-branded-lite-groups/index.ts +6 -2
  63. package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +2 -1
  64. package/templates/branded-lite/tier5-src/himi-branded-lite-loyalty/index.ts +3 -2
  65. package/templates/branded-lite/tier5-src/himi-branded-lite-my-groups/index.ts +237 -0
  66. package/templates/branded-lite/tier5-src/himi-branded-lite-plans/index.ts +1 -1
  67. package/templates/branded-lite/tier5-src/himi-branded-lite-program/index.ts +1 -1
  68. package/templates/branded-lite/tier5-src/himi-events-detail/index.ts +5 -5
  69. package/templates/branded-lite/tier5-src/wix-spaces-member-detail/index.ts +5 -1
  70. package/templates/brandy/tier5-src/_shared/app-locale.ts +61 -0
  71. package/templates/brandy/tier5-src/_shared/himi-copy.ts +10 -2
  72. package/templates/community-club/config.ts +7 -0
  73. package/templates/community-club/dev/index.ts +469 -0
  74. package/templates/community-club/himalaya.content.json +3 -0
  75. package/templates/community-club/tier5-src/_shared/app-locale.ts +61 -0
  76. package/templates/community-club/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  77. package/templates/community-club/tier5-src/_shared/engine-intl.ts +5 -3
  78. package/templates/community-club/tier5-src/_shared/group-member-count.ts +15 -0
  79. package/templates/community-club/tier5-src/_shared/himi-copy.ts +10 -2
  80. package/templates/community-club/tier5-src/_shared/himi-restaurants.ts +2 -2
  81. package/templates/community-club/tier5-src/_shared/wix-service-price.ts +2 -2
  82. package/templates/community-club/tier5-src/himi-branded-lite-group/index.ts +9 -3
  83. package/templates/community-club/tier5-src/himi-branded-lite-group-about/index.ts +2 -1
  84. package/templates/community-club/tier5-src/himi-branded-lite-groups/index.ts +6 -2
  85. package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +2 -1
  86. package/templates/community-club/tier5-src/himi-branded-lite-my-groups/index.ts +237 -0
  87. package/templates/community-club/tier5-src/himi-events-detail/index.ts +5 -5
  88. package/templates/community-club-owner/tier5-src/_shared/app-locale.ts +61 -0
  89. package/templates/community-club-owner/tier5-src/_shared/engine-intl.ts +5 -3
  90. package/templates/community-club-owner/tier5-src/_shared/himi-copy.ts +10 -2
  91. package/templates/events-meetups/config.ts +7 -0
  92. package/templates/events-meetups/dev/index.ts +469 -0
  93. package/templates/events-meetups/himalaya.content.json +3 -0
  94. package/templates/events-meetups/tier5-src/_shared/app-locale.ts +61 -0
  95. package/templates/events-meetups/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  96. package/templates/events-meetups/tier5-src/_shared/engine-intl.ts +5 -3
  97. package/templates/events-meetups/tier5-src/_shared/group-member-count.ts +15 -0
  98. package/templates/events-meetups/tier5-src/_shared/himi-copy.ts +10 -2
  99. package/templates/events-meetups/tier5-src/_shared/himi-restaurants.ts +2 -2
  100. package/templates/events-meetups/tier5-src/_shared/wix-service-price.ts +2 -2
  101. package/templates/events-meetups/tier5-src/himi-branded-lite-group/index.ts +9 -3
  102. package/templates/events-meetups/tier5-src/himi-branded-lite-group-about/index.ts +2 -1
  103. package/templates/events-meetups/tier5-src/himi-branded-lite-groups/index.ts +6 -2
  104. package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +2 -1
  105. package/templates/events-meetups/tier5-src/himi-branded-lite-my-groups/index.ts +237 -0
  106. package/templates/events-meetups/tier5-src/himi-events-detail/index.ts +5 -5
  107. package/templates/events-meetups-owner/tier5-src/_shared/app-locale.ts +61 -0
  108. package/templates/events-meetups-owner/tier5-src/_shared/engine-intl.ts +5 -3
  109. package/templates/events-meetups-owner/tier5-src/_shared/himi-copy.ts +10 -2
  110. package/templates/gym-fitness/tier5-src/_shared/app-locale.ts +61 -0
  111. package/templates/gym-fitness/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  112. package/templates/gym-fitness/tier5-src/_shared/engine-intl.ts +5 -3
  113. package/templates/gym-fitness/tier5-src/_shared/group-member-count.ts +15 -0
  114. package/templates/gym-fitness/tier5-src/_shared/himi-bookings.ts +54 -13
  115. package/templates/gym-fitness/tier5-src/_shared/himi-copy.ts +10 -2
  116. package/templates/gym-fitness/tier5-src/_shared/himi-restaurants.ts +2 -2
  117. package/templates/gym-fitness/tier5-src/_shared/restaurant-ordering.ts +1 -1
  118. package/templates/gym-fitness/tier5-src/_shared/wix-service-price.ts +2 -2
  119. package/templates/gym-fitness/tier5-src/himi-booking-services/index.ts +8 -3
  120. package/templates/gym-fitness/tier5-src/himi-branded-lite-cart/index.ts +1 -1
  121. package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +2 -1
  122. package/templates/gym-fitness/tier5-src/himi-branded-lite-plans/index.ts +1 -1
  123. package/templates/gym-fitness/tier5-src/himi-events-detail/index.ts +5 -5
  124. package/templates/gym-fitness-owner/tier5-src/_shared/app-locale.ts +61 -0
  125. package/templates/gym-fitness-owner/tier5-src/_shared/engine-intl.ts +5 -3
  126. package/templates/gym-fitness-owner/tier5-src/_shared/himi-copy.ts +10 -2
  127. package/templates/himi-chat/tier5-src/_shared/app-locale.ts +61 -0
  128. package/templates/himi-chat/tier5-src/_shared/himi-copy.ts +10 -2
  129. package/templates/nonprofit-cause/config.ts +7 -0
  130. package/templates/nonprofit-cause/dev/index.ts +469 -0
  131. package/templates/nonprofit-cause/himalaya.content.json +3 -0
  132. package/templates/nonprofit-cause/tier5-src/_shared/app-locale.ts +61 -0
  133. package/templates/nonprofit-cause/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  134. package/templates/nonprofit-cause/tier5-src/_shared/engine-intl.ts +5 -3
  135. package/templates/nonprofit-cause/tier5-src/_shared/group-member-count.ts +15 -0
  136. package/templates/nonprofit-cause/tier5-src/_shared/himi-copy.ts +10 -2
  137. package/templates/nonprofit-cause/tier5-src/_shared/himi-restaurants.ts +2 -2
  138. package/templates/nonprofit-cause/tier5-src/_shared/wix-service-price.ts +2 -2
  139. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-group/index.ts +9 -3
  140. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-group-about/index.ts +2 -1
  141. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-groups/index.ts +6 -2
  142. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +2 -1
  143. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-my-groups/index.ts +237 -0
  144. package/templates/nonprofit-cause/tier5-src/himi-branded-lite-plans/index.ts +1 -1
  145. package/templates/nonprofit-cause/tier5-src/himi-events-detail/index.ts +5 -5
  146. package/templates/nonprofit-cause-owner/tier5-src/_shared/app-locale.ts +61 -0
  147. package/templates/nonprofit-cause-owner/tier5-src/_shared/engine-intl.ts +5 -3
  148. package/templates/nonprofit-cause-owner/tier5-src/_shared/himi-copy.ts +10 -2
  149. package/templates/owner-lite/tier5-src/_shared/app-locale.ts +61 -0
  150. package/templates/owner-lite/tier5-src/_shared/engine-intl.ts +5 -3
  151. package/templates/owner-lite/tier5-src/_shared/himi-copy.ts +10 -2
  152. package/templates/podcast-creator/tier5-src/_shared/app-locale.ts +61 -0
  153. package/templates/podcast-creator/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  154. package/templates/podcast-creator/tier5-src/_shared/engine-intl.ts +5 -3
  155. package/templates/podcast-creator/tier5-src/_shared/group-member-count.ts +15 -0
  156. package/templates/podcast-creator/tier5-src/_shared/himi-copy.ts +10 -2
  157. package/templates/podcast-creator/tier5-src/_shared/himi-restaurants.ts +2 -2
  158. package/templates/podcast-creator/tier5-src/_shared/wix-service-price.ts +2 -2
  159. package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +2 -1
  160. package/templates/podcast-creator/tier5-src/himi-branded-lite-plans/index.ts +1 -1
  161. package/templates/podcast-creator/tier5-src/himi-events-detail/index.ts +5 -5
  162. package/templates/podcast-creator-owner/tier5-src/_shared/app-locale.ts +61 -0
  163. package/templates/podcast-creator-owner/tier5-src/_shared/engine-intl.ts +5 -3
  164. package/templates/podcast-creator-owner/tier5-src/_shared/himi-copy.ts +10 -2
  165. package/templates/portfolio-creative/tier5-src/_shared/app-locale.ts +61 -0
  166. package/templates/portfolio-creative/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  167. package/templates/portfolio-creative/tier5-src/_shared/engine-intl.ts +5 -3
  168. package/templates/portfolio-creative/tier5-src/_shared/group-member-count.ts +15 -0
  169. package/templates/portfolio-creative/tier5-src/_shared/himi-copy.ts +10 -2
  170. package/templates/portfolio-creative/tier5-src/_shared/himi-restaurants.ts +2 -2
  171. package/templates/portfolio-creative/tier5-src/_shared/restaurant-ordering.ts +1 -1
  172. package/templates/portfolio-creative/tier5-src/_shared/wix-service-price.ts +2 -2
  173. package/templates/portfolio-creative/tier5-src/himi-branded-lite-cart/index.ts +1 -1
  174. package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +2 -1
  175. package/templates/portfolio-creative/tier5-src/himi-events-detail/index.ts +5 -5
  176. package/templates/portfolio-creative-owner/tier5-src/_shared/app-locale.ts +61 -0
  177. package/templates/portfolio-creative-owner/tier5-src/_shared/engine-intl.ts +5 -3
  178. package/templates/portfolio-creative-owner/tier5-src/_shared/himi-copy.ts +10 -2
  179. package/templates/restaurant/tier5-src/_shared/app-locale.ts +61 -0
  180. package/templates/restaurant/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  181. package/templates/restaurant/tier5-src/_shared/engine-intl.ts +5 -3
  182. package/templates/restaurant/tier5-src/_shared/group-member-count.ts +15 -0
  183. package/templates/restaurant/tier5-src/_shared/himi-copy.ts +10 -2
  184. package/templates/restaurant/tier5-src/_shared/himi-restaurants.ts +2 -2
  185. package/templates/restaurant/tier5-src/_shared/restaurant-ordering.ts +1 -1
  186. package/templates/restaurant/tier5-src/_shared/wix-service-price.ts +2 -2
  187. package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +2 -1
  188. package/templates/restaurant/tier5-src/himi-events-detail/index.ts +5 -5
  189. package/templates/restaurant-owner/tier5-src/_shared/app-locale.ts +61 -0
  190. package/templates/restaurant-owner/tier5-src/_shared/engine-intl.ts +5 -3
  191. package/templates/restaurant-owner/tier5-src/_shared/himi-copy.ts +10 -2
  192. package/templates/retail-store/tier5-src/_shared/app-locale.ts +61 -0
  193. package/templates/retail-store/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  194. package/templates/retail-store/tier5-src/_shared/engine-intl.ts +5 -3
  195. package/templates/retail-store/tier5-src/_shared/group-member-count.ts +15 -0
  196. package/templates/retail-store/tier5-src/_shared/himi-copy.ts +10 -2
  197. package/templates/retail-store/tier5-src/_shared/himi-restaurants.ts +2 -2
  198. package/templates/retail-store/tier5-src/_shared/restaurant-ordering.ts +1 -1
  199. package/templates/retail-store/tier5-src/_shared/wix-service-price.ts +2 -2
  200. package/templates/retail-store/tier5-src/himi-branded-lite-cart/index.ts +1 -1
  201. package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +2 -1
  202. package/templates/retail-store-owner/tier5-src/_shared/app-locale.ts +61 -0
  203. package/templates/retail-store-owner/tier5-src/_shared/engine-intl.ts +5 -3
  204. package/templates/retail-store-owner/tier5-src/_shared/himi-copy.ts +10 -2
  205. package/templates/yoga-studio/tier5-src/_shared/app-locale.ts +61 -0
  206. package/templates/yoga-studio/tier5-src/_shared/branded-lite-hosted.ts +1 -0
  207. package/templates/yoga-studio/tier5-src/_shared/engine-intl.ts +5 -3
  208. package/templates/yoga-studio/tier5-src/_shared/group-member-count.ts +15 -0
  209. package/templates/yoga-studio/tier5-src/_shared/himi-bookings.ts +54 -13
  210. package/templates/yoga-studio/tier5-src/_shared/himi-copy.ts +10 -2
  211. package/templates/yoga-studio/tier5-src/_shared/himi-restaurants.ts +2 -2
  212. package/templates/yoga-studio/tier5-src/_shared/wix-service-price.ts +2 -2
  213. package/templates/yoga-studio/tier5-src/himi-booking-services/index.ts +8 -3
  214. package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +2 -1
  215. package/templates/yoga-studio/tier5-src/himi-branded-lite-plans/index.ts +1 -1
  216. package/templates/yoga-studio/tier5-src/himi-branded-lite-program/index.ts +1 -1
  217. package/templates/yoga-studio/tier5-src/himi-events-detail/index.ts +5 -5
  218. package/templates/yoga-studio-owner/tier5-src/_shared/app-locale.ts +61 -0
  219. package/templates/yoga-studio-owner/tier5-src/_shared/engine-intl.ts +5 -3
  220. package/templates/yoga-studio-owner/tier5-src/_shared/himi-copy.ts +10 -2
@@ -15847,6 +15847,25 @@ const SCREENS = runtimeSetting({
15847
15847
  }
15848
15848
  }
15849
15849
  },
15850
+ {
15851
+ "id": "himi_groups.my_groups",
15852
+ "body": {
15853
+ "package": "himalaya",
15854
+ "type": "Button",
15855
+ "props": {
15856
+ "title": "See my groups",
15857
+ "style": "secondary",
15858
+ "fullWidth": true,
15859
+ "leadingIcon": "person",
15860
+ "action": {
15861
+ "actionId": "himi.open",
15862
+ "params": {
15863
+ "screenId": "himi_my_groups"
15864
+ }
15865
+ }
15866
+ }
15867
+ }
15868
+ },
15850
15869
  {
15851
15870
  "id": "himi_groups.search",
15852
15871
  "body": {
@@ -18895,6 +18914,456 @@ const SCREENS = runtimeSetting({
18895
18914
  "bundleVersion": "0.0.1"
18896
18915
  }
18897
18916
  },
18917
+ "himi_my_groups": {
18918
+ "screenId": "himi_my_groups",
18919
+ "renderer": "sdui_intent",
18920
+ "title": "",
18921
+ "schemaVersion": 1,
18922
+ "cacheControl": {
18923
+ "maxAge": 0,
18924
+ "staleWhileRevalidate": 0
18925
+ },
18926
+ "payload": {
18927
+ "id": "himi_my_groups.root",
18928
+ "body": {
18929
+ "package": "himalaya",
18930
+ "type": "VStack",
18931
+ "props": {
18932
+ "spacing": 16,
18933
+ "alignment": "leading",
18934
+ "children": [
18935
+ {
18936
+ "id": "himi_my_groups.title",
18937
+ "body": {
18938
+ "package": "himalaya",
18939
+ "type": "Text",
18940
+ "props": {
18941
+ "text": "My groups",
18942
+ "style": "title1"
18943
+ }
18944
+ }
18945
+ },
18946
+ {
18947
+ "id": "himi_my_groups.loading",
18948
+ "body": {
18949
+ "package": "himalaya",
18950
+ "type": "Skeleton",
18951
+ "props": {
18952
+ "height": 160,
18953
+ "cornerRadius": 8,
18954
+ "count": 2
18955
+ }
18956
+ },
18957
+ "modifiers": {
18958
+ "hiddenPath": "$service:himiBrandedMyGroups.notLoading"
18959
+ }
18960
+ },
18961
+ {
18962
+ "id": "himi_my_groups.error",
18963
+ "body": {
18964
+ "package": "himalaya",
18965
+ "type": "VStack",
18966
+ "props": {
18967
+ "spacing": 8,
18968
+ "alignment": "leading",
18969
+ "children": [
18970
+ {
18971
+ "id": "",
18972
+ "body": {
18973
+ "package": "himalaya",
18974
+ "type": "Text",
18975
+ "props": {
18976
+ "text": "Your groups are temporarily unavailable.",
18977
+ "style": "bodyEmphasis"
18978
+ }
18979
+ }
18980
+ },
18981
+ {
18982
+ "id": "",
18983
+ "body": {
18984
+ "package": "himalaya",
18985
+ "type": "Text",
18986
+ "props": {
18987
+ "text": "$service:himiBrandedMyGroups.errorText",
18988
+ "style": "footnote",
18989
+ "color": "textSecondary",
18990
+ "collapseWhenEmpty": true
18991
+ }
18992
+ }
18993
+ },
18994
+ {
18995
+ "id": "himi_my_groups.retry",
18996
+ "body": {
18997
+ "package": "himalaya",
18998
+ "type": "Button",
18999
+ "props": {
19000
+ "title": "Try again",
19001
+ "style": "secondary",
19002
+ "action": {
19003
+ "actionId": "tier5.himiBrandedMyGroups.load"
19004
+ }
19005
+ }
19006
+ }
19007
+ }
19008
+ ]
19009
+ }
19010
+ },
19011
+ "modifiers": {
19012
+ "background": {
19013
+ "token": "surfaceElevated"
19014
+ },
19015
+ "border": {
19016
+ "width": 1,
19017
+ "color": {
19018
+ "token": "border"
19019
+ }
19020
+ },
19021
+ "cornerRadius": 4,
19022
+ "padding": {
19023
+ "leading": 16,
19024
+ "trailing": 16,
19025
+ "top": 16,
19026
+ "bottom": 16
19027
+ },
19028
+ "hiddenPath": "$service:himiBrandedMyGroups.notErrored"
19029
+ }
19030
+ },
19031
+ {
19032
+ "id": "himi_my_groups.partial",
19033
+ "body": {
19034
+ "package": "himalaya",
19035
+ "type": "Text",
19036
+ "props": {
19037
+ "text": "$service:himiBrandedMyGroups.partialText",
19038
+ "style": "footnote",
19039
+ "color": "textSecondary",
19040
+ "collapseWhenEmpty": true
19041
+ }
19042
+ },
19043
+ "modifiers": {
19044
+ "hiddenPath": "$service:himiBrandedMyGroups.noPartial"
19045
+ }
19046
+ },
19047
+ {
19048
+ "id": "himi_my_groups.rows",
19049
+ "body": {
19050
+ "package": "himalaya",
19051
+ "type": "Grid",
19052
+ "props": {
19053
+ "columns": 1,
19054
+ "spacing": 10,
19055
+ "itemsPath": "$service:himiBrandedMyGroups.rows",
19056
+ "items": [
19057
+ {
19058
+ "id": "himi_my_groups.row",
19059
+ "body": {
19060
+ "package": "himalaya",
19061
+ "type": "VStack",
19062
+ "props": {
19063
+ "spacing": 9,
19064
+ "alignment": "leading",
19065
+ "children": [
19066
+ {
19067
+ "id": "",
19068
+ "body": {
19069
+ "package": "himalaya",
19070
+ "type": "Image",
19071
+ "props": {
19072
+ "url": "$item.image",
19073
+ "fillWidth": true,
19074
+ "height": 120,
19075
+ "contentMode": "fill",
19076
+ "contentDescription": "$item.title"
19077
+ }
19078
+ },
19079
+ "modifiers": {
19080
+ "cornerRadius": 8,
19081
+ "fillMaxWidth": true,
19082
+ "hiddenPath": "$item.noImage"
19083
+ }
19084
+ },
19085
+ {
19086
+ "id": "himi_my_groups.row.monogram",
19087
+ "body": {
19088
+ "package": "himalaya",
19089
+ "type": "ZStack",
19090
+ "props": {
19091
+ "alignment": "center",
19092
+ "children": [
19093
+ {
19094
+ "id": "",
19095
+ "body": {
19096
+ "package": "himalaya",
19097
+ "type": "Text",
19098
+ "props": {
19099
+ "text": "$item.initial",
19100
+ "style": "display",
19101
+ "color": "textOnAccent",
19102
+ "maxLines": 1
19103
+ }
19104
+ }
19105
+ }
19106
+ ]
19107
+ }
19108
+ },
19109
+ "modifiers": {
19110
+ "fillMaxWidth": true,
19111
+ "height": 120,
19112
+ "background": {
19113
+ "token": "accentPrimary"
19114
+ },
19115
+ "cornerRadius": 8,
19116
+ "hiddenPath": "$item.hasImage"
19117
+ }
19118
+ },
19119
+ {
19120
+ "id": "",
19121
+ "body": {
19122
+ "package": "himalaya",
19123
+ "type": "Text",
19124
+ "props": {
19125
+ "text": "$item.title",
19126
+ "style": "bodyEmphasis",
19127
+ "maxLines": 2
19128
+ }
19129
+ }
19130
+ },
19131
+ {
19132
+ "id": "",
19133
+ "body": {
19134
+ "package": "himalaya",
19135
+ "type": "Text",
19136
+ "props": {
19137
+ "text": "$item.statusLabel",
19138
+ "style": "footnote",
19139
+ "color": "accentPrimary",
19140
+ "maxLines": 1,
19141
+ "collapseWhenEmpty": true
19142
+ }
19143
+ }
19144
+ },
19145
+ {
19146
+ "id": "",
19147
+ "body": {
19148
+ "package": "himalaya",
19149
+ "type": "Text",
19150
+ "props": {
19151
+ "text": "$item.meta",
19152
+ "style": "caption",
19153
+ "color": "textTertiary",
19154
+ "maxLines": 1,
19155
+ "collapseWhenEmpty": true
19156
+ }
19157
+ }
19158
+ }
19159
+ ]
19160
+ }
19161
+ },
19162
+ "modifiers": {
19163
+ "background": {
19164
+ "token": "surfaceElevated"
19165
+ },
19166
+ "border": {
19167
+ "width": 1,
19168
+ "color": {
19169
+ "token": "border"
19170
+ }
19171
+ },
19172
+ "cornerRadius": 8,
19173
+ "padding": {
19174
+ "leading": 12,
19175
+ "trailing": 12,
19176
+ "top": 12,
19177
+ "bottom": 12
19178
+ },
19179
+ "onTap": {
19180
+ "actionId": "himi.open",
19181
+ "params": {
19182
+ "screenId": "$item.detailScreenId",
19183
+ "id": "$item.id"
19184
+ }
19185
+ },
19186
+ "pressFeedback": "scale",
19187
+ "haptic": "light",
19188
+ "accessibilityLabel": "$item.title"
19189
+ }
19190
+ }
19191
+ ]
19192
+ }
19193
+ },
19194
+ "modifiers": {
19195
+ "hiddenPath": "$service:himiBrandedMyGroups.noRows"
19196
+ }
19197
+ },
19198
+ {
19199
+ "id": "himi_my_groups.empty",
19200
+ "body": {
19201
+ "package": "himalaya",
19202
+ "type": "VStack",
19203
+ "props": {
19204
+ "spacing": 8,
19205
+ "alignment": "leading",
19206
+ "children": [
19207
+ {
19208
+ "id": "",
19209
+ "body": {
19210
+ "package": "himalaya",
19211
+ "type": "Text",
19212
+ "props": {
19213
+ "text": "$service:himiBrandedMyGroups.emptyText",
19214
+ "style": "body",
19215
+ "color": "textSecondary",
19216
+ "collapseWhenEmpty": true
19217
+ }
19218
+ }
19219
+ }
19220
+ ]
19221
+ }
19222
+ },
19223
+ "modifiers": {
19224
+ "background": {
19225
+ "token": "surfaceElevated"
19226
+ },
19227
+ "border": {
19228
+ "width": 1,
19229
+ "color": {
19230
+ "token": "border"
19231
+ }
19232
+ },
19233
+ "cornerRadius": 4,
19234
+ "padding": {
19235
+ "leading": 16,
19236
+ "trailing": 16,
19237
+ "top": 16,
19238
+ "bottom": 16
19239
+ },
19240
+ "fillMaxWidth": true,
19241
+ "hiddenPath": "$service:himiBrandedMyGroups.noEmpty"
19242
+ }
19243
+ },
19244
+ {
19245
+ "id": "himi_my_groups.member_gate",
19246
+ "body": {
19247
+ "package": "himalaya",
19248
+ "type": "VStack",
19249
+ "props": {
19250
+ "spacing": 10,
19251
+ "alignment": "center",
19252
+ "children": [
19253
+ {
19254
+ "id": "",
19255
+ "body": {
19256
+ "package": "himalaya",
19257
+ "type": "Icon",
19258
+ "props": {
19259
+ "name": "person",
19260
+ "size": 28,
19261
+ "tint": "accentPrimary"
19262
+ }
19263
+ },
19264
+ "modifiers": {
19265
+ "accessibilityRole": "decorative"
19266
+ }
19267
+ },
19268
+ {
19269
+ "id": "himi_my_groups.member_gate_title",
19270
+ "body": {
19271
+ "package": "himalaya",
19272
+ "type": "Text",
19273
+ "props": {
19274
+ "text": "Sign in to see your groups",
19275
+ "style": "bodyEmphasis"
19276
+ }
19277
+ }
19278
+ },
19279
+ {
19280
+ "id": "",
19281
+ "body": {
19282
+ "package": "himalaya",
19283
+ "type": "Text",
19284
+ "props": {
19285
+ "text": "The groups you belong to show up here once you sign in.",
19286
+ "style": "footnote",
19287
+ "color": "textSecondary"
19288
+ }
19289
+ }
19290
+ },
19291
+ {
19292
+ "id": "himi_my_groups.member_gate_signin",
19293
+ "body": {
19294
+ "package": "himalaya",
19295
+ "type": "Button",
19296
+ "props": {
19297
+ "title": "Sign in",
19298
+ "style": "primary",
19299
+ "fullWidth": true,
19300
+ "action": {
19301
+ "actionId": "himi.open",
19302
+ "params": {
19303
+ "screenId": "himi_sign_in",
19304
+ "mode": "signin",
19305
+ "intent": "groups",
19306
+ "returnScreenId": "himi_my_groups",
19307
+ "modal": "1"
19308
+ },
19309
+ "presentation": "sheet"
19310
+ }
19311
+ }
19312
+ }
19313
+ }
19314
+ ]
19315
+ }
19316
+ },
19317
+ "modifiers": {
19318
+ "background": {
19319
+ "token": "surfaceElevated"
19320
+ },
19321
+ "border": {
19322
+ "width": 1,
19323
+ "color": {
19324
+ "token": "border"
19325
+ }
19326
+ },
19327
+ "cornerRadius": 16,
19328
+ "padding": {
19329
+ "leading": 16,
19330
+ "trailing": 16,
19331
+ "top": 20,
19332
+ "bottom": 20
19333
+ },
19334
+ "fillMaxWidth": true,
19335
+ "hiddenPath": "$service:himiBrandedMyGroups.noSignIn"
19336
+ }
19337
+ }
19338
+ ]
19339
+ }
19340
+ },
19341
+ "modifiers": {
19342
+ "background": {
19343
+ "token": "surfacePrimary"
19344
+ },
19345
+ "padding": {
19346
+ "leading": 16,
19347
+ "trailing": 16,
19348
+ "top": 18,
19349
+ "bottom": 28
19350
+ },
19351
+ "onAppear": {
19352
+ "actionId": "tier5.himiBrandedMyGroups.load"
19353
+ }
19354
+ }
19355
+ },
19356
+ "logicBundle": {
19357
+ "url": "http://localhost:8190/v1/bundles/himi-branded-lite-my-groups?integrity=",
19358
+ "integrity": "",
19359
+ "contentType": "application/javascript+ts-bundle",
19360
+ "declaredCapabilities": [
19361
+ "wix_api"
19362
+ ],
19363
+ "minBinaryVersion": "0.1.0",
19364
+ "bundleVersion": "0.0.1"
19365
+ }
19366
+ },
18898
19367
  "himi_cms": {
18899
19368
  "screenId": "himi_cms",
18900
19369
  "renderer": "sdui_intent",
@@ -64,6 +64,9 @@
64
64
  "himi_my_events": {
65
65
  "displayName": "My Events"
66
66
  },
67
+ "himi_my_groups": {
68
+ "displayName": "My Groups"
69
+ },
67
70
  "himi_notif_settings": {
68
71
  "displayName": "Notif Settings"
69
72
  },
@@ -0,0 +1,61 @@
1
+ // The language a worker formats numbers, money and plurals in, and the business's time zone. A worker has no host locale to read,
2
+ // so the screen's `onAppear` hands it over: `appear()` adds `locale` to the load params when the app
3
+ // pins its language, and `stashCopy` stores it here. Absent, every formatter stays on "en" — the
4
+ // house pattern every English app was approved with — so an unpinned app is unchanged.
5
+ //
6
+ // The business time zone comes the same way, from the app's provisioning (`businessTimeZone`, collected
7
+ // at migration time while the site's properties are readable): a worker cannot read it itself, because
8
+ // the site-properties route is owner-scoped. Absent, it is "" and no worker guesses one.
9
+ //
10
+ // Pure, no host globals: bundled into every worker that formats, copied into generated templates.
11
+
12
+ const TAG = /^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$/;
13
+ let tag = "en";
14
+
15
+ /** Set from a load argument's `locale`; anything that is not a language tag resets to "en". */
16
+ export function setAppLocale(value: unknown): void {
17
+ tag = typeof value === "string" && TAG.test(value) ? value : "en";
18
+ }
19
+
20
+ export function appLocale(): string {
21
+ return tag;
22
+ }
23
+
24
+ /** An IANA zone such as "Asia/Jerusalem" (or "UTC") that this engine knows. A bare offset, a lowercase
25
+ * alias or an engine without ECMA-402 is not one: a zone is never guessed. */
26
+ export function isIanaTimeZone(value: unknown): value is string {
27
+ if (typeof value !== "string" || !/^(?:UTC|[A-Za-z]+(?:\/[A-Za-z0-9_+-]+)+)$/.test(value)) return false;
28
+ // An engine without ECMA-402 has no zone database: nothing it holds is a zone it knows.
29
+ if (typeof Intl === "object" && typeof Intl.DateTimeFormat === "function") {
30
+ try {
31
+ new Intl.DateTimeFormat("en-US", { timeZone: value });
32
+ return true;
33
+ } catch {
34
+ return false;
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ let zone = "";
41
+
42
+ /** Set from a load argument's `businessTimeZone`; anything that is not an IANA zone clears it. */
43
+ export function setBusinessTimeZone(value: unknown): void {
44
+ zone = isIanaTimeZone(value) ? value : "";
45
+ }
46
+
47
+ /** The business's IANA zone, or "" when the app has none provisioned. */
48
+ export function businessTimeZone(): string {
49
+ return zone;
50
+ }
51
+
52
+ /** Does `count` take the singular form in the app language? CLDR plural rules, so French "0 point"
53
+ * and "1,5 point" are singular and Hebrew "2" is not. An engine without PluralRules keeps the
54
+ * English rule (exactly one). */
55
+ export function isSingular(count: number, locale = appLocale()): boolean {
56
+ try {
57
+ // An engine without ECMA-402 has no `Intl` at all: it keeps the English rule.
58
+ if (typeof Intl === "object" && typeof Intl.PluralRules === "function") return new Intl.PluralRules(locale).select(count) === "one";
59
+ } catch { /* malformed tag — use the English rule */ }
60
+ return count === 1;
61
+ }
@@ -98,6 +98,7 @@ export const HOSTED_SCREEN_VERTICALS: Readonly<Record<string, readonly BrandedLi
98
98
  himi_gift_cards: ["giftCards"],
99
99
  himi_groups: ["groups"],
100
100
  himi_group_about: ["groups"],
101
+ himi_my_groups: ["groups"],
101
102
  himi_invoice: ["invoices"],
102
103
  himi_invoices: ["invoices"],
103
104
  himi_loyalty: ["loyalty"],
@@ -20,6 +20,8 @@
20
20
  // These helpers are the sanctioned way to format across the whole fleet: real ECMA-402 where it
21
21
  // exists, a deterministic en-US-shaped fallback where it does not, and never a throw.
22
22
 
23
+ import { appLocale } from "./app-locale.js";
24
+
23
25
  /** Is ECMA-402 actually present in THIS engine? Cheap, and safe in a realm without `Intl`. */
24
26
  export function hasIntl(): boolean {
25
27
  return typeof Intl !== "undefined";
@@ -189,7 +191,7 @@ const CURRENCY_DIGITS: Record<string, number> = {
189
191
  export function formatCurrency(
190
192
  amount: number,
191
193
  currency = "USD",
192
- locale = "en",
194
+ locale = appLocale(),
193
195
  /** Omit for the currency's natural digits. Pass 0 to render a whole amount as "$25" rather
194
196
  * than "$25.00" — Intl clamps the minimum down to match, so max<min does not throw here. */
195
197
  maximumFractionDigits?: number,
@@ -258,7 +260,7 @@ function groupThousands(fixed: string): string {
258
260
  * inserted commas into the exponent — `1e21` came out as "1e,+21" and `1e-7` as "1,e-7".
259
261
  * Garbage, and silently so, because nothing in the corpus's tidy test numbers reached it.
260
262
  */
261
- export function formatNumber(value: number, locale = "en"): string {
263
+ export function formatNumber(value: number, locale = appLocale()): string {
262
264
  if (!Number.isFinite(value)) return "";
263
265
  if (hasIntl()) return new Intl.NumberFormat(locale).format(value);
264
266
  // `toFixed` itself returns exponential notation at >=1e21, so anything that big keeps the
@@ -409,7 +411,7 @@ export function compareDateDesc(a: string, b: string): number {
409
411
  // Customers read that as sloppiness, and a whole "₪70" beside "₪69.50" reads as a different
410
412
  // kind of number. So: one money pattern, one clock, one range.
411
413
 
412
- // Money uses `formatCurrency(amount, currency, "en")` — the currency's NATURAL decimals
414
+ // Money uses `formatCurrency(amount, currency)` — English unless the app pins another language, see app-locale — the currency's NATURAL decimals
413
415
  // ("₪70.00", "¥500") — for Shop, Menu and every other price. The one exception is a Bookings
414
416
  // SERVICE price (`_shared/wix-service-price.ts`): it drops the cents of a whole amount ("₪70",
415
417
  // "₪69.50"), the format the redesigned service screen and services list were approved with. It
@@ -0,0 +1,15 @@
1
+ import { copyPlural } from "./himi-copy.js";
2
+
3
+ /** "840 members" / "1 member" for a group, through the copy pack so a translated app reads its own
4
+ * language. One key for every worker that shows the count: a screen that renders it must list the
5
+ * `groups.` prefix in its `appear()` so the pack carries the key. */
6
+ export function groupMemberCount(count: number): string {
7
+ return copyPlural("groups.memberCount", "{n, plural, one {# member} other {# members}}", count);
8
+ }
9
+
10
+ /** The label for a group read back from the offline cache. A cached row keeps the raw `count`, never
11
+ * the formatted label, so a pinned app reads it in its own language. A row written before that (label
12
+ * only) has no count and shows none, instead of a label in the wrong language. */
13
+ export function cachedMemberCount(count: unknown): string {
14
+ return typeof count === "number" && Number.isFinite(count) ? groupMemberCount(count) : "";
15
+ }
@@ -12,10 +12,12 @@
12
12
  // and every read returns `fallback` verbatim — routing a worker string through
13
13
  // copyParam is byte-for-byte behavior-preserving.
14
14
  //
15
- // Pure + Hermes-safe (no host globals, no Node APIs, no imports): bundled into
15
+ // Pure + Hermes-safe (no host globals, no Node APIs; its only import is the pure `app-locale` sibling): bundled into
16
16
  // every worker that emits user-facing copy, and copied verbatim into the
17
17
  // generated templates' tier5-src/_shared/.
18
18
 
19
+ import { isSingular, setAppLocale, setBusinessTimeZone } from "./app-locale.js";
20
+
19
21
  /** Customer strings override every read; translated stock is valid only for its
20
22
  * original English fallback. Some existing keys serve more than one message. */
21
23
  export type CopyPackValue = string | { source: string; translation: string };
@@ -29,6 +31,12 @@ let copyReceived = false;
29
31
  * stock fallbacks keep rendering. */
30
32
  export function stashCopy(arg: unknown): void {
31
33
  if (!arg || typeof arg !== "object") return;
34
+ // A param-carrying dispatch names the app language and business zone too (absent: the English house
35
+ // pattern, and no zone).
36
+ if ("copy" in arg || "locale" in arg || "businessTimeZone" in arg) {
37
+ setAppLocale((arg as Record<string, unknown>).locale);
38
+ setBusinessTimeZone((arg as Record<string, unknown>).businessTimeZone);
39
+ }
32
40
  const raw = (arg as Record<string, unknown>).copy;
33
41
  if (typeof raw !== "string" || !raw) return;
34
42
  try {
@@ -77,5 +85,5 @@ export function copyPlural(key: string, fallback: string, count: number): string
77
85
  const pattern = copyParam(key, fallback);
78
86
  const match = /^\{n, plural, one \{([^{}]*)\} other \{([^{}]*)\}\}$/.exec(pattern);
79
87
  if (!match) return copyTemplate(key, fallback, { n: count });
80
- return (count === 1 ? match[1] : match[2])!.replace(/#/g, String(count));
88
+ return (isSingular(count) ? match[1] : match[2])!.replace(/#/g, String(count));
81
89
  }
@@ -104,7 +104,7 @@ export function itemPriceLine(item: WixItem): string {
104
104
  const currency = typeof info?.currency === "string" ? info.currency : "";
105
105
  if (!currency) return `${price}`;
106
106
  try {
107
- return formatCurrency(Number(price), currency, "en");
107
+ return formatCurrency(Number(price), currency);
108
108
  } catch {
109
109
  return `${price}`;
110
110
  }
@@ -153,7 +153,7 @@ export function itemPriceVariants(item: WixItem): Array<{ id: string; variantId:
153
153
  let priceLine = `${price}`;
154
154
  if (currency) {
155
155
  try {
156
- priceLine = formatCurrency(Number(price), currency, "en");
156
+ priceLine = formatCurrency(Number(price), currency);
157
157
  } catch { /* keep the bare amount */ }
158
158
  }
159
159
  const formatted = typeof node.priceInfo?.formattedPrice === "string" ? node.priceInfo.formattedPrice.trim() : "";