@wix/himalaya-cli 0.1866.0 → 0.1867.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/stdlib/flows/auth/src/copy.generated.d.ts +17 -7
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/feedback.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/auth.mjs +55 -11
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +55 -11
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{a60c092217d4c21970ff66e8b63221007e49d0792eb9d5fe66238f8efbce884a.bin → 4a8928bb82fc0db03269e14445bfc09155ceb3cde1f268162ac70b7ceb097b1f.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +44 -42
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/designing-himi-screens.md +1 -0
- package/package.json +2 -2
- package/templates/bare-fashion/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/beauty-salon/dev/index.ts +122 -8
- package/templates/beauty-salon/l10n/ar.json +5 -0
- package/templates/beauty-salon/l10n/cs.json +5 -0
- package/templates/beauty-salon/l10n/da.json +5 -0
- package/templates/beauty-salon/l10n/de.json +5 -0
- package/templates/beauty-salon/l10n/el.json +5 -0
- package/templates/beauty-salon/l10n/en.json +1 -1
- package/templates/beauty-salon/l10n/es.json +5 -0
- package/templates/beauty-salon/l10n/fi.json +5 -0
- package/templates/beauty-salon/l10n/fr.json +5 -0
- package/templates/beauty-salon/l10n/he.json +4 -0
- package/templates/beauty-salon/l10n/hu.json +5 -0
- package/templates/beauty-salon/l10n/id.json +5 -0
- package/templates/beauty-salon/l10n/it.json +5 -0
- package/templates/beauty-salon/l10n/ja.json +5 -0
- package/templates/beauty-salon/l10n/ko.json +5 -0
- package/templates/beauty-salon/l10n/lt.json +5 -0
- package/templates/beauty-salon/l10n/nl.json +5 -0
- package/templates/beauty-salon/l10n/no.json +5 -0
- package/templates/beauty-salon/l10n/pl.json +5 -0
- package/templates/beauty-salon/l10n/pt.json +5 -0
- package/templates/beauty-salon/l10n/ru.json +5 -0
- package/templates/beauty-salon/l10n/sv.json +5 -0
- package/templates/beauty-salon/l10n/th.json +5 -0
- package/templates/beauty-salon/l10n/tr.json +5 -0
- package/templates/beauty-salon/l10n/uk.json +5 -0
- package/templates/beauty-salon/l10n/vi.json +5 -0
- package/templates/beauty-salon/l10n/zh.json +5 -0
- package/templates/beauty-salon/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/beauty-salon-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/branded-lite/dev/index.ts +732 -583
- package/templates/branded-lite/l10n/ar.json +5 -0
- package/templates/branded-lite/l10n/cs.json +5 -0
- package/templates/branded-lite/l10n/da.json +5 -0
- package/templates/branded-lite/l10n/de.json +5 -0
- package/templates/branded-lite/l10n/el.json +5 -0
- package/templates/branded-lite/l10n/en.json +2 -2
- package/templates/branded-lite/l10n/es.json +5 -0
- package/templates/branded-lite/l10n/fi.json +5 -0
- package/templates/branded-lite/l10n/fr.json +5 -0
- package/templates/branded-lite/l10n/he.json +4 -0
- package/templates/branded-lite/l10n/hu.json +5 -0
- package/templates/branded-lite/l10n/id.json +5 -0
- package/templates/branded-lite/l10n/it.json +5 -0
- package/templates/branded-lite/l10n/ja.json +5 -0
- package/templates/branded-lite/l10n/ko.json +5 -0
- package/templates/branded-lite/l10n/lt.json +5 -0
- package/templates/branded-lite/l10n/nl.json +5 -0
- package/templates/branded-lite/l10n/no.json +5 -0
- package/templates/branded-lite/l10n/pl.json +5 -0
- package/templates/branded-lite/l10n/pt.json +5 -0
- package/templates/branded-lite/l10n/ru.json +5 -0
- package/templates/branded-lite/l10n/sv.json +5 -0
- package/templates/branded-lite/l10n/th.json +5 -0
- package/templates/branded-lite/l10n/tr.json +5 -0
- package/templates/branded-lite/l10n/uk.json +5 -0
- package/templates/branded-lite/l10n/vi.json +5 -0
- package/templates/branded-lite/l10n/zh.json +5 -0
- package/templates/branded-lite/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/branded-lite/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/branded-lite/tier5-src/business-chat/index.ts +20 -6
- package/templates/branded-lite/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/brandy/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/brandy/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/community-club/dev/index.ts +122 -8
- package/templates/community-club/l10n/ar.json +10 -0
- package/templates/community-club/l10n/cs.json +10 -0
- package/templates/community-club/l10n/da.json +10 -0
- package/templates/community-club/l10n/de.json +10 -0
- package/templates/community-club/l10n/el.json +10 -0
- package/templates/community-club/l10n/en.json +1 -1
- package/templates/community-club/l10n/es.json +10 -0
- package/templates/community-club/l10n/fi.json +10 -0
- package/templates/community-club/l10n/fr.json +10 -0
- package/templates/community-club/l10n/he.json +8 -0
- package/templates/community-club/l10n/hu.json +10 -0
- package/templates/community-club/l10n/id.json +10 -0
- package/templates/community-club/l10n/it.json +10 -0
- package/templates/community-club/l10n/ja.json +10 -0
- package/templates/community-club/l10n/ko.json +10 -0
- package/templates/community-club/l10n/lt.json +10 -0
- package/templates/community-club/l10n/nl.json +10 -0
- package/templates/community-club/l10n/no.json +10 -0
- package/templates/community-club/l10n/pl.json +10 -0
- package/templates/community-club/l10n/pt.json +10 -0
- package/templates/community-club/l10n/ru.json +10 -0
- package/templates/community-club/l10n/sv.json +10 -0
- package/templates/community-club/l10n/th.json +10 -0
- package/templates/community-club/l10n/tr.json +10 -0
- package/templates/community-club/l10n/uk.json +10 -0
- package/templates/community-club/l10n/vi.json +10 -0
- package/templates/community-club/l10n/zh.json +10 -0
- package/templates/community-club/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/community-club/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/community-club-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/conference/dev/index.ts +744 -595
- package/templates/conference/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/conference/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/conference/tier5-src/business-chat/index.ts +20 -6
- package/templates/conference/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/events-meetups/dev/index.ts +122 -8
- package/templates/events-meetups/l10n/ar.json +10 -0
- package/templates/events-meetups/l10n/cs.json +10 -0
- package/templates/events-meetups/l10n/da.json +10 -0
- package/templates/events-meetups/l10n/de.json +10 -0
- package/templates/events-meetups/l10n/el.json +10 -0
- package/templates/events-meetups/l10n/en.json +1 -1
- package/templates/events-meetups/l10n/es.json +10 -0
- package/templates/events-meetups/l10n/fi.json +10 -0
- package/templates/events-meetups/l10n/fr.json +10 -0
- package/templates/events-meetups/l10n/he.json +8 -0
- package/templates/events-meetups/l10n/hu.json +10 -0
- package/templates/events-meetups/l10n/id.json +10 -0
- package/templates/events-meetups/l10n/it.json +10 -0
- package/templates/events-meetups/l10n/ja.json +10 -0
- package/templates/events-meetups/l10n/ko.json +10 -0
- package/templates/events-meetups/l10n/lt.json +10 -0
- package/templates/events-meetups/l10n/nl.json +10 -0
- package/templates/events-meetups/l10n/no.json +10 -0
- package/templates/events-meetups/l10n/pl.json +10 -0
- package/templates/events-meetups/l10n/pt.json +10 -0
- package/templates/events-meetups/l10n/ru.json +10 -0
- package/templates/events-meetups/l10n/sv.json +10 -0
- package/templates/events-meetups/l10n/th.json +10 -0
- package/templates/events-meetups/l10n/tr.json +10 -0
- package/templates/events-meetups/l10n/uk.json +10 -0
- package/templates/events-meetups/l10n/vi.json +10 -0
- package/templates/events-meetups/l10n/zh.json +10 -0
- package/templates/events-meetups/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/events-meetups/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/events-meetups-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/fitness-gym/dev/index.ts +743 -507
- package/templates/fitness-gym/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/fitness-gym/tier5-src/business-chat/index.ts +20 -6
- package/templates/fitness-gym/tier5-src/himi-booking-account/index.ts +14 -3
- package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/gym-fitness/dev/index.ts +122 -8
- package/templates/gym-fitness/l10n/ar.json +5 -0
- package/templates/gym-fitness/l10n/cs.json +5 -0
- package/templates/gym-fitness/l10n/da.json +5 -0
- package/templates/gym-fitness/l10n/de.json +5 -0
- package/templates/gym-fitness/l10n/el.json +5 -0
- package/templates/gym-fitness/l10n/en.json +1 -1
- package/templates/gym-fitness/l10n/es.json +5 -0
- package/templates/gym-fitness/l10n/fi.json +5 -0
- package/templates/gym-fitness/l10n/fr.json +5 -0
- package/templates/gym-fitness/l10n/he.json +4 -0
- package/templates/gym-fitness/l10n/hu.json +5 -0
- package/templates/gym-fitness/l10n/id.json +5 -0
- package/templates/gym-fitness/l10n/it.json +5 -0
- package/templates/gym-fitness/l10n/ja.json +5 -0
- package/templates/gym-fitness/l10n/ko.json +5 -0
- package/templates/gym-fitness/l10n/lt.json +5 -0
- package/templates/gym-fitness/l10n/nl.json +5 -0
- package/templates/gym-fitness/l10n/no.json +5 -0
- package/templates/gym-fitness/l10n/pl.json +5 -0
- package/templates/gym-fitness/l10n/pt.json +5 -0
- package/templates/gym-fitness/l10n/ru.json +5 -0
- package/templates/gym-fitness/l10n/sv.json +5 -0
- package/templates/gym-fitness/l10n/th.json +5 -0
- package/templates/gym-fitness/l10n/tr.json +5 -0
- package/templates/gym-fitness/l10n/uk.json +5 -0
- package/templates/gym-fitness/l10n/vi.json +5 -0
- package/templates/gym-fitness/l10n/zh.json +5 -0
- package/templates/gym-fitness/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/gym-fitness-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/medical-services/dev/index.ts +747 -595
- package/templates/medical-services/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/medical-services/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/medical-services/tier5-src/business-chat/index.ts +20 -6
- package/templates/medical-services/tier5-src/himi-booking-account/index.ts +14 -3
- package/templates/medical-services/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/nonprofit-cause/dev/index.ts +122 -8
- package/templates/nonprofit-cause/l10n/ar.json +10 -0
- package/templates/nonprofit-cause/l10n/cs.json +10 -0
- package/templates/nonprofit-cause/l10n/da.json +10 -0
- package/templates/nonprofit-cause/l10n/de.json +10 -0
- package/templates/nonprofit-cause/l10n/el.json +10 -0
- package/templates/nonprofit-cause/l10n/en.json +1 -1
- package/templates/nonprofit-cause/l10n/es.json +10 -0
- package/templates/nonprofit-cause/l10n/fi.json +10 -0
- package/templates/nonprofit-cause/l10n/fr.json +10 -0
- package/templates/nonprofit-cause/l10n/he.json +8 -0
- package/templates/nonprofit-cause/l10n/hu.json +10 -0
- package/templates/nonprofit-cause/l10n/id.json +10 -0
- package/templates/nonprofit-cause/l10n/it.json +10 -0
- package/templates/nonprofit-cause/l10n/ja.json +10 -0
- package/templates/nonprofit-cause/l10n/ko.json +10 -0
- package/templates/nonprofit-cause/l10n/lt.json +10 -0
- package/templates/nonprofit-cause/l10n/nl.json +10 -0
- package/templates/nonprofit-cause/l10n/no.json +10 -0
- package/templates/nonprofit-cause/l10n/pl.json +10 -0
- package/templates/nonprofit-cause/l10n/pt.json +10 -0
- package/templates/nonprofit-cause/l10n/ru.json +10 -0
- package/templates/nonprofit-cause/l10n/sv.json +10 -0
- package/templates/nonprofit-cause/l10n/th.json +10 -0
- package/templates/nonprofit-cause/l10n/tr.json +10 -0
- package/templates/nonprofit-cause/l10n/uk.json +10 -0
- package/templates/nonprofit-cause/l10n/vi.json +10 -0
- package/templates/nonprofit-cause/l10n/zh.json +10 -0
- package/templates/nonprofit-cause/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/nonprofit-cause-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/owner-lite/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/personal-fitness-trainer/dev/index.ts +760 -602
- package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/personal-fitness-trainer/tier5-src/business-chat/index.ts +20 -6
- package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/podcast-creator/dev/index.ts +122 -8
- package/templates/podcast-creator/l10n/ar.json +10 -0
- package/templates/podcast-creator/l10n/cs.json +10 -0
- package/templates/podcast-creator/l10n/da.json +10 -0
- package/templates/podcast-creator/l10n/de.json +10 -0
- package/templates/podcast-creator/l10n/el.json +10 -0
- package/templates/podcast-creator/l10n/en.json +1 -1
- package/templates/podcast-creator/l10n/es.json +10 -0
- package/templates/podcast-creator/l10n/fi.json +10 -0
- package/templates/podcast-creator/l10n/fr.json +10 -0
- package/templates/podcast-creator/l10n/he.json +8 -0
- package/templates/podcast-creator/l10n/hu.json +10 -0
- package/templates/podcast-creator/l10n/id.json +10 -0
- package/templates/podcast-creator/l10n/it.json +10 -0
- package/templates/podcast-creator/l10n/ja.json +10 -0
- package/templates/podcast-creator/l10n/ko.json +10 -0
- package/templates/podcast-creator/l10n/lt.json +10 -0
- package/templates/podcast-creator/l10n/nl.json +10 -0
- package/templates/podcast-creator/l10n/no.json +10 -0
- package/templates/podcast-creator/l10n/pl.json +10 -0
- package/templates/podcast-creator/l10n/pt.json +10 -0
- package/templates/podcast-creator/l10n/ru.json +10 -0
- package/templates/podcast-creator/l10n/sv.json +10 -0
- package/templates/podcast-creator/l10n/th.json +10 -0
- package/templates/podcast-creator/l10n/tr.json +10 -0
- package/templates/podcast-creator/l10n/uk.json +10 -0
- package/templates/podcast-creator/l10n/vi.json +10 -0
- package/templates/podcast-creator/l10n/zh.json +10 -0
- package/templates/podcast-creator/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/podcast-creator-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/portfolio-creative/dev/index.ts +122 -8
- package/templates/portfolio-creative/l10n/ar.json +10 -0
- package/templates/portfolio-creative/l10n/cs.json +10 -0
- package/templates/portfolio-creative/l10n/da.json +10 -0
- package/templates/portfolio-creative/l10n/de.json +10 -0
- package/templates/portfolio-creative/l10n/el.json +10 -0
- package/templates/portfolio-creative/l10n/en.json +1 -1
- package/templates/portfolio-creative/l10n/es.json +10 -0
- package/templates/portfolio-creative/l10n/fi.json +10 -0
- package/templates/portfolio-creative/l10n/fr.json +10 -0
- package/templates/portfolio-creative/l10n/he.json +8 -0
- package/templates/portfolio-creative/l10n/hu.json +10 -0
- package/templates/portfolio-creative/l10n/id.json +10 -0
- package/templates/portfolio-creative/l10n/it.json +10 -0
- package/templates/portfolio-creative/l10n/ja.json +10 -0
- package/templates/portfolio-creative/l10n/ko.json +10 -0
- package/templates/portfolio-creative/l10n/lt.json +10 -0
- package/templates/portfolio-creative/l10n/nl.json +10 -0
- package/templates/portfolio-creative/l10n/no.json +10 -0
- package/templates/portfolio-creative/l10n/pl.json +10 -0
- package/templates/portfolio-creative/l10n/pt.json +10 -0
- package/templates/portfolio-creative/l10n/ru.json +10 -0
- package/templates/portfolio-creative/l10n/sv.json +10 -0
- package/templates/portfolio-creative/l10n/th.json +10 -0
- package/templates/portfolio-creative/l10n/tr.json +10 -0
- package/templates/portfolio-creative/l10n/uk.json +10 -0
- package/templates/portfolio-creative/l10n/vi.json +10 -0
- package/templates/portfolio-creative/l10n/zh.json +10 -0
- package/templates/portfolio-creative/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/portfolio-creative-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/restaurant/dev/index.ts +122 -8
- package/templates/restaurant/l10n/ar.json +10 -0
- package/templates/restaurant/l10n/cs.json +10 -0
- package/templates/restaurant/l10n/da.json +10 -0
- package/templates/restaurant/l10n/de.json +10 -0
- package/templates/restaurant/l10n/el.json +10 -0
- package/templates/restaurant/l10n/en.json +1 -1
- package/templates/restaurant/l10n/es.json +10 -0
- package/templates/restaurant/l10n/fi.json +10 -0
- package/templates/restaurant/l10n/fr.json +10 -0
- package/templates/restaurant/l10n/he.json +8 -0
- package/templates/restaurant/l10n/hu.json +10 -0
- package/templates/restaurant/l10n/id.json +10 -0
- package/templates/restaurant/l10n/it.json +10 -0
- package/templates/restaurant/l10n/ja.json +10 -0
- package/templates/restaurant/l10n/ko.json +10 -0
- package/templates/restaurant/l10n/lt.json +10 -0
- package/templates/restaurant/l10n/nl.json +10 -0
- package/templates/restaurant/l10n/no.json +10 -0
- package/templates/restaurant/l10n/pl.json +10 -0
- package/templates/restaurant/l10n/pt.json +10 -0
- package/templates/restaurant/l10n/ru.json +10 -0
- package/templates/restaurant/l10n/sv.json +10 -0
- package/templates/restaurant/l10n/th.json +10 -0
- package/templates/restaurant/l10n/tr.json +10 -0
- package/templates/restaurant/l10n/uk.json +10 -0
- package/templates/restaurant/l10n/vi.json +10 -0
- package/templates/restaurant/l10n/zh.json +10 -0
- package/templates/restaurant/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/restaurant/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/restaurant-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/retail-store/dev/index.ts +122 -8
- package/templates/retail-store/l10n/ar.json +10 -0
- package/templates/retail-store/l10n/cs.json +10 -0
- package/templates/retail-store/l10n/da.json +10 -0
- package/templates/retail-store/l10n/de.json +10 -0
- package/templates/retail-store/l10n/el.json +10 -0
- package/templates/retail-store/l10n/en.json +1 -1
- package/templates/retail-store/l10n/es.json +10 -0
- package/templates/retail-store/l10n/fi.json +10 -0
- package/templates/retail-store/l10n/fr.json +10 -0
- package/templates/retail-store/l10n/he.json +8 -0
- package/templates/retail-store/l10n/hu.json +10 -0
- package/templates/retail-store/l10n/id.json +10 -0
- package/templates/retail-store/l10n/it.json +10 -0
- package/templates/retail-store/l10n/ja.json +10 -0
- package/templates/retail-store/l10n/ko.json +10 -0
- package/templates/retail-store/l10n/lt.json +10 -0
- package/templates/retail-store/l10n/nl.json +10 -0
- package/templates/retail-store/l10n/no.json +10 -0
- package/templates/retail-store/l10n/pl.json +10 -0
- package/templates/retail-store/l10n/pt.json +10 -0
- package/templates/retail-store/l10n/ru.json +10 -0
- package/templates/retail-store/l10n/sv.json +10 -0
- package/templates/retail-store/l10n/th.json +10 -0
- package/templates/retail-store/l10n/tr.json +10 -0
- package/templates/retail-store/l10n/uk.json +10 -0
- package/templates/retail-store/l10n/vi.json +10 -0
- package/templates/retail-store/l10n/zh.json +10 -0
- package/templates/retail-store/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/retail-store/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/retail-store-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/salon-spa/dev/index.ts +744 -595
- package/templates/salon-spa/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/salon-spa/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/salon-spa/tier5-src/business-chat/index.ts +20 -6
- package/templates/salon-spa/tier5-src/himi-booking-account/index.ts +14 -3
- package/templates/salon-spa/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/wholesale-store/dev/index.ts +751 -602
- package/templates/wholesale-store/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/wholesale-store/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/wholesale-store/tier5-src/business-chat/index.ts +20 -6
- package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/yoga-studio/dev/index.ts +122 -8
- package/templates/yoga-studio/l10n/ar.json +5 -0
- package/templates/yoga-studio/l10n/cs.json +5 -0
- package/templates/yoga-studio/l10n/da.json +5 -0
- package/templates/yoga-studio/l10n/de.json +5 -0
- package/templates/yoga-studio/l10n/el.json +5 -0
- package/templates/yoga-studio/l10n/en.json +1 -1
- package/templates/yoga-studio/l10n/es.json +5 -0
- package/templates/yoga-studio/l10n/fi.json +5 -0
- package/templates/yoga-studio/l10n/fr.json +5 -0
- package/templates/yoga-studio/l10n/he.json +4 -0
- package/templates/yoga-studio/l10n/hu.json +5 -0
- package/templates/yoga-studio/l10n/id.json +5 -0
- package/templates/yoga-studio/l10n/it.json +5 -0
- package/templates/yoga-studio/l10n/ja.json +5 -0
- package/templates/yoga-studio/l10n/ko.json +5 -0
- package/templates/yoga-studio/l10n/lt.json +5 -0
- package/templates/yoga-studio/l10n/nl.json +5 -0
- package/templates/yoga-studio/l10n/no.json +5 -0
- package/templates/yoga-studio/l10n/pl.json +5 -0
- package/templates/yoga-studio/l10n/pt.json +5 -0
- package/templates/yoga-studio/l10n/ru.json +5 -0
- package/templates/yoga-studio/l10n/sv.json +5 -0
- package/templates/yoga-studio/l10n/th.json +5 -0
- package/templates/yoga-studio/l10n/tr.json +5 -0
- package/templates/yoga-studio/l10n/uk.json +5 -0
- package/templates/yoga-studio/l10n/vi.json +5 -0
- package/templates/yoga-studio/l10n/zh.json +5 -0
- package/templates/yoga-studio/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/yoga-studio-owner/tier5-src/_shared/himi-account.ts +14 -1
|
@@ -87,9 +87,22 @@ function profileFromData(data: WixMyData, fallbackEmail = ""): AccountProfile {
|
|
|
87
87
|
|
|
88
88
|
/** The signed-in site member's name and photo from their member record, or undefined when it
|
|
89
89
|
* cannot be read or names nobody (the caller then shows the email). */
|
|
90
|
+
/** The host refused a read because the signed-in principal changed while it was in flight. Right
|
|
91
|
+
* after a sign-in on Android, the account screen's first read races the session switch this way. */
|
|
92
|
+
const PRINCIPAL_CHANGED = /PRINCIPAL_CHANGED/;
|
|
93
|
+
|
|
90
94
|
async function siteMemberProfile(email: string): Promise<AccountProfile | undefined> {
|
|
91
95
|
try {
|
|
92
|
-
const
|
|
96
|
+
const read = () => getMyMember({ fieldsets: ["FULL"] });
|
|
97
|
+
// Asked again once, as the member who is signed in now; otherwise a fresh sign-in shows the
|
|
98
|
+
// member's email where their name belongs until the next refresh. Only for the same member:
|
|
99
|
+
// the name must never come from another account than `email`.
|
|
100
|
+
const member = (await read().catch(async (error: unknown) => {
|
|
101
|
+
if (!PRINCIPAL_CHANGED.test(String((error as { message?: unknown })?.message ?? error))) throw error;
|
|
102
|
+
const now = await memberIdentity();
|
|
103
|
+
if (!now.signedIn || (email && now.email !== email)) throw error;
|
|
104
|
+
return read();
|
|
105
|
+
}))?.member;
|
|
93
106
|
const name = [member?.contact?.firstName, member?.contact?.lastName].map((part) => (part ?? "").trim()).filter(Boolean).join(" ")
|
|
94
107
|
|| (member?.profile?.nickname ?? "").trim();
|
|
95
108
|
if (!name) return undefined;
|
|
@@ -87,9 +87,22 @@ function profileFromData(data: WixMyData, fallbackEmail = ""): AccountProfile {
|
|
|
87
87
|
|
|
88
88
|
/** The signed-in site member's name and photo from their member record, or undefined when it
|
|
89
89
|
* cannot be read or names nobody (the caller then shows the email). */
|
|
90
|
+
/** The host refused a read because the signed-in principal changed while it was in flight. Right
|
|
91
|
+
* after a sign-in on Android, the account screen's first read races the session switch this way. */
|
|
92
|
+
const PRINCIPAL_CHANGED = /PRINCIPAL_CHANGED/;
|
|
93
|
+
|
|
90
94
|
async function siteMemberProfile(email: string): Promise<AccountProfile | undefined> {
|
|
91
95
|
try {
|
|
92
|
-
const
|
|
96
|
+
const read = () => getMyMember({ fieldsets: ["FULL"] });
|
|
97
|
+
// Asked again once, as the member who is signed in now; otherwise a fresh sign-in shows the
|
|
98
|
+
// member's email where their name belongs until the next refresh. Only for the same member:
|
|
99
|
+
// the name must never come from another account than `email`.
|
|
100
|
+
const member = (await read().catch(async (error: unknown) => {
|
|
101
|
+
if (!PRINCIPAL_CHANGED.test(String((error as { message?: unknown })?.message ?? error))) throw error;
|
|
102
|
+
const now = await memberIdentity();
|
|
103
|
+
if (!now.signedIn || (email && now.email !== email)) throw error;
|
|
104
|
+
return read();
|
|
105
|
+
}))?.member;
|
|
93
106
|
const name = [member?.contact?.firstName, member?.contact?.lastName].map((part) => (part ?? "").trim()).filter(Boolean).join(" ")
|
|
94
107
|
|| (member?.profile?.nickname ?? "").trim();
|
|
95
108
|
if (!name) return undefined;
|