@wix/himalaya-cli 0.1740.0 → 0.1742.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/ts/src/locale.d.ts +3 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/members-v1/src/index.d.ts +7 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/wix-sdk/pricing-plans/src/index.d.ts +6 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +57 -3
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/l10n.mjs +51 -2
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-members.mjs +6 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{4235535ddd6e62ae867fd4d3588054909040428cffec9bea2807693a68e297d9.bin → d13ef703cc8f4d7eaa9b12967b618314b75002b5d4441dedbcc65e3601c4750d.bin} +1 -1
- package/dist/browser-plane/sw.js +6 -6
- package/dist/cli.mjs +497 -226
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/getting-started.md +18 -7
- package/guides/himi-json-output.md +12 -1
- package/guides/himi-skill.md +18 -7
- package/guides/one-app-to-himi-app.md +11 -2
- package/guides/sdk-reference.json +11 -2
- package/guides/skill.md +24 -13
- package/package.json +2 -2
- package/templates/beauty-salon/l10n/en.json +55 -0
- package/templates/beauty-salon/l10n/fr.json +5103 -0
- package/templates/beauty-salon/l10n/he.json +319 -0
- package/templates/beauty-salon/recipes/blog-list-thumb-start.json +364 -0
- package/templates/beauty-salon/recipes/blog-list.json +364 -0
- package/templates/beauty-salon/recipes/blog-see-all.json +50 -0
- package/templates/beauty-salon/recipes/events-inline-list.json +203 -0
- package/templates/beauty-salon/recipes/events-inline.json +284 -0
- package/templates/beauty-salon/recipes/members-list.json +445 -0
- package/templates/beauty-salon/recipes/plans-card.json +811 -0
- package/templates/beauty-salon/recipes/programs-card.json +254 -0
- package/templates/beauty-salon/recipes/programs-carousel.json +234 -0
- package/templates/beauty-salon/recipes/section-error.json +58 -0
- package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/beauty-salon/tier5-src/_shared/event-registration.ts +86 -0
- package/templates/beauty-salon/tier5-src/_shared/events-card.ts +33 -0
- package/templates/beauty-salon/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/beauty-salon/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/beauty-salon/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/beauty-salon/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/beauty-salon/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/beauty-salon/tier5-src/wix-spaces-app-language/index.ts +18 -3
- package/templates/branded-lite/l10n/fr.json +9098 -0
- package/templates/branded-lite/l10n/he.json +92 -0
- package/templates/branded-lite/recipes/blog-list-thumb-start.json +364 -0
- package/templates/branded-lite/recipes/blog-list.json +364 -0
- package/templates/branded-lite/recipes/blog-see-all.json +50 -0
- package/templates/branded-lite/recipes/events-inline-list.json +203 -0
- package/templates/branded-lite/recipes/events-inline.json +284 -0
- package/templates/branded-lite/recipes/members-list.json +445 -0
- package/templates/branded-lite/recipes/plans-card.json +811 -0
- package/templates/branded-lite/recipes/programs-card.json +254 -0
- package/templates/branded-lite/recipes/programs-carousel.json +234 -0
- package/templates/branded-lite/recipes/section-error.json +58 -0
- package/templates/branded-lite/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/branded-lite/tier5-src/_shared/events-card.ts +33 -0
- package/templates/branded-lite/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/branded-lite/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/branded-lite/tier5-src/_shared/group-privacy.ts +14 -0
- package/templates/branded-lite/tier5-src/_shared/member-row-extras.ts +1 -1
- package/templates/branded-lite/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/branded-lite/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/branded-lite/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/branded-lite/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/branded-lite/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/branded-lite/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-group/index.ts +11 -4
- package/templates/branded-lite/tier5-src/himi-branded-lite-group-about/index.ts +2 -6
- package/templates/branded-lite/tier5-src/wix-spaces-app-language/index.ts +18 -3
- package/templates/community-club/l10n/en.json +45 -0
- package/templates/community-club/l10n/fr.json +3318 -0
- package/templates/community-club/l10n/he.json +327 -0
- package/templates/community-club/recipes/blog-list-thumb-start.json +364 -0
- package/templates/community-club/recipes/blog-list.json +364 -0
- package/templates/community-club/recipes/blog-see-all.json +50 -0
- package/templates/community-club/recipes/events-inline-list.json +203 -0
- package/templates/community-club/recipes/events-inline.json +284 -0
- package/templates/community-club/recipes/members-list.json +445 -0
- package/templates/community-club/recipes/plans-card.json +811 -0
- package/templates/community-club/recipes/programs-card.json +254 -0
- package/templates/community-club/recipes/programs-carousel.json +234 -0
- package/templates/community-club/recipes/section-error.json +58 -0
- package/templates/community-club/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/community-club/tier5-src/_shared/detail-presence.ts +51 -0
- package/templates/community-club/tier5-src/_shared/events-card.ts +33 -0
- package/templates/community-club/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/community-club/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/community-club/tier5-src/_shared/group-privacy.ts +14 -0
- package/templates/community-club/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/community-club/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/community-club/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/community-club/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/community-club/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/community-club/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/community-club/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/community-club/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/community-club/tier5-src/himi-branded-lite-group/index.ts +11 -4
- package/templates/community-club/tier5-src/himi-branded-lite-group-about/index.ts +2 -6
- package/templates/community-club/tier5-src/wix-spaces-app-language/index.ts +18 -3
- package/templates/events-meetups/l10n/en.json +45 -0
- package/templates/events-meetups/l10n/fr.json +3178 -0
- package/templates/events-meetups/l10n/he.json +327 -0
- package/templates/events-meetups/recipes/blog-list-thumb-start.json +364 -0
- package/templates/events-meetups/recipes/blog-list.json +364 -0
- package/templates/events-meetups/recipes/blog-see-all.json +50 -0
- package/templates/events-meetups/recipes/events-inline-list.json +203 -0
- package/templates/events-meetups/recipes/events-inline.json +284 -0
- package/templates/events-meetups/recipes/members-list.json +445 -0
- package/templates/events-meetups/recipes/plans-card.json +811 -0
- package/templates/events-meetups/recipes/programs-card.json +254 -0
- package/templates/events-meetups/recipes/programs-carousel.json +234 -0
- package/templates/events-meetups/recipes/section-error.json +58 -0
- package/templates/events-meetups/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +51 -0
- package/templates/events-meetups/tier5-src/_shared/events-card.ts +33 -0
- package/templates/events-meetups/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/events-meetups/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/events-meetups/tier5-src/_shared/group-privacy.ts +14 -0
- package/templates/events-meetups/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/events-meetups/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/events-meetups/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/events-meetups/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/events-meetups/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/events-meetups/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/events-meetups/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/events-meetups/tier5-src/himi-branded-lite-group/index.ts +11 -4
- package/templates/events-meetups/tier5-src/himi-branded-lite-group-about/index.ts +2 -6
- package/templates/events-meetups/tier5-src/wix-spaces-app-language/index.ts +18 -3
- package/templates/gym-fitness/l10n/en.json +45 -0
- package/templates/gym-fitness/l10n/fr.json +5694 -0
- package/templates/gym-fitness/l10n/he.json +307 -0
- package/templates/gym-fitness/recipes/blog-list-thumb-start.json +364 -0
- package/templates/gym-fitness/recipes/blog-list.json +364 -0
- package/templates/gym-fitness/recipes/blog-see-all.json +50 -0
- package/templates/gym-fitness/recipes/events-inline-list.json +203 -0
- package/templates/gym-fitness/recipes/events-inline.json +284 -0
- package/templates/gym-fitness/recipes/members-list.json +445 -0
- package/templates/gym-fitness/recipes/plans-card.json +811 -0
- package/templates/gym-fitness/recipes/programs-card.json +254 -0
- package/templates/gym-fitness/recipes/programs-carousel.json +234 -0
- package/templates/gym-fitness/recipes/section-error.json +58 -0
- package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/gym-fitness/tier5-src/_shared/events-card.ts +33 -0
- package/templates/gym-fitness/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/gym-fitness/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/gym-fitness/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/gym-fitness/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/gym-fitness/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/gym-fitness/tier5-src/wix-spaces-app-language/index.ts +18 -3
- package/templates/nonprofit-cause/l10n/en.json +45 -0
- package/templates/nonprofit-cause/l10n/fr.json +3766 -0
- package/templates/nonprofit-cause/l10n/he.json +307 -0
- package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +364 -0
- package/templates/nonprofit-cause/recipes/blog-list.json +364 -0
- package/templates/nonprofit-cause/recipes/blog-see-all.json +50 -0
- package/templates/nonprofit-cause/recipes/events-inline-list.json +203 -0
- package/templates/nonprofit-cause/recipes/events-inline.json +284 -0
- package/templates/nonprofit-cause/recipes/members-list.json +445 -0
- package/templates/nonprofit-cause/recipes/plans-card.json +811 -0
- package/templates/nonprofit-cause/recipes/programs-card.json +254 -0
- package/templates/nonprofit-cause/recipes/programs-carousel.json +234 -0
- package/templates/nonprofit-cause/recipes/section-error.json +58 -0
- package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/nonprofit-cause/tier5-src/_shared/events-card.ts +33 -0
- package/templates/nonprofit-cause/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/nonprofit-cause/tier5-src/_shared/group-privacy.ts +14 -0
- package/templates/nonprofit-cause/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/nonprofit-cause/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/nonprofit-cause/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/nonprofit-cause/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-group/index.ts +11 -4
- package/templates/nonprofit-cause/tier5-src/himi-branded-lite-group-about/index.ts +2 -6
- package/templates/nonprofit-cause/tier5-src/wix-spaces-app-language/index.ts +18 -3
- package/templates/podcast-creator/l10n/en.json +45 -0
- package/templates/podcast-creator/l10n/fr.json +3608 -0
- package/templates/podcast-creator/l10n/he.json +311 -0
- package/templates/podcast-creator/recipes/blog-list-thumb-start.json +364 -0
- package/templates/podcast-creator/recipes/blog-list.json +364 -0
- package/templates/podcast-creator/recipes/blog-see-all.json +50 -0
- package/templates/podcast-creator/recipes/events-inline-list.json +203 -0
- package/templates/podcast-creator/recipes/events-inline.json +284 -0
- package/templates/podcast-creator/recipes/members-list.json +445 -0
- package/templates/podcast-creator/recipes/plans-card.json +811 -0
- package/templates/podcast-creator/recipes/programs-card.json +254 -0
- package/templates/podcast-creator/recipes/programs-carousel.json +234 -0
- package/templates/podcast-creator/recipes/section-error.json +58 -0
- package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/podcast-creator/tier5-src/_shared/events-card.ts +33 -0
- package/templates/podcast-creator/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/podcast-creator/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/podcast-creator/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/podcast-creator/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/podcast-creator/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/podcast-creator/tier5-src/wix-spaces-app-language/index.ts +18 -3
- package/templates/portfolio-creative/l10n/en.json +45 -0
- package/templates/portfolio-creative/l10n/fr.json +4197 -0
- package/templates/portfolio-creative/l10n/he.json +335 -0
- package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +364 -0
- package/templates/portfolio-creative/recipes/blog-list.json +364 -0
- package/templates/portfolio-creative/recipes/blog-see-all.json +50 -0
- package/templates/portfolio-creative/recipes/events-inline-list.json +203 -0
- package/templates/portfolio-creative/recipes/events-inline.json +284 -0
- package/templates/portfolio-creative/recipes/members-list.json +445 -0
- package/templates/portfolio-creative/recipes/plans-card.json +811 -0
- package/templates/portfolio-creative/recipes/programs-card.json +254 -0
- package/templates/portfolio-creative/recipes/programs-carousel.json +234 -0
- package/templates/portfolio-creative/recipes/section-error.json +58 -0
- package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/portfolio-creative/tier5-src/_shared/events-card.ts +33 -0
- package/templates/portfolio-creative/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/portfolio-creative/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/portfolio-creative/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/portfolio-creative/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/portfolio-creative/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/portfolio-creative/tier5-src/wix-spaces-app-language/index.ts +18 -3
- package/templates/restaurant/l10n/en.json +45 -0
- package/templates/restaurant/l10n/fr.json +3845 -0
- package/templates/restaurant/l10n/he.json +335 -0
- package/templates/restaurant/recipes/blog-list-thumb-start.json +364 -0
- package/templates/restaurant/recipes/blog-list.json +364 -0
- package/templates/restaurant/recipes/blog-see-all.json +50 -0
- package/templates/restaurant/recipes/events-inline-list.json +203 -0
- package/templates/restaurant/recipes/events-inline.json +284 -0
- package/templates/restaurant/recipes/members-list.json +445 -0
- package/templates/restaurant/recipes/plans-card.json +811 -0
- package/templates/restaurant/recipes/programs-card.json +254 -0
- package/templates/restaurant/recipes/programs-carousel.json +234 -0
- package/templates/restaurant/recipes/section-error.json +58 -0
- package/templates/restaurant/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/restaurant/tier5-src/_shared/events-card.ts +33 -0
- package/templates/restaurant/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/restaurant/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/restaurant/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/restaurant/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/restaurant/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/restaurant/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/restaurant/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/restaurant/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/restaurant/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/restaurant/tier5-src/wix-spaces-app-language/index.ts +18 -3
- package/templates/retail-store/l10n/en.json +60 -0
- package/templates/retail-store/l10n/fr.json +3621 -0
- package/templates/retail-store/l10n/he.json +355 -0
- package/templates/retail-store/recipes/blog-list-thumb-start.json +364 -0
- package/templates/retail-store/recipes/blog-list.json +364 -0
- package/templates/retail-store/recipes/blog-see-all.json +50 -0
- package/templates/retail-store/recipes/events-inline-list.json +203 -0
- package/templates/retail-store/recipes/events-inline.json +284 -0
- package/templates/retail-store/recipes/members-list.json +445 -0
- package/templates/retail-store/recipes/plans-card.json +811 -0
- package/templates/retail-store/recipes/programs-card.json +254 -0
- package/templates/retail-store/recipes/programs-carousel.json +234 -0
- package/templates/retail-store/recipes/section-error.json +58 -0
- package/templates/retail-store/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/retail-store/tier5-src/_shared/event-registration.ts +86 -0
- package/templates/retail-store/tier5-src/_shared/events-card.ts +33 -0
- package/templates/retail-store/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/retail-store/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/retail-store/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/retail-store/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/retail-store/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/retail-store/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/retail-store/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/retail-store/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/retail-store/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/retail-store/tier5-src/wix-spaces-app-language/index.ts +18 -3
- package/templates/yoga-studio/l10n/en.json +24 -0
- package/templates/yoga-studio/l10n/fr.json +4595 -0
- package/templates/yoga-studio/l10n/he.json +132 -0
- package/templates/yoga-studio/recipes/blog-list-thumb-start.json +364 -0
- package/templates/yoga-studio/recipes/blog-list.json +364 -0
- package/templates/yoga-studio/recipes/blog-see-all.json +50 -0
- package/templates/yoga-studio/recipes/events-inline-list.json +203 -0
- package/templates/yoga-studio/recipes/events-inline.json +284 -0
- package/templates/yoga-studio/recipes/members-list.json +445 -0
- package/templates/yoga-studio/recipes/plans-card.json +811 -0
- package/templates/yoga-studio/recipes/programs-card.json +254 -0
- package/templates/yoga-studio/recipes/programs-carousel.json +234 -0
- package/templates/yoga-studio/recipes/section-error.json +58 -0
- package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +207 -0
- package/templates/yoga-studio/tier5-src/_shared/events-card.ts +33 -0
- package/templates/yoga-studio/tier5-src/_shared/events-inline-options.ts +25 -0
- package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +82 -0
- package/templates/yoga-studio/tier5-src/_shared/member-activity.ts +34 -0
- package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +167 -0
- package/templates/yoga-studio/tier5-src/_shared/members-directory-view.ts +39 -0
- package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +267 -0
- package/templates/yoga-studio/tier5-src/_shared/plan-facts.ts +87 -0
- package/templates/yoga-studio/tier5-src/_shared/plans-section.ts +106 -0
- package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +728 -0
- package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +21 -0
- package/templates/yoga-studio/tier5-src/wix-spaces-app-language/index.ts +18 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// "2 hours ago" for a recent timestamp, the plain date once it is a week old (the One App blog list and cards).
|
|
2
|
+
// Pure and Intl-free: the absolute date comes from engine-intl, whose fallback never throws on the wrist engines.
|
|
3
|
+
import { copyParam, copyPlural } from "./himi-copy.js";
|
|
4
|
+
import { formatDateMedium } from "./engine-intl.js";
|
|
5
|
+
|
|
6
|
+
const MINUTE = 60_000;
|
|
7
|
+
const HOUR = 60 * MINUTE;
|
|
8
|
+
const DAY = 24 * HOUR;
|
|
9
|
+
const RELATIVE_DAYS = 7;
|
|
10
|
+
|
|
11
|
+
/** "" when `iso` is missing or not a date. A time in the future (a clock skew) reads as the date, never "-3 minutes ago". */
|
|
12
|
+
export function relativeTime(iso: string | undefined, now: number): string {
|
|
13
|
+
const at = iso ? Date.parse(iso) : NaN;
|
|
14
|
+
if (!Number.isFinite(at)) return "";
|
|
15
|
+
const age = now - at;
|
|
16
|
+
if (age < 0 || age >= RELATIVE_DAYS * DAY) return formatDateMedium(new Date(at));
|
|
17
|
+
if (age < MINUTE) return copyParam("relativeTime.justNow", "Just now");
|
|
18
|
+
if (age < HOUR) return copyPlural("relativeTime.minutesAgo", "{n, plural, one {# minute ago} other {# minutes ago}}", Math.floor(age / MINUTE));
|
|
19
|
+
if (age < DAY) return copyPlural("relativeTime.hoursAgo", "{n, plural, one {# hour ago} other {# hours ago}}", Math.floor(age / HOUR));
|
|
20
|
+
return copyPlural("relativeTime.daysAgo", "{n, plural, one {# day ago} other {# days ago}}", Math.floor(age / DAY));
|
|
21
|
+
}
|
|
@@ -9,13 +9,25 @@ import { dispatch } from "@himalaya/dispatch";
|
|
|
9
9
|
interface Row { id: string; name: string; subtitle: string; selected: boolean }
|
|
10
10
|
interface S { status: "ready"; options: Row[] }
|
|
11
11
|
|
|
12
|
-
/**
|
|
13
|
-
|
|
12
|
+
/** What a host that cannot say which languages the app ships offers: the three the template's first catalogs cover. A host
|
|
13
|
+
* that answers `locale.get` with its `available` list (every current one) replaces this with the real list. */
|
|
14
|
+
const DEFAULT_OPTIONS: Omit<Row, "subtitle" | "selected">[] = [
|
|
14
15
|
{ id: "en", name: "English" },
|
|
15
16
|
{ id: "es", name: "Español" },
|
|
16
17
|
{ id: "he", name: "עברית" },
|
|
17
18
|
];
|
|
18
19
|
|
|
20
|
+
let LOCALE_OPTIONS = DEFAULT_OPTIONS;
|
|
21
|
+
|
|
22
|
+
/** The host's `available` list (`{ tag, nativeName }[]`), or undefined when it sent none that can be used. */
|
|
23
|
+
function optionsFrom(payload: { available?: unknown } | null): Omit<Row, "subtitle" | "selected">[] | undefined {
|
|
24
|
+
if (!Array.isArray(payload?.available)) return undefined;
|
|
25
|
+
const rows = (payload.available as { tag?: unknown; nativeName?: unknown }[])
|
|
26
|
+
.filter((a) => typeof a?.tag === "string" && a.tag !== "")
|
|
27
|
+
.map((a) => ({ id: a.tag as string, name: typeof a.nativeName === "string" && a.nativeName ? a.nativeName : (a.tag as string) }));
|
|
28
|
+
return rows.length ? rows : undefined;
|
|
29
|
+
}
|
|
30
|
+
|
|
19
31
|
function withSelected(selected: string): Row[] {
|
|
20
32
|
return LOCALE_OPTIONS.map((o) => ({
|
|
21
33
|
...o,
|
|
@@ -43,11 +55,14 @@ const svc = defineService<S, {
|
|
|
43
55
|
},
|
|
44
56
|
hydrate: async (s) => {
|
|
45
57
|
try {
|
|
46
|
-
const payload = (await dispatch("locale.get")) as { tag?: string } | null;
|
|
58
|
+
const payload = (await dispatch("locale.get")) as { tag?: string; available?: unknown } | null;
|
|
59
|
+
// The app's own languages, as its host reports them: a catalog added to the app is selectable with no change here.
|
|
60
|
+
LOCALE_OPTIONS = optionsFrom(payload) ?? DEFAULT_OPTIONS;
|
|
47
61
|
const tag = typeof payload?.tag === "string" ? payload.tag : "en";
|
|
48
62
|
if (LOCALE_OPTIONS.some((o) => o.id === tag)) {
|
|
49
63
|
return { ...s, options: withSelected(tag) };
|
|
50
64
|
}
|
|
65
|
+
return { ...s, options: withSelected("") };
|
|
51
66
|
} catch {
|
|
52
67
|
// ignore — leave default Selected
|
|
53
68
|
}
|
|
@@ -28,6 +28,13 @@
|
|
|
28
28
|
"key": "accountSettings.confirmPrivacyCta",
|
|
29
29
|
"keyOrigin": "string-table"
|
|
30
30
|
},
|
|
31
|
+
"h_060be00f4f26": {
|
|
32
|
+
"source": "All categories",
|
|
33
|
+
"kind": "atom.label",
|
|
34
|
+
"translation": "",
|
|
35
|
+
"key": "memberPrograms.filterAllCategories",
|
|
36
|
+
"keyOrigin": "string-table"
|
|
37
|
+
},
|
|
31
38
|
"h_085f317f41a0": {
|
|
32
39
|
"source": "Update the app to change your password.",
|
|
33
40
|
"kind": "Text.text",
|
|
@@ -612,6 +619,12 @@
|
|
|
612
619
|
"key": "product.adding",
|
|
613
620
|
"translation": ""
|
|
614
621
|
},
|
|
622
|
+
"h_66587a7a62a9": {
|
|
623
|
+
"source": "Follow",
|
|
624
|
+
"kind": "Button.title",
|
|
625
|
+
"translation": "",
|
|
626
|
+
"key": "member.followCta"
|
|
627
|
+
},
|
|
615
628
|
"h_67300d0fed7c": {
|
|
616
629
|
"source": "Clear search",
|
|
617
630
|
"kind": "Button.title",
|
|
@@ -822,6 +835,13 @@
|
|
|
822
835
|
"key": "accountSettings.profileUrlUnavailable",
|
|
823
836
|
"keyOrigin": "string-table"
|
|
824
837
|
},
|
|
838
|
+
"h_8de84cb21a15": {
|
|
839
|
+
"source": "No members yet",
|
|
840
|
+
"kind": "EmptyState.title",
|
|
841
|
+
"translation": "",
|
|
842
|
+
"key": "members.emptyTitle",
|
|
843
|
+
"keyOrigin": "string-table"
|
|
844
|
+
},
|
|
825
845
|
"h_8e1db3b4fc0e": {
|
|
826
846
|
"source": "Confirm unblock",
|
|
827
847
|
"kind": "Button.title",
|
|
@@ -857,6 +877,12 @@
|
|
|
857
877
|
"key": "address.backCta",
|
|
858
878
|
"keyOrigin": "string-table"
|
|
859
879
|
},
|
|
880
|
+
"h_90eeb1008380": {
|
|
881
|
+
"source": "Following",
|
|
882
|
+
"kind": "Button.title",
|
|
883
|
+
"translation": "",
|
|
884
|
+
"key": "member.followingCta"
|
|
885
|
+
},
|
|
860
886
|
"h_92323a771155": {
|
|
861
887
|
"source": "Post comment",
|
|
862
888
|
"kind": "Button.title",
|
|
@@ -884,6 +910,13 @@
|
|
|
884
910
|
"key": "shop.layoutLabel",
|
|
885
911
|
"keyOrigin": "string-table"
|
|
886
912
|
},
|
|
913
|
+
"h_982d5244f7e9": {
|
|
914
|
+
"source": "All programs",
|
|
915
|
+
"kind": "atom.label",
|
|
916
|
+
"translation": "",
|
|
917
|
+
"key": "memberPrograms.filterAll",
|
|
918
|
+
"keyOrigin": "string-table"
|
|
919
|
+
},
|
|
887
920
|
"h_9a88b3e90f67": {
|
|
888
921
|
"source": "App & support",
|
|
889
922
|
"kind": "Text.text",
|
|
@@ -1517,6 +1550,13 @@
|
|
|
1517
1550
|
"key": "addresses.signInTitle",
|
|
1518
1551
|
"keyOrigin": "string-table"
|
|
1519
1552
|
},
|
|
1553
|
+
"h_e854ef4cb4a2": {
|
|
1554
|
+
"source": "Programs I joined",
|
|
1555
|
+
"kind": "atom.label",
|
|
1556
|
+
"translation": "",
|
|
1557
|
+
"key": "memberPrograms.filterJoined",
|
|
1558
|
+
"keyOrigin": "string-table"
|
|
1559
|
+
},
|
|
1520
1560
|
"h_eaf5cc63958d": {
|
|
1521
1561
|
"source": "Order details are unavailable for this account.",
|
|
1522
1562
|
"kind": "ErrorState.body",
|
|
@@ -1675,6 +1715,11 @@
|
|
|
1675
1715
|
"key": "tab.profile",
|
|
1676
1716
|
"keyOrigin": "string-table"
|
|
1677
1717
|
},
|
|
1718
|
+
"w_b9bda18537fd": {
|
|
1719
|
+
"source": "Follow",
|
|
1720
|
+
"key": "loyalty.follow",
|
|
1721
|
+
"translation": ""
|
|
1722
|
+
},
|
|
1678
1723
|
"h_03e89418ffdf": {
|
|
1679
1724
|
"source": "Your Home",
|
|
1680
1725
|
"kind": "Text.text",
|
|
@@ -1920,6 +1965,11 @@
|
|
|
1920
1965
|
"kind": "Button.title",
|
|
1921
1966
|
"translation": ""
|
|
1922
1967
|
},
|
|
1968
|
+
"h_9e2ff6c5483c": {
|
|
1969
|
+
"source": "RSVP",
|
|
1970
|
+
"kind": "Button.title",
|
|
1971
|
+
"translation": ""
|
|
1972
|
+
},
|
|
1923
1973
|
"h_9f80b0151704": {
|
|
1924
1974
|
"source": "This product has more options than this screen can show. Open it on the website to order.",
|
|
1925
1975
|
"kind": "Text.text",
|
|
@@ -1965,6 +2015,11 @@
|
|
|
1965
2015
|
"kind": "Text.text",
|
|
1966
2016
|
"translation": ""
|
|
1967
2017
|
},
|
|
2018
|
+
"h_ca5c00a39ad2": {
|
|
2019
|
+
"source": "Join Waitlist",
|
|
2020
|
+
"kind": "Text.text",
|
|
2021
|
+
"translation": ""
|
|
2022
|
+
},
|
|
1968
2023
|
"h_d008923e796d": {
|
|
1969
2024
|
"source": "Clear search and filters",
|
|
1970
2025
|
"kind": "Button.title",
|
|
@@ -1985,6 +2040,11 @@
|
|
|
1985
2040
|
"kind": "Button.title",
|
|
1986
2041
|
"translation": ""
|
|
1987
2042
|
},
|
|
2043
|
+
"h_e8fcb82ad927": {
|
|
2044
|
+
"source": "Buy Tickets",
|
|
2045
|
+
"kind": "Button.title",
|
|
2046
|
+
"translation": ""
|
|
2047
|
+
},
|
|
1988
2048
|
"h_e963907dac5c": {
|
|
1989
2049
|
"source": "Remove",
|
|
1990
2050
|
"kind": "Button.title",
|