@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
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Sulje",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Sivut",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Näytä kaikki ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Fermer",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Pages",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_03e89418ffdf": {
|
|
1914
1920
|
"source": "Your Home",
|
|
1915
1921
|
"translation": "Votre accueil",
|
|
@@ -1605,6 +1605,11 @@
|
|
|
1605
1605
|
"source": "Dismiss",
|
|
1606
1606
|
"translation": "סגירה"
|
|
1607
1607
|
},
|
|
1608
|
+
"h_600584c2d5cc": {
|
|
1609
|
+
"source": "Pages",
|
|
1610
|
+
"translation": "דפים",
|
|
1611
|
+
"key": "account.pagesHeading"
|
|
1612
|
+
},
|
|
1608
1613
|
"h_03e89418ffdf": {
|
|
1609
1614
|
"source": "Your Home",
|
|
1610
1615
|
"translation": "הבית שלך"
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Bezárás",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Oldalak",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Az összes megjelenítése ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Tutup",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Halaman",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Tampilkan semua ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Chiudi",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Pagine",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Mostra tutto ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "閉じる",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "ページ",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "すべて表示({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "닫기",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "페이지",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "모두 보기 ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Uždaryti",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Puslapiai",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Rodyti viską ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Sluiten",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Pagina's",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Alles tonen ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Lukk",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Sider",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Vis alle ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Zamknij",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Strony",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Pokaż wszystko ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Fechar",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Páginas",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Mostrar tudo ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Закрыть",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Страницы",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Показать все ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Stäng",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Sidor",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Visa alla ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "ปิด",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "หน้า",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "ดูทั้งหมด ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Kapat",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Sayfalar",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Tümünü göster ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Закрити",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Сторінки",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Показати все ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "Đóng",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "Trang",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "Xem tất cả ({count})",
|
|
@@ -1910,6 +1910,12 @@
|
|
|
1910
1910
|
"translation": "关闭",
|
|
1911
1911
|
"origin": "machine"
|
|
1912
1912
|
},
|
|
1913
|
+
"h_600584c2d5cc": {
|
|
1914
|
+
"key": "account.pagesHeading",
|
|
1915
|
+
"source": "Pages",
|
|
1916
|
+
"translation": "页面",
|
|
1917
|
+
"origin": "machine"
|
|
1918
|
+
},
|
|
1913
1919
|
"h_1e9b74b4dda5": {
|
|
1914
1920
|
"source": "Show all ({count})",
|
|
1915
1921
|
"translation": "查看全部({count})",
|
|
@@ -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
|
+
}
|
|
@@ -23,8 +23,10 @@ import { applyBrand } from "@himalaya/theme";
|
|
|
23
23
|
import { hostSiteFromInput, hostedHiddenFlags } from "../_shared/branded-lite-hosted.js";
|
|
24
24
|
import { LOCATION_PIN_INITIAL, locationPin, type LocationPin, type LocationPinActionSignatures, type LocationPinState } from "../_shared/location-pin.js";
|
|
25
25
|
import { HEADER_BADGES_INITIAL, HEADER_BADGE_KEYS, headerBadges, type HeaderBadgeActionSignatures, type HeaderBadges, type HeaderBadgeState } from "../_shared/header-badges.js";
|
|
26
|
+
import { MEMBER_AVATAR_INITIAL, MEMBER_AVATAR_KEYS, memberAvatar, type MemberAvatar, type MemberAvatarActionSignatures, type MemberAvatarState } from "../_shared/nav-member-avatar.js";
|
|
27
|
+
import { chainLifecycle } from "../_shared/lifecycle.js";
|
|
26
28
|
|
|
27
|
-
interface NavState extends HeaderBadgeState, LocationPinState {
|
|
29
|
+
interface NavState extends HeaderBadgeState, LocationPinState, MemberAvatarState {
|
|
28
30
|
error: string;
|
|
29
31
|
/** Notifications received but not yet opened. Drives the app-icon badge. */
|
|
30
32
|
unread: number;
|
|
@@ -70,6 +72,8 @@ const hostedSite = hostSiteFromInput((globalThis as { himalaya?: { input?: unkno
|
|
|
70
72
|
|
|
71
73
|
// The header badge counts (bell, chat, cart): one service piece shared with the template's badges-only worker.
|
|
72
74
|
const badges: HeaderBadges<NavState> = headerBadges<NavState>(updateInOrder, () => svc);
|
|
75
|
+
// The member's photo and initials for the top-bar avatar (`topBarDefault`, bound as `$app:brandedLiteNav.memberImage`).
|
|
76
|
+
const avatar: MemberAvatar<NavState> = memberAvatar<NavState>(updateInOrder, () => svc);
|
|
73
77
|
// The Services top-bar location pin (`noLocationMenu`): one piece shared with the access-gates worker.
|
|
74
78
|
const pin: LocationPin<NavState> = locationPin<NavState>(updateInOrder, () => svc);
|
|
75
79
|
|
|
@@ -79,11 +83,12 @@ const svc = defineService<NavState, {
|
|
|
79
83
|
onNotification: (s: NavState, params?: unknown) => Promise<NavState>;
|
|
80
84
|
/** Zero the count (the user has caught up). */
|
|
81
85
|
clearUnread: (s: NavState) => Promise<NavState>;
|
|
82
|
-
} & HeaderBadgeActionSignatures<NavState> & LocationPinActionSignatures<NavState>>("brandedLiteNav", {
|
|
83
|
-
state: { error: "", unread: 0, hasUnread: false, unreadIds: [], lastTemplateId: "", lastTopic: "", lastResolvedLink: "", hosted: hostedHiddenFlags(hostedSite), ...LOCATION_PIN_INITIAL, ...HEADER_BADGES_INITIAL },
|
|
84
|
-
// The header badge counts describe THIS run (see _shared/header-badges.ts)
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
} & HeaderBadgeActionSignatures<NavState> & LocationPinActionSignatures<NavState> & MemberAvatarActionSignatures<NavState>>("brandedLiteNav", {
|
|
87
|
+
state: { error: "", unread: 0, hasUnread: false, unreadIds: [], lastTemplateId: "", lastTopic: "", lastResolvedLink: "", hosted: hostedHiddenFlags(hostedSite), ...LOCATION_PIN_INITIAL, ...HEADER_BADGES_INITIAL, ...MEMBER_AVATAR_INITIAL },
|
|
88
|
+
// The header badge counts describe THIS run (see _shared/header-badges.ts), and the avatar is the signed-in member's
|
|
89
|
+
// personal data (_shared/nav-member-avatar.ts): never stored, never restored.
|
|
90
|
+
notPersisted: [...HEADER_BADGE_KEYS, ...MEMBER_AVATAR_KEYS],
|
|
91
|
+
notHydrated: [...HEADER_BADGE_KEYS, ...MEMBER_AVATAR_KEYS],
|
|
87
92
|
actions: {
|
|
88
93
|
onNotification: async (s, params) => {
|
|
89
94
|
return updateInOrder(s, (current) => {
|
|
@@ -103,6 +108,9 @@ const svc = defineService<NavState, {
|
|
|
103
108
|
.finally(() => badges.refresh()),
|
|
104
109
|
...pin.actions,
|
|
105
110
|
...badges.actions,
|
|
111
|
+
...avatar.actions,
|
|
112
|
+
// The host calls one `onForeground` and one `onIdentityChange`: the badges and the avatar each run in turn.
|
|
113
|
+
...chainLifecycle<NavState>(badges.actions, avatar.actions),
|
|
106
114
|
},
|
|
107
115
|
});
|
|
108
116
|
|
|
@@ -144,6 +152,7 @@ export { svc };
|
|
|
144
152
|
pin.start(!!hostedSite && hostedHiddenFlags(hostedSite).bookings);
|
|
145
153
|
// Subscribing notifies at once, which is the launch read; a host with no clock needs the explicit one.
|
|
146
154
|
badges.start();
|
|
155
|
+
avatar.start();
|
|
147
156
|
|
|
148
157
|
// Hosted mode: the site's own brand over the build's. The shell's brand slot is scoped to this
|
|
149
158
|
// host session, so a site switch drops it.
|
|
@@ -262,7 +262,20 @@ function settle(next: S, arg: unknown, latest = true): S {
|
|
|
262
262
|
}
|
|
263
263
|
// Account forwards only on an appear refresh: the boot `load()` has no params and its
|
|
264
264
|
// navigation is dropped, so a forward there was lost and used up the one forward.
|
|
265
|
-
|
|
265
|
+
if (!strField(arg, "signInScreen")) return next;
|
|
266
|
+
const forwarded = forwardToSignIn(next);
|
|
267
|
+
return forwarded === next ? offerSignIn(next, arg) : forwarded;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
/** Profile (appear param `signInOnAppear: "1"`, set by an app whose top bar leads with the profile avatar): a guest who opens it is
|
|
271
|
+
* offered the standalone sign-in as a sheet, once. The sheet closes by itself or by the guest: either way this screen is under it, so
|
|
272
|
+
* a guest who only closes it stays on the guest Profile. A reload that follows is not a second offer; a member resets it. */
|
|
273
|
+
let signInOffered = false;
|
|
274
|
+
function offerSignIn(next: S, arg: unknown): S {
|
|
275
|
+
if (next.isMember) { signInOffered = false; return next; }
|
|
276
|
+
if (strField(arg, "signInOnAppear") !== "1" || signInOffered || next.standalone) return next;
|
|
277
|
+
signInOffered = true;
|
|
278
|
+
return openSignIn(next, { mode: "signin" }, null);
|
|
266
279
|
}
|
|
267
280
|
|
|
268
281
|
// A tick reads only the session. The profile is read again only when the signed-in email
|
|
@@ -325,6 +338,9 @@ let pollIdentityRequested = false;
|
|
|
325
338
|
// iOS can start the arg-less boot load after the appear refresh that asks for the row; the
|
|
326
339
|
// newer boot probe must not land, or be kept, without it.
|
|
327
340
|
let restorePurchasesRequested = false;
|
|
341
|
+
/** Profile's "Pages" group (appear param `showPages: "1"`): set on the screen's load by whoever knows the app's top bar
|
|
342
|
+
* leads with the profile avatar, so the drawer's pages stay reachable. Off, the group is hidden. */
|
|
343
|
+
let showPagesRequested = false;
|
|
328
344
|
/** An app's sign-in form that carries the ended-session notice (appear param `sessionEndedNotice: "1"`).
|
|
329
345
|
* Only that form gets the signed-out headline, whose copy only that app's pack translates, and the ended
|
|
330
346
|
* session's address, which only its email field shows, so no form submits it unseen. */
|
|
@@ -342,6 +358,7 @@ function appearBase(): Partial<S> {
|
|
|
342
358
|
standalone: standaloneRequested,
|
|
343
359
|
pollIdentity: pollIdentityRequested,
|
|
344
360
|
restorePurchases: restorePurchasesRequested,
|
|
361
|
+
showPages: showPagesRequested,
|
|
345
362
|
// One `_poll` per state: Account polls identity and never shows the social block.
|
|
346
363
|
...(pollIdentityRequested ? { _poll: { ...IDENTITY_POLL } } : socialRetriesLeft > 0 || flowsRetriesLeft > 0 ? { _poll: { ...SOCIAL_POLL } } : {}),
|
|
347
364
|
};
|
|
@@ -370,6 +387,7 @@ function appearConfig(s: S, arg: unknown): AppearConfig {
|
|
|
370
387
|
standaloneRequested ||= s.standalone || appearing || (!routeInputConsumed && !!routeInput().mode);
|
|
371
388
|
pollIdentityRequested ||= s.pollIdentity || strField(arg, "pollIdentity") === "1";
|
|
372
389
|
restorePurchasesRequested ||= s.restorePurchases || strField(arg, "restorePurchases") === "1";
|
|
390
|
+
showPagesRequested ||= s.showPages || strField(arg, "showPages") === "1";
|
|
373
391
|
sessionEndedNoticeRequested ||= strField(arg, "sessionEndedNotice") === "1";
|
|
374
392
|
// The form opens on the mode its route asked for each time it appears, sign-in by
|
|
375
393
|
// default: a pooled worker reopened with the same params must not open on the mode the
|
|
@@ -832,6 +850,10 @@ interface S extends IapRestoreFields {
|
|
|
832
850
|
* `restorePurchases: "1"`). Only then does the worker reach the App Store layer, so a
|
|
833
851
|
* descriptor that renders no such row need not declare `iap`. */
|
|
834
852
|
restorePurchases: boolean;
|
|
853
|
+
/** Set once a descriptor asks for Profile's "Pages" group (appear param `showPages: "1"`). */
|
|
854
|
+
showPages: boolean;
|
|
855
|
+
/** Hides Profile's "Pages" group until then. */
|
|
856
|
+
hidePages: boolean;
|
|
835
857
|
/** Top-bar cart badge, read only once a descriptor asks for it (appear param
|
|
836
858
|
* `cartCount: "1"`), so an app with no store never reads a cart. A guest has a
|
|
837
859
|
* visitor cart too, so this is read for members and guests alike. */
|
|
@@ -899,6 +921,7 @@ function derive(s: S): S {
|
|
|
899
921
|
hideGuest: loading || !!s.isMember,
|
|
900
922
|
hideMember: loading || !s.isMember,
|
|
901
923
|
hideSessionEnded: loading || !!s.isMember || !s.sessionEnded,
|
|
924
|
+
hidePages: !s.showPages,
|
|
902
925
|
password: "",
|
|
903
926
|
busyMessage: s.authBusy ? translated("auth.feedback.busy") : "",
|
|
904
927
|
isLoading: s.status === "loading",
|
|
@@ -1164,6 +1187,8 @@ const svc = defineService<S, {
|
|
|
1164
1187
|
noMemberAddresses: true,
|
|
1165
1188
|
noMemberWallet: true,
|
|
1166
1189
|
restorePurchases: false,
|
|
1190
|
+
showPages: false,
|
|
1191
|
+
hidePages: true,
|
|
1167
1192
|
cartCount: 0,
|
|
1168
1193
|
greeting: "Hey, guest",
|
|
1169
1194
|
greetingFirstName: "",
|