@wix/himalaya-cli 0.1877.0 → 0.1879.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/ts/src/worker-subtree-safe-types.generated.d.ts +20 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/store-invite-message.d.ts +32 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +38 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +19 -12
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +34 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{7ef1986106af7b688111a1b3775f03396def712b12d0e4620cfc758042f8157c.bin → c0c9168ac683637ad53e3365739c050ca372b6fd84b920b90ee3050a0cafca62.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +1418 -1102
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/one-app-to-himi-app.md +59 -9
- package/guides/qa-builds.md +15 -2
- package/package.json +2 -2
- package/templates/beauty-salon/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/branded-lite/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/branded-lite/tier5-src/_shared/one-app-member-action.ts +46 -0
- package/templates/brandy/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/community-club/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/conference/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/events-meetups/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/fitness-gym/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/gym-fitness/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/medical-services/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/nonprofit-cause/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/personal-fitness-trainer/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/podcast-creator/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/portfolio-creative/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/professional-services/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/restaurant/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/retail-store/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/salon-spa/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/wholesale-store/tier5-src/_shared/member-screen.ts +5 -3
- package/templates/yoga-studio/tier5-src/_shared/member-screen.ts +5 -3
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
//
|
|
7
7
|
// The tap's params:
|
|
8
8
|
// screenId the member screen
|
|
9
|
+
// id optional: the entity the screen opens on (a form id). The member gets it as the screen's `id`; a
|
|
10
|
+
// guest's sign-in carries it as `returnId`, and himi-store-account opens the screen on it once signed in
|
|
9
11
|
// signInScreenId the app's sign-in screen; without it the tap opens `screenId` as is
|
|
10
12
|
// signInPresentation "sheet" | "full_screen": the sign-in opens as that modal, and once signed
|
|
11
13
|
// in it closes and opens the screen on `returnTab`. Pushed (no presentation),
|
|
@@ -64,10 +66,10 @@ export function within<T>(read: Promise<T>, ms: number, fallback: T): Promise<T>
|
|
|
64
66
|
|
|
65
67
|
/** Where a tap goes, given the session's email ("" for a guest). null: no screen named. */
|
|
66
68
|
export function memberScreenNav(arg: unknown, email: string): NavDirective | null {
|
|
67
|
-
const screenId = strField(arg, "screenId"), signInScreenId = strField(arg, "signInScreenId");
|
|
69
|
+
const screenId = strField(arg, "screenId"), signInScreenId = strField(arg, "signInScreenId"), id = strField(arg, "id");
|
|
68
70
|
if (!screenId) return null;
|
|
69
|
-
if (!signInScreenId || email) return { screenId };
|
|
70
|
-
const args: Record<string, string> = { mode: "signin", returnScreenId: screenId };
|
|
71
|
+
if (!signInScreenId || email) return id ? { screenId, args: { id } } : { screenId };
|
|
72
|
+
const args: Record<string, string> = { mode: "signin", returnScreenId: screenId, ...(id ? { returnId: id } : {}) };
|
|
71
73
|
const presentation = strField(arg, "signInPresentation");
|
|
72
74
|
if (presentation !== "sheet" && presentation !== "full_screen") return { screenId: signInScreenId, args };
|
|
73
75
|
if (strField(arg, "returnTab")) args.returnTab = strField(arg, "returnTab");
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
//
|
|
7
7
|
// The tap's params:
|
|
8
8
|
// screenId the member screen
|
|
9
|
+
// id optional: the entity the screen opens on (a form id). The member gets it as the screen's `id`; a
|
|
10
|
+
// guest's sign-in carries it as `returnId`, and himi-store-account opens the screen on it once signed in
|
|
9
11
|
// signInScreenId the app's sign-in screen; without it the tap opens `screenId` as is
|
|
10
12
|
// signInPresentation "sheet" | "full_screen": the sign-in opens as that modal, and once signed
|
|
11
13
|
// in it closes and opens the screen on `returnTab`. Pushed (no presentation),
|
|
@@ -64,10 +66,10 @@ export function within<T>(read: Promise<T>, ms: number, fallback: T): Promise<T>
|
|
|
64
66
|
|
|
65
67
|
/** Where a tap goes, given the session's email ("" for a guest). null: no screen named. */
|
|
66
68
|
export function memberScreenNav(arg: unknown, email: string): NavDirective | null {
|
|
67
|
-
const screenId = strField(arg, "screenId"), signInScreenId = strField(arg, "signInScreenId");
|
|
69
|
+
const screenId = strField(arg, "screenId"), signInScreenId = strField(arg, "signInScreenId"), id = strField(arg, "id");
|
|
68
70
|
if (!screenId) return null;
|
|
69
|
-
if (!signInScreenId || email) return { screenId };
|
|
70
|
-
const args: Record<string, string> = { mode: "signin", returnScreenId: screenId };
|
|
71
|
+
if (!signInScreenId || email) return id ? { screenId, args: { id } } : { screenId };
|
|
72
|
+
const args: Record<string, string> = { mode: "signin", returnScreenId: screenId, ...(id ? { returnId: id } : {}) };
|
|
71
73
|
const presentation = strField(arg, "signInPresentation");
|
|
72
74
|
if (presentation !== "sheet" && presentation !== "full_screen") return { screenId: signInScreenId, args };
|
|
73
75
|
if (strField(arg, "returnTab")) args.returnTab = strField(arg, "returnTab");
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
//
|
|
7
7
|
// The tap's params:
|
|
8
8
|
// screenId the member screen
|
|
9
|
+
// id optional: the entity the screen opens on (a form id). The member gets it as the screen's `id`; a
|
|
10
|
+
// guest's sign-in carries it as `returnId`, and himi-store-account opens the screen on it once signed in
|
|
9
11
|
// signInScreenId the app's sign-in screen; without it the tap opens `screenId` as is
|
|
10
12
|
// signInPresentation "sheet" | "full_screen": the sign-in opens as that modal, and once signed
|
|
11
13
|
// in it closes and opens the screen on `returnTab`. Pushed (no presentation),
|
|
@@ -64,10 +66,10 @@ export function within<T>(read: Promise<T>, ms: number, fallback: T): Promise<T>
|
|
|
64
66
|
|
|
65
67
|
/** Where a tap goes, given the session's email ("" for a guest). null: no screen named. */
|
|
66
68
|
export function memberScreenNav(arg: unknown, email: string): NavDirective | null {
|
|
67
|
-
const screenId = strField(arg, "screenId"), signInScreenId = strField(arg, "signInScreenId");
|
|
69
|
+
const screenId = strField(arg, "screenId"), signInScreenId = strField(arg, "signInScreenId"), id = strField(arg, "id");
|
|
68
70
|
if (!screenId) return null;
|
|
69
|
-
if (!signInScreenId || email) return { screenId };
|
|
70
|
-
const args: Record<string, string> = { mode: "signin", returnScreenId: screenId };
|
|
71
|
+
if (!signInScreenId || email) return id ? { screenId, args: { id } } : { screenId };
|
|
72
|
+
const args: Record<string, string> = { mode: "signin", returnScreenId: screenId, ...(id ? { returnId: id } : {}) };
|
|
71
73
|
const presentation = strField(arg, "signInPresentation");
|
|
72
74
|
if (presentation !== "sheet" && presentation !== "full_screen") return { screenId: signInScreenId, args };
|
|
73
75
|
if (strField(arg, "returnTab")) args.returnTab = strField(arg, "returnTab");
|