@wix/himalaya-cli 0.1262.0 → 0.1264.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/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/index.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-contract.d.ts +104 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments-wire.d.ts +44 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/iap/src/wix-payments.d.ts +47 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/tokens.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +26 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/iap.mjs +280 -10
- package/dist/cli.mjs +155 -38
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +2 -0
- package/guides/sdk-reference.json +135 -0
- package/package.json +2 -2
- package/templates/beauty-salon-owner/dev/index.ts +256 -87
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/community-club-owner/dev/index.ts +192 -71
- package/templates/community-club-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/events-meetups-owner/dev/index.ts +96 -47
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/gym-fitness-owner/dev/index.ts +288 -95
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/nonprofit-cause-owner/dev/index.ts +192 -71
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/owner-lite/dev/index.ts +288 -95
- package/templates/owner-lite/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/podcast-creator-owner/dev/index.ts +192 -71
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/portfolio-creative-owner/dev/index.ts +256 -87
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/restaurant-owner/dev/index.ts +288 -95
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/retail-store-owner/dev/index.ts +160 -63
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
- package/templates/yoga-studio-owner/dev/index.ts +192 -71
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-ask/index.ts +5 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-drawer/logic.ts +3 -0
|
@@ -74,6 +74,8 @@ interface AskState {
|
|
|
74
74
|
noRecents: boolean;
|
|
75
75
|
hasAnswer: boolean;
|
|
76
76
|
noAnswer: boolean;
|
|
77
|
+
/** Hide the authored answer controls when neither an answer nor recents exist. */
|
|
78
|
+
noAfterAnswer: boolean;
|
|
77
79
|
|
|
78
80
|
// --- Proposed write (Phase 6) -------------------------------------------
|
|
79
81
|
// A generated row can PROPOSE a change; it can never make one. `proposeWrite`
|
|
@@ -145,6 +147,7 @@ const initialState: AskState = {
|
|
|
145
147
|
noRecents: true,
|
|
146
148
|
hasAnswer: false,
|
|
147
149
|
noAnswer: true,
|
|
150
|
+
noAfterAnswer: true,
|
|
148
151
|
proposalVerb: "",
|
|
149
152
|
proposalEntity: "",
|
|
150
153
|
proposalId: "",
|
|
@@ -436,6 +439,7 @@ async function runTurn(state: AskState, rawIntent: string, options: TurnOptions
|
|
|
436
439
|
savedScreenId: options.remember ? savedScreenId(intent) : state.savedScreenId,
|
|
437
440
|
hasAnswer: true,
|
|
438
441
|
noAnswer: false,
|
|
442
|
+
noAfterAnswer: false,
|
|
439
443
|
...NO_PROPOSAL,
|
|
440
444
|
};
|
|
441
445
|
}
|
|
@@ -499,6 +503,7 @@ const ask = defineService<AskState, {
|
|
|
499
503
|
...state, recents,
|
|
500
504
|
hasRecents: recents.length > 0,
|
|
501
505
|
noRecents: recents.length === 0,
|
|
506
|
+
noAfterAnswer: state.noAnswer && recents.length === 0,
|
|
502
507
|
// A saved link whose question has aged out of the recents list can't
|
|
503
508
|
// be replayed — say so rather than opening a blank screen.
|
|
504
509
|
...(id ? { headline: "That saved answer is gone", note: "Ask the question again to bring it back." } : {}),
|
|
@@ -40,6 +40,8 @@ export interface DrawerCore {
|
|
|
40
40
|
|
|
41
41
|
export interface DrawerState extends DrawerCore {
|
|
42
42
|
siteInitials: string;
|
|
43
|
+
/** Hide the name completely when unavailable so the site row has no empty gap. */
|
|
44
|
+
noSiteName: boolean;
|
|
43
45
|
attentionTotal: number;
|
|
44
46
|
attentionLabel: string;
|
|
45
47
|
/** TRUE when there is nothing to chase. Feeds `hiddenPath`, which hides on a
|
|
@@ -85,6 +87,7 @@ export function withDerived(core: DrawerCore): DrawerState {
|
|
|
85
87
|
attention,
|
|
86
88
|
confirmingClear,
|
|
87
89
|
siteInitials: initialsOf(core.siteName),
|
|
90
|
+
noSiteName: core.siteName.trim().length === 0,
|
|
88
91
|
attentionTotal: total,
|
|
89
92
|
attentionLabel: total === 0
|
|
90
93
|
? "All caught up"
|