@wix/himalaya-cli 0.1851.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 +10963 -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
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Zavřít",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Stránky",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Zobrazit vše ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Luk",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Sider",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Vis alle ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Schließen",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Seiten",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Alle anzeigen ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Κλείσιμο",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Σελίδες",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"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_01828fbf543c": {
|
|
6
6
|
"source": "Get notified when your order status changes.",
|
|
@@ -526,6 +526,13 @@
|
|
|
526
526
|
"key": "accountSettings.retypePasswordLabel",
|
|
527
527
|
"keyOrigin": "string-table"
|
|
528
528
|
},
|
|
529
|
+
"h_600584c2d5cc": {
|
|
530
|
+
"source": "Pages",
|
|
531
|
+
"kind": "Text.text",
|
|
532
|
+
"translation": "",
|
|
533
|
+
"key": "account.pagesHeading",
|
|
534
|
+
"keyOrigin": "string-table"
|
|
535
|
+
},
|
|
529
536
|
"h_61ab9717cac1": {
|
|
530
537
|
"source": "My saved posts",
|
|
531
538
|
"kind": "Text.text",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Cerrar",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Páginas",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Ver todo ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Sulje",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Sivut",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Näytä kaikki ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Fermer",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Pages",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_03e89418ffdf": {
|
|
1344
1350
|
"source": "Your Home",
|
|
1345
1351
|
"translation": "Votre accueil",
|
|
@@ -1129,6 +1129,11 @@
|
|
|
1129
1129
|
"source": "Dismiss",
|
|
1130
1130
|
"translation": "סגירה"
|
|
1131
1131
|
},
|
|
1132
|
+
"h_600584c2d5cc": {
|
|
1133
|
+
"source": "Pages",
|
|
1134
|
+
"translation": "דפים",
|
|
1135
|
+
"key": "account.pagesHeading"
|
|
1136
|
+
},
|
|
1132
1137
|
"h_03e89418ffdf": {
|
|
1133
1138
|
"source": "Your Home",
|
|
1134
1139
|
"translation": "הבית שלך"
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Bezárás",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Oldalak",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Az összes megjelenítése ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Tutup",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Halaman",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Tampilkan semua ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Chiudi",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Pagine",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Mostra tutto ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "閉じる",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "ページ",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "すべて表示({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "닫기",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "페이지",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "모두 보기 ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Uždaryti",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Puslapiai",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Rodyti viską ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Sluiten",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Pagina's",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Alles tonen ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Lukk",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Sider",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Vis alle ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Zamknij",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Strony",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Pokaż wszystko ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Fechar",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Páginas",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Mostrar tudo ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Закрыть",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Страницы",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Показать все ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Stäng",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Sidor",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Visa alla ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "ปิด",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "หน้า",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "ดูทั้งหมด ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Kapat",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Sayfalar",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Tümünü göster ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Закрити",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Сторінки",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Показати все ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "Đóng",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "Trang",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "Xem tất cả ({count})",
|
|
@@ -1340,6 +1340,12 @@
|
|
|
1340
1340
|
"translation": "关闭",
|
|
1341
1341
|
"origin": "machine"
|
|
1342
1342
|
},
|
|
1343
|
+
"h_600584c2d5cc": {
|
|
1344
|
+
"key": "account.pagesHeading",
|
|
1345
|
+
"source": "Pages",
|
|
1346
|
+
"translation": "页面",
|
|
1347
|
+
"origin": "machine"
|
|
1348
|
+
},
|
|
1343
1349
|
"h_1e9b74b4dda5": {
|
|
1344
1350
|
"source": "Show all ({count})",
|
|
1345
1351
|
"translation": "查看全部({count})",
|
|
@@ -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: "",
|
|
@@ -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
|
+
}
|
|
@@ -14,6 +14,7 @@ import { navigate } from "@himalaya/state";
|
|
|
14
14
|
import { notificationOpen, urlHost, type NotificationOpen } from "../_shared/notification-target.js";
|
|
15
15
|
import { openRichLink } from "../_shared/rich-content-link.js";
|
|
16
16
|
import { copyParam, copyTemplate } from "../_shared/himi-copy.js";
|
|
17
|
+
import { guestSignIn } from "../_shared/guest-sign-in.js";
|
|
17
18
|
|
|
18
19
|
interface Row {
|
|
19
20
|
id: string;
|
|
@@ -147,6 +148,8 @@ function currentInbox(s: S): S | undefined {
|
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
const defineService = withOnlineWrites(registerService, ["markOneRead","markAll"], { messageFields: ["actionMessage"] });
|
|
151
|
+
/** A guest who opened Notifications is offered the app's sign-in at once (the load params opt in: `signInScreenId`). */
|
|
152
|
+
const guest = guestSignIn();
|
|
150
153
|
const INITIAL = { ...LOADING, items: [] as Row[], emptyText: "", actionMessage: "", pendingUrl: "", inboxMember: null };
|
|
151
154
|
const svc = defineService<S, {
|
|
152
155
|
prepare: (s: S) => S;
|
|
@@ -166,11 +169,15 @@ const svc = defineService<S, {
|
|
|
166
169
|
const served = servedScreens(arg);
|
|
167
170
|
try {
|
|
168
171
|
const member = await requireMember();
|
|
172
|
+
// At once, not after the read: a signed-in load whose read fails would otherwise leave the one-shot offer consumed for the next guest.
|
|
173
|
+
guest.member();
|
|
169
174
|
const items = (await queryNotifications(25)).map((n) => norm(n, served));
|
|
170
175
|
await assertMemberAccess(member);
|
|
171
176
|
return { ...s, ...loaded("items", items, COPY), inboxMember: member, actionMessage: "", pendingUrl: "" };
|
|
172
177
|
} catch (err) {
|
|
173
|
-
|
|
178
|
+
const signedIn = !!(await memberAccess()).email;
|
|
179
|
+
if (!signedIn) guest.offer(arg);
|
|
180
|
+
return { ...s, ...loadFailed("items", signedIn ? err : signInRequired(), COPY), inboxMember: null, actionMessage: "", pendingUrl: "" };
|
|
174
181
|
}
|
|
175
182
|
},
|
|
176
183
|
// Mark one read; optimistically clear its dot. Real write is best-effort and
|
|
@@ -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: "",
|