@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.pulse_root",
|
|
343
517
|
"body": {
|
|
@@ -2361,7 +2535,8 @@ const SCREENS = runtimeSetting({
|
|
|
2361
2535
|
"declaredCapabilities": [
|
|
2362
2536
|
"wix_api",
|
|
2363
2537
|
"iap",
|
|
2364
|
-
"app_info"
|
|
2538
|
+
"app_info",
|
|
2539
|
+
"push"
|
|
2365
2540
|
],
|
|
2366
2541
|
"minBinaryVersion": "0.2.0",
|
|
2367
2542
|
"bundleVersion": "0.0.1"
|
|
@@ -9230,6 +9405,131 @@ const SCREENS = runtimeSetting({
|
|
|
9230
9405
|
"hiddenPath": "$service:himiBrandedNotifSettings.notMockUnavailable"
|
|
9231
9406
|
}
|
|
9232
9407
|
},
|
|
9408
|
+
{
|
|
9409
|
+
"id": "himi_notif_settings.push_off",
|
|
9410
|
+
"body": {
|
|
9411
|
+
"package": "himalaya",
|
|
9412
|
+
"type": "VStack",
|
|
9413
|
+
"props": {
|
|
9414
|
+
"spacing": 10,
|
|
9415
|
+
"alignment": "leading",
|
|
9416
|
+
"children": [
|
|
9417
|
+
{
|
|
9418
|
+
"id": "",
|
|
9419
|
+
"body": {
|
|
9420
|
+
"package": "himalaya",
|
|
9421
|
+
"type": "Banner",
|
|
9422
|
+
"props": {
|
|
9423
|
+
"severity": "warning",
|
|
9424
|
+
"title": "Notifications are off on this phone",
|
|
9425
|
+
"message": "Your choices below are saved, but nothing arrives until notifications are allowed on this phone."
|
|
9426
|
+
}
|
|
9427
|
+
}
|
|
9428
|
+
},
|
|
9429
|
+
{
|
|
9430
|
+
"id": "himi_notif_settings.open_settings",
|
|
9431
|
+
"body": {
|
|
9432
|
+
"package": "himalaya",
|
|
9433
|
+
"type": "Button",
|
|
9434
|
+
"props": {
|
|
9435
|
+
"title": "Open Settings",
|
|
9436
|
+
"style": "primary",
|
|
9437
|
+
"fullWidth": true,
|
|
9438
|
+
"action": {
|
|
9439
|
+
"actionId": "tier5.himiBrandedNotifSettings.openPushSettings"
|
|
9440
|
+
}
|
|
9441
|
+
}
|
|
9442
|
+
},
|
|
9443
|
+
"modifiers": {
|
|
9444
|
+
"hiddenPath": "$service:himiBrandedNotifSettings.hideOffSettingsCta"
|
|
9445
|
+
}
|
|
9446
|
+
},
|
|
9447
|
+
{
|
|
9448
|
+
"id": "himi_notif_settings.off_turn_on",
|
|
9449
|
+
"body": {
|
|
9450
|
+
"package": "himalaya",
|
|
9451
|
+
"type": "Button",
|
|
9452
|
+
"props": {
|
|
9453
|
+
"title": "Turn on notifications",
|
|
9454
|
+
"style": "primary",
|
|
9455
|
+
"fullWidth": true,
|
|
9456
|
+
"action": {
|
|
9457
|
+
"actionId": "tier5.himiBrandedNotifSettings.openPushSettings"
|
|
9458
|
+
}
|
|
9459
|
+
}
|
|
9460
|
+
},
|
|
9461
|
+
"modifiers": {
|
|
9462
|
+
"hiddenPath": "$service:himiBrandedNotifSettings.hideOffTurnOnCta"
|
|
9463
|
+
}
|
|
9464
|
+
}
|
|
9465
|
+
]
|
|
9466
|
+
}
|
|
9467
|
+
},
|
|
9468
|
+
"modifiers": {
|
|
9469
|
+
"fillMaxWidth": true,
|
|
9470
|
+
"hiddenPath": "$service:himiBrandedNotifSettings.hidePushOff"
|
|
9471
|
+
}
|
|
9472
|
+
},
|
|
9473
|
+
{
|
|
9474
|
+
"id": "himi_notif_settings.push_ask",
|
|
9475
|
+
"body": {
|
|
9476
|
+
"package": "himalaya",
|
|
9477
|
+
"type": "VStack",
|
|
9478
|
+
"props": {
|
|
9479
|
+
"spacing": 10,
|
|
9480
|
+
"alignment": "leading",
|
|
9481
|
+
"children": [
|
|
9482
|
+
{
|
|
9483
|
+
"id": "",
|
|
9484
|
+
"body": {
|
|
9485
|
+
"package": "himalaya",
|
|
9486
|
+
"type": "Banner",
|
|
9487
|
+
"props": {
|
|
9488
|
+
"severity": "info",
|
|
9489
|
+
"title": "Notifications aren't on yet",
|
|
9490
|
+
"message": "Allow notifications on this phone to get the updates you choose below."
|
|
9491
|
+
}
|
|
9492
|
+
}
|
|
9493
|
+
},
|
|
9494
|
+
{
|
|
9495
|
+
"id": "himi_notif_settings.turn_on",
|
|
9496
|
+
"body": {
|
|
9497
|
+
"package": "himalaya",
|
|
9498
|
+
"type": "Button",
|
|
9499
|
+
"props": {
|
|
9500
|
+
"title": "Turn on notifications",
|
|
9501
|
+
"style": "primary",
|
|
9502
|
+
"fullWidth": true,
|
|
9503
|
+
"action": {
|
|
9504
|
+
"actionId": "tier5.himiBrandedNotifSettings.enablePush"
|
|
9505
|
+
}
|
|
9506
|
+
}
|
|
9507
|
+
},
|
|
9508
|
+
"modifiers": {
|
|
9509
|
+
"hiddenPath": "$service:himiBrandedNotifSettings.hidePushAsk"
|
|
9510
|
+
}
|
|
9511
|
+
}
|
|
9512
|
+
]
|
|
9513
|
+
}
|
|
9514
|
+
},
|
|
9515
|
+
"modifiers": {
|
|
9516
|
+
"fillMaxWidth": true,
|
|
9517
|
+
"hiddenPath": "$service:himiBrandedNotifSettings.hidePushAsk"
|
|
9518
|
+
}
|
|
9519
|
+
},
|
|
9520
|
+
{
|
|
9521
|
+
"id": "himi_notif_settings.push_message",
|
|
9522
|
+
"body": {
|
|
9523
|
+
"package": "himalaya",
|
|
9524
|
+
"type": "Text",
|
|
9525
|
+
"props": {
|
|
9526
|
+
"text": "$service:himiBrandedNotifSettings.pushMessage",
|
|
9527
|
+
"style": "body",
|
|
9528
|
+
"color": "textSecondary",
|
|
9529
|
+
"collapseWhenEmpty": true
|
|
9530
|
+
}
|
|
9531
|
+
}
|
|
9532
|
+
},
|
|
9233
9533
|
{
|
|
9234
9534
|
"id": "himi_notif_settings.action_message",
|
|
9235
9535
|
"body": {
|
|
@@ -9470,6 +9770,7 @@ const SCREENS = runtimeSetting({
|
|
|
9470
9770
|
}
|
|
9471
9771
|
},
|
|
9472
9772
|
"modifiers": {
|
|
9773
|
+
"opacityPath": "$service:himiBrandedNotifSettings.topicsOpacity",
|
|
9473
9774
|
"hiddenPath": "$service:himiBrandedNotifSettings.noTopics"
|
|
9474
9775
|
}
|
|
9475
9776
|
},
|
|
@@ -9517,7 +9818,9 @@ const SCREENS = runtimeSetting({
|
|
|
9517
9818
|
"integrity": "",
|
|
9518
9819
|
"contentType": "application/javascript+ts-bundle",
|
|
9519
9820
|
"declaredCapabilities": [
|
|
9520
|
-
"wix_api"
|
|
9821
|
+
"wix_api",
|
|
9822
|
+
"push",
|
|
9823
|
+
"app_info"
|
|
9521
9824
|
],
|
|
9522
9825
|
"minBinaryVersion": "0.1.0",
|
|
9523
9826
|
"bundleVersion": "0.0.1"
|
|
@@ -1538,6 +1538,78 @@
|
|
|
1538
1538
|
"translation": "تغيير الصورة",
|
|
1539
1539
|
"origin": "machine"
|
|
1540
1540
|
},
|
|
1541
|
+
"h_134635e9a2a6": {
|
|
1542
|
+
"key": "notifsettings.openSettingsCta",
|
|
1543
|
+
"source": "Open Settings",
|
|
1544
|
+
"translation": "فتح الإعدادات",
|
|
1545
|
+
"origin": "machine"
|
|
1546
|
+
},
|
|
1547
|
+
"h_2bcb76170ec3": {
|
|
1548
|
+
"key": "notifsettings.pushOffTitle",
|
|
1549
|
+
"source": "Notifications are off on this phone",
|
|
1550
|
+
"translation": "الإشعارات متوقفة على هذا الهاتف",
|
|
1551
|
+
"origin": "machine"
|
|
1552
|
+
},
|
|
1553
|
+
"h_31b3496929a9": {
|
|
1554
|
+
"key": "notifsettings.pushAskBody",
|
|
1555
|
+
"source": "Allow notifications on this phone to get the updates you choose below.",
|
|
1556
|
+
"translation": "اسمح بالإشعارات على هذا الهاتف لتصلك التحديثات التي تختارها أدناه.",
|
|
1557
|
+
"origin": "machine"
|
|
1558
|
+
},
|
|
1559
|
+
"h_5ab087ec11ff": {
|
|
1560
|
+
"key": "notifsettings.turnOnCta",
|
|
1561
|
+
"source": "Turn on notifications",
|
|
1562
|
+
"translation": "تشغيل الإشعارات",
|
|
1563
|
+
"origin": "machine"
|
|
1564
|
+
},
|
|
1565
|
+
"h_e45714907316": {
|
|
1566
|
+
"key": "home.pushAskNotNow",
|
|
1567
|
+
"source": "Not now",
|
|
1568
|
+
"translation": "ليس الآن",
|
|
1569
|
+
"origin": "machine"
|
|
1570
|
+
},
|
|
1571
|
+
"h_e9093cc9cde8": {
|
|
1572
|
+
"key": "home.pushAskBodyOrdersBookings",
|
|
1573
|
+
"source": "Get notified when your order status changes, and get reminders about your bookings.",
|
|
1574
|
+
"translation": "احصل على إشعار عند تغيّر حالة طلبك، وتذكيرات بحجوزاتك.",
|
|
1575
|
+
"origin": "machine"
|
|
1576
|
+
},
|
|
1577
|
+
"h_f54254af0c08": {
|
|
1578
|
+
"key": "home.pushAskTitle",
|
|
1579
|
+
"source": "Stay in the loop",
|
|
1580
|
+
"translation": "ابقَ على اطلاع",
|
|
1581
|
+
"origin": "machine"
|
|
1582
|
+
},
|
|
1583
|
+
"h_01828fbf543c": {
|
|
1584
|
+
"key": "home.pushAskBodyOrders",
|
|
1585
|
+
"source": "Get notified when your order status changes.",
|
|
1586
|
+
"translation": "احصل على إشعار عند تغيّر حالة طلبك.",
|
|
1587
|
+
"origin": "machine"
|
|
1588
|
+
},
|
|
1589
|
+
"h_a365748a7092": {
|
|
1590
|
+
"key": "home.pushAskBodyBookings",
|
|
1591
|
+
"source": "Get reminders and updates about your bookings.",
|
|
1592
|
+
"translation": "احصل على تذكيرات وتحديثات حول حجوزاتك.",
|
|
1593
|
+
"origin": "machine"
|
|
1594
|
+
},
|
|
1595
|
+
"h_fb0c45519478": {
|
|
1596
|
+
"key": "home.pushAskBodyGeneral",
|
|
1597
|
+
"source": "Get notified about replies and updates that matter to you.",
|
|
1598
|
+
"translation": "احصل على إشعارات بالردود والتحديثات التي تهمك.",
|
|
1599
|
+
"origin": "machine"
|
|
1600
|
+
},
|
|
1601
|
+
"h_b115e30c1a23": {
|
|
1602
|
+
"key": "notifsettings.pushAskTitle",
|
|
1603
|
+
"source": "Notifications aren't on yet",
|
|
1604
|
+
"translation": "الإشعارات غير مفعّلة بعد",
|
|
1605
|
+
"origin": "machine"
|
|
1606
|
+
},
|
|
1607
|
+
"h_282e81f51b9e": {
|
|
1608
|
+
"key": "notifsettings.pushOffBody",
|
|
1609
|
+
"source": "Your choices below are saved, but nothing arrives until notifications are allowed on this phone.",
|
|
1610
|
+
"translation": "تم حفظ اختياراتك أدناه، لكن لن يصل أي شيء حتى يتم السماح بالإشعارات على هذا الهاتف.",
|
|
1611
|
+
"origin": "machine"
|
|
1612
|
+
},
|
|
1541
1613
|
"h_1e9b74b4dda5": {
|
|
1542
1614
|
"source": "Show all ({count})",
|
|
1543
1615
|
"translation": "عرض الكل ({count})",
|
|
@@ -3557,6 +3629,11 @@
|
|
|
3557
3629
|
"source": "Unblock {name}?",
|
|
3558
3630
|
"translation": "هل تريد إلغاء حظر {name}؟",
|
|
3559
3631
|
"origin": "machine"
|
|
3632
|
+
},
|
|
3633
|
+
"h_27b36f21a125": {
|
|
3634
|
+
"source": "Change notifications for this app in your phone's settings.",
|
|
3635
|
+
"translation": "غيّر إشعارات هذا التطبيق من إعدادات هاتفك.",
|
|
3636
|
+
"origin": "machine"
|
|
3560
3637
|
}
|
|
3561
3638
|
}
|
|
3562
3639
|
}
|