@wix/himalaya-cli 0.960.0 → 0.962.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 (90) hide show
  1. package/dist/cli.mjs +1 -0
  2. package/package.json +2 -2
  3. package/templates/beauty-salon-owner/config.ts +1 -1
  4. package/templates/beauty-salon-owner/dev/index.ts +3075 -0
  5. package/templates/beauty-salon-owner/tier5-src/_shared/aria-chat.ts +466 -9
  6. package/templates/beauty-salon-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
  7. package/templates/beauty-salon-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
  8. package/templates/beauty-salon-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
  9. package/templates/beauty-salon-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
  10. package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  11. package/templates/community-club-owner/config.ts +1 -1
  12. package/templates/community-club-owner/dev/index.ts +3075 -0
  13. package/templates/community-club-owner/tier5-src/_shared/aria-chat.ts +466 -9
  14. package/templates/community-club-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
  15. package/templates/community-club-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
  16. package/templates/community-club-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
  17. package/templates/community-club-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
  18. package/templates/community-club-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  19. package/templates/events-meetups-owner/config.ts +1 -1
  20. package/templates/events-meetups-owner/dev/index.ts +3075 -0
  21. package/templates/events-meetups-owner/tier5-src/_shared/aria-chat.ts +466 -9
  22. package/templates/events-meetups-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
  23. package/templates/events-meetups-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
  24. package/templates/events-meetups-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
  25. package/templates/events-meetups-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
  26. package/templates/events-meetups-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  27. package/templates/gym-fitness-owner/config.ts +1 -1
  28. package/templates/gym-fitness-owner/dev/index.ts +3075 -0
  29. package/templates/gym-fitness-owner/tier5-src/_shared/aria-chat.ts +466 -9
  30. package/templates/gym-fitness-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
  31. package/templates/gym-fitness-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
  32. package/templates/gym-fitness-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
  33. package/templates/gym-fitness-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
  34. package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  35. package/templates/nonprofit-cause-owner/config.ts +1 -1
  36. package/templates/nonprofit-cause-owner/dev/index.ts +3075 -0
  37. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-chat.ts +466 -9
  38. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
  39. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
  40. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
  41. package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
  42. package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  43. package/templates/owner-lite/config.ts +1 -1
  44. package/templates/owner-lite/dev/index.ts +3075 -0
  45. package/templates/owner-lite/tier5-src/_shared/aria-chat.ts +466 -9
  46. package/templates/owner-lite/tier5-src/_shared/aria-generic-widget.ts +251 -0
  47. package/templates/owner-lite/tier5-src/_shared/aria-widget-kinds.ts +332 -0
  48. package/templates/owner-lite/tier5-src/_shared/aria-widget-model.ts +331 -0
  49. package/templates/owner-lite/tier5-src/_shared/aria-widget-view.ts +722 -0
  50. package/templates/owner-lite/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  51. package/templates/podcast-creator-owner/config.ts +1 -1
  52. package/templates/podcast-creator-owner/dev/index.ts +3075 -0
  53. package/templates/podcast-creator-owner/tier5-src/_shared/aria-chat.ts +466 -9
  54. package/templates/podcast-creator-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
  55. package/templates/podcast-creator-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
  56. package/templates/podcast-creator-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
  57. package/templates/podcast-creator-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
  58. package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  59. package/templates/portfolio-creative-owner/config.ts +1 -1
  60. package/templates/portfolio-creative-owner/dev/index.ts +3075 -0
  61. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-chat.ts +466 -9
  62. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
  63. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
  64. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
  65. package/templates/portfolio-creative-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
  66. package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  67. package/templates/restaurant-owner/config.ts +1 -1
  68. package/templates/restaurant-owner/dev/index.ts +3075 -0
  69. package/templates/restaurant-owner/tier5-src/_shared/aria-chat.ts +466 -9
  70. package/templates/restaurant-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
  71. package/templates/restaurant-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
  72. package/templates/restaurant-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
  73. package/templates/restaurant-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
  74. package/templates/restaurant-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  75. package/templates/retail-store-owner/config.ts +1 -1
  76. package/templates/retail-store-owner/dev/index.ts +3075 -0
  77. package/templates/retail-store-owner/tier5-src/_shared/aria-chat.ts +466 -9
  78. package/templates/retail-store-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
  79. package/templates/retail-store-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
  80. package/templates/retail-store-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
  81. package/templates/retail-store-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
  82. package/templates/retail-store-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
  83. package/templates/yoga-studio-owner/config.ts +1 -1
  84. package/templates/yoga-studio-owner/dev/index.ts +3075 -0
  85. package/templates/yoga-studio-owner/tier5-src/_shared/aria-chat.ts +466 -9
  86. package/templates/yoga-studio-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
  87. package/templates/yoga-studio-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
  88. package/templates/yoga-studio-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
  89. package/templates/yoga-studio-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
  90. package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
@@ -30,6 +30,7 @@ import {
30
30
  type AriaChatState,
31
31
  type AriaPromptChip,
32
32
  } from "../_shared/aria-chat.js";
33
+ import { WIDGET_SUBTREE_SLOT } from "../_shared/aria-generic-widget.js";
33
34
  import { copyParam, stashCopy } from "../_shared/himi-copy.js";
34
35
  import { OWNER_MODULES, ownerModuleIds, ownerModuleScreen } from "../_shared/owner-modules.js";
35
36
 
@@ -131,6 +132,11 @@ export function screenForUrl(url: string, allowed: Set<string>): string {
131
132
  }
132
133
 
133
134
  const core = createAriaChat({
135
+ // Mount the generic card for an unrecognised widget kind. This screen is
136
+ // listed in `workerSubtreeScreens`; a screen that is not would have the node
137
+ // rejected by the descriptor validator, so omitting this is the correct
138
+ // behaviour there and the card degrades to prose.
139
+ subtree: { slotId: WIDGET_SUBTREE_SLOT, service: SERVICE },
134
140
  greeting: () => copyParam(
135
141
  "ownerAria.greeting",
136
142
  "Hi, I'm Aria, your business and web design expert.\nI'm here to help you complete tasks, answer questions, create content and guide you to useful features.",
@@ -185,6 +191,14 @@ const svc = defineService<AriaChatState, {
185
191
  // new chat) holds a pre-boundary snapshot, and committing it would end the
186
192
  // turn the owner has since started.
187
193
  stop: (s: AriaChatState) => Promise<AriaChatState | undefined>;
194
+ widgetPrimary: (s: AriaChatState) => Promise<AriaChatState>;
195
+ widgetSecondary: (s: AriaChatState) => Promise<AriaChatState>;
196
+ widgetToggle: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
197
+ widgetSelectOne: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
198
+ widgetRespond: (s: AriaChatState, arg?: AriaActionArg) => Promise<AriaChatState>;
199
+ widgetPick: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
200
+ widgetQuery: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
201
+ widgetAnswer: (s: AriaChatState, arg?: AriaActionArg) => AriaChatState;
188
202
  }>(SERVICE, {
189
203
  state: core.initialState,
190
204
  actions: {
@@ -204,6 +218,21 @@ const svc = defineService<AriaChatState, {
204
218
  // false — so this is only ever dispatched while a reply is outstanding and
205
219
  // the worker is holding the handle that can abort it.
206
220
  stop: core.stop,
221
+ // The active widget's footer buttons. Named here as well as in the core:
222
+ // the descriptor dispatches `tier5.<service>.<action>`, and an action the
223
+ // entry does not export is a control that renders and does nothing.
224
+ widgetPrimary: core.widgetPrimary,
225
+ widgetSecondary: core.widgetSecondary,
226
+ // The picker family. Named here as well as in the core for the reason
227
+ // #2605 learned the hard way: the descriptor dispatches
228
+ // `tier5.<service>.<action>`, and an action the entry does not export is a
229
+ // control that renders and does nothing.
230
+ widgetToggle: core.widgetToggle,
231
+ widgetSelectOne: core.widgetSelectOne,
232
+ widgetRespond: core.widgetRespond,
233
+ widgetPick: core.widgetPick,
234
+ widgetQuery: core.widgetQuery,
235
+ widgetAnswer: core.widgetAnswer,
207
236
  },
208
237
  });
209
238
 
@@ -699,5 +699,5 @@ export default defineApp({
699
699
  // Screens allowed to build their layout from the worker at runtime. A screen that
700
700
  // does so and is NOT listed here fails closed, and `himi validate --strict`
701
701
  // reports it — so add the screen id here when you add such a screen.
702
- workerSubtreeScreens: ["himi_owner_lite_ask","himi_owner_lite_brief","a2ui_ask_*"],
702
+ workerSubtreeScreens: ["himi_owner_lite_ask","himi_owner_lite_brief","himi_owner_lite_aria","a2ui_ask_*"],
703
703
  });