@wix/himalaya-cli 0.1835.0 → 0.1837.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/sdk/local-db/src/index.d.ts +15 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/define-app.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +1 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{9258d331cc401dff7b183ce732d49df2e480ea113b52198a4a10790167519c09.bin → 12b7dd1ca5ed350a30ed6a0085a4c31f30b46688e3795c425f145dfdd3830b31.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +1010 -705
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/app-config.md +42 -0
- package/guides/component-index.md +198 -0
- package/guides/designing-himi-screens.md +6 -5
- package/guides/getting-started.md +5 -1
- package/guides/himi-json-output.md +14 -1
- package/guides/himi-skill.md +5 -1
- package/guides/himi-test.md +6 -1
- package/guides/index.json +6 -0
- package/guides/release-notes.md +8 -0
- package/guides/sdk-reference.json +1 -1
- package/guides/skill.md +4 -0
- package/guides/tier-5-add-a-screen.md +10 -5
- package/guides/web-ux.md +2 -1
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +305 -2
- package/templates/beauty-salon/l10n/ar.json +77 -0
- package/templates/beauty-salon/l10n/cs.json +77 -0
- package/templates/beauty-salon/l10n/da.json +77 -0
- package/templates/beauty-salon/l10n/de.json +77 -0
- package/templates/beauty-salon/l10n/el.json +77 -0
- package/templates/beauty-salon/l10n/en.json +85 -1
- package/templates/beauty-salon/l10n/es.json +77 -0
- package/templates/beauty-salon/l10n/fi.json +77 -0
- package/templates/beauty-salon/l10n/fr.json +77 -0
- package/templates/beauty-salon/l10n/he.json +64 -0
- package/templates/beauty-salon/l10n/hu.json +77 -0
- package/templates/beauty-salon/l10n/id.json +77 -0
- package/templates/beauty-salon/l10n/it.json +77 -0
- package/templates/beauty-salon/l10n/ja.json +77 -0
- package/templates/beauty-salon/l10n/ko.json +77 -0
- package/templates/beauty-salon/l10n/lt.json +77 -0
- package/templates/beauty-salon/l10n/nl.json +77 -0
- package/templates/beauty-salon/l10n/no.json +77 -0
- package/templates/beauty-salon/l10n/pl.json +77 -0
- package/templates/beauty-salon/l10n/pt.json +77 -0
- package/templates/beauty-salon/l10n/ru.json +77 -0
- package/templates/beauty-salon/l10n/sv.json +77 -0
- package/templates/beauty-salon/l10n/th.json +77 -0
- package/templates/beauty-salon/l10n/tr.json +77 -0
- package/templates/beauty-salon/l10n/uk.json +77 -0
- package/templates/beauty-salon/l10n/vi.json +77 -0
- package/templates/beauty-salon/l10n/zh.json +77 -0
- package/templates/beauty-salon/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/beauty-salon/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/branded-lite/dev/index.ts +305 -2
- package/templates/branded-lite/l10n/ar.json +77 -0
- package/templates/branded-lite/l10n/cs.json +77 -0
- package/templates/branded-lite/l10n/da.json +77 -0
- package/templates/branded-lite/l10n/de.json +77 -0
- package/templates/branded-lite/l10n/el.json +77 -0
- package/templates/branded-lite/l10n/en.json +85 -1
- package/templates/branded-lite/l10n/es.json +77 -0
- package/templates/branded-lite/l10n/fi.json +77 -0
- package/templates/branded-lite/l10n/fr.json +77 -0
- package/templates/branded-lite/l10n/he.json +64 -0
- package/templates/branded-lite/l10n/hu.json +77 -0
- package/templates/branded-lite/l10n/id.json +77 -0
- package/templates/branded-lite/l10n/it.json +77 -0
- package/templates/branded-lite/l10n/ja.json +77 -0
- package/templates/branded-lite/l10n/ko.json +77 -0
- package/templates/branded-lite/l10n/lt.json +77 -0
- package/templates/branded-lite/l10n/nl.json +77 -0
- package/templates/branded-lite/l10n/no.json +77 -0
- package/templates/branded-lite/l10n/pl.json +77 -0
- package/templates/branded-lite/l10n/pt.json +77 -0
- package/templates/branded-lite/l10n/ru.json +77 -0
- package/templates/branded-lite/l10n/sv.json +77 -0
- package/templates/branded-lite/l10n/th.json +77 -0
- package/templates/branded-lite/l10n/tr.json +77 -0
- package/templates/branded-lite/l10n/uk.json +77 -0
- package/templates/branded-lite/l10n/vi.json +77 -0
- package/templates/branded-lite/l10n/zh.json +77 -0
- package/templates/branded-lite/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/branded-lite/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/community-club/dev/index.ts +305 -2
- package/templates/community-club/l10n/ar.json +77 -0
- package/templates/community-club/l10n/cs.json +77 -0
- package/templates/community-club/l10n/da.json +77 -0
- package/templates/community-club/l10n/de.json +77 -0
- package/templates/community-club/l10n/el.json +77 -0
- package/templates/community-club/l10n/en.json +85 -1
- package/templates/community-club/l10n/es.json +77 -0
- package/templates/community-club/l10n/fi.json +77 -0
- package/templates/community-club/l10n/fr.json +77 -0
- package/templates/community-club/l10n/he.json +64 -0
- package/templates/community-club/l10n/hu.json +77 -0
- package/templates/community-club/l10n/id.json +77 -0
- package/templates/community-club/l10n/it.json +77 -0
- package/templates/community-club/l10n/ja.json +77 -0
- package/templates/community-club/l10n/ko.json +77 -0
- package/templates/community-club/l10n/lt.json +77 -0
- package/templates/community-club/l10n/nl.json +77 -0
- package/templates/community-club/l10n/no.json +77 -0
- package/templates/community-club/l10n/pl.json +77 -0
- package/templates/community-club/l10n/pt.json +77 -0
- package/templates/community-club/l10n/ru.json +77 -0
- package/templates/community-club/l10n/sv.json +77 -0
- package/templates/community-club/l10n/th.json +77 -0
- package/templates/community-club/l10n/tr.json +77 -0
- package/templates/community-club/l10n/uk.json +77 -0
- package/templates/community-club/l10n/vi.json +77 -0
- package/templates/community-club/l10n/zh.json +77 -0
- package/templates/community-club/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/community-club/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/events-meetups/dev/index.ts +305 -2
- package/templates/events-meetups/l10n/ar.json +77 -0
- package/templates/events-meetups/l10n/cs.json +77 -0
- package/templates/events-meetups/l10n/da.json +77 -0
- package/templates/events-meetups/l10n/de.json +77 -0
- package/templates/events-meetups/l10n/el.json +77 -0
- package/templates/events-meetups/l10n/en.json +85 -1
- package/templates/events-meetups/l10n/es.json +77 -0
- package/templates/events-meetups/l10n/fi.json +77 -0
- package/templates/events-meetups/l10n/fr.json +77 -0
- package/templates/events-meetups/l10n/he.json +64 -0
- package/templates/events-meetups/l10n/hu.json +77 -0
- package/templates/events-meetups/l10n/id.json +77 -0
- package/templates/events-meetups/l10n/it.json +77 -0
- package/templates/events-meetups/l10n/ja.json +77 -0
- package/templates/events-meetups/l10n/ko.json +77 -0
- package/templates/events-meetups/l10n/lt.json +77 -0
- package/templates/events-meetups/l10n/nl.json +77 -0
- package/templates/events-meetups/l10n/no.json +77 -0
- package/templates/events-meetups/l10n/pl.json +77 -0
- package/templates/events-meetups/l10n/pt.json +77 -0
- package/templates/events-meetups/l10n/ru.json +77 -0
- package/templates/events-meetups/l10n/sv.json +77 -0
- package/templates/events-meetups/l10n/th.json +77 -0
- package/templates/events-meetups/l10n/tr.json +77 -0
- package/templates/events-meetups/l10n/uk.json +77 -0
- package/templates/events-meetups/l10n/vi.json +77 -0
- package/templates/events-meetups/l10n/zh.json +77 -0
- package/templates/events-meetups/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/events-meetups/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/gym-fitness/dev/index.ts +305 -2
- package/templates/gym-fitness/l10n/ar.json +77 -0
- package/templates/gym-fitness/l10n/cs.json +77 -0
- package/templates/gym-fitness/l10n/da.json +77 -0
- package/templates/gym-fitness/l10n/de.json +77 -0
- package/templates/gym-fitness/l10n/el.json +77 -0
- package/templates/gym-fitness/l10n/en.json +85 -1
- package/templates/gym-fitness/l10n/es.json +77 -0
- package/templates/gym-fitness/l10n/fi.json +77 -0
- package/templates/gym-fitness/l10n/fr.json +77 -0
- package/templates/gym-fitness/l10n/he.json +64 -0
- package/templates/gym-fitness/l10n/hu.json +77 -0
- package/templates/gym-fitness/l10n/id.json +77 -0
- package/templates/gym-fitness/l10n/it.json +77 -0
- package/templates/gym-fitness/l10n/ja.json +77 -0
- package/templates/gym-fitness/l10n/ko.json +77 -0
- package/templates/gym-fitness/l10n/lt.json +77 -0
- package/templates/gym-fitness/l10n/nl.json +77 -0
- package/templates/gym-fitness/l10n/no.json +77 -0
- package/templates/gym-fitness/l10n/pl.json +77 -0
- package/templates/gym-fitness/l10n/pt.json +77 -0
- package/templates/gym-fitness/l10n/ru.json +77 -0
- package/templates/gym-fitness/l10n/sv.json +77 -0
- package/templates/gym-fitness/l10n/th.json +77 -0
- package/templates/gym-fitness/l10n/tr.json +77 -0
- package/templates/gym-fitness/l10n/uk.json +77 -0
- package/templates/gym-fitness/l10n/vi.json +77 -0
- package/templates/gym-fitness/l10n/zh.json +77 -0
- package/templates/gym-fitness/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/gym-fitness/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/nonprofit-cause/dev/index.ts +305 -2
- package/templates/nonprofit-cause/l10n/ar.json +77 -0
- package/templates/nonprofit-cause/l10n/cs.json +77 -0
- package/templates/nonprofit-cause/l10n/da.json +77 -0
- package/templates/nonprofit-cause/l10n/de.json +77 -0
- package/templates/nonprofit-cause/l10n/el.json +77 -0
- package/templates/nonprofit-cause/l10n/en.json +85 -1
- package/templates/nonprofit-cause/l10n/es.json +77 -0
- package/templates/nonprofit-cause/l10n/fi.json +77 -0
- package/templates/nonprofit-cause/l10n/fr.json +77 -0
- package/templates/nonprofit-cause/l10n/he.json +64 -0
- package/templates/nonprofit-cause/l10n/hu.json +77 -0
- package/templates/nonprofit-cause/l10n/id.json +77 -0
- package/templates/nonprofit-cause/l10n/it.json +77 -0
- package/templates/nonprofit-cause/l10n/ja.json +77 -0
- package/templates/nonprofit-cause/l10n/ko.json +77 -0
- package/templates/nonprofit-cause/l10n/lt.json +77 -0
- package/templates/nonprofit-cause/l10n/nl.json +77 -0
- package/templates/nonprofit-cause/l10n/no.json +77 -0
- package/templates/nonprofit-cause/l10n/pl.json +77 -0
- package/templates/nonprofit-cause/l10n/pt.json +77 -0
- package/templates/nonprofit-cause/l10n/ru.json +77 -0
- package/templates/nonprofit-cause/l10n/sv.json +77 -0
- package/templates/nonprofit-cause/l10n/th.json +77 -0
- package/templates/nonprofit-cause/l10n/tr.json +77 -0
- package/templates/nonprofit-cause/l10n/uk.json +77 -0
- package/templates/nonprofit-cause/l10n/vi.json +77 -0
- package/templates/nonprofit-cause/l10n/zh.json +77 -0
- package/templates/nonprofit-cause/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/personal-fitness-trainer/config.ts +1 -1
- package/templates/personal-fitness-trainer/dev/index.ts +129 -1
- package/templates/personal-fitness-trainer/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/podcast-creator/dev/index.ts +305 -2
- package/templates/podcast-creator/l10n/ar.json +77 -0
- package/templates/podcast-creator/l10n/cs.json +77 -0
- package/templates/podcast-creator/l10n/da.json +77 -0
- package/templates/podcast-creator/l10n/de.json +77 -0
- package/templates/podcast-creator/l10n/el.json +77 -0
- package/templates/podcast-creator/l10n/en.json +85 -1
- package/templates/podcast-creator/l10n/es.json +77 -0
- package/templates/podcast-creator/l10n/fi.json +77 -0
- package/templates/podcast-creator/l10n/fr.json +77 -0
- package/templates/podcast-creator/l10n/he.json +64 -0
- package/templates/podcast-creator/l10n/hu.json +77 -0
- package/templates/podcast-creator/l10n/id.json +77 -0
- package/templates/podcast-creator/l10n/it.json +77 -0
- package/templates/podcast-creator/l10n/ja.json +77 -0
- package/templates/podcast-creator/l10n/ko.json +77 -0
- package/templates/podcast-creator/l10n/lt.json +77 -0
- package/templates/podcast-creator/l10n/nl.json +77 -0
- package/templates/podcast-creator/l10n/no.json +77 -0
- package/templates/podcast-creator/l10n/pl.json +77 -0
- package/templates/podcast-creator/l10n/pt.json +77 -0
- package/templates/podcast-creator/l10n/ru.json +77 -0
- package/templates/podcast-creator/l10n/sv.json +77 -0
- package/templates/podcast-creator/l10n/th.json +77 -0
- package/templates/podcast-creator/l10n/tr.json +77 -0
- package/templates/podcast-creator/l10n/uk.json +77 -0
- package/templates/podcast-creator/l10n/vi.json +77 -0
- package/templates/podcast-creator/l10n/zh.json +77 -0
- package/templates/podcast-creator/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/podcast-creator/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/portfolio-creative/dev/index.ts +305 -2
- package/templates/portfolio-creative/l10n/ar.json +77 -0
- package/templates/portfolio-creative/l10n/cs.json +77 -0
- package/templates/portfolio-creative/l10n/da.json +77 -0
- package/templates/portfolio-creative/l10n/de.json +77 -0
- package/templates/portfolio-creative/l10n/el.json +77 -0
- package/templates/portfolio-creative/l10n/en.json +85 -1
- package/templates/portfolio-creative/l10n/es.json +77 -0
- package/templates/portfolio-creative/l10n/fi.json +77 -0
- package/templates/portfolio-creative/l10n/fr.json +77 -0
- package/templates/portfolio-creative/l10n/he.json +64 -0
- package/templates/portfolio-creative/l10n/hu.json +77 -0
- package/templates/portfolio-creative/l10n/id.json +77 -0
- package/templates/portfolio-creative/l10n/it.json +77 -0
- package/templates/portfolio-creative/l10n/ja.json +77 -0
- package/templates/portfolio-creative/l10n/ko.json +77 -0
- package/templates/portfolio-creative/l10n/lt.json +77 -0
- package/templates/portfolio-creative/l10n/nl.json +77 -0
- package/templates/portfolio-creative/l10n/no.json +77 -0
- package/templates/portfolio-creative/l10n/pl.json +77 -0
- package/templates/portfolio-creative/l10n/pt.json +77 -0
- package/templates/portfolio-creative/l10n/ru.json +77 -0
- package/templates/portfolio-creative/l10n/sv.json +77 -0
- package/templates/portfolio-creative/l10n/th.json +77 -0
- package/templates/portfolio-creative/l10n/tr.json +77 -0
- package/templates/portfolio-creative/l10n/uk.json +77 -0
- package/templates/portfolio-creative/l10n/vi.json +77 -0
- package/templates/portfolio-creative/l10n/zh.json +77 -0
- package/templates/portfolio-creative/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/restaurant/dev/index.ts +305 -2
- package/templates/restaurant/l10n/ar.json +77 -0
- package/templates/restaurant/l10n/cs.json +77 -0
- package/templates/restaurant/l10n/da.json +77 -0
- package/templates/restaurant/l10n/de.json +77 -0
- package/templates/restaurant/l10n/el.json +77 -0
- package/templates/restaurant/l10n/en.json +85 -1
- package/templates/restaurant/l10n/es.json +77 -0
- package/templates/restaurant/l10n/fi.json +77 -0
- package/templates/restaurant/l10n/fr.json +77 -0
- package/templates/restaurant/l10n/he.json +64 -0
- package/templates/restaurant/l10n/hu.json +77 -0
- package/templates/restaurant/l10n/id.json +77 -0
- package/templates/restaurant/l10n/it.json +77 -0
- package/templates/restaurant/l10n/ja.json +77 -0
- package/templates/restaurant/l10n/ko.json +77 -0
- package/templates/restaurant/l10n/lt.json +77 -0
- package/templates/restaurant/l10n/nl.json +77 -0
- package/templates/restaurant/l10n/no.json +77 -0
- package/templates/restaurant/l10n/pl.json +77 -0
- package/templates/restaurant/l10n/pt.json +77 -0
- package/templates/restaurant/l10n/ru.json +77 -0
- package/templates/restaurant/l10n/sv.json +77 -0
- package/templates/restaurant/l10n/th.json +77 -0
- package/templates/restaurant/l10n/tr.json +77 -0
- package/templates/restaurant/l10n/uk.json +77 -0
- package/templates/restaurant/l10n/vi.json +77 -0
- package/templates/restaurant/l10n/zh.json +77 -0
- package/templates/restaurant/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/restaurant/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/retail-store/dev/index.ts +305 -2
- package/templates/retail-store/l10n/ar.json +77 -0
- package/templates/retail-store/l10n/cs.json +77 -0
- package/templates/retail-store/l10n/da.json +77 -0
- package/templates/retail-store/l10n/de.json +77 -0
- package/templates/retail-store/l10n/el.json +77 -0
- package/templates/retail-store/l10n/en.json +85 -1
- package/templates/retail-store/l10n/es.json +77 -0
- package/templates/retail-store/l10n/fi.json +77 -0
- package/templates/retail-store/l10n/fr.json +77 -0
- package/templates/retail-store/l10n/he.json +64 -0
- package/templates/retail-store/l10n/hu.json +77 -0
- package/templates/retail-store/l10n/id.json +77 -0
- package/templates/retail-store/l10n/it.json +77 -0
- package/templates/retail-store/l10n/ja.json +77 -0
- package/templates/retail-store/l10n/ko.json +77 -0
- package/templates/retail-store/l10n/lt.json +77 -0
- package/templates/retail-store/l10n/nl.json +77 -0
- package/templates/retail-store/l10n/no.json +77 -0
- package/templates/retail-store/l10n/pl.json +77 -0
- package/templates/retail-store/l10n/pt.json +77 -0
- package/templates/retail-store/l10n/ru.json +77 -0
- package/templates/retail-store/l10n/sv.json +77 -0
- package/templates/retail-store/l10n/th.json +77 -0
- package/templates/retail-store/l10n/tr.json +77 -0
- package/templates/retail-store/l10n/uk.json +77 -0
- package/templates/retail-store/l10n/vi.json +77 -0
- package/templates/retail-store/l10n/zh.json +77 -0
- package/templates/retail-store/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/retail-store/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
- package/templates/yoga-studio/dev/index.ts +305 -2
- package/templates/yoga-studio/l10n/ar.json +77 -0
- package/templates/yoga-studio/l10n/cs.json +77 -0
- package/templates/yoga-studio/l10n/da.json +77 -0
- package/templates/yoga-studio/l10n/de.json +77 -0
- package/templates/yoga-studio/l10n/el.json +77 -0
- package/templates/yoga-studio/l10n/en.json +85 -1
- package/templates/yoga-studio/l10n/es.json +77 -0
- package/templates/yoga-studio/l10n/fi.json +77 -0
- package/templates/yoga-studio/l10n/fr.json +77 -0
- package/templates/yoga-studio/l10n/he.json +64 -0
- package/templates/yoga-studio/l10n/hu.json +77 -0
- package/templates/yoga-studio/l10n/id.json +77 -0
- package/templates/yoga-studio/l10n/it.json +77 -0
- package/templates/yoga-studio/l10n/ja.json +77 -0
- package/templates/yoga-studio/l10n/ko.json +77 -0
- package/templates/yoga-studio/l10n/lt.json +77 -0
- package/templates/yoga-studio/l10n/nl.json +77 -0
- package/templates/yoga-studio/l10n/no.json +77 -0
- package/templates/yoga-studio/l10n/pl.json +77 -0
- package/templates/yoga-studio/l10n/pt.json +77 -0
- package/templates/yoga-studio/l10n/ru.json +77 -0
- package/templates/yoga-studio/l10n/sv.json +77 -0
- package/templates/yoga-studio/l10n/th.json +77 -0
- package/templates/yoga-studio/l10n/tr.json +77 -0
- package/templates/yoga-studio/l10n/uk.json +77 -0
- package/templates/yoga-studio/l10n/vi.json +77 -0
- package/templates/yoga-studio/l10n/zh.json +77 -0
- package/templates/yoga-studio/tier5-src/_shared/push-permission.ts +75 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +103 -4
- package/templates/yoga-studio/tier5-src/himi-branded-lite-notifsettings/index.ts +108 -6
|
@@ -6,9 +6,16 @@ import { withOnlineWrites } from "../_shared/online-actions.js";
|
|
|
6
6
|
// (_shared/branded-load-state.ts).
|
|
7
7
|
// any exist. INTERACTIVE: tapping a row toggles that topic On/Off — optimistic +
|
|
8
8
|
// best-effort upsertMyNotificationPreferences (a no-op on sample rows).
|
|
9
|
-
|
|
9
|
+
//
|
|
10
|
+
// A saved preference is only half the truth: the PHONE's permission decides whether anything
|
|
11
|
+
// arrives. So the screen also reads it (declares "push"): denied ⇒ "off on this phone" + Open
|
|
12
|
+
// Settings, never asked ⇒ an offer to turn on, and either way the switches are dimmed. `load`
|
|
13
|
+
// arms a poll the host fires the moment the app returns to the foreground, which is the return
|
|
14
|
+
// from the OS settings.
|
|
15
|
+
import { defineService as registerService, type PollDirective } from "@himalaya/state";
|
|
16
|
+
import { askForPush, openPushSettings, readPhonePush, refreshGrantedToken, refreshGrantedTokenOnce, type PushStatus } from "../_shared/push-permission.js";
|
|
10
17
|
import { withEmptyFlags } from "../_shared/empty-flags.js";
|
|
11
|
-
import { stashCopy } from "../_shared/himi-copy.js";
|
|
18
|
+
import { copyParam, stashCopy } from "../_shared/himi-copy.js";
|
|
12
19
|
import { memberAccess, assertMemberAccess, type MemberAccess } from "../_shared/member-access.js";
|
|
13
20
|
import { LOADING, loaded, loadFailed, type LoadCopy, type LoadFlags } from "../_shared/branded-load-state.js";
|
|
14
21
|
import {
|
|
@@ -41,8 +48,42 @@ interface S extends LoadFlags {
|
|
|
41
48
|
* query failed. A failed query must never render the sentence that claims the
|
|
42
49
|
* customer has no content. */
|
|
43
50
|
notMockEmpty: boolean; notMockUnavailable: boolean;
|
|
51
|
+
/** The phone's notification permission; "loading" until read, "error" without push. */
|
|
52
|
+
pushStatus: PushStatus | "loading";
|
|
53
|
+
/** hiddenWhen flags: the "off on this phone" card shows only when denied, the turn-on offer
|
|
54
|
+
* only when never asked. Both hidden while loading or without push. */
|
|
55
|
+
hidePushOff: boolean; hidePushAsk: boolean;
|
|
56
|
+
/** The off card's one button: "Open Settings" where only Settings can change it, "Turn on" on
|
|
57
|
+
* Android 13+, whose "denied" also means never asked (the action prompts, then falls to Settings). */
|
|
58
|
+
hideOffSettingsCta: boolean; hideOffTurnOnCta: boolean;
|
|
59
|
+
/** The topic switches' opacity: dimmed while the phone blocks notifications. */
|
|
60
|
+
topicsOpacity: number;
|
|
61
|
+
pushMessage: string;
|
|
62
|
+
/** Transient: the runtime strips it and arms the foreground-refresh poll. */
|
|
63
|
+
_poll?: PollDirective;
|
|
44
64
|
}
|
|
45
65
|
|
|
66
|
+
const DIMMED = 0.45;
|
|
67
|
+
|
|
68
|
+
/** The push half of the view for a status. Pure, so every branch is pinned by the tests. */
|
|
69
|
+
type PushView = Pick<S, "pushStatus" | "hidePushOff" | "hidePushAsk" | "hideOffSettingsCta" | "hideOffTurnOnCta" | "topicsOpacity">;
|
|
70
|
+
export function pushView(pushStatus: S["pushStatus"], deniedMayPrompt = false): PushView {
|
|
71
|
+
const blocked = pushStatus === "denied" || pushStatus === "undetermined";
|
|
72
|
+
const off = pushStatus === "denied";
|
|
73
|
+
return {
|
|
74
|
+
pushStatus, hidePushOff: !off, hidePushAsk: pushStatus !== "undetermined",
|
|
75
|
+
hideOffSettingsCta: !off || deniedMayPrompt, hideOffTurnOnCta: !off || !deniedMayPrompt,
|
|
76
|
+
topicsOpacity: blocked ? DIMMED : 1,
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** Whether this phone's "denied" may still hide a first ask (last read; see readPhonePush). */
|
|
81
|
+
let deniedMayPrompt = false;
|
|
82
|
+
const viewOf = (status: S["pushStatus"]): PushView => pushView(status, deniedMayPrompt);
|
|
83
|
+
|
|
84
|
+
const POLL: PollDirective = { id: "himi-branded-notifsettings-push", intervalMs: 60_000, action: "himiBrandedNotifSettings.checkPush", immediate: false };
|
|
85
|
+
const OPEN_FAILED = () => copyParam("notifsettings.openSettingsFailed", "Change notifications for this app in your phone's settings.");
|
|
86
|
+
|
|
46
87
|
/** Whether this topic is actually being DELIVERED — not merely what the recipient
|
|
47
88
|
* asked for. `isDeliveredNow` prefers the server's `granted` verdict, so a topic the
|
|
48
89
|
* member unmuted under a channel-wide mute renders OFF instead of promising a
|
|
@@ -97,20 +138,50 @@ const COPY: LoadCopy<Row> = {
|
|
|
97
138
|
|
|
98
139
|
const defineService = withOnlineWrites(registerService, ["toggle"], { messageFields: ["actionMessage"] });
|
|
99
140
|
const INITIAL = { ...LOADING, topics: [] as Row[], emptyText: "", actionMessage: "", preferencesMember: null };
|
|
141
|
+
const PUSH_INITIAL = { ...pushView("loading"), pushMessage: "" };
|
|
142
|
+
const PUSH_FIELDS = ["pushStatus", "hidePushOff", "hidePushAsk", "hideOffSettingsCta", "hideOffTurnOnCta", "topicsOpacity", "pushMessage"] as const;
|
|
143
|
+
/** Bumped by every action that writes the permission: a load started earlier must not overwrite it. */
|
|
144
|
+
let pushWrites = 0;
|
|
145
|
+
function pushFieldsOf(state: S): Pick<S, (typeof PUSH_FIELDS)[number]> {
|
|
146
|
+
return Object.fromEntries(PUSH_FIELDS.map((k) => [k, state[k]])) as Pick<S, (typeof PUSH_FIELDS)[number]>;
|
|
147
|
+
}
|
|
100
148
|
const signInRequired = () => new Error("Unauthenticated: sign in to manage notifications");
|
|
101
149
|
let loadVersion = 0;
|
|
102
150
|
const svc = defineService<S, {
|
|
103
151
|
prepare: (s: S) => S;
|
|
104
152
|
load: (s: S, arg?: unknown) => Promise<S | undefined>;
|
|
105
153
|
toggle: (s: S, p?: { id?: string; value?: unknown }) => Promise<S | undefined>;
|
|
154
|
+
checkPush: (s: S) => Promise<S | undefined>;
|
|
155
|
+
enablePush: (s: S) => Promise<S>;
|
|
156
|
+
openPushSettings: (s: S) => Promise<S>;
|
|
106
157
|
}>("himiBrandedNotifSettings", withEmptyFlags({
|
|
107
|
-
state: INITIAL,
|
|
158
|
+
state: { ...INITIAL, ...PUSH_INITIAL },
|
|
159
|
+
// The phone's permission is read fresh each run: last run's answer may have changed in Settings.
|
|
160
|
+
notHydrated: [...PUSH_FIELDS],
|
|
161
|
+
// Nor persisted: an early paint from the snapshot would show last run's card before the worker reads the OS.
|
|
162
|
+
notPersisted: [...PUSH_FIELDS],
|
|
108
163
|
actions: {
|
|
109
|
-
|
|
164
|
+
// The push view too: a warm worker must not show last visit's card while this load reads the OS.
|
|
165
|
+
// `pushStatus` is kept: a poll comparing against it must not mistake a reload for a change.
|
|
166
|
+
prepare: (s) => ({ ...s, ...INITIAL, ...PUSH_INITIAL, pushStatus: s.pushStatus }),
|
|
110
167
|
load: async (s, arg): Promise<S | undefined> => {
|
|
111
168
|
stashCopy(arg);
|
|
112
169
|
const version = ++loadVersion;
|
|
113
170
|
await svc.prepare();
|
|
171
|
+
// Independent of the member (a visitor's phone permission is just as real), and read HERE rather
|
|
172
|
+
// than by a second action, which could commit after this one with no topics.
|
|
173
|
+
const phoneRead = readPhonePush();
|
|
174
|
+
const writesAtStart = pushWrites;
|
|
175
|
+
const pushOf = async () => {
|
|
176
|
+
const phone = await phoneRead;
|
|
177
|
+
// A grant made (or seen) while this load waited on the topics wins over its older read.
|
|
178
|
+
if (pushWrites !== writesAtStart) return pushFieldsOf(current());
|
|
179
|
+
deniedMayPrompt = phone.deniedMayPrompt;
|
|
180
|
+
// A grant first seen here (e.g. turned on in Settings before this screen opened) still needs
|
|
181
|
+
// this session's token.
|
|
182
|
+
await refreshGrantedTokenOnce(phone.status);
|
|
183
|
+
return { ...viewOf(phone.status), pushMessage: "" };
|
|
184
|
+
};
|
|
114
185
|
try {
|
|
115
186
|
const member = await memberAccess();
|
|
116
187
|
if (!member.email) throw signInRequired();
|
|
@@ -121,12 +192,14 @@ const svc = defineService<S, {
|
|
|
121
192
|
await assertMemberAccess(member);
|
|
122
193
|
const prefs = readPreferences(prefsRes);
|
|
123
194
|
const topics = readTopics(topicsRes).map((t) => norm(t, prefs));
|
|
124
|
-
|
|
195
|
+
const push = await pushOf();
|
|
196
|
+
return version === loadVersion ? { ...current(), ...loaded("topics", topics, COPY), ...push, preferencesMember: member, actionMessage: "", _poll: POLL } : undefined;
|
|
125
197
|
} catch {
|
|
126
198
|
const member = await memberAccess();
|
|
127
199
|
// An authenticated denial is not repaired by an endless sign-in loop.
|
|
128
200
|
const failure = member.email ? new Error(COPY.error) : signInRequired();
|
|
129
|
-
|
|
201
|
+
const push = await pushOf();
|
|
202
|
+
return version === loadVersion ? { ...current(), ...loadFailed("topics", failure, COPY), ...push, preferencesMember: null, actionMessage: "", _poll: POLL } : undefined;
|
|
130
203
|
}
|
|
131
204
|
},
|
|
132
205
|
// Flip one topic's On/Off. Optimistic (updates the row immediately); the real
|
|
@@ -166,8 +239,37 @@ const svc = defineService<S, {
|
|
|
166
239
|
}
|
|
167
240
|
return svc.getState().preferencesMember === s.preferencesMember ? { ...svc.getState(), topics } : undefined;
|
|
168
241
|
},
|
|
242
|
+
// onAppear's kick and every poll tick (the host fires it on return from the OS settings).
|
|
243
|
+
checkPush: async (s): Promise<S | undefined> => {
|
|
244
|
+
const phone = await readPhonePush();
|
|
245
|
+
deniedMayPrompt = phone.deniedMayPrompt;
|
|
246
|
+
const status = phone.status;
|
|
247
|
+
if (status === s.pushStatus) return undefined;
|
|
248
|
+
pushWrites++;
|
|
249
|
+
// Turned on in the OS settings while away: register this session's token.
|
|
250
|
+
await refreshGrantedToken(status);
|
|
251
|
+
return { ...current(), ...viewOf(status), pushMessage: "" };
|
|
252
|
+
},
|
|
253
|
+
// "Turn on notifications" (never asked): the system prompt, and nothing else. The answer is
|
|
254
|
+
// awaited BEFORE the state is read: topics may have loaded while the prompt was up.
|
|
255
|
+
enablePush: async (): Promise<S> => {
|
|
256
|
+
const status = await askForPush();
|
|
257
|
+
pushWrites++;
|
|
258
|
+
return { ...current(), ...viewOf(status), pushMessage: "" };
|
|
259
|
+
},
|
|
260
|
+
// "Open Settings" (denied). A request first: on Android "denied" also means never asked, and
|
|
261
|
+
// a request is the only way to find out. Anything but a grant goes to the OS settings.
|
|
262
|
+
openPushSettings: async (): Promise<S> => {
|
|
263
|
+
const status = await askForPush();
|
|
264
|
+
pushWrites++;
|
|
265
|
+
if (status === "granted") return { ...current(), ...viewOf(status), pushMessage: "" };
|
|
266
|
+
const opened = await openPushSettings();
|
|
267
|
+
return { ...current(), ...viewOf(status), pushMessage: opened ? "" : OPEN_FAILED() };
|
|
268
|
+
},
|
|
169
269
|
},
|
|
170
270
|
}, { topics: "noTopics" }));
|
|
271
|
+
/** The live state, typed: the actions above read it after an await (TS7022 without the annotation). */
|
|
272
|
+
function current(): S { return svc.getState() as S; }
|
|
171
273
|
svc.prepare();
|
|
172
274
|
svc.load();
|
|
173
275
|
export { svc };
|
|
@@ -338,6 +338,180 @@ const SCREENS = runtimeSetting({
|
|
|
338
338
|
"hiddenPath": "$service:himiBrandedHome.notErrored"
|
|
339
339
|
}
|
|
340
340
|
},
|
|
341
|
+
{
|
|
342
|
+
"id": "himi_branded_home.push_ask",
|
|
343
|
+
"body": {
|
|
344
|
+
"package": "himalaya",
|
|
345
|
+
"type": "VStack",
|
|
346
|
+
"props": {
|
|
347
|
+
"spacing": 12,
|
|
348
|
+
"alignment": "leading",
|
|
349
|
+
"children": [
|
|
350
|
+
{
|
|
351
|
+
"id": "",
|
|
352
|
+
"body": {
|
|
353
|
+
"package": "himalaya",
|
|
354
|
+
"type": "HStack",
|
|
355
|
+
"props": {
|
|
356
|
+
"spacing": 10,
|
|
357
|
+
"alignment": "center",
|
|
358
|
+
"children": [
|
|
359
|
+
{
|
|
360
|
+
"id": "",
|
|
361
|
+
"body": {
|
|
362
|
+
"package": "himalaya",
|
|
363
|
+
"type": "Icon",
|
|
364
|
+
"props": {
|
|
365
|
+
"name": "bell",
|
|
366
|
+
"size": 20,
|
|
367
|
+
"tint": "accentPrimary"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"modifiers": {
|
|
371
|
+
"accessibilityRole": "decorative"
|
|
372
|
+
}
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
"id": "",
|
|
376
|
+
"body": {
|
|
377
|
+
"package": "himalaya",
|
|
378
|
+
"type": "Text",
|
|
379
|
+
"props": {
|
|
380
|
+
"text": "Stay in the loop",
|
|
381
|
+
"style": "title3"
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
]
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"id": "himi_branded_home.push_ask_body_orders",
|
|
391
|
+
"body": {
|
|
392
|
+
"package": "himalaya",
|
|
393
|
+
"type": "Text",
|
|
394
|
+
"props": {
|
|
395
|
+
"text": "Get notified when your order status changes.",
|
|
396
|
+
"style": "body",
|
|
397
|
+
"color": "textSecondary"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"modifiers": {
|
|
401
|
+
"hiddenPath": "$service:himiBrandedHome.hidePushBodyOrders"
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"id": "himi_branded_home.push_ask_body_bookings",
|
|
406
|
+
"body": {
|
|
407
|
+
"package": "himalaya",
|
|
408
|
+
"type": "Text",
|
|
409
|
+
"props": {
|
|
410
|
+
"text": "Get reminders and updates about your bookings.",
|
|
411
|
+
"style": "body",
|
|
412
|
+
"color": "textSecondary"
|
|
413
|
+
}
|
|
414
|
+
},
|
|
415
|
+
"modifiers": {
|
|
416
|
+
"hiddenPath": "$service:himiBrandedHome.hidePushBodyBookings"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
"id": "himi_branded_home.push_ask_body_ordersBookings",
|
|
421
|
+
"body": {
|
|
422
|
+
"package": "himalaya",
|
|
423
|
+
"type": "Text",
|
|
424
|
+
"props": {
|
|
425
|
+
"text": "Get notified when your order status changes, and get reminders about your bookings.",
|
|
426
|
+
"style": "body",
|
|
427
|
+
"color": "textSecondary"
|
|
428
|
+
}
|
|
429
|
+
},
|
|
430
|
+
"modifiers": {
|
|
431
|
+
"hiddenPath": "$service:himiBrandedHome.hidePushBodyOrdersBookings"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
{
|
|
435
|
+
"id": "himi_branded_home.push_ask_body_general",
|
|
436
|
+
"body": {
|
|
437
|
+
"package": "himalaya",
|
|
438
|
+
"type": "Text",
|
|
439
|
+
"props": {
|
|
440
|
+
"text": "Get notified about replies and updates that matter to you.",
|
|
441
|
+
"style": "body",
|
|
442
|
+
"color": "textSecondary"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
"modifiers": {
|
|
446
|
+
"hiddenPath": "$service:himiBrandedHome.hidePushBodyGeneral"
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"id": "",
|
|
451
|
+
"body": {
|
|
452
|
+
"package": "himalaya",
|
|
453
|
+
"type": "VStack",
|
|
454
|
+
"props": {
|
|
455
|
+
"spacing": 8,
|
|
456
|
+
"children": [
|
|
457
|
+
{
|
|
458
|
+
"id": "himi_branded_home.push_ask_turn_on",
|
|
459
|
+
"body": {
|
|
460
|
+
"package": "himalaya",
|
|
461
|
+
"type": "Button",
|
|
462
|
+
"props": {
|
|
463
|
+
"title": "Turn on notifications",
|
|
464
|
+
"style": "primary",
|
|
465
|
+
"fullWidth": true,
|
|
466
|
+
"action": {
|
|
467
|
+
"actionId": "tier5.himiBrandedHome.turnOnPush"
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"id": "himi_branded_home.push_ask_not_now",
|
|
474
|
+
"body": {
|
|
475
|
+
"package": "himalaya",
|
|
476
|
+
"type": "Button",
|
|
477
|
+
"props": {
|
|
478
|
+
"title": "Not now",
|
|
479
|
+
"style": "secondary",
|
|
480
|
+
"fullWidth": true,
|
|
481
|
+
"action": {
|
|
482
|
+
"actionId": "tier5.himiBrandedHome.dismissPushAsk"
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
]
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
]
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
"modifiers": {
|
|
495
|
+
"fillMaxWidth": true,
|
|
496
|
+
"background": {
|
|
497
|
+
"token": "surfaceElevated"
|
|
498
|
+
},
|
|
499
|
+
"border": {
|
|
500
|
+
"width": 1,
|
|
501
|
+
"color": {
|
|
502
|
+
"token": "border"
|
|
503
|
+
}
|
|
504
|
+
},
|
|
505
|
+
"cornerRadius": 12,
|
|
506
|
+
"padding": {
|
|
507
|
+
"leading": 16,
|
|
508
|
+
"trailing": 16,
|
|
509
|
+
"top": 14,
|
|
510
|
+
"bottom": 14
|
|
511
|
+
},
|
|
512
|
+
"hiddenPath": "$service:himiBrandedHome.pushAskHidden"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
341
515
|
{
|
|
342
516
|
"id": "himi_branded_home.classic_root",
|
|
343
517
|
"body": {
|
|
@@ -3854,7 +4028,8 @@ const SCREENS = runtimeSetting({
|
|
|
3854
4028
|
"declaredCapabilities": [
|
|
3855
4029
|
"wix_api",
|
|
3856
4030
|
"iap",
|
|
3857
|
-
"app_info"
|
|
4031
|
+
"app_info",
|
|
4032
|
+
"push"
|
|
3858
4033
|
],
|
|
3859
4034
|
"minBinaryVersion": "0.2.0",
|
|
3860
4035
|
"bundleVersion": "0.0.1"
|
|
@@ -11342,6 +11517,131 @@ const SCREENS = runtimeSetting({
|
|
|
11342
11517
|
"hiddenPath": "$service:himiBrandedNotifSettings.notMockUnavailable"
|
|
11343
11518
|
}
|
|
11344
11519
|
},
|
|
11520
|
+
{
|
|
11521
|
+
"id": "himi_notif_settings.push_off",
|
|
11522
|
+
"body": {
|
|
11523
|
+
"package": "himalaya",
|
|
11524
|
+
"type": "VStack",
|
|
11525
|
+
"props": {
|
|
11526
|
+
"spacing": 10,
|
|
11527
|
+
"alignment": "leading",
|
|
11528
|
+
"children": [
|
|
11529
|
+
{
|
|
11530
|
+
"id": "",
|
|
11531
|
+
"body": {
|
|
11532
|
+
"package": "himalaya",
|
|
11533
|
+
"type": "Banner",
|
|
11534
|
+
"props": {
|
|
11535
|
+
"severity": "warning",
|
|
11536
|
+
"title": "Notifications are off on this phone",
|
|
11537
|
+
"message": "Your choices below are saved, but nothing arrives until notifications are allowed on this phone."
|
|
11538
|
+
}
|
|
11539
|
+
}
|
|
11540
|
+
},
|
|
11541
|
+
{
|
|
11542
|
+
"id": "himi_notif_settings.open_settings",
|
|
11543
|
+
"body": {
|
|
11544
|
+
"package": "himalaya",
|
|
11545
|
+
"type": "Button",
|
|
11546
|
+
"props": {
|
|
11547
|
+
"title": "Open Settings",
|
|
11548
|
+
"style": "primary",
|
|
11549
|
+
"fullWidth": true,
|
|
11550
|
+
"action": {
|
|
11551
|
+
"actionId": "tier5.himiBrandedNotifSettings.openPushSettings"
|
|
11552
|
+
}
|
|
11553
|
+
}
|
|
11554
|
+
},
|
|
11555
|
+
"modifiers": {
|
|
11556
|
+
"hiddenPath": "$service:himiBrandedNotifSettings.hideOffSettingsCta"
|
|
11557
|
+
}
|
|
11558
|
+
},
|
|
11559
|
+
{
|
|
11560
|
+
"id": "himi_notif_settings.off_turn_on",
|
|
11561
|
+
"body": {
|
|
11562
|
+
"package": "himalaya",
|
|
11563
|
+
"type": "Button",
|
|
11564
|
+
"props": {
|
|
11565
|
+
"title": "Turn on notifications",
|
|
11566
|
+
"style": "primary",
|
|
11567
|
+
"fullWidth": true,
|
|
11568
|
+
"action": {
|
|
11569
|
+
"actionId": "tier5.himiBrandedNotifSettings.openPushSettings"
|
|
11570
|
+
}
|
|
11571
|
+
}
|
|
11572
|
+
},
|
|
11573
|
+
"modifiers": {
|
|
11574
|
+
"hiddenPath": "$service:himiBrandedNotifSettings.hideOffTurnOnCta"
|
|
11575
|
+
}
|
|
11576
|
+
}
|
|
11577
|
+
]
|
|
11578
|
+
}
|
|
11579
|
+
},
|
|
11580
|
+
"modifiers": {
|
|
11581
|
+
"fillMaxWidth": true,
|
|
11582
|
+
"hiddenPath": "$service:himiBrandedNotifSettings.hidePushOff"
|
|
11583
|
+
}
|
|
11584
|
+
},
|
|
11585
|
+
{
|
|
11586
|
+
"id": "himi_notif_settings.push_ask",
|
|
11587
|
+
"body": {
|
|
11588
|
+
"package": "himalaya",
|
|
11589
|
+
"type": "VStack",
|
|
11590
|
+
"props": {
|
|
11591
|
+
"spacing": 10,
|
|
11592
|
+
"alignment": "leading",
|
|
11593
|
+
"children": [
|
|
11594
|
+
{
|
|
11595
|
+
"id": "",
|
|
11596
|
+
"body": {
|
|
11597
|
+
"package": "himalaya",
|
|
11598
|
+
"type": "Banner",
|
|
11599
|
+
"props": {
|
|
11600
|
+
"severity": "info",
|
|
11601
|
+
"title": "Notifications aren't on yet",
|
|
11602
|
+
"message": "Allow notifications on this phone to get the updates you choose below."
|
|
11603
|
+
}
|
|
11604
|
+
}
|
|
11605
|
+
},
|
|
11606
|
+
{
|
|
11607
|
+
"id": "himi_notif_settings.turn_on",
|
|
11608
|
+
"body": {
|
|
11609
|
+
"package": "himalaya",
|
|
11610
|
+
"type": "Button",
|
|
11611
|
+
"props": {
|
|
11612
|
+
"title": "Turn on notifications",
|
|
11613
|
+
"style": "primary",
|
|
11614
|
+
"fullWidth": true,
|
|
11615
|
+
"action": {
|
|
11616
|
+
"actionId": "tier5.himiBrandedNotifSettings.enablePush"
|
|
11617
|
+
}
|
|
11618
|
+
}
|
|
11619
|
+
},
|
|
11620
|
+
"modifiers": {
|
|
11621
|
+
"hiddenPath": "$service:himiBrandedNotifSettings.hidePushAsk"
|
|
11622
|
+
}
|
|
11623
|
+
}
|
|
11624
|
+
]
|
|
11625
|
+
}
|
|
11626
|
+
},
|
|
11627
|
+
"modifiers": {
|
|
11628
|
+
"fillMaxWidth": true,
|
|
11629
|
+
"hiddenPath": "$service:himiBrandedNotifSettings.hidePushAsk"
|
|
11630
|
+
}
|
|
11631
|
+
},
|
|
11632
|
+
{
|
|
11633
|
+
"id": "himi_notif_settings.push_message",
|
|
11634
|
+
"body": {
|
|
11635
|
+
"package": "himalaya",
|
|
11636
|
+
"type": "Text",
|
|
11637
|
+
"props": {
|
|
11638
|
+
"text": "$service:himiBrandedNotifSettings.pushMessage",
|
|
11639
|
+
"style": "body",
|
|
11640
|
+
"color": "textSecondary",
|
|
11641
|
+
"collapseWhenEmpty": true
|
|
11642
|
+
}
|
|
11643
|
+
}
|
|
11644
|
+
},
|
|
11345
11645
|
{
|
|
11346
11646
|
"id": "himi_notif_settings.action_message",
|
|
11347
11647
|
"body": {
|
|
@@ -11582,6 +11882,7 @@ const SCREENS = runtimeSetting({
|
|
|
11582
11882
|
}
|
|
11583
11883
|
},
|
|
11584
11884
|
"modifiers": {
|
|
11885
|
+
"opacityPath": "$service:himiBrandedNotifSettings.topicsOpacity",
|
|
11585
11886
|
"hiddenPath": "$service:himiBrandedNotifSettings.noTopics"
|
|
11586
11887
|
}
|
|
11587
11888
|
},
|
|
@@ -11629,7 +11930,9 @@ const SCREENS = runtimeSetting({
|
|
|
11629
11930
|
"integrity": "",
|
|
11630
11931
|
"contentType": "application/javascript+ts-bundle",
|
|
11631
11932
|
"declaredCapabilities": [
|
|
11632
|
-
"wix_api"
|
|
11933
|
+
"wix_api",
|
|
11934
|
+
"push",
|
|
11935
|
+
"app_info"
|
|
11633
11936
|
],
|
|
11634
11937
|
"minBinaryVersion": "0.1.0",
|
|
11635
11938
|
"bundleVersion": "0.0.1"
|
|
@@ -4376,6 +4376,78 @@
|
|
|
4376
4376
|
"translation": "إرسال الإجابات",
|
|
4377
4377
|
"origin": "machine"
|
|
4378
4378
|
},
|
|
4379
|
+
"h_134635e9a2a6": {
|
|
4380
|
+
"key": "notifsettings.openSettingsCta",
|
|
4381
|
+
"source": "Open Settings",
|
|
4382
|
+
"translation": "فتح الإعدادات",
|
|
4383
|
+
"origin": "machine"
|
|
4384
|
+
},
|
|
4385
|
+
"h_2bcb76170ec3": {
|
|
4386
|
+
"key": "notifsettings.pushOffTitle",
|
|
4387
|
+
"source": "Notifications are off on this phone",
|
|
4388
|
+
"translation": "الإشعارات متوقفة على هذا الهاتف",
|
|
4389
|
+
"origin": "machine"
|
|
4390
|
+
},
|
|
4391
|
+
"h_31b3496929a9": {
|
|
4392
|
+
"key": "notifsettings.pushAskBody",
|
|
4393
|
+
"source": "Allow notifications on this phone to get the updates you choose below.",
|
|
4394
|
+
"translation": "اسمح بالإشعارات على هذا الهاتف لتصلك التحديثات التي تختارها أدناه.",
|
|
4395
|
+
"origin": "machine"
|
|
4396
|
+
},
|
|
4397
|
+
"h_5ab087ec11ff": {
|
|
4398
|
+
"key": "notifsettings.turnOnCta",
|
|
4399
|
+
"source": "Turn on notifications",
|
|
4400
|
+
"translation": "تشغيل الإشعارات",
|
|
4401
|
+
"origin": "machine"
|
|
4402
|
+
},
|
|
4403
|
+
"h_e45714907316": {
|
|
4404
|
+
"key": "home.pushAskNotNow",
|
|
4405
|
+
"source": "Not now",
|
|
4406
|
+
"translation": "ليس الآن",
|
|
4407
|
+
"origin": "machine"
|
|
4408
|
+
},
|
|
4409
|
+
"h_e9093cc9cde8": {
|
|
4410
|
+
"key": "home.pushAskBodyOrdersBookings",
|
|
4411
|
+
"source": "Get notified when your order status changes, and get reminders about your bookings.",
|
|
4412
|
+
"translation": "احصل على إشعار عند تغيّر حالة طلبك، وتذكيرات بحجوزاتك.",
|
|
4413
|
+
"origin": "machine"
|
|
4414
|
+
},
|
|
4415
|
+
"h_f54254af0c08": {
|
|
4416
|
+
"key": "home.pushAskTitle",
|
|
4417
|
+
"source": "Stay in the loop",
|
|
4418
|
+
"translation": "ابقَ على اطلاع",
|
|
4419
|
+
"origin": "machine"
|
|
4420
|
+
},
|
|
4421
|
+
"h_01828fbf543c": {
|
|
4422
|
+
"key": "home.pushAskBodyOrders",
|
|
4423
|
+
"source": "Get notified when your order status changes.",
|
|
4424
|
+
"translation": "احصل على إشعار عند تغيّر حالة طلبك.",
|
|
4425
|
+
"origin": "machine"
|
|
4426
|
+
},
|
|
4427
|
+
"h_a365748a7092": {
|
|
4428
|
+
"key": "home.pushAskBodyBookings",
|
|
4429
|
+
"source": "Get reminders and updates about your bookings.",
|
|
4430
|
+
"translation": "احصل على تذكيرات وتحديثات حول حجوزاتك.",
|
|
4431
|
+
"origin": "machine"
|
|
4432
|
+
},
|
|
4433
|
+
"h_fb0c45519478": {
|
|
4434
|
+
"key": "home.pushAskBodyGeneral",
|
|
4435
|
+
"source": "Get notified about replies and updates that matter to you.",
|
|
4436
|
+
"translation": "احصل على إشعارات بالردود والتحديثات التي تهمك.",
|
|
4437
|
+
"origin": "machine"
|
|
4438
|
+
},
|
|
4439
|
+
"h_b115e30c1a23": {
|
|
4440
|
+
"key": "notifsettings.pushAskTitle",
|
|
4441
|
+
"source": "Notifications aren't on yet",
|
|
4442
|
+
"translation": "الإشعارات غير مفعّلة بعد",
|
|
4443
|
+
"origin": "machine"
|
|
4444
|
+
},
|
|
4445
|
+
"h_282e81f51b9e": {
|
|
4446
|
+
"key": "notifsettings.pushOffBody",
|
|
4447
|
+
"source": "Your choices below are saved, but nothing arrives until notifications are allowed on this phone.",
|
|
4448
|
+
"translation": "تم حفظ اختياراتك أدناه، لكن لن يصل أي شيء حتى يتم السماح بالإشعارات على هذا الهاتف.",
|
|
4449
|
+
"origin": "machine"
|
|
4450
|
+
},
|
|
4379
4451
|
"h_1e9b74b4dda5": {
|
|
4380
4452
|
"source": "Show all ({count})",
|
|
4381
4453
|
"translation": "عرض الكل ({count})",
|
|
@@ -9705,6 +9777,11 @@
|
|
|
9705
9777
|
"source": "{correct} of {total} answers were right.",
|
|
9706
9778
|
"translation": "{correct} من {total} إجابات كانت صحيحة.",
|
|
9707
9779
|
"origin": "machine"
|
|
9780
|
+
},
|
|
9781
|
+
"h_27b36f21a125": {
|
|
9782
|
+
"source": "Change notifications for this app in your phone's settings.",
|
|
9783
|
+
"translation": "غيّر إشعارات هذا التطبيق من إعدادات هاتفك.",
|
|
9784
|
+
"origin": "machine"
|
|
9708
9785
|
}
|
|
9709
9786
|
}
|
|
9710
9787
|
}
|