@wix/himalaya-cli 0.1846.0 → 0.1847.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/schema.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +1 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{eb70dc1091aa56bf8d8fca29b72373878c37c3c61df14ea288f3954a2073b6a0.bin → 33204224f8dccbd7094c8b6cb3df3995758bb67e81b987f4e6843897987e39f9.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +132 -45
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-index.md +1 -1
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +3 -0
- package/guides/designing-himi-screens.md +1 -0
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +82 -0
- package/templates/beauty-salon/l10n/ar.json +33 -0
- package/templates/beauty-salon/l10n/cs.json +33 -0
- package/templates/beauty-salon/l10n/da.json +33 -0
- package/templates/beauty-salon/l10n/de.json +33 -0
- package/templates/beauty-salon/l10n/el.json +33 -0
- package/templates/beauty-salon/l10n/en.json +22 -1
- package/templates/beauty-salon/l10n/es.json +33 -0
- package/templates/beauty-salon/l10n/fi.json +33 -0
- package/templates/beauty-salon/l10n/fr.json +33 -0
- package/templates/beauty-salon/l10n/he.json +27 -0
- package/templates/beauty-salon/l10n/hu.json +33 -0
- package/templates/beauty-salon/l10n/id.json +33 -0
- package/templates/beauty-salon/l10n/it.json +33 -0
- package/templates/beauty-salon/l10n/ja.json +33 -0
- package/templates/beauty-salon/l10n/ko.json +33 -0
- package/templates/beauty-salon/l10n/lt.json +33 -0
- package/templates/beauty-salon/l10n/nl.json +33 -0
- package/templates/beauty-salon/l10n/no.json +33 -0
- package/templates/beauty-salon/l10n/pl.json +33 -0
- package/templates/beauty-salon/l10n/pt.json +33 -0
- package/templates/beauty-salon/l10n/ru.json +33 -0
- package/templates/beauty-salon/l10n/sv.json +33 -0
- package/templates/beauty-salon/l10n/th.json +33 -0
- package/templates/beauty-salon/l10n/tr.json +33 -0
- package/templates/beauty-salon/l10n/uk.json +33 -0
- package/templates/beauty-salon/l10n/vi.json +33 -0
- package/templates/beauty-salon/l10n/zh.json +33 -0
- package/templates/beauty-salon/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/branded-lite/dev/index.ts +83 -1
- package/templates/branded-lite/l10n/ar.json +33 -0
- package/templates/branded-lite/l10n/cs.json +33 -0
- package/templates/branded-lite/l10n/da.json +33 -0
- package/templates/branded-lite/l10n/de.json +33 -0
- package/templates/branded-lite/l10n/el.json +33 -0
- package/templates/branded-lite/l10n/en.json +22 -1
- package/templates/branded-lite/l10n/es.json +33 -0
- package/templates/branded-lite/l10n/fi.json +33 -0
- package/templates/branded-lite/l10n/fr.json +33 -0
- package/templates/branded-lite/l10n/he.json +27 -0
- package/templates/branded-lite/l10n/hu.json +33 -0
- package/templates/branded-lite/l10n/id.json +33 -0
- package/templates/branded-lite/l10n/it.json +33 -0
- package/templates/branded-lite/l10n/ja.json +33 -0
- package/templates/branded-lite/l10n/ko.json +33 -0
- package/templates/branded-lite/l10n/lt.json +33 -0
- package/templates/branded-lite/l10n/nl.json +33 -0
- package/templates/branded-lite/l10n/no.json +33 -0
- package/templates/branded-lite/l10n/pl.json +33 -0
- package/templates/branded-lite/l10n/pt.json +33 -0
- package/templates/branded-lite/l10n/ru.json +33 -0
- package/templates/branded-lite/l10n/sv.json +33 -0
- package/templates/branded-lite/l10n/th.json +33 -0
- package/templates/branded-lite/l10n/tr.json +33 -0
- package/templates/branded-lite/l10n/uk.json +33 -0
- package/templates/branded-lite/l10n/vi.json +33 -0
- package/templates/branded-lite/l10n/zh.json +33 -0
- package/templates/branded-lite/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/branded-lite/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/brandy/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/brandy/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/community-club/dev/index.ts +82 -0
- package/templates/community-club/l10n/ar.json +33 -0
- package/templates/community-club/l10n/cs.json +33 -0
- package/templates/community-club/l10n/da.json +33 -0
- package/templates/community-club/l10n/de.json +33 -0
- package/templates/community-club/l10n/el.json +33 -0
- package/templates/community-club/l10n/en.json +22 -1
- package/templates/community-club/l10n/es.json +33 -0
- package/templates/community-club/l10n/fi.json +33 -0
- package/templates/community-club/l10n/fr.json +33 -0
- package/templates/community-club/l10n/he.json +27 -0
- package/templates/community-club/l10n/hu.json +33 -0
- package/templates/community-club/l10n/id.json +33 -0
- package/templates/community-club/l10n/it.json +33 -0
- package/templates/community-club/l10n/ja.json +33 -0
- package/templates/community-club/l10n/ko.json +33 -0
- package/templates/community-club/l10n/lt.json +33 -0
- package/templates/community-club/l10n/nl.json +33 -0
- package/templates/community-club/l10n/no.json +33 -0
- package/templates/community-club/l10n/pl.json +33 -0
- package/templates/community-club/l10n/pt.json +33 -0
- package/templates/community-club/l10n/ru.json +33 -0
- package/templates/community-club/l10n/sv.json +33 -0
- package/templates/community-club/l10n/th.json +33 -0
- package/templates/community-club/l10n/tr.json +33 -0
- package/templates/community-club/l10n/uk.json +33 -0
- package/templates/community-club/l10n/vi.json +33 -0
- package/templates/community-club/l10n/zh.json +33 -0
- package/templates/community-club/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/community-club/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/conference/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/conference/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/events-meetups/dev/index.ts +82 -0
- package/templates/events-meetups/l10n/ar.json +33 -0
- package/templates/events-meetups/l10n/cs.json +33 -0
- package/templates/events-meetups/l10n/da.json +33 -0
- package/templates/events-meetups/l10n/de.json +33 -0
- package/templates/events-meetups/l10n/el.json +33 -0
- package/templates/events-meetups/l10n/en.json +22 -1
- package/templates/events-meetups/l10n/es.json +33 -0
- package/templates/events-meetups/l10n/fi.json +33 -0
- package/templates/events-meetups/l10n/fr.json +33 -0
- package/templates/events-meetups/l10n/he.json +27 -0
- package/templates/events-meetups/l10n/hu.json +33 -0
- package/templates/events-meetups/l10n/id.json +33 -0
- package/templates/events-meetups/l10n/it.json +33 -0
- package/templates/events-meetups/l10n/ja.json +33 -0
- package/templates/events-meetups/l10n/ko.json +33 -0
- package/templates/events-meetups/l10n/lt.json +33 -0
- package/templates/events-meetups/l10n/nl.json +33 -0
- package/templates/events-meetups/l10n/no.json +33 -0
- package/templates/events-meetups/l10n/pl.json +33 -0
- package/templates/events-meetups/l10n/pt.json +33 -0
- package/templates/events-meetups/l10n/ru.json +33 -0
- package/templates/events-meetups/l10n/sv.json +33 -0
- package/templates/events-meetups/l10n/th.json +33 -0
- package/templates/events-meetups/l10n/tr.json +33 -0
- package/templates/events-meetups/l10n/uk.json +33 -0
- package/templates/events-meetups/l10n/vi.json +33 -0
- package/templates/events-meetups/l10n/zh.json +33 -0
- package/templates/events-meetups/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/events-meetups/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/fitness-gym/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/gym-fitness/dev/index.ts +82 -0
- package/templates/gym-fitness/l10n/ar.json +33 -0
- package/templates/gym-fitness/l10n/cs.json +33 -0
- package/templates/gym-fitness/l10n/da.json +33 -0
- package/templates/gym-fitness/l10n/de.json +33 -0
- package/templates/gym-fitness/l10n/el.json +33 -0
- package/templates/gym-fitness/l10n/en.json +22 -1
- package/templates/gym-fitness/l10n/es.json +33 -0
- package/templates/gym-fitness/l10n/fi.json +33 -0
- package/templates/gym-fitness/l10n/fr.json +33 -0
- package/templates/gym-fitness/l10n/he.json +27 -0
- package/templates/gym-fitness/l10n/hu.json +33 -0
- package/templates/gym-fitness/l10n/id.json +33 -0
- package/templates/gym-fitness/l10n/it.json +33 -0
- package/templates/gym-fitness/l10n/ja.json +33 -0
- package/templates/gym-fitness/l10n/ko.json +33 -0
- package/templates/gym-fitness/l10n/lt.json +33 -0
- package/templates/gym-fitness/l10n/nl.json +33 -0
- package/templates/gym-fitness/l10n/no.json +33 -0
- package/templates/gym-fitness/l10n/pl.json +33 -0
- package/templates/gym-fitness/l10n/pt.json +33 -0
- package/templates/gym-fitness/l10n/ru.json +33 -0
- package/templates/gym-fitness/l10n/sv.json +33 -0
- package/templates/gym-fitness/l10n/th.json +33 -0
- package/templates/gym-fitness/l10n/tr.json +33 -0
- package/templates/gym-fitness/l10n/uk.json +33 -0
- package/templates/gym-fitness/l10n/vi.json +33 -0
- package/templates/gym-fitness/l10n/zh.json +33 -0
- package/templates/gym-fitness/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/medical-services/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/medical-services/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/nonprofit-cause/dev/index.ts +82 -0
- package/templates/nonprofit-cause/l10n/ar.json +33 -0
- package/templates/nonprofit-cause/l10n/cs.json +33 -0
- package/templates/nonprofit-cause/l10n/da.json +33 -0
- package/templates/nonprofit-cause/l10n/de.json +33 -0
- package/templates/nonprofit-cause/l10n/el.json +33 -0
- package/templates/nonprofit-cause/l10n/en.json +22 -1
- package/templates/nonprofit-cause/l10n/es.json +33 -0
- package/templates/nonprofit-cause/l10n/fi.json +33 -0
- package/templates/nonprofit-cause/l10n/fr.json +33 -0
- package/templates/nonprofit-cause/l10n/he.json +27 -0
- package/templates/nonprofit-cause/l10n/hu.json +33 -0
- package/templates/nonprofit-cause/l10n/id.json +33 -0
- package/templates/nonprofit-cause/l10n/it.json +33 -0
- package/templates/nonprofit-cause/l10n/ja.json +33 -0
- package/templates/nonprofit-cause/l10n/ko.json +33 -0
- package/templates/nonprofit-cause/l10n/lt.json +33 -0
- package/templates/nonprofit-cause/l10n/nl.json +33 -0
- package/templates/nonprofit-cause/l10n/no.json +33 -0
- package/templates/nonprofit-cause/l10n/pl.json +33 -0
- package/templates/nonprofit-cause/l10n/pt.json +33 -0
- package/templates/nonprofit-cause/l10n/ru.json +33 -0
- package/templates/nonprofit-cause/l10n/sv.json +33 -0
- package/templates/nonprofit-cause/l10n/th.json +33 -0
- package/templates/nonprofit-cause/l10n/tr.json +33 -0
- package/templates/nonprofit-cause/l10n/uk.json +33 -0
- package/templates/nonprofit-cause/l10n/vi.json +33 -0
- package/templates/nonprofit-cause/l10n/zh.json +33 -0
- package/templates/nonprofit-cause/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/personal-fitness-trainer/dev/index.ts +2 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/podcast-creator/dev/index.ts +82 -0
- package/templates/podcast-creator/l10n/ar.json +33 -0
- package/templates/podcast-creator/l10n/cs.json +33 -0
- package/templates/podcast-creator/l10n/da.json +33 -0
- package/templates/podcast-creator/l10n/de.json +33 -0
- package/templates/podcast-creator/l10n/el.json +33 -0
- package/templates/podcast-creator/l10n/en.json +22 -1
- package/templates/podcast-creator/l10n/es.json +33 -0
- package/templates/podcast-creator/l10n/fi.json +33 -0
- package/templates/podcast-creator/l10n/fr.json +33 -0
- package/templates/podcast-creator/l10n/he.json +27 -0
- package/templates/podcast-creator/l10n/hu.json +33 -0
- package/templates/podcast-creator/l10n/id.json +33 -0
- package/templates/podcast-creator/l10n/it.json +33 -0
- package/templates/podcast-creator/l10n/ja.json +33 -0
- package/templates/podcast-creator/l10n/ko.json +33 -0
- package/templates/podcast-creator/l10n/lt.json +33 -0
- package/templates/podcast-creator/l10n/nl.json +33 -0
- package/templates/podcast-creator/l10n/no.json +33 -0
- package/templates/podcast-creator/l10n/pl.json +33 -0
- package/templates/podcast-creator/l10n/pt.json +33 -0
- package/templates/podcast-creator/l10n/ru.json +33 -0
- package/templates/podcast-creator/l10n/sv.json +33 -0
- package/templates/podcast-creator/l10n/th.json +33 -0
- package/templates/podcast-creator/l10n/tr.json +33 -0
- package/templates/podcast-creator/l10n/uk.json +33 -0
- package/templates/podcast-creator/l10n/vi.json +33 -0
- package/templates/podcast-creator/l10n/zh.json +33 -0
- package/templates/podcast-creator/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/portfolio-creative/dev/index.ts +82 -0
- package/templates/portfolio-creative/l10n/ar.json +33 -0
- package/templates/portfolio-creative/l10n/cs.json +33 -0
- package/templates/portfolio-creative/l10n/da.json +33 -0
- package/templates/portfolio-creative/l10n/de.json +33 -0
- package/templates/portfolio-creative/l10n/el.json +33 -0
- package/templates/portfolio-creative/l10n/en.json +22 -1
- package/templates/portfolio-creative/l10n/es.json +33 -0
- package/templates/portfolio-creative/l10n/fi.json +33 -0
- package/templates/portfolio-creative/l10n/fr.json +33 -0
- package/templates/portfolio-creative/l10n/he.json +27 -0
- package/templates/portfolio-creative/l10n/hu.json +33 -0
- package/templates/portfolio-creative/l10n/id.json +33 -0
- package/templates/portfolio-creative/l10n/it.json +33 -0
- package/templates/portfolio-creative/l10n/ja.json +33 -0
- package/templates/portfolio-creative/l10n/ko.json +33 -0
- package/templates/portfolio-creative/l10n/lt.json +33 -0
- package/templates/portfolio-creative/l10n/nl.json +33 -0
- package/templates/portfolio-creative/l10n/no.json +33 -0
- package/templates/portfolio-creative/l10n/pl.json +33 -0
- package/templates/portfolio-creative/l10n/pt.json +33 -0
- package/templates/portfolio-creative/l10n/ru.json +33 -0
- package/templates/portfolio-creative/l10n/sv.json +33 -0
- package/templates/portfolio-creative/l10n/th.json +33 -0
- package/templates/portfolio-creative/l10n/tr.json +33 -0
- package/templates/portfolio-creative/l10n/uk.json +33 -0
- package/templates/portfolio-creative/l10n/vi.json +33 -0
- package/templates/portfolio-creative/l10n/zh.json +33 -0
- package/templates/portfolio-creative/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/restaurant/dev/index.ts +82 -0
- package/templates/restaurant/l10n/ar.json +33 -0
- package/templates/restaurant/l10n/cs.json +33 -0
- package/templates/restaurant/l10n/da.json +33 -0
- package/templates/restaurant/l10n/de.json +33 -0
- package/templates/restaurant/l10n/el.json +33 -0
- package/templates/restaurant/l10n/en.json +22 -1
- package/templates/restaurant/l10n/es.json +33 -0
- package/templates/restaurant/l10n/fi.json +33 -0
- package/templates/restaurant/l10n/fr.json +33 -0
- package/templates/restaurant/l10n/he.json +27 -0
- package/templates/restaurant/l10n/hu.json +33 -0
- package/templates/restaurant/l10n/id.json +33 -0
- package/templates/restaurant/l10n/it.json +33 -0
- package/templates/restaurant/l10n/ja.json +33 -0
- package/templates/restaurant/l10n/ko.json +33 -0
- package/templates/restaurant/l10n/lt.json +33 -0
- package/templates/restaurant/l10n/nl.json +33 -0
- package/templates/restaurant/l10n/no.json +33 -0
- package/templates/restaurant/l10n/pl.json +33 -0
- package/templates/restaurant/l10n/pt.json +33 -0
- package/templates/restaurant/l10n/ru.json +33 -0
- package/templates/restaurant/l10n/sv.json +33 -0
- package/templates/restaurant/l10n/th.json +33 -0
- package/templates/restaurant/l10n/tr.json +33 -0
- package/templates/restaurant/l10n/uk.json +33 -0
- package/templates/restaurant/l10n/vi.json +33 -0
- package/templates/restaurant/l10n/zh.json +33 -0
- package/templates/restaurant/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/restaurant/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/retail-store/dev/index.ts +82 -0
- package/templates/retail-store/l10n/ar.json +33 -0
- package/templates/retail-store/l10n/cs.json +33 -0
- package/templates/retail-store/l10n/da.json +33 -0
- package/templates/retail-store/l10n/de.json +33 -0
- package/templates/retail-store/l10n/el.json +33 -0
- package/templates/retail-store/l10n/en.json +22 -1
- package/templates/retail-store/l10n/es.json +33 -0
- package/templates/retail-store/l10n/fi.json +33 -0
- package/templates/retail-store/l10n/fr.json +33 -0
- package/templates/retail-store/l10n/he.json +27 -0
- package/templates/retail-store/l10n/hu.json +33 -0
- package/templates/retail-store/l10n/id.json +33 -0
- package/templates/retail-store/l10n/it.json +33 -0
- package/templates/retail-store/l10n/ja.json +33 -0
- package/templates/retail-store/l10n/ko.json +33 -0
- package/templates/retail-store/l10n/lt.json +33 -0
- package/templates/retail-store/l10n/nl.json +33 -0
- package/templates/retail-store/l10n/no.json +33 -0
- package/templates/retail-store/l10n/pl.json +33 -0
- package/templates/retail-store/l10n/pt.json +33 -0
- package/templates/retail-store/l10n/ru.json +33 -0
- package/templates/retail-store/l10n/sv.json +33 -0
- package/templates/retail-store/l10n/th.json +33 -0
- package/templates/retail-store/l10n/tr.json +33 -0
- package/templates/retail-store/l10n/uk.json +33 -0
- package/templates/retail-store/l10n/vi.json +33 -0
- package/templates/retail-store/l10n/zh.json +33 -0
- package/templates/retail-store/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/retail-store/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/salon-spa/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/salon-spa/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/wholesale-store/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +127 -18
- package/templates/yoga-studio/dev/index.ts +82 -0
- package/templates/yoga-studio/l10n/ar.json +33 -0
- package/templates/yoga-studio/l10n/cs.json +33 -0
- package/templates/yoga-studio/l10n/da.json +33 -0
- package/templates/yoga-studio/l10n/de.json +33 -0
- package/templates/yoga-studio/l10n/el.json +33 -0
- package/templates/yoga-studio/l10n/en.json +22 -1
- package/templates/yoga-studio/l10n/es.json +33 -0
- package/templates/yoga-studio/l10n/fi.json +33 -0
- package/templates/yoga-studio/l10n/fr.json +33 -0
- package/templates/yoga-studio/l10n/he.json +27 -0
- package/templates/yoga-studio/l10n/hu.json +33 -0
- package/templates/yoga-studio/l10n/id.json +33 -0
- package/templates/yoga-studio/l10n/it.json +33 -0
- package/templates/yoga-studio/l10n/ja.json +33 -0
- package/templates/yoga-studio/l10n/ko.json +33 -0
- package/templates/yoga-studio/l10n/lt.json +33 -0
- package/templates/yoga-studio/l10n/nl.json +33 -0
- package/templates/yoga-studio/l10n/no.json +33 -0
- package/templates/yoga-studio/l10n/pl.json +33 -0
- package/templates/yoga-studio/l10n/pt.json +33 -0
- package/templates/yoga-studio/l10n/ru.json +33 -0
- package/templates/yoga-studio/l10n/sv.json +33 -0
- package/templates/yoga-studio/l10n/th.json +33 -0
- package/templates/yoga-studio/l10n/tr.json +33 -0
- package/templates/yoga-studio/l10n/uk.json +33 -0
- package/templates/yoga-studio/l10n/vi.json +33 -0
- package/templates/yoga-studio/l10n/zh.json +33 -0
- package/templates/yoga-studio/tier5-src/_shared/himi-account.ts +26 -11
- package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +127 -18
|
@@ -13,7 +13,7 @@ import { defineService, navigate } from "@himalaya/state";
|
|
|
13
13
|
import { dispatch } from "@himalaya/dispatch";
|
|
14
14
|
import { get as getAppInfo } from "@himalaya/app-info";
|
|
15
15
|
import { getCurrentCart, searchOrders, type WixOrder } from "@himalaya/wix-ecom";
|
|
16
|
-
import { guestProfile, loadMemberProfile, signedInEmail, strOf, fmtDate, titleCase, type AccountActivityRow } from "../_shared/himi-account";
|
|
16
|
+
import { guestProfile, loadMemberProfile, memberIdentity, signedInEmail, strOf, fmtDate, titleCase, type AccountActivityRow } from "../_shared/himi-account";
|
|
17
17
|
import { stashCopy, copyParam, copyTemplate } from "../_shared/himi-copy.js";
|
|
18
18
|
import { signInPageStyle, signInSheetStyle } from "../_shared/sign-in-sheet.js";
|
|
19
19
|
import { atLeast, memberAccountRoutes } from "../_shared/member-account-routes.js";
|
|
@@ -303,11 +303,21 @@ let signInPresentationRequested: "" | "sheet" | "full_screen" = "";
|
|
|
303
303
|
let signInStyleRequested: "page" | "" = "";
|
|
304
304
|
/** Account only: its tab, where a member screen opens after a modal sign-in. */
|
|
305
305
|
let signInReturnTabRequested = "";
|
|
306
|
+
/** Bumped by Dismiss (before and after the host forgets): a probe that was in flight across a Dismiss
|
|
307
|
+
* read the notice before it was dismissed and must not bring it back. A probe started after it reads
|
|
308
|
+
* the host, which has forgotten, so nothing here outlives that one race. */
|
|
309
|
+
let sessionEndedDismissals = 0;
|
|
310
|
+
/** Bumped by every email edit: a value typed back to what it was is still an edit. */
|
|
311
|
+
let emailEdits = 0;
|
|
306
312
|
let standaloneRequested = false;
|
|
307
313
|
let pollIdentityRequested = false;
|
|
308
314
|
// iOS can start the arg-less boot load after the appear refresh that asks for the row; the
|
|
309
315
|
// newer boot probe must not land, or be kept, without it.
|
|
310
316
|
let restorePurchasesRequested = false;
|
|
317
|
+
/** An app's sign-in form that carries the ended-session notice (appear param `sessionEndedNotice: "1"`).
|
|
318
|
+
* Only that form gets the signed-out headline, whose copy only that app's pack translates, and the ended
|
|
319
|
+
* session's address, which only its email field shows, so no form submits it unseen. */
|
|
320
|
+
let sessionEndedNoticeRequested = false;
|
|
311
321
|
// Bumped by every mode switch, so a dropped probe never puts back a mode the visitor left.
|
|
312
322
|
let modeSwitches = 0;
|
|
313
323
|
|
|
@@ -349,6 +359,7 @@ function appearConfig(s: S, arg: unknown): AppearConfig {
|
|
|
349
359
|
standaloneRequested ||= s.standalone || appearing || (!routeInputConsumed && !!routeInput().mode);
|
|
350
360
|
pollIdentityRequested ||= s.pollIdentity || strField(arg, "pollIdentity") === "1";
|
|
351
361
|
restorePurchasesRequested ||= s.restorePurchases || strField(arg, "restorePurchases") === "1";
|
|
362
|
+
sessionEndedNoticeRequested ||= strField(arg, "sessionEndedNotice") === "1";
|
|
352
363
|
// The form opens on the mode its route asked for each time it appears, sign-in by
|
|
353
364
|
// default: a pooled worker reopened with the same params must not open on the mode the
|
|
354
365
|
// last visit toggled to.
|
|
@@ -364,7 +375,7 @@ function appearConfig(s: S, arg: unknown): AppearConfig {
|
|
|
364
375
|
const visit: Partial<S> = appearing
|
|
365
376
|
// The route's own intent and return path too: a dropped probe must not keep the last
|
|
366
377
|
// visit's (an abandoned gate) for the next Sign in to resume.
|
|
367
|
-
? { email: "", firstName: "", lastName: "", password: "", emailError: "", passwordError: "", message: "", lastNameFocus: "", emailFocus: "", passwordFocus: "", ...authIntentFromArg(arg, NO_VISIT) }
|
|
378
|
+
? { email: "", emailTyped: false, firstName: "", lastName: "", password: "", emailError: "", passwordError: "", message: "", lastNameFocus: "", emailFocus: "", passwordFocus: "", ...authIntentFromArg(arg, NO_VISIT) }
|
|
368
379
|
: {};
|
|
369
380
|
return { mode, visit };
|
|
370
381
|
}
|
|
@@ -381,17 +392,28 @@ async function freshProbe(s: S, arg?: unknown): Promise<{ next: S; latest: boole
|
|
|
381
392
|
const revision = editRevision;
|
|
382
393
|
const switches = modeSwitches;
|
|
383
394
|
const visits = visitsApplied;
|
|
395
|
+
const emailsAtStart = emailEdits;
|
|
384
396
|
const config = appearConfig(s, arg);
|
|
385
397
|
const next = await probe(s, arg, config);
|
|
386
398
|
if (authInFlight || revision !== editRevision || seq < appliedSeq || visits !== visitsApplied) {
|
|
387
399
|
const current = svc.getState();
|
|
388
400
|
const mode = authInFlight || switches !== modeSwitches ? {} : config.mode;
|
|
389
401
|
// The new visit's clean form, except for what the visitor typed since it appeared.
|
|
390
|
-
|
|
391
|
-
|
|
402
|
+
// The email field and its `emailTyped` marker stay as they are after any edit during this probe,
|
|
403
|
+
// even one that typed the same address back.
|
|
404
|
+
const untouched = (key: keyof S) => current[key] === s[key] && (key !== "email" && key !== "emailTyped" || emailsAtStart === emailEdits);
|
|
405
|
+
const visit = Object.fromEntries(Object.entries(config.visit).filter(([key]) => untouched(key as keyof S)));
|
|
392
406
|
// Dropped only because a visit reset landed meanwhile: this is still the newest probe, so
|
|
393
407
|
// it may still move a member off the form (the reset's own probe was not the newest).
|
|
394
408
|
const latest = !authInFlight && revision === editRevision && seq >= appliedSeq && seq === probeSeq;
|
|
409
|
+
// The newest probe's ended-session read still counts when an edit dropped it: the signed-out
|
|
410
|
+
// headline, and the pre-fill for an email the reset empties. An older probe's read never does.
|
|
411
|
+
if (seq === probeSeq) {
|
|
412
|
+
Object.assign(visit, { sessionEnded: next.sessionEnded });
|
|
413
|
+
// The pre-fill lands on an email nobody edited during this probe that is (or is being reset to) empty.
|
|
414
|
+
const emptyUntouched = emailsAtStart === emailEdits && ("email" in visit || !current.email);
|
|
415
|
+
if (next.sessionEnded && next.email && emptyUntouched) Object.assign(visit, { email: next.email, emailTyped: next.emailTyped });
|
|
416
|
+
}
|
|
395
417
|
const kept = derive({ ...current, ...appearBase(), ...mode, ...visit });
|
|
396
418
|
// The reset still landed even though its probe was dropped. Invalidate arg-less loads
|
|
397
419
|
// that started from the previous visit's state before they can restore its return path.
|
|
@@ -521,8 +543,22 @@ async function refreshSocial(): Promise<S> {
|
|
|
521
543
|
applyMemberFlows(flows);
|
|
522
544
|
if (flows.ok || !flows.notReady) flowsRetriesLeft = 0;
|
|
523
545
|
}
|
|
546
|
+
const ended = await lateSessionEnded();
|
|
524
547
|
const current = svc.getState();
|
|
525
|
-
return derive({ ...current, ...(socialRetriesLeft > 0 || flowsRetriesLeft > 0 ? {} : { _poll: { id: SOCIAL_POLL.id, stop: true } }) });
|
|
548
|
+
return derive({ ...current, ...ended(current), ...(socialRetriesLeft > 0 || flowsRetriesLeft > 0 ? {} : { _poll: { id: SOCIAL_POLL.id, stop: true } }) });
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
/** This poll runs while the host's auth is not wired yet (a cold launch straight into the form), so the
|
|
552
|
+
* form's own identity reads may have seen no ended session: ask again until it is. */
|
|
553
|
+
async function lateSessionEnded(): Promise<(s: S) => Partial<S>> {
|
|
554
|
+
const before = svc.getState();
|
|
555
|
+
if (!standaloneRequested || before.isMember || before.sessionEnded) return () => ({});
|
|
556
|
+
const dismissals = sessionEndedDismissals;
|
|
557
|
+
const identity = await memberIdentity();
|
|
558
|
+
return (s) => {
|
|
559
|
+
if (identity.signedIn || !identity.sessionEnded || dismissals !== sessionEndedDismissals || s.isMember) return {};
|
|
560
|
+
return { sessionEnded: true, ...(s.email || s.emailTyped ? {} : endedSessionEmail(true, false, identity.lastEmail)) };
|
|
561
|
+
};
|
|
526
562
|
}
|
|
527
563
|
|
|
528
564
|
function socialCancelled(raw: unknown): boolean {
|
|
@@ -649,6 +685,21 @@ function authHeadline(s: S, isRegistering: boolean, isRecovering: boolean): { au
|
|
|
649
685
|
authBody: copyParam("storeAccount.authBodyRegister", "Create a member account to continue — cart, bookings, RSVPs, and memberships stay with you."),
|
|
650
686
|
};
|
|
651
687
|
}
|
|
688
|
+
const contextual = intentHeadline(s);
|
|
689
|
+
if (s.sessionEnded && sessionEndedNoticeRequested) {
|
|
690
|
+
// A gate's own title stays ("Sign in to book"); the body says why they are signing in again.
|
|
691
|
+
return contextual
|
|
692
|
+
? { authTitle: contextual.authTitle, authBody: copyParam("storeAccount.sessionEndedBodyContext", "You've been signed out. Sign in again, then we’ll bring you back.") }
|
|
693
|
+
: sessionEndedHeadline();
|
|
694
|
+
}
|
|
695
|
+
return contextual ?? {
|
|
696
|
+
authTitle: copyParam("storeAccount.authTitle", "Welcome"),
|
|
697
|
+
authBody: copyParam("storeAccount.authBody", "Sign in to continue — cart, bookings, RSVPs, and memberships stay with you."),
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/** A mid-flow gate's headline (`authIntent`), or null for a plain sign-in. */
|
|
702
|
+
function intentHeadline(s: S): { authTitle: string; authBody: string } | null {
|
|
652
703
|
switch (s.authIntent) {
|
|
653
704
|
case "join_group":
|
|
654
705
|
return {
|
|
@@ -673,13 +724,18 @@ function authHeadline(s: S, isRegistering: boolean, isRecovering: boolean): { au
|
|
|
673
724
|
authBody: copyParam("storeAccount.authBodyPost", "Sign in to join the conversation, then we’ll bring you back."),
|
|
674
725
|
};
|
|
675
726
|
default:
|
|
676
|
-
return
|
|
677
|
-
authTitle: copyParam("storeAccount.authTitle", "Welcome"),
|
|
678
|
-
authBody: copyParam("storeAccount.authBody", "Sign in to continue — cart, bookings, RSVPs, and memberships stay with you."),
|
|
679
|
-
};
|
|
727
|
+
return null;
|
|
680
728
|
}
|
|
681
729
|
}
|
|
682
730
|
|
|
731
|
+
/** The member's session ended on its own: the form says why they are signing in again. */
|
|
732
|
+
function sessionEndedHeadline(): { authTitle: string; authBody: string } {
|
|
733
|
+
return {
|
|
734
|
+
authTitle: copyParam("storeAccount.sessionEndedTitle", "You've been signed out"),
|
|
735
|
+
authBody: copyParam("storeAccount.sessionEndedBody", "Sign in again to get back to your cart, orders, and bookings."),
|
|
736
|
+
};
|
|
737
|
+
}
|
|
738
|
+
|
|
683
739
|
interface S extends IapRestoreFields {
|
|
684
740
|
status: "loading" | "ready";
|
|
685
741
|
isMember: boolean;
|
|
@@ -784,6 +840,13 @@ interface S extends IapRestoreFields {
|
|
|
784
840
|
standalone: boolean;
|
|
785
841
|
/** Account only (appear param `pollIdentity: "1"`): re-read the session on a timer. */
|
|
786
842
|
pollIdentity: boolean;
|
|
843
|
+
/** The host says this visitor's member session ended on its own (`himi.wix.memberIdentity`'s
|
|
844
|
+
* `sessionEnded`): never after their own sign-out, gone once they sign in or dismiss it. */
|
|
845
|
+
sessionEnded: boolean;
|
|
846
|
+
/** Account's "You've been signed out" notice: hidden for a member, while loading, and with no ended session. */
|
|
847
|
+
hideSessionEnded: boolean;
|
|
848
|
+
/** The visitor edited the email field in this visit (a clear included): no pre-fill replaces it. */
|
|
849
|
+
emailTyped?: boolean;
|
|
787
850
|
}
|
|
788
851
|
|
|
789
852
|
// Restore purchases (App Review 3.1.1) for every vertical the app sells through the App Store. The
|
|
@@ -824,6 +887,7 @@ function derive(s: S): S {
|
|
|
824
887
|
greetingFirstName: name,
|
|
825
888
|
hideGuest: loading || !!s.isMember,
|
|
826
889
|
hideMember: loading || !s.isMember,
|
|
890
|
+
hideSessionEnded: loading || !!s.isMember || !s.sessionEnded,
|
|
827
891
|
password: "",
|
|
828
892
|
busyMessage: s.authBusy ? translated("auth.feedback.busy") : "",
|
|
829
893
|
isLoading: s.status === "loading",
|
|
@@ -906,6 +970,7 @@ async function cartItemCount(known: number): Promise<number> {
|
|
|
906
970
|
}
|
|
907
971
|
|
|
908
972
|
async function probe(s: S, arg?: unknown, config: AppearConfig = appearConfig(s, arg)): Promise<S> {
|
|
973
|
+
const dismissalsAtStart = sessionEndedDismissals;
|
|
909
974
|
memberAccountLinksRequested ||= s.memberAccountLinks || strField(arg, "memberAccountLinks") === "1";
|
|
910
975
|
// A new visit to the form reads its intent and return path from its own route only: the
|
|
911
976
|
// last visit's (an abandoned gate) must not be resumed by a plain sign-in.
|
|
@@ -917,7 +982,8 @@ async function probe(s: S, arg?: unknown, config: AppearConfig = appearConfig(s,
|
|
|
917
982
|
const cartCountRead = cartCountRequested ? cartItemCount(s.cartCount ?? 0) : Promise.resolve(s.cartCount ?? 0);
|
|
918
983
|
const socialRead: Promise<SocialProvidersRead> = standaloneRequested ? readSocialProviders() : Promise.resolve({ ok: false });
|
|
919
984
|
const flowsRead: Promise<MemberFlowsRead> = standaloneRequested ? readMemberFlows() : Promise.resolve({ ok: false, notReady: false });
|
|
920
|
-
const
|
|
985
|
+
const identity = await memberIdentity();
|
|
986
|
+
const profile = await loadMemberProfile(copyParam("storeAccount.guestDetail", "Sign in to keep your cart and orders connected."), identity);
|
|
921
987
|
const social = await socialRead;
|
|
922
988
|
applySocialProviders(social);
|
|
923
989
|
const flows = await flowsRead;
|
|
@@ -938,6 +1004,8 @@ async function probe(s: S, arg?: unknown, config: AppearConfig = appearConfig(s,
|
|
|
938
1004
|
}
|
|
939
1005
|
}
|
|
940
1006
|
const cartCount = await cartCountRead;
|
|
1007
|
+
// After every await: a Dismiss that landed meanwhile wins over this probe's earlier read.
|
|
1008
|
+
const sessionEnded = !profile.isMember && identity.sessionEnded && dismissalsAtStart === sessionEndedDismissals;
|
|
941
1009
|
return derive({
|
|
942
1010
|
...s,
|
|
943
1011
|
...intent,
|
|
@@ -953,11 +1021,15 @@ async function probe(s: S, arg?: unknown, config: AppearConfig = appearConfig(s,
|
|
|
953
1021
|
hasMemberImage: profile.hasMemberImage,
|
|
954
1022
|
noMemberImage: profile.noMemberImage,
|
|
955
1023
|
email: profile.memberEmail || s.email,
|
|
1024
|
+
sessionEnded,
|
|
956
1025
|
message: "",
|
|
957
1026
|
memberAccountLinks,
|
|
958
1027
|
...appearBase(),
|
|
959
1028
|
...config.mode,
|
|
960
1029
|
...config.visit,
|
|
1030
|
+
// After the visit reset: the ended session's email fills an empty or still-pre-filled field,
|
|
1031
|
+
// never what was typed.
|
|
1032
|
+
...endedSessionEmail(sessionEnded, config.visit.email === "" ? false : !!s.emailTyped, identity.lastEmail),
|
|
961
1033
|
noMemberAddresses: !routes.addresses,
|
|
962
1034
|
noMemberWallet: !routes.wallet,
|
|
963
1035
|
activityRows,
|
|
@@ -971,6 +1043,12 @@ async function probe(s: S, arg?: unknown, config: AppearConfig = appearConfig(s,
|
|
|
971
1043
|
});
|
|
972
1044
|
}
|
|
973
1045
|
|
|
1046
|
+
/** An ended session's email fills the field until the visitor edits it in this visit (`setEmail`, a
|
|
1047
|
+
* clear included); state, so a discarded probe changes nothing. */
|
|
1048
|
+
function endedSessionEmail(sessionEnded: boolean, typed: boolean, lastEmail: string): Partial<S> {
|
|
1049
|
+
return sessionEnded && !typed && sessionEndedNoticeRequested ? { email: lastEmail } : {};
|
|
1050
|
+
}
|
|
1051
|
+
|
|
974
1052
|
function completedAuth(s: S): S {
|
|
975
1053
|
return derive({
|
|
976
1054
|
...s,
|
|
@@ -989,6 +1067,7 @@ const svc = defineService<S, {
|
|
|
989
1067
|
submit: (s: S) => Promise<S | undefined>;
|
|
990
1068
|
load: (s: S, arg?: unknown) => Promise<S>;
|
|
991
1069
|
refresh: (s: S, arg?: unknown) => Promise<S>;
|
|
1070
|
+
clearFormEmail: (s: S) => S;
|
|
992
1071
|
setEmail: (s: S, arg?: unknown) => S;
|
|
993
1072
|
setPassword: (s: S, arg?: unknown) => S;
|
|
994
1073
|
setFirstName: (s: S, arg?: unknown) => S;
|
|
@@ -1004,13 +1083,18 @@ const svc = defineService<S, {
|
|
|
1004
1083
|
signInWithSocial: (s: S, arg?: unknown) => Promise<S | undefined>;
|
|
1005
1084
|
refreshSocial: (s: S) => Promise<S>;
|
|
1006
1085
|
signOut: (s: S) => Promise<S>;
|
|
1086
|
+
dismissSessionEnded: (s: S) => Promise<S>;
|
|
1007
1087
|
sync: (s: S) => Promise<S | undefined>;
|
|
1008
1088
|
openMember: (s: S, arg?: unknown) => Promise<S>;
|
|
1009
1089
|
leave: (s: S) => S;
|
|
1010
1090
|
restorePublish: (s: S) => S;
|
|
1011
1091
|
iapRestore: (s: S) => Promise<undefined>;
|
|
1012
1092
|
}>("himiStoreAccount", {
|
|
1013
|
-
|
|
1093
|
+
// The form's email is never stored: after an ended session it is the former member's address, and a
|
|
1094
|
+
// visitor's snapshot is the shared `default` account's.
|
|
1095
|
+
// Nor the headline: a stored "You've been signed out" would paint again after a dismissal.
|
|
1096
|
+
notPersisted: ["email", "emailTyped", "authTitle", "authBody"],
|
|
1097
|
+
notHydrated: ["sessionEnded", "hideSessionEnded", "email", "emailTyped", "message", "hideMessage", "messageKind", "resetSent", "password", "authBusy", "hideAppleSignIn", "hideAppleSystemButton", "hideAppleLegacyButton", "hideGoogleSignIn", "hideSocialSignIn", "emailError", "passwordError", "passwordFocus", "lastNameFocus", "emailFocus", ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, ...IAP_RESTORE_KEYS],
|
|
1014
1098
|
state: derive({
|
|
1015
1099
|
status: "loading",
|
|
1016
1100
|
isMember: false,
|
|
@@ -1077,22 +1161,39 @@ const svc = defineService<S, {
|
|
|
1077
1161
|
signInScreen: "",
|
|
1078
1162
|
standalone: false,
|
|
1079
1163
|
pollIdentity: false,
|
|
1164
|
+
sessionEnded: false,
|
|
1165
|
+
hideSessionEnded: true,
|
|
1080
1166
|
...NO_IAP_RESTORE,
|
|
1081
1167
|
}),
|
|
1082
1168
|
actions: {
|
|
1083
1169
|
submit: (s): Promise<S | undefined> => s.isRecovering ? svc.resetPassword() : authenticate(s, s.isRegistering ? "register" : "signIn"),
|
|
1084
1170
|
beginAuth: (s) => derive({ ...s, authBusy: true, message: "", emailError: "", passwordError: "" }),
|
|
1085
1171
|
load: async (s, arg): Promise<S> => { stashScreenCopy(arg); return afterProbe(await freshProbe(s, arg), arg); },
|
|
1086
|
-
refresh: async (s, arg): Promise<S> => {
|
|
1172
|
+
refresh: async (s, arg): Promise<S> => {
|
|
1173
|
+
stashScreenCopy(arg);
|
|
1174
|
+
// A new visit to the form: its bound email field must not show the last visitor's address, nor its
|
|
1175
|
+
// headline the last visit's notice, while this visit's identity read is still on its way.
|
|
1176
|
+
const reopened = strField(arg, "standalone") === "1" && (!!s.email || !!s.emailTyped || !!s.sessionEnded);
|
|
1177
|
+
if (reopened) await svc.clearFormEmail();
|
|
1178
|
+
const start = reopened ? svc.getState() : s;
|
|
1179
|
+
return afterProbe(await freshProbe(start, arg), arg);
|
|
1180
|
+
},
|
|
1181
|
+
// Also drops any probe still in flight: it started before this visit and would put the old address back.
|
|
1182
|
+
// And the last visit's notice: this visit's read says whether the session ended (it may have been dismissed).
|
|
1183
|
+
clearFormEmail: (s) => { visitsApplied++; return derive({ ...s, email: "", emailTyped: false, sessionEnded: false }); },
|
|
1087
1184
|
// Idle ticks return undefined, so an unchanged session costs no re-render.
|
|
1088
1185
|
sync: async (s): Promise<S | undefined> => {
|
|
1089
1186
|
if (authInFlight) return undefined;
|
|
1090
|
-
const
|
|
1187
|
+
const identity = await memberIdentity();
|
|
1188
|
+
const email = identity.email.toLowerCase();
|
|
1091
1189
|
// An empty read during a poll is a failed read as often as a sign-out (a network blip,
|
|
1092
1190
|
// a 5xx): it never turns a member into a guest. Account's own Sign out, and the next
|
|
1093
|
-
// appear refresh, handle a real sign-out.
|
|
1094
|
-
|
|
1095
|
-
if (email
|
|
1191
|
+
// appear refresh, handle a real sign-out. A host that says the session ENDED is not a
|
|
1192
|
+
// failed read: the member is a visitor now and is told so.
|
|
1193
|
+
if (!email && s.isMember && !identity.sessionEnded) return undefined;
|
|
1194
|
+
// A notice that arrived after the last paint (the provider was wired after Account first read
|
|
1195
|
+
// identity) is a change too.
|
|
1196
|
+
if (email === s.memberEmail.toLowerCase() && !!email === s.isMember && identity.sessionEnded === !!s.sessionEnded) return undefined;
|
|
1096
1197
|
const r = await freshProbe(s);
|
|
1097
1198
|
return "next" in r ? r.next : undefined;
|
|
1098
1199
|
},
|
|
@@ -1116,7 +1217,7 @@ const svc = defineService<S, {
|
|
|
1116
1217
|
// A setter given the value it already has is not an edit: a hidden form's secure field
|
|
1117
1218
|
// clears itself on unmount (setPassword("")), and counting that would drop the probe
|
|
1118
1219
|
// that is about to move a member off the form.
|
|
1119
|
-
setEmail: (s, arg) => { if (strOf(arg).trim() === s.email) return s; editRevision++; const next = { ...s, ...TYPED, email: strOf(arg).trim(), message: "" }; return derive({ ...next, emailError: s.emailError ? (identityErrors({ email: next.email }, "reset").email ? translated(identityErrors({ email: next.email }, "reset").email!) : "") : "" }); },
|
|
1220
|
+
setEmail: (s, arg) => { if (strOf(arg).trim() === s.email) return s; editRevision++; const next = { ...s, ...TYPED, email: strOf(arg).trim(), emailTyped: true, message: "" }; emailEdits++; return derive({ ...next, emailError: s.emailError ? (identityErrors({ email: next.email }, "reset").email ? translated(identityErrors({ email: next.email }, "reset").email!) : "") : "" }); },
|
|
1120
1221
|
setPassword: (s, arg) => { if (strOf(arg) === passwordDraft) return s; editRevision++; passwordDraft = strOf(arg); return derive({ ...s, ...TYPED, message: "", passwordError: s.passwordError && !passwordDraft ? translated("auth.validation.passwordRequired") : "" }); },
|
|
1121
1222
|
setFirstName: (s, arg) => { if (strOf(arg) === s.firstName) return s; editRevision++; return derive({ ...s, ...TYPED, firstName: strOf(arg), message: "" }); },
|
|
1122
1223
|
setLastName: (s, arg) => { if (strOf(arg) === s.lastName) return s; editRevision++; return derive({ ...s, ...TYPED, lastName: strOf(arg), message: "" }); },
|
|
@@ -1171,6 +1272,7 @@ const svc = defineService<S, {
|
|
|
1171
1272
|
...guest,
|
|
1172
1273
|
status: "ready" as const,
|
|
1173
1274
|
isMember: false,
|
|
1275
|
+
sessionEnded: false,
|
|
1174
1276
|
isRegistering: false,
|
|
1175
1277
|
isRecovering: false,
|
|
1176
1278
|
message: "",
|
|
@@ -1193,12 +1295,19 @@ const svc = defineService<S, {
|
|
|
1193
1295
|
};
|
|
1194
1296
|
return derive(cleared);
|
|
1195
1297
|
},
|
|
1298
|
+
// The notice's dismiss: hidden at once, and the host forgets it (an older host has no such verb).
|
|
1299
|
+
dismissSessionEnded: async (): Promise<S> => {
|
|
1300
|
+
sessionEndedDismissals++;
|
|
1301
|
+
try { await dispatch("himi.wix.dismissSessionEnded"); } catch { /* ignore */ }
|
|
1302
|
+
sessionEndedDismissals++;
|
|
1303
|
+
return derive({ ...svc.getState(), sessionEnded: false });
|
|
1304
|
+
},
|
|
1196
1305
|
restorePublish: (s) => derive(s),
|
|
1197
1306
|
iapRestore: async () => { await restore.run(); return undefined; },
|
|
1198
1307
|
},
|
|
1199
1308
|
});
|
|
1200
1309
|
|
|
1201
|
-
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", "hideAppleSystemButton", "hideAppleLegacyButton", "hideGoogleSignIn", "hideSocialSignIn", ...IAP_RESTORE_KEYS, ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, "lastNameFocus", "emailFocus", "passwordFocus"]);
|
|
1310
|
+
resetUnhydratedKeysOnOlderRuntime(svc, derive({ ...svc.getState(), ...NO_IAP_RESTORE, ...NO_VISIT, ...NO_FOCUS_ALL, message: "", resetSent: false, passwordFocus: "", isRegistering: ROUTE_ASKS_REGISTER, sessionEnded: false }), ["sessionEnded", "hideSessionEnded", "message", "hideMessage", "messageKind", "resetSent", "hideAppleSignIn", "hideAppleSystemButton", "hideAppleLegacyButton", "hideGoogleSignIn", "hideSocialSignIn", ...IAP_RESTORE_KEYS, ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, "lastNameFocus", "emailFocus", "passwordFocus"]);
|
|
1202
1311
|
// `boot` tells settle this is not a visit: the host drops this call's navigation, and the
|
|
1203
1312
|
// appear refresh does the visit's moves.
|
|
1204
1313
|
svc.load({ boot: "1" });
|
|
@@ -3056,6 +3056,86 @@ const SCREENS = runtimeSetting({
|
|
|
3056
3056
|
"spacing": 0,
|
|
3057
3057
|
"alignment": "leading",
|
|
3058
3058
|
"children": [
|
|
3059
|
+
{
|
|
3060
|
+
"id": "himi_account.session_ended",
|
|
3061
|
+
"body": {
|
|
3062
|
+
"package": "himalaya",
|
|
3063
|
+
"type": "VStack",
|
|
3064
|
+
"props": {
|
|
3065
|
+
"spacing": 4,
|
|
3066
|
+
"alignment": "leading",
|
|
3067
|
+
"children": [
|
|
3068
|
+
{
|
|
3069
|
+
"id": "himi_account.session_ended_banner",
|
|
3070
|
+
"body": {
|
|
3071
|
+
"package": "himalaya",
|
|
3072
|
+
"type": "Banner",
|
|
3073
|
+
"props": {
|
|
3074
|
+
"severity": "info",
|
|
3075
|
+
"title": "You've been signed out.",
|
|
3076
|
+
"message": "Sign in again."
|
|
3077
|
+
}
|
|
3078
|
+
}
|
|
3079
|
+
},
|
|
3080
|
+
{
|
|
3081
|
+
"id": "",
|
|
3082
|
+
"body": {
|
|
3083
|
+
"package": "himalaya",
|
|
3084
|
+
"type": "HStack",
|
|
3085
|
+
"props": {
|
|
3086
|
+
"spacing": 8,
|
|
3087
|
+
"alignment": "center",
|
|
3088
|
+
"children": [
|
|
3089
|
+
{
|
|
3090
|
+
"id": "himi_account.session_ended_signin",
|
|
3091
|
+
"body": {
|
|
3092
|
+
"package": "himalaya",
|
|
3093
|
+
"type": "Button",
|
|
3094
|
+
"props": {
|
|
3095
|
+
"title": "Sign in",
|
|
3096
|
+
"style": "primary",
|
|
3097
|
+
"action": {
|
|
3098
|
+
"actionId": "himi.open",
|
|
3099
|
+
"params": {
|
|
3100
|
+
"screenId": "himi_sign_in",
|
|
3101
|
+
"mode": "signin",
|
|
3102
|
+
"modal": "1",
|
|
3103
|
+
"sheetStyle": "page"
|
|
3104
|
+
},
|
|
3105
|
+
"presentation": "sheet"
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3108
|
+
}
|
|
3109
|
+
},
|
|
3110
|
+
{
|
|
3111
|
+
"id": "himi_account.session_ended_dismiss",
|
|
3112
|
+
"body": {
|
|
3113
|
+
"package": "himalaya",
|
|
3114
|
+
"type": "Button",
|
|
3115
|
+
"props": {
|
|
3116
|
+
"title": "Dismiss",
|
|
3117
|
+
"style": "plain",
|
|
3118
|
+
"action": {
|
|
3119
|
+
"actionId": "tier5.himiStoreAccount.dismissSessionEnded"
|
|
3120
|
+
}
|
|
3121
|
+
}
|
|
3122
|
+
}
|
|
3123
|
+
}
|
|
3124
|
+
]
|
|
3125
|
+
}
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
]
|
|
3129
|
+
}
|
|
3130
|
+
},
|
|
3131
|
+
"modifiers": {
|
|
3132
|
+
"fillMaxWidth": true,
|
|
3133
|
+
"padding": {
|
|
3134
|
+
"bottom": 16
|
|
3135
|
+
},
|
|
3136
|
+
"hiddenPath": "$service:himiStoreAccount.hideSessionEnded"
|
|
3137
|
+
}
|
|
3138
|
+
},
|
|
3059
3139
|
{
|
|
3060
3140
|
"id": "himi_account.title",
|
|
3061
3141
|
"body": {
|
|
@@ -8895,6 +8975,7 @@ const SCREENS = runtimeSetting({
|
|
|
8895
8975
|
},
|
|
8896
8976
|
"autoCapitalization": "none",
|
|
8897
8977
|
"focusPath": "$service:himiStoreAccount.emailFocus",
|
|
8978
|
+
"valuePath": "$service:himiStoreAccount.email",
|
|
8898
8979
|
"onChange": {
|
|
8899
8980
|
"actionId": "tier5.himiStoreAccount.setEmail"
|
|
8900
8981
|
}
|
|
@@ -9156,6 +9237,7 @@ const SCREENS = runtimeSetting({
|
|
|
9156
9237
|
"actionId": "tier5.himiStoreAccount.refresh",
|
|
9157
9238
|
"params": {
|
|
9158
9239
|
"standalone": "1",
|
|
9240
|
+
"sessionEndedNotice": "1",
|
|
9159
9241
|
"copy": "{\"account.subtitle\":\"Orders, bookings, RSVPs, memberships and saved content in one place.\",\"storeAccount.authBody\":\"Sign in to continue — cart, bookings, RSVPs and memberships stay with you.\",\"storeAccount.authBodyRegister\":\"Create a member account to continue — cart, bookings, RSVPs and memberships stay with you.\"}"
|
|
9160
9242
|
}
|
|
9161
9243
|
}
|
|
@@ -2246,6 +2246,24 @@
|
|
|
2246
2246
|
"translation": "تم حفظ اختياراتك أدناه، لكن لن يصل أي شيء حتى يتم السماح بالإشعارات على هذا الهاتف.",
|
|
2247
2247
|
"origin": "machine"
|
|
2248
2248
|
},
|
|
2249
|
+
"h_6d78b9cbbce4": {
|
|
2250
|
+
"key": "account.sessionEndedTitle",
|
|
2251
|
+
"source": "You've been signed out.",
|
|
2252
|
+
"translation": "تم تسجيل خروجك.",
|
|
2253
|
+
"origin": "machine"
|
|
2254
|
+
},
|
|
2255
|
+
"h_7ac02c7b6f0e": {
|
|
2256
|
+
"key": "account.sessionEndedBody",
|
|
2257
|
+
"source": "Sign in again.",
|
|
2258
|
+
"translation": "سجّل الدخول مرة أخرى.",
|
|
2259
|
+
"origin": "machine"
|
|
2260
|
+
},
|
|
2261
|
+
"h_70afe9eff3f2": {
|
|
2262
|
+
"key": "account.sessionEndedDismiss",
|
|
2263
|
+
"source": "Dismiss",
|
|
2264
|
+
"translation": "إغلاق",
|
|
2265
|
+
"origin": "machine"
|
|
2266
|
+
},
|
|
2249
2267
|
"h_1e9b74b4dda5": {
|
|
2250
2268
|
"source": "Show all ({count})",
|
|
2251
2269
|
"translation": "عرض الكل ({count})",
|
|
@@ -5585,6 +5603,21 @@
|
|
|
5585
5603
|
"source": "Change notifications for this app in your phone's settings.",
|
|
5586
5604
|
"translation": "غيّر إشعارات هذا التطبيق من إعدادات هاتفك.",
|
|
5587
5605
|
"origin": "machine"
|
|
5606
|
+
},
|
|
5607
|
+
"h_7dece819a35c": {
|
|
5608
|
+
"source": "You've been signed out",
|
|
5609
|
+
"translation": "تم تسجيل خروجك",
|
|
5610
|
+
"origin": "machine"
|
|
5611
|
+
},
|
|
5612
|
+
"h_cf70d2b54929": {
|
|
5613
|
+
"source": "Sign in again to get back to your cart, orders, and bookings.",
|
|
5614
|
+
"translation": "سجّل الدخول مرة أخرى للعودة إلى سلة التسوق والطلبات والحجوزات.",
|
|
5615
|
+
"origin": "machine"
|
|
5616
|
+
},
|
|
5617
|
+
"h_2c06d2d00d31": {
|
|
5618
|
+
"source": "You've been signed out. Sign in again, then we’ll bring you back.",
|
|
5619
|
+
"translation": "تم تسجيل خروجك. سجّل الدخول مرة أخرى، ثم سنعيدك إلى هنا.",
|
|
5620
|
+
"origin": "machine"
|
|
5588
5621
|
}
|
|
5589
5622
|
}
|
|
5590
5623
|
}
|
|
@@ -2246,6 +2246,24 @@
|
|
|
2246
2246
|
"translation": "Vaše volby níže jsou uložené, ale nic nedorazí, dokud nebudou oznámení v tomto telefonu povolena.",
|
|
2247
2247
|
"origin": "machine"
|
|
2248
2248
|
},
|
|
2249
|
+
"h_6d78b9cbbce4": {
|
|
2250
|
+
"key": "account.sessionEndedTitle",
|
|
2251
|
+
"source": "You've been signed out.",
|
|
2252
|
+
"translation": "Byli jste odhlášeni.",
|
|
2253
|
+
"origin": "machine"
|
|
2254
|
+
},
|
|
2255
|
+
"h_7ac02c7b6f0e": {
|
|
2256
|
+
"key": "account.sessionEndedBody",
|
|
2257
|
+
"source": "Sign in again.",
|
|
2258
|
+
"translation": "Přihlaste se znovu.",
|
|
2259
|
+
"origin": "machine"
|
|
2260
|
+
},
|
|
2261
|
+
"h_70afe9eff3f2": {
|
|
2262
|
+
"key": "account.sessionEndedDismiss",
|
|
2263
|
+
"source": "Dismiss",
|
|
2264
|
+
"translation": "Zavřít",
|
|
2265
|
+
"origin": "machine"
|
|
2266
|
+
},
|
|
2249
2267
|
"h_1e9b74b4dda5": {
|
|
2250
2268
|
"source": "Show all ({count})",
|
|
2251
2269
|
"translation": "Zobrazit vše ({count})",
|
|
@@ -5585,6 +5603,21 @@
|
|
|
5585
5603
|
"source": "Change notifications for this app in your phone's settings.",
|
|
5586
5604
|
"translation": "Oznámení této aplikace změníte v nastavení telefonu.",
|
|
5587
5605
|
"origin": "machine"
|
|
5606
|
+
},
|
|
5607
|
+
"h_7dece819a35c": {
|
|
5608
|
+
"source": "You've been signed out",
|
|
5609
|
+
"translation": "Byli jste odhlášeni",
|
|
5610
|
+
"origin": "machine"
|
|
5611
|
+
},
|
|
5612
|
+
"h_cf70d2b54929": {
|
|
5613
|
+
"source": "Sign in again to get back to your cart, orders, and bookings.",
|
|
5614
|
+
"translation": "Přihlaste se znovu a vraťte se ke košíku, objednávkám a rezervacím.",
|
|
5615
|
+
"origin": "machine"
|
|
5616
|
+
},
|
|
5617
|
+
"h_2c06d2d00d31": {
|
|
5618
|
+
"source": "You've been signed out. Sign in again, then we’ll bring you back.",
|
|
5619
|
+
"translation": "Byli jste odhlášeni. Přihlaste se znovu a vrátíme vás zpět.",
|
|
5620
|
+
"origin": "machine"
|
|
5588
5621
|
}
|
|
5589
5622
|
}
|
|
5590
5623
|
}
|
|
@@ -2246,6 +2246,24 @@
|
|
|
2246
2246
|
"translation": "Dine valg nedenfor er gemt, men intet kommer frem, før notifikationer er tilladt på denne telefon.",
|
|
2247
2247
|
"origin": "machine"
|
|
2248
2248
|
},
|
|
2249
|
+
"h_6d78b9cbbce4": {
|
|
2250
|
+
"key": "account.sessionEndedTitle",
|
|
2251
|
+
"source": "You've been signed out.",
|
|
2252
|
+
"translation": "Du er blevet logget ud.",
|
|
2253
|
+
"origin": "machine"
|
|
2254
|
+
},
|
|
2255
|
+
"h_7ac02c7b6f0e": {
|
|
2256
|
+
"key": "account.sessionEndedBody",
|
|
2257
|
+
"source": "Sign in again.",
|
|
2258
|
+
"translation": "Log ind igen.",
|
|
2259
|
+
"origin": "machine"
|
|
2260
|
+
},
|
|
2261
|
+
"h_70afe9eff3f2": {
|
|
2262
|
+
"key": "account.sessionEndedDismiss",
|
|
2263
|
+
"source": "Dismiss",
|
|
2264
|
+
"translation": "Luk",
|
|
2265
|
+
"origin": "machine"
|
|
2266
|
+
},
|
|
2249
2267
|
"h_1e9b74b4dda5": {
|
|
2250
2268
|
"source": "Show all ({count})",
|
|
2251
2269
|
"translation": "Vis alle ({count})",
|
|
@@ -5585,6 +5603,21 @@
|
|
|
5585
5603
|
"source": "Change notifications for this app in your phone's settings.",
|
|
5586
5604
|
"translation": "Skift notifikationer for denne app i telefonens indstillinger.",
|
|
5587
5605
|
"origin": "machine"
|
|
5606
|
+
},
|
|
5607
|
+
"h_7dece819a35c": {
|
|
5608
|
+
"source": "You've been signed out",
|
|
5609
|
+
"translation": "Du er blevet logget ud",
|
|
5610
|
+
"origin": "machine"
|
|
5611
|
+
},
|
|
5612
|
+
"h_cf70d2b54929": {
|
|
5613
|
+
"source": "Sign in again to get back to your cart, orders, and bookings.",
|
|
5614
|
+
"translation": "Log ind igen for at komme tilbage til din kurv, dine ordrer og bookinger.",
|
|
5615
|
+
"origin": "machine"
|
|
5616
|
+
},
|
|
5617
|
+
"h_2c06d2d00d31": {
|
|
5618
|
+
"source": "You've been signed out. Sign in again, then we’ll bring you back.",
|
|
5619
|
+
"translation": "Du er blevet logget ud. Log ind igen, så sender vi dig tilbage.",
|
|
5620
|
+
"origin": "machine"
|
|
5588
5621
|
}
|
|
5589
5622
|
}
|
|
5590
5623
|
}
|
|
@@ -2246,6 +2246,24 @@
|
|
|
2246
2246
|
"translation": "Deine Auswahl unten ist gespeichert, aber es kommt nichts an, bis Benachrichtigungen auf diesem Telefon erlaubt sind.",
|
|
2247
2247
|
"origin": "machine"
|
|
2248
2248
|
},
|
|
2249
|
+
"h_6d78b9cbbce4": {
|
|
2250
|
+
"key": "account.sessionEndedTitle",
|
|
2251
|
+
"source": "You've been signed out.",
|
|
2252
|
+
"translation": "Du wurdest abgemeldet.",
|
|
2253
|
+
"origin": "machine"
|
|
2254
|
+
},
|
|
2255
|
+
"h_7ac02c7b6f0e": {
|
|
2256
|
+
"key": "account.sessionEndedBody",
|
|
2257
|
+
"source": "Sign in again.",
|
|
2258
|
+
"translation": "Melde dich erneut an.",
|
|
2259
|
+
"origin": "machine"
|
|
2260
|
+
},
|
|
2261
|
+
"h_70afe9eff3f2": {
|
|
2262
|
+
"key": "account.sessionEndedDismiss",
|
|
2263
|
+
"source": "Dismiss",
|
|
2264
|
+
"translation": "Schließen",
|
|
2265
|
+
"origin": "machine"
|
|
2266
|
+
},
|
|
2249
2267
|
"h_1e9b74b4dda5": {
|
|
2250
2268
|
"source": "Show all ({count})",
|
|
2251
2269
|
"translation": "Alle anzeigen ({count})",
|
|
@@ -5585,6 +5603,21 @@
|
|
|
5585
5603
|
"source": "Change notifications for this app in your phone's settings.",
|
|
5586
5604
|
"translation": "Ändere die Benachrichtigungen dieser App in den Einstellungen deines Telefons.",
|
|
5587
5605
|
"origin": "machine"
|
|
5606
|
+
},
|
|
5607
|
+
"h_7dece819a35c": {
|
|
5608
|
+
"source": "You've been signed out",
|
|
5609
|
+
"translation": "Du wurdest abgemeldet",
|
|
5610
|
+
"origin": "machine"
|
|
5611
|
+
},
|
|
5612
|
+
"h_cf70d2b54929": {
|
|
5613
|
+
"source": "Sign in again to get back to your cart, orders, and bookings.",
|
|
5614
|
+
"translation": "Melde dich erneut an, um zu deinem Warenkorb, deinen Bestellungen und Buchungen zurückzukehren.",
|
|
5615
|
+
"origin": "machine"
|
|
5616
|
+
},
|
|
5617
|
+
"h_2c06d2d00d31": {
|
|
5618
|
+
"source": "You've been signed out. Sign in again, then we’ll bring you back.",
|
|
5619
|
+
"translation": "Du wurdest abgemeldet. Melde dich erneut an, dann bringen wir dich zurück.",
|
|
5620
|
+
"origin": "machine"
|
|
5588
5621
|
}
|
|
5589
5622
|
}
|
|
5590
5623
|
}
|