@wix/himalaya-cli 0.1040.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 (158) hide show
  1. package/dist/cli.mjs +31 -17
  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 +287 -260
  9. package/templates/beauty-salon-owner/tier5-src/_shared/collection-contract.ts +2 -0
  10. package/templates/beauty-salon-owner/tier5-src/_shared/collection-service.ts +6 -1
  11. package/templates/beauty-salon-owner/tier5-src/_shared/owner-account.ts +45 -0
  12. package/templates/beauty-salon-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  13. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  14. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  15. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  16. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  17. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
  18. package/templates/branded-lite/dev/index.ts +175 -175
  19. package/templates/branded-lite/tier5-src/_shared/collection-contract.ts +2 -0
  20. package/templates/branded-lite/tier5-src/_shared/collection-service.ts +6 -1
  21. package/templates/community-club/dev/index.ts +28 -28
  22. package/templates/community-club/tier5-src/_shared/collection-contract.ts +2 -0
  23. package/templates/community-club/tier5-src/_shared/collection-service.ts +6 -1
  24. package/templates/community-club-owner/config.ts +2 -2
  25. package/templates/community-club-owner/dev/index.ts +287 -260
  26. package/templates/community-club-owner/tier5-src/_shared/collection-contract.ts +2 -0
  27. package/templates/community-club-owner/tier5-src/_shared/collection-service.ts +6 -1
  28. package/templates/community-club-owner/tier5-src/_shared/owner-account.ts +45 -0
  29. package/templates/community-club-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  30. package/templates/community-club-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  31. package/templates/community-club-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  32. package/templates/community-club-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  33. package/templates/community-club-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  34. package/templates/community-club-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  35. package/templates/events-meetups/dev/index.ts +21 -21
  36. package/templates/events-meetups/tier5-src/_shared/collection-contract.ts +2 -0
  37. package/templates/events-meetups/tier5-src/_shared/collection-service.ts +6 -1
  38. package/templates/events-meetups-owner/config.ts +2 -2
  39. package/templates/events-meetups-owner/dev/index.ts +259 -208
  40. package/templates/events-meetups-owner/tier5-src/_shared/collection-contract.ts +2 -0
  41. package/templates/events-meetups-owner/tier5-src/_shared/collection-service.ts +6 -1
  42. package/templates/events-meetups-owner/tier5-src/_shared/owner-account.ts +45 -0
  43. package/templates/events-meetups-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  44. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  45. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  46. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  47. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  48. package/templates/gym-fitness/dev/index.ts +49 -49
  49. package/templates/gym-fitness/tier5-src/_shared/collection-contract.ts +2 -0
  50. package/templates/gym-fitness/tier5-src/_shared/collection-service.ts +6 -1
  51. package/templates/gym-fitness-owner/config.ts +2 -2
  52. package/templates/gym-fitness-owner/dev/index.ts +294 -285
  53. package/templates/gym-fitness-owner/tier5-src/_shared/collection-contract.ts +2 -0
  54. package/templates/gym-fitness-owner/tier5-src/_shared/collection-service.ts +6 -1
  55. package/templates/gym-fitness-owner/tier5-src/_shared/owner-account.ts +45 -0
  56. package/templates/gym-fitness-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  57. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  58. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  59. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  60. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  61. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  62. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
  63. package/templates/nonprofit-cause/dev/index.ts +28 -28
  64. package/templates/nonprofit-cause/tier5-src/_shared/collection-contract.ts +2 -0
  65. package/templates/nonprofit-cause/tier5-src/_shared/collection-service.ts +6 -1
  66. package/templates/nonprofit-cause-owner/config.ts +2 -2
  67. package/templates/nonprofit-cause-owner/dev/index.ts +266 -233
  68. package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-contract.ts +2 -0
  69. package/templates/nonprofit-cause-owner/tier5-src/_shared/collection-service.ts +6 -1
  70. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-account.ts +45 -0
  71. package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  72. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  73. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  74. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  75. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  76. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
  77. package/templates/owner-lite/config.ts +2 -2
  78. package/templates/owner-lite/dev/index.ts +295 -287
  79. package/templates/owner-lite/tier5-src/_shared/collection-contract.ts +2 -0
  80. package/templates/owner-lite/tier5-src/_shared/collection-service.ts +6 -1
  81. package/templates/owner-lite/tier5-src/_shared/owner-account.ts +45 -0
  82. package/templates/owner-lite/tier5-src/_shared/owner-preview-demo.ts +21 -0
  83. package/templates/owner-lite/tier5-src/himi-owner-lite-account/index.ts +68 -0
  84. package/templates/owner-lite/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  85. package/templates/owner-lite/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  86. package/templates/owner-lite/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  87. package/templates/owner-lite/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  88. package/templates/owner-lite/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
  89. package/templates/podcast-creator/dev/index.ts +28 -28
  90. package/templates/podcast-creator/tier5-src/_shared/collection-contract.ts +2 -0
  91. package/templates/podcast-creator/tier5-src/_shared/collection-service.ts +6 -1
  92. package/templates/podcast-creator-owner/config.ts +2 -2
  93. package/templates/podcast-creator-owner/dev/index.ts +287 -260
  94. package/templates/podcast-creator-owner/tier5-src/_shared/collection-contract.ts +2 -0
  95. package/templates/podcast-creator-owner/tier5-src/_shared/collection-service.ts +6 -1
  96. package/templates/podcast-creator-owner/tier5-src/_shared/owner-account.ts +45 -0
  97. package/templates/podcast-creator-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  98. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  99. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  100. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  101. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  102. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  103. package/templates/portfolio-creative/dev/index.ts +35 -35
  104. package/templates/portfolio-creative/tier5-src/_shared/collection-contract.ts +2 -0
  105. package/templates/portfolio-creative/tier5-src/_shared/collection-service.ts +6 -1
  106. package/templates/portfolio-creative-owner/config.ts +2 -2
  107. package/templates/portfolio-creative-owner/dev/index.ts +287 -260
  108. package/templates/portfolio-creative-owner/tier5-src/_shared/collection-contract.ts +2 -0
  109. package/templates/portfolio-creative-owner/tier5-src/_shared/collection-service.ts +6 -1
  110. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-account.ts +45 -0
  111. package/templates/portfolio-creative-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  112. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  113. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  114. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  115. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  116. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
  117. package/templates/restaurant/dev/index.ts +21 -21
  118. package/templates/restaurant/tier5-src/_shared/collection-contract.ts +2 -0
  119. package/templates/restaurant/tier5-src/_shared/collection-service.ts +6 -1
  120. package/templates/restaurant-owner/config.ts +2 -2
  121. package/templates/restaurant-owner/dev/index.ts +294 -285
  122. package/templates/restaurant-owner/tier5-src/_shared/collection-contract.ts +2 -0
  123. package/templates/restaurant-owner/tier5-src/_shared/collection-service.ts +6 -1
  124. package/templates/restaurant-owner/tier5-src/_shared/owner-account.ts +45 -0
  125. package/templates/restaurant-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  126. package/templates/restaurant-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  127. package/templates/restaurant-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  128. package/templates/restaurant-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  129. package/templates/restaurant-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  130. package/templates/restaurant-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  131. package/templates/restaurant-owner/tier5-src/himi-owner-lite-service-form/index.ts +9 -3
  132. package/templates/retail-store/dev/index.ts +21 -21
  133. package/templates/retail-store/tier5-src/_shared/collection-contract.ts +2 -0
  134. package/templates/retail-store/tier5-src/_shared/collection-service.ts +6 -1
  135. package/templates/retail-store-owner/config.ts +2 -2
  136. package/templates/retail-store-owner/dev/index.ts +280 -235
  137. package/templates/retail-store-owner/tier5-src/_shared/collection-contract.ts +2 -0
  138. package/templates/retail-store-owner/tier5-src/_shared/collection-service.ts +6 -1
  139. package/templates/retail-store-owner/tier5-src/_shared/owner-account.ts +45 -0
  140. package/templates/retail-store-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  141. package/templates/retail-store-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  142. package/templates/retail-store-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  143. package/templates/retail-store-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  144. package/templates/retail-store-owner/tier5-src/himi-owner-lite-product-form/index.ts +29 -13
  145. package/templates/yoga-studio/dev/index.ts +42 -42
  146. package/templates/yoga-studio/tier5-src/_shared/collection-contract.ts +2 -0
  147. package/templates/yoga-studio/tier5-src/_shared/collection-service.ts +6 -1
  148. package/templates/yoga-studio-owner/config.ts +2 -2
  149. package/templates/yoga-studio-owner/dev/index.ts +266 -233
  150. package/templates/yoga-studio-owner/tier5-src/_shared/collection-contract.ts +2 -0
  151. package/templates/yoga-studio-owner/tier5-src/_shared/collection-service.ts +6 -1
  152. package/templates/yoga-studio-owner/tier5-src/_shared/owner-account.ts +45 -0
  153. package/templates/yoga-studio-owner/tier5-src/_shared/owner-preview-demo.ts +21 -0
  154. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-account/index.ts +68 -0
  155. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-ask/index.ts +4 -3
  156. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-event-form/index.ts +9 -3
  157. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-post-form/index.ts +10 -4
  158. 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","speech","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",