@wix/himalaya-cli 0.2005.0 → 0.2006.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/provisioning-facts.d.ts +1 -1
- package/dist/cli.mjs +1 -2
- package/package.json +2 -2
- package/templates/bare-fashion/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/bare-fashion/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/beauty-salon/dev/index.ts +231 -139
- package/templates/beauty-salon/l10n/ar.json +6 -12
- package/templates/beauty-salon/l10n/cs.json +6 -12
- package/templates/beauty-salon/l10n/da.json +6 -12
- package/templates/beauty-salon/l10n/de.json +6 -12
- package/templates/beauty-salon/l10n/el.json +6 -12
- package/templates/beauty-salon/l10n/en.json +11 -18
- package/templates/beauty-salon/l10n/es.json +6 -12
- package/templates/beauty-salon/l10n/fi.json +6 -12
- package/templates/beauty-salon/l10n/fr.json +6 -12
- package/templates/beauty-salon/l10n/he.json +6 -10
- package/templates/beauty-salon/l10n/hu.json +6 -12
- package/templates/beauty-salon/l10n/id.json +6 -12
- package/templates/beauty-salon/l10n/it.json +6 -12
- package/templates/beauty-salon/l10n/ja.json +6 -12
- package/templates/beauty-salon/l10n/ko.json +6 -12
- package/templates/beauty-salon/l10n/lt.json +6 -12
- package/templates/beauty-salon/l10n/nl.json +6 -12
- package/templates/beauty-salon/l10n/no.json +6 -12
- package/templates/beauty-salon/l10n/pl.json +6 -12
- package/templates/beauty-salon/l10n/pt.json +6 -12
- package/templates/beauty-salon/l10n/ru.json +6 -12
- package/templates/beauty-salon/l10n/sv.json +6 -12
- package/templates/beauty-salon/l10n/th.json +6 -12
- package/templates/beauty-salon/l10n/tr.json +6 -12
- package/templates/beauty-salon/l10n/uk.json +6 -12
- package/templates/beauty-salon/l10n/vi.json +6 -12
- package/templates/beauty-salon/l10n/zh.json +6 -12
- package/templates/beauty-salon/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/beauty-salon/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/beauty-salon/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/beauty-salon/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/branded-lite/dev/index.ts +229 -137
- package/templates/branded-lite/l10n/ar.json +0 -12
- package/templates/branded-lite/l10n/cs.json +0 -12
- package/templates/branded-lite/l10n/da.json +0 -12
- package/templates/branded-lite/l10n/de.json +0 -12
- package/templates/branded-lite/l10n/el.json +0 -12
- package/templates/branded-lite/l10n/en.json +4 -18
- package/templates/branded-lite/l10n/es.json +0 -12
- package/templates/branded-lite/l10n/fi.json +0 -12
- package/templates/branded-lite/l10n/fr.json +0 -12
- package/templates/branded-lite/l10n/he.json +0 -10
- package/templates/branded-lite/l10n/hu.json +0 -12
- package/templates/branded-lite/l10n/id.json +0 -12
- package/templates/branded-lite/l10n/it.json +0 -12
- package/templates/branded-lite/l10n/ja.json +0 -12
- package/templates/branded-lite/l10n/ko.json +0 -12
- package/templates/branded-lite/l10n/lt.json +0 -12
- package/templates/branded-lite/l10n/nl.json +0 -12
- package/templates/branded-lite/l10n/no.json +0 -12
- package/templates/branded-lite/l10n/pl.json +0 -12
- package/templates/branded-lite/l10n/pt.json +0 -12
- package/templates/branded-lite/l10n/ru.json +0 -12
- package/templates/branded-lite/l10n/sv.json +0 -12
- package/templates/branded-lite/l10n/th.json +0 -12
- package/templates/branded-lite/l10n/tr.json +0 -12
- package/templates/branded-lite/l10n/uk.json +0 -12
- package/templates/branded-lite/l10n/vi.json +0 -12
- package/templates/branded-lite/l10n/zh.json +0 -12
- package/templates/branded-lite/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/branded-lite/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/community-club/dev/index.ts +229 -137
- package/templates/community-club/l10n/ar.json +6 -12
- package/templates/community-club/l10n/cs.json +6 -12
- package/templates/community-club/l10n/da.json +6 -12
- package/templates/community-club/l10n/de.json +6 -12
- package/templates/community-club/l10n/el.json +6 -12
- package/templates/community-club/l10n/en.json +11 -18
- package/templates/community-club/l10n/es.json +6 -12
- package/templates/community-club/l10n/fi.json +6 -12
- package/templates/community-club/l10n/fr.json +6 -12
- package/templates/community-club/l10n/he.json +6 -10
- package/templates/community-club/l10n/hu.json +6 -12
- package/templates/community-club/l10n/id.json +6 -12
- package/templates/community-club/l10n/it.json +6 -12
- package/templates/community-club/l10n/ja.json +6 -12
- package/templates/community-club/l10n/ko.json +6 -12
- package/templates/community-club/l10n/lt.json +6 -12
- package/templates/community-club/l10n/nl.json +6 -12
- package/templates/community-club/l10n/no.json +6 -12
- package/templates/community-club/l10n/pl.json +6 -12
- package/templates/community-club/l10n/pt.json +6 -12
- package/templates/community-club/l10n/ru.json +6 -12
- package/templates/community-club/l10n/sv.json +6 -12
- package/templates/community-club/l10n/th.json +6 -12
- package/templates/community-club/l10n/tr.json +6 -12
- package/templates/community-club/l10n/uk.json +6 -12
- package/templates/community-club/l10n/vi.json +6 -12
- package/templates/community-club/l10n/zh.json +6 -12
- package/templates/community-club/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/community-club/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/community-club/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/events-meetups/dev/index.ts +229 -137
- package/templates/events-meetups/l10n/ar.json +6 -12
- package/templates/events-meetups/l10n/cs.json +6 -12
- package/templates/events-meetups/l10n/da.json +6 -12
- package/templates/events-meetups/l10n/de.json +6 -12
- package/templates/events-meetups/l10n/el.json +6 -12
- package/templates/events-meetups/l10n/en.json +11 -18
- package/templates/events-meetups/l10n/es.json +6 -12
- package/templates/events-meetups/l10n/fi.json +6 -12
- package/templates/events-meetups/l10n/fr.json +6 -12
- package/templates/events-meetups/l10n/he.json +6 -10
- package/templates/events-meetups/l10n/hu.json +6 -12
- package/templates/events-meetups/l10n/id.json +6 -12
- package/templates/events-meetups/l10n/it.json +6 -12
- package/templates/events-meetups/l10n/ja.json +6 -12
- package/templates/events-meetups/l10n/ko.json +6 -12
- package/templates/events-meetups/l10n/lt.json +6 -12
- package/templates/events-meetups/l10n/nl.json +6 -12
- package/templates/events-meetups/l10n/no.json +6 -12
- package/templates/events-meetups/l10n/pl.json +6 -12
- package/templates/events-meetups/l10n/pt.json +6 -12
- package/templates/events-meetups/l10n/ru.json +6 -12
- package/templates/events-meetups/l10n/sv.json +6 -12
- package/templates/events-meetups/l10n/th.json +6 -12
- package/templates/events-meetups/l10n/tr.json +6 -12
- package/templates/events-meetups/l10n/uk.json +6 -12
- package/templates/events-meetups/l10n/vi.json +6 -12
- package/templates/events-meetups/l10n/zh.json +6 -12
- package/templates/events-meetups/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/events-meetups/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/events-meetups/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/fitness-gym/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/fitness-gym/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/gym-fitness/dev/index.ts +231 -139
- package/templates/gym-fitness/l10n/ar.json +6 -12
- package/templates/gym-fitness/l10n/cs.json +6 -12
- package/templates/gym-fitness/l10n/da.json +6 -12
- package/templates/gym-fitness/l10n/de.json +6 -12
- package/templates/gym-fitness/l10n/el.json +6 -12
- package/templates/gym-fitness/l10n/en.json +11 -18
- package/templates/gym-fitness/l10n/es.json +6 -12
- package/templates/gym-fitness/l10n/fi.json +6 -12
- package/templates/gym-fitness/l10n/fr.json +6 -12
- package/templates/gym-fitness/l10n/he.json +6 -10
- package/templates/gym-fitness/l10n/hu.json +6 -12
- package/templates/gym-fitness/l10n/id.json +6 -12
- package/templates/gym-fitness/l10n/it.json +6 -12
- package/templates/gym-fitness/l10n/ja.json +6 -12
- package/templates/gym-fitness/l10n/ko.json +6 -12
- package/templates/gym-fitness/l10n/lt.json +6 -12
- package/templates/gym-fitness/l10n/nl.json +6 -12
- package/templates/gym-fitness/l10n/no.json +6 -12
- package/templates/gym-fitness/l10n/pl.json +6 -12
- package/templates/gym-fitness/l10n/pt.json +6 -12
- package/templates/gym-fitness/l10n/ru.json +6 -12
- package/templates/gym-fitness/l10n/sv.json +6 -12
- package/templates/gym-fitness/l10n/th.json +6 -12
- package/templates/gym-fitness/l10n/tr.json +6 -12
- package/templates/gym-fitness/l10n/uk.json +6 -12
- package/templates/gym-fitness/l10n/vi.json +6 -12
- package/templates/gym-fitness/l10n/zh.json +6 -12
- package/templates/gym-fitness/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/gym-fitness/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/medical-services/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/medical-services/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/nonprofit-cause/dev/index.ts +229 -137
- package/templates/nonprofit-cause/l10n/ar.json +6 -12
- package/templates/nonprofit-cause/l10n/cs.json +6 -12
- package/templates/nonprofit-cause/l10n/da.json +6 -12
- package/templates/nonprofit-cause/l10n/de.json +6 -12
- package/templates/nonprofit-cause/l10n/el.json +6 -12
- package/templates/nonprofit-cause/l10n/en.json +11 -18
- package/templates/nonprofit-cause/l10n/es.json +6 -12
- package/templates/nonprofit-cause/l10n/fi.json +6 -12
- package/templates/nonprofit-cause/l10n/fr.json +6 -12
- package/templates/nonprofit-cause/l10n/he.json +6 -10
- package/templates/nonprofit-cause/l10n/hu.json +6 -12
- package/templates/nonprofit-cause/l10n/id.json +6 -12
- package/templates/nonprofit-cause/l10n/it.json +6 -12
- package/templates/nonprofit-cause/l10n/ja.json +6 -12
- package/templates/nonprofit-cause/l10n/ko.json +6 -12
- package/templates/nonprofit-cause/l10n/lt.json +6 -12
- package/templates/nonprofit-cause/l10n/nl.json +6 -12
- package/templates/nonprofit-cause/l10n/no.json +6 -12
- package/templates/nonprofit-cause/l10n/pl.json +6 -12
- package/templates/nonprofit-cause/l10n/pt.json +6 -12
- package/templates/nonprofit-cause/l10n/ru.json +6 -12
- package/templates/nonprofit-cause/l10n/sv.json +6 -12
- package/templates/nonprofit-cause/l10n/th.json +6 -12
- package/templates/nonprofit-cause/l10n/tr.json +6 -12
- package/templates/nonprofit-cause/l10n/uk.json +6 -12
- package/templates/nonprofit-cause/l10n/vi.json +6 -12
- package/templates/nonprofit-cause/l10n/zh.json +6 -12
- package/templates/nonprofit-cause/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/personal-fitness-trainer/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/podcast-creator/dev/index.ts +229 -137
- package/templates/podcast-creator/l10n/ar.json +6 -12
- package/templates/podcast-creator/l10n/cs.json +6 -12
- package/templates/podcast-creator/l10n/da.json +6 -12
- package/templates/podcast-creator/l10n/de.json +6 -12
- package/templates/podcast-creator/l10n/el.json +6 -12
- package/templates/podcast-creator/l10n/en.json +11 -18
- package/templates/podcast-creator/l10n/es.json +6 -12
- package/templates/podcast-creator/l10n/fi.json +6 -12
- package/templates/podcast-creator/l10n/fr.json +6 -12
- package/templates/podcast-creator/l10n/he.json +6 -10
- package/templates/podcast-creator/l10n/hu.json +6 -12
- package/templates/podcast-creator/l10n/id.json +6 -12
- package/templates/podcast-creator/l10n/it.json +6 -12
- package/templates/podcast-creator/l10n/ja.json +6 -12
- package/templates/podcast-creator/l10n/ko.json +6 -12
- package/templates/podcast-creator/l10n/lt.json +6 -12
- package/templates/podcast-creator/l10n/nl.json +6 -12
- package/templates/podcast-creator/l10n/no.json +6 -12
- package/templates/podcast-creator/l10n/pl.json +6 -12
- package/templates/podcast-creator/l10n/pt.json +6 -12
- package/templates/podcast-creator/l10n/ru.json +6 -12
- package/templates/podcast-creator/l10n/sv.json +6 -12
- package/templates/podcast-creator/l10n/th.json +6 -12
- package/templates/podcast-creator/l10n/tr.json +6 -12
- package/templates/podcast-creator/l10n/uk.json +6 -12
- package/templates/podcast-creator/l10n/vi.json +6 -12
- package/templates/podcast-creator/l10n/zh.json +6 -12
- package/templates/podcast-creator/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/podcast-creator/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/podcast-creator/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/portfolio-creative/dev/index.ts +231 -139
- package/templates/portfolio-creative/l10n/ar.json +0 -12
- package/templates/portfolio-creative/l10n/cs.json +0 -12
- package/templates/portfolio-creative/l10n/da.json +0 -12
- package/templates/portfolio-creative/l10n/de.json +0 -12
- package/templates/portfolio-creative/l10n/el.json +0 -12
- package/templates/portfolio-creative/l10n/en.json +4 -18
- package/templates/portfolio-creative/l10n/es.json +0 -12
- package/templates/portfolio-creative/l10n/fi.json +0 -12
- package/templates/portfolio-creative/l10n/fr.json +0 -12
- package/templates/portfolio-creative/l10n/he.json +0 -10
- package/templates/portfolio-creative/l10n/hu.json +0 -12
- package/templates/portfolio-creative/l10n/id.json +0 -12
- package/templates/portfolio-creative/l10n/it.json +0 -12
- package/templates/portfolio-creative/l10n/ja.json +0 -12
- package/templates/portfolio-creative/l10n/ko.json +0 -12
- package/templates/portfolio-creative/l10n/lt.json +0 -12
- package/templates/portfolio-creative/l10n/nl.json +0 -12
- package/templates/portfolio-creative/l10n/no.json +0 -12
- package/templates/portfolio-creative/l10n/pl.json +0 -12
- package/templates/portfolio-creative/l10n/pt.json +0 -12
- package/templates/portfolio-creative/l10n/ru.json +0 -12
- package/templates/portfolio-creative/l10n/sv.json +0 -12
- package/templates/portfolio-creative/l10n/th.json +0 -12
- package/templates/portfolio-creative/l10n/tr.json +0 -12
- package/templates/portfolio-creative/l10n/uk.json +0 -12
- package/templates/portfolio-creative/l10n/vi.json +0 -12
- package/templates/portfolio-creative/l10n/zh.json +0 -12
- package/templates/portfolio-creative/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/professional-services/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/professional-services/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/restaurant/dev/index.ts +229 -137
- package/templates/restaurant/l10n/ar.json +6 -12
- package/templates/restaurant/l10n/cs.json +6 -12
- package/templates/restaurant/l10n/da.json +6 -12
- package/templates/restaurant/l10n/de.json +6 -12
- package/templates/restaurant/l10n/el.json +6 -12
- package/templates/restaurant/l10n/en.json +11 -18
- package/templates/restaurant/l10n/es.json +6 -12
- package/templates/restaurant/l10n/fi.json +6 -12
- package/templates/restaurant/l10n/fr.json +6 -12
- package/templates/restaurant/l10n/he.json +6 -10
- package/templates/restaurant/l10n/hu.json +6 -12
- package/templates/restaurant/l10n/id.json +6 -12
- package/templates/restaurant/l10n/it.json +6 -12
- package/templates/restaurant/l10n/ja.json +6 -12
- package/templates/restaurant/l10n/ko.json +6 -12
- package/templates/restaurant/l10n/lt.json +6 -12
- package/templates/restaurant/l10n/nl.json +6 -12
- package/templates/restaurant/l10n/no.json +6 -12
- package/templates/restaurant/l10n/pl.json +6 -12
- package/templates/restaurant/l10n/pt.json +6 -12
- package/templates/restaurant/l10n/ru.json +6 -12
- package/templates/restaurant/l10n/sv.json +6 -12
- package/templates/restaurant/l10n/th.json +6 -12
- package/templates/restaurant/l10n/tr.json +6 -12
- package/templates/restaurant/l10n/uk.json +6 -12
- package/templates/restaurant/l10n/vi.json +6 -12
- package/templates/restaurant/l10n/zh.json +6 -12
- package/templates/restaurant/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/restaurant/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/restaurant/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/retail-store/dev/index.ts +229 -137
- package/templates/retail-store/l10n/ar.json +6 -12
- package/templates/retail-store/l10n/cs.json +6 -12
- package/templates/retail-store/l10n/da.json +6 -12
- package/templates/retail-store/l10n/de.json +6 -12
- package/templates/retail-store/l10n/el.json +6 -12
- package/templates/retail-store/l10n/en.json +11 -18
- package/templates/retail-store/l10n/es.json +6 -12
- package/templates/retail-store/l10n/fi.json +6 -12
- package/templates/retail-store/l10n/fr.json +6 -12
- package/templates/retail-store/l10n/he.json +6 -10
- package/templates/retail-store/l10n/hu.json +6 -12
- package/templates/retail-store/l10n/id.json +6 -12
- package/templates/retail-store/l10n/it.json +6 -12
- package/templates/retail-store/l10n/ja.json +6 -12
- package/templates/retail-store/l10n/ko.json +6 -12
- package/templates/retail-store/l10n/lt.json +6 -12
- package/templates/retail-store/l10n/nl.json +6 -12
- package/templates/retail-store/l10n/no.json +6 -12
- package/templates/retail-store/l10n/pl.json +6 -12
- package/templates/retail-store/l10n/pt.json +6 -12
- package/templates/retail-store/l10n/ru.json +6 -12
- package/templates/retail-store/l10n/sv.json +6 -12
- package/templates/retail-store/l10n/th.json +6 -12
- package/templates/retail-store/l10n/tr.json +6 -12
- package/templates/retail-store/l10n/uk.json +6 -12
- package/templates/retail-store/l10n/vi.json +6 -12
- package/templates/retail-store/l10n/zh.json +6 -12
- package/templates/retail-store/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/retail-store/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/retail-store/tier5-src/himi-branded-lite-info/index.ts +30 -19
- package/templates/salon-spa/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/salon-spa/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/yoga-studio/dev/index.ts +231 -139
- package/templates/yoga-studio/l10n/ar.json +6 -12
- package/templates/yoga-studio/l10n/cs.json +6 -12
- package/templates/yoga-studio/l10n/da.json +6 -12
- package/templates/yoga-studio/l10n/de.json +6 -12
- package/templates/yoga-studio/l10n/el.json +6 -12
- package/templates/yoga-studio/l10n/en.json +11 -18
- package/templates/yoga-studio/l10n/es.json +6 -12
- package/templates/yoga-studio/l10n/fi.json +6 -12
- package/templates/yoga-studio/l10n/fr.json +6 -12
- package/templates/yoga-studio/l10n/he.json +6 -10
- package/templates/yoga-studio/l10n/hu.json +6 -12
- package/templates/yoga-studio/l10n/id.json +6 -12
- package/templates/yoga-studio/l10n/it.json +6 -12
- package/templates/yoga-studio/l10n/ja.json +6 -12
- package/templates/yoga-studio/l10n/ko.json +6 -12
- package/templates/yoga-studio/l10n/lt.json +6 -12
- package/templates/yoga-studio/l10n/nl.json +6 -12
- package/templates/yoga-studio/l10n/no.json +6 -12
- package/templates/yoga-studio/l10n/pl.json +6 -12
- package/templates/yoga-studio/l10n/pt.json +6 -12
- package/templates/yoga-studio/l10n/ru.json +6 -12
- package/templates/yoga-studio/l10n/sv.json +6 -12
- package/templates/yoga-studio/l10n/th.json +6 -12
- package/templates/yoga-studio/l10n/tr.json +6 -12
- package/templates/yoga-studio/l10n/uk.json +6 -12
- package/templates/yoga-studio/l10n/vi.json +6 -12
- package/templates/yoga-studio/l10n/zh.json +6 -12
- package/templates/yoga-studio/tier5-src/_shared/open-web-link.ts +22 -0
- package/templates/yoga-studio/tier5-src/himi-booking-bookings/index.ts +6 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-home/index.ts +8 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-info/index.ts +30 -19
|
@@ -29,6 +29,7 @@ import { formatServicePrice } from "../_shared/wix-service-price.js";
|
|
|
29
29
|
import { cleanTitle, initials } from "../_shared/himi-text.js";
|
|
30
30
|
import { LAYOUT_KEY, type LayoutId, recommendLayout, resolveLayout } from "../_shared/himi-layouts.js";
|
|
31
31
|
import { copyParam, copyTemplate, stashCopy } from "../_shared/himi-copy.js";
|
|
32
|
+
import { linkUrlFrom, openWebLink } from "../_shared/open-web-link.js";
|
|
32
33
|
import { groupMemberCount } from "../_shared/group-member-count.js";
|
|
33
34
|
import { parseWeeklyGoal, resolveFirstWeekday, weekStartMs, weeklyGoalProgress, weeklySessionsFromPages, type Weekday } from "../_shared/weekly-goal.js";
|
|
34
35
|
import { isBridgeUnavailable } from "../_shared/owner-load-error.js";
|
|
@@ -1428,6 +1429,7 @@ const svc = defineService<State, {
|
|
|
1428
1429
|
checkPushAsk: (state: State, arg?: unknown) => Promise<State | undefined>;
|
|
1429
1430
|
turnOnPush: (state: State) => Promise<State | undefined>;
|
|
1430
1431
|
dismissPushAsk: (state: State) => State;
|
|
1432
|
+
openSupport: (state: State, arg?: unknown) => Promise<State | undefined>;
|
|
1431
1433
|
clearPersonal: (state: State) => State;
|
|
1432
1434
|
memberProgramsLoaded: (state: State, arg: { generation: number; rows: MemberProgramCard[]; attempt?: number }) => State | undefined;
|
|
1433
1435
|
openShopCategory: (state: State, arg?: unknown) => State;
|
|
@@ -1518,6 +1520,12 @@ const svc = defineService<State, {
|
|
|
1518
1520
|
rememberPushAskAnswered();
|
|
1519
1521
|
return derive({ ...state, pushAskHidden: true });
|
|
1520
1522
|
},
|
|
1523
|
+
// "Get in touch" in an app with no contact screen: the support page in the in-app browser.
|
|
1524
|
+
// Home has no place for a failure line; the state does not change either way.
|
|
1525
|
+
openSupport: async (_state, arg) => {
|
|
1526
|
+
await openWebLink(linkUrlFrom(arg));
|
|
1527
|
+
return undefined;
|
|
1528
|
+
},
|
|
1521
1529
|
},
|
|
1522
1530
|
});
|
|
1523
1531
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { defineService } from "@himalaya/state";
|
|
2
|
-
import {
|
|
2
|
+
import { linkUrlFrom, openWebLink } from "../_shared/open-web-link.js";
|
|
3
3
|
import { get as getAppInfo, type AppInfo } from "@himalaya/app-info";
|
|
4
4
|
import { available as pickerAvailable, active as activeRelease, list as listReleases, select as selectRelease } from "@himalaya/release-control";
|
|
5
5
|
import { copyParam, stashCopy } from "../_shared/himi-copy.js";
|
|
6
|
+
import { hostSiteFromInput } from "../_shared/branded-lite-hosted.js";
|
|
6
7
|
|
|
7
|
-
// The
|
|
8
|
+
// The About screen's worker. Besides opening the privacy/terms links it:
|
|
8
9
|
//
|
|
9
10
|
// • reads this app's REAL version + OTA release through @himalaya/app-info rather than letting
|
|
10
11
|
// the descriptor bake a literal — the mistake every other app's About screen makes (demo-app
|
|
@@ -29,6 +30,13 @@ interface State {
|
|
|
29
30
|
version: string;
|
|
30
31
|
/** "Release 89e391d84" in prod, "" on the dev-server (there is no release). */
|
|
31
32
|
releaseLine: string;
|
|
33
|
+
/** The value beside the baked "Version" label: "0.2.0 (2) · Release 89e391d84", or "" until loaded.
|
|
34
|
+
* The numbers sit in LTR isolates so RTL text keeps their order ("(2) 0.2.0" otherwise). */
|
|
35
|
+
versionText: string;
|
|
36
|
+
/** Hides the version row until a version is read (true in the baked first frame). */
|
|
37
|
+
noVersion: boolean;
|
|
38
|
+
/** A hosted build's site name — the screen title there, because the baked one is the shell's. */
|
|
39
|
+
hostedName: string;
|
|
32
40
|
/** "HimalayaCore 1.1.0" — the min_binary_version basis, a developer-facing number. */
|
|
33
41
|
runtimeLine: string;
|
|
34
42
|
/** True only on a build that opted into the picker. */
|
|
@@ -45,12 +53,6 @@ interface State {
|
|
|
45
53
|
pickerBusy: boolean;
|
|
46
54
|
}
|
|
47
55
|
|
|
48
|
-
function urlFrom(arg: unknown): string {
|
|
49
|
-
return typeof arg === "object" && arg !== null && typeof (arg as { url?: unknown }).url === "string"
|
|
50
|
-
? (arg as { url: string }).url
|
|
51
|
-
: "";
|
|
52
|
-
}
|
|
53
|
-
|
|
54
56
|
function idFrom(arg: unknown): string {
|
|
55
57
|
return typeof arg === "object" && arg !== null && typeof (arg as { id?: unknown }).id === "string"
|
|
56
58
|
? (arg as { id: string }).id
|
|
@@ -68,7 +70,20 @@ function formatVersion(info: AppInfo): string {
|
|
|
68
70
|
/** `Release <id>` (+ ` · pinned`), or "" when there is no release (the dev-server). */
|
|
69
71
|
function formatRelease(releaseId: string | null, pinned: boolean): string {
|
|
70
72
|
if (!releaseId) return "";
|
|
71
|
-
return `${copyParam("appInfo.releaseLabel", "Release")} ${releaseId}${pinned ? " · pinned" : ""}`;
|
|
73
|
+
return `${copyParam("appInfo.releaseLabel", "Release")} ${ltr(releaseId)}${pinned ? " · pinned" : ""}`;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/** A left-to-right isolate (U+2066 … U+2069): digits and ids keep their order inside right-to-left
|
|
77
|
+
* text. Built from char codes so the source holds no invisible bidi characters. */
|
|
78
|
+
const LRI = String.fromCharCode(0x2066);
|
|
79
|
+
const PDI = String.fromCharCode(0x2069);
|
|
80
|
+
const ltr = (value: string): string => `${LRI}${value}${PDI}`;
|
|
81
|
+
|
|
82
|
+
/** `0.2.0 (2)`, plus ` · <release line>` when there is one; "" with no version. The descriptor
|
|
83
|
+
* bakes the translated "Version" label beside it. */
|
|
84
|
+
function formatVersionText(version: string, releaseLine: string): string {
|
|
85
|
+
if (!version) return "";
|
|
86
|
+
return releaseLine ? `${ltr(version)} · ${releaseLine}` : ltr(version);
|
|
72
87
|
}
|
|
73
88
|
|
|
74
89
|
/** `2026-07-27` from an ISO timestamp — the date is what a QA person picks by; the clock time
|
|
@@ -86,7 +101,8 @@ const svc = defineService<State, {
|
|
|
86
101
|
resetRelease: (state: State, arg?: unknown) => Promise<State>;
|
|
87
102
|
}>("himiBrandedInfo", {
|
|
88
103
|
state: {
|
|
89
|
-
message: "", version: "", releaseLine: "", runtimeLine: "",
|
|
104
|
+
message: "", version: "", releaseLine: "", runtimeLine: "", versionText: "", noVersion: true,
|
|
105
|
+
hostedName: (hostSiteFromInput((globalThis as { himalaya?: { input?: unknown } }).himalaya?.input)?.name ?? "").trim(),
|
|
90
106
|
pickerAvailable: false, pickerHidden: true, releases: [], pickerMessage: "", pickerBusy: false,
|
|
91
107
|
},
|
|
92
108
|
actions: {
|
|
@@ -127,19 +143,14 @@ const svc = defineService<State, {
|
|
|
127
143
|
} catch {
|
|
128
144
|
next = { ...next, pickerAvailable: false, pickerHidden: true, runtimeLine: "" };
|
|
129
145
|
}
|
|
130
|
-
return next;
|
|
146
|
+
return { ...next, versionText: formatVersionText(next.version, next.releaseLine), noVersion: !next.version };
|
|
131
147
|
},
|
|
132
148
|
|
|
133
149
|
open: async (state, arg) => {
|
|
134
150
|
stashCopy(arg);
|
|
135
|
-
const
|
|
136
|
-
if (
|
|
137
|
-
|
|
138
|
-
const result = await openUrl(url, "in_app_browser");
|
|
139
|
-
return { ...state, message: result.opened ? "" : copyParam("appInfo.linkOpenFailedMessage", "This link could not be opened.") };
|
|
140
|
-
} catch {
|
|
141
|
-
return { ...state, message: copyParam("appInfo.linkOpenFailedMessage", "This link could not be opened.") };
|
|
142
|
-
}
|
|
151
|
+
const result = await openWebLink(linkUrlFrom(arg));
|
|
152
|
+
if (result === "unavailable") return { ...state, message: copyParam("appInfo.linkUnavailableMessage", "This link is unavailable.") };
|
|
153
|
+
return { ...state, message: result === "opened" ? "" : copyParam("appInfo.linkOpenFailedMessage", "This link could not be opened.") };
|
|
143
154
|
},
|
|
144
155
|
|
|
145
156
|
loadReleases: async (state, arg) => {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { open } from "@himalaya/open-url";
|
|
2
|
+
|
|
3
|
+
/** What happened to a web-link tap: the link opened, it is not a web link, or the host failed to open it. */
|
|
4
|
+
export type WebLinkResult = "opened" | "unavailable" | "failed";
|
|
5
|
+
|
|
6
|
+
/** The `url` an action argument carries, or "". */
|
|
7
|
+
export function linkUrlFrom(arg: unknown): string {
|
|
8
|
+
return typeof arg === "object" && arg !== null && typeof (arg as { url?: unknown }).url === "string"
|
|
9
|
+
? (arg as { url: string }).url
|
|
10
|
+
: "";
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/** Open an http(s) link in the in-app browser. Anything else (javascript:, a blank value) is refused
|
|
14
|
+
* before it reaches the host. Never throws. */
|
|
15
|
+
export async function openWebLink(url: string): Promise<WebLinkResult> {
|
|
16
|
+
if (!/^https?:\/\//i.test(url)) return "unavailable";
|
|
17
|
+
try {
|
|
18
|
+
return (await open(url, "in_app_browser")).opened ? "opened" : "failed";
|
|
19
|
+
} catch {
|
|
20
|
+
return "failed";
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -5,6 +5,7 @@ import { open } from "@himalaya/open-url";
|
|
|
5
5
|
import { wixMediaUrl, WIX_LIST_IMAGE } from "@himalaya/wix-media";
|
|
6
6
|
import { navigate } from "@himalaya/state";
|
|
7
7
|
import { copyParam, copyTemplate } from "../_shared/himi-copy.js";
|
|
8
|
+
import { linkUrlFrom, openWebLink } from "../_shared/open-web-link.js";
|
|
8
9
|
import { readResultSnackbar, resultSnackbarOn, showResultSnackbar } from "../_shared/result-snackbar.js";
|
|
9
10
|
import { memberAccess, assertMemberAccess, memberAccessChanged, memberAccessDenied, type MemberAccess } from "../_shared/member-access.js";
|
|
10
11
|
import { fetchMemberBookings, UNCONFIRMED_STATUSES, bookingDurationText, bookingMinutes, bookingStatusLabel, canAddBookingToCalendar, canCancelBooking, hasBookingDirections, type MemberBookingRow } from "../_shared/member-bookings.js";
|
|
@@ -434,6 +435,11 @@ const svc = defineBackendCollection<S, MemberBookingRow>("himiBookingBookings",
|
|
|
434
435
|
} catch { /* the result sheet says so below */ }
|
|
435
436
|
return showResult(s, copyParam("bookings.mapsFailed", "Couldn't open maps."), false);
|
|
436
437
|
},
|
|
438
|
+
// "Contact Us" in an app with no contact screen: the business's support page, in the in-app browser.
|
|
439
|
+
async openSupport(s, arg): Promise<S> {
|
|
440
|
+
if (await openWebLink(linkUrlFrom(arg)) === "opened") return s;
|
|
441
|
+
return showResult(s, copyParam("bookings.linkOpenFailed", "This link could not be opened."), false);
|
|
442
|
+
},
|
|
437
443
|
},
|
|
438
444
|
});
|
|
439
445
|
|