@wix/himalaya-cli 0.1770.0 → 0.1771.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 +0 -2
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +138 -0
- package/templates/beauty-salon/l10n/ar.json +18 -0
- package/templates/beauty-salon/l10n/cs.json +18 -0
- package/templates/beauty-salon/l10n/da.json +18 -0
- package/templates/beauty-salon/l10n/de.json +18 -0
- package/templates/beauty-salon/l10n/el.json +18 -0
- package/templates/beauty-salon/l10n/en.json +21 -0
- package/templates/beauty-salon/l10n/es.json +18 -0
- package/templates/beauty-salon/l10n/fi.json +18 -0
- package/templates/beauty-salon/l10n/fr.json +18 -0
- package/templates/beauty-salon/l10n/he.json +15 -0
- package/templates/beauty-salon/l10n/hu.json +18 -0
- package/templates/beauty-salon/l10n/id.json +18 -0
- package/templates/beauty-salon/l10n/it.json +18 -0
- package/templates/beauty-salon/l10n/ja.json +18 -0
- package/templates/beauty-salon/l10n/ko.json +18 -0
- package/templates/beauty-salon/l10n/lt.json +18 -0
- package/templates/beauty-salon/l10n/nl.json +18 -0
- package/templates/beauty-salon/l10n/no.json +18 -0
- package/templates/beauty-salon/l10n/pl.json +18 -0
- package/templates/beauty-salon/l10n/pt.json +18 -0
- package/templates/beauty-salon/l10n/ru.json +18 -0
- package/templates/beauty-salon/l10n/sv.json +18 -0
- package/templates/beauty-salon/l10n/th.json +18 -0
- package/templates/beauty-salon/l10n/tr.json +18 -0
- package/templates/beauty-salon/l10n/uk.json +18 -0
- package/templates/beauty-salon/l10n/vi.json +18 -0
- package/templates/beauty-salon/l10n/zh.json +18 -0
- package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/branded-lite/dev/index.ts +138 -0
- package/templates/branded-lite/l10n/ar.json +18 -0
- package/templates/branded-lite/l10n/cs.json +18 -0
- package/templates/branded-lite/l10n/da.json +18 -0
- package/templates/branded-lite/l10n/de.json +18 -0
- package/templates/branded-lite/l10n/el.json +18 -0
- package/templates/branded-lite/l10n/en.json +21 -0
- package/templates/branded-lite/l10n/es.json +18 -0
- package/templates/branded-lite/l10n/fi.json +18 -0
- package/templates/branded-lite/l10n/fr.json +18 -0
- package/templates/branded-lite/l10n/he.json +15 -0
- package/templates/branded-lite/l10n/hu.json +18 -0
- package/templates/branded-lite/l10n/id.json +18 -0
- package/templates/branded-lite/l10n/it.json +18 -0
- package/templates/branded-lite/l10n/ja.json +18 -0
- package/templates/branded-lite/l10n/ko.json +18 -0
- package/templates/branded-lite/l10n/lt.json +18 -0
- package/templates/branded-lite/l10n/nl.json +18 -0
- package/templates/branded-lite/l10n/no.json +18 -0
- package/templates/branded-lite/l10n/pl.json +18 -0
- package/templates/branded-lite/l10n/pt.json +18 -0
- package/templates/branded-lite/l10n/ru.json +18 -0
- package/templates/branded-lite/l10n/sv.json +18 -0
- package/templates/branded-lite/l10n/th.json +18 -0
- package/templates/branded-lite/l10n/tr.json +18 -0
- package/templates/branded-lite/l10n/uk.json +18 -0
- package/templates/branded-lite/l10n/vi.json +18 -0
- package/templates/branded-lite/l10n/zh.json +18 -0
- package/templates/branded-lite/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/brandy/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/community-club/dev/index.ts +138 -0
- package/templates/community-club/l10n/ar.json +18 -0
- package/templates/community-club/l10n/cs.json +18 -0
- package/templates/community-club/l10n/da.json +18 -0
- package/templates/community-club/l10n/de.json +18 -0
- package/templates/community-club/l10n/el.json +18 -0
- package/templates/community-club/l10n/en.json +21 -0
- package/templates/community-club/l10n/es.json +18 -0
- package/templates/community-club/l10n/fi.json +18 -0
- package/templates/community-club/l10n/fr.json +18 -0
- package/templates/community-club/l10n/he.json +15 -0
- package/templates/community-club/l10n/hu.json +18 -0
- package/templates/community-club/l10n/id.json +18 -0
- package/templates/community-club/l10n/it.json +18 -0
- package/templates/community-club/l10n/ja.json +18 -0
- package/templates/community-club/l10n/ko.json +18 -0
- package/templates/community-club/l10n/lt.json +18 -0
- package/templates/community-club/l10n/nl.json +18 -0
- package/templates/community-club/l10n/no.json +18 -0
- package/templates/community-club/l10n/pl.json +18 -0
- package/templates/community-club/l10n/pt.json +18 -0
- package/templates/community-club/l10n/ru.json +18 -0
- package/templates/community-club/l10n/sv.json +18 -0
- package/templates/community-club/l10n/th.json +18 -0
- package/templates/community-club/l10n/tr.json +18 -0
- package/templates/community-club/l10n/uk.json +18 -0
- package/templates/community-club/l10n/vi.json +18 -0
- package/templates/community-club/l10n/zh.json +18 -0
- package/templates/community-club/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/conference/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/events-meetups/dev/index.ts +138 -0
- package/templates/events-meetups/l10n/ar.json +18 -0
- package/templates/events-meetups/l10n/cs.json +18 -0
- package/templates/events-meetups/l10n/da.json +18 -0
- package/templates/events-meetups/l10n/de.json +18 -0
- package/templates/events-meetups/l10n/el.json +18 -0
- package/templates/events-meetups/l10n/en.json +21 -0
- package/templates/events-meetups/l10n/es.json +18 -0
- package/templates/events-meetups/l10n/fi.json +18 -0
- package/templates/events-meetups/l10n/fr.json +18 -0
- package/templates/events-meetups/l10n/he.json +15 -0
- package/templates/events-meetups/l10n/hu.json +18 -0
- package/templates/events-meetups/l10n/id.json +18 -0
- package/templates/events-meetups/l10n/it.json +18 -0
- package/templates/events-meetups/l10n/ja.json +18 -0
- package/templates/events-meetups/l10n/ko.json +18 -0
- package/templates/events-meetups/l10n/lt.json +18 -0
- package/templates/events-meetups/l10n/nl.json +18 -0
- package/templates/events-meetups/l10n/no.json +18 -0
- package/templates/events-meetups/l10n/pl.json +18 -0
- package/templates/events-meetups/l10n/pt.json +18 -0
- package/templates/events-meetups/l10n/ru.json +18 -0
- package/templates/events-meetups/l10n/sv.json +18 -0
- package/templates/events-meetups/l10n/th.json +18 -0
- package/templates/events-meetups/l10n/tr.json +18 -0
- package/templates/events-meetups/l10n/uk.json +18 -0
- package/templates/events-meetups/l10n/vi.json +18 -0
- package/templates/events-meetups/l10n/zh.json +18 -0
- package/templates/events-meetups/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/gym-fitness/dev/index.ts +138 -0
- package/templates/gym-fitness/l10n/ar.json +18 -0
- package/templates/gym-fitness/l10n/cs.json +18 -0
- package/templates/gym-fitness/l10n/da.json +18 -0
- package/templates/gym-fitness/l10n/de.json +18 -0
- package/templates/gym-fitness/l10n/el.json +18 -0
- package/templates/gym-fitness/l10n/en.json +21 -0
- package/templates/gym-fitness/l10n/es.json +18 -0
- package/templates/gym-fitness/l10n/fi.json +18 -0
- package/templates/gym-fitness/l10n/fr.json +18 -0
- package/templates/gym-fitness/l10n/he.json +15 -0
- package/templates/gym-fitness/l10n/hu.json +18 -0
- package/templates/gym-fitness/l10n/id.json +18 -0
- package/templates/gym-fitness/l10n/it.json +18 -0
- package/templates/gym-fitness/l10n/ja.json +18 -0
- package/templates/gym-fitness/l10n/ko.json +18 -0
- package/templates/gym-fitness/l10n/lt.json +18 -0
- package/templates/gym-fitness/l10n/nl.json +18 -0
- package/templates/gym-fitness/l10n/no.json +18 -0
- package/templates/gym-fitness/l10n/pl.json +18 -0
- package/templates/gym-fitness/l10n/pt.json +18 -0
- package/templates/gym-fitness/l10n/ru.json +18 -0
- package/templates/gym-fitness/l10n/sv.json +18 -0
- package/templates/gym-fitness/l10n/th.json +18 -0
- package/templates/gym-fitness/l10n/tr.json +18 -0
- package/templates/gym-fitness/l10n/uk.json +18 -0
- package/templates/gym-fitness/l10n/vi.json +18 -0
- package/templates/gym-fitness/l10n/zh.json +18 -0
- package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/medical-services/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/nonprofit-cause/dev/index.ts +138 -0
- package/templates/nonprofit-cause/l10n/ar.json +18 -0
- package/templates/nonprofit-cause/l10n/cs.json +18 -0
- package/templates/nonprofit-cause/l10n/da.json +18 -0
- package/templates/nonprofit-cause/l10n/de.json +18 -0
- package/templates/nonprofit-cause/l10n/el.json +18 -0
- package/templates/nonprofit-cause/l10n/en.json +21 -0
- package/templates/nonprofit-cause/l10n/es.json +18 -0
- package/templates/nonprofit-cause/l10n/fi.json +18 -0
- package/templates/nonprofit-cause/l10n/fr.json +18 -0
- package/templates/nonprofit-cause/l10n/he.json +15 -0
- package/templates/nonprofit-cause/l10n/hu.json +18 -0
- package/templates/nonprofit-cause/l10n/id.json +18 -0
- package/templates/nonprofit-cause/l10n/it.json +18 -0
- package/templates/nonprofit-cause/l10n/ja.json +18 -0
- package/templates/nonprofit-cause/l10n/ko.json +18 -0
- package/templates/nonprofit-cause/l10n/lt.json +18 -0
- package/templates/nonprofit-cause/l10n/nl.json +18 -0
- package/templates/nonprofit-cause/l10n/no.json +18 -0
- package/templates/nonprofit-cause/l10n/pl.json +18 -0
- package/templates/nonprofit-cause/l10n/pt.json +18 -0
- package/templates/nonprofit-cause/l10n/ru.json +18 -0
- package/templates/nonprofit-cause/l10n/sv.json +18 -0
- package/templates/nonprofit-cause/l10n/th.json +18 -0
- package/templates/nonprofit-cause/l10n/tr.json +18 -0
- package/templates/nonprofit-cause/l10n/uk.json +18 -0
- package/templates/nonprofit-cause/l10n/vi.json +18 -0
- package/templates/nonprofit-cause/l10n/zh.json +18 -0
- package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/personal-fitness-trainer/dev/index.ts +138 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/podcast-creator/dev/index.ts +138 -0
- package/templates/podcast-creator/l10n/ar.json +18 -0
- package/templates/podcast-creator/l10n/cs.json +18 -0
- package/templates/podcast-creator/l10n/da.json +18 -0
- package/templates/podcast-creator/l10n/de.json +18 -0
- package/templates/podcast-creator/l10n/el.json +18 -0
- package/templates/podcast-creator/l10n/en.json +21 -0
- package/templates/podcast-creator/l10n/es.json +18 -0
- package/templates/podcast-creator/l10n/fi.json +18 -0
- package/templates/podcast-creator/l10n/fr.json +18 -0
- package/templates/podcast-creator/l10n/he.json +15 -0
- package/templates/podcast-creator/l10n/hu.json +18 -0
- package/templates/podcast-creator/l10n/id.json +18 -0
- package/templates/podcast-creator/l10n/it.json +18 -0
- package/templates/podcast-creator/l10n/ja.json +18 -0
- package/templates/podcast-creator/l10n/ko.json +18 -0
- package/templates/podcast-creator/l10n/lt.json +18 -0
- package/templates/podcast-creator/l10n/nl.json +18 -0
- package/templates/podcast-creator/l10n/no.json +18 -0
- package/templates/podcast-creator/l10n/pl.json +18 -0
- package/templates/podcast-creator/l10n/pt.json +18 -0
- package/templates/podcast-creator/l10n/ru.json +18 -0
- package/templates/podcast-creator/l10n/sv.json +18 -0
- package/templates/podcast-creator/l10n/th.json +18 -0
- package/templates/podcast-creator/l10n/tr.json +18 -0
- package/templates/podcast-creator/l10n/uk.json +18 -0
- package/templates/podcast-creator/l10n/vi.json +18 -0
- package/templates/podcast-creator/l10n/zh.json +18 -0
- package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/portfolio-creative/dev/index.ts +138 -0
- package/templates/portfolio-creative/l10n/ar.json +18 -0
- package/templates/portfolio-creative/l10n/cs.json +18 -0
- package/templates/portfolio-creative/l10n/da.json +18 -0
- package/templates/portfolio-creative/l10n/de.json +18 -0
- package/templates/portfolio-creative/l10n/el.json +18 -0
- package/templates/portfolio-creative/l10n/en.json +21 -0
- package/templates/portfolio-creative/l10n/es.json +18 -0
- package/templates/portfolio-creative/l10n/fi.json +18 -0
- package/templates/portfolio-creative/l10n/fr.json +18 -0
- package/templates/portfolio-creative/l10n/he.json +15 -0
- package/templates/portfolio-creative/l10n/hu.json +18 -0
- package/templates/portfolio-creative/l10n/id.json +18 -0
- package/templates/portfolio-creative/l10n/it.json +18 -0
- package/templates/portfolio-creative/l10n/ja.json +18 -0
- package/templates/portfolio-creative/l10n/ko.json +18 -0
- package/templates/portfolio-creative/l10n/lt.json +18 -0
- package/templates/portfolio-creative/l10n/nl.json +18 -0
- package/templates/portfolio-creative/l10n/no.json +18 -0
- package/templates/portfolio-creative/l10n/pl.json +18 -0
- package/templates/portfolio-creative/l10n/pt.json +18 -0
- package/templates/portfolio-creative/l10n/ru.json +18 -0
- package/templates/portfolio-creative/l10n/sv.json +18 -0
- package/templates/portfolio-creative/l10n/th.json +18 -0
- package/templates/portfolio-creative/l10n/tr.json +18 -0
- package/templates/portfolio-creative/l10n/uk.json +18 -0
- package/templates/portfolio-creative/l10n/vi.json +18 -0
- package/templates/portfolio-creative/l10n/zh.json +18 -0
- package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/restaurant/dev/index.ts +138 -0
- package/templates/restaurant/l10n/ar.json +18 -0
- package/templates/restaurant/l10n/cs.json +18 -0
- package/templates/restaurant/l10n/da.json +18 -0
- package/templates/restaurant/l10n/de.json +18 -0
- package/templates/restaurant/l10n/el.json +18 -0
- package/templates/restaurant/l10n/en.json +21 -0
- package/templates/restaurant/l10n/es.json +18 -0
- package/templates/restaurant/l10n/fi.json +18 -0
- package/templates/restaurant/l10n/fr.json +18 -0
- package/templates/restaurant/l10n/he.json +15 -0
- package/templates/restaurant/l10n/hu.json +18 -0
- package/templates/restaurant/l10n/id.json +18 -0
- package/templates/restaurant/l10n/it.json +18 -0
- package/templates/restaurant/l10n/ja.json +18 -0
- package/templates/restaurant/l10n/ko.json +18 -0
- package/templates/restaurant/l10n/lt.json +18 -0
- package/templates/restaurant/l10n/nl.json +18 -0
- package/templates/restaurant/l10n/no.json +18 -0
- package/templates/restaurant/l10n/pl.json +18 -0
- package/templates/restaurant/l10n/pt.json +18 -0
- package/templates/restaurant/l10n/ru.json +18 -0
- package/templates/restaurant/l10n/sv.json +18 -0
- package/templates/restaurant/l10n/th.json +18 -0
- package/templates/restaurant/l10n/tr.json +18 -0
- package/templates/restaurant/l10n/uk.json +18 -0
- package/templates/restaurant/l10n/vi.json +18 -0
- package/templates/restaurant/l10n/zh.json +18 -0
- package/templates/restaurant/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/retail-store/dev/index.ts +138 -0
- package/templates/retail-store/l10n/ar.json +18 -0
- package/templates/retail-store/l10n/cs.json +18 -0
- package/templates/retail-store/l10n/da.json +18 -0
- package/templates/retail-store/l10n/de.json +18 -0
- package/templates/retail-store/l10n/el.json +18 -0
- package/templates/retail-store/l10n/en.json +21 -0
- package/templates/retail-store/l10n/es.json +18 -0
- package/templates/retail-store/l10n/fi.json +18 -0
- package/templates/retail-store/l10n/fr.json +18 -0
- package/templates/retail-store/l10n/he.json +15 -0
- package/templates/retail-store/l10n/hu.json +18 -0
- package/templates/retail-store/l10n/id.json +18 -0
- package/templates/retail-store/l10n/it.json +18 -0
- package/templates/retail-store/l10n/ja.json +18 -0
- package/templates/retail-store/l10n/ko.json +18 -0
- package/templates/retail-store/l10n/lt.json +18 -0
- package/templates/retail-store/l10n/nl.json +18 -0
- package/templates/retail-store/l10n/no.json +18 -0
- package/templates/retail-store/l10n/pl.json +18 -0
- package/templates/retail-store/l10n/pt.json +18 -0
- package/templates/retail-store/l10n/ru.json +18 -0
- package/templates/retail-store/l10n/sv.json +18 -0
- package/templates/retail-store/l10n/th.json +18 -0
- package/templates/retail-store/l10n/tr.json +18 -0
- package/templates/retail-store/l10n/uk.json +18 -0
- package/templates/retail-store/l10n/vi.json +18 -0
- package/templates/retail-store/l10n/zh.json +18 -0
- package/templates/retail-store/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/salon-spa/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +110 -3
- package/templates/yoga-studio/dev/index.ts +138 -0
- package/templates/yoga-studio/l10n/ar.json +18 -0
- package/templates/yoga-studio/l10n/cs.json +18 -0
- package/templates/yoga-studio/l10n/da.json +18 -0
- package/templates/yoga-studio/l10n/de.json +18 -0
- package/templates/yoga-studio/l10n/el.json +18 -0
- package/templates/yoga-studio/l10n/en.json +21 -0
- package/templates/yoga-studio/l10n/es.json +18 -0
- package/templates/yoga-studio/l10n/fi.json +18 -0
- package/templates/yoga-studio/l10n/fr.json +18 -0
- package/templates/yoga-studio/l10n/he.json +15 -0
- package/templates/yoga-studio/l10n/hu.json +18 -0
- package/templates/yoga-studio/l10n/id.json +18 -0
- package/templates/yoga-studio/l10n/it.json +18 -0
- package/templates/yoga-studio/l10n/ja.json +18 -0
- package/templates/yoga-studio/l10n/ko.json +18 -0
- package/templates/yoga-studio/l10n/lt.json +18 -0
- package/templates/yoga-studio/l10n/nl.json +18 -0
- package/templates/yoga-studio/l10n/no.json +18 -0
- package/templates/yoga-studio/l10n/pl.json +18 -0
- package/templates/yoga-studio/l10n/pt.json +18 -0
- package/templates/yoga-studio/l10n/ru.json +18 -0
- package/templates/yoga-studio/l10n/sv.json +18 -0
- package/templates/yoga-studio/l10n/th.json +18 -0
- package/templates/yoga-studio/l10n/tr.json +18 -0
- package/templates/yoga-studio/l10n/uk.json +18 -0
- package/templates/yoga-studio/l10n/vi.json +18 -0
- package/templates/yoga-studio/l10n/zh.json +18 -0
- package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +110 -3
|
@@ -320,7 +320,8 @@ function appearBase(): Partial<S> {
|
|
|
320
320
|
standalone: standaloneRequested,
|
|
321
321
|
pollIdentity: pollIdentityRequested,
|
|
322
322
|
restorePurchases: restorePurchasesRequested,
|
|
323
|
-
|
|
323
|
+
// One `_poll` per state: Account polls identity and never shows the social block.
|
|
324
|
+
...(pollIdentityRequested ? { _poll: { ...IDENTITY_POLL } } : socialRetriesLeft > 0 ? { _poll: { ...SOCIAL_POLL } } : {}),
|
|
324
325
|
};
|
|
325
326
|
}
|
|
326
327
|
|
|
@@ -407,6 +408,94 @@ let memberAccountLinksRequested = false;
|
|
|
407
408
|
let cartCountRequested = false;
|
|
408
409
|
const translated = (key: string) => copyParam(key, authMessage(key));
|
|
409
410
|
|
|
411
|
+
// Member Apple / Google sign-in (the host's `himi.wix.socialProviders` / `signInWithSocial`).
|
|
412
|
+
// Module state, like the probe's appear params: a dropped probe must not take the buttons with it.
|
|
413
|
+
const SOCIAL_PROVIDERS = ["apple", "google"] as const;
|
|
414
|
+
type SocialProvider = typeof SOCIAL_PROVIDERS[number];
|
|
415
|
+
let socialProviders: SocialProvider[] = [];
|
|
416
|
+
|
|
417
|
+
type SocialProvidersRead = { ok: true; providers: SocialProvider[] } | { ok: false };
|
|
418
|
+
|
|
419
|
+
/** The providers the host offers: site enables it, binary configured, platform supports it. */
|
|
420
|
+
async function readSocialProviders(): Promise<SocialProvidersRead> {
|
|
421
|
+
try {
|
|
422
|
+
const raw = await dispatch("himi.wix.socialProviders") as { payload?: { providers?: unknown }; providers?: unknown } | null;
|
|
423
|
+
const listed = raw?.payload?.providers ?? raw?.providers;
|
|
424
|
+
return { ok: true, providers: Array.isArray(listed) ? SOCIAL_PROVIDERS.filter((p) => listed.includes(p)) : [] };
|
|
425
|
+
} catch {
|
|
426
|
+
return { ok: false };
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/** A failed read keeps what the last read showed: a blip must not take the buttons away. A host
|
|
431
|
+
* without the action (web, an older binary) never answers, so it never shows any. */
|
|
432
|
+
function applySocialProviders(read: SocialProvidersRead): void {
|
|
433
|
+
if (read.ok) socialProviders = read.providers;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// An empty list is also what the host answers before its auth boot has wired the provider (a
|
|
437
|
+
// cold launch straight onto the form), so it is re-read on a short poll; a site with no social
|
|
438
|
+
// login stops after a few reads.
|
|
439
|
+
const SOCIAL_POLL = { id: "himi-account-social", intervalMs: 1500, action: "himiStoreAccount.refreshSocial" };
|
|
440
|
+
const SOCIAL_RETRIES = 4;
|
|
441
|
+
let socialRetriesLeft = 0;
|
|
442
|
+
|
|
443
|
+
function armSocialRetry(read: SocialProvidersRead): void {
|
|
444
|
+
if (read.ok) socialRetriesLeft = read.providers.length ? 0 : SOCIAL_RETRIES;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
async function refreshSocial(): Promise<S> {
|
|
448
|
+
if (socialRetriesLeft > 0) {
|
|
449
|
+
socialRetriesLeft -= 1;
|
|
450
|
+
applySocialProviders(await readSocialProviders());
|
|
451
|
+
if (socialProviders.length) socialRetriesLeft = 0;
|
|
452
|
+
}
|
|
453
|
+
const current = svc.getState();
|
|
454
|
+
return derive({ ...current, ...(socialRetriesLeft > 0 ? {} : { _poll: { id: SOCIAL_POLL.id, stop: true } }) });
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
function socialCancelled(raw: unknown): boolean {
|
|
458
|
+
const value = raw as { code?: unknown; error?: unknown; payload?: { code?: unknown; error?: unknown } } | null;
|
|
459
|
+
return [value?.code, value?.error, value?.payload?.code, value?.payload?.error].includes("cancelled");
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/** The host refused because another provider's sheet is up (iOS `socialSignInBlocked`), as a result or a throw. That attempt
|
|
463
|
+
* carries on and reports itself, so this tap says nothing. iOS rejects with the Swift error's
|
|
464
|
+
* description, which has no structured form to parse, hence the string match. */
|
|
465
|
+
function socialBusy(error: unknown): boolean {
|
|
466
|
+
const value = error as { code?: unknown; error?: unknown; message?: unknown; payload?: { code?: unknown; error?: unknown } } | null;
|
|
467
|
+
return [value?.code, value?.error, value?.payload?.code, value?.payload?.error].includes("busy")
|
|
468
|
+
|| String(value?.message ?? "").includes('IdentityFailure(code: "busy")');
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/** One generic line. The email path's credential copy ("wrong password") never fits a social failure. */
|
|
472
|
+
function socialFailureMessage(error: unknown): string {
|
|
473
|
+
const failure = authFailure(error, "signIn", translated);
|
|
474
|
+
return failure.code === "invalid_credentials" ? authFailure({ code: "unknown" }, "signIn", translated).reason : failure.reason;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
async function signInWithSocial(arg: unknown): Promise<S | undefined> {
|
|
478
|
+
const provider = socialProviders.find((p) => p === strField(arg, "provider"));
|
|
479
|
+
if (authInFlight || !provider) return undefined;
|
|
480
|
+
authInFlight = true;
|
|
481
|
+
try {
|
|
482
|
+
await svc.beginAuth();
|
|
483
|
+
const raw = await dispatch("himi.wix.signInWithSocial", {
|
|
484
|
+
provider,
|
|
485
|
+
...(routeInput().authContinuation ? { authContinuation: routeInput().authContinuation } : {}),
|
|
486
|
+
});
|
|
487
|
+
// Before rejectResult, which would turn either into a generic failure.
|
|
488
|
+
if (socialCancelled(raw) || socialBusy(raw)) return derive({ ...svc.getState(), authBusy: false });
|
|
489
|
+
rejectResult(raw, "signIn");
|
|
490
|
+
const next = await probe(svc.getState());
|
|
491
|
+
if (!next.isMember) throw { code: "unknown" };
|
|
492
|
+
passwordDraft = "";
|
|
493
|
+
return await resumeAfterAuth(completedAuth(next));
|
|
494
|
+
} catch (error) {
|
|
495
|
+
return derive({ ...svc.getState(), authBusy: false, message: socialCancelled(error) || socialBusy(error) ? "" : socialFailureMessage(error) });
|
|
496
|
+
} finally { authInFlight = false; }
|
|
497
|
+
}
|
|
498
|
+
|
|
410
499
|
function validateAuth(s: S, operation: AuthOperation): S {
|
|
411
500
|
const errors = identityErrors({ email: s.email, password: passwordDraft }, operation);
|
|
412
501
|
return derive({ ...s, emailError: errors.email ? translated(errors.email) : "",
|
|
@@ -575,6 +664,10 @@ interface S extends IapRestoreFields {
|
|
|
575
664
|
isRecovering: boolean;
|
|
576
665
|
notRecovering: boolean;
|
|
577
666
|
hideSignInChoices: boolean;
|
|
667
|
+
hideAppleSignIn: boolean;
|
|
668
|
+
hideGoogleSignIn: boolean;
|
|
669
|
+
/** The social block and its "or" divider: no provider to show, or resetting a password. */
|
|
670
|
+
hideSocialSignIn: boolean;
|
|
578
671
|
activityTitle: string;
|
|
579
672
|
activitySummary: string;
|
|
580
673
|
activityRows: AccountActivityRow[];
|
|
@@ -662,6 +755,9 @@ function derive(s: S): S {
|
|
|
662
755
|
isRecovering,
|
|
663
756
|
notRecovering: !isRecovering,
|
|
664
757
|
hideSignInChoices: isRegistering || isRecovering,
|
|
758
|
+
hideAppleSignIn: !socialProviders.includes("apple"),
|
|
759
|
+
hideGoogleSignIn: !socialProviders.includes("google"),
|
|
760
|
+
hideSocialSignIn: isRecovering || socialProviders.length === 0,
|
|
665
761
|
hasActivity,
|
|
666
762
|
noActivity: !hasActivity,
|
|
667
763
|
...restore.fields(s.restorePurchases && commerce.readiness().status === "ready"),
|
|
@@ -736,7 +832,11 @@ async function probe(s: S, arg?: unknown, config: AppearConfig = appearConfig(s,
|
|
|
736
832
|
// Not asked for (yet — the boot load runs before the appear params): keep the count the
|
|
737
833
|
// snapshot restored, not a 0 that would empty the badge until the appear refresh lands.
|
|
738
834
|
const cartCountRead = cartCountRequested ? cartItemCount(s.cartCount ?? 0) : Promise.resolve(s.cartCount ?? 0);
|
|
835
|
+
const socialRead: Promise<SocialProvidersRead> = standaloneRequested ? readSocialProviders() : Promise.resolve({ ok: false });
|
|
739
836
|
const profile = await loadMemberProfile(copyParam("storeAccount.guestDetail", "Sign in to keep your cart and orders connected."));
|
|
837
|
+
const social = await socialRead;
|
|
838
|
+
applySocialProviders(social);
|
|
839
|
+
armSocialRetry(social);
|
|
740
840
|
// Not the boot load: it never carries the copy, and the appear refresh that does is coming.
|
|
741
841
|
if (strField(arg, "boot") !== "1") headingReady = true;
|
|
742
842
|
const memberAccountLinks = memberAccountLinksRequested;
|
|
@@ -814,6 +914,8 @@ const svc = defineService<S, {
|
|
|
814
914
|
resetPassword: (s: S) => Promise<S>;
|
|
815
915
|
signIn: (s: S) => Promise<S | undefined>;
|
|
816
916
|
register: (s: S) => Promise<S | undefined>;
|
|
917
|
+
signInWithSocial: (s: S, arg?: unknown) => Promise<S | undefined>;
|
|
918
|
+
refreshSocial: (s: S) => Promise<S>;
|
|
817
919
|
signOut: (s: S) => Promise<S>;
|
|
818
920
|
sync: (s: S) => Promise<S | undefined>;
|
|
819
921
|
openMember: (s: S, arg?: unknown) => Promise<S>;
|
|
@@ -821,7 +923,7 @@ const svc = defineService<S, {
|
|
|
821
923
|
restorePublish: (s: S) => S;
|
|
822
924
|
iapRestore: (s: S) => Promise<undefined>;
|
|
823
925
|
}>("himiStoreAccount", {
|
|
824
|
-
notHydrated: ["message", "hideMessage", "messageKind", "resetSent", "password", "authBusy", "emailError", "passwordError", "passwordFocus", "lastNameFocus", "emailFocus", ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, ...IAP_RESTORE_KEYS],
|
|
926
|
+
notHydrated: ["message", "hideMessage", "messageKind", "resetSent", "password", "authBusy", "hideAppleSignIn", "hideGoogleSignIn", "hideSocialSignIn", "emailError", "passwordError", "passwordFocus", "lastNameFocus", "emailFocus", ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, ...IAP_RESTORE_KEYS],
|
|
825
927
|
state: derive({
|
|
826
928
|
status: "loading",
|
|
827
929
|
isMember: false,
|
|
@@ -863,6 +965,9 @@ const svc = defineService<S, {
|
|
|
863
965
|
isRecovering: false,
|
|
864
966
|
notRecovering: true,
|
|
865
967
|
hideSignInChoices: false,
|
|
968
|
+
hideAppleSignIn: true,
|
|
969
|
+
hideGoogleSignIn: true,
|
|
970
|
+
hideSocialSignIn: true,
|
|
866
971
|
activityTitle: "Previous orders",
|
|
867
972
|
activitySummary: "",
|
|
868
973
|
activityRows: [],
|
|
@@ -959,6 +1064,8 @@ const svc = defineService<S, {
|
|
|
959
1064
|
},
|
|
960
1065
|
signIn: (s) => authenticate(s, "signIn"),
|
|
961
1066
|
register: (s) => authenticate(s, "register"),
|
|
1067
|
+
signInWithSocial: (_s, arg) => signInWithSocial(arg),
|
|
1068
|
+
refreshSocial: () => refreshSocial(),
|
|
962
1069
|
signOut: async (s): Promise<S> => {
|
|
963
1070
|
if (authInFlight) return svc.getState();
|
|
964
1071
|
passwordDraft = ""; editRevision++;
|
|
@@ -1000,7 +1107,7 @@ const svc = defineService<S, {
|
|
|
1000
1107
|
},
|
|
1001
1108
|
});
|
|
1002
1109
|
|
|
1003
|
-
resetUnhydratedKeysOnOlderRuntime(svc, derive({ ...svc.getState(), ...NO_IAP_RESTORE, ...NO_VISIT, ...NO_FOCUS_ALL, message: "", resetSent: false, passwordFocus: "", isRegistering: ROUTE_ASKS_REGISTER }), ["message", "hideMessage", "messageKind", "resetSent", ...IAP_RESTORE_KEYS, ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, "lastNameFocus", "emailFocus", "passwordFocus"]);
|
|
1110
|
+
resetUnhydratedKeysOnOlderRuntime(svc, derive({ ...svc.getState(), ...NO_IAP_RESTORE, ...NO_VISIT, ...NO_FOCUS_ALL, message: "", resetSent: false, passwordFocus: "", isRegistering: ROUTE_ASKS_REGISTER }), ["message", "hideMessage", "messageKind", "resetSent", "hideAppleSignIn", "hideGoogleSignIn", "hideSocialSignIn", ...IAP_RESTORE_KEYS, ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, "lastNameFocus", "emailFocus", "passwordFocus"]);
|
|
1004
1111
|
// `boot` tells settle this is not a visit: the host drops this call's navigation, and the
|
|
1005
1112
|
// appear refresh does the visit's moves.
|
|
1006
1113
|
svc.load({ boot: "1" });
|
|
@@ -320,7 +320,8 @@ function appearBase(): Partial<S> {
|
|
|
320
320
|
standalone: standaloneRequested,
|
|
321
321
|
pollIdentity: pollIdentityRequested,
|
|
322
322
|
restorePurchases: restorePurchasesRequested,
|
|
323
|
-
|
|
323
|
+
// One `_poll` per state: Account polls identity and never shows the social block.
|
|
324
|
+
...(pollIdentityRequested ? { _poll: { ...IDENTITY_POLL } } : socialRetriesLeft > 0 ? { _poll: { ...SOCIAL_POLL } } : {}),
|
|
324
325
|
};
|
|
325
326
|
}
|
|
326
327
|
|
|
@@ -407,6 +408,94 @@ let memberAccountLinksRequested = false;
|
|
|
407
408
|
let cartCountRequested = false;
|
|
408
409
|
const translated = (key: string) => copyParam(key, authMessage(key));
|
|
409
410
|
|
|
411
|
+
// Member Apple / Google sign-in (the host's `himi.wix.socialProviders` / `signInWithSocial`).
|
|
412
|
+
// Module state, like the probe's appear params: a dropped probe must not take the buttons with it.
|
|
413
|
+
const SOCIAL_PROVIDERS = ["apple", "google"] as const;
|
|
414
|
+
type SocialProvider = typeof SOCIAL_PROVIDERS[number];
|
|
415
|
+
let socialProviders: SocialProvider[] = [];
|
|
416
|
+
|
|
417
|
+
type SocialProvidersRead = { ok: true; providers: SocialProvider[] } | { ok: false };
|
|
418
|
+
|
|
419
|
+
/** The providers the host offers: site enables it, binary configured, platform supports it. */
|
|
420
|
+
async function readSocialProviders(): Promise<SocialProvidersRead> {
|
|
421
|
+
try {
|
|
422
|
+
const raw = await dispatch("himi.wix.socialProviders") as { payload?: { providers?: unknown }; providers?: unknown } | null;
|
|
423
|
+
const listed = raw?.payload?.providers ?? raw?.providers;
|
|
424
|
+
return { ok: true, providers: Array.isArray(listed) ? SOCIAL_PROVIDERS.filter((p) => listed.includes(p)) : [] };
|
|
425
|
+
} catch {
|
|
426
|
+
return { ok: false };
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/** A failed read keeps what the last read showed: a blip must not take the buttons away. A host
|
|
431
|
+
* without the action (web, an older binary) never answers, so it never shows any. */
|
|
432
|
+
function applySocialProviders(read: SocialProvidersRead): void {
|
|
433
|
+
if (read.ok) socialProviders = read.providers;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
// An empty list is also what the host answers before its auth boot has wired the provider (a
|
|
437
|
+
// cold launch straight onto the form), so it is re-read on a short poll; a site with no social
|
|
438
|
+
// login stops after a few reads.
|
|
439
|
+
const SOCIAL_POLL = { id: "himi-account-social", intervalMs: 1500, action: "himiStoreAccount.refreshSocial" };
|
|
440
|
+
const SOCIAL_RETRIES = 4;
|
|
441
|
+
let socialRetriesLeft = 0;
|
|
442
|
+
|
|
443
|
+
function armSocialRetry(read: SocialProvidersRead): void {
|
|
444
|
+
if (read.ok) socialRetriesLeft = read.providers.length ? 0 : SOCIAL_RETRIES;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
async function refreshSocial(): Promise<S> {
|
|
448
|
+
if (socialRetriesLeft > 0) {
|
|
449
|
+
socialRetriesLeft -= 1;
|
|
450
|
+
applySocialProviders(await readSocialProviders());
|
|
451
|
+
if (socialProviders.length) socialRetriesLeft = 0;
|
|
452
|
+
}
|
|
453
|
+
const current = svc.getState();
|
|
454
|
+
return derive({ ...current, ...(socialRetriesLeft > 0 ? {} : { _poll: { id: SOCIAL_POLL.id, stop: true } }) });
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
function socialCancelled(raw: unknown): boolean {
|
|
458
|
+
const value = raw as { code?: unknown; error?: unknown; payload?: { code?: unknown; error?: unknown } } | null;
|
|
459
|
+
return [value?.code, value?.error, value?.payload?.code, value?.payload?.error].includes("cancelled");
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
/** The host refused because another provider's sheet is up (iOS `socialSignInBlocked`), as a result or a throw. That attempt
|
|
463
|
+
* carries on and reports itself, so this tap says nothing. iOS rejects with the Swift error's
|
|
464
|
+
* description, which has no structured form to parse, hence the string match. */
|
|
465
|
+
function socialBusy(error: unknown): boolean {
|
|
466
|
+
const value = error as { code?: unknown; error?: unknown; message?: unknown; payload?: { code?: unknown; error?: unknown } } | null;
|
|
467
|
+
return [value?.code, value?.error, value?.payload?.code, value?.payload?.error].includes("busy")
|
|
468
|
+
|| String(value?.message ?? "").includes('IdentityFailure(code: "busy")');
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/** One generic line. The email path's credential copy ("wrong password") never fits a social failure. */
|
|
472
|
+
function socialFailureMessage(error: unknown): string {
|
|
473
|
+
const failure = authFailure(error, "signIn", translated);
|
|
474
|
+
return failure.code === "invalid_credentials" ? authFailure({ code: "unknown" }, "signIn", translated).reason : failure.reason;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
async function signInWithSocial(arg: unknown): Promise<S | undefined> {
|
|
478
|
+
const provider = socialProviders.find((p) => p === strField(arg, "provider"));
|
|
479
|
+
if (authInFlight || !provider) return undefined;
|
|
480
|
+
authInFlight = true;
|
|
481
|
+
try {
|
|
482
|
+
await svc.beginAuth();
|
|
483
|
+
const raw = await dispatch("himi.wix.signInWithSocial", {
|
|
484
|
+
provider,
|
|
485
|
+
...(routeInput().authContinuation ? { authContinuation: routeInput().authContinuation } : {}),
|
|
486
|
+
});
|
|
487
|
+
// Before rejectResult, which would turn either into a generic failure.
|
|
488
|
+
if (socialCancelled(raw) || socialBusy(raw)) return derive({ ...svc.getState(), authBusy: false });
|
|
489
|
+
rejectResult(raw, "signIn");
|
|
490
|
+
const next = await probe(svc.getState());
|
|
491
|
+
if (!next.isMember) throw { code: "unknown" };
|
|
492
|
+
passwordDraft = "";
|
|
493
|
+
return await resumeAfterAuth(completedAuth(next));
|
|
494
|
+
} catch (error) {
|
|
495
|
+
return derive({ ...svc.getState(), authBusy: false, message: socialCancelled(error) || socialBusy(error) ? "" : socialFailureMessage(error) });
|
|
496
|
+
} finally { authInFlight = false; }
|
|
497
|
+
}
|
|
498
|
+
|
|
410
499
|
function validateAuth(s: S, operation: AuthOperation): S {
|
|
411
500
|
const errors = identityErrors({ email: s.email, password: passwordDraft }, operation);
|
|
412
501
|
return derive({ ...s, emailError: errors.email ? translated(errors.email) : "",
|
|
@@ -575,6 +664,10 @@ interface S extends IapRestoreFields {
|
|
|
575
664
|
isRecovering: boolean;
|
|
576
665
|
notRecovering: boolean;
|
|
577
666
|
hideSignInChoices: boolean;
|
|
667
|
+
hideAppleSignIn: boolean;
|
|
668
|
+
hideGoogleSignIn: boolean;
|
|
669
|
+
/** The social block and its "or" divider: no provider to show, or resetting a password. */
|
|
670
|
+
hideSocialSignIn: boolean;
|
|
578
671
|
activityTitle: string;
|
|
579
672
|
activitySummary: string;
|
|
580
673
|
activityRows: AccountActivityRow[];
|
|
@@ -662,6 +755,9 @@ function derive(s: S): S {
|
|
|
662
755
|
isRecovering,
|
|
663
756
|
notRecovering: !isRecovering,
|
|
664
757
|
hideSignInChoices: isRegistering || isRecovering,
|
|
758
|
+
hideAppleSignIn: !socialProviders.includes("apple"),
|
|
759
|
+
hideGoogleSignIn: !socialProviders.includes("google"),
|
|
760
|
+
hideSocialSignIn: isRecovering || socialProviders.length === 0,
|
|
665
761
|
hasActivity,
|
|
666
762
|
noActivity: !hasActivity,
|
|
667
763
|
...restore.fields(s.restorePurchases && commerce.readiness().status === "ready"),
|
|
@@ -736,7 +832,11 @@ async function probe(s: S, arg?: unknown, config: AppearConfig = appearConfig(s,
|
|
|
736
832
|
// Not asked for (yet — the boot load runs before the appear params): keep the count the
|
|
737
833
|
// snapshot restored, not a 0 that would empty the badge until the appear refresh lands.
|
|
738
834
|
const cartCountRead = cartCountRequested ? cartItemCount(s.cartCount ?? 0) : Promise.resolve(s.cartCount ?? 0);
|
|
835
|
+
const socialRead: Promise<SocialProvidersRead> = standaloneRequested ? readSocialProviders() : Promise.resolve({ ok: false });
|
|
739
836
|
const profile = await loadMemberProfile(copyParam("storeAccount.guestDetail", "Sign in to keep your cart and orders connected."));
|
|
837
|
+
const social = await socialRead;
|
|
838
|
+
applySocialProviders(social);
|
|
839
|
+
armSocialRetry(social);
|
|
740
840
|
// Not the boot load: it never carries the copy, and the appear refresh that does is coming.
|
|
741
841
|
if (strField(arg, "boot") !== "1") headingReady = true;
|
|
742
842
|
const memberAccountLinks = memberAccountLinksRequested;
|
|
@@ -814,6 +914,8 @@ const svc = defineService<S, {
|
|
|
814
914
|
resetPassword: (s: S) => Promise<S>;
|
|
815
915
|
signIn: (s: S) => Promise<S | undefined>;
|
|
816
916
|
register: (s: S) => Promise<S | undefined>;
|
|
917
|
+
signInWithSocial: (s: S, arg?: unknown) => Promise<S | undefined>;
|
|
918
|
+
refreshSocial: (s: S) => Promise<S>;
|
|
817
919
|
signOut: (s: S) => Promise<S>;
|
|
818
920
|
sync: (s: S) => Promise<S | undefined>;
|
|
819
921
|
openMember: (s: S, arg?: unknown) => Promise<S>;
|
|
@@ -821,7 +923,7 @@ const svc = defineService<S, {
|
|
|
821
923
|
restorePublish: (s: S) => S;
|
|
822
924
|
iapRestore: (s: S) => Promise<undefined>;
|
|
823
925
|
}>("himiStoreAccount", {
|
|
824
|
-
notHydrated: ["message", "hideMessage", "messageKind", "resetSent", "password", "authBusy", "emailError", "passwordError", "passwordFocus", "lastNameFocus", "emailFocus", ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, ...IAP_RESTORE_KEYS],
|
|
926
|
+
notHydrated: ["message", "hideMessage", "messageKind", "resetSent", "password", "authBusy", "hideAppleSignIn", "hideGoogleSignIn", "hideSocialSignIn", "emailError", "passwordError", "passwordFocus", "lastNameFocus", "emailFocus", ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, ...IAP_RESTORE_KEYS],
|
|
825
927
|
state: derive({
|
|
826
928
|
status: "loading",
|
|
827
929
|
isMember: false,
|
|
@@ -863,6 +965,9 @@ const svc = defineService<S, {
|
|
|
863
965
|
isRecovering: false,
|
|
864
966
|
notRecovering: true,
|
|
865
967
|
hideSignInChoices: false,
|
|
968
|
+
hideAppleSignIn: true,
|
|
969
|
+
hideGoogleSignIn: true,
|
|
970
|
+
hideSocialSignIn: true,
|
|
866
971
|
activityTitle: "Previous orders",
|
|
867
972
|
activitySummary: "",
|
|
868
973
|
activityRows: [],
|
|
@@ -959,6 +1064,8 @@ const svc = defineService<S, {
|
|
|
959
1064
|
},
|
|
960
1065
|
signIn: (s) => authenticate(s, "signIn"),
|
|
961
1066
|
register: (s) => authenticate(s, "register"),
|
|
1067
|
+
signInWithSocial: (_s, arg) => signInWithSocial(arg),
|
|
1068
|
+
refreshSocial: () => refreshSocial(),
|
|
962
1069
|
signOut: async (s): Promise<S> => {
|
|
963
1070
|
if (authInFlight) return svc.getState();
|
|
964
1071
|
passwordDraft = ""; editRevision++;
|
|
@@ -1000,7 +1107,7 @@ const svc = defineService<S, {
|
|
|
1000
1107
|
},
|
|
1001
1108
|
});
|
|
1002
1109
|
|
|
1003
|
-
resetUnhydratedKeysOnOlderRuntime(svc, derive({ ...svc.getState(), ...NO_IAP_RESTORE, ...NO_VISIT, ...NO_FOCUS_ALL, message: "", resetSent: false, passwordFocus: "", isRegistering: ROUTE_ASKS_REGISTER }), ["message", "hideMessage", "messageKind", "resetSent", ...IAP_RESTORE_KEYS, ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, "lastNameFocus", "emailFocus", "passwordFocus"]);
|
|
1110
|
+
resetUnhydratedKeysOnOlderRuntime(svc, derive({ ...svc.getState(), ...NO_IAP_RESTORE, ...NO_VISIT, ...NO_FOCUS_ALL, message: "", resetSent: false, passwordFocus: "", isRegistering: ROUTE_ASKS_REGISTER }), ["message", "hideMessage", "messageKind", "resetSent", "hideAppleSignIn", "hideGoogleSignIn", "hideSocialSignIn", ...IAP_RESTORE_KEYS, ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, "lastNameFocus", "emailFocus", "passwordFocus"]);
|
|
1004
1111
|
// `boot` tells settle this is not a visit: the host drops this call's navigation, and the
|
|
1005
1112
|
// appear refresh does the visit's moves.
|
|
1006
1113
|
svc.load({ boot: "1" });
|
|
@@ -5265,6 +5265,144 @@ const SCREENS = runtimeSetting({
|
|
|
5265
5265
|
}
|
|
5266
5266
|
}
|
|
5267
5267
|
},
|
|
5268
|
+
{
|
|
5269
|
+
"id": "himi_sign_in.social",
|
|
5270
|
+
"body": {
|
|
5271
|
+
"package": "himalaya",
|
|
5272
|
+
"type": "VStack",
|
|
5273
|
+
"props": {
|
|
5274
|
+
"spacing": 12,
|
|
5275
|
+
"alignment": "leading",
|
|
5276
|
+
"children": [
|
|
5277
|
+
{
|
|
5278
|
+
"id": "himi_sign_in.social_apple",
|
|
5279
|
+
"body": {
|
|
5280
|
+
"package": "himalaya",
|
|
5281
|
+
"type": "Button",
|
|
5282
|
+
"props": {
|
|
5283
|
+
"title": "Continue with Apple",
|
|
5284
|
+
"style": "secondary",
|
|
5285
|
+
"fullWidth": true,
|
|
5286
|
+
"disabledPath": "$service:himiStoreAccount.authBusy",
|
|
5287
|
+
"action": {
|
|
5288
|
+
"actionId": "tier5.himiStoreAccount.signInWithSocial",
|
|
5289
|
+
"params": {
|
|
5290
|
+
"provider": "apple"
|
|
5291
|
+
}
|
|
5292
|
+
}
|
|
5293
|
+
}
|
|
5294
|
+
},
|
|
5295
|
+
"modifiers": {
|
|
5296
|
+
"hiddenPath": "$service:himiStoreAccount.hideAppleSignIn"
|
|
5297
|
+
}
|
|
5298
|
+
},
|
|
5299
|
+
{
|
|
5300
|
+
"id": "himi_sign_in.social_google",
|
|
5301
|
+
"body": {
|
|
5302
|
+
"package": "himalaya",
|
|
5303
|
+
"type": "Button",
|
|
5304
|
+
"props": {
|
|
5305
|
+
"title": "Continue with Google",
|
|
5306
|
+
"style": "secondary",
|
|
5307
|
+
"fullWidth": true,
|
|
5308
|
+
"disabledPath": "$service:himiStoreAccount.authBusy",
|
|
5309
|
+
"action": {
|
|
5310
|
+
"actionId": "tier5.himiStoreAccount.signInWithSocial",
|
|
5311
|
+
"params": {
|
|
5312
|
+
"provider": "google"
|
|
5313
|
+
}
|
|
5314
|
+
}
|
|
5315
|
+
}
|
|
5316
|
+
},
|
|
5317
|
+
"modifiers": {
|
|
5318
|
+
"hiddenPath": "$service:himiStoreAccount.hideGoogleSignIn"
|
|
5319
|
+
}
|
|
5320
|
+
},
|
|
5321
|
+
{
|
|
5322
|
+
"id": "",
|
|
5323
|
+
"body": {
|
|
5324
|
+
"package": "himalaya",
|
|
5325
|
+
"type": "HStack",
|
|
5326
|
+
"props": {
|
|
5327
|
+
"spacing": 12,
|
|
5328
|
+
"alignment": "center",
|
|
5329
|
+
"children": [
|
|
5330
|
+
{
|
|
5331
|
+
"id": "",
|
|
5332
|
+
"body": {
|
|
5333
|
+
"package": "himalaya",
|
|
5334
|
+
"type": "VStack",
|
|
5335
|
+
"props": {
|
|
5336
|
+
"spacing": 0,
|
|
5337
|
+
"children": [
|
|
5338
|
+
{
|
|
5339
|
+
"id": "",
|
|
5340
|
+
"body": {
|
|
5341
|
+
"package": "himalaya",
|
|
5342
|
+
"type": "Divider",
|
|
5343
|
+
"props": {}
|
|
5344
|
+
}
|
|
5345
|
+
}
|
|
5346
|
+
]
|
|
5347
|
+
}
|
|
5348
|
+
},
|
|
5349
|
+
"modifiers": {
|
|
5350
|
+
"weight": 1
|
|
5351
|
+
}
|
|
5352
|
+
},
|
|
5353
|
+
{
|
|
5354
|
+
"id": "",
|
|
5355
|
+
"body": {
|
|
5356
|
+
"package": "himalaya",
|
|
5357
|
+
"type": "Text",
|
|
5358
|
+
"props": {
|
|
5359
|
+
"text": "or",
|
|
5360
|
+
"style": "footnote",
|
|
5361
|
+
"color": "textSecondary"
|
|
5362
|
+
}
|
|
5363
|
+
}
|
|
5364
|
+
},
|
|
5365
|
+
{
|
|
5366
|
+
"id": "",
|
|
5367
|
+
"body": {
|
|
5368
|
+
"package": "himalaya",
|
|
5369
|
+
"type": "VStack",
|
|
5370
|
+
"props": {
|
|
5371
|
+
"spacing": 0,
|
|
5372
|
+
"children": [
|
|
5373
|
+
{
|
|
5374
|
+
"id": "",
|
|
5375
|
+
"body": {
|
|
5376
|
+
"package": "himalaya",
|
|
5377
|
+
"type": "Divider",
|
|
5378
|
+
"props": {}
|
|
5379
|
+
}
|
|
5380
|
+
}
|
|
5381
|
+
]
|
|
5382
|
+
}
|
|
5383
|
+
},
|
|
5384
|
+
"modifiers": {
|
|
5385
|
+
"weight": 1
|
|
5386
|
+
}
|
|
5387
|
+
}
|
|
5388
|
+
]
|
|
5389
|
+
}
|
|
5390
|
+
},
|
|
5391
|
+
"modifiers": {
|
|
5392
|
+
"fillMaxWidth": true,
|
|
5393
|
+
"padding": {
|
|
5394
|
+
"top": 4,
|
|
5395
|
+
"bottom": 4
|
|
5396
|
+
}
|
|
5397
|
+
}
|
|
5398
|
+
}
|
|
5399
|
+
]
|
|
5400
|
+
}
|
|
5401
|
+
},
|
|
5402
|
+
"modifiers": {
|
|
5403
|
+
"hiddenPath": "$service:himiStoreAccount.hideSocialSignIn"
|
|
5404
|
+
}
|
|
5405
|
+
},
|
|
5268
5406
|
{
|
|
5269
5407
|
"id": "himi_sign_in.first_name",
|
|
5270
5408
|
"body": {
|
|
@@ -1286,6 +1286,24 @@
|
|
|
1286
1286
|
"translation": "الفئة",
|
|
1287
1287
|
"origin": "one-app:wix-one-app-new-blog__blogStrings__messages_en.json:NewBlog_PagesSettingsScreen_CategoryTab"
|
|
1288
1288
|
},
|
|
1289
|
+
"h_01ca4c21ba7d": {
|
|
1290
|
+
"key": "account.continueWithApple",
|
|
1291
|
+
"source": "Continue with Apple",
|
|
1292
|
+
"translation": "المتابعة باستخدام Apple",
|
|
1293
|
+
"origin": "machine"
|
|
1294
|
+
},
|
|
1295
|
+
"h_ccc5b0edaae6": {
|
|
1296
|
+
"key": "account.continueWithGoogle",
|
|
1297
|
+
"source": "Continue with Google",
|
|
1298
|
+
"translation": "المتابعة باستخدام Google",
|
|
1299
|
+
"origin": "machine"
|
|
1300
|
+
},
|
|
1301
|
+
"h_1758356db217": {
|
|
1302
|
+
"key": "account.socialDivider",
|
|
1303
|
+
"source": "or",
|
|
1304
|
+
"translation": "أو",
|
|
1305
|
+
"origin": "machine"
|
|
1306
|
+
},
|
|
1289
1307
|
"h_03e89418ffdf": {
|
|
1290
1308
|
"source": "Your Home",
|
|
1291
1309
|
"translation": "صفحتك الرئيسية",
|
|
@@ -1286,6 +1286,24 @@
|
|
|
1286
1286
|
"translation": "Kategorie",
|
|
1287
1287
|
"origin": "one-app:wix-one-app-new-blog__blogStrings__messages_en.json:NewBlog_PagesSettingsScreen_CategoryTab"
|
|
1288
1288
|
},
|
|
1289
|
+
"h_01ca4c21ba7d": {
|
|
1290
|
+
"key": "account.continueWithApple",
|
|
1291
|
+
"source": "Continue with Apple",
|
|
1292
|
+
"translation": "Pokračovat přes Apple",
|
|
1293
|
+
"origin": "machine"
|
|
1294
|
+
},
|
|
1295
|
+
"h_ccc5b0edaae6": {
|
|
1296
|
+
"key": "account.continueWithGoogle",
|
|
1297
|
+
"source": "Continue with Google",
|
|
1298
|
+
"translation": "Pokračovat přes Google",
|
|
1299
|
+
"origin": "machine"
|
|
1300
|
+
},
|
|
1301
|
+
"h_1758356db217": {
|
|
1302
|
+
"key": "account.socialDivider",
|
|
1303
|
+
"source": "or",
|
|
1304
|
+
"translation": "nebo",
|
|
1305
|
+
"origin": "machine"
|
|
1306
|
+
},
|
|
1289
1307
|
"h_03e89418ffdf": {
|
|
1290
1308
|
"source": "Your Home",
|
|
1291
1309
|
"translation": "Váš domov",
|
|
@@ -1286,6 +1286,24 @@
|
|
|
1286
1286
|
"translation": "Kategori",
|
|
1287
1287
|
"origin": "one-app:wix-one-app-new-blog__blogStrings__messages_en.json:NewBlog_PagesSettingsScreen_CategoryTab"
|
|
1288
1288
|
},
|
|
1289
|
+
"h_01ca4c21ba7d": {
|
|
1290
|
+
"key": "account.continueWithApple",
|
|
1291
|
+
"source": "Continue with Apple",
|
|
1292
|
+
"translation": "Fortsæt med Apple",
|
|
1293
|
+
"origin": "machine"
|
|
1294
|
+
},
|
|
1295
|
+
"h_ccc5b0edaae6": {
|
|
1296
|
+
"key": "account.continueWithGoogle",
|
|
1297
|
+
"source": "Continue with Google",
|
|
1298
|
+
"translation": "Fortsæt med Google",
|
|
1299
|
+
"origin": "machine"
|
|
1300
|
+
},
|
|
1301
|
+
"h_1758356db217": {
|
|
1302
|
+
"key": "account.socialDivider",
|
|
1303
|
+
"source": "or",
|
|
1304
|
+
"translation": "eller",
|
|
1305
|
+
"origin": "machine"
|
|
1306
|
+
},
|
|
1289
1307
|
"h_03e89418ffdf": {
|
|
1290
1308
|
"source": "Your Home",
|
|
1291
1309
|
"translation": "Din startside",
|
|
@@ -1286,6 +1286,24 @@
|
|
|
1286
1286
|
"translation": "Kategorie",
|
|
1287
1287
|
"origin": "one-app:wix-one-app-new-blog__blogStrings__messages_en.json:NewBlog_PagesSettingsScreen_CategoryTab"
|
|
1288
1288
|
},
|
|
1289
|
+
"h_01ca4c21ba7d": {
|
|
1290
|
+
"key": "account.continueWithApple",
|
|
1291
|
+
"source": "Continue with Apple",
|
|
1292
|
+
"translation": "Weiter mit Apple",
|
|
1293
|
+
"origin": "machine"
|
|
1294
|
+
},
|
|
1295
|
+
"h_ccc5b0edaae6": {
|
|
1296
|
+
"key": "account.continueWithGoogle",
|
|
1297
|
+
"source": "Continue with Google",
|
|
1298
|
+
"translation": "Weiter mit Google",
|
|
1299
|
+
"origin": "machine"
|
|
1300
|
+
},
|
|
1301
|
+
"h_1758356db217": {
|
|
1302
|
+
"key": "account.socialDivider",
|
|
1303
|
+
"source": "or",
|
|
1304
|
+
"translation": "oder",
|
|
1305
|
+
"origin": "machine"
|
|
1306
|
+
},
|
|
1289
1307
|
"h_03e89418ffdf": {
|
|
1290
1308
|
"source": "Your Home",
|
|
1291
1309
|
"translation": "Dein Start",
|
|
@@ -1286,6 +1286,24 @@
|
|
|
1286
1286
|
"translation": "Κατηγορία",
|
|
1287
1287
|
"origin": "one-app:wix-one-app-new-blog__blogStrings__messages_en.json:NewBlog_PagesSettingsScreen_CategoryTab"
|
|
1288
1288
|
},
|
|
1289
|
+
"h_01ca4c21ba7d": {
|
|
1290
|
+
"key": "account.continueWithApple",
|
|
1291
|
+
"source": "Continue with Apple",
|
|
1292
|
+
"translation": "Συνέχεια με Apple",
|
|
1293
|
+
"origin": "machine"
|
|
1294
|
+
},
|
|
1295
|
+
"h_ccc5b0edaae6": {
|
|
1296
|
+
"key": "account.continueWithGoogle",
|
|
1297
|
+
"source": "Continue with Google",
|
|
1298
|
+
"translation": "Συνέχεια με Google",
|
|
1299
|
+
"origin": "machine"
|
|
1300
|
+
},
|
|
1301
|
+
"h_1758356db217": {
|
|
1302
|
+
"key": "account.socialDivider",
|
|
1303
|
+
"source": "or",
|
|
1304
|
+
"translation": "ή",
|
|
1305
|
+
"origin": "machine"
|
|
1306
|
+
},
|
|
1289
1307
|
"h_03e89418ffdf": {
|
|
1290
1308
|
"source": "Your Home",
|
|
1291
1309
|
"translation": "Η αρχική σας",
|