@wix/himalaya-cli 0.1850.0 → 0.1852.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +5 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +13 -3
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{166f7ee733ea8d0fe7bba8b796232efd4f5413e22af4a8aeee20cae1069b2fd6.bin → fb500748f6c4768468f2e7f985aa67c38633077c7a98caaa6b500c7b00eea8e9.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +10962 -10491
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-index.md +1 -1
- package/guides/component-reference.json +2 -2
- package/guides/component-reference.md +8 -1
- package/guides/designing-himi-screens.md +5 -1
- package/guides/himi-json-output.md +5 -1
- package/guides/one-app-to-himi-app.md +42 -5
- package/guides/sdk-reference.json +2 -2
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +223 -0
- package/templates/beauty-salon/l10n/ar.json +6 -0
- package/templates/beauty-salon/l10n/cs.json +6 -0
- package/templates/beauty-salon/l10n/da.json +6 -0
- package/templates/beauty-salon/l10n/de.json +6 -0
- package/templates/beauty-salon/l10n/el.json +6 -0
- package/templates/beauty-salon/l10n/en.json +9 -2
- package/templates/beauty-salon/l10n/es.json +6 -0
- package/templates/beauty-salon/l10n/fi.json +6 -0
- package/templates/beauty-salon/l10n/fr.json +6 -0
- package/templates/beauty-salon/l10n/he.json +5 -0
- package/templates/beauty-salon/l10n/hu.json +6 -0
- package/templates/beauty-salon/l10n/id.json +6 -0
- package/templates/beauty-salon/l10n/it.json +6 -0
- package/templates/beauty-salon/l10n/ja.json +6 -0
- package/templates/beauty-salon/l10n/ko.json +6 -0
- package/templates/beauty-salon/l10n/lt.json +6 -0
- package/templates/beauty-salon/l10n/nl.json +6 -0
- package/templates/beauty-salon/l10n/no.json +6 -0
- package/templates/beauty-salon/l10n/pl.json +6 -0
- package/templates/beauty-salon/l10n/pt.json +6 -0
- package/templates/beauty-salon/l10n/ru.json +6 -0
- package/templates/beauty-salon/l10n/sv.json +6 -0
- package/templates/beauty-salon/l10n/th.json +6 -0
- package/templates/beauty-salon/l10n/tr.json +6 -0
- package/templates/beauty-salon/l10n/uk.json +6 -0
- package/templates/beauty-salon/l10n/vi.json +6 -0
- package/templates/beauty-salon/l10n/zh.json +6 -0
- package/templates/beauty-salon/tier5-src/_shared/lifecycle.ts +15 -0
- package/templates/beauty-salon/tier5-src/_shared/nav-member-avatar.ts +92 -0
- package/templates/beauty-salon/tier5-src/himi-branded-lite-nav/index.ts +15 -6
- package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/branded-lite/dev/index.ts +2167 -0
- package/templates/branded-lite/l10n/ar.json +6 -0
- package/templates/branded-lite/l10n/cs.json +6 -0
- package/templates/branded-lite/l10n/da.json +6 -0
- package/templates/branded-lite/l10n/de.json +6 -0
- package/templates/branded-lite/l10n/el.json +6 -0
- package/templates/branded-lite/l10n/en.json +12 -5
- package/templates/branded-lite/l10n/es.json +6 -0
- package/templates/branded-lite/l10n/fi.json +6 -0
- package/templates/branded-lite/l10n/fr.json +6 -0
- package/templates/branded-lite/l10n/he.json +5 -0
- package/templates/branded-lite/l10n/hu.json +6 -0
- package/templates/branded-lite/l10n/id.json +6 -0
- package/templates/branded-lite/l10n/it.json +6 -0
- package/templates/branded-lite/l10n/ja.json +6 -0
- package/templates/branded-lite/l10n/ko.json +6 -0
- package/templates/branded-lite/l10n/lt.json +6 -0
- package/templates/branded-lite/l10n/nl.json +6 -0
- package/templates/branded-lite/l10n/no.json +6 -0
- package/templates/branded-lite/l10n/pl.json +6 -0
- package/templates/branded-lite/l10n/pt.json +6 -0
- package/templates/branded-lite/l10n/ru.json +6 -0
- package/templates/branded-lite/l10n/sv.json +6 -0
- package/templates/branded-lite/l10n/th.json +6 -0
- package/templates/branded-lite/l10n/tr.json +6 -0
- package/templates/branded-lite/l10n/uk.json +6 -0
- package/templates/branded-lite/l10n/vi.json +6 -0
- package/templates/branded-lite/l10n/zh.json +6 -0
- package/templates/branded-lite/tier5-src/_shared/access-gates.ts +0 -13
- package/templates/branded-lite/tier5-src/_shared/guest-sign-in.ts +36 -0
- package/templates/branded-lite/tier5-src/_shared/lifecycle.ts +15 -0
- package/templates/branded-lite/tier5-src/_shared/nav-member-avatar.ts +92 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-access-nav/index.ts +14 -9
- package/templates/branded-lite/tier5-src/himi-branded-lite-inbox/index.ts +6 -1
- package/templates/branded-lite/tier5-src/himi-branded-lite-nav/index.ts +15 -6
- package/templates/branded-lite/tier5-src/himi-branded-lite-notifications/index.ts +8 -1
- package/templates/branded-lite/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/brandy/tier5-src/_shared/guest-sign-in.ts +36 -0
- package/templates/brandy/tier5-src/himi-branded-lite-inbox/index.ts +6 -1
- package/templates/brandy/tier5-src/himi-branded-lite-notifications/index.ts +8 -1
- package/templates/brandy/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/community-club/dev/index.ts +223 -0
- package/templates/community-club/l10n/ar.json +6 -0
- package/templates/community-club/l10n/cs.json +6 -0
- package/templates/community-club/l10n/da.json +6 -0
- package/templates/community-club/l10n/de.json +6 -0
- package/templates/community-club/l10n/el.json +6 -0
- package/templates/community-club/l10n/en.json +9 -2
- package/templates/community-club/l10n/es.json +6 -0
- package/templates/community-club/l10n/fi.json +6 -0
- package/templates/community-club/l10n/fr.json +6 -0
- package/templates/community-club/l10n/he.json +5 -0
- package/templates/community-club/l10n/hu.json +6 -0
- package/templates/community-club/l10n/id.json +6 -0
- package/templates/community-club/l10n/it.json +6 -0
- package/templates/community-club/l10n/ja.json +6 -0
- package/templates/community-club/l10n/ko.json +6 -0
- package/templates/community-club/l10n/lt.json +6 -0
- package/templates/community-club/l10n/nl.json +6 -0
- package/templates/community-club/l10n/no.json +6 -0
- package/templates/community-club/l10n/pl.json +6 -0
- package/templates/community-club/l10n/pt.json +6 -0
- package/templates/community-club/l10n/ru.json +6 -0
- package/templates/community-club/l10n/sv.json +6 -0
- package/templates/community-club/l10n/th.json +6 -0
- package/templates/community-club/l10n/tr.json +6 -0
- package/templates/community-club/l10n/uk.json +6 -0
- package/templates/community-club/l10n/vi.json +6 -0
- package/templates/community-club/l10n/zh.json +6 -0
- package/templates/community-club/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/conference/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/events-meetups/dev/index.ts +142 -0
- package/templates/events-meetups/l10n/ar.json +6 -0
- package/templates/events-meetups/l10n/cs.json +6 -0
- package/templates/events-meetups/l10n/da.json +6 -0
- package/templates/events-meetups/l10n/de.json +6 -0
- package/templates/events-meetups/l10n/el.json +6 -0
- package/templates/events-meetups/l10n/en.json +8 -1
- package/templates/events-meetups/l10n/es.json +6 -0
- package/templates/events-meetups/l10n/fi.json +6 -0
- package/templates/events-meetups/l10n/fr.json +6 -0
- package/templates/events-meetups/l10n/he.json +5 -0
- package/templates/events-meetups/l10n/hu.json +6 -0
- package/templates/events-meetups/l10n/id.json +6 -0
- package/templates/events-meetups/l10n/it.json +6 -0
- package/templates/events-meetups/l10n/ja.json +6 -0
- package/templates/events-meetups/l10n/ko.json +6 -0
- package/templates/events-meetups/l10n/lt.json +6 -0
- package/templates/events-meetups/l10n/nl.json +6 -0
- package/templates/events-meetups/l10n/no.json +6 -0
- package/templates/events-meetups/l10n/pl.json +6 -0
- package/templates/events-meetups/l10n/pt.json +6 -0
- package/templates/events-meetups/l10n/ru.json +6 -0
- package/templates/events-meetups/l10n/sv.json +6 -0
- package/templates/events-meetups/l10n/th.json +6 -0
- package/templates/events-meetups/l10n/tr.json +6 -0
- package/templates/events-meetups/l10n/uk.json +6 -0
- package/templates/events-meetups/l10n/vi.json +6 -0
- package/templates/events-meetups/l10n/zh.json +6 -0
- package/templates/events-meetups/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/fitness-gym/tier5-src/_shared/guest-sign-in.ts +36 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-notifications/index.ts +8 -1
- package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/gym-fitness/dev/index.ts +385 -0
- package/templates/gym-fitness/l10n/ar.json +6 -0
- package/templates/gym-fitness/l10n/cs.json +6 -0
- package/templates/gym-fitness/l10n/da.json +6 -0
- package/templates/gym-fitness/l10n/de.json +6 -0
- package/templates/gym-fitness/l10n/el.json +6 -0
- package/templates/gym-fitness/l10n/en.json +9 -2
- package/templates/gym-fitness/l10n/es.json +6 -0
- package/templates/gym-fitness/l10n/fi.json +6 -0
- package/templates/gym-fitness/l10n/fr.json +6 -0
- package/templates/gym-fitness/l10n/he.json +5 -0
- package/templates/gym-fitness/l10n/hu.json +6 -0
- package/templates/gym-fitness/l10n/id.json +6 -0
- package/templates/gym-fitness/l10n/it.json +6 -0
- package/templates/gym-fitness/l10n/ja.json +6 -0
- package/templates/gym-fitness/l10n/ko.json +6 -0
- package/templates/gym-fitness/l10n/lt.json +6 -0
- package/templates/gym-fitness/l10n/nl.json +6 -0
- package/templates/gym-fitness/l10n/no.json +6 -0
- package/templates/gym-fitness/l10n/pl.json +6 -0
- package/templates/gym-fitness/l10n/pt.json +6 -0
- package/templates/gym-fitness/l10n/ru.json +6 -0
- package/templates/gym-fitness/l10n/sv.json +6 -0
- package/templates/gym-fitness/l10n/th.json +6 -0
- package/templates/gym-fitness/l10n/tr.json +6 -0
- package/templates/gym-fitness/l10n/uk.json +6 -0
- package/templates/gym-fitness/l10n/vi.json +6 -0
- package/templates/gym-fitness/l10n/zh.json +6 -0
- package/templates/gym-fitness/tier5-src/_shared/lifecycle.ts +15 -0
- package/templates/gym-fitness/tier5-src/_shared/nav-member-avatar.ts +92 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-nav/index.ts +15 -6
- package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/medical-services/tier5-src/_shared/guest-sign-in.ts +36 -0
- package/templates/medical-services/tier5-src/himi-branded-lite-notifications/index.ts +8 -1
- package/templates/medical-services/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/nonprofit-cause/dev/index.ts +223 -0
- package/templates/nonprofit-cause/l10n/ar.json +6 -0
- package/templates/nonprofit-cause/l10n/cs.json +6 -0
- package/templates/nonprofit-cause/l10n/da.json +6 -0
- package/templates/nonprofit-cause/l10n/de.json +6 -0
- package/templates/nonprofit-cause/l10n/el.json +6 -0
- package/templates/nonprofit-cause/l10n/en.json +8 -1
- package/templates/nonprofit-cause/l10n/es.json +6 -0
- package/templates/nonprofit-cause/l10n/fi.json +6 -0
- package/templates/nonprofit-cause/l10n/fr.json +6 -0
- package/templates/nonprofit-cause/l10n/he.json +5 -0
- package/templates/nonprofit-cause/l10n/hu.json +6 -0
- package/templates/nonprofit-cause/l10n/id.json +6 -0
- package/templates/nonprofit-cause/l10n/it.json +6 -0
- package/templates/nonprofit-cause/l10n/ja.json +6 -0
- package/templates/nonprofit-cause/l10n/ko.json +6 -0
- package/templates/nonprofit-cause/l10n/lt.json +6 -0
- package/templates/nonprofit-cause/l10n/nl.json +6 -0
- package/templates/nonprofit-cause/l10n/no.json +6 -0
- package/templates/nonprofit-cause/l10n/pl.json +6 -0
- package/templates/nonprofit-cause/l10n/pt.json +6 -0
- package/templates/nonprofit-cause/l10n/ru.json +6 -0
- package/templates/nonprofit-cause/l10n/sv.json +6 -0
- package/templates/nonprofit-cause/l10n/th.json +6 -0
- package/templates/nonprofit-cause/l10n/tr.json +6 -0
- package/templates/nonprofit-cause/l10n/uk.json +6 -0
- package/templates/nonprofit-cause/l10n/vi.json +6 -0
- package/templates/nonprofit-cause/l10n/zh.json +6 -0
- package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/podcast-creator/dev/index.ts +223 -0
- package/templates/podcast-creator/l10n/ar.json +6 -0
- package/templates/podcast-creator/l10n/cs.json +6 -0
- package/templates/podcast-creator/l10n/da.json +6 -0
- package/templates/podcast-creator/l10n/de.json +6 -0
- package/templates/podcast-creator/l10n/el.json +6 -0
- package/templates/podcast-creator/l10n/en.json +8 -1
- package/templates/podcast-creator/l10n/es.json +6 -0
- package/templates/podcast-creator/l10n/fi.json +6 -0
- package/templates/podcast-creator/l10n/fr.json +6 -0
- package/templates/podcast-creator/l10n/he.json +5 -0
- package/templates/podcast-creator/l10n/hu.json +6 -0
- package/templates/podcast-creator/l10n/id.json +6 -0
- package/templates/podcast-creator/l10n/it.json +6 -0
- package/templates/podcast-creator/l10n/ja.json +6 -0
- package/templates/podcast-creator/l10n/ko.json +6 -0
- package/templates/podcast-creator/l10n/lt.json +6 -0
- package/templates/podcast-creator/l10n/nl.json +6 -0
- package/templates/podcast-creator/l10n/no.json +6 -0
- package/templates/podcast-creator/l10n/pl.json +6 -0
- package/templates/podcast-creator/l10n/pt.json +6 -0
- package/templates/podcast-creator/l10n/ru.json +6 -0
- package/templates/podcast-creator/l10n/sv.json +6 -0
- package/templates/podcast-creator/l10n/th.json +6 -0
- package/templates/podcast-creator/l10n/tr.json +6 -0
- package/templates/podcast-creator/l10n/uk.json +6 -0
- package/templates/podcast-creator/l10n/vi.json +6 -0
- package/templates/podcast-creator/l10n/zh.json +6 -0
- package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/portfolio-creative/dev/index.ts +142 -0
- package/templates/portfolio-creative/l10n/ar.json +6 -0
- package/templates/portfolio-creative/l10n/cs.json +6 -0
- package/templates/portfolio-creative/l10n/da.json +6 -0
- package/templates/portfolio-creative/l10n/de.json +6 -0
- package/templates/portfolio-creative/l10n/el.json +6 -0
- package/templates/portfolio-creative/l10n/en.json +8 -1
- package/templates/portfolio-creative/l10n/es.json +6 -0
- package/templates/portfolio-creative/l10n/fi.json +6 -0
- package/templates/portfolio-creative/l10n/fr.json +6 -0
- package/templates/portfolio-creative/l10n/he.json +5 -0
- package/templates/portfolio-creative/l10n/hu.json +6 -0
- package/templates/portfolio-creative/l10n/id.json +6 -0
- package/templates/portfolio-creative/l10n/it.json +6 -0
- package/templates/portfolio-creative/l10n/ja.json +6 -0
- package/templates/portfolio-creative/l10n/ko.json +6 -0
- package/templates/portfolio-creative/l10n/lt.json +6 -0
- package/templates/portfolio-creative/l10n/nl.json +6 -0
- package/templates/portfolio-creative/l10n/no.json +6 -0
- package/templates/portfolio-creative/l10n/pl.json +6 -0
- package/templates/portfolio-creative/l10n/pt.json +6 -0
- package/templates/portfolio-creative/l10n/ru.json +6 -0
- package/templates/portfolio-creative/l10n/sv.json +6 -0
- package/templates/portfolio-creative/l10n/th.json +6 -0
- package/templates/portfolio-creative/l10n/tr.json +6 -0
- package/templates/portfolio-creative/l10n/uk.json +6 -0
- package/templates/portfolio-creative/l10n/vi.json +6 -0
- package/templates/portfolio-creative/l10n/zh.json +6 -0
- package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/restaurant/dev/index.ts +142 -0
- package/templates/restaurant/l10n/ar.json +6 -0
- package/templates/restaurant/l10n/cs.json +6 -0
- package/templates/restaurant/l10n/da.json +6 -0
- package/templates/restaurant/l10n/de.json +6 -0
- package/templates/restaurant/l10n/el.json +6 -0
- package/templates/restaurant/l10n/en.json +9 -2
- package/templates/restaurant/l10n/es.json +6 -0
- package/templates/restaurant/l10n/fi.json +6 -0
- package/templates/restaurant/l10n/fr.json +6 -0
- package/templates/restaurant/l10n/he.json +5 -0
- package/templates/restaurant/l10n/hu.json +6 -0
- package/templates/restaurant/l10n/id.json +6 -0
- package/templates/restaurant/l10n/it.json +6 -0
- package/templates/restaurant/l10n/ja.json +6 -0
- package/templates/restaurant/l10n/ko.json +6 -0
- package/templates/restaurant/l10n/lt.json +6 -0
- package/templates/restaurant/l10n/nl.json +6 -0
- package/templates/restaurant/l10n/no.json +6 -0
- package/templates/restaurant/l10n/pl.json +6 -0
- package/templates/restaurant/l10n/pt.json +6 -0
- package/templates/restaurant/l10n/ru.json +6 -0
- package/templates/restaurant/l10n/sv.json +6 -0
- package/templates/restaurant/l10n/th.json +6 -0
- package/templates/restaurant/l10n/tr.json +6 -0
- package/templates/restaurant/l10n/uk.json +6 -0
- package/templates/restaurant/l10n/vi.json +6 -0
- package/templates/restaurant/l10n/zh.json +6 -0
- package/templates/restaurant/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/retail-store/dev/index.ts +142 -0
- package/templates/retail-store/l10n/ar.json +6 -0
- package/templates/retail-store/l10n/cs.json +6 -0
- package/templates/retail-store/l10n/da.json +6 -0
- package/templates/retail-store/l10n/de.json +6 -0
- package/templates/retail-store/l10n/el.json +6 -0
- package/templates/retail-store/l10n/en.json +8 -1
- package/templates/retail-store/l10n/es.json +6 -0
- package/templates/retail-store/l10n/fi.json +6 -0
- package/templates/retail-store/l10n/fr.json +6 -0
- package/templates/retail-store/l10n/he.json +5 -0
- package/templates/retail-store/l10n/hu.json +6 -0
- package/templates/retail-store/l10n/id.json +6 -0
- package/templates/retail-store/l10n/it.json +6 -0
- package/templates/retail-store/l10n/ja.json +6 -0
- package/templates/retail-store/l10n/ko.json +6 -0
- package/templates/retail-store/l10n/lt.json +6 -0
- package/templates/retail-store/l10n/nl.json +6 -0
- package/templates/retail-store/l10n/no.json +6 -0
- package/templates/retail-store/l10n/pl.json +6 -0
- package/templates/retail-store/l10n/pt.json +6 -0
- package/templates/retail-store/l10n/ru.json +6 -0
- package/templates/retail-store/l10n/sv.json +6 -0
- package/templates/retail-store/l10n/th.json +6 -0
- package/templates/retail-store/l10n/tr.json +6 -0
- package/templates/retail-store/l10n/uk.json +6 -0
- package/templates/retail-store/l10n/vi.json +6 -0
- package/templates/retail-store/l10n/zh.json +6 -0
- package/templates/retail-store/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/salon-spa/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +26 -1
- package/templates/yoga-studio/dev/index.ts +304 -0
- package/templates/yoga-studio/l10n/ar.json +6 -0
- package/templates/yoga-studio/l10n/cs.json +6 -0
- package/templates/yoga-studio/l10n/da.json +6 -0
- package/templates/yoga-studio/l10n/de.json +6 -0
- package/templates/yoga-studio/l10n/el.json +6 -0
- package/templates/yoga-studio/l10n/en.json +10 -3
- package/templates/yoga-studio/l10n/es.json +6 -0
- package/templates/yoga-studio/l10n/fi.json +6 -0
- package/templates/yoga-studio/l10n/fr.json +6 -0
- package/templates/yoga-studio/l10n/he.json +5 -0
- package/templates/yoga-studio/l10n/hu.json +6 -0
- package/templates/yoga-studio/l10n/id.json +6 -0
- package/templates/yoga-studio/l10n/it.json +6 -0
- package/templates/yoga-studio/l10n/ja.json +6 -0
- package/templates/yoga-studio/l10n/ko.json +6 -0
- package/templates/yoga-studio/l10n/lt.json +6 -0
- package/templates/yoga-studio/l10n/nl.json +6 -0
- package/templates/yoga-studio/l10n/no.json +6 -0
- package/templates/yoga-studio/l10n/pl.json +6 -0
- package/templates/yoga-studio/l10n/pt.json +6 -0
- package/templates/yoga-studio/l10n/ru.json +6 -0
- package/templates/yoga-studio/l10n/sv.json +6 -0
- package/templates/yoga-studio/l10n/th.json +6 -0
- package/templates/yoga-studio/l10n/tr.json +6 -0
- package/templates/yoga-studio/l10n/uk.json +6 -0
- package/templates/yoga-studio/l10n/vi.json +6 -0
- package/templates/yoga-studio/l10n/zh.json +6 -0
- package/templates/yoga-studio/tier5-src/_shared/lifecycle.ts +15 -0
- package/templates/yoga-studio/tier5-src/_shared/nav-member-avatar.ts +92 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-nav/index.ts +15 -6
- package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +26 -1
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "إغلاق",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "الصفحات",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "عرض الكل ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Zavřít",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Stránky",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Zobrazit vše ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Luk",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Sider",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Vis alle ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Schließen",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Seiten",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Alle anzeigen ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Κλείσιμο",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Σελίδες",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Εμφάνιση όλων ({count})",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$source": "en",
|
|
3
|
-
"$generated": "2026-11-
|
|
3
|
+
"$generated": "2026-11-23T10:50:42.521Z",
|
|
4
4
|
"messages": {
|
|
5
5
|
"h_00234c88e324": {
|
|
6
6
|
"source": "This site's galleries couldn't be loaded.",
|
|
@@ -456,7 +456,7 @@
|
|
|
456
456
|
},
|
|
457
457
|
"h_187579e3a784": {
|
|
458
458
|
"source": "Reserve",
|
|
459
|
-
"kind": "
|
|
459
|
+
"kind": "Text.text",
|
|
460
460
|
"translation": "",
|
|
461
461
|
"key": "tab.reserve",
|
|
462
462
|
"keyOrigin": "string-table"
|
|
@@ -1517,7 +1517,7 @@
|
|
|
1517
1517
|
},
|
|
1518
1518
|
"h_4f9be057f0ea": {
|
|
1519
1519
|
"source": "Content",
|
|
1520
|
-
"kind": "
|
|
1520
|
+
"kind": "Text.text",
|
|
1521
1521
|
"translation": "",
|
|
1522
1522
|
"key": "tab.cms"
|
|
1523
1523
|
},
|
|
@@ -1757,6 +1757,13 @@
|
|
|
1757
1757
|
"key": "video.errorTitle",
|
|
1758
1758
|
"keyOrigin": "string-table"
|
|
1759
1759
|
},
|
|
1760
|
+
"h_600584c2d5cc": {
|
|
1761
|
+
"source": "Pages",
|
|
1762
|
+
"kind": "Text.text",
|
|
1763
|
+
"translation": "",
|
|
1764
|
+
"key": "account.pagesHeading",
|
|
1765
|
+
"keyOrigin": "string-table"
|
|
1766
|
+
},
|
|
1760
1767
|
"h_606fbc2594a0": {
|
|
1761
1768
|
"source": "You are offline. These are the products from your last visit.",
|
|
1762
1769
|
"kind": "Text.text",
|
|
@@ -2595,7 +2602,7 @@
|
|
|
2595
2602
|
},
|
|
2596
2603
|
"h_891e9d6d47f1": {
|
|
2597
2604
|
"source": "Agenda",
|
|
2598
|
-
"kind": "
|
|
2605
|
+
"kind": "Text.text",
|
|
2599
2606
|
"translation": "",
|
|
2600
2607
|
"key": "tab.agenda"
|
|
2601
2608
|
},
|
|
@@ -5056,7 +5063,7 @@
|
|
|
5056
5063
|
},
|
|
5057
5064
|
"h_fe5c54bbae46": {
|
|
5058
5065
|
"source": "Reservations",
|
|
5059
|
-
"kind": "
|
|
5066
|
+
"kind": "Text.text",
|
|
5060
5067
|
"translation": "",
|
|
5061
5068
|
"key": "tab.reservations",
|
|
5062
5069
|
"keyOrigin": "string-table"
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Cerrar",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Páginas",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Ver todo ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Sulje",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Sivut",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Näytä kaikki ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Fermer",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Pages",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_03e89418ffdf": {
|
|
4470
4476
|
"source": "Your Home",
|
|
4471
4477
|
"translation": "Votre accueil",
|
|
@@ -3750,6 +3750,11 @@
|
|
|
3750
3750
|
"source": "Dismiss",
|
|
3751
3751
|
"translation": "סגירה"
|
|
3752
3752
|
},
|
|
3753
|
+
"h_600584c2d5cc": {
|
|
3754
|
+
"source": "Pages",
|
|
3755
|
+
"translation": "דפים",
|
|
3756
|
+
"key": "account.pagesHeading"
|
|
3757
|
+
},
|
|
3753
3758
|
"h_03e89418ffdf": {
|
|
3754
3759
|
"source": "Your Home",
|
|
3755
3760
|
"translation": "הבית שלך"
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Bezárás",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Oldalak",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Az összes megjelenítése ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Tutup",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Halaman",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Tampilkan semua ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Chiudi",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Pagine",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Mostra tutto ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "閉じる",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "ページ",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "すべて表示({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "닫기",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "페이지",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "모두 보기 ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Uždaryti",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Puslapiai",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Rodyti viską ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Sluiten",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Pagina's",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Alles tonen ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Lukk",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Sider",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Vis alle ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Zamknij",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Strony",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Pokaż wszystko ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Fechar",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Páginas",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Mostrar tudo ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Закрыть",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Страницы",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Показать все ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Stäng",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Sidor",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Visa alla ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "ปิด",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "หน้า",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "ดูทั้งหมด ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Kapat",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Sayfalar",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Tümünü göster ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Закрити",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Сторінки",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Показати все ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "Đóng",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "Trang",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "Xem tất cả ({count})",
|
|
@@ -4466,6 +4466,12 @@
|
|
|
4466
4466
|
"translation": "关闭",
|
|
4467
4467
|
"origin": "machine"
|
|
4468
4468
|
},
|
|
4469
|
+
"h_600584c2d5cc": {
|
|
4470
|
+
"key": "account.pagesHeading",
|
|
4471
|
+
"source": "Pages",
|
|
4472
|
+
"translation": "页面",
|
|
4473
|
+
"origin": "machine"
|
|
4474
|
+
},
|
|
4469
4475
|
"h_1e9b74b4dda5": {
|
|
4470
4476
|
"source": "Show all ({count})",
|
|
4471
4477
|
"translation": "查看全部({count})",
|
|
@@ -326,16 +326,3 @@ export function accessGates<S extends AccessGateState>(update: Update<S>, self:
|
|
|
326
326
|
},
|
|
327
327
|
};
|
|
328
328
|
}
|
|
329
|
-
|
|
330
|
-
/**
|
|
331
|
-
* The reserved lifecycle hooks of a service that serves more than one piece (header badges, access gates): the host
|
|
332
|
-
* calls one `onForeground` and one `onIdentityChange`, so each piece's hook runs in turn.
|
|
333
|
-
*/
|
|
334
|
-
export function chainLifecycle<S>(
|
|
335
|
-
...pieces: Array<{ onForeground: (s: S) => Promise<S>; onIdentityChange: (s: S) => Promise<S> }>
|
|
336
|
-
): { onForeground: (s: S) => Promise<S>; onIdentityChange: (s: S) => Promise<S> } {
|
|
337
|
-
return {
|
|
338
|
-
onForeground: async (s) => { let next = s; for (const piece of pieces) next = await piece.onForeground(next); return next; },
|
|
339
|
-
onIdentityChange: async (s) => { let next = s; for (const piece of pieces) next = await piece.onIdentityChange(next); return next; },
|
|
340
|
-
};
|
|
341
|
-
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// A member-only screen that a guest opens offers the app's sign-in at once, as the sheet the app's other
|
|
2
|
+
// screens use (`signInPresentation`, and `signInSheetStyle: "page"` where the app asks for it). Opt-in: the
|
|
3
|
+
// screen's load params must name `signInScreenId`, so an app that passes none keeps the screen's own Sign in state.
|
|
4
|
+
//
|
|
5
|
+
// The sheet is a modal with no return path: closing it, signed in or not, leaves the guest on this screen, which
|
|
6
|
+
// loads again and shows the member's content, or its Sign in state when the sheet was only closed. One offer per
|
|
7
|
+
// guest: a reload that follows a dismissed sheet does not open a second one, and a member's visit resets it.
|
|
8
|
+
import { dispatch } from "@himalaya/dispatch";
|
|
9
|
+
import { signInPageStyle, signInSheetStyle } from "./sign-in-sheet.js";
|
|
10
|
+
|
|
11
|
+
const field = (arg: unknown, key: string): string => {
|
|
12
|
+
const value = (arg as Record<string, unknown> | null | undefined)?.[key];
|
|
13
|
+
return typeof value === "string" ? value.trim() : "";
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export interface GuestSignIn {
|
|
17
|
+
/** The screen loaded for a guest: open the sign-in sheet, once. */
|
|
18
|
+
offer(arg: unknown): void;
|
|
19
|
+
/** The screen loaded for a member: the next guest is offered the sheet again. */
|
|
20
|
+
member(): void;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function guestSignIn(): GuestSignIn {
|
|
24
|
+
let offered = false;
|
|
25
|
+
return {
|
|
26
|
+
offer(arg) {
|
|
27
|
+
const screenId = field(arg, "signInScreenId");
|
|
28
|
+
const presentation = field(arg, "signInPresentation");
|
|
29
|
+
if (!screenId || offered || (presentation !== "sheet" && presentation !== "full_screen")) return;
|
|
30
|
+
offered = true;
|
|
31
|
+
const args = { screenId, mode: "signin", presentation, modal: "1", ...signInSheetStyle(presentation, signInPageStyle(field(arg, "signInSheetStyle"))) };
|
|
32
|
+
void Promise.resolve(dispatch("himi.open", args)).catch(() => undefined);
|
|
33
|
+
},
|
|
34
|
+
member() { offered = false; },
|
|
35
|
+
};
|
|
36
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Shared by the app-level nav workers that serve more than one piece (header badges, access gates, the member avatar).
|
|
2
|
+
// Its own module so a worker that serves only some of them does not bundle the others.
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* The reserved lifecycle hooks of a service that serves more than one piece: the host calls one `onForeground` and
|
|
6
|
+
* one `onIdentityChange`, so each piece's hook runs in turn.
|
|
7
|
+
*/
|
|
8
|
+
export function chainLifecycle<S>(
|
|
9
|
+
...pieces: Array<{ onForeground: (s: S) => Promise<S>; onIdentityChange: (s: S) => Promise<S> }>
|
|
10
|
+
): { onForeground: (s: S) => Promise<S>; onIdentityChange: (s: S) => Promise<S> } {
|
|
11
|
+
return {
|
|
12
|
+
onForeground: async (s) => { let next = s; for (const piece of pieces) next = await piece.onForeground(next); return next; },
|
|
13
|
+
onIdentityChange: async (s) => { let next = s; for (const piece of pieces) next = await piece.onIdentityChange(next); return next; },
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// The signed-in member's profile photo and initials, for the top-bar avatar every tab root draws at its leading edge
|
|
2
|
+
// (`navigation.topBarDefault.items`, bound as `$app:brandedLiteNav.memberImage` / `.memberInitials`). A Visitor has
|
|
3
|
+
// neither: both are "" and the avatar draws the person glyph. Shared by the app-level nav workers that serve it.
|
|
4
|
+
//
|
|
5
|
+
// Like the header badges (`header-badges.ts`) it is read at launch, whenever the signed-in identity changes (the native
|
|
6
|
+
// host session clock, or the reserved `onIdentityChange` hook a web host delivers), and on every foreground (a photo
|
|
7
|
+
// changed in Account settings shows on return). A read that finishes after the identity changed, or after a newer read
|
|
8
|
+
// began, is dropped. The values are the member's personal data: declare them `notPersisted` and `notHydrated`, so a
|
|
9
|
+
// stored snapshot never shows the previous member's face.
|
|
10
|
+
import { hostSessionFromGlobal } from "@himalaya/iap";
|
|
11
|
+
import { loadMemberProfile } from "./himi-account.js";
|
|
12
|
+
|
|
13
|
+
export interface MemberAvatarState {
|
|
14
|
+
memberImage: string;
|
|
15
|
+
memberInitials: string;
|
|
16
|
+
}
|
|
17
|
+
export const MEMBER_AVATAR_INITIAL: MemberAvatarState = { memberImage: "", memberInitials: "" };
|
|
18
|
+
export const MEMBER_AVATAR_KEYS: (keyof MemberAvatarState)[] = ["memberImage", "memberInitials"];
|
|
19
|
+
|
|
20
|
+
// A `type`, not an `interface`: `defineService` constrains its actions to `Record<string, fn>`.
|
|
21
|
+
export type MemberAvatarActionSignatures<S> = {
|
|
22
|
+
/** Re-read the member's photo and initials. Only the newest read lands. */
|
|
23
|
+
refreshMemberAvatar: (s: S) => Promise<S>;
|
|
24
|
+
/** Forget the member (a new identity), committed at once so no stale face waits on a network read. */
|
|
25
|
+
dropMemberAvatar: (s: S) => Promise<S>;
|
|
26
|
+
/** Reserved lifecycle hooks the app-service host delivers to every service that declares them. */
|
|
27
|
+
onForeground: (s: S) => Promise<S>;
|
|
28
|
+
onIdentityChange: (s: S) => Promise<S>;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export interface MemberAvatar<S> {
|
|
32
|
+
actions: MemberAvatarActionSignatures<S>;
|
|
33
|
+
/** Call once after `defineService`: the launch read, and the session clock's notifications. */
|
|
34
|
+
start(): void;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
type Update<S> = (s: S, change: (current: S) => Promise<S>) => Promise<S>;
|
|
38
|
+
type Self = () => { refreshMemberAvatar(): Promise<unknown>; dropMemberAvatar(): Promise<unknown> };
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @param update serializes state changes for the worker, so overlapping actions build on the preceding result
|
|
42
|
+
* @param self the worker's own service handle (read lazily: it does not exist yet when this is called)
|
|
43
|
+
*/
|
|
44
|
+
export function memberAvatar<S extends MemberAvatarState>(update: Update<S>, self: Self): MemberAvatar<S> {
|
|
45
|
+
/** Which read is the newest: an older one that finishes later must not overwrite a newer answer. */
|
|
46
|
+
let read = 0;
|
|
47
|
+
/** The host session generation the avatar on show was read under. */
|
|
48
|
+
let generation = -1;
|
|
49
|
+
const session = hostSessionFromGlobal();
|
|
50
|
+
|
|
51
|
+
const actions: MemberAvatarActionSignatures<S> = {
|
|
52
|
+
refreshMemberAvatar: async (s) => {
|
|
53
|
+
const mine = ++read;
|
|
54
|
+
// A guest comes back as the placeholder ("M" initials); the avatar draws the person glyph for a guest, so only a member's values count.
|
|
55
|
+
const profile = await loadMemberProfile("");
|
|
56
|
+
return update(s, async (current) => mine === read
|
|
57
|
+
? { ...current, memberImage: profile.isMember ? profile.memberImage : "", memberInitials: profile.isMember ? profile.memberInitials : "" }
|
|
58
|
+
: current);
|
|
59
|
+
},
|
|
60
|
+
dropMemberAvatar: async (s) => {
|
|
61
|
+
++read; // a read already in flight belongs to the previous identity
|
|
62
|
+
return update(s, async (current) => ({ ...current, ...MEMBER_AVATAR_INITIAL }));
|
|
63
|
+
},
|
|
64
|
+
onForeground: async (s) => update(s, async (current) => current).finally(() => { void self().refreshMemberAvatar(); }),
|
|
65
|
+
onIdentityChange: async (s) => {
|
|
66
|
+
++read;
|
|
67
|
+
const dropped = await update(s, async (current) => ({ ...current, ...MEMBER_AVATAR_INITIAL }));
|
|
68
|
+
void self().refreshMemberAvatar();
|
|
69
|
+
return dropped;
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
/** A session notification: a new generation is a new identity, so the previous member's face goes first. */
|
|
74
|
+
async function onSession(): Promise<void> {
|
|
75
|
+
const now = session.current().generation;
|
|
76
|
+
if (now !== generation) {
|
|
77
|
+
generation = now;
|
|
78
|
+
await self().dropMemberAvatar();
|
|
79
|
+
}
|
|
80
|
+
await self().refreshMemberAvatar();
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
actions,
|
|
85
|
+
start(): void {
|
|
86
|
+
// Subscribing notifies at once, which is the launch read; a host with no clock needs the explicit one.
|
|
87
|
+
let notified = false;
|
|
88
|
+
session.subscribe(() => { notified = true; void onSession(); });
|
|
89
|
+
if (!notified) void self().refreshMemberAvatar();
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
}
|
|
@@ -14,10 +14,12 @@
|
|
|
14
14
|
|
|
15
15
|
import { defineService } from "@himalaya/state";
|
|
16
16
|
import { HEADER_BADGE_KEYS, headerBadges, type HeaderBadgeActionSignatures, type HeaderBadges, type HeaderBadgeState } from "../_shared/header-badges.js";
|
|
17
|
-
import { ACCESS_GATES_INITIAL, ACCESS_STATE_KEYS, accessGates,
|
|
17
|
+
import { ACCESS_GATES_INITIAL, ACCESS_STATE_KEYS, accessGates, type AccessGateActionSignatures, type AccessGates, type AccessGateState } from "../_shared/access-gates.js";
|
|
18
|
+
import { MEMBER_AVATAR_INITIAL, MEMBER_AVATAR_KEYS, memberAvatar, type MemberAvatar, type MemberAvatarActionSignatures, type MemberAvatarState } from "../_shared/nav-member-avatar.js";
|
|
19
|
+
import { chainLifecycle } from "../_shared/lifecycle.js";
|
|
18
20
|
import { LOCATION_PIN_INITIAL, locationPin, type LocationPin, type LocationPinActionSignatures, type LocationPinState } from "../_shared/location-pin.js";
|
|
19
21
|
|
|
20
|
-
type State = HeaderBadgeState & AccessGateState & LocationPinState;
|
|
22
|
+
type State = HeaderBadgeState & AccessGateState & LocationPinState & MemberAvatarState;
|
|
21
23
|
|
|
22
24
|
// State changes await native work; overlapping actions must use the preceding result.
|
|
23
25
|
let stateQueue: Promise<State> | undefined;
|
|
@@ -31,16 +33,18 @@ function updateInOrder(s: State, update: (current: State) => Promise<State>): Pr
|
|
|
31
33
|
const badges: HeaderBadges<State> = headerBadges<State>(updateInOrder, () => svc);
|
|
32
34
|
const access: AccessGates<State> = accessGates<State>(updateInOrder, () => svc);
|
|
33
35
|
const pin: LocationPin<State> = locationPin<State>(updateInOrder, () => svc);
|
|
36
|
+
const avatar: MemberAvatar<State> = memberAvatar<State>(updateInOrder, () => svc);
|
|
34
37
|
|
|
35
|
-
const svc = defineService<State, HeaderBadgeActionSignatures<State> & AccessGateActionSignatures<State> & LocationPinActionSignatures<State>>("brandedLiteNav", {
|
|
38
|
+
const svc = defineService<State, HeaderBadgeActionSignatures<State> & AccessGateActionSignatures<State> & LocationPinActionSignatures<State> & MemberAvatarActionSignatures<State>>("brandedLiteNav", {
|
|
36
39
|
// Every count unavailable until the first read lands, and no failure to report. Every gate pending (locked).
|
|
37
|
-
state: { notificationsBadge: null, chatBadge: null, cartBadge: null, errorText: "", ...ACCESS_GATES_INITIAL, ...LOCATION_PIN_INITIAL },
|
|
38
|
-
// The counts and the gates describe THIS run (see _shared/header-badges.ts, _shared/access-gates.ts)
|
|
39
|
-
// never restored, so a snapshot can neither show
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
state: { notificationsBadge: null, chatBadge: null, cartBadge: null, errorText: "", ...ACCESS_GATES_INITIAL, ...LOCATION_PIN_INITIAL, ...MEMBER_AVATAR_INITIAL },
|
|
41
|
+
// The counts and the gates describe THIS run (see _shared/header-badges.ts, _shared/access-gates.ts), and the avatar is
|
|
42
|
+
// the member's personal data (_shared/nav-member-avatar.ts): never stored, never restored, so a snapshot can neither show
|
|
43
|
+
// another day's numbers nor keep a tab open nor show the previous member's face.
|
|
44
|
+
notPersisted: [...HEADER_BADGE_KEYS, ...ACCESS_STATE_KEYS, ...MEMBER_AVATAR_KEYS],
|
|
45
|
+
notHydrated: [...HEADER_BADGE_KEYS, ...ACCESS_STATE_KEYS, ...MEMBER_AVATAR_KEYS],
|
|
42
46
|
// The host calls one `onForeground` and one `onIdentityChange`: each piece runs in turn.
|
|
43
|
-
actions: { ...badges.actions, ...access.actions, ...pin.actions, ...chainLifecycle<State>(badges.actions, access.actions) },
|
|
47
|
+
actions: { ...badges.actions, ...access.actions, ...pin.actions, ...avatar.actions, ...chainLifecycle<State>(badges.actions, access.actions, avatar.actions) },
|
|
44
48
|
});
|
|
45
49
|
|
|
46
50
|
export { svc };
|
|
@@ -48,3 +52,4 @@ export { svc };
|
|
|
48
52
|
badges.start();
|
|
49
53
|
access.start();
|
|
50
54
|
pin.start();
|
|
55
|
+
avatar.start();
|