@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
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
// himi-branded-lite APP-LEVEL nav worker — `NavigationConfig.navLogicBundle`.
|
|
2
|
+
//
|
|
3
|
+
// WHY IT EXISTS: `push.observerAction` names a `tier5.<service>.<action>` id, and the
|
|
4
|
+
// native sink resolves it against mounted screens FIRST and the app-level nav worker
|
|
5
|
+
// SECOND (`WorkerActionSink`, both platforms). A notification arrives while no screen
|
|
6
|
+
// of ours is mounted — that is the normal case for a cold-start tap and for every
|
|
7
|
+
// background receipt — so the only place the observer can reliably land is here. The
|
|
8
|
+
// config previously named `tier5.himiBrandedNotifications.onNotification` — a service
|
|
9
|
+
// that DOES exist, but as the notifications SCREEN's worker, alive only while that
|
|
10
|
+
// screen is mounted. So the observer dropped with a `nav_verb_dropped /
|
|
11
|
+
// no_worker_for_service` telemetry line in every case that matters.
|
|
12
|
+
//
|
|
13
|
+
// LIFETIME is the point: a screen worker dies with its screen, and this one is owned
|
|
14
|
+
// by the shell, so the unread count keeps accumulating while the user is somewhere
|
|
15
|
+
// else entirely (or nowhere — the app was backgrounded).
|
|
16
|
+
//
|
|
17
|
+
// It is built like every other worker (`himi build`) and named by the app's `navLogicBundle`.
|
|
18
|
+
|
|
19
|
+
import { defineService } from "@himalaya/state";
|
|
20
|
+
import { serializeForAgent } from "@himalaya/agent";
|
|
21
|
+
import { readNotificationEvent, setBadge } from "@himalaya/push";
|
|
22
|
+
import { applyBrand } from "@himalaya/theme";
|
|
23
|
+
import { hostSiteFromInput, hostedHiddenFlags } from "../_shared/branded-lite-hosted.js";
|
|
24
|
+
import { LOCATION_PIN_INITIAL, locationPin, type LocationPin, type LocationPinActionSignatures, type LocationPinState } from "../_shared/location-pin.js";
|
|
25
|
+
import { HEADER_BADGES_INITIAL, HEADER_BADGE_KEYS, headerBadges, type HeaderBadgeActionSignatures, type HeaderBadges, type HeaderBadgeState } from "../_shared/header-badges.js";
|
|
26
|
+
|
|
27
|
+
interface NavState extends HeaderBadgeState, LocationPinState {
|
|
28
|
+
error: string;
|
|
29
|
+
/** Notifications received but not yet opened. Drives the app-icon badge. */
|
|
30
|
+
unread: number;
|
|
31
|
+
/** True when `unread > 0` — a bindable boolean, so chrome does not have to do
|
|
32
|
+
* arithmetic in a descriptor path. */
|
|
33
|
+
hasUnread: boolean;
|
|
34
|
+
/** WHICH notifications are counted, newest last.
|
|
35
|
+
*
|
|
36
|
+
* A plain counter was wrong in both directions: a notification delivered while the
|
|
37
|
+
* app was backgrounded produces no receipt on either platform, so tapping it
|
|
38
|
+
* decremented a count it never contributed to, and a receipt seen twice (two
|
|
39
|
+
* surfaces reporting one notification) counted it twice. Identity is the fix —
|
|
40
|
+
* `unread` is this list's length, never an independent number. */
|
|
41
|
+
unreadIds: string[];
|
|
42
|
+
/** What arrived last, for the dev loop and for a "what did I miss" surface. The
|
|
43
|
+
* Ping template rather than the body: the body is localized server-side and this
|
|
44
|
+
* worker never sees it. */
|
|
45
|
+
lastTemplateId: string;
|
|
46
|
+
lastTopic: string;
|
|
47
|
+
/** The destination the route table produced, or "" when no route matched. Empty
|
|
48
|
+
* here is exactly the signal that a delivered notification had nowhere to go. */
|
|
49
|
+
lastResolvedLink: string;
|
|
50
|
+
/** Hosted mode (#4089 B2 Task 2c): per vertical, whether its nav rows are hidden for the site the
|
|
51
|
+
* host opened this app for (`himalaya.input.__himiHostSite`, set by core from the host binding). The rows bind it fail-closed, so nothing
|
|
52
|
+
* shows before this worker has answered. A single-site build never binds it. */
|
|
53
|
+
hosted: Record<string, boolean>;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** How many unread notifications are tracked. A long-lived app must not accumulate
|
|
57
|
+
* ids forever, and a count past this is "lots" for badge purposes. */
|
|
58
|
+
const UNREAD_LIMIT = 50;
|
|
59
|
+
|
|
60
|
+
/** What identifies a notification. `notificationId` when the sender set one; the
|
|
61
|
+
* resolved destination (or the raw link) otherwise, which is the best available
|
|
62
|
+
* handle — two notifications that open the same thing collapse, and the alternative
|
|
63
|
+
* is counting every duplicate delivery of one notification. */
|
|
64
|
+
function identify(ev: { notificationId: string; resolvedLink: string; link: string }): string {
|
|
65
|
+
return ev.notificationId || ev.resolvedLink || ev.link;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** The site the host opened this app for, or null (single-site build, or no host). */
|
|
69
|
+
const hostedSite = hostSiteFromInput((globalThis as { himalaya?: { input?: unknown } }).himalaya?.input);
|
|
70
|
+
|
|
71
|
+
// The header badge counts (bell, chat, cart): one service piece shared with the template's badges-only worker.
|
|
72
|
+
const badges: HeaderBadges<NavState> = headerBadges<NavState>(updateInOrder, () => svc);
|
|
73
|
+
// The Services top-bar location pin (`noLocationMenu`): one piece shared with the access-gates worker.
|
|
74
|
+
const pin: LocationPin<NavState> = locationPin<NavState>(updateInOrder, () => svc);
|
|
75
|
+
|
|
76
|
+
const svc = defineService<NavState, {
|
|
77
|
+
/** The observer. Dispatched on EVERY notification, receipt or tap — `tapped` is
|
|
78
|
+
* what tells the two apart, and the native side stringifies it. */
|
|
79
|
+
onNotification: (s: NavState, params?: unknown) => Promise<NavState>;
|
|
80
|
+
/** Zero the count (the user has caught up). */
|
|
81
|
+
clearUnread: (s: NavState) => Promise<NavState>;
|
|
82
|
+
} & HeaderBadgeActionSignatures<NavState> & LocationPinActionSignatures<NavState>>("brandedLiteNav", {
|
|
83
|
+
state: { error: "", unread: 0, hasUnread: false, unreadIds: [], lastTemplateId: "", lastTopic: "", lastResolvedLink: "", hosted: hostedHiddenFlags(hostedSite), ...LOCATION_PIN_INITIAL, ...HEADER_BADGES_INITIAL },
|
|
84
|
+
// The header badge counts describe THIS run (see _shared/header-badges.ts): never stored, never restored.
|
|
85
|
+
notPersisted: HEADER_BADGE_KEYS,
|
|
86
|
+
notHydrated: HEADER_BADGE_KEYS,
|
|
87
|
+
actions: {
|
|
88
|
+
onNotification: async (s, params) => {
|
|
89
|
+
return updateInOrder(s, (current) => {
|
|
90
|
+
const ev = readNotificationEvent(params);
|
|
91
|
+
// A TAP means the user dealt with THAT notification, not all of them — and only
|
|
92
|
+
// with one that was actually counted, which a background delivery never was.
|
|
93
|
+
const id = identify(ev);
|
|
94
|
+
const openedIndex = current.unreadIds.indexOf(id);
|
|
95
|
+
const ids = ev.tapped ? current.unreadIds.filter((_, index) => index !== openedIndex)
|
|
96
|
+
: id && current.unreadIds.includes(id) ? current.unreadIds : [...current.unreadIds, id].slice(-UNREAD_LIMIT);
|
|
97
|
+
return next(current, ids, ev.templateId, ev.topic, ev.resolvedLink);
|
|
98
|
+
}).finally(() => badges.refresh());
|
|
99
|
+
},
|
|
100
|
+
// The shell runs this on every foreground, which is the one supported moment to re-read the badges.
|
|
101
|
+
clearUnread: async (s) => updateInOrder(s, (current) =>
|
|
102
|
+
next(current, [], current.lastTemplateId, current.lastTopic, current.lastResolvedLink))
|
|
103
|
+
.finally(() => badges.refresh()),
|
|
104
|
+
...pin.actions,
|
|
105
|
+
...badges.actions,
|
|
106
|
+
},
|
|
107
|
+
});
|
|
108
|
+
|
|
109
|
+
// Badge writes await native work; overlapping actions must use the preceding result.
|
|
110
|
+
let stateQueue: Promise<NavState> | undefined;
|
|
111
|
+
function updateInOrder(s: NavState, update: (current: NavState) => Promise<NavState>): Promise<NavState> {
|
|
112
|
+
const previous = stateQueue ?? Promise.resolve(s);
|
|
113
|
+
const result = previous.then(update);
|
|
114
|
+
stateQueue = result.catch(() => previous);
|
|
115
|
+
return result;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/** One place that writes the count, so the badge and the state cannot disagree.
|
|
119
|
+
* The badge write is best-effort: a denied push permission must not take the
|
|
120
|
+
* observer down with it, and the count is still correct in state. */
|
|
121
|
+
async function next(
|
|
122
|
+
s: NavState,
|
|
123
|
+
unreadIds: string[],
|
|
124
|
+
lastTemplateId: string,
|
|
125
|
+
lastTopic: string,
|
|
126
|
+
lastResolvedLink: string,
|
|
127
|
+
): Promise<NavState> {
|
|
128
|
+
const unread = unreadIds.length;
|
|
129
|
+
const out: NavState = {
|
|
130
|
+
...s, error: "", unread, hasUnread: unread > 0, unreadIds, lastTemplateId, lastTopic, lastResolvedLink,
|
|
131
|
+
};
|
|
132
|
+
try {
|
|
133
|
+
await setBadge(unread);
|
|
134
|
+
} catch {
|
|
135
|
+
out.error = "Could not update the app badge.";
|
|
136
|
+
}
|
|
137
|
+
serializeForAgent({ brandedLiteNav: out });
|
|
138
|
+
return out;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export { svc };
|
|
142
|
+
|
|
143
|
+
// A site without bookings never shows the pin, so a hosted site without them reads no catalog.
|
|
144
|
+
pin.start(!!hostedSite && hostedHiddenFlags(hostedSite).bookings);
|
|
145
|
+
// Subscribing notifies at once, which is the launch read; a host with no clock needs the explicit one.
|
|
146
|
+
badges.start();
|
|
147
|
+
|
|
148
|
+
// Hosted mode: the site's own brand over the build's. The shell's brand slot is scoped to this
|
|
149
|
+
// host session, so a site switch drops it.
|
|
150
|
+
if (hostedSite?.primaryColor) {
|
|
151
|
+
void applyBrand({ primaryColor: hostedSite.primaryColor }).catch((e: unknown) => console.warn(`[branded-lite] hosted brand not applied: ${String(e)}`));
|
|
152
|
+
}
|
|
@@ -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 };
|
|
@@ -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": [],
|
|
@@ -26781,7 +26781,7 @@ const SCREENS = runtimeSetting({
|
|
|
26781
26781
|
}
|
|
26782
26782
|
},
|
|
26783
26783
|
"modifiers": {
|
|
26784
|
-
"width":
|
|
26784
|
+
"width": 80
|
|
26785
26785
|
}
|
|
26786
26786
|
},
|
|
26787
26787
|
{
|
|
@@ -84941,6 +84941,41 @@ const SCREENS = runtimeSetting({
|
|
|
84941
84941
|
"props": {
|
|
84942
84942
|
"spacing": 8,
|
|
84943
84943
|
"children": [
|
|
84944
|
+
{
|
|
84945
|
+
"id": "himi_podcasts.mini_player_previous",
|
|
84946
|
+
"body": {
|
|
84947
|
+
"package": "himalaya",
|
|
84948
|
+
"type": "Button",
|
|
84949
|
+
"props": {
|
|
84950
|
+
"title": "Previous",
|
|
84951
|
+
"leadingIcon": "skip_previous",
|
|
84952
|
+
"iconOnly": true,
|
|
84953
|
+
"style": "plain",
|
|
84954
|
+
"action": {
|
|
84955
|
+
"actionId": "tier5.himiBrandedPodcasts.previousEpisode"
|
|
84956
|
+
}
|
|
84957
|
+
}
|
|
84958
|
+
}
|
|
84959
|
+
},
|
|
84960
|
+
{
|
|
84961
|
+
"id": "himi_podcasts.mini_player_back",
|
|
84962
|
+
"body": {
|
|
84963
|
+
"package": "himalaya",
|
|
84964
|
+
"type": "Button",
|
|
84965
|
+
"props": {
|
|
84966
|
+
"title": "Back 15 seconds",
|
|
84967
|
+
"leadingIcon": "undo",
|
|
84968
|
+
"iconOnly": true,
|
|
84969
|
+
"style": "plain",
|
|
84970
|
+
"action": {
|
|
84971
|
+
"actionId": "tier5.himiBrandedPodcasts.seekBy",
|
|
84972
|
+
"params": {
|
|
84973
|
+
"deltaMs": "-15000"
|
|
84974
|
+
}
|
|
84975
|
+
}
|
|
84976
|
+
}
|
|
84977
|
+
}
|
|
84978
|
+
},
|
|
84944
84979
|
{
|
|
84945
84980
|
"id": "himi_podcasts.mini_player_toggle",
|
|
84946
84981
|
"body": {
|
|
@@ -84956,6 +84991,25 @@ const SCREENS = runtimeSetting({
|
|
|
84956
84991
|
}
|
|
84957
84992
|
}
|
|
84958
84993
|
},
|
|
84994
|
+
{
|
|
84995
|
+
"id": "himi_podcasts.mini_player_forward",
|
|
84996
|
+
"body": {
|
|
84997
|
+
"package": "himalaya",
|
|
84998
|
+
"type": "Button",
|
|
84999
|
+
"props": {
|
|
85000
|
+
"title": "Forward 30 seconds",
|
|
85001
|
+
"leadingIcon": "refresh",
|
|
85002
|
+
"iconOnly": true,
|
|
85003
|
+
"style": "plain",
|
|
85004
|
+
"action": {
|
|
85005
|
+
"actionId": "tier5.himiBrandedPodcasts.seekBy",
|
|
85006
|
+
"params": {
|
|
85007
|
+
"deltaMs": "30000"
|
|
85008
|
+
}
|
|
85009
|
+
}
|
|
85010
|
+
}
|
|
85011
|
+
}
|
|
85012
|
+
},
|
|
84959
85013
|
{
|
|
84960
85014
|
"id": "himi_podcasts.mini_player_next",
|
|
84961
85015
|
"body": {
|
|
@@ -84975,6 +85029,52 @@ const SCREENS = runtimeSetting({
|
|
|
84975
85029
|
}
|
|
84976
85030
|
}
|
|
84977
85031
|
},
|
|
85032
|
+
{
|
|
85033
|
+
"id": "himi_podcasts.playback_error",
|
|
85034
|
+
"body": {
|
|
85035
|
+
"package": "himalaya",
|
|
85036
|
+
"type": "VStack",
|
|
85037
|
+
"props": {
|
|
85038
|
+
"spacing": 6,
|
|
85039
|
+
"alignment": "leading",
|
|
85040
|
+
"children": [
|
|
85041
|
+
{
|
|
85042
|
+
"id": "",
|
|
85043
|
+
"body": {
|
|
85044
|
+
"package": "himalaya",
|
|
85045
|
+
"type": "Text",
|
|
85046
|
+
"props": {
|
|
85047
|
+
"text": "$service:himiBrandedPodcasts.playbackErrorText",
|
|
85048
|
+
"style": "footnote",
|
|
85049
|
+
"color": "danger",
|
|
85050
|
+
"collapseWhenEmpty": true
|
|
85051
|
+
}
|
|
85052
|
+
}
|
|
85053
|
+
},
|
|
85054
|
+
{
|
|
85055
|
+
"id": "himi_podcasts.playback_retry",
|
|
85056
|
+
"body": {
|
|
85057
|
+
"package": "himalaya",
|
|
85058
|
+
"type": "Button",
|
|
85059
|
+
"props": {
|
|
85060
|
+
"title": "Try again",
|
|
85061
|
+
"style": "secondary",
|
|
85062
|
+
"action": {
|
|
85063
|
+
"actionId": "tier5.himiBrandedPodcasts.retryPlayback"
|
|
85064
|
+
}
|
|
85065
|
+
}
|
|
85066
|
+
},
|
|
85067
|
+
"modifiers": {
|
|
85068
|
+
"hiddenPath": "$service:himiBrandedPodcasts.hidePlaybackRetry"
|
|
85069
|
+
}
|
|
85070
|
+
}
|
|
85071
|
+
]
|
|
85072
|
+
}
|
|
85073
|
+
},
|
|
85074
|
+
"modifiers": {
|
|
85075
|
+
"hiddenPath": "$service:himiBrandedPodcasts.hidePlaybackError"
|
|
85076
|
+
}
|
|
85077
|
+
},
|
|
84978
85078
|
{
|
|
84979
85079
|
"id": "himi_podcasts.mini_player_progress",
|
|
84980
85080
|
"body": {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$source": "en",
|
|
3
|
-
"$generated": "2026-11-
|
|
3
|
+
"$generated": "2026-11-17T08:26:59.985Z",
|
|
4
4
|
"messages": {
|
|
5
5
|
"h_00234c88e324": {
|
|
6
6
|
"source": "This site's galleries couldn't be loaded.",
|
|
@@ -865,6 +865,13 @@
|
|
|
865
865
|
"key": "inbox.unavailableBody",
|
|
866
866
|
"keyOrigin": "string-table"
|
|
867
867
|
},
|
|
868
|
+
"h_30668dc2c5d0": {
|
|
869
|
+
"source": "Forward 30 seconds",
|
|
870
|
+
"kind": "Button.title",
|
|
871
|
+
"translation": "",
|
|
872
|
+
"key": "podcasts.seekForwardCta",
|
|
873
|
+
"keyOrigin": "string-table"
|
|
874
|
+
},
|
|
868
875
|
"h_308922d5c12d": {
|
|
869
876
|
"source": "We show the bookings made with your email.",
|
|
870
877
|
"kind": "EmptyState.subtitle",
|
|
@@ -1430,6 +1437,13 @@
|
|
|
1430
1437
|
"key": "steps.connectCta",
|
|
1431
1438
|
"keyOrigin": "string-table"
|
|
1432
1439
|
},
|
|
1440
|
+
"h_50f94286ba30": {
|
|
1441
|
+
"source": "Previous",
|
|
1442
|
+
"kind": "Button.title",
|
|
1443
|
+
"translation": "",
|
|
1444
|
+
"key": "podcasts.previousCta",
|
|
1445
|
+
"keyOrigin": "string-table"
|
|
1446
|
+
},
|
|
1433
1447
|
"h_511ad20c03e6": {
|
|
1434
1448
|
"source": "This form is no longer available.",
|
|
1435
1449
|
"kind": "Text.text",
|
|
@@ -1791,6 +1805,13 @@
|
|
|
1791
1805
|
"key": "plans.errorTitle",
|
|
1792
1806
|
"keyOrigin": "string-table"
|
|
1793
1807
|
},
|
|
1808
|
+
"h_6a20b2e95b10": {
|
|
1809
|
+
"source": "Back 15 seconds",
|
|
1810
|
+
"kind": "Button.title",
|
|
1811
|
+
"translation": "",
|
|
1812
|
+
"key": "podcasts.seekBackCta",
|
|
1813
|
+
"keyOrigin": "string-table"
|
|
1814
|
+
},
|
|
1794
1815
|
"h_6a72085653e4": {
|
|
1795
1816
|
"source": "All",
|
|
1796
1817
|
"kind": "atom.label",
|
|
@@ -32,6 +32,24 @@
|
|
|
32
32
|
"key": "program.cancelRequestFailedMessage",
|
|
33
33
|
"translation": "No se ha podido cancelar la solicitud. Inténtalo de nuevo."
|
|
34
34
|
},
|
|
35
|
+
"h_30668dc2c5d0": {
|
|
36
|
+
"source": "Forward 30 seconds",
|
|
37
|
+
"key": "podcasts.seekForwardCta",
|
|
38
|
+
"translation": "Avanzar 30 segundos",
|
|
39
|
+
"origin": "machine"
|
|
40
|
+
},
|
|
41
|
+
"h_50f94286ba30": {
|
|
42
|
+
"source": "Previous",
|
|
43
|
+
"key": "podcasts.previousCta",
|
|
44
|
+
"translation": "Anterior",
|
|
45
|
+
"origin": "machine"
|
|
46
|
+
},
|
|
47
|
+
"h_6a20b2e95b10": {
|
|
48
|
+
"source": "Back 15 seconds",
|
|
49
|
+
"key": "podcasts.seekBackCta",
|
|
50
|
+
"translation": "Retroceder 15 segundos",
|
|
51
|
+
"origin": "machine"
|
|
52
|
+
},
|
|
35
53
|
"h_0d049cb0b019": {
|
|
36
54
|
"source": "This site is not accepting online payments. Go back or contact the business for other payment options.",
|
|
37
55
|
"translation": "Este sitio no acepta pagos en línea. Vuelve atrás o contacta con el negocio para consultar otras opciones de pago."
|
|
@@ -43,6 +61,10 @@
|
|
|
43
61
|
"h_17e8af827ec8": {
|
|
44
62
|
"source": "Select {option}",
|
|
45
63
|
"translation": "Selecciona {option}"
|
|
64
|
+
},
|
|
65
|
+
"h_5d12bd53552c": {
|
|
66
|
+
"source": "Play",
|
|
67
|
+
"translation": "Reproducir"
|
|
46
68
|
}
|
|
47
69
|
}
|
|
48
70
|
}
|
|
@@ -4124,6 +4124,24 @@
|
|
|
4124
4124
|
"translation": "Rechercher des documents",
|
|
4125
4125
|
"origin": "machine"
|
|
4126
4126
|
},
|
|
4127
|
+
"h_30668dc2c5d0": {
|
|
4128
|
+
"source": "Forward 30 seconds",
|
|
4129
|
+
"key": "podcasts.seekForwardCta",
|
|
4130
|
+
"translation": "Avancer de 30 secondes",
|
|
4131
|
+
"origin": "machine"
|
|
4132
|
+
},
|
|
4133
|
+
"h_50f94286ba30": {
|
|
4134
|
+
"source": "Previous",
|
|
4135
|
+
"key": "podcasts.previousCta",
|
|
4136
|
+
"translation": "Précédent",
|
|
4137
|
+
"origin": "machine"
|
|
4138
|
+
},
|
|
4139
|
+
"h_6a20b2e95b10": {
|
|
4140
|
+
"source": "Back 15 seconds",
|
|
4141
|
+
"key": "podcasts.seekBackCta",
|
|
4142
|
+
"translation": "Reculer de 15 secondes",
|
|
4143
|
+
"origin": "machine"
|
|
4144
|
+
},
|
|
4127
4145
|
"h_03e89418ffdf": {
|
|
4128
4146
|
"source": "Your Home",
|
|
4129
4147
|
"translation": "Votre accueil",
|
|
@@ -8169,6 +8187,11 @@
|
|
|
8169
8187
|
"translation": "Votre adhésion ou votre achat actuel ne permet pas de voir cette vidéo.",
|
|
8170
8188
|
"origin": "machine"
|
|
8171
8189
|
},
|
|
8190
|
+
"h_a9ebcd4e7fea": {
|
|
8191
|
+
"source": "Sign in with an account that has access to this video.",
|
|
8192
|
+
"translation": "Connectez-vous avec un compte qui a accès à cette vidéo.",
|
|
8193
|
+
"origin": "machine"
|
|
8194
|
+
},
|
|
8172
8195
|
"h_4d4ce73b1566": {
|
|
8173
8196
|
"source": "Card",
|
|
8174
8197
|
"translation": "Carte",
|
|
@@ -3465,6 +3465,21 @@
|
|
|
3465
3465
|
"key": "fileShare.searchPlaceholder",
|
|
3466
3466
|
"translation": "חיפוש מסמכים"
|
|
3467
3467
|
},
|
|
3468
|
+
"h_30668dc2c5d0": {
|
|
3469
|
+
"source": "Forward 30 seconds",
|
|
3470
|
+
"key": "podcasts.seekForwardCta",
|
|
3471
|
+
"translation": "קדימה 30 שניות"
|
|
3472
|
+
},
|
|
3473
|
+
"h_50f94286ba30": {
|
|
3474
|
+
"source": "Previous",
|
|
3475
|
+
"key": "podcasts.previousCta",
|
|
3476
|
+
"translation": "הקודם"
|
|
3477
|
+
},
|
|
3478
|
+
"h_6a20b2e95b10": {
|
|
3479
|
+
"source": "Back 15 seconds",
|
|
3480
|
+
"key": "podcasts.seekBackCta",
|
|
3481
|
+
"translation": "אחורה 15 שניות"
|
|
3482
|
+
},
|
|
3468
3483
|
"h_03e89418ffdf": {
|
|
3469
3484
|
"source": "Your Home",
|
|
3470
3485
|
"translation": "הבית שלך"
|
|
@@ -7524,6 +7539,10 @@
|
|
|
7524
7539
|
"source": "{n, plural, one {per year} other {every # years}}",
|
|
7525
7540
|
"translation": "{n, plural, one {לשנה} other {כל # שנים}}"
|
|
7526
7541
|
},
|
|
7542
|
+
"h_a9ebcd4e7fea": {
|
|
7543
|
+
"source": "Sign in with an account that has access to this video.",
|
|
7544
|
+
"translation": "התחברו באמצעות חשבון שיש לו גישה לסרטון הזה."
|
|
7545
|
+
},
|
|
7527
7546
|
"h_41ea36c1a2ec": {
|
|
7528
7547
|
"source": "No Events Yet",
|
|
7529
7548
|
"translation": "עדיין אין אירועים"
|