@wix/himalaya-cli 0.1749.0 → 0.1751.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/himi-package.d.ts +478 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/host-compatibility.d.ts +56 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/icon-catalog.generated.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +156 -8
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/validator.d.ts +3 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/podcast-service.d.ts +105 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/podcast.d.ts +116 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +326 -13
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +730 -81
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +155 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{b40ea5d0d6251898ff5617139fde8be008dd11e99a70b14c1052093685401700.bin → 21f35a12bd94f4ab97a9a75453c4adcadc438daf024a4b1950d5c356c123bd01.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +44618 -35753
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +4 -0
- package/guides/designing-himi-screens.md +7 -0
- package/guides/getting-started.md +5 -1
- package/guides/headless-loop.md +1 -1
- package/guides/himi-json-output.md +54 -1
- package/guides/himi-skill.md +5 -1
- package/guides/index.json +6 -0
- package/guides/one-app-to-himi-app.md +31 -8
- package/guides/qa-builds.md +12 -1
- package/guides/recipe-podcast.md +149 -0
- package/guides/skill.md +3 -1
- package/guides/store-submission.md +149 -34
- package/guides/tier-5-add-a-screen.md +16 -2
- package/guides/wix-business-context.md +43 -0
- package/guides/wix-platform-usage.md +7 -2
- package/package.json +10 -10
- package/template-icons/fitness-gym.png +0 -0
- package/template-icons/personal-fitness-trainer.png +0 -0
- package/templates/beauty-salon/config.ts +12 -0
- package/templates/beauty-salon/dev/index.ts +1 -1
- package/templates/beauty-salon/l10n/en.json +1 -1
- package/templates/beauty-salon/tier5-src/_shared/booking-session.ts +3 -1
- package/templates/beauty-salon/tier5-src/_shared/business-chat-transport.ts +148 -0
- package/templates/beauty-salon/tier5-src/_shared/header-badges.ts +113 -0
- package/templates/beauty-salon/tier5-src/_shared/location-pin.ts +97 -0
- package/templates/beauty-salon/tier5-src/_shared/member-access.ts +17 -6
- package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/beauty-salon/tier5-src/_shared/source-badges.ts +72 -0
- package/templates/beauty-salon/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
- package/templates/beauty-salon/tier5-src/himi-branded-lite-nav/index.ts +152 -0
- package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/beauty-salon/tier5-src/wix-spaces-view-profile/index.ts +68 -55
- package/templates/branded-lite/config.ts +12 -0
- package/templates/branded-lite/dev/index.ts +101 -1
- package/templates/branded-lite/l10n/en.json +22 -1
- package/templates/branded-lite/l10n/es.json +22 -0
- package/templates/branded-lite/l10n/fr.json +23 -0
- package/templates/branded-lite/l10n/he.json +19 -0
- package/templates/branded-lite/tier5-src/_shared/booking-session.ts +3 -1
- package/templates/branded-lite/tier5-src/_shared/location-pin.ts +97 -0
- package/templates/branded-lite/tier5-src/_shared/member-access.ts +17 -6
- package/templates/branded-lite/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/branded-lite/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/branded-lite/tier5-src/himi-branded-lite-access-nav/index.ts +10 -5
- package/templates/branded-lite/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
- package/templates/branded-lite/tier5-src/himi-branded-lite-nav/index.ts +152 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-podcasts/index.ts +14 -234
- package/templates/branded-lite/tier5-src/himi-branded-lite-video/index.ts +12 -1
- package/templates/branded-lite/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/branded-lite/tier5-src/wix-spaces-view-profile/index.ts +68 -55
- package/templates/brandy/README.md +33 -0
- package/templates/brandy/config.ts +51 -7
- package/templates/brandy/dev/index.ts +23 -9
- package/templates/community-club/l10n/en.json +1 -1
- package/templates/community-club/tier5-src/_shared/member-access.ts +17 -6
- package/templates/community-club/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/community-club/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/community-club/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/community-club/tier5-src/wix-spaces-view-profile/index.ts +68 -55
- package/templates/conference/tier5-src/_shared/member-access.ts +17 -6
- package/templates/conference/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/events-meetups/l10n/en.json +1 -1
- package/templates/events-meetups/tier5-src/_shared/member-access.ts +17 -6
- package/templates/events-meetups/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/events-meetups/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/events-meetups/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/events-meetups/tier5-src/wix-spaces-view-profile/index.ts +68 -55
- package/templates/fitness-gym/README.md +53 -0
- package/templates/fitness-gym/config.ts +560 -0
- package/templates/fitness-gym/dev/index.ts +25787 -0
- package/templates/fitness-gym/himalaya.content.json +64 -0
- package/templates/fitness-gym/himalaya.template.json +15 -0
- package/templates/fitness-gym/icon.png +0 -0
- package/templates/fitness-gym/platforms.json +1 -0
- package/templates/fitness-gym/tier5-src/_shared/app-locale.ts +61 -0
- package/templates/fitness-gym/tier5-src/_shared/booking-location.ts +147 -0
- package/templates/fitness-gym/tier5-src/_shared/booking-session.ts +224 -0
- package/templates/fitness-gym/tier5-src/_shared/branded-lite-hosted.ts +280 -0
- package/templates/fitness-gym/tier5-src/_shared/branded-load-state.ts +109 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-copy.ts +40 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-history.ts +51 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-message-model.ts +177 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-model.ts +56 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-presenter.ts +576 -0
- package/templates/fitness-gym/tier5-src/_shared/business-chat-transport.ts +148 -0
- package/templates/fitness-gym/tier5-src/_shared/collection-contract.ts +228 -0
- package/templates/fitness-gym/tier5-src/_shared/collection-query.ts +193 -0
- package/templates/fitness-gym/tier5-src/_shared/collection-service.ts +400 -0
- package/templates/fitness-gym/tier5-src/_shared/detail-presence.ts +51 -0
- package/templates/fitness-gym/tier5-src/_shared/engine-intl.ts +523 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-account.ts +194 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-booking-saved.ts +88 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-bookings.ts +318 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-copy.ts +116 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-media.ts +29 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-store.ts +7 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-text.ts +24 -0
- package/templates/fitness-gym/tier5-src/_shared/host-events.ts +66 -0
- package/templates/fitness-gym/tier5-src/_shared/hosted-checkout.ts +70 -0
- package/templates/fitness-gym/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/fitness-gym/tier5-src/_shared/iap-attendance-purchase.ts +216 -0
- package/templates/fitness-gym/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/fitness-gym/tier5-src/_shared/iap-worker.ts +127 -0
- package/templates/fitness-gym/tier5-src/_shared/inbox-rooms.ts +68 -0
- package/templates/fitness-gym/tier5-src/_shared/local-preferences.ts +38 -0
- package/templates/fitness-gym/tier5-src/_shared/member-access.ts +63 -0
- package/templates/fitness-gym/tier5-src/_shared/member-account-routes.ts +52 -0
- package/templates/fitness-gym/tier5-src/_shared/member-bookings.ts +107 -0
- package/templates/fitness-gym/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/fitness-gym/tier5-src/_shared/notification-target.ts +141 -0
- package/templates/fitness-gym/tier5-src/_shared/offset-page.ts +10 -0
- package/templates/fitness-gym/tier5-src/_shared/online-actions.ts +76 -0
- package/templates/fitness-gym/tier5-src/_shared/owner-load-error.ts +348 -0
- package/templates/fitness-gym/tier5-src/_shared/payment-setup.ts +6 -0
- package/templates/fitness-gym/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/fitness-gym/tier5-src/_shared/program-description.ts +11 -0
- package/templates/fitness-gym/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/fitness-gym/tier5-src/_shared/program-standing.ts +46 -0
- package/templates/fitness-gym/tier5-src/_shared/rich-body.ts +78 -0
- package/templates/fitness-gym/tier5-src/_shared/rich-content-link.ts +34 -0
- package/templates/fitness-gym/tier5-src/_shared/sign-in-sheet.ts +18 -0
- package/templates/fitness-gym/tier5-src/_shared/staff-name.ts +18 -0
- package/templates/fitness-gym/tier5-src/_shared/weekly-goal.ts +107 -0
- package/templates/fitness-gym/tier5-src/_shared/wix-bi.ts +85 -0
- package/templates/fitness-gym/tier5-src/_shared/wix-member-links.ts +114 -0
- package/templates/fitness-gym/tier5-src/_shared/wix-service-price.ts +146 -0
- package/templates/fitness-gym/tier5-src/business-chat/index.ts +732 -0
- package/templates/fitness-gym/tier5-src/business-contact/index.ts +6 -0
- package/templates/fitness-gym/tier5-src/himi-booking-account/index.ts +267 -0
- package/templates/fitness-gym/tier5-src/himi-booking-bookings/index.ts +468 -0
- package/templates/fitness-gym/tier5-src/himi-booking-service/index.ts +1190 -0
- package/templates/fitness-gym/tier5-src/himi-booking-services/index.ts +791 -0
- package/templates/fitness-gym/tier5-src/himi-booking-time/index.ts +1729 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-agenda/index.ts +988 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-member-programs/index.ts +656 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-notifications/index.ts +256 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-plans/index.ts +495 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-program/facts.ts +52 -0
- package/templates/fitness-gym/tier5-src/himi-branded-lite-program/index.ts +845 -0
- package/templates/fitness-gym/tier5-src/himi-fitcoach-goal/index.ts +191 -0
- package/templates/fitness-gym/tier5-src/himi-fitcoach-home/index.ts +619 -0
- package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +1007 -0
- package/templates/fitness-gym/tier5-src/wix-spaces-my-subscriptions/index.ts +84 -0
- package/templates/fitness-gym/tier5-src/wix-spaces-subscription-detail/index.ts +139 -0
- package/templates/fitness-gym/tokens.json +414 -0
- package/templates/gym-fitness/config.ts +12 -0
- package/templates/gym-fitness/dev/index.ts +1 -1
- package/templates/gym-fitness/l10n/en.json +1 -1
- package/templates/gym-fitness/tier5-src/_shared/booking-session.ts +3 -1
- package/templates/gym-fitness/tier5-src/_shared/business-chat-transport.ts +148 -0
- package/templates/gym-fitness/tier5-src/_shared/header-badges.ts +113 -0
- package/templates/gym-fitness/tier5-src/_shared/location-pin.ts +97 -0
- package/templates/gym-fitness/tier5-src/_shared/member-access.ts +17 -6
- package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/gym-fitness/tier5-src/_shared/source-badges.ts +72 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
- package/templates/gym-fitness/tier5-src/himi-branded-lite-nav/index.ts +152 -0
- package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/gym-fitness/tier5-src/wix-spaces-view-profile/index.ts +68 -55
- package/templates/medical-services/dev/index.ts +2 -1
- package/templates/medical-services/tier5-src/_shared/booking-session.ts +3 -1
- package/templates/medical-services/tier5-src/_shared/member-access.ts +17 -6
- package/templates/medical-services/tier5-src/himi-booking-account/index.ts +16 -1
- package/templates/medical-services/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/nonprofit-cause/l10n/en.json +1 -1
- package/templates/nonprofit-cause/tier5-src/_shared/member-access.ts +17 -6
- package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/nonprofit-cause/tier5-src/wix-spaces-view-profile/index.ts +68 -55
- package/templates/personal-fitness-trainer/README.md +51 -0
- package/templates/personal-fitness-trainer/config.ts +343 -0
- package/templates/personal-fitness-trainer/dev/index.ts +24813 -0
- package/templates/personal-fitness-trainer/himalaya.content.json +79 -0
- package/templates/personal-fitness-trainer/himalaya.template.json +14 -0
- package/templates/personal-fitness-trainer/icon.png +0 -0
- package/templates/personal-fitness-trainer/platforms.json +3 -0
- package/templates/personal-fitness-trainer/splash.json +3 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/app-locale.ts +61 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/booking-location.ts +147 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/booking-session.ts +224 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/branded-lite-hosted.ts +280 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/branded-load-state.ts +109 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-copy.ts +40 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-history.ts +51 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-message-model.ts +177 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-model.ts +56 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-presenter.ts +576 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-transport.ts +148 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/collection-contract.ts +228 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/collection-query.ts +193 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/collection-service.ts +400 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/detail-presence.ts +51 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/empty-flags.ts +33 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/engine-intl.ts +523 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/himi-account.ts +194 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/himi-booking-saved.ts +88 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/himi-bookings.ts +318 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/himi-copy.ts +116 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/himi-layouts.ts +142 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/himi-store.ts +7 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/himi-text.ts +24 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/host-events.ts +66 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/hosted-checkout.ts +70 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/iap-attendance-form.ts +106 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/iap-attendance-purchase.ts +216 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/iap-attendance.ts +38 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/iap-worker.ts +127 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/inbox-rooms.ts +68 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/local-preferences.ts +38 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/member-access.ts +63 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/member-account-routes.ts +52 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/member-bookings.ts +107 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/offset-page.ts +10 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/online-actions.ts +76 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/owner-load-error.ts +348 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/payment-setup.ts +6 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/rich-body.ts +78 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/rich-content-link.ts +34 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/sign-in-sheet.ts +18 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/staff-name.ts +18 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/video-caption.ts +21 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/weekly-goal.ts +107 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/wix-bi.ts +85 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/wix-service-price.ts +146 -0
- package/templates/personal-fitness-trainer/tier5-src/business-chat/index.ts +732 -0
- package/templates/personal-fitness-trainer/tier5-src/business-contact/index.ts +6 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-booking-bookings/index.ts +468 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-booking-service/index.ts +1190 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-booking-services/index.ts +791 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-booking-time/index.ts +1729 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-account-settings/blocked-members.ts +242 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-account-settings/index.ts +1094 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-agenda/index.ts +988 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-appearance/index.ts +94 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-notifsettings/index.ts +173 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-plans/index.ts +495 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-splash/index.ts +35 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-video/index.ts +226 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-branded-lite-videos/index.ts +145 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-fitness-trainer-home/index.ts +70 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-fitness-trainer-profile/index.ts +53 -0
- package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +1007 -0
- package/templates/personal-fitness-trainer/tier5-src/wix-spaces-app-language/index.ts +73 -0
- package/templates/personal-fitness-trainer/tier5-src/wix-spaces-delete-account/index.ts +59 -0
- package/templates/personal-fitness-trainer/tier5-src/wix-spaces-my-subscriptions/index.ts +84 -0
- package/templates/personal-fitness-trainer/tier5-src/wix-spaces-subscription-detail/index.ts +139 -0
- package/templates/personal-fitness-trainer/tier5-src/wix-spaces-view-profile/index.ts +119 -0
- package/templates/personal-fitness-trainer/tokens.json +381 -0
- package/templates/podcast-creator/dev/index.ts +100 -0
- package/templates/podcast-creator/l10n/en.json +22 -1
- package/templates/podcast-creator/l10n/es.json +22 -0
- package/templates/podcast-creator/l10n/fr.json +18 -0
- package/templates/podcast-creator/l10n/he.json +15 -0
- package/templates/podcast-creator/tier5-src/_shared/member-access.ts +17 -6
- package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/podcast-creator/tier5-src/himi-branded-lite-podcasts/index.ts +14 -234
- package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/podcast-creator/tier5-src/wix-spaces-view-profile/index.ts +68 -55
- package/templates/portfolio-creative/l10n/en.json +1 -1
- package/templates/portfolio-creative/tier5-src/_shared/member-access.ts +17 -6
- package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/portfolio-creative/tier5-src/wix-spaces-view-profile/index.ts +68 -55
- package/templates/restaurant/l10n/en.json +1 -1
- package/templates/restaurant/tier5-src/_shared/member-access.ts +17 -6
- package/templates/restaurant/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/restaurant/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/restaurant/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/restaurant/tier5-src/wix-spaces-view-profile/index.ts +68 -55
- package/templates/retail-store/l10n/en.json +1 -1
- package/templates/retail-store/tier5-src/_shared/member-access.ts +17 -6
- package/templates/retail-store/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/retail-store/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/retail-store/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/retail-store/tier5-src/wix-spaces-view-profile/index.ts +68 -55
- package/templates/salon-spa/dev/index.ts +1 -1
- package/templates/salon-spa/tier5-src/_shared/booking-session.ts +3 -1
- package/templates/salon-spa/tier5-src/_shared/member-access.ts +17 -6
- package/templates/salon-spa/tier5-src/himi-booking-account/index.ts +16 -1
- package/templates/salon-spa/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
- package/templates/salon-spa/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/wholesale-store/tier5-src/_shared/member-access.ts +17 -6
- package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/yoga-studio/config.ts +12 -0
- package/templates/yoga-studio/dev/index.ts +1 -1
- package/templates/yoga-studio/l10n/en.json +1 -1
- package/templates/yoga-studio/tier5-src/_shared/booking-session.ts +3 -1
- package/templates/yoga-studio/tier5-src/_shared/business-chat-transport.ts +148 -0
- package/templates/yoga-studio/tier5-src/_shared/header-badges.ts +113 -0
- package/templates/yoga-studio/tier5-src/_shared/location-pin.ts +97 -0
- package/templates/yoga-studio/tier5-src/_shared/member-access.ts +17 -6
- package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +16 -0
- package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +5 -8
- package/templates/yoga-studio/tier5-src/_shared/source-badges.ts +72 -0
- package/templates/yoga-studio/tier5-src/himi-branded-lite-agenda/index.ts +37 -4
- package/templates/yoga-studio/tier5-src/himi-branded-lite-nav/index.ts +152 -0
- package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +13 -4
- package/templates/yoga-studio/tier5-src/wix-spaces-view-profile/index.ts +68 -55
|
@@ -565,6 +565,9 @@ interface S extends IapRestoreFields {
|
|
|
565
565
|
lastNameFocus: string;
|
|
566
566
|
emailFocus: string;
|
|
567
567
|
message: string;
|
|
568
|
+
hideMessage: boolean;
|
|
569
|
+
messageKind: "error" | "success";
|
|
570
|
+
resetSent: boolean;
|
|
568
571
|
isLoading: boolean;
|
|
569
572
|
notLoading: boolean;
|
|
570
573
|
isRegistering: boolean;
|
|
@@ -640,6 +643,9 @@ function derive(s: S): S {
|
|
|
640
643
|
const name = s.isMember ? greetingName(s.memberName) : "";
|
|
641
644
|
return {
|
|
642
645
|
...s,
|
|
646
|
+
hideMessage: !s.message,
|
|
647
|
+
messageKind: s.resetSent ? "success" : "error",
|
|
648
|
+
resetSent: !!s.message && !!s.resetSent,
|
|
643
649
|
greeting: name
|
|
644
650
|
? copyTemplate("storeAccount.greetingMember", "Hey, {name}", { name })
|
|
645
651
|
: copyParam("storeAccount.greetingGuest", "Hey, guest"),
|
|
@@ -815,7 +821,7 @@ const svc = defineService<S, {
|
|
|
815
821
|
restorePublish: (s: S) => S;
|
|
816
822
|
iapRestore: (s: S) => Promise<undefined>;
|
|
817
823
|
}>("himiStoreAccount", {
|
|
818
|
-
notHydrated: ["password", "authBusy", "emailError", "passwordError", "passwordFocus", "lastNameFocus", "emailFocus", ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, ...IAP_RESTORE_KEYS],
|
|
824
|
+
notHydrated: ["message", "hideMessage", "messageKind", "resetSent", "password", "authBusy", "emailError", "passwordError", "passwordFocus", "lastNameFocus", "emailFocus", ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, ...IAP_RESTORE_KEYS],
|
|
819
825
|
state: derive({
|
|
820
826
|
status: "loading",
|
|
821
827
|
isMember: false,
|
|
@@ -846,6 +852,9 @@ const svc = defineService<S, {
|
|
|
846
852
|
lastNameFocus: "",
|
|
847
853
|
emailFocus: "",
|
|
848
854
|
message: "",
|
|
855
|
+
hideMessage: true,
|
|
856
|
+
messageKind: "error",
|
|
857
|
+
resetSent: false,
|
|
849
858
|
isLoading: true,
|
|
850
859
|
notLoading: false,
|
|
851
860
|
// The form's first paint is already on its route's mode: only sign-in's route has `mode`.
|
|
@@ -942,10 +951,10 @@ const svc = defineService<S, {
|
|
|
942
951
|
rejectResult(raw, "reset");
|
|
943
952
|
if (revision !== editRevision) return derive({ ...svc.getState(), authBusy: false });
|
|
944
953
|
return derive({ ...svc.getState(), authBusy: false, isRecovering: false,
|
|
945
|
-
message: copyParam("storeAccount.resetSent", "If that email is registered, a reset link is on its way.") });
|
|
954
|
+
resetSent: true, message: copyParam("storeAccount.resetSent", "If that email is registered, a reset link is on its way.") });
|
|
946
955
|
} catch (error) {
|
|
947
956
|
return derive({ ...svc.getState(), authBusy: false,
|
|
948
|
-
message: revision === editRevision ? authFailure(error, "reset", translated).reason : "" });
|
|
957
|
+
resetSent: false, message: revision === editRevision ? authFailure(error, "reset", translated).reason : "" });
|
|
949
958
|
} finally { authInFlight = false; }
|
|
950
959
|
},
|
|
951
960
|
signIn: (s) => authenticate(s, "signIn"),
|
|
@@ -991,7 +1000,7 @@ const svc = defineService<S, {
|
|
|
991
1000
|
},
|
|
992
1001
|
});
|
|
993
1002
|
|
|
994
|
-
resetUnhydratedKeysOnOlderRuntime(svc, derive({ ...svc.getState(), ...NO_IAP_RESTORE, ...NO_VISIT, ...NO_FOCUS_ALL, passwordFocus: "", isRegistering: ROUTE_ASKS_REGISTER }), [...IAP_RESTORE_KEYS, ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, "lastNameFocus", "emailFocus", "passwordFocus"]);
|
|
1003
|
+
resetUnhydratedKeysOnOlderRuntime(svc, derive({ ...svc.getState(), ...NO_IAP_RESTORE, ...NO_VISIT, ...NO_FOCUS_ALL, message: "", resetSent: false, passwordFocus: "", isRegistering: ROUTE_ASKS_REGISTER }), ["message", "hideMessage", "messageKind", "resetSent", ...IAP_RESTORE_KEYS, ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, "lastNameFocus", "emailFocus", "passwordFocus"]);
|
|
995
1004
|
// `boot` tells settle this is not a visit: the host drops this call's navigation, and the
|
|
996
1005
|
// appear refresh does the visit's moves.
|
|
997
1006
|
svc.load({ boot: "1" });
|
|
@@ -11,7 +11,7 @@ import { getMyData, displayName } from "@himalaya/wix-users";
|
|
|
11
11
|
// `load` has resolved a member, so a guest never glimpses the placeholder avatar while
|
|
12
12
|
// the membership check is still running; `hideLoading` is false for exactly that moment,
|
|
13
13
|
// so the screen shows a loading line instead of going blank.
|
|
14
|
-
interface S { status: "loading" | "ready"; name: string; handle: string; about: string; initial: string; photo: string; needsSignIn: boolean; noSignIn: boolean; profileHidden: boolean; hideLoading: boolean }
|
|
14
|
+
interface S { status: "loading" | "ready"; name: string; handle: string; about: string; initial: string; photo: string; needsSignIn: boolean; noSignIn: boolean; profileHidden: boolean; hideLoading: boolean; hideError: boolean; hideAbout: boolean }
|
|
15
15
|
|
|
16
16
|
const EMPTY: S = {
|
|
17
17
|
status: "loading",
|
|
@@ -24,6 +24,8 @@ const EMPTY: S = {
|
|
|
24
24
|
noSignIn: true,
|
|
25
25
|
profileHidden: true,
|
|
26
26
|
hideLoading: false,
|
|
27
|
+
hideError: true,
|
|
28
|
+
hideAbout: false,
|
|
27
29
|
};
|
|
28
30
|
|
|
29
31
|
// The SAME member check create-post and orders use (`memberAccess`: the host's
|
|
@@ -41,66 +43,77 @@ function fromParts(name: string, handleRaw: string, about: string, photo = ""):
|
|
|
41
43
|
const clean = name.trim();
|
|
42
44
|
const handle = "@" + (handleRaw || clean || "member").replace(/\s+/g, "").replace(/^@+/, "").toLowerCase();
|
|
43
45
|
const initial = (clean.split(/\s+/).filter(Boolean).map((w) => w[0]).join("").slice(0, 2) || "?").toUpperCase();
|
|
44
|
-
return { status: "ready", name: clean || "Member", handle, about: about || "No info to display.", initial, photo, needsSignIn: false, noSignIn: true, profileHidden: false, hideLoading: true };
|
|
46
|
+
return { status: "ready", name: clean || "Member", handle, about: about || "No info to display.", initial, photo, needsSignIn: false, noSignIn: true, profileHidden: false, hideLoading: true, hideError: true, hideAbout: false };
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
|
|
49
|
+
async function readProfile(): Promise<S> {
|
|
50
|
+
const email = await sessionEmail();
|
|
51
|
+
if (!email) {
|
|
52
|
+
return {
|
|
53
|
+
status: "ready",
|
|
54
|
+
// Kept for hosts without the shared member gate (the Spaces clone renders these
|
|
55
|
+
// fields directly); branded-lite hides the profile block behind `profileHidden`.
|
|
56
|
+
name: "Sign in to view your profile",
|
|
57
|
+
handle: "",
|
|
58
|
+
about: "Your public profile is available after you sign in from Account.",
|
|
59
|
+
initial: "?",
|
|
60
|
+
photo: "",
|
|
61
|
+
needsSignIn: true,
|
|
62
|
+
noSignIn: false,
|
|
63
|
+
profileHidden: true,
|
|
64
|
+
hideLoading: true,
|
|
65
|
+
hideError: true,
|
|
66
|
+
hideAbout: false,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
try {
|
|
70
|
+
const api = wixApi();
|
|
71
|
+
if (api) {
|
|
72
|
+
const res = (await api.call("GET", "/members/v1/members/my?fieldSet=FULL")) as {
|
|
73
|
+
member?: {
|
|
74
|
+
loginEmail?: string;
|
|
75
|
+
contact?: { firstName?: string; lastName?: string };
|
|
76
|
+
profile?: { nickname?: string; slug?: string; title?: string; photo?: { url?: string } };
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
const m = res.member;
|
|
80
|
+
if (m) {
|
|
81
|
+
const nick = m.profile?.nickname?.trim() || "";
|
|
82
|
+
const full = [m.contact?.firstName, m.contact?.lastName].filter(Boolean).join(" ").trim();
|
|
83
|
+
const name = full || nick || m.loginEmail || email;
|
|
84
|
+
const slug = m.profile?.slug || nick || name;
|
|
85
|
+
const about = m.profile?.title || "No info to display.";
|
|
86
|
+
return fromParts(name, slug, about, m.profile?.photo?.url || "");
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
} catch { /* fall through to users my-data / email */ }
|
|
90
|
+
try {
|
|
91
|
+
const d = await getMyData();
|
|
92
|
+
const name = displayName(d) || email;
|
|
93
|
+
const dd = d as unknown as { nickname?: string; slug?: string; about?: string; aboutPlain?: string; profile?: { photo?: { url?: string } }; photo?: { url?: string } };
|
|
94
|
+
return fromParts(
|
|
95
|
+
name,
|
|
96
|
+
dd.slug || dd.nickname || name,
|
|
97
|
+
dd.aboutPlain || dd.about || "No info to display.",
|
|
98
|
+
dd.profile?.photo?.url || dd.photo?.url || "",
|
|
99
|
+
);
|
|
100
|
+
} catch {
|
|
101
|
+
// Session identity is still known; missing profile data is not an empty biography.
|
|
102
|
+
return { ...fromParts(email, email.split("@")[0] || email, ""), about: "Profile details could not be loaded. Please try again.", hideError: false, hideAbout: true };
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
let generation = 0;
|
|
106
|
+
const svc = defineService<S, { load: (s: S) => Promise<S | undefined> }>("spacesViewProfile", {
|
|
48
107
|
state: { ...EMPTY },
|
|
108
|
+
notHydrated: Object.keys(EMPTY) as (keyof S & string)[],
|
|
49
109
|
actions: {
|
|
50
110
|
load: async () => {
|
|
51
|
-
const
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
status: "ready",
|
|
55
|
-
// Kept for hosts without the shared member gate (the Spaces clone renders these
|
|
56
|
-
// fields directly); branded-lite hides the profile block behind `profileHidden`.
|
|
57
|
-
name: "Sign in to view your profile",
|
|
58
|
-
handle: "",
|
|
59
|
-
about: "Your public profile is available after you sign in from Account.",
|
|
60
|
-
initial: "?",
|
|
61
|
-
photo: "",
|
|
62
|
-
needsSignIn: true,
|
|
63
|
-
noSignIn: false,
|
|
64
|
-
profileHidden: true,
|
|
65
|
-
hideLoading: true,
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
try {
|
|
69
|
-
const api = wixApi();
|
|
70
|
-
if (api) {
|
|
71
|
-
const res = (await api.call("GET", "/members/v1/members/my?fieldSet=FULL")) as {
|
|
72
|
-
member?: {
|
|
73
|
-
loginEmail?: string;
|
|
74
|
-
contact?: { firstName?: string; lastName?: string };
|
|
75
|
-
profile?: { nickname?: string; slug?: string; title?: string; photo?: { url?: string } };
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
const m = res.member;
|
|
79
|
-
if (m) {
|
|
80
|
-
const nick = m.profile?.nickname?.trim() || "";
|
|
81
|
-
const full = [m.contact?.firstName, m.contact?.lastName].filter(Boolean).join(" ").trim();
|
|
82
|
-
const name = full || nick || m.loginEmail || email;
|
|
83
|
-
const slug = m.profile?.slug || nick || name;
|
|
84
|
-
const about = m.profile?.title || "No info to display.";
|
|
85
|
-
return fromParts(name, slug, about, m.profile?.photo?.url || "");
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
} catch { /* fall through to users my-data / email */ }
|
|
89
|
-
try {
|
|
90
|
-
const d = await getMyData();
|
|
91
|
-
const name = displayName(d) || email;
|
|
92
|
-
const dd = d as unknown as { nickname?: string; slug?: string; about?: string; aboutPlain?: string; profile?: { photo?: { url?: string } }; photo?: { url?: string } };
|
|
93
|
-
return fromParts(
|
|
94
|
-
name,
|
|
95
|
-
dd.slug || dd.nickname || name,
|
|
96
|
-
dd.aboutPlain || dd.about || "No info to display.",
|
|
97
|
-
dd.profile?.photo?.url || dd.photo?.url || "",
|
|
98
|
-
);
|
|
99
|
-
} catch {
|
|
100
|
-
return fromParts(email, email.split("@")[0] || email, "No info to display.");
|
|
101
|
-
}
|
|
111
|
+
const request = ++generation;
|
|
112
|
+
const next = await readProfile();
|
|
113
|
+
return request === generation ? next : undefined;
|
|
102
114
|
},
|
|
103
115
|
},
|
|
104
116
|
});
|
|
105
|
-
svc.
|
|
117
|
+
if (!(globalThis as { himalaya?: { hydrationOptOut?: boolean } }).himalaya?.hydrationOptOut) Object.assign(svc.getState(), EMPTY);
|
|
118
|
+
void svc.load();
|
|
106
119
|
export { svc };
|
|
@@ -190,7 +190,9 @@ export async function placesIn(start: string, end: string, inWindow: Session[],
|
|
|
190
190
|
// Every page, not the first 100: a booking past it would read Book again. Bounded.
|
|
191
191
|
const bookings: WixBooking[] = [];
|
|
192
192
|
for (let page = 0; page < 5; page++) {
|
|
193
|
-
|
|
193
|
+
// Bookings v2 rejects two comparisons in one field expression (INVALID_FILTER).
|
|
194
|
+
// Keep the half-open window as independent AND clauses, with the same member scope.
|
|
195
|
+
const res = await queryBookings({ query: { filter: { "contactDetails.email": { $eq: who.email }, $and: [{ startDate: { $gte: from } }, { startDate: { $lt: to } }] }, paging: { limit: 100, offset: page * 100 } } } as never);
|
|
194
196
|
const batch = res.bookings ?? [];
|
|
195
197
|
bookings.push(...batch);
|
|
196
198
|
if (batch.length < 100) break;
|
|
@@ -1,33 +1,44 @@
|
|
|
1
1
|
import { dispatch } from "@himalaya/dispatch";
|
|
2
2
|
import { getMyData } from "@himalaya/wix-users";
|
|
3
3
|
|
|
4
|
-
export interface MemberAccess { email: string; scope: string; }
|
|
4
|
+
export interface MemberAccess { email: string; scope: string; signedIn?: boolean; }
|
|
5
5
|
export function memberAccessChanged(): Error {
|
|
6
6
|
const error = new Error("Member access changed"); error.name = "MemberAccessChanged"; return error;
|
|
7
7
|
}
|
|
8
|
-
export async function memberAccess(): Promise<MemberAccess> {
|
|
8
|
+
export async function memberAccess(options: { throwOnUnavailable?: boolean } = {}): Promise<MemberAccess> {
|
|
9
9
|
let email = "";
|
|
10
|
+
let signedIn = false;
|
|
10
11
|
let identityUnavailable = false;
|
|
11
12
|
try {
|
|
12
|
-
const value = await dispatch("himi.wix.memberIdentity") as { email?: unknown; payload?: { email?: unknown } } | null;
|
|
13
|
+
const value = await dispatch("himi.wix.memberIdentity") as { status?: unknown; ok?: unknown; email?: unknown; signedIn?: unknown; payload?: { email?: unknown; signedIn?: unknown } } | null;
|
|
14
|
+
if (value?.status === "error" || value?.ok === false) throw value;
|
|
13
15
|
const raw = value?.email ?? value?.payload?.email;
|
|
14
16
|
email = typeof raw === "string" ? raw.trim().toLowerCase() : "";
|
|
17
|
+
signedIn = (value?.signedIn ?? value?.payload?.signedIn) === true;
|
|
15
18
|
} catch { identityUnavailable = true; }
|
|
16
19
|
// Older native hosts predate the memberIdentity action but can still expose
|
|
17
20
|
// the authenticated profile through wix-users. Only a missing action uses
|
|
18
|
-
// that rung
|
|
21
|
+
// that rung. A successful host response is authoritative, including a signed-in
|
|
22
|
+
// session whose email has not arrived yet; it must not consult owner records.
|
|
19
23
|
if (!email && identityUnavailable) {
|
|
20
24
|
try {
|
|
21
25
|
const profile = await getMyData();
|
|
22
26
|
const raw = profile.email ?? profile.contactEmail;
|
|
23
27
|
email = typeof raw === "string" ? raw.trim().toLowerCase() : "";
|
|
24
|
-
} catch {
|
|
28
|
+
} catch (error) {
|
|
29
|
+
const failure = error as { status?: unknown; statusCode?: unknown; code?: unknown } | null;
|
|
30
|
+
const anonymous = failure?.status === 401 || failure?.statusCode === 401 || failure?.code === "UNAUTHENTICATED";
|
|
31
|
+
// Legacy bridges can lose the structured status. An unknown failure is
|
|
32
|
+
// unavailable in strict consumers, never evidence of a signed-out session.
|
|
33
|
+
if (options.throwOnUnavailable && !anonymous) throw error;
|
|
34
|
+
}
|
|
25
35
|
}
|
|
26
36
|
const input = (globalThis as { himalaya?: { input?: Record<string, unknown> } }).himalaya?.input;
|
|
27
37
|
const account = input?.__himiPreferenceAccount, business = input?.__himiPreferenceBusiness;
|
|
28
38
|
const valid = (v: unknown): v is string => typeof v === "string" && /^[A-Za-z0-9_.:-]{1,128}$/.test(v) && v !== "default";
|
|
29
39
|
// These fields are overwritten by authenticated hosts. Older binaries stay online-only.
|
|
30
|
-
|
|
40
|
+
// A session signal does not grant an email-scoped cache or private query.
|
|
41
|
+
return { email, signedIn: signedIn || Boolean(email), scope: email && valid(account) && valid(business) ? JSON.stringify([account, business, email]) : "" };
|
|
31
42
|
}
|
|
32
43
|
export async function assertMemberAccess(member: MemberAccess): Promise<void> {
|
|
33
44
|
const current = await memberAccess();
|
|
@@ -39,6 +39,10 @@ interface S {
|
|
|
39
39
|
noActivity: boolean;
|
|
40
40
|
servicesScreenId: string;
|
|
41
41
|
bookingsScreenId: string;
|
|
42
|
+
/** Sign out asks first on a screen that binds the confirm step (askSignOut → signOut, or
|
|
43
|
+
* cancelSignOut). A screen that calls signOut directly signs out at once, as before. */
|
|
44
|
+
confirmingSignOut?: boolean;
|
|
45
|
+
notConfirmingSignOut?: boolean;
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
function derive(s: S): S {
|
|
@@ -46,6 +50,8 @@ function derive(s: S): S {
|
|
|
46
50
|
const hasActivity = s.activityRows.length > 0;
|
|
47
51
|
return {
|
|
48
52
|
...s,
|
|
53
|
+
confirmingSignOut: !!s.confirmingSignOut && s.isMember,
|
|
54
|
+
notConfirmingSignOut: !(s.confirmingSignOut && s.isMember),
|
|
49
55
|
isLoading: s.status === "loading",
|
|
50
56
|
notLoading: s.status !== "loading",
|
|
51
57
|
notMember: !s.isMember,
|
|
@@ -167,8 +173,14 @@ const svc = defineService<S, {
|
|
|
167
173
|
signIn: (s: S) => Promise<S>;
|
|
168
174
|
register: (s: S) => Promise<S>;
|
|
169
175
|
signOut: (s: S) => Promise<S>;
|
|
176
|
+
askSignOut: (s: S) => S;
|
|
177
|
+
cancelSignOut: (s: S) => S;
|
|
170
178
|
openForMember: (s: S, arg?: unknown) => Promise<S>;
|
|
171
179
|
}>("himiBookingAccount", {
|
|
180
|
+
// An open sign-out confirm is this run's: a cold start never re-opens the dialog, and the flag
|
|
181
|
+
// is never written to the device.
|
|
182
|
+
notHydrated: ["confirmingSignOut", "notConfirmingSignOut"],
|
|
183
|
+
notPersisted: ["confirmingSignOut", "notConfirmingSignOut"],
|
|
172
184
|
state: derive({
|
|
173
185
|
status: "loading",
|
|
174
186
|
isMember: false,
|
|
@@ -244,8 +256,11 @@ const svc = defineService<S, {
|
|
|
244
256
|
},
|
|
245
257
|
signOut: async (s) => {
|
|
246
258
|
try { await dispatch("himi.wix.signOut"); } catch { /* ignore */ }
|
|
247
|
-
return probe({ ...s, isMember: false, isRegistering: false, message: "" });
|
|
259
|
+
return probe({ ...s, isMember: false, isRegistering: false, message: "", confirmingSignOut: false });
|
|
248
260
|
},
|
|
261
|
+
// The confirm step before a sign-out (a destructive action always confirms).
|
|
262
|
+
askSignOut: (s) => derive({ ...s, confirmingSignOut: true }),
|
|
263
|
+
cancelSignOut: (s) => derive({ ...s, confirmingSignOut: false }),
|
|
249
264
|
},
|
|
250
265
|
});
|
|
251
266
|
svc.load();
|
|
@@ -126,6 +126,14 @@ interface S extends LoadFlags {
|
|
|
126
126
|
/** A location is chosen and has no session in the loaded days: its own empty state. */
|
|
127
127
|
locationEmpty: boolean;
|
|
128
128
|
notLocationEmpty: boolean;
|
|
129
|
+
/** The optional "All · Booked" filter, for an app that asks for it (`load` param `filters: "1"`):
|
|
130
|
+
* "booked" lists only the member's own sessions (booked or on the waitlist). Off by default, so
|
|
131
|
+
* an app that does not bind it lists every session, as before. */
|
|
132
|
+
filter?: "all" | "booked";
|
|
133
|
+
hideFilter?: boolean;
|
|
134
|
+
/** The booked filter is on and the member has no session in the loaded days. */
|
|
135
|
+
bookedEmpty?: boolean;
|
|
136
|
+
notBookedEmpty?: boolean;
|
|
129
137
|
}
|
|
130
138
|
|
|
131
139
|
const flag = (on: boolean): string => (on ? "true" : "");
|
|
@@ -300,6 +308,10 @@ let quietUntil = 0;
|
|
|
300
308
|
* it. Cleared by the list's own scroll and a calendar tap, whose plain day the renderer compares
|
|
301
309
|
* with what it reported (an echo of the member's own scroll never moves the list). */
|
|
302
310
|
let scrollNonce = 0;
|
|
311
|
+
/** The "All · Booked" filter: offered when the screen's load asks for it, and the member's choice. */
|
|
312
|
+
let filtersOn = false;
|
|
313
|
+
/** The member the "Booked" choice was made by: another member (or a sign-out) opens on "All". */
|
|
314
|
+
let bookedFilterFor = "";
|
|
303
315
|
let busy = false;
|
|
304
316
|
/** An Add to Calendar flow is running (a permission prompt, a save, the calendar page). Its own
|
|
305
317
|
* flag, not `busy`: the session sheet must still close while it runs. */
|
|
@@ -428,14 +440,22 @@ function derive(s: S): S {
|
|
|
428
440
|
// From today on (the loaded days never start before it), at the chosen location. The list is
|
|
429
441
|
// one run of days: a tap on the calendar SCROLLS it to a day, and scrolling it moves the
|
|
430
442
|
// selection, so it never starts at the selected day (the days above it would vanish).
|
|
431
|
-
const
|
|
443
|
+
const bookedOnly = filtersOn && !!member?.email && bookedFilterFor === member.email;
|
|
444
|
+
const mine = (x: Session) => { const p = places.get(x.key)?.place; return p === "booked" || p === "waitlisted"; };
|
|
445
|
+
const shown = sessions.filter((x) => x.day >= s.today && (!locationKey || x.locationKey === locationKey) && (!bookedOnly || mine(x)));
|
|
432
446
|
const events = rowsOk === false ? [] : shown.map((x, i) => eventOf(x, places.get(x.key), shown[i + 1]?.day !== x.day));
|
|
433
447
|
const sheet = sessions.find((x) => x.key === sheetKey);
|
|
434
448
|
const sheetPlace = sheet ? places.get(sheet.key)?.place ?? "" : "";
|
|
435
449
|
const loaded = s.status === "ready" && rowsOk !== false && !!services;
|
|
436
|
-
const locationEmpty = loaded && !!locationKey && shown.length === 0;
|
|
450
|
+
const locationEmpty = loaded && !!locationKey && shown.length === 0 && !bookedOnly;
|
|
451
|
+
const bookedEmpty = loaded && bookedOnly && shown.length === 0;
|
|
437
452
|
return {
|
|
438
453
|
...s,
|
|
454
|
+
filter: bookedOnly ? "booked" : "all",
|
|
455
|
+
// A visitor has no sessions of their own: the filter shows only to a signed-in member.
|
|
456
|
+
hideFilter: !filtersOn || !member?.email,
|
|
457
|
+
bookedEmpty,
|
|
458
|
+
notBookedEmpty: !bookedEmpty,
|
|
439
459
|
...locationMenu(choices, chosenLocation.id),
|
|
440
460
|
locationSheetOpen: locationSheet,
|
|
441
461
|
locationEmpty,
|
|
@@ -449,7 +469,7 @@ function derive(s: S): S {
|
|
|
449
469
|
signedIn: !!member?.email,
|
|
450
470
|
updateRequired: rowsOk === false,
|
|
451
471
|
listHidden: s.busy === true || rowsOk === false || events.length === 0,
|
|
452
|
-
...emptyFlags(loaded && services!.length === 0, loaded && services!.length > 0 && events.length === 0 && !locationEmpty),
|
|
472
|
+
...emptyFlags(loaded && services!.length === 0, loaded && services!.length > 0 && events.length === 0 && !locationEmpty && !bookedEmpty),
|
|
453
473
|
sheetOpen: !!sheet && !!sheetPlace,
|
|
454
474
|
sheetTitle: sheet?.title ?? "",
|
|
455
475
|
sheetWhen: sheet ? joined(dayLabel(sheet.start, { absolute: true }), timeLabel(sheet.start), lengthLabel(sheet.start, sheet.end)) : "",
|
|
@@ -630,6 +650,7 @@ function initial(): S {
|
|
|
630
650
|
sheetOpen: false, sheetTitle: "", sheetWhen: "", sheetMeta: "", sheetHideCalendar: true, sheetHideCancel: true, sheetHideLeave: true, sheetBusy: false, sheetServiceId: "", sheetSessionId: "", sheetStart: "",
|
|
631
651
|
locationOptions: [], locationLabel: "", locationA11y: "", hasLocationMenu: false, noLocationMenu: true,
|
|
632
652
|
locationActive: false, noLocationActive: true, locationSheetOpen: false, locationEmpty: false, notLocationEmpty: true,
|
|
653
|
+
filter: "all", hideFilter: true, bookedEmpty: false, notBookedEmpty: true,
|
|
633
654
|
};
|
|
634
655
|
}
|
|
635
656
|
|
|
@@ -673,10 +694,13 @@ const svc = defineService<S, {
|
|
|
673
694
|
openLocations: (s: S) => S;
|
|
674
695
|
closeLocations: (s: S) => S;
|
|
675
696
|
selectLocation: (s: S, p?: unknown) => Promise<S | undefined>;
|
|
697
|
+
setFilter: (s: S, p?: unknown) => S;
|
|
676
698
|
}>("himiBrandedAgenda", {
|
|
677
699
|
// An action's result belongs to that visit: a cold start must not replay it from saved state,
|
|
678
700
|
// nor reopen the location sheet.
|
|
679
|
-
notHydrated: ["resultOpen", "resultOpenB", "resultText", "resultOk", "resultInfo", "locationSheetOpen"],
|
|
701
|
+
notHydrated: ["resultOpen", "resultOpenB", "resultText", "resultOk", "resultInfo", "locationSheetOpen", "filter", "hideFilter", "bookedEmpty", "notBookedEmpty"],
|
|
702
|
+
// The optional Booked filter is the member's choice for this run: never written to the device.
|
|
703
|
+
notPersisted: ["filter", "hideFilter", "bookedEmpty", "notBookedEmpty"],
|
|
680
704
|
state: initial(),
|
|
681
705
|
actions: {
|
|
682
706
|
load: async (s, p) => {
|
|
@@ -688,6 +712,7 @@ const svc = defineService<S, {
|
|
|
688
712
|
}
|
|
689
713
|
const signInScreen = argOf(p, "signInScreenId");
|
|
690
714
|
if (/^[a-z][a-z0-9_]{0,63}$/.test(signInScreen)) signInScreenId = signInScreen;
|
|
715
|
+
if (argOf(p, "filters") === "1") filtersOn = true;
|
|
691
716
|
const fw = Number(argOf(p, "firstWeekday") || s.firstWeekday);
|
|
692
717
|
const today = dayKey(new Date());
|
|
693
718
|
// First appearance: open on this week. A re-appearance keeps the member's place and
|
|
@@ -932,6 +957,14 @@ const svc = defineService<S, {
|
|
|
932
957
|
locationSheet = true;
|
|
933
958
|
return derive({ ...s, ...wanted });
|
|
934
959
|
},
|
|
960
|
+
// The "All · Booked" filter (a segmented control's id, or `{ id }`). A list of the member's own
|
|
961
|
+
// sessions, from the same loaded days; the calendar's dots follow it.
|
|
962
|
+
setFilter: (s, p) => {
|
|
963
|
+
const id = typeof p === "string" ? p : argOf(p, "id") || argOf(p, "value") || argOf(p, "selectedId");
|
|
964
|
+
if (id !== "all" && id !== "booked") return s;
|
|
965
|
+
bookedFilterFor = id === "booked" ? member?.email ?? "" : "";
|
|
966
|
+
return derive({ ...s, ...wanted });
|
|
967
|
+
},
|
|
935
968
|
closeLocations: (s) => {
|
|
936
969
|
if (!locationSheet) return s;
|
|
937
970
|
locationSheet = false;
|
|
@@ -565,6 +565,9 @@ interface S extends IapRestoreFields {
|
|
|
565
565
|
lastNameFocus: string;
|
|
566
566
|
emailFocus: string;
|
|
567
567
|
message: string;
|
|
568
|
+
hideMessage: boolean;
|
|
569
|
+
messageKind: "error" | "success";
|
|
570
|
+
resetSent: boolean;
|
|
568
571
|
isLoading: boolean;
|
|
569
572
|
notLoading: boolean;
|
|
570
573
|
isRegistering: boolean;
|
|
@@ -640,6 +643,9 @@ function derive(s: S): S {
|
|
|
640
643
|
const name = s.isMember ? greetingName(s.memberName) : "";
|
|
641
644
|
return {
|
|
642
645
|
...s,
|
|
646
|
+
hideMessage: !s.message,
|
|
647
|
+
messageKind: s.resetSent ? "success" : "error",
|
|
648
|
+
resetSent: !!s.message && !!s.resetSent,
|
|
643
649
|
greeting: name
|
|
644
650
|
? copyTemplate("storeAccount.greetingMember", "Hey, {name}", { name })
|
|
645
651
|
: copyParam("storeAccount.greetingGuest", "Hey, guest"),
|
|
@@ -815,7 +821,7 @@ const svc = defineService<S, {
|
|
|
815
821
|
restorePublish: (s: S) => S;
|
|
816
822
|
iapRestore: (s: S) => Promise<undefined>;
|
|
817
823
|
}>("himiStoreAccount", {
|
|
818
|
-
notHydrated: ["password", "authBusy", "emailError", "passwordError", "passwordFocus", "lastNameFocus", "emailFocus", ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, ...IAP_RESTORE_KEYS],
|
|
824
|
+
notHydrated: ["message", "hideMessage", "messageKind", "resetSent", "password", "authBusy", "emailError", "passwordError", "passwordFocus", "lastNameFocus", "emailFocus", ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, ...IAP_RESTORE_KEYS],
|
|
819
825
|
state: derive({
|
|
820
826
|
status: "loading",
|
|
821
827
|
isMember: false,
|
|
@@ -846,6 +852,9 @@ const svc = defineService<S, {
|
|
|
846
852
|
lastNameFocus: "",
|
|
847
853
|
emailFocus: "",
|
|
848
854
|
message: "",
|
|
855
|
+
hideMessage: true,
|
|
856
|
+
messageKind: "error",
|
|
857
|
+
resetSent: false,
|
|
849
858
|
isLoading: true,
|
|
850
859
|
notLoading: false,
|
|
851
860
|
// The form's first paint is already on its route's mode: only sign-in's route has `mode`.
|
|
@@ -942,10 +951,10 @@ const svc = defineService<S, {
|
|
|
942
951
|
rejectResult(raw, "reset");
|
|
943
952
|
if (revision !== editRevision) return derive({ ...svc.getState(), authBusy: false });
|
|
944
953
|
return derive({ ...svc.getState(), authBusy: false, isRecovering: false,
|
|
945
|
-
message: copyParam("storeAccount.resetSent", "If that email is registered, a reset link is on its way.") });
|
|
954
|
+
resetSent: true, message: copyParam("storeAccount.resetSent", "If that email is registered, a reset link is on its way.") });
|
|
946
955
|
} catch (error) {
|
|
947
956
|
return derive({ ...svc.getState(), authBusy: false,
|
|
948
|
-
message: revision === editRevision ? authFailure(error, "reset", translated).reason : "" });
|
|
957
|
+
resetSent: false, message: revision === editRevision ? authFailure(error, "reset", translated).reason : "" });
|
|
949
958
|
} finally { authInFlight = false; }
|
|
950
959
|
},
|
|
951
960
|
signIn: (s) => authenticate(s, "signIn"),
|
|
@@ -991,7 +1000,7 @@ const svc = defineService<S, {
|
|
|
991
1000
|
},
|
|
992
1001
|
});
|
|
993
1002
|
|
|
994
|
-
resetUnhydratedKeysOnOlderRuntime(svc, derive({ ...svc.getState(), ...NO_IAP_RESTORE, ...NO_VISIT, ...NO_FOCUS_ALL, passwordFocus: "", isRegistering: ROUTE_ASKS_REGISTER }), [...IAP_RESTORE_KEYS, ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, "lastNameFocus", "emailFocus", "passwordFocus"]);
|
|
1003
|
+
resetUnhydratedKeysOnOlderRuntime(svc, derive({ ...svc.getState(), ...NO_IAP_RESTORE, ...NO_VISIT, ...NO_FOCUS_ALL, message: "", resetSent: false, passwordFocus: "", isRegistering: ROUTE_ASKS_REGISTER }), ["message", "hideMessage", "messageKind", "resetSent", ...IAP_RESTORE_KEYS, ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, "lastNameFocus", "emailFocus", "passwordFocus"]);
|
|
995
1004
|
// `boot` tells settle this is not a visit: the host drops this call's navigation, and the
|
|
996
1005
|
// appear refresh does the visit's moves.
|
|
997
1006
|
svc.load({ boot: "1" });
|
|
@@ -1,33 +1,44 @@
|
|
|
1
1
|
import { dispatch } from "@himalaya/dispatch";
|
|
2
2
|
import { getMyData } from "@himalaya/wix-users";
|
|
3
3
|
|
|
4
|
-
export interface MemberAccess { email: string; scope: string; }
|
|
4
|
+
export interface MemberAccess { email: string; scope: string; signedIn?: boolean; }
|
|
5
5
|
export function memberAccessChanged(): Error {
|
|
6
6
|
const error = new Error("Member access changed"); error.name = "MemberAccessChanged"; return error;
|
|
7
7
|
}
|
|
8
|
-
export async function memberAccess(): Promise<MemberAccess> {
|
|
8
|
+
export async function memberAccess(options: { throwOnUnavailable?: boolean } = {}): Promise<MemberAccess> {
|
|
9
9
|
let email = "";
|
|
10
|
+
let signedIn = false;
|
|
10
11
|
let identityUnavailable = false;
|
|
11
12
|
try {
|
|
12
|
-
const value = await dispatch("himi.wix.memberIdentity") as { email?: unknown; payload?: { email?: unknown } } | null;
|
|
13
|
+
const value = await dispatch("himi.wix.memberIdentity") as { status?: unknown; ok?: unknown; email?: unknown; signedIn?: unknown; payload?: { email?: unknown; signedIn?: unknown } } | null;
|
|
14
|
+
if (value?.status === "error" || value?.ok === false) throw value;
|
|
13
15
|
const raw = value?.email ?? value?.payload?.email;
|
|
14
16
|
email = typeof raw === "string" ? raw.trim().toLowerCase() : "";
|
|
17
|
+
signedIn = (value?.signedIn ?? value?.payload?.signedIn) === true;
|
|
15
18
|
} catch { identityUnavailable = true; }
|
|
16
19
|
// Older native hosts predate the memberIdentity action but can still expose
|
|
17
20
|
// the authenticated profile through wix-users. Only a missing action uses
|
|
18
|
-
// that rung
|
|
21
|
+
// that rung. A successful host response is authoritative, including a signed-in
|
|
22
|
+
// session whose email has not arrived yet; it must not consult owner records.
|
|
19
23
|
if (!email && identityUnavailable) {
|
|
20
24
|
try {
|
|
21
25
|
const profile = await getMyData();
|
|
22
26
|
const raw = profile.email ?? profile.contactEmail;
|
|
23
27
|
email = typeof raw === "string" ? raw.trim().toLowerCase() : "";
|
|
24
|
-
} catch {
|
|
28
|
+
} catch (error) {
|
|
29
|
+
const failure = error as { status?: unknown; statusCode?: unknown; code?: unknown } | null;
|
|
30
|
+
const anonymous = failure?.status === 401 || failure?.statusCode === 401 || failure?.code === "UNAUTHENTICATED";
|
|
31
|
+
// Legacy bridges can lose the structured status. An unknown failure is
|
|
32
|
+
// unavailable in strict consumers, never evidence of a signed-out session.
|
|
33
|
+
if (options.throwOnUnavailable && !anonymous) throw error;
|
|
34
|
+
}
|
|
25
35
|
}
|
|
26
36
|
const input = (globalThis as { himalaya?: { input?: Record<string, unknown> } }).himalaya?.input;
|
|
27
37
|
const account = input?.__himiPreferenceAccount, business = input?.__himiPreferenceBusiness;
|
|
28
38
|
const valid = (v: unknown): v is string => typeof v === "string" && /^[A-Za-z0-9_.:-]{1,128}$/.test(v) && v !== "default";
|
|
29
39
|
// These fields are overwritten by authenticated hosts. Older binaries stay online-only.
|
|
30
|
-
|
|
40
|
+
// A session signal does not grant an email-scoped cache or private query.
|
|
41
|
+
return { email, signedIn: signedIn || Boolean(email), scope: email && valid(account) && valid(business) ? JSON.stringify([account, business, email]) : "" };
|
|
31
42
|
}
|
|
32
43
|
export async function assertMemberAccess(member: MemberAccess): Promise<void> {
|
|
33
44
|
const current = await memberAccess();
|
|
@@ -565,6 +565,9 @@ interface S extends IapRestoreFields {
|
|
|
565
565
|
lastNameFocus: string;
|
|
566
566
|
emailFocus: string;
|
|
567
567
|
message: string;
|
|
568
|
+
hideMessage: boolean;
|
|
569
|
+
messageKind: "error" | "success";
|
|
570
|
+
resetSent: boolean;
|
|
568
571
|
isLoading: boolean;
|
|
569
572
|
notLoading: boolean;
|
|
570
573
|
isRegistering: boolean;
|
|
@@ -640,6 +643,9 @@ function derive(s: S): S {
|
|
|
640
643
|
const name = s.isMember ? greetingName(s.memberName) : "";
|
|
641
644
|
return {
|
|
642
645
|
...s,
|
|
646
|
+
hideMessage: !s.message,
|
|
647
|
+
messageKind: s.resetSent ? "success" : "error",
|
|
648
|
+
resetSent: !!s.message && !!s.resetSent,
|
|
643
649
|
greeting: name
|
|
644
650
|
? copyTemplate("storeAccount.greetingMember", "Hey, {name}", { name })
|
|
645
651
|
: copyParam("storeAccount.greetingGuest", "Hey, guest"),
|
|
@@ -815,7 +821,7 @@ const svc = defineService<S, {
|
|
|
815
821
|
restorePublish: (s: S) => S;
|
|
816
822
|
iapRestore: (s: S) => Promise<undefined>;
|
|
817
823
|
}>("himiStoreAccount", {
|
|
818
|
-
notHydrated: ["password", "authBusy", "emailError", "passwordError", "passwordFocus", "lastNameFocus", "emailFocus", ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, ...IAP_RESTORE_KEYS],
|
|
824
|
+
notHydrated: ["message", "hideMessage", "messageKind", "resetSent", "password", "authBusy", "emailError", "passwordError", "passwordFocus", "lastNameFocus", "emailFocus", ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, ...IAP_RESTORE_KEYS],
|
|
819
825
|
state: derive({
|
|
820
826
|
status: "loading",
|
|
821
827
|
isMember: false,
|
|
@@ -846,6 +852,9 @@ const svc = defineService<S, {
|
|
|
846
852
|
lastNameFocus: "",
|
|
847
853
|
emailFocus: "",
|
|
848
854
|
message: "",
|
|
855
|
+
hideMessage: true,
|
|
856
|
+
messageKind: "error",
|
|
857
|
+
resetSent: false,
|
|
849
858
|
isLoading: true,
|
|
850
859
|
notLoading: false,
|
|
851
860
|
// The form's first paint is already on its route's mode: only sign-in's route has `mode`.
|
|
@@ -942,10 +951,10 @@ const svc = defineService<S, {
|
|
|
942
951
|
rejectResult(raw, "reset");
|
|
943
952
|
if (revision !== editRevision) return derive({ ...svc.getState(), authBusy: false });
|
|
944
953
|
return derive({ ...svc.getState(), authBusy: false, isRecovering: false,
|
|
945
|
-
message: copyParam("storeAccount.resetSent", "If that email is registered, a reset link is on its way.") });
|
|
954
|
+
resetSent: true, message: copyParam("storeAccount.resetSent", "If that email is registered, a reset link is on its way.") });
|
|
946
955
|
} catch (error) {
|
|
947
956
|
return derive({ ...svc.getState(), authBusy: false,
|
|
948
|
-
message: revision === editRevision ? authFailure(error, "reset", translated).reason : "" });
|
|
957
|
+
resetSent: false, message: revision === editRevision ? authFailure(error, "reset", translated).reason : "" });
|
|
949
958
|
} finally { authInFlight = false; }
|
|
950
959
|
},
|
|
951
960
|
signIn: (s) => authenticate(s, "signIn"),
|
|
@@ -991,7 +1000,7 @@ const svc = defineService<S, {
|
|
|
991
1000
|
},
|
|
992
1001
|
});
|
|
993
1002
|
|
|
994
|
-
resetUnhydratedKeysOnOlderRuntime(svc, derive({ ...svc.getState(), ...NO_IAP_RESTORE, ...NO_VISIT, ...NO_FOCUS_ALL, passwordFocus: "", isRegistering: ROUTE_ASKS_REGISTER }), [...IAP_RESTORE_KEYS, ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, "lastNameFocus", "emailFocus", "passwordFocus"]);
|
|
1003
|
+
resetUnhydratedKeysOnOlderRuntime(svc, derive({ ...svc.getState(), ...NO_IAP_RESTORE, ...NO_VISIT, ...NO_FOCUS_ALL, message: "", resetSent: false, passwordFocus: "", isRegistering: ROUTE_ASKS_REGISTER }), ["message", "hideMessage", "messageKind", "resetSent", ...IAP_RESTORE_KEYS, ...VISIT_KEYS, ...VISIT_DERIVED_KEYS, "lastNameFocus", "emailFocus", "passwordFocus"]);
|
|
995
1004
|
// `boot` tells settle this is not a visit: the host drops this call's navigation, and the
|
|
996
1005
|
// appear refresh does the visit's moves.
|
|
997
1006
|
svc.load({ boot: "1" });
|
|
@@ -63,6 +63,18 @@ export default defineApp({
|
|
|
63
63
|
"maxHoldMs": 5000
|
|
64
64
|
},
|
|
65
65
|
navigation: {
|
|
66
|
+
"navLogicBundle": {
|
|
67
|
+
"url": "/v1/bundles/himi-branded-lite-nav",
|
|
68
|
+
"integrity": "",
|
|
69
|
+
"contentType": "application/javascript+ts-bundle",
|
|
70
|
+
"declaredCapabilities": [
|
|
71
|
+
"push",
|
|
72
|
+
"theme",
|
|
73
|
+
"wix_api"
|
|
74
|
+
],
|
|
75
|
+
"minBinaryVersion": "0.1.0",
|
|
76
|
+
"bundleVersion": "0.0.1"
|
|
77
|
+
},
|
|
66
78
|
"navKind": "responsive",
|
|
67
79
|
"scheme": "himalaya-__HIMI_APP_SLUG__",
|
|
68
80
|
"deepLinkPatterns": [],
|
|
@@ -14241,7 +14241,7 @@ const SCREENS = runtimeSetting({
|
|
|
14241
14241
|
}
|
|
14242
14242
|
},
|
|
14243
14243
|
"modifiers": {
|
|
14244
|
-
"width":
|
|
14244
|
+
"width": 80
|
|
14245
14245
|
}
|
|
14246
14246
|
},
|
|
14247
14247
|
{
|