@wix/himalaya-cli 0.1039.0 → 0.1041.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 (202) hide show
  1. package/dist/cli.mjs +31 -19
  2. package/dist/preview-assets.generated.bin +0 -0
  3. package/package.json +2 -2
  4. package/templates/beauty-salon/dev/index.ts +42 -42
  5. package/templates/beauty-salon/tier5-src/_shared/collection-contract.ts +2 -0
  6. package/templates/beauty-salon/tier5-src/_shared/collection-service.ts +6 -1
  7. package/templates/beauty-salon-owner/config.ts +2 -2
  8. package/templates/beauty-salon-owner/dev/index.ts +794 -295
  9. package/templates/beauty-salon-owner/tier5-src/_shared/aria-chat.ts +237 -4
  10. package/templates/beauty-salon-owner/tier5-src/_shared/collection-contract.ts +2 -0
  11. package/templates/beauty-salon-owner/tier5-src/_shared/collection-service.ts +6 -1
  12. package/templates/beauty-salon-owner/tier5-src/_shared/owner-account.ts +45 -0
  13. package/templates/beauty-salon-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  14. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  15. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-aria/index.ts +28 -0
  16. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  17. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-drawer/index.ts +34 -48
  18. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-drawer/logic.ts +102 -0
  19. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  20. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  21. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
  22. package/templates/branded-lite/dev/index.ts +175 -175
  23. package/templates/branded-lite/tier5-src/_shared/collection-contract.ts +2 -0
  24. package/templates/branded-lite/tier5-src/_shared/collection-service.ts +6 -1
  25. package/templates/community-club/dev/index.ts +28 -28
  26. package/templates/community-club/tier5-src/_shared/collection-contract.ts +2 -0
  27. package/templates/community-club/tier5-src/_shared/collection-service.ts +6 -1
  28. package/templates/community-club-owner/config.ts +2 -2
  29. package/templates/community-club-owner/dev/index.ts +794 -295
  30. package/templates/community-club-owner/tier5-src/_shared/aria-chat.ts +237 -4
  31. package/templates/community-club-owner/tier5-src/_shared/collection-contract.ts +2 -0
  32. package/templates/community-club-owner/tier5-src/_shared/collection-service.ts +6 -1
  33. package/templates/community-club-owner/tier5-src/_shared/owner-account.ts +45 -0
  34. package/templates/community-club-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  35. package/templates/community-club-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  36. package/templates/community-club-owner/tier5-src/himi-owner-lite-aria/index.ts +28 -0
  37. package/templates/community-club-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  38. package/templates/community-club-owner/tier5-src/himi-owner-lite-drawer/index.ts +34 -48
  39. package/templates/community-club-owner/tier5-src/himi-owner-lite-drawer/logic.ts +102 -0
  40. package/templates/community-club-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  41. package/templates/community-club-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  42. package/templates/community-club-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  43. package/templates/events-meetups/dev/index.ts +21 -21
  44. package/templates/events-meetups/tier5-src/_shared/collection-contract.ts +2 -0
  45. package/templates/events-meetups/tier5-src/_shared/collection-service.ts +6 -1
  46. package/templates/events-meetups-owner/config.ts +2 -2
  47. package/templates/events-meetups-owner/dev/index.ts +766 -243
  48. package/templates/events-meetups-owner/tier5-src/_shared/aria-chat.ts +237 -4
  49. package/templates/events-meetups-owner/tier5-src/_shared/collection-contract.ts +2 -0
  50. package/templates/events-meetups-owner/tier5-src/_shared/collection-service.ts +6 -1
  51. package/templates/events-meetups-owner/tier5-src/_shared/owner-account.ts +45 -0
  52. package/templates/events-meetups-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  53. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  54. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-aria/index.ts +28 -0
  55. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  56. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-drawer/index.ts +34 -48
  57. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-drawer/logic.ts +102 -0
  58. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  59. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  60. package/templates/gym-fitness/dev/index.ts +49 -49
  61. package/templates/gym-fitness/tier5-src/_shared/collection-contract.ts +2 -0
  62. package/templates/gym-fitness/tier5-src/_shared/collection-service.ts +6 -1
  63. package/templates/gym-fitness-owner/config.ts +2 -2
  64. package/templates/gym-fitness-owner/dev/index.ts +801 -320
  65. package/templates/gym-fitness-owner/tier5-src/_shared/aria-chat.ts +237 -4
  66. package/templates/gym-fitness-owner/tier5-src/_shared/collection-contract.ts +2 -0
  67. package/templates/gym-fitness-owner/tier5-src/_shared/collection-service.ts +6 -1
  68. package/templates/gym-fitness-owner/tier5-src/_shared/owner-account.ts +45 -0
  69. package/templates/gym-fitness-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  70. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  71. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-aria/index.ts +28 -0
  72. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  73. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-drawer/index.ts +34 -48
  74. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-drawer/logic.ts +102 -0
  75. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  76. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  77. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  78. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
  79. package/templates/nonprofit-cause/dev/index.ts +28 -28
  80. package/templates/nonprofit-cause/tier5-src/_shared/collection-contract.ts +2 -0
  81. package/templates/nonprofit-cause/tier5-src/_shared/collection-service.ts +6 -1
  82. package/templates/nonprofit-cause-owner/config.ts +2 -2
  83. package/templates/nonprofit-cause-owner/dev/index.ts +773 -268
  84. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-chat.ts +237 -4
  85. package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-contract.ts +2 -0
  86. package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-service.ts +6 -1
  87. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-account.ts +45 -0
  88. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  89. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  90. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-aria/index.ts +28 -0
  91. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  92. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-drawer/index.ts +34 -48
  93. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-drawer/logic.ts +102 -0
  94. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  95. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  96. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
  97. package/templates/owner-lite/config.ts +2 -2
  98. package/templates/owner-lite/dev/index.ts +802 -322
  99. package/templates/owner-lite/tier5-src/_shared/aria-chat.ts +237 -4
  100. package/templates/owner-lite/tier5-src/_shared/collection-contract.ts +2 -0
  101. package/templates/owner-lite/tier5-src/_shared/collection-service.ts +6 -1
  102. package/templates/owner-lite/tier5-src/_shared/owner-account.ts +45 -0
  103. package/templates/owner-lite/tier5-src/_shared/owner-preview-demo.ts +21 -0
  104. package/templates/owner-lite/tier5-src/himi-owner-lite-account/index.ts +68 -0
  105. package/templates/owner-lite/tier5-src/himi-owner-lite-aria/index.ts +28 -0
  106. package/templates/owner-lite/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  107. package/templates/owner-lite/tier5-src/himi-owner-lite-drawer/index.ts +34 -48
  108. package/templates/owner-lite/tier5-src/himi-owner-lite-drawer/logic.ts +102 -0
  109. package/templates/owner-lite/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  110. package/templates/owner-lite/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  111. package/templates/owner-lite/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  112. package/templates/owner-lite/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
  113. package/templates/podcast-creator/dev/index.ts +28 -28
  114. package/templates/podcast-creator/tier5-src/_shared/collection-contract.ts +2 -0
  115. package/templates/podcast-creator/tier5-src/_shared/collection-service.ts +6 -1
  116. package/templates/podcast-creator-owner/config.ts +2 -2
  117. package/templates/podcast-creator-owner/dev/index.ts +794 -295
  118. package/templates/podcast-creator-owner/tier5-src/_shared/aria-chat.ts +237 -4
  119. package/templates/podcast-creator-owner/tier5-src/_shared/collection-contract.ts +2 -0
  120. package/templates/podcast-creator-owner/tier5-src/_shared/collection-service.ts +6 -1
  121. package/templates/podcast-creator-owner/tier5-src/_shared/owner-account.ts +45 -0
  122. package/templates/podcast-creator-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  123. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  124. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-aria/index.ts +28 -0
  125. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  126. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-drawer/index.ts +34 -48
  127. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-drawer/logic.ts +102 -0
  128. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  129. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  130. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  131. package/templates/portfolio-creative/dev/index.ts +35 -35
  132. package/templates/portfolio-creative/tier5-src/_shared/collection-contract.ts +2 -0
  133. package/templates/portfolio-creative/tier5-src/_shared/collection-service.ts +6 -1
  134. package/templates/portfolio-creative-owner/config.ts +2 -2
  135. package/templates/portfolio-creative-owner/dev/index.ts +794 -295
  136. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-chat.ts +237 -4
  137. package/templates/portfolio-creative-owner/tier5-src/_shared/collection-contract.ts +2 -0
  138. package/templates/portfolio-creative-owner/tier5-src/_shared/collection-service.ts +6 -1
  139. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-account.ts +45 -0
  140. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  141. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  142. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-aria/index.ts +28 -0
  143. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  144. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-drawer/index.ts +34 -48
  145. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-drawer/logic.ts +102 -0
  146. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  147. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  148. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
  149. package/templates/restaurant/dev/index.ts +21 -21
  150. package/templates/restaurant/tier5-src/_shared/collection-contract.ts +2 -0
  151. package/templates/restaurant/tier5-src/_shared/collection-service.ts +6 -1
  152. package/templates/restaurant-owner/config.ts +2 -2
  153. package/templates/restaurant-owner/dev/index.ts +801 -320
  154. package/templates/restaurant-owner/tier5-src/_shared/aria-chat.ts +237 -4
  155. package/templates/restaurant-owner/tier5-src/_shared/collection-contract.ts +2 -0
  156. package/templates/restaurant-owner/tier5-src/_shared/collection-service.ts +6 -1
  157. package/templates/restaurant-owner/tier5-src/_shared/owner-account.ts +45 -0
  158. package/templates/restaurant-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  159. package/templates/restaurant-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  160. package/templates/restaurant-owner/tier5-src/himi-owner-lite-aria/index.ts +28 -0
  161. package/templates/restaurant-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  162. package/templates/restaurant-owner/tier5-src/himi-owner-lite-drawer/index.ts +34 -48
  163. package/templates/restaurant-owner/tier5-src/himi-owner-lite-drawer/logic.ts +102 -0
  164. package/templates/restaurant-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  165. package/templates/restaurant-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  166. package/templates/restaurant-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  167. package/templates/restaurant-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
  168. package/templates/retail-store/dev/index.ts +21 -21
  169. package/templates/retail-store/tier5-src/_shared/collection-contract.ts +2 -0
  170. package/templates/retail-store/tier5-src/_shared/collection-service.ts +6 -1
  171. package/templates/retail-store-owner/config.ts +2 -2
  172. package/templates/retail-store-owner/dev/index.ts +787 -270
  173. package/templates/retail-store-owner/tier5-src/_shared/aria-chat.ts +237 -4
  174. package/templates/retail-store-owner/tier5-src/_shared/collection-contract.ts +2 -0
  175. package/templates/retail-store-owner/tier5-src/_shared/collection-service.ts +6 -1
  176. package/templates/retail-store-owner/tier5-src/_shared/owner-account.ts +45 -0
  177. package/templates/retail-store-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  178. package/templates/retail-store-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  179. package/templates/retail-store-owner/tier5-src/himi-owner-lite-aria/index.ts +28 -0
  180. package/templates/retail-store-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  181. package/templates/retail-store-owner/tier5-src/himi-owner-lite-drawer/index.ts +34 -48
  182. package/templates/retail-store-owner/tier5-src/himi-owner-lite-drawer/logic.ts +102 -0
  183. package/templates/retail-store-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  184. package/templates/retail-store-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  185. package/templates/yoga-studio/dev/index.ts +42 -42
  186. package/templates/yoga-studio/tier5-src/_shared/collection-contract.ts +2 -0
  187. package/templates/yoga-studio/tier5-src/_shared/collection-service.ts +6 -1
  188. package/templates/yoga-studio-owner/config.ts +2 -2
  189. package/templates/yoga-studio-owner/dev/index.ts +773 -268
  190. package/templates/yoga-studio-owner/tier5-src/_shared/aria-chat.ts +237 -4
  191. package/templates/yoga-studio-owner/tier5-src/_shared/collection-contract.ts +2 -0
  192. package/templates/yoga-studio-owner/tier5-src/_shared/collection-service.ts +6 -1
  193. package/templates/yoga-studio-owner/tier5-src/_shared/owner-account.ts +45 -0
  194. package/templates/yoga-studio-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  195. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  196. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-aria/index.ts +28 -0
  197. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  198. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-drawer/index.ts +34 -48
  199. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-drawer/logic.ts +102 -0
  200. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  201. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  202. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
@@ -123,7 +123,12 @@ export function decorateCollection(name: string, def: { state: State; actions?:
123
123
  pendingFilter = '';
124
124
  }
125
125
  const projected = projectCollection(rows, config, prefs, !!backend && config.backendQuery === true, known);
126
- projected.items.forEach(row => { row.collectionSelectLabel = row.collectionSelected ? copyParam('collection.selected', 'Selected') : copyParam('collection.select', 'Select'); });
126
+ projected.items.forEach(row => {
127
+ row.collectionSelectLabel = row.collectionSelected ? copyParam('collection.selected', 'Selected') : copyParam('collection.select', 'Select');
128
+ // the save toggle names the action it WILL take for this row. The
129
+ // old static "Save / unsave" made the owner work out the row's state.
130
+ row.collectionSaveLabel = row.collectionSaved ? copyParam('collection.unsave', 'Remove from saved') : copyParam('collection.save', 'Save');
131
+ });
127
132
  if (previewId && !rows.some(row => collectionId(row) === previewId)) previewId = '';
128
133
  const filterChoices = [{ id: 'all', label: copyParam('collection.all', 'All') }, { id: 'saved', label: copyParam('collection.saved', 'Saved') },
129
134
  ...projected.filters.map(label => ({ id: `value:${label}`, label: copyParam(`collection.filter.${label}`, label) }))];
@@ -37,7 +37,7 @@ export default defineApp({
37
37
  actions: "http://localhost:8190/v1/actions",
38
38
  sync: "http://localhost:8190/v1/sync",
39
39
  },
40
- capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","camera","presigned_upload"],
40
+ capabilities: ["live_activity","push","share","secure_storage","open_url","local_database","clipboard","ui","speech","camera","presigned_upload","app_info"],
41
41
  designTokensPath: "./tokens.json",
42
42
  navigation: {
43
43
  "navKind": "responsive",
@@ -527,7 +527,7 @@ export default defineApp({
527
527
  "actions": [
528
528
  {
529
529
  "id": "himi_owner_lite.topbar_ask",
530
- "icon": "search",
530
+ "icon": "ai",
531
531
  "accessibilityLabel": "Ask about the programme",
532
532
  "onTap": {
533
533
  "actionId": "himi.open",