@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.
- package/dist/cli.mjs +1 -0
- package/package.json +2 -2
- package/templates/beauty-salon-owner/config.ts +1 -1
- package/templates/beauty-salon-owner/dev/index.ts +3075 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/aria-chat.ts +466 -9
- package/templates/beauty-salon-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
- package/templates/community-club-owner/config.ts +1 -1
- package/templates/community-club-owner/dev/index.ts +3075 -0
- package/templates/community-club-owner/tier5-src/_shared/aria-chat.ts +466 -9
- package/templates/community-club-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
- package/templates/community-club-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
- package/templates/community-club-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
- package/templates/community-club-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
- package/templates/events-meetups-owner/config.ts +1 -1
- package/templates/events-meetups-owner/dev/index.ts +3075 -0
- package/templates/events-meetups-owner/tier5-src/_shared/aria-chat.ts +466 -9
- package/templates/events-meetups-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
- package/templates/events-meetups-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
- package/templates/events-meetups-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
- package/templates/events-meetups-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
- package/templates/gym-fitness-owner/config.ts +1 -1
- package/templates/gym-fitness-owner/dev/index.ts +3075 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/aria-chat.ts +466 -9
- package/templates/gym-fitness-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
- package/templates/nonprofit-cause-owner/config.ts +1 -1
- package/templates/nonprofit-cause-owner/dev/index.ts +3075 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-chat.ts +466 -9
- package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
- package/templates/owner-lite/config.ts +1 -1
- package/templates/owner-lite/dev/index.ts +3075 -0
- package/templates/owner-lite/tier5-src/_shared/aria-chat.ts +466 -9
- package/templates/owner-lite/tier5-src/_shared/aria-generic-widget.ts +251 -0
- package/templates/owner-lite/tier5-src/_shared/aria-widget-kinds.ts +332 -0
- package/templates/owner-lite/tier5-src/_shared/aria-widget-model.ts +331 -0
- package/templates/owner-lite/tier5-src/_shared/aria-widget-view.ts +722 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-aria/index.ts +29 -0
- package/templates/podcast-creator-owner/config.ts +1 -1
- package/templates/podcast-creator-owner/dev/index.ts +3075 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/aria-chat.ts +466 -9
- package/templates/podcast-creator-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
- package/templates/portfolio-creative-owner/config.ts +1 -1
- package/templates/portfolio-creative-owner/dev/index.ts +3075 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/aria-chat.ts +466 -9
- package/templates/portfolio-creative-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
- package/templates/restaurant-owner/config.ts +1 -1
- package/templates/restaurant-owner/dev/index.ts +3075 -0
- package/templates/restaurant-owner/tier5-src/_shared/aria-chat.ts +466 -9
- package/templates/restaurant-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
- package/templates/restaurant-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
- package/templates/restaurant-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
- package/templates/restaurant-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
- package/templates/retail-store-owner/config.ts +1 -1
- package/templates/retail-store-owner/dev/index.ts +3075 -0
- package/templates/retail-store-owner/tier5-src/_shared/aria-chat.ts +466 -9
- package/templates/retail-store-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
- package/templates/retail-store-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
- package/templates/retail-store-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
- package/templates/retail-store-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-aria/index.ts +29 -0
- package/templates/yoga-studio-owner/config.ts +1 -1
- package/templates/yoga-studio-owner/dev/index.ts +3075 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/aria-chat.ts +466 -9
- package/templates/yoga-studio-owner/tier5-src/_shared/aria-generic-widget.ts +251 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/aria-widget-kinds.ts +332 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/aria-widget-model.ts +331 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/aria-widget-view.ts +722 -0
- 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
|
|
|
@@ -798,5 +798,5 @@ export default defineApp({
|
|
|
798
798
|
// Screens allowed to build their layout from the worker at runtime. A screen that
|
|
799
799
|
// does so and is NOT listed here fails closed, and `himi validate --strict`
|
|
800
800
|
// reports it — so add the screen id here when you add such a screen.
|
|
801
|
-
workerSubtreeScreens: ["himi_owner_lite_ask","himi_owner_lite_brief","a2ui_ask_*"],
|
|
801
|
+
workerSubtreeScreens: ["himi_owner_lite_ask","himi_owner_lite_brief","himi_owner_lite_aria","a2ui_ask_*"],
|
|
802
802
|
});
|