@wix/himalaya-cli 0.1899.0 → 0.1901.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/app-config.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/sdk/app-info/src/index.d.ts +1 -1
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{3c8ce407707a87e172345007371329f9c47e65e182a1e2ff617b7f75e6bb95ab.bin → e8580dd7946999b652493628a07600d2e5a0c7864cc0a8a807b8a20903f0698d.bin} +1 -1
- package/dist/browser-plane/sw.js +9 -9
- package/dist/cli.mjs +75775 -74157
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/ads.md +92 -0
- package/guides/himi-json-output.md +37 -2
- package/guides/index.json +6 -0
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +2 -1
- package/templates/beauty-salon/l10n/ar.json +5 -0
- package/templates/beauty-salon/l10n/cs.json +5 -0
- package/templates/beauty-salon/l10n/da.json +5 -0
- package/templates/beauty-salon/l10n/de.json +5 -0
- package/templates/beauty-salon/l10n/el.json +5 -0
- package/templates/beauty-salon/l10n/es.json +5 -0
- package/templates/beauty-salon/l10n/fi.json +5 -0
- package/templates/beauty-salon/l10n/fr.json +5 -0
- package/templates/beauty-salon/l10n/he.json +4 -0
- package/templates/beauty-salon/l10n/hu.json +5 -0
- package/templates/beauty-salon/l10n/id.json +5 -0
- package/templates/beauty-salon/l10n/it.json +5 -0
- package/templates/beauty-salon/l10n/ja.json +5 -0
- package/templates/beauty-salon/l10n/ko.json +5 -0
- package/templates/beauty-salon/l10n/lt.json +5 -0
- package/templates/beauty-salon/l10n/nl.json +5 -0
- package/templates/beauty-salon/l10n/no.json +5 -0
- package/templates/beauty-salon/l10n/pl.json +5 -0
- package/templates/beauty-salon/l10n/pt.json +5 -0
- package/templates/beauty-salon/l10n/ru.json +5 -0
- package/templates/beauty-salon/l10n/sv.json +5 -0
- package/templates/beauty-salon/l10n/th.json +5 -0
- package/templates/beauty-salon/l10n/tr.json +5 -0
- package/templates/beauty-salon/l10n/uk.json +5 -0
- package/templates/beauty-salon/l10n/vi.json +5 -0
- package/templates/beauty-salon/l10n/zh.json +5 -0
- package/templates/beauty-salon/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/beauty-salon/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/beauty-salon/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/beauty-salon-owner/config.ts +32 -1
- package/templates/beauty-salon-owner/dev/index.ts +565 -1
- package/templates/beauty-salon-owner/himalaya.content.json +3 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/beauty-salon-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/beauty-salon-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/beauty-salon-owner/tier5-src/wix-owner-booking/index.ts +9 -3
- package/templates/branded-lite/dev/index.ts +2 -1
- package/templates/branded-lite/l10n/ar.json +5 -0
- package/templates/branded-lite/l10n/cs.json +5 -0
- package/templates/branded-lite/l10n/da.json +5 -0
- package/templates/branded-lite/l10n/de.json +5 -0
- package/templates/branded-lite/l10n/el.json +5 -0
- package/templates/branded-lite/l10n/es.json +5 -0
- package/templates/branded-lite/l10n/fi.json +5 -0
- package/templates/branded-lite/l10n/fr.json +5 -0
- package/templates/branded-lite/l10n/he.json +4 -0
- package/templates/branded-lite/l10n/hu.json +5 -0
- package/templates/branded-lite/l10n/id.json +5 -0
- package/templates/branded-lite/l10n/it.json +5 -0
- package/templates/branded-lite/l10n/ja.json +5 -0
- package/templates/branded-lite/l10n/ko.json +5 -0
- package/templates/branded-lite/l10n/lt.json +5 -0
- package/templates/branded-lite/l10n/nl.json +5 -0
- package/templates/branded-lite/l10n/no.json +5 -0
- package/templates/branded-lite/l10n/pl.json +5 -0
- package/templates/branded-lite/l10n/pt.json +5 -0
- package/templates/branded-lite/l10n/ru.json +5 -0
- package/templates/branded-lite/l10n/sv.json +5 -0
- package/templates/branded-lite/l10n/th.json +5 -0
- package/templates/branded-lite/l10n/tr.json +5 -0
- package/templates/branded-lite/l10n/uk.json +5 -0
- package/templates/branded-lite/l10n/vi.json +5 -0
- package/templates/branded-lite/l10n/zh.json +5 -0
- package/templates/branded-lite/recipes/events-inline.json +2 -2
- package/templates/branded-lite/recipes/subscriptions-list.json +2 -1
- package/templates/branded-lite/tier5-src/_shared/my-subscriptions-section.ts +6 -8
- package/templates/branded-lite/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/branded-lite/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/branded-lite/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/brandy/dev/member-screens.ts +4 -2
- package/templates/brandy/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/brandy/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/brandy/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/community-club-owner/config.ts +32 -1
- package/templates/community-club-owner/dev/index.ts +538 -1
- package/templates/community-club-owner/himalaya.content.json +3 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/community-club-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/community-club-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/community-club-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/events-meetups-owner/config.ts +32 -1
- package/templates/events-meetups-owner/dev/index.ts +511 -1
- package/templates/events-meetups-owner/himalaya.content.json +3 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/events-meetups-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/events-meetups-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/fitness-gym/dev/index.ts +2 -1
- package/templates/fitness-gym/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/fitness-gym/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/fitness-gym/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/gym-fitness/dev/index.ts +2 -1
- package/templates/gym-fitness/l10n/ar.json +5 -0
- package/templates/gym-fitness/l10n/cs.json +5 -0
- package/templates/gym-fitness/l10n/da.json +5 -0
- package/templates/gym-fitness/l10n/de.json +5 -0
- package/templates/gym-fitness/l10n/el.json +5 -0
- package/templates/gym-fitness/l10n/es.json +5 -0
- package/templates/gym-fitness/l10n/fi.json +5 -0
- package/templates/gym-fitness/l10n/fr.json +5 -0
- package/templates/gym-fitness/l10n/he.json +4 -0
- package/templates/gym-fitness/l10n/hu.json +5 -0
- package/templates/gym-fitness/l10n/id.json +5 -0
- package/templates/gym-fitness/l10n/it.json +5 -0
- package/templates/gym-fitness/l10n/ja.json +5 -0
- package/templates/gym-fitness/l10n/ko.json +5 -0
- package/templates/gym-fitness/l10n/lt.json +5 -0
- package/templates/gym-fitness/l10n/nl.json +5 -0
- package/templates/gym-fitness/l10n/no.json +5 -0
- package/templates/gym-fitness/l10n/pl.json +5 -0
- package/templates/gym-fitness/l10n/pt.json +5 -0
- package/templates/gym-fitness/l10n/ru.json +5 -0
- package/templates/gym-fitness/l10n/sv.json +5 -0
- package/templates/gym-fitness/l10n/th.json +5 -0
- package/templates/gym-fitness/l10n/tr.json +5 -0
- package/templates/gym-fitness/l10n/uk.json +5 -0
- package/templates/gym-fitness/l10n/vi.json +5 -0
- package/templates/gym-fitness/l10n/zh.json +5 -0
- package/templates/gym-fitness/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/gym-fitness/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/gym-fitness/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/gym-fitness-owner/config.ts +32 -1
- package/templates/gym-fitness-owner/dev/index.ts +565 -1
- package/templates/gym-fitness-owner/himalaya.content.json +3 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/gym-fitness-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/gym-fitness-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/gym-fitness-owner/tier5-src/wix-owner-booking/index.ts +9 -3
- package/templates/nonprofit-cause/dev/index.ts +2 -1
- package/templates/nonprofit-cause/l10n/ar.json +5 -0
- package/templates/nonprofit-cause/l10n/cs.json +5 -0
- package/templates/nonprofit-cause/l10n/da.json +5 -0
- package/templates/nonprofit-cause/l10n/de.json +5 -0
- package/templates/nonprofit-cause/l10n/el.json +5 -0
- package/templates/nonprofit-cause/l10n/es.json +5 -0
- package/templates/nonprofit-cause/l10n/fi.json +5 -0
- package/templates/nonprofit-cause/l10n/fr.json +5 -0
- package/templates/nonprofit-cause/l10n/he.json +4 -0
- package/templates/nonprofit-cause/l10n/hu.json +5 -0
- package/templates/nonprofit-cause/l10n/id.json +5 -0
- package/templates/nonprofit-cause/l10n/it.json +5 -0
- package/templates/nonprofit-cause/l10n/ja.json +5 -0
- package/templates/nonprofit-cause/l10n/ko.json +5 -0
- package/templates/nonprofit-cause/l10n/lt.json +5 -0
- package/templates/nonprofit-cause/l10n/nl.json +5 -0
- package/templates/nonprofit-cause/l10n/no.json +5 -0
- package/templates/nonprofit-cause/l10n/pl.json +5 -0
- package/templates/nonprofit-cause/l10n/pt.json +5 -0
- package/templates/nonprofit-cause/l10n/ru.json +5 -0
- package/templates/nonprofit-cause/l10n/sv.json +5 -0
- package/templates/nonprofit-cause/l10n/th.json +5 -0
- package/templates/nonprofit-cause/l10n/tr.json +5 -0
- package/templates/nonprofit-cause/l10n/uk.json +5 -0
- package/templates/nonprofit-cause/l10n/vi.json +5 -0
- package/templates/nonprofit-cause/l10n/zh.json +5 -0
- package/templates/nonprofit-cause/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/nonprofit-cause/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/nonprofit-cause/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/nonprofit-cause-owner/config.ts +32 -1
- package/templates/nonprofit-cause-owner/dev/index.ts +538 -1
- package/templates/nonprofit-cause-owner/himalaya.content.json +3 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/nonprofit-cause-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/nonprofit-cause-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/nonprofit-cause-owner/tier5-src/wix-owner-booking/index.ts +9 -3
- package/templates/owner-lite/config.ts +32 -1
- package/templates/owner-lite/dev/index.ts +565 -1
- package/templates/owner-lite/himalaya.content.json +3 -0
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/owner-lite/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/owner-lite/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/owner-lite/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/owner-lite/tier5-src/wix-owner-booking/index.ts +9 -3
- package/templates/personal-fitness-trainer/dev/index.ts +2 -1
- package/templates/personal-fitness-trainer/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/personal-fitness-trainer/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/personal-fitness-trainer/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/podcast-creator/dev/index.ts +2 -1
- package/templates/podcast-creator/l10n/ar.json +5 -0
- package/templates/podcast-creator/l10n/cs.json +5 -0
- package/templates/podcast-creator/l10n/da.json +5 -0
- package/templates/podcast-creator/l10n/de.json +5 -0
- package/templates/podcast-creator/l10n/el.json +5 -0
- package/templates/podcast-creator/l10n/es.json +5 -0
- package/templates/podcast-creator/l10n/fi.json +5 -0
- package/templates/podcast-creator/l10n/fr.json +5 -0
- package/templates/podcast-creator/l10n/he.json +4 -0
- package/templates/podcast-creator/l10n/hu.json +5 -0
- package/templates/podcast-creator/l10n/id.json +5 -0
- package/templates/podcast-creator/l10n/it.json +5 -0
- package/templates/podcast-creator/l10n/ja.json +5 -0
- package/templates/podcast-creator/l10n/ko.json +5 -0
- package/templates/podcast-creator/l10n/lt.json +5 -0
- package/templates/podcast-creator/l10n/nl.json +5 -0
- package/templates/podcast-creator/l10n/no.json +5 -0
- package/templates/podcast-creator/l10n/pl.json +5 -0
- package/templates/podcast-creator/l10n/pt.json +5 -0
- package/templates/podcast-creator/l10n/ru.json +5 -0
- package/templates/podcast-creator/l10n/sv.json +5 -0
- package/templates/podcast-creator/l10n/th.json +5 -0
- package/templates/podcast-creator/l10n/tr.json +5 -0
- package/templates/podcast-creator/l10n/uk.json +5 -0
- package/templates/podcast-creator/l10n/vi.json +5 -0
- package/templates/podcast-creator/l10n/zh.json +5 -0
- package/templates/podcast-creator/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/podcast-creator/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/podcast-creator/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/podcast-creator-owner/config.ts +32 -1
- package/templates/podcast-creator-owner/dev/index.ts +538 -1
- package/templates/podcast-creator-owner/himalaya.content.json +3 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/podcast-creator-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/podcast-creator-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/portfolio-creative-owner/config.ts +32 -1
- package/templates/portfolio-creative-owner/dev/index.ts +565 -1
- package/templates/portfolio-creative-owner/himalaya.content.json +3 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/portfolio-creative-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/portfolio-creative-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/portfolio-creative-owner/tier5-src/wix-owner-booking/index.ts +9 -3
- package/templates/professional-services/dev/index.ts +2 -1
- package/templates/professional-services/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/professional-services/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/professional-services/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/restaurant-owner/config.ts +32 -1
- package/templates/restaurant-owner/dev/index.ts +565 -1
- package/templates/restaurant-owner/himalaya.content.json +3 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/restaurant-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/restaurant-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/restaurant-owner/tier5-src/wix-owner-booking/index.ts +9 -3
- package/templates/retail-store-owner/config.ts +32 -1
- package/templates/retail-store-owner/dev/index.ts +538 -1
- package/templates/retail-store-owner/himalaya.content.json +3 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/retail-store-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-order/index.ts +5 -0
- package/templates/retail-store-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/yoga-studio/dev/index.ts +2 -1
- package/templates/yoga-studio/l10n/ar.json +5 -0
- package/templates/yoga-studio/l10n/cs.json +5 -0
- package/templates/yoga-studio/l10n/da.json +5 -0
- package/templates/yoga-studio/l10n/de.json +5 -0
- package/templates/yoga-studio/l10n/el.json +5 -0
- package/templates/yoga-studio/l10n/es.json +5 -0
- package/templates/yoga-studio/l10n/fi.json +5 -0
- package/templates/yoga-studio/l10n/fr.json +5 -0
- package/templates/yoga-studio/l10n/he.json +4 -0
- package/templates/yoga-studio/l10n/hu.json +5 -0
- package/templates/yoga-studio/l10n/id.json +5 -0
- package/templates/yoga-studio/l10n/it.json +5 -0
- package/templates/yoga-studio/l10n/ja.json +5 -0
- package/templates/yoga-studio/l10n/ko.json +5 -0
- package/templates/yoga-studio/l10n/lt.json +5 -0
- package/templates/yoga-studio/l10n/nl.json +5 -0
- package/templates/yoga-studio/l10n/no.json +5 -0
- package/templates/yoga-studio/l10n/pl.json +5 -0
- package/templates/yoga-studio/l10n/pt.json +5 -0
- package/templates/yoga-studio/l10n/ru.json +5 -0
- package/templates/yoga-studio/l10n/sv.json +5 -0
- package/templates/yoga-studio/l10n/th.json +5 -0
- package/templates/yoga-studio/l10n/tr.json +5 -0
- package/templates/yoga-studio/l10n/uk.json +5 -0
- package/templates/yoga-studio/l10n/vi.json +5 -0
- package/templates/yoga-studio/l10n/zh.json +5 -0
- package/templates/yoga-studio/tier5-src/_shared/pricing-plan-display.ts +39 -0
- package/templates/yoga-studio/tier5-src/wix-spaces-my-subscriptions/index.ts +5 -5
- package/templates/yoga-studio/tier5-src/wix-spaces-subscription-detail/index.ts +3 -2
- package/templates/yoga-studio-owner/config.ts +32 -1
- package/templates/yoga-studio-owner/dev/index.ts +538 -1
- package/templates/yoga-studio-owner/himalaya.content.json +3 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-availability.ts +14 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-chat.ts +179 -0
- package/templates/yoga-studio-owner/tier5-src/_shared/owner-maestro-tab.ts +42 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro/index.ts +345 -48
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-maestro-history/index.ts +106 -0
- package/templates/yoga-studio-owner/tier5-src/himi-owner-lite-record/index.ts +9 -3
- package/templates/yoga-studio-owner/tier5-src/wix-owner-booking/index.ts +9 -3
|
Binary file
|
package/guides/ads.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
# Ads in your app (AdMob banners)
|
|
2
|
+
|
|
3
|
+
Show Google AdMob banner ads in a Himi app with your own AdMob account. Turn them on, place them and
|
|
4
|
+
switch them off over the air, all from the `himi` CLI. You keep the revenue. Ads are iOS and Android
|
|
5
|
+
only: the web and Mac apps draw nothing where a banner sits.
|
|
6
|
+
|
|
7
|
+
## 1. Connect your AdMob account
|
|
8
|
+
|
|
9
|
+
Create an app in the AdMob console for iOS and one for Android, then:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
himi ads connect --ios-app-id ca-app-pub-1234567890123456~1111111111 \
|
|
13
|
+
--android-app-id ca-app-pub-1234567890123456~2222222222
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
This adds the `ads` capability and your app IDs to `config.ts`. It rewrites nothing else, and keeps a
|
|
17
|
+
backup under `.himi/ads-backup/`. Running it again with the same IDs changes nothing. Different IDs are
|
|
18
|
+
refused (`ads_app_id_conflict`) unless you pass `--force`.
|
|
19
|
+
|
|
20
|
+
Ads need a **new binary**: the capability adds the AdMob SDK, the consent form, the iOS tracking prompt
|
|
21
|
+
and an Android advertising-ID permission. Run `himi dist` after connecting. A `himi push` before that is
|
|
22
|
+
refused with `binary_capability_gap`.
|
|
23
|
+
|
|
24
|
+
> **App IDs in the binary:** `himi dist` bakes the IDs from `himi ads connect` into the **Release** configuration of
|
|
25
|
+
> the binary (the served `adsAppIds` becomes the dist contract's `native.adsBinding`). Debug builds keep Google's test
|
|
26
|
+
> IDs. If the release has no valid pair of IDs, both configurations keep the test IDs.
|
|
27
|
+
|
|
28
|
+
## 2. Place a banner
|
|
29
|
+
|
|
30
|
+
In a screen:
|
|
31
|
+
|
|
32
|
+
```ts
|
|
33
|
+
adBanner({ slot: "home_footer" }) // size: "adaptive" (default) | "banner" | "largeBanner" | "mediumRectangle"
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Then give the slot its ad unit IDs (from the AdMob console):
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
himi ads slot set home_footer --ios-unit ca-app-pub-1234567890123456/3333333333 \
|
|
40
|
+
--android-unit ca-app-pub-1234567890123456/4444444444
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
`himi render <screen> --png` and `himi run` draw a dashed `Ad · home_footer · adaptive` placeholder, so
|
|
44
|
+
you can see where the ad goes without loading one.
|
|
45
|
+
|
|
46
|
+
A banner takes **no space** when ads are off, the slot has no unit, the user has not consented, the
|
|
47
|
+
user bought an ad-free product, or no ad was available. It never shows a gap or an error box.
|
|
48
|
+
|
|
49
|
+
## 3. Turn ads on, off, or off for paying users, over the air
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
himi ads on --live
|
|
53
|
+
himi ads off --live # the kill switch: every banner disappears on the next config refresh
|
|
54
|
+
himi ads ad-free add com.acme.premium.monthly --live # anyone who owns this product never sees an ad
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Every command edits `config.ts`. With `--live` it also publishes the app config, the same as
|
|
58
|
+
`himi push --only app-config --live`. Without `--live` nothing changes for users until your next push.
|
|
59
|
+
|
|
60
|
+
`himi ads status` shows each slot as configured locally next to what is live, marks any difference, and
|
|
61
|
+
says whether your last `himi dist` included ads.
|
|
62
|
+
|
|
63
|
+
## 4. Check before you submit to the stores
|
|
64
|
+
|
|
65
|
+
`himi validate` reports:
|
|
66
|
+
- `ads_app_ids_missing`: `ads` is declared without app IDs (error).
|
|
67
|
+
- `ads_banner_without_ads`: a banner is placed but `ads` is not declared (error).
|
|
68
|
+
- `ads_multiple_banners`: more than one banner on a screen (warning).
|
|
69
|
+
- `ads_banner_sensitive`: a banner on a sign-in, checkout, paywall, settings or form screen (warning).
|
|
70
|
+
- `ads_slot_undeclared`: a banner slot with no unit IDs in `config.ts` (warning).
|
|
71
|
+
|
|
72
|
+
`himi setup check --only ads` reports four things, each `ok: true`, `false`, or `null` when it could not tell:
|
|
73
|
+
- `appIds`: your own IDs, not Google's test IDs.
|
|
74
|
+
- `slots`: at least one slot configured.
|
|
75
|
+
- `appAdsTxt`: `https://<your site>/app-ads.txt` lists `google.com, pub-<your publisher id>`. AdMob needs this to pay out.
|
|
76
|
+
- `privacy`: the store privacy drafts declare advertising and tracking.
|
|
77
|
+
|
|
78
|
+
## Testing
|
|
79
|
+
|
|
80
|
+
Debug builds always request Google's **test** ads, whatever your slots say, so testing never shows a
|
|
81
|
+
real ad. Debug builds also skip the consent form unless you ask for it:
|
|
82
|
+
|
|
83
|
+
- iOS: launch with the environment variable `HIMI_ADS_DEBUG_GEO=eea` (show the EU consent form), or
|
|
84
|
+
`real` (use the device's own location).
|
|
85
|
+
- Android: `adb shell setprop debug.himi.ads.geo eea` (or `real`).
|
|
86
|
+
|
|
87
|
+
Without that setting a Debug build shows no consent form and no ads.
|
|
88
|
+
|
|
89
|
+
## Good to know
|
|
90
|
+
|
|
91
|
+
- Declining personalised ads on the consent form still allows limited, non-personalised ads.
|
|
92
|
+
- Every `himi ads` refusal has a stable `code` (listed in `himi docs himi-json-output`).
|
|
@@ -436,7 +436,7 @@ target the command read, e.g. `himi login --browser --target wix`.
|
|
|
436
436
|
|
|
437
437
|
## `himi setup check` codes
|
|
438
438
|
|
|
439
|
-
`himi setup check` prints one JSON report whose `push`, `signIn` and `
|
|
439
|
+
`himi setup check` prints one JSON report whose `push`, `signIn`, `iap` and `ads` sections each carry
|
|
440
440
|
`ok` (`true`, `false` or `null` for unverified). A failed section keeps the `code` of the check it
|
|
441
441
|
ran (`himi notify status` or `himi store iap check`). Its own refusals, exit 2:
|
|
442
442
|
|
|
@@ -444,7 +444,7 @@ ran (`himi notify status` or `himi store iap check`). Its own refusals, exit 2:
|
|
|
444
444
|
|---|---|
|
|
445
445
|
| `invalid_setup_operation` | `himi setup` was given an operation other than `check`. |
|
|
446
446
|
| `missing_flag_value` | `--only` or `--iap-manifest` was given without a value. |
|
|
447
|
-
| `invalid_setup_area` | `--only` named something other than `push`, `signin` or `
|
|
447
|
+
| `invalid_setup_area` | `--only` named something other than `push`, `signin`, `iap` or `ads`. |
|
|
448
448
|
| `iap_manifest_required` | `--only` asked for `iap` without `--iap-manifest <file>`. |
|
|
449
449
|
|
|
450
450
|
A readable push status that is not ready gets `push.code` from its `error` (for example
|
|
@@ -455,6 +455,41 @@ A readable push status that is not ready gets `push.code` from its `error` (for
|
|
|
455
455
|
report sign-in readiness gives every `signIn.checks` entry `state: "unknown"` with
|
|
456
456
|
`code: "sign_in_not_reported"`.
|
|
457
457
|
|
|
458
|
+
The `ads` section (`himi setup check --only ads`; in the default areas only for an app that declares `ads`) holds four
|
|
459
|
+
checks, each `ok: true | false | null`: `appIds`, `slots`, `appAdsTxt` and `privacy`. The section is `false` when any
|
|
460
|
+
check is `false`, else `null` (listed under `unverified`) when any is unknown. Check codes: `ads_app_ids_missing`,
|
|
461
|
+
`ads_test_app_ids` (Google's test IDs are still in use), `ads_no_slots`, `app_ads_txt_missing` (404),
|
|
462
|
+
`app_ads_txt_publisher_missing` (no `google.com, pub-<id>` line for the app ID's publisher), `app_ads_txt_unreachable`
|
|
463
|
+
(`null`: the fetch failed or timed out after 5 s), `no_site_domain` (`null`: `provisioning.json` has no site URL),
|
|
464
|
+
`ads_privacy_missing` (the drafts lack the tracking or advertising entries), `no_store_drafts` (`null`: nothing to read
|
|
465
|
+
yet). With `--only ads` an app that does not declare `ads` is `ads_not_connected`.
|
|
466
|
+
|
|
467
|
+
## `himi ads` codes
|
|
468
|
+
|
|
469
|
+
Every refusal from `himi ads` is `ok: false` with a top-level `code` on stderr, exit 2, and the file left as it was
|
|
470
|
+
(unless `ads_edit_rolled_back`, which restores it). `instruction` says what to do by hand where one exists.
|
|
471
|
+
|
|
472
|
+
| Code | Meaning |
|
|
473
|
+
|---|---|
|
|
474
|
+
| `ads_usage` | A subcommand or a required flag or argument (`--ios-app-id`, `--android-app-id`, `<slot>`, `<productId>`) is missing. |
|
|
475
|
+
| `ads_app_id_invalid` | An AdMob app ID is not `ca-app-pub-<digits>~<digits>`. |
|
|
476
|
+
| `ads_app_id_conflict` | `connect` found different IDs already in `config.ts`. Pass `--force` to replace them. |
|
|
477
|
+
| `ads_config_computed` | `ads`, `capabilities` or the `defineApp` object is computed rather than a literal, so it was not edited; `instruction` gives the lines to add. |
|
|
478
|
+
| `ads_config_not_found` | No `config.ts` in the `--content` directory. |
|
|
479
|
+
| `ads_config_unsafe` | `config.ts` is a symlink, or `.himi` is not a plain directory, so nothing was written. |
|
|
480
|
+
| `ads_edit_rolled_back` | `himi validate` found a new error after the edit, so `config.ts` was restored. |
|
|
481
|
+
| `ads_not_connected` | `slot`, `on`, `off` or `ad-free` before `himi ads connect`. |
|
|
482
|
+
| `ads_unit_id_invalid` | An ad unit ID is not `ca-app-pub-<digits>/<digits>`, or `slot set` got none. |
|
|
483
|
+
| `ads_slot_name_invalid` | A slot name is not a letter followed by letters, digits or underscores. |
|
|
484
|
+
| `ads_slot_unknown` | `slot rm` of a slot `ads.slots` does not have. |
|
|
485
|
+
| `ads_product_id_invalid` | An `ad-free` product ID is not a store product ID. |
|
|
486
|
+
| `ads_live_publish_failed` | `--live`: `config.ts` was edited but the app-config publish failed with no code of its own. |
|
|
487
|
+
|
|
488
|
+
`--live` failures otherwise carry the code of `himi push --only app-config --live` (the push codes), with that
|
|
489
|
+
command's whole answer nested under `push`: a server body is never spread over `ok` or `code`. The local edit
|
|
490
|
+
stays (`local.changed`). `himi ads status` never refuses on a failed live read: it prints `live.enabled: null` with a
|
|
491
|
+
`reason`, and `drift: null`.
|
|
492
|
+
|
|
458
493
|
## `himi cms seed` codes
|
|
459
494
|
|
|
460
495
|
| Code | Meaning |
|
package/guides/index.json
CHANGED
|
@@ -281,6 +281,12 @@
|
|
|
281
281
|
"category": "Workers & SDKs",
|
|
282
282
|
"file": "cms-collections.md"
|
|
283
283
|
},
|
|
284
|
+
{
|
|
285
|
+
"id": "ads",
|
|
286
|
+
"title": "Ads (AdMob banners, himi ads)",
|
|
287
|
+
"category": "Workers & SDKs",
|
|
288
|
+
"file": "ads.md"
|
|
289
|
+
},
|
|
284
290
|
{
|
|
285
291
|
"id": "widgets",
|
|
286
292
|
"title": "Home-screen widgets (what a widget can show)",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1901.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "f30b3a76fa122805d38571a5005204bea0ca1a55444123b7778be23e"
|
|
86
86
|
}
|
|
@@ -31359,7 +31359,8 @@ const SCREENS = runtimeSetting({
|
|
|
31359
31359
|
"type": "Text",
|
|
31360
31360
|
"props": {
|
|
31361
31361
|
"text": "$item.endDate",
|
|
31362
|
-
"style": "footnoteRegular"
|
|
31362
|
+
"style": "footnoteRegular",
|
|
31363
|
+
"collapseWhenEmpty": true
|
|
31363
31364
|
}
|
|
31364
31365
|
}
|
|
31365
31366
|
}
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "صالح حتى",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "صالح حتى الإلغاء",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "تعذّر تحميل الاشتراكات.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Platí do",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Platí do zrušení",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Předplatná se nepodařilo načíst.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Gyldig til",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Gyldig indtil opsigelse",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Abonnementer kunne ikke indlæses.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Gültig bis",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Gültig bis zur Kündigung",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Abonnements konnten nicht geladen werden.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Ισχύει έως",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Ισχύει έως την ακύρωση",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Δεν ήταν δυνατή η φόρτωση των συνδρομών.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Válido hasta",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Válido hasta su cancelación",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "No se pudieron cargar las suscripciones.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Voimassa asti",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Voimassa toistaiseksi",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Tilauksia ei voitu ladata.",
|
|
@@ -4730,6 +4730,11 @@
|
|
|
4730
4730
|
"translation": "Valable jusqu'au",
|
|
4731
4731
|
"origin": "machine"
|
|
4732
4732
|
},
|
|
4733
|
+
"h_40895070d6bf": {
|
|
4734
|
+
"source": "Valid until canceled",
|
|
4735
|
+
"translation": "Valable jusqu'à résiliation",
|
|
4736
|
+
"origin": "machine"
|
|
4737
|
+
},
|
|
4733
4738
|
"h_513a2ae3716f": {
|
|
4734
4739
|
"source": "Subscriptions could not be loaded.",
|
|
4735
4740
|
"translation": "Impossible de charger les abonnements.",
|
|
@@ -3865,6 +3865,10 @@
|
|
|
3865
3865
|
"source": "Valid until",
|
|
3866
3866
|
"translation": "בתוקף עד"
|
|
3867
3867
|
},
|
|
3868
|
+
"h_40895070d6bf": {
|
|
3869
|
+
"source": "Valid until canceled",
|
|
3870
|
+
"translation": "בתוקף עד לביטול"
|
|
3871
|
+
},
|
|
3868
3872
|
"h_513a2ae3716f": {
|
|
3869
3873
|
"source": "Subscriptions could not be loaded.",
|
|
3870
3874
|
"translation": "לא ניתן לטעון את המנויים."
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Érvényes eddig",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Lemondásig érvényes",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Az előfizetéseket nem sikerült betölteni.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Berlaku hingga",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Berlaku hingga dibatalkan",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Langganan tidak dapat dimuat.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Valido fino al",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Valido fino alla disdetta",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Impossibile caricare gli abbonamenti.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "有効期限",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "解約まで有効",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "サブスクリプションを読み込めませんでした。",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "유효 기간",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "해지 시까지 유효",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "구독을 불러올 수 없어요.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Galioja iki",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Galioja iki atšaukimo",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Nepavyko įkelti prenumeratų.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Geldig tot",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Geldig tot opzegging",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Abonnementen konden niet worden geladen.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Gyldig til",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Gyldig til oppsigelse",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Abonnementene kunne ikke lastes inn.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Ważne do",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Ważne do czasu anulowania",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Nie udało się wczytać subskrypcji.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Válido até",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Válido até o cancelamento",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Não foi possível carregar as assinaturas.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Действует до",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Действует до отмены",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Не удалось загрузить подписки.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Giltig till",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Giltig tills vidare",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Det gick inte att läsa in prenumerationerna.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "ใช้ได้ถึง",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "ใช้ได้จนกว่าจะยกเลิก",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "โหลดการสมัครใช้งานไม่ได้",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Geçerlilik tarihi",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "İptal edilene kadar geçerli",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Abonelikler yüklenemedi.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Діє до",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Діє до скасування",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Не вдалося завантажити підписки.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "Có hiệu lực đến",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "Có hiệu lực đến khi hủy",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "Không thể tải các gói đăng ký.",
|
|
@@ -4745,6 +4745,11 @@
|
|
|
4745
4745
|
"translation": "有效期限至",
|
|
4746
4746
|
"origin": "machine"
|
|
4747
4747
|
},
|
|
4748
|
+
"h_40895070d6bf": {
|
|
4749
|
+
"source": "Valid until canceled",
|
|
4750
|
+
"translation": "有效期至取消为止",
|
|
4751
|
+
"origin": "machine"
|
|
4752
|
+
},
|
|
4748
4753
|
"h_513a2ae3716f": {
|
|
4749
4754
|
"source": "Subscriptions could not be loaded.",
|
|
4750
4755
|
"translation": "無法載入訂閱。",
|
|
@@ -20,6 +20,45 @@ export function orderDate(value?: string): string {
|
|
|
20
20
|
return value && Number.isFinite(Date.parse(value)) ? formatDateMedium(new Date(value)) : "";
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* The order is valid until it is canceled: an ACTIVE single-payment order whose purchased pricing says
|
|
25
|
+
* "unlimited" (`singlePaymentUnlimited`) and that has no end, no scheduled end and no billing cycle.
|
|
26
|
+
* Only the order's own pricing decides it; today's plan is never consulted, because it can have changed.
|
|
27
|
+
*/
|
|
28
|
+
export function orderOpenEnded(order: WixPlanOrder): boolean {
|
|
29
|
+
if (order.status !== "ACTIVE" || order.endDate || order.earliestEndDate || order.autoRenewCanceled || order.cancellation?.effectiveAt === "NEXT_PAYMENT_DATE") return false;
|
|
30
|
+
const pricing = order.pricing ?? {};
|
|
31
|
+
const details = order.priceDetails ?? {};
|
|
32
|
+
if (pricing.subscription || details.subscription || pricing.singlePaymentForDuration || details.singlePaymentForDuration) return false;
|
|
33
|
+
return pricing.singlePaymentUnlimited === true || details.singlePaymentUnlimited === true;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/** One order's validity line on a subscription card: the label, the date after it, and whether the line shows. */
|
|
37
|
+
export interface OrderValidity {
|
|
38
|
+
/** "Valid until" / "Current period ends" / "End date" / "Expired on", or the whole line "Valid until canceled". */
|
|
39
|
+
label: string;
|
|
40
|
+
/** The formatted date; empty for an open-ended order, whose label says it all. */
|
|
41
|
+
date: string;
|
|
42
|
+
/** True when the order says nothing reliable about its validity: the card hides the line. */
|
|
43
|
+
hidden: boolean;
|
|
44
|
+
openEnded: boolean;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function orderValidity(order: WixPlanOrder): OrderValidity {
|
|
48
|
+
// A subscription with no end date but a running billing cycle is "valid" until the cycle ends.
|
|
49
|
+
const periodEnd = !order.earliestEndDate && !order.endDate && order.status === "ACTIVE" && (order.pricing?.subscription ?? order.priceDetails?.subscription)
|
|
50
|
+
? orderDate(order.currentCycle?.endedDate) : "";
|
|
51
|
+
const date = orderDate(order.earliestEndDate ?? order.endDate) || periodEnd;
|
|
52
|
+
if (!date && orderOpenEnded(order)) {
|
|
53
|
+
return { label: copyParam("mySubscriptions.validUntilCanceled", "Valid until canceled"), date: "", hidden: false, openEnded: true };
|
|
54
|
+
}
|
|
55
|
+
const label = periodEnd ? copyParam("subscriptionDetail.periodEnd", "Current period ends")
|
|
56
|
+
: order.status === "CANCELED" ? copyParam("subscriptionDetail.endDate", "End date")
|
|
57
|
+
: order.status === "ENDED" ? copyParam("mySubscriptions.expiredOn", "Expired on")
|
|
58
|
+
: copyParam("mySubscriptions.validUntil", "Valid until");
|
|
59
|
+
return { label, date, hidden: !date, openEnded: false };
|
|
60
|
+
}
|
|
61
|
+
|
|
23
62
|
/** The purchased order owns its price; today's plan is never a price fallback. */
|
|
24
63
|
export function orderPrice(order: WixPlanOrder): string {
|
|
25
64
|
const cycle = order.currentCycle?.index ?? 1;
|
|
@@ -2,12 +2,12 @@ import { defineService } from "@himalaya/state";
|
|
|
2
2
|
import { listMyPlanOrders, type WixPlanOrder } from "@himalaya/wix-pricing-plans";
|
|
3
3
|
import { hostSessionFromGlobal } from "@himalaya/iap";
|
|
4
4
|
import { memberAccess, assertMemberAccess, memberAccessDenied, memberChanged } from "../_shared/member-access.js";
|
|
5
|
-
import {
|
|
5
|
+
import { orderPrice, orderStatus, orderValidity } from "../_shared/pricing-plan-display.js";
|
|
6
6
|
import { descriptionBody } from "../_shared/rich-body.js";
|
|
7
7
|
import { copyParam, stashCopy } from "../_shared/himi-copy.js";
|
|
8
8
|
import { isHttp401 } from "../_shared/member-read.js";
|
|
9
9
|
|
|
10
|
-
interface Row { id: string; name: string; subtitle: string; description: string; price: string; endDate: string; noEndDate: boolean; expired: boolean; dateLabel: string }
|
|
10
|
+
interface Row { id: string; name: string; subtitle: string; description: string; price: string; endDate: string; noEndDate: boolean; openEnded: boolean; expired: boolean; dateLabel: string }
|
|
11
11
|
interface S {
|
|
12
12
|
status: string; orders: Row[]; rows: Row[]; allOrders: Row[]; selectedTab: string; nextCursor: string;
|
|
13
13
|
emptyText: string; hideAccountCta: boolean; noOrders: boolean;
|
|
@@ -32,10 +32,10 @@ function project(state: S): S {
|
|
|
32
32
|
emptyText: orders.length ? "" : state.selectedTab === "expired" ? copyParam("mySubscriptions.expiredEmpty", "No expired subscriptions") : copyParam("mySubscriptions.activeEmpty", "No active subscriptions") };
|
|
33
33
|
}
|
|
34
34
|
function norm(order: WixPlanOrder): Row {
|
|
35
|
-
const
|
|
36
|
-
const endDate = orderDate(order.earliestEndDate ?? order.endDate) || periodEnd;
|
|
35
|
+
const validity = orderValidity(order);
|
|
37
36
|
return { id: order.id, name: order.planName || copyParam("plans.planFallbackName", "Plan"), subtitle: orderStatus(order),
|
|
38
|
-
description: descriptionBody(order.planDescription).bodyText, price: orderPrice(order),
|
|
37
|
+
description: descriptionBody(order.planDescription).bodyText, price: orderPrice(order),
|
|
38
|
+
endDate: validity.date, noEndDate: validity.hidden, openEnded: validity.openEnded, dateLabel: validity.label,
|
|
39
39
|
expired: ["ENDED", "CANCELED"].includes(order.status ?? "") };
|
|
40
40
|
}
|
|
41
41
|
async function readPage(state: S, reset: boolean): Promise<S | undefined> {
|
|
@@ -2,7 +2,7 @@ import { defineService } from "@himalaya/state";
|
|
|
2
2
|
import { getMyPlanOrder, requestCancellation, type WixPlanOrder } from "@himalaya/wix-pricing-plans";
|
|
3
3
|
import { hostSessionFromGlobal } from "@himalaya/iap";
|
|
4
4
|
import { memberAccess, assertMemberAccess, memberAccessDenied, memberChanged, type MemberAccess } from "../_shared/member-access.js";
|
|
5
|
-
import { orderDate, orderPrice, orderStatus, orderFacts } from "../_shared/pricing-plan-display.js";
|
|
5
|
+
import { orderDate, orderPrice, orderStatus, orderFacts, orderOpenEnded } from "../_shared/pricing-plan-display.js";
|
|
6
6
|
import { presence, presenceAfterError, detailInputId, type PresenceFlags } from "../_shared/detail-presence.js";
|
|
7
7
|
import { copyParam, copyTemplate, stashCopy } from "../_shared/himi-copy.js";
|
|
8
8
|
|
|
@@ -34,7 +34,8 @@ function project(o: WixPlanOrder, message = ""): S {
|
|
|
34
34
|
const scheduled = Boolean((o.pricing?.subscription ?? o.priceDetails?.subscription) && o.currentCycle?.endedDate && Date.parse(o.currentCycle.endedDate) > Date.now());
|
|
35
35
|
const renews = o.status === "ACTIVE" && scheduled ? orderDate(o.currentCycle?.endedDate) : "";
|
|
36
36
|
return { ...initial(), ...presence("found"), status: "ready", notActive: o.status !== "ACTIVE", isActive: o.status === "ACTIVE", name: o.planName || copyParam("subscriptionDetail.fallbackName", "Subscription"), subtitle: orderStatus(o), price: orderPrice(o),
|
|
37
|
-
validity: (o.earliestEndDate || o.autoRenewCanceled || o.cancellation?.effectiveAt === "NEXT_PAYMENT_DATE") && end ? copyTemplate("subscriptionDetail.scheduledEndMessage", "Your subscription ends on {date}.", { date: end }) : renews ? copyTemplate("placeSummary.planRenews", "Renews {date}", { date: renews })
|
|
37
|
+
validity: (o.earliestEndDate || o.autoRenewCanceled || o.cancellation?.effectiveAt === "NEXT_PAYMENT_DATE") && end ? copyTemplate("subscriptionDetail.scheduledEndMessage", "Your subscription ends on {date}.", { date: end }) : renews ? copyTemplate("placeSummary.planRenews", "Renews {date}", { date: renews })
|
|
38
|
+
: orderOpenEnded(o) ? copyParam("mySubscriptions.validUntilCanceled", "Valid until canceled") : "",
|
|
38
39
|
facts: orderFacts(o), hideCancel: !canCancel(o) || cancellationsSent.has(cancellationKey(o.id)), noScheduledOption: !scheduled,
|
|
39
40
|
effectiveAt: scheduled ? "NEXT_PAYMENT_DATE" : "IMMEDIATELY", actionMessage: message };
|
|
40
41
|
}
|