@wix/himalaya-cli 0.1761.0 → 0.1763.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 +5 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +10 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/site-shell.d.ts +23 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/core.mjs +136 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/sdui.mjs +112 -0
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{7c3c05d452efd3f1e1e81b47dde7d9fa870c1e5217b00b253661a22b571fdbef.bin → a96903bb457796ee606fe986078d9629ba53b5ba4013bdb94e8afba3288284ed.bin} +1 -1
- package/dist/browser-plane/sw.js +7 -7
- package/dist/cli.mjs +51413 -50002
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/base44-app-to-himi-app.md +56 -0
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +10 -0
- package/guides/himi-json-output.md +35 -0
- package/guides/one-app-section-mappings.md +6 -6
- package/guides/one-app-to-himi-app.md +33 -4
- package/guides/push-cli-onboarding.md +25 -14
- package/guides/recipe-dynamic-list.md +4 -2
- package/guides/wix-business-context.md +1 -1
- package/package.json +2 -2
- package/templates/beauty-salon/l10n/ar.json +9 -420
- package/templates/beauty-salon/l10n/cs.json +9 -420
- package/templates/beauty-salon/l10n/da.json +9 -420
- package/templates/beauty-salon/l10n/de.json +9 -420
- package/templates/beauty-salon/l10n/el.json +9 -420
- package/templates/beauty-salon/l10n/en.json +8 -61
- package/templates/beauty-salon/l10n/es.json +9 -420
- package/templates/beauty-salon/l10n/fi.json +9 -420
- package/templates/beauty-salon/l10n/fr.json +9 -420
- package/templates/beauty-salon/l10n/he.json +9 -338
- package/templates/beauty-salon/l10n/hu.json +9 -420
- package/templates/beauty-salon/l10n/id.json +9 -420
- package/templates/beauty-salon/l10n/it.json +9 -420
- package/templates/beauty-salon/l10n/ja.json +9 -420
- package/templates/beauty-salon/l10n/ko.json +9 -420
- package/templates/beauty-salon/l10n/lt.json +9 -420
- package/templates/beauty-salon/l10n/nl.json +9 -420
- package/templates/beauty-salon/l10n/no.json +9 -420
- package/templates/beauty-salon/l10n/pl.json +9 -420
- package/templates/beauty-salon/l10n/pt.json +9 -420
- package/templates/beauty-salon/l10n/ru.json +9 -420
- package/templates/beauty-salon/l10n/sv.json +9 -420
- package/templates/beauty-salon/l10n/th.json +9 -420
- package/templates/beauty-salon/l10n/tr.json +9 -420
- package/templates/beauty-salon/l10n/uk.json +9 -420
- package/templates/beauty-salon/l10n/vi.json +9 -420
- package/templates/beauty-salon/l10n/zh.json +9 -420
- package/templates/branded-lite/l10n/ar.json +31 -5
- package/templates/branded-lite/l10n/cs.json +31 -5
- package/templates/branded-lite/l10n/da.json +31 -5
- package/templates/branded-lite/l10n/de.json +31 -5
- package/templates/branded-lite/l10n/el.json +31 -5
- package/templates/branded-lite/l10n/en.json +8 -6
- package/templates/branded-lite/l10n/es.json +31 -5
- package/templates/branded-lite/l10n/fi.json +31 -5
- package/templates/branded-lite/l10n/fr.json +31 -5
- package/templates/branded-lite/l10n/he.json +27 -4
- package/templates/branded-lite/l10n/hu.json +31 -5
- package/templates/branded-lite/l10n/id.json +31 -5
- package/templates/branded-lite/l10n/it.json +31 -5
- package/templates/branded-lite/l10n/ja.json +31 -5
- package/templates/branded-lite/l10n/ko.json +31 -5
- package/templates/branded-lite/l10n/lt.json +31 -5
- package/templates/branded-lite/l10n/nl.json +31 -5
- package/templates/branded-lite/l10n/no.json +31 -5
- package/templates/branded-lite/l10n/pl.json +31 -5
- package/templates/branded-lite/l10n/pt.json +31 -5
- package/templates/branded-lite/l10n/ru.json +31 -5
- package/templates/branded-lite/l10n/sv.json +31 -5
- package/templates/branded-lite/l10n/th.json +31 -5
- package/templates/branded-lite/l10n/tr.json +31 -5
- package/templates/branded-lite/l10n/uk.json +31 -5
- package/templates/branded-lite/l10n/vi.json +31 -5
- package/templates/branded-lite/l10n/zh.json +31 -5
- package/templates/branded-lite/recipes/blog-search.json +45 -0
- package/templates/{events-meetups/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-carousel.json} +39 -118
- package/templates/{gym-fitness/recipes/programs-participant-carousel.json → branded-lite/recipes/galleries-list.json} +43 -121
- package/templates/{community-club/recipes/events-inline-list.json → branded-lite/recipes/group-feed.json} +112 -89
- package/templates/{beauty-salon/recipes/programs-participant-carousel.json → branded-lite/recipes/groups-cards.json} +71 -93
- package/templates/{beauty-salon/recipes/groups-list.json → branded-lite/recipes/services-list.json} +33 -9
- package/templates/{community-club/recipes/groups-list.json → branded-lite/recipes/subscriptions-list.json} +124 -60
- package/templates/branded-lite/recipes/upcoming-bookings.json +350 -0
- package/templates/branded-lite/recipes/videos-carousel.json +248 -0
- package/templates/branded-lite/tier5-src/_shared/blog-list.ts +75 -21
- package/templates/branded-lite/tier5-src/_shared/galleries-section.ts +115 -0
- package/templates/branded-lite/tier5-src/_shared/group-feed-section.ts +137 -0
- package/templates/branded-lite/tier5-src/_shared/groups-section.ts +7 -3
- package/templates/branded-lite/tier5-src/_shared/my-subscriptions-section.ts +107 -0
- package/templates/branded-lite/tier5-src/_shared/plans-section.ts +11 -3
- package/templates/branded-lite/tier5-src/_shared/programs-section.ts +2 -0
- package/templates/branded-lite/tier5-src/_shared/services-section.ts +122 -0
- package/templates/branded-lite/tier5-src/_shared/upcoming-bookings-section.ts +102 -0
- package/templates/branded-lite/tier5-src/_shared/videos-section.ts +91 -0
- package/templates/brandy/README.md +21 -3
- package/templates/brandy/config.ts +131 -14
- package/templates/brandy/dev/index.ts +41 -5
- package/templates/brandy/dev/member-screens.ts +14412 -0
- package/templates/brandy/provisioning.member.example.json +25 -0
- package/templates/brandy/tier5-src/_shared/branded-lite-hosted.ts +280 -0
- package/templates/brandy/tier5-src/_shared/branded-load-state.ts +109 -0
- package/templates/brandy/tier5-src/_shared/chat-live.ts +242 -0
- package/templates/brandy/tier5-src/_shared/collection-contract.ts +228 -0
- package/templates/brandy/tier5-src/_shared/collection-query-legacy.ts +194 -0
- package/templates/brandy/tier5-src/_shared/collection-query.ts +252 -0
- package/templates/brandy/tier5-src/_shared/collection-service.ts +423 -0
- package/templates/brandy/tier5-src/_shared/engine-intl.ts +523 -0
- package/templates/brandy/tier5-src/_shared/himi-account.ts +194 -0
- package/templates/brandy/tier5-src/_shared/himi-store.ts +7 -0
- package/templates/brandy/tier5-src/_shared/himi-text.ts +24 -0
- package/templates/brandy/tier5-src/_shared/hosted-checkout.ts +70 -0
- package/templates/brandy/tier5-src/_shared/iap-worker.ts +127 -0
- package/templates/brandy/tier5-src/_shared/inbox-rooms.ts +68 -0
- package/templates/brandy/tier5-src/_shared/live-session.ts +172 -0
- package/templates/brandy/tier5-src/_shared/local-preferences.ts +38 -0
- package/templates/brandy/tier5-src/_shared/member-access.ts +63 -0
- package/templates/brandy/tier5-src/_shared/member-account-routes.ts +52 -0
- package/templates/brandy/tier5-src/_shared/member-orders.ts +8 -0
- package/templates/brandy/tier5-src/_shared/member-read.ts +82 -0
- package/templates/brandy/tier5-src/_shared/member-screen.ts +99 -0
- package/templates/brandy/tier5-src/_shared/notification-target.ts +141 -0
- package/templates/brandy/tier5-src/_shared/online-actions.ts +76 -0
- package/templates/brandy/tier5-src/_shared/owner-load-error.ts +348 -0
- package/templates/brandy/tier5-src/_shared/payment-setup.ts +6 -0
- package/templates/brandy/tier5-src/_shared/pricing-plan-display.ts +64 -0
- package/templates/brandy/tier5-src/_shared/rich-body.ts +78 -0
- package/templates/brandy/tier5-src/_shared/rich-content-link.ts +34 -0
- package/templates/brandy/tier5-src/_shared/sign-in-sheet.ts +18 -0
- package/templates/brandy/tier5-src/_shared/store-order-presentation.ts +56 -0
- package/templates/brandy/tier5-src/_shared/wix-bi.ts +85 -0
- package/templates/brandy/tier5-src/_shared/wix-member-links.ts +114 -0
- package/templates/brandy/tier5-src/himi-branded-lite-inbox/index.ts +92 -0
- package/templates/brandy/tier5-src/himi-branded-lite-notifications/index.ts +256 -0
- package/templates/brandy/tier5-src/himi-branded-lite-order/index.ts +477 -0
- package/templates/brandy/tier5-src/himi-branded-lite-orders/index.ts +327 -0
- package/templates/brandy/tier5-src/himi-store-account/index.ts +1007 -0
- package/templates/brandy/tier5-src/wix-spaces-chat-thread/index.ts +350 -0
- package/templates/brandy/tier5-src/wix-spaces-delete-account/index.ts +59 -0
- package/templates/brandy/tier5-src/wix-spaces-my-subscriptions/index.ts +89 -0
- package/templates/brandy/tier5-src/wix-spaces-subscription-detail/index.ts +139 -0
- package/templates/brandy/tokens.json +25 -0
- package/templates/community-club/l10n/ar.json +0 -412
- package/templates/community-club/l10n/cs.json +0 -412
- package/templates/community-club/l10n/da.json +0 -412
- package/templates/community-club/l10n/de.json +0 -412
- package/templates/community-club/l10n/el.json +0 -412
- package/templates/community-club/l10n/en.json +1 -46
- package/templates/community-club/l10n/es.json +0 -412
- package/templates/community-club/l10n/fi.json +0 -412
- package/templates/community-club/l10n/fr.json +0 -412
- package/templates/community-club/l10n/he.json +0 -331
- package/templates/community-club/l10n/hu.json +0 -412
- package/templates/community-club/l10n/id.json +0 -412
- package/templates/community-club/l10n/it.json +0 -412
- package/templates/community-club/l10n/ja.json +0 -412
- package/templates/community-club/l10n/ko.json +0 -412
- package/templates/community-club/l10n/lt.json +0 -412
- package/templates/community-club/l10n/nl.json +0 -412
- package/templates/community-club/l10n/no.json +0 -412
- package/templates/community-club/l10n/pl.json +0 -412
- package/templates/community-club/l10n/pt.json +0 -412
- package/templates/community-club/l10n/ru.json +0 -412
- package/templates/community-club/l10n/sv.json +0 -412
- package/templates/community-club/l10n/th.json +0 -412
- package/templates/community-club/l10n/tr.json +0 -412
- package/templates/community-club/l10n/uk.json +0 -412
- package/templates/community-club/l10n/vi.json +0 -412
- package/templates/community-club/l10n/zh.json +0 -412
- package/templates/events-meetups/l10n/ar.json +0 -412
- package/templates/events-meetups/l10n/cs.json +0 -412
- package/templates/events-meetups/l10n/da.json +0 -412
- package/templates/events-meetups/l10n/de.json +0 -412
- package/templates/events-meetups/l10n/el.json +0 -412
- package/templates/events-meetups/l10n/en.json +1 -46
- package/templates/events-meetups/l10n/es.json +0 -412
- package/templates/events-meetups/l10n/fi.json +0 -412
- package/templates/events-meetups/l10n/fr.json +0 -412
- package/templates/events-meetups/l10n/he.json +0 -331
- package/templates/events-meetups/l10n/hu.json +0 -412
- package/templates/events-meetups/l10n/id.json +0 -412
- package/templates/events-meetups/l10n/it.json +0 -412
- package/templates/events-meetups/l10n/ja.json +0 -412
- package/templates/events-meetups/l10n/ko.json +0 -412
- package/templates/events-meetups/l10n/lt.json +0 -412
- package/templates/events-meetups/l10n/nl.json +0 -412
- package/templates/events-meetups/l10n/no.json +0 -412
- package/templates/events-meetups/l10n/pl.json +0 -412
- package/templates/events-meetups/l10n/pt.json +0 -412
- package/templates/events-meetups/l10n/ru.json +0 -412
- package/templates/events-meetups/l10n/sv.json +0 -412
- package/templates/events-meetups/l10n/th.json +0 -412
- package/templates/events-meetups/l10n/tr.json +0 -412
- package/templates/events-meetups/l10n/uk.json +0 -412
- package/templates/events-meetups/l10n/vi.json +0 -412
- package/templates/events-meetups/l10n/zh.json +0 -412
- package/templates/gym-fitness/l10n/ar.json +9 -405
- package/templates/gym-fitness/l10n/cs.json +9 -405
- package/templates/gym-fitness/l10n/da.json +9 -405
- package/templates/gym-fitness/l10n/de.json +9 -405
- package/templates/gym-fitness/l10n/el.json +9 -405
- package/templates/gym-fitness/l10n/en.json +8 -51
- package/templates/gym-fitness/l10n/es.json +9 -405
- package/templates/gym-fitness/l10n/fi.json +9 -405
- package/templates/gym-fitness/l10n/fr.json +9 -405
- package/templates/gym-fitness/l10n/he.json +9 -326
- package/templates/gym-fitness/l10n/hu.json +9 -405
- package/templates/gym-fitness/l10n/id.json +9 -405
- package/templates/gym-fitness/l10n/it.json +9 -405
- package/templates/gym-fitness/l10n/ja.json +9 -405
- package/templates/gym-fitness/l10n/ko.json +9 -405
- package/templates/gym-fitness/l10n/lt.json +9 -405
- package/templates/gym-fitness/l10n/nl.json +9 -405
- package/templates/gym-fitness/l10n/no.json +9 -405
- package/templates/gym-fitness/l10n/pl.json +9 -405
- package/templates/gym-fitness/l10n/pt.json +9 -405
- package/templates/gym-fitness/l10n/ru.json +9 -405
- package/templates/gym-fitness/l10n/sv.json +9 -405
- package/templates/gym-fitness/l10n/th.json +9 -405
- package/templates/gym-fitness/l10n/tr.json +9 -405
- package/templates/gym-fitness/l10n/uk.json +9 -405
- package/templates/gym-fitness/l10n/vi.json +9 -405
- package/templates/gym-fitness/l10n/zh.json +9 -405
- package/templates/nonprofit-cause/l10n/ar.json +0 -387
- package/templates/nonprofit-cause/l10n/cs.json +0 -387
- package/templates/nonprofit-cause/l10n/da.json +0 -387
- package/templates/nonprofit-cause/l10n/de.json +0 -387
- package/templates/nonprofit-cause/l10n/el.json +0 -387
- package/templates/nonprofit-cause/l10n/en.json +1 -46
- package/templates/nonprofit-cause/l10n/es.json +0 -387
- package/templates/nonprofit-cause/l10n/fi.json +0 -387
- package/templates/nonprofit-cause/l10n/fr.json +0 -387
- package/templates/nonprofit-cause/l10n/he.json +0 -311
- package/templates/nonprofit-cause/l10n/hu.json +0 -387
- package/templates/nonprofit-cause/l10n/id.json +0 -387
- package/templates/nonprofit-cause/l10n/it.json +0 -387
- package/templates/nonprofit-cause/l10n/ja.json +0 -387
- package/templates/nonprofit-cause/l10n/ko.json +0 -387
- package/templates/nonprofit-cause/l10n/lt.json +0 -387
- package/templates/nonprofit-cause/l10n/nl.json +0 -387
- package/templates/nonprofit-cause/l10n/no.json +0 -387
- package/templates/nonprofit-cause/l10n/pl.json +0 -387
- package/templates/nonprofit-cause/l10n/pt.json +0 -387
- package/templates/nonprofit-cause/l10n/ru.json +0 -387
- package/templates/nonprofit-cause/l10n/sv.json +0 -387
- package/templates/nonprofit-cause/l10n/th.json +0 -387
- package/templates/nonprofit-cause/l10n/tr.json +0 -387
- package/templates/nonprofit-cause/l10n/uk.json +0 -387
- package/templates/nonprofit-cause/l10n/vi.json +0 -387
- package/templates/nonprofit-cause/l10n/zh.json +0 -387
- package/templates/podcast-creator/l10n/ar.json +0 -417
- package/templates/podcast-creator/l10n/cs.json +0 -417
- package/templates/podcast-creator/l10n/da.json +0 -417
- package/templates/podcast-creator/l10n/de.json +0 -417
- package/templates/podcast-creator/l10n/el.json +0 -417
- package/templates/podcast-creator/l10n/en.json +1 -46
- package/templates/podcast-creator/l10n/es.json +0 -417
- package/templates/podcast-creator/l10n/fi.json +0 -417
- package/templates/podcast-creator/l10n/fr.json +0 -417
- package/templates/podcast-creator/l10n/he.json +0 -335
- package/templates/podcast-creator/l10n/hu.json +0 -417
- package/templates/podcast-creator/l10n/id.json +0 -417
- package/templates/podcast-creator/l10n/it.json +0 -417
- package/templates/podcast-creator/l10n/ja.json +0 -417
- package/templates/podcast-creator/l10n/ko.json +0 -417
- package/templates/podcast-creator/l10n/lt.json +0 -417
- package/templates/podcast-creator/l10n/nl.json +0 -417
- package/templates/podcast-creator/l10n/no.json +0 -417
- package/templates/podcast-creator/l10n/pl.json +0 -417
- package/templates/podcast-creator/l10n/pt.json +0 -417
- package/templates/podcast-creator/l10n/ru.json +0 -417
- package/templates/podcast-creator/l10n/sv.json +0 -417
- package/templates/podcast-creator/l10n/th.json +0 -417
- package/templates/podcast-creator/l10n/tr.json +0 -417
- package/templates/podcast-creator/l10n/uk.json +0 -417
- package/templates/podcast-creator/l10n/vi.json +0 -417
- package/templates/podcast-creator/l10n/zh.json +0 -417
- package/templates/portfolio-creative/l10n/ar.json +0 -437
- package/templates/portfolio-creative/l10n/cs.json +0 -437
- package/templates/portfolio-creative/l10n/da.json +0 -437
- package/templates/portfolio-creative/l10n/de.json +0 -437
- package/templates/portfolio-creative/l10n/el.json +0 -437
- package/templates/portfolio-creative/l10n/en.json +1 -46
- package/templates/portfolio-creative/l10n/es.json +0 -437
- package/templates/portfolio-creative/l10n/fi.json +0 -437
- package/templates/portfolio-creative/l10n/fr.json +0 -437
- package/templates/portfolio-creative/l10n/he.json +0 -351
- package/templates/portfolio-creative/l10n/hu.json +0 -437
- package/templates/portfolio-creative/l10n/id.json +0 -437
- package/templates/portfolio-creative/l10n/it.json +0 -437
- package/templates/portfolio-creative/l10n/ja.json +0 -437
- package/templates/portfolio-creative/l10n/ko.json +0 -437
- package/templates/portfolio-creative/l10n/lt.json +0 -437
- package/templates/portfolio-creative/l10n/nl.json +0 -437
- package/templates/portfolio-creative/l10n/no.json +0 -437
- package/templates/portfolio-creative/l10n/pl.json +0 -437
- package/templates/portfolio-creative/l10n/pt.json +0 -437
- package/templates/portfolio-creative/l10n/ru.json +0 -437
- package/templates/portfolio-creative/l10n/sv.json +0 -437
- package/templates/portfolio-creative/l10n/th.json +0 -437
- package/templates/portfolio-creative/l10n/tr.json +0 -437
- package/templates/portfolio-creative/l10n/uk.json +0 -437
- package/templates/portfolio-creative/l10n/vi.json +0 -437
- package/templates/portfolio-creative/l10n/zh.json +0 -437
- package/templates/restaurant/l10n/ar.json +0 -447
- package/templates/restaurant/l10n/cs.json +0 -447
- package/templates/restaurant/l10n/da.json +0 -447
- package/templates/restaurant/l10n/de.json +0 -447
- package/templates/restaurant/l10n/el.json +0 -447
- package/templates/restaurant/l10n/en.json +1 -46
- package/templates/restaurant/l10n/es.json +0 -447
- package/templates/restaurant/l10n/fi.json +0 -447
- package/templates/restaurant/l10n/fr.json +0 -447
- package/templates/restaurant/l10n/he.json +0 -359
- package/templates/restaurant/l10n/hu.json +0 -447
- package/templates/restaurant/l10n/id.json +0 -447
- package/templates/restaurant/l10n/it.json +0 -447
- package/templates/restaurant/l10n/ja.json +0 -447
- package/templates/restaurant/l10n/ko.json +0 -447
- package/templates/restaurant/l10n/lt.json +0 -447
- package/templates/restaurant/l10n/nl.json +0 -447
- package/templates/restaurant/l10n/no.json +0 -447
- package/templates/restaurant/l10n/pl.json +0 -447
- package/templates/restaurant/l10n/pt.json +0 -447
- package/templates/restaurant/l10n/ru.json +0 -447
- package/templates/restaurant/l10n/sv.json +0 -447
- package/templates/restaurant/l10n/th.json +0 -447
- package/templates/restaurant/l10n/tr.json +0 -447
- package/templates/restaurant/l10n/uk.json +0 -447
- package/templates/restaurant/l10n/vi.json +0 -447
- package/templates/restaurant/l10n/zh.json +0 -447
- package/templates/retail-store/l10n/ar.json +0 -462
- package/templates/retail-store/l10n/cs.json +0 -462
- package/templates/retail-store/l10n/da.json +0 -462
- package/templates/retail-store/l10n/de.json +0 -462
- package/templates/retail-store/l10n/el.json +0 -462
- package/templates/retail-store/l10n/en.json +1 -61
- package/templates/retail-store/l10n/es.json +0 -462
- package/templates/retail-store/l10n/fi.json +0 -462
- package/templates/retail-store/l10n/fr.json +0 -462
- package/templates/retail-store/l10n/he.json +0 -371
- package/templates/retail-store/l10n/hu.json +0 -462
- package/templates/retail-store/l10n/id.json +0 -462
- package/templates/retail-store/l10n/it.json +0 -462
- package/templates/retail-store/l10n/ja.json +0 -462
- package/templates/retail-store/l10n/ko.json +0 -462
- package/templates/retail-store/l10n/lt.json +0 -462
- package/templates/retail-store/l10n/nl.json +0 -462
- package/templates/retail-store/l10n/no.json +0 -462
- package/templates/retail-store/l10n/pl.json +0 -462
- package/templates/retail-store/l10n/pt.json +0 -462
- package/templates/retail-store/l10n/ru.json +0 -462
- package/templates/retail-store/l10n/sv.json +0 -462
- package/templates/retail-store/l10n/th.json +0 -462
- package/templates/retail-store/l10n/tr.json +0 -462
- package/templates/retail-store/l10n/uk.json +0 -462
- package/templates/retail-store/l10n/vi.json +0 -462
- package/templates/retail-store/l10n/zh.json +0 -462
- package/templates/yoga-studio/l10n/ar.json +9 -197
- package/templates/yoga-studio/l10n/cs.json +9 -197
- package/templates/yoga-studio/l10n/da.json +9 -197
- package/templates/yoga-studio/l10n/de.json +9 -197
- package/templates/yoga-studio/l10n/el.json +9 -197
- package/templates/yoga-studio/l10n/en.json +8 -30
- package/templates/yoga-studio/l10n/es.json +9 -197
- package/templates/yoga-studio/l10n/fi.json +9 -197
- package/templates/yoga-studio/l10n/fr.json +9 -197
- package/templates/yoga-studio/l10n/he.json +9 -159
- package/templates/yoga-studio/l10n/hu.json +9 -197
- package/templates/yoga-studio/l10n/id.json +9 -197
- package/templates/yoga-studio/l10n/it.json +9 -197
- package/templates/yoga-studio/l10n/ja.json +9 -197
- package/templates/yoga-studio/l10n/ko.json +9 -197
- package/templates/yoga-studio/l10n/lt.json +9 -197
- package/templates/yoga-studio/l10n/nl.json +9 -197
- package/templates/yoga-studio/l10n/no.json +9 -197
- package/templates/yoga-studio/l10n/pl.json +9 -197
- package/templates/yoga-studio/l10n/pt.json +9 -197
- package/templates/yoga-studio/l10n/ru.json +9 -197
- package/templates/yoga-studio/l10n/sv.json +9 -197
- package/templates/yoga-studio/l10n/th.json +9 -197
- package/templates/yoga-studio/l10n/tr.json +9 -197
- package/templates/yoga-studio/l10n/uk.json +9 -197
- package/templates/yoga-studio/l10n/vi.json +9 -197
- package/templates/yoga-studio/l10n/zh.json +9 -197
- package/templates/beauty-salon/recipes/announcement-card.json +0 -72
- package/templates/beauty-salon/recipes/blog-hero.json +0 -95
- package/templates/beauty-salon/recipes/blog-list-thumb-start.json +0 -394
- package/templates/beauty-salon/recipes/blog-list.json +0 -394
- package/templates/beauty-salon/recipes/blog-see-all.json +0 -50
- package/templates/beauty-salon/recipes/events-inline-list.json +0 -228
- package/templates/beauty-salon/recipes/events-inline.json +0 -309
- package/templates/beauty-salon/recipes/faq-list.json +0 -503
- package/templates/beauty-salon/recipes/members-list.json +0 -445
- package/templates/beauty-salon/recipes/plans-card.json +0 -811
- package/templates/beauty-salon/recipes/products-carousel.json +0 -141
- package/templates/beauty-salon/recipes/products-grid.json +0 -143
- package/templates/beauty-salon/recipes/programs-card.json +0 -254
- package/templates/beauty-salon/recipes/programs-carousel.json +0 -234
- package/templates/beauty-salon/recipes/programs-filters.json +0 -94
- package/templates/beauty-salon/recipes/programs-see-all.json +0 -43
- package/templates/beauty-salon/recipes/section-error.json +0 -58
- package/templates/beauty-salon/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/beauty-salon/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/beauty-salon/tier5-src/_shared/event-registration.ts +0 -86
- package/templates/beauty-salon/tier5-src/_shared/events-card.ts +0 -33
- package/templates/beauty-salon/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/beauty-salon/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/beauty-salon/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/beauty-salon/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/beauty-salon/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/beauty-salon/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/beauty-salon/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/beauty-salon/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/beauty-salon/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/beauty-salon/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/beauty-salon/tier5-src/_shared/products-section.ts +0 -76
- package/templates/beauty-salon/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/beauty-salon/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/beauty-salon/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/community-club/recipes/announcement-card.json +0 -72
- package/templates/community-club/recipes/blog-hero.json +0 -95
- package/templates/community-club/recipes/blog-list-thumb-start.json +0 -394
- package/templates/community-club/recipes/blog-list.json +0 -394
- package/templates/community-club/recipes/blog-see-all.json +0 -50
- package/templates/community-club/recipes/events-inline.json +0 -309
- package/templates/community-club/recipes/faq-list.json +0 -503
- package/templates/community-club/recipes/members-list.json +0 -445
- package/templates/community-club/recipes/plans-card.json +0 -811
- package/templates/community-club/recipes/products-carousel.json +0 -141
- package/templates/community-club/recipes/products-grid.json +0 -143
- package/templates/community-club/recipes/programs-card.json +0 -254
- package/templates/community-club/recipes/programs-carousel.json +0 -234
- package/templates/community-club/recipes/programs-filters.json +0 -94
- package/templates/community-club/recipes/programs-participant-carousel.json +0 -257
- package/templates/community-club/recipes/programs-see-all.json +0 -43
- package/templates/community-club/recipes/section-error.json +0 -58
- package/templates/community-club/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/community-club/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/community-club/tier5-src/_shared/events-card.ts +0 -33
- package/templates/community-club/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/community-club/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/community-club/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/community-club/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/community-club/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/community-club/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/community-club/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/community-club/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/community-club/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/community-club/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/community-club/tier5-src/_shared/products-section.ts +0 -76
- package/templates/community-club/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/community-club/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/community-club/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/events-meetups/recipes/announcement-card.json +0 -72
- package/templates/events-meetups/recipes/blog-hero.json +0 -95
- package/templates/events-meetups/recipes/blog-list-thumb-start.json +0 -394
- package/templates/events-meetups/recipes/blog-list.json +0 -394
- package/templates/events-meetups/recipes/blog-see-all.json +0 -50
- package/templates/events-meetups/recipes/events-inline-list.json +0 -228
- package/templates/events-meetups/recipes/events-inline.json +0 -309
- package/templates/events-meetups/recipes/faq-list.json +0 -503
- package/templates/events-meetups/recipes/groups-list.json +0 -196
- package/templates/events-meetups/recipes/members-list.json +0 -445
- package/templates/events-meetups/recipes/plans-card.json +0 -811
- package/templates/events-meetups/recipes/products-carousel.json +0 -141
- package/templates/events-meetups/recipes/products-grid.json +0 -143
- package/templates/events-meetups/recipes/programs-card.json +0 -254
- package/templates/events-meetups/recipes/programs-carousel.json +0 -234
- package/templates/events-meetups/recipes/programs-filters.json +0 -94
- package/templates/events-meetups/recipes/programs-see-all.json +0 -43
- package/templates/events-meetups/recipes/section-error.json +0 -58
- package/templates/events-meetups/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/events-meetups/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +0 -51
- package/templates/events-meetups/tier5-src/_shared/events-card.ts +0 -33
- package/templates/events-meetups/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/events-meetups/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/events-meetups/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/events-meetups/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/events-meetups/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/events-meetups/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/events-meetups/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/events-meetups/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/events-meetups/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/events-meetups/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/events-meetups/tier5-src/_shared/products-section.ts +0 -76
- package/templates/events-meetups/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/events-meetups/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/events-meetups/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/gym-fitness/recipes/announcement-card.json +0 -72
- package/templates/gym-fitness/recipes/blog-hero.json +0 -95
- package/templates/gym-fitness/recipes/blog-list-thumb-start.json +0 -394
- package/templates/gym-fitness/recipes/blog-list.json +0 -394
- package/templates/gym-fitness/recipes/blog-see-all.json +0 -50
- package/templates/gym-fitness/recipes/events-inline-list.json +0 -228
- package/templates/gym-fitness/recipes/events-inline.json +0 -309
- package/templates/gym-fitness/recipes/faq-list.json +0 -503
- package/templates/gym-fitness/recipes/groups-list.json +0 -196
- package/templates/gym-fitness/recipes/members-list.json +0 -445
- package/templates/gym-fitness/recipes/plans-card.json +0 -811
- package/templates/gym-fitness/recipes/products-carousel.json +0 -141
- package/templates/gym-fitness/recipes/products-grid.json +0 -143
- package/templates/gym-fitness/recipes/programs-card.json +0 -254
- package/templates/gym-fitness/recipes/programs-carousel.json +0 -234
- package/templates/gym-fitness/recipes/programs-filters.json +0 -94
- package/templates/gym-fitness/recipes/programs-see-all.json +0 -43
- package/templates/gym-fitness/recipes/section-error.json +0 -58
- package/templates/gym-fitness/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/gym-fitness/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/gym-fitness/tier5-src/_shared/events-card.ts +0 -33
- package/templates/gym-fitness/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/gym-fitness/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/gym-fitness/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/gym-fitness/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/gym-fitness/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/gym-fitness/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/gym-fitness/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/gym-fitness/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/gym-fitness/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/gym-fitness/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/gym-fitness/tier5-src/_shared/products-section.ts +0 -76
- package/templates/gym-fitness/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/gym-fitness/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/gym-fitness/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/nonprofit-cause/recipes/announcement-card.json +0 -72
- package/templates/nonprofit-cause/recipes/blog-hero.json +0 -95
- package/templates/nonprofit-cause/recipes/blog-list-thumb-start.json +0 -394
- package/templates/nonprofit-cause/recipes/blog-list.json +0 -394
- package/templates/nonprofit-cause/recipes/blog-see-all.json +0 -50
- package/templates/nonprofit-cause/recipes/events-inline-list.json +0 -228
- package/templates/nonprofit-cause/recipes/events-inline.json +0 -309
- package/templates/nonprofit-cause/recipes/faq-list.json +0 -503
- package/templates/nonprofit-cause/recipes/groups-list.json +0 -196
- package/templates/nonprofit-cause/recipes/members-list.json +0 -445
- package/templates/nonprofit-cause/recipes/plans-card.json +0 -811
- package/templates/nonprofit-cause/recipes/products-carousel.json +0 -141
- package/templates/nonprofit-cause/recipes/products-grid.json +0 -143
- package/templates/nonprofit-cause/recipes/programs-card.json +0 -254
- package/templates/nonprofit-cause/recipes/programs-carousel.json +0 -234
- package/templates/nonprofit-cause/recipes/programs-filters.json +0 -94
- package/templates/nonprofit-cause/recipes/programs-participant-carousel.json +0 -257
- package/templates/nonprofit-cause/recipes/programs-see-all.json +0 -43
- package/templates/nonprofit-cause/recipes/section-error.json +0 -58
- package/templates/nonprofit-cause/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/nonprofit-cause/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/nonprofit-cause/tier5-src/_shared/events-card.ts +0 -33
- package/templates/nonprofit-cause/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/nonprofit-cause/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/nonprofit-cause/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/nonprofit-cause/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/nonprofit-cause/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/nonprofit-cause/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/nonprofit-cause/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/nonprofit-cause/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/nonprofit-cause/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/nonprofit-cause/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/nonprofit-cause/tier5-src/_shared/products-section.ts +0 -76
- package/templates/nonprofit-cause/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/nonprofit-cause/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/nonprofit-cause/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/podcast-creator/recipes/announcement-card.json +0 -72
- package/templates/podcast-creator/recipes/blog-hero.json +0 -95
- package/templates/podcast-creator/recipes/blog-list-thumb-start.json +0 -394
- package/templates/podcast-creator/recipes/blog-list.json +0 -394
- package/templates/podcast-creator/recipes/blog-see-all.json +0 -50
- package/templates/podcast-creator/recipes/events-inline-list.json +0 -228
- package/templates/podcast-creator/recipes/events-inline.json +0 -309
- package/templates/podcast-creator/recipes/faq-list.json +0 -503
- package/templates/podcast-creator/recipes/groups-list.json +0 -196
- package/templates/podcast-creator/recipes/members-list.json +0 -445
- package/templates/podcast-creator/recipes/plans-card.json +0 -811
- package/templates/podcast-creator/recipes/products-carousel.json +0 -141
- package/templates/podcast-creator/recipes/products-grid.json +0 -143
- package/templates/podcast-creator/recipes/programs-card.json +0 -254
- package/templates/podcast-creator/recipes/programs-carousel.json +0 -234
- package/templates/podcast-creator/recipes/programs-filters.json +0 -94
- package/templates/podcast-creator/recipes/programs-participant-carousel.json +0 -257
- package/templates/podcast-creator/recipes/programs-see-all.json +0 -43
- package/templates/podcast-creator/recipes/section-error.json +0 -58
- package/templates/podcast-creator/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/podcast-creator/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/podcast-creator/tier5-src/_shared/events-card.ts +0 -33
- package/templates/podcast-creator/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/podcast-creator/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/podcast-creator/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/podcast-creator/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/podcast-creator/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/podcast-creator/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/podcast-creator/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/podcast-creator/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/podcast-creator/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/podcast-creator/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/podcast-creator/tier5-src/_shared/products-section.ts +0 -76
- package/templates/podcast-creator/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/podcast-creator/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/podcast-creator/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/portfolio-creative/recipes/announcement-card.json +0 -72
- package/templates/portfolio-creative/recipes/blog-hero.json +0 -95
- package/templates/portfolio-creative/recipes/blog-list-thumb-start.json +0 -394
- package/templates/portfolio-creative/recipes/blog-list.json +0 -394
- package/templates/portfolio-creative/recipes/blog-see-all.json +0 -50
- package/templates/portfolio-creative/recipes/events-inline-list.json +0 -228
- package/templates/portfolio-creative/recipes/events-inline.json +0 -309
- package/templates/portfolio-creative/recipes/faq-list.json +0 -503
- package/templates/portfolio-creative/recipes/groups-list.json +0 -196
- package/templates/portfolio-creative/recipes/members-list.json +0 -445
- package/templates/portfolio-creative/recipes/plans-card.json +0 -811
- package/templates/portfolio-creative/recipes/products-carousel.json +0 -141
- package/templates/portfolio-creative/recipes/products-grid.json +0 -143
- package/templates/portfolio-creative/recipes/programs-card.json +0 -254
- package/templates/portfolio-creative/recipes/programs-carousel.json +0 -234
- package/templates/portfolio-creative/recipes/programs-filters.json +0 -94
- package/templates/portfolio-creative/recipes/programs-participant-carousel.json +0 -257
- package/templates/portfolio-creative/recipes/programs-see-all.json +0 -43
- package/templates/portfolio-creative/recipes/section-error.json +0 -58
- package/templates/portfolio-creative/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/portfolio-creative/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/portfolio-creative/tier5-src/_shared/events-card.ts +0 -33
- package/templates/portfolio-creative/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/portfolio-creative/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/portfolio-creative/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/portfolio-creative/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/portfolio-creative/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/portfolio-creative/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/portfolio-creative/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/portfolio-creative/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/portfolio-creative/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/portfolio-creative/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/portfolio-creative/tier5-src/_shared/products-section.ts +0 -76
- package/templates/portfolio-creative/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/portfolio-creative/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/portfolio-creative/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/restaurant/recipes/announcement-card.json +0 -72
- package/templates/restaurant/recipes/blog-hero.json +0 -95
- package/templates/restaurant/recipes/blog-list-thumb-start.json +0 -394
- package/templates/restaurant/recipes/blog-list.json +0 -394
- package/templates/restaurant/recipes/blog-see-all.json +0 -50
- package/templates/restaurant/recipes/events-inline-list.json +0 -228
- package/templates/restaurant/recipes/events-inline.json +0 -309
- package/templates/restaurant/recipes/faq-list.json +0 -503
- package/templates/restaurant/recipes/groups-list.json +0 -196
- package/templates/restaurant/recipes/members-list.json +0 -445
- package/templates/restaurant/recipes/plans-card.json +0 -811
- package/templates/restaurant/recipes/products-carousel.json +0 -141
- package/templates/restaurant/recipes/products-grid.json +0 -143
- package/templates/restaurant/recipes/programs-card.json +0 -254
- package/templates/restaurant/recipes/programs-carousel.json +0 -234
- package/templates/restaurant/recipes/programs-filters.json +0 -94
- package/templates/restaurant/recipes/programs-participant-carousel.json +0 -257
- package/templates/restaurant/recipes/programs-see-all.json +0 -43
- package/templates/restaurant/recipes/section-error.json +0 -58
- package/templates/restaurant/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/restaurant/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/restaurant/tier5-src/_shared/events-card.ts +0 -33
- package/templates/restaurant/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/restaurant/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/restaurant/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/restaurant/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/restaurant/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/restaurant/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/restaurant/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/restaurant/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/restaurant/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/restaurant/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/restaurant/tier5-src/_shared/products-section.ts +0 -76
- package/templates/restaurant/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/restaurant/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/restaurant/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/retail-store/recipes/announcement-card.json +0 -72
- package/templates/retail-store/recipes/blog-hero.json +0 -95
- package/templates/retail-store/recipes/blog-list-thumb-start.json +0 -394
- package/templates/retail-store/recipes/blog-list.json +0 -394
- package/templates/retail-store/recipes/blog-see-all.json +0 -50
- package/templates/retail-store/recipes/events-inline-list.json +0 -228
- package/templates/retail-store/recipes/events-inline.json +0 -309
- package/templates/retail-store/recipes/faq-list.json +0 -503
- package/templates/retail-store/recipes/groups-list.json +0 -196
- package/templates/retail-store/recipes/members-list.json +0 -445
- package/templates/retail-store/recipes/plans-card.json +0 -811
- package/templates/retail-store/recipes/products-carousel.json +0 -141
- package/templates/retail-store/recipes/products-grid.json +0 -143
- package/templates/retail-store/recipes/programs-card.json +0 -254
- package/templates/retail-store/recipes/programs-carousel.json +0 -234
- package/templates/retail-store/recipes/programs-filters.json +0 -94
- package/templates/retail-store/recipes/programs-participant-carousel.json +0 -257
- package/templates/retail-store/recipes/programs-see-all.json +0 -43
- package/templates/retail-store/recipes/section-error.json +0 -58
- package/templates/retail-store/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/retail-store/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/retail-store/tier5-src/_shared/event-registration.ts +0 -86
- package/templates/retail-store/tier5-src/_shared/events-card.ts +0 -33
- package/templates/retail-store/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/retail-store/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/retail-store/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/retail-store/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/retail-store/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/retail-store/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/retail-store/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/retail-store/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/retail-store/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/retail-store/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/retail-store/tier5-src/_shared/products-section.ts +0 -76
- package/templates/retail-store/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/retail-store/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/retail-store/tier5-src/_shared/relative-time.ts +0 -21
- package/templates/yoga-studio/recipes/announcement-card.json +0 -72
- package/templates/yoga-studio/recipes/blog-hero.json +0 -95
- package/templates/yoga-studio/recipes/blog-list-thumb-start.json +0 -394
- package/templates/yoga-studio/recipes/blog-list.json +0 -394
- package/templates/yoga-studio/recipes/blog-see-all.json +0 -50
- package/templates/yoga-studio/recipes/events-inline-list.json +0 -228
- package/templates/yoga-studio/recipes/events-inline.json +0 -309
- package/templates/yoga-studio/recipes/faq-list.json +0 -503
- package/templates/yoga-studio/recipes/groups-list.json +0 -196
- package/templates/yoga-studio/recipes/members-list.json +0 -445
- package/templates/yoga-studio/recipes/plans-card.json +0 -811
- package/templates/yoga-studio/recipes/products-carousel.json +0 -141
- package/templates/yoga-studio/recipes/products-grid.json +0 -143
- package/templates/yoga-studio/recipes/programs-card.json +0 -254
- package/templates/yoga-studio/recipes/programs-carousel.json +0 -234
- package/templates/yoga-studio/recipes/programs-filters.json +0 -94
- package/templates/yoga-studio/recipes/programs-participant-carousel.json +0 -257
- package/templates/yoga-studio/recipes/programs-see-all.json +0 -43
- package/templates/yoga-studio/recipes/section-error.json +0 -58
- package/templates/yoga-studio/tier5-src/_shared/announcement-section.ts +0 -122
- package/templates/yoga-studio/tier5-src/_shared/blog-list.ts +0 -207
- package/templates/yoga-studio/tier5-src/_shared/events-card.ts +0 -33
- package/templates/yoga-studio/tier5-src/_shared/events-inline-options.ts +0 -25
- package/templates/yoga-studio/tier5-src/_shared/events-inline.ts +0 -84
- package/templates/yoga-studio/tier5-src/_shared/faq-list.ts +0 -405
- package/templates/yoga-studio/tier5-src/_shared/groups-section.ts +0 -110
- package/templates/yoga-studio/tier5-src/_shared/member-activity.ts +0 -34
- package/templates/yoga-studio/tier5-src/_shared/member-row-extras.ts +0 -175
- package/templates/yoga-studio/tier5-src/_shared/members-directory-view.ts +0 -39
- package/templates/yoga-studio/tier5-src/_shared/members-directory.ts +0 -271
- package/templates/yoga-studio/tier5-src/_shared/plan-facts.ts +0 -87
- package/templates/yoga-studio/tier5-src/_shared/plans-section.ts +0 -106
- package/templates/yoga-studio/tier5-src/_shared/products-section.ts +0 -76
- package/templates/yoga-studio/tier5-src/_shared/program-fields.ts +0 -16
- package/templates/yoga-studio/tier5-src/_shared/programs-section.ts +0 -740
- package/templates/yoga-studio/tier5-src/_shared/relative-time.ts +0 -21
- /package/templates/{community-club → brandy}/tier5-src/_shared/detail-presence.ts +0 -0
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { compareText, compareIso } from "./engine-intl.js";
|
|
2
|
+
/** Shared OTA collection contract. No host APIs: used by workers and builders. */
|
|
3
|
+
export interface CollectionConfig {
|
|
4
|
+
rows: string;
|
|
5
|
+
/** Flat customer history rows, divided rather than boxed. */
|
|
6
|
+
rowStyle?: "flat";
|
|
7
|
+
instanceInput?: string;
|
|
8
|
+
title: string;
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
image?: string;
|
|
11
|
+
filter?: string;
|
|
12
|
+
filterValues?: string[];
|
|
13
|
+
/** A state key holding `{ label }` rows (e.g. a worker's full category list) whose
|
|
14
|
+
* labels are filter choices even when no loaded row carries them yet. */
|
|
15
|
+
filterValuesFrom?: string;
|
|
16
|
+
searchPlaceholder?: string;
|
|
17
|
+
sortLabels?: { default: string; az: string; za: string };
|
|
18
|
+
metadata?: string[];
|
|
19
|
+
/** Numeric 0–5 row field rendered as a Rating (accessible "N out of 5") instead of
|
|
20
|
+
* folding a "★★★★☆" glyph string into the metadata line, so screen readers get a value. */
|
|
21
|
+
rating?: string;
|
|
22
|
+
/** Domain-provided calendar text and its unavailable flag, kept separate from media. */
|
|
23
|
+
dateBadge?: { text: string; hidden: string };
|
|
24
|
+
sectioned?: boolean;
|
|
25
|
+
view: 'list' | 'grid';
|
|
26
|
+
backendQuery?: boolean;
|
|
27
|
+
paged?: boolean;
|
|
28
|
+
defaultFilter?: string;
|
|
29
|
+
reviewAction?: string;
|
|
30
|
+
reviewSelectedAction?: string;
|
|
31
|
+
/** Optional comfortable grid media height for immersive visual catalogs. */
|
|
32
|
+
gridImageHeight?: number;
|
|
33
|
+
/** What the count summary counts — ["dish", "dishes"] reads "12 dishes". Default "item(s)". */
|
|
34
|
+
countNoun?: [string, string];
|
|
35
|
+
/** Phone grid columns (default 2). A card carrying a paragraph of benefits and a CTA — a
|
|
36
|
+
* pricing plan — is unreadable at half width, so it opts into one. */
|
|
37
|
+
gridColumns?: number;
|
|
38
|
+
/** Lines of the meta caption a comfortable row may use (default 2). */
|
|
39
|
+
metaMaxLines?: number;
|
|
40
|
+
/** The card's primary verb, shown as a visible button beside the overflow.
|
|
41
|
+
* `screenId` opens that screen with the row id; without it the verb reuses the
|
|
42
|
+
* row's own tap action (the detail screen that owns the verb). */
|
|
43
|
+
primaryVerb?: { label: string; screenId?: string;
|
|
44
|
+
/** A row field holding THIS row's verb label (Register, RSVP, Buy Tickets…); `label` stays the fallback copy. */
|
|
45
|
+
labelPath?: string;
|
|
46
|
+
/** A row boolean that hides the verb on rows that offer no action (an event with no registration). */
|
|
47
|
+
hiddenPath?: string };
|
|
48
|
+
/** The worker action that shares a row (`tier5.<service>.<name>` with `{ id }`): adds Share to the card's overflow menu. */
|
|
49
|
+
shareAction?: string;
|
|
50
|
+
/** A TIME-BOUND entity (an event, a booking, a reservation): the boolean row field the
|
|
51
|
+
* DOMAIN sets once the record has finished — computed by the same rule as the row's own
|
|
52
|
+
* "Past" label, in the same place, so the two cannot disagree. A finished
|
|
53
|
+
* record's `primaryVerb` (Register, Book…) is transactional and would act on something
|
|
54
|
+
* that is over, so it is swapped for a non-transactional "View details" that opens the
|
|
55
|
+
* row's own detail. Without a row tap action the verb is simply hidden. */
|
|
56
|
+
endedWhen?: string;
|
|
57
|
+
/** A catalog card whose one expected per-item action is "favorite".
|
|
58
|
+
* The ellipsis overflow is replaced by an always-visible heart toggle wired to
|
|
59
|
+
* the same `collectionSave` reducer. A dropdown `Menu` anchored inside a
|
|
60
|
+
* list/grid row renders clipped inside the row's own bounds, so on a product
|
|
61
|
+
* card the overflow's items were unreachable AND the wrong pattern: shoppers
|
|
62
|
+
* expect a heart, not a 3-item menu two taps deep. */
|
|
63
|
+
favoriteToggle?: boolean;
|
|
64
|
+
/** A state field the DOMAIN narrows `rows` by (e.g. a category picker). While it is set,
|
|
65
|
+
* zero rows is a filtered result, not an empty source. */
|
|
66
|
+
narrowedBy?: string;
|
|
67
|
+
}
|
|
68
|
+
/** At or below this many records, with no query/filter narrowing them and no further
|
|
69
|
+
* page, the list/grid toggle, Refine, chips, search and count are noise. */
|
|
70
|
+
export const COLLECTION_CHROME_MIN_ITEMS = 4;
|
|
71
|
+
/** The accessible name of a row's overflow menu: `template` with `{title}` filled, or the
|
|
72
|
+
* generic `fallback` for a record with no title. */
|
|
73
|
+
export function collectionActionsLabel(title: string, template: string, fallback: string): string {
|
|
74
|
+
const t = title.trim();
|
|
75
|
+
return t ? template.replace('{title}', () => t) : fallback;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export const COLLECTIONS: Record<string, CollectionConfig> = {
|
|
79
|
+
himiStoreShop: { rows: 'results', title: 'name', subtitle: 'subtitle', image: 'image', view: 'grid', backendQuery: true, countNoun: ['product', 'products'], favoriteToggle: true },
|
|
80
|
+
himiBookingServices: { rows: 'results', title: 'name', subtitle: 'subtitle', image: 'image', filter: 'category', view: 'grid', backendQuery: true, searchPlaceholder: 'Search services', countNoun: ['service', 'services'], primaryVerb: { label: 'Book', screenId: 'himi_time' } },
|
|
81
|
+
himiBookingBookings: { rows: 'rows', title: 'title', subtitle: 'subtitle', metadata: ['status'], view: 'list', backendQuery: true,
|
|
82
|
+
defaultFilter: 'value:Upcoming', searchPlaceholder: 'Search by booking ID', countNoun: ['booking', 'bookings'], filterValues: ['Upcoming', 'Past', 'Cancelled'],
|
|
83
|
+
sortLabels: { default: 'Soonest', az: 'Oldest', za: 'Latest' } },
|
|
84
|
+
himiEvents: { rows: 'results', title: 'title', subtitle: 'dateLine', image: 'image', dateBadge: { text: 'dateBadge', hidden: 'noDateBadge' }, gridColumns: 1, view: 'grid', backendQuery: true, defaultFilter: 'value:Upcoming', searchPlaceholder: 'Search events', countNoun: ['event', 'events'], filterValues: ['Upcoming', 'Past'], sortLabels: { default: 'Date', az: 'Title A–Z', za: 'Title Z–A' }, primaryVerb: { label: 'Register', labelPath: 'actionLabel', hiddenPath: 'noAction' }, shareAction: 'share', endedWhen: 'isPast' },
|
|
85
|
+
himiOwnerLiteProducts: { rows: 'products', title: 'name', subtitle: 'price', image: 'image', view: 'grid', backendQuery: true, countNoun: ['product', 'products'] },
|
|
86
|
+
himiOwnerModules: { instanceInput: 'module', rows: 'rows', title: 'title', subtitle: 'subtitle', image: 'image', filter: 'statusLabel', view: 'list', paged: true, reviewAction: 'prepareRecord', reviewSelectedAction: 'prepareSelected' },
|
|
87
|
+
himiOwnerLiteServices: { rows: 'services', title: 'name', subtitle: 'subtitle', view: 'list', backendQuery: true, searchPlaceholder: 'Service name starts with…' },
|
|
88
|
+
himiOwnerLiteEvents: { rows: 'events', title: 'title', subtitle: 'dateLine', view: 'grid', backendQuery: true, searchPlaceholder: 'Exact event title', filterValues: ['Upcoming'], sortLabels: { default: 'Date', az: 'Title A–Z', za: 'Title Z–A' } },
|
|
89
|
+
himiOwnerLitePosts: { rows: 'posts', title: 'title', subtitle: 'excerpt', image: 'image', view: 'grid' },
|
|
90
|
+
himiOwnerLiteOrders: { rows: 'orders', title: 'buyer', subtitle: 'meta', filter: 'statusLabel', view: 'list', backendQuery: true, countNoun: ['order', 'orders'],
|
|
91
|
+
searchPlaceholder: 'Customer name, email or order #', sortLabels: { default: 'Newest', az: 'Customer A–Z', za: 'Customer Z–A' },
|
|
92
|
+
filterValues: ['Recent 7 days', 'Paid', 'Unpaid', 'Partially paid', 'Pending', 'Refunded', 'Partly refunded'] },
|
|
93
|
+
himiBrandedGroups: { rows: 'rows', title: 'name', subtitle: 'description', image: 'image', view: 'grid' },
|
|
94
|
+
himiBrandedCmsCollection: { instanceInput: 'collection', rows: 'rows', title: 'title', subtitle: 'subtitle', view: 'list' },
|
|
95
|
+
himiBrandedOrders: { rows: 'rows', title: 'title', subtitle: 'subtitle', image: 'image', metadata: ['status', 'meta'], rowStyle: 'flat', view: 'list', backendQuery: true,
|
|
96
|
+
searchPlaceholder: 'Search by order number', countNoun: ['order', 'orders'], filterValues: ['Not fulfilled', 'Partially fulfilled', 'Fulfilled'],
|
|
97
|
+
sortLabels: { default: 'Newest', az: 'Oldest', za: 'Order # ↓' } },
|
|
98
|
+
himiBrandedPlans: { rows: 'rows', title: 'name', subtitle: 'description', metadata: ['badge', 'priceLine', 'periodLine', 'trialBadge', 'perk1', 'perk2', 'perk3', 'joinNote'], view: 'grid', gridColumns: 1, metaMaxLines: 8, countNoun: ['plan', 'plans'] },
|
|
99
|
+
himiBrandedPrograms: { rows: 'rows', title: 'name', subtitle: 'description', image: 'image', view: 'grid' },
|
|
100
|
+
himiBrandedCoupons: { rows: 'coupons', title: 'name', subtitle: 'subtitle', view: 'list', primaryVerb: { label: 'Get code' } },
|
|
101
|
+
himiBrandedNotifications: { rows: 'items', title: 'name', subtitle: 'subtitle', image: 'photo', metadata: ['unreadDot'], view: 'list' },
|
|
102
|
+
himiBrandedLoyalty: { rows: 'rewards', title: 'name', subtitle: 'description', view: 'grid', primaryVerb: { label: 'Redeem' } },
|
|
103
|
+
himiBrandedReviews: { rows: 'reviews', title: 'title', subtitle: 'body', metadata: ['author'], rating: 'rating', view: 'list' },
|
|
104
|
+
himiBrandedPortfolio: { rows: 'projects', title: 'title', subtitle: 'subtitle', image: 'image', view: 'grid', gridImageHeight: 180 },
|
|
105
|
+
himiBrandedInvoices: { rows: 'invoices', title: 'title', subtitle: 'subtitle', view: 'list' },
|
|
106
|
+
himiBrandedBadges: { rows: 'badges', title: 'name', subtitle: 'description', view: 'grid' },
|
|
107
|
+
himiBrandedDonations: { rows: 'campaigns', title: 'name', subtitle: 'description', view: 'grid', primaryVerb: { label: 'Donate' } },
|
|
108
|
+
himiBrandedGiftCards: { rows: 'cards', title: 'name', subtitle: 'description', view: 'grid' },
|
|
109
|
+
himiBrandedVideos: { rows: 'channels', title: 'title', subtitle: 'subtitle', image: 'coverUrl', view: 'grid', searchPlaceholder: 'Search channels', countNoun: ['channel', 'channels'] },
|
|
110
|
+
himiBrandedPodcasts: { rows: 'episodes', title: 'title', subtitle: 'subtitle', image: 'image', metadata: ['progressLabel'], view: 'list' },
|
|
111
|
+
himiBrandedForms: { rows: 'forms', title: 'name', subtitle: 'description', view: 'list' },
|
|
112
|
+
himiBrandedGalleries: { rows: 'galleries', title: 'name', subtitle: 'description', image: 'image', view: 'grid' },
|
|
113
|
+
himiBrandedMenus: { rows: 'rows', title: 'name', subtitle: 'description', image: 'image', sectioned: true, filter: 'collectionCategory', metadata: ['collectionCategory', 'priceLine', 'label1', 'label2', 'label3'], view: 'grid', searchPlaceholder: 'Search the menu', countNoun: ['dish', 'dishes'] },
|
|
114
|
+
};
|
|
115
|
+
export interface CollectionPreferences {
|
|
116
|
+
view: 'list' | 'grid';
|
|
117
|
+
density: 'comfortable' | 'compact';
|
|
118
|
+
sort: 'default' | 'az' | 'za';
|
|
119
|
+
filter: string;
|
|
120
|
+
query: string;
|
|
121
|
+
savedIds: string[];
|
|
122
|
+
selectedIds: string[];
|
|
123
|
+
selecting: boolean;
|
|
124
|
+
savedViews: SavedCollectionView[];
|
|
125
|
+
}
|
|
126
|
+
export interface SavedCollectionView {
|
|
127
|
+
id: string; name: string; view: 'list' | 'grid'; density: 'comfortable' | 'compact';
|
|
128
|
+
sort: 'default' | 'az' | 'za'; query: string; filter: string;
|
|
129
|
+
}
|
|
130
|
+
export interface CollectionItemAction {
|
|
131
|
+
id: string;
|
|
132
|
+
label: string;
|
|
133
|
+
destructive: boolean;
|
|
134
|
+
confirmationRequired: boolean;
|
|
135
|
+
}
|
|
136
|
+
export type CollectionRow = Record<string, unknown>;
|
|
137
|
+
export function initialCollection(config: CollectionConfig): CollectionPreferences {
|
|
138
|
+
return { view: config.view, density: 'comfortable', sort: 'default', filter: config.defaultFilter ?? 'all', query: '', savedIds: [], selectedIds: [], selecting: false, savedViews: [] };
|
|
139
|
+
}
|
|
140
|
+
/** Accept only small presentation preferences from local storage. Selection is
|
|
141
|
+
* transient and never restored as an armed bulk operation. */
|
|
142
|
+
export function normalizeCollection(config: CollectionConfig, value: unknown): CollectionPreferences {
|
|
143
|
+
const s = value && typeof value === 'object' ? value as Partial<CollectionPreferences> : {};
|
|
144
|
+
const base = initialCollection(config);
|
|
145
|
+
return { ...base,
|
|
146
|
+
view: s.view === 'list' || s.view === 'grid' ? s.view : base.view,
|
|
147
|
+
density: s.density === 'compact' ? 'compact' : 'comfortable',
|
|
148
|
+
sort: s.sort === 'az' || s.sort === 'za' ? s.sort : 'default',
|
|
149
|
+
query: typeof s.query === 'string' ? s.query.slice(0, 256) : '',
|
|
150
|
+
// Flat collections no longer offer Saved. Migrate its persisted value before
|
|
151
|
+
// the first backend request so an invisible old filter cannot empty the list.
|
|
152
|
+
filter: config.rowStyle === 'flat' && s.filter === 'saved' ? 'all'
|
|
153
|
+
: typeof s.filter === 'string' ? s.filter.slice(0, 256) : config.defaultFilter ?? 'all',
|
|
154
|
+
savedIds: Array.isArray(s.savedIds) ? [...new Set(s.savedIds.filter((id): id is string => typeof id === 'string' && id.length > 0 && id.length <= 256))].slice(0, 500) : [],
|
|
155
|
+
savedViews: Array.isArray(s.savedViews) ? s.savedViews.filter((v): v is SavedCollectionView => !!v && typeof v === 'object' && typeof v.name === 'string' && !!v.name.trim()).slice(0, 8).map((v, i) => ({
|
|
156
|
+
id: `view-${i}`, name: v.name.trim().slice(0, 40),
|
|
157
|
+
view: v.view === 'list' || v.view === 'grid' ? v.view : config.view,
|
|
158
|
+
density: v.density === 'compact' ? 'compact' : 'comfortable',
|
|
159
|
+
sort: v.sort === 'az' || v.sort === 'za' ? v.sort : 'default',
|
|
160
|
+
query: typeof v.query === 'string' ? v.query.slice(0, 256) : '',
|
|
161
|
+
filter: config.rowStyle === 'flat' && v.filter === 'saved' ? 'all'
|
|
162
|
+
: typeof v.filter === 'string' ? v.filter.slice(0, 256) : 'all',
|
|
163
|
+
})) : [],
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
const scalar = (value: unknown): string => typeof value === 'string' || typeof value === 'number' ? String(value) : '';
|
|
167
|
+
export function collectionId(row: CollectionRow): string { return scalar(row.id) || scalar(row._id) || scalar(row.key); }
|
|
168
|
+
export function collectionTitle(row: CollectionRow, config: CollectionConfig): string {
|
|
169
|
+
return scalar(row[config.title]) || scalar(row.title) || scalar(row.name) || scalar(row.display) || scalar(row.label);
|
|
170
|
+
}
|
|
171
|
+
/** Does not mutate domain rows, paging, or domain-derived state. */
|
|
172
|
+
export function projectCollection(source: CollectionRow[], config: CollectionConfig, prefs: CollectionPreferences, backendQuery = false, knownFilters: string[] = []) {
|
|
173
|
+
const query = prefs.query.trim().toLocaleLowerCase();
|
|
174
|
+
const unique = new Set<string>();
|
|
175
|
+
// Menu sections describe their following items; they are not actionable
|
|
176
|
+
// records. Carry the category onto each item before sorting or filtering.
|
|
177
|
+
let category = '';
|
|
178
|
+
const records: CollectionRow[] = config.sectioned ? source.flatMap(row => {
|
|
179
|
+
if (row.isHeader === true) { category = scalar(row.title); return []; }
|
|
180
|
+
return [{ ...row, collectionCategory: category }];
|
|
181
|
+
}) : source;
|
|
182
|
+
const rows = records.filter(row => {
|
|
183
|
+
const id = collectionId(row);
|
|
184
|
+
if (!id) return true; // render anonymous records; identity actions stay disabled
|
|
185
|
+
if (unique.has(id)) return false;
|
|
186
|
+
unique.add(id); return true;
|
|
187
|
+
});
|
|
188
|
+
const filters = config.filterValues ?? [...new Set([...knownFilters, ...rows.map(row => config.filter ? scalar(row[config.filter]) : '')].filter(Boolean))].sort();
|
|
189
|
+
const visible = rows.filter(row => {
|
|
190
|
+
if (backendQuery) return true;
|
|
191
|
+
if (prefs.filter === 'saved' && !prefs.savedIds.includes(collectionId(row))) return false;
|
|
192
|
+
if (prefs.filter.startsWith('value:') && (!config.filter || scalar(row[config.filter]) !== prefs.filter.slice(6))) return false;
|
|
193
|
+
return !query || Object.values(row).some(value => scalar(value).toLocaleLowerCase().includes(query));
|
|
194
|
+
});
|
|
195
|
+
if (!backendQuery && prefs.sort !== 'default') visible.sort((a, b) => {
|
|
196
|
+
const order = compareText(collectionTitle(a, config), collectionTitle(b, config));
|
|
197
|
+
return (prefs.sort === 'az' ? order : -order) || compareIso(collectionId(a), collectionId(b));
|
|
198
|
+
});
|
|
199
|
+
return {
|
|
200
|
+
items: visible.map(row => ({ ...row, collectionId: collectionId(row), collectionTitle: collectionTitle(row, config),
|
|
201
|
+
collectionMeta: [...new Set((config.metadata ?? ['total', 'statusLabel', 'price', 'priceLine', 'dateLine', 'meta']).filter(key => key !== config.subtitle).map(key => scalar(row[key])).filter(Boolean))].join(' · '),
|
|
202
|
+
collectionSelectLabel: prefs.selectedIds.includes(collectionId(row)) ? 'Selected' : 'Select',
|
|
203
|
+
// The save toggle names the action it WILL take (the service localizes it).
|
|
204
|
+
collectionSaveLabel: prefs.savedIds.includes(collectionId(row)) ? 'Remove from saved' : 'Save',
|
|
205
|
+
// The row's overflow menu, named for its record: out of context (a rotor, a voice
|
|
206
|
+
// command) a list of identical "Item actions" cannot be told apart.
|
|
207
|
+
collectionActionsLabel: collectionActionsLabel(collectionTitle(row, config), 'Actions for {title}', 'Item actions'),
|
|
208
|
+
collectionSubtitle: scalar(row[config.subtitle ?? '']) || scalar(row.subtitle) || scalar(row.description) || scalar(row.meta),
|
|
209
|
+
collectionImage: scalar(row[config.image ?? '']), collectionNoImage: !scalar(row[config.image ?? '']), collectionHasImage: !!scalar(row[config.image ?? '']),
|
|
210
|
+
collectionSaved: prefs.savedIds.includes(collectionId(row)), collectionNotSaved: !prefs.savedIds.includes(collectionId(row)), collectionSelected: prefs.selectedIds.includes(collectionId(row)),
|
|
211
|
+
collectionNoIdentity: !collectionId(row),
|
|
212
|
+
// Older cached EventRows predate `isPast` but already stored `statusLabel: "Past"`.
|
|
213
|
+
// Keep their ended state through an offline render until the row is refreshed.
|
|
214
|
+
...(config.endedWhen ? (() => {
|
|
215
|
+
const ended = row[config.endedWhen] === true || (config.endedWhen === 'isPast' && row.statusLabel === 'Past');
|
|
216
|
+
return { collectionEnded: ended, collectionNotEnded: !ended };
|
|
217
|
+
})() : {}),
|
|
218
|
+
// A row restored from state saved by an older build has no badge flag. An unset hidden flag
|
|
219
|
+
// fails open and would paint an empty chip, so it reads as "no badge" until a refresh.
|
|
220
|
+
...(config.dateBadge && typeof row[config.dateBadge.hidden] !== 'boolean'
|
|
221
|
+
? { [config.dateBadge.text]: '', [config.dateBadge.hidden]: true } : {}),
|
|
222
|
+
// Same for a per-row verb: an unset hidden flag fails open and would show a verb with an unresolved
|
|
223
|
+
// label, so a row without the flag offers no action until a refresh establishes one.
|
|
224
|
+
...(config.primaryVerb?.hiddenPath && typeof row[config.primaryVerb.hiddenPath] !== 'boolean'
|
|
225
|
+
? { ...(config.primaryVerb.labelPath ? { [config.primaryVerb.labelPath]: '' } : {}), [config.primaryVerb.hiddenPath]: true } : {}) })),
|
|
226
|
+
filters, loaded: rows.length,
|
|
227
|
+
};
|
|
228
|
+
}
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { initialReadStatus, type ReadStatus } from '@himalaya/state';
|
|
2
|
+
|
|
3
|
+
/** Backend collection lifecycle shared by domain workers. The domain supplies
|
|
4
|
+
* the query and row mapper; this layer never calls a domain API or mutates it. */
|
|
5
|
+
export interface CollectionQuery {
|
|
6
|
+
query: string;
|
|
7
|
+
filter: string;
|
|
8
|
+
sort: 'default' | 'az' | 'za';
|
|
9
|
+
savedIds: string[];
|
|
10
|
+
}
|
|
11
|
+
export interface CollectionPage<Row> {
|
|
12
|
+
items: Row[];
|
|
13
|
+
nextCursor: string;
|
|
14
|
+
total?: number;
|
|
15
|
+
metadata?: Record<string, unknown>;
|
|
16
|
+
complete?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface CollectionQueryState<Row> extends CollectionPage<Row> {
|
|
19
|
+
criteria: CollectionQuery;
|
|
20
|
+
status: 'idle' | 'loading' | 'ready' | 'error';
|
|
21
|
+
loadingMore: boolean;
|
|
22
|
+
pageError: boolean;
|
|
23
|
+
complete: boolean;
|
|
24
|
+
error: string;
|
|
25
|
+
read: ReadStatus;
|
|
26
|
+
/** The rows are the source's `cached` page, shown while the live read is still out. */
|
|
27
|
+
provisional?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** What a collection showed, as `shownPage` hands it out and `seed` takes it back on a restored boot. */
|
|
30
|
+
export interface CollectionShownPage<Row> {
|
|
31
|
+
state: CollectionQueryState<Row>;
|
|
32
|
+
loadedPages: number;
|
|
33
|
+
}
|
|
34
|
+
export interface CollectionQuerySource<Row> {
|
|
35
|
+
fetch(criteria: CollectionQuery, cursor: string): Promise<CollectionPage<Row>>;
|
|
36
|
+
/** Optional public cache for immediate paint; always incomplete, never a paging authority. */
|
|
37
|
+
cached?(criteria: CollectionQuery): Promise<CollectionPage<Row> | undefined>;
|
|
38
|
+
id(row: Row): string;
|
|
39
|
+
errorMessage?(error: unknown): string;
|
|
40
|
+
/** Private collections must discard prior rows when access or identity changes. A revalidation keeps the
|
|
41
|
+
* rows it shows through any other failure: safe because one worker never serves two identities (its pool
|
|
42
|
+
* key carries the account, and a purge tears parked workers down). */
|
|
43
|
+
clearOnError?(error: unknown): boolean;
|
|
44
|
+
}
|
|
45
|
+
const normalize = (q: Partial<CollectionQuery>): CollectionQuery => ({
|
|
46
|
+
query: typeof q.query === 'string' ? q.query.trim().slice(0, 256) : '',
|
|
47
|
+
filter: typeof q.filter === 'string' ? q.filter.slice(0, 256) : 'all',
|
|
48
|
+
sort: q.sort === 'az' || q.sort === 'za' ? q.sort : 'default',
|
|
49
|
+
savedIds: Array.isArray(q.savedIds) ? [...new Set(q.savedIds.filter(id => typeof id === 'string' && id.length > 0 && id.length <= 256))].slice(0, 500) : [],
|
|
50
|
+
});
|
|
51
|
+
const copyQuery = (q: CollectionQuery): CollectionQuery => ({ ...q, savedIds: [...q.savedIds] });
|
|
52
|
+
|
|
53
|
+
/** New criteria cancel the old result logically, including an in-flight next
|
|
54
|
+
* page. Failures preserve the cursor and rows for an explicit retry. Callers
|
|
55
|
+
* publish each snapshot through their ordinary service reducer, so loading and
|
|
56
|
+
* filtered-empty never masquerade as a successfully completed query. */
|
|
57
|
+
export function createLegacyCollectionQuery<Row>(source: CollectionQuerySource<Row>, publish: (state: CollectionQueryState<Row>) => void) {
|
|
58
|
+
let generation = 0, disposed = false;
|
|
59
|
+
let loadedPages = 0, restoringPages = 0;
|
|
60
|
+
let state: CollectionQueryState<Row> = { criteria: normalize({}), items: [], nextCursor: '', status: 'idle', loadingMore: false, pageError: false, complete: false, error: '', read: initialReadStatus() };
|
|
61
|
+
/** The query a revalidation is running under: its snapshots are held back until it is done. */
|
|
62
|
+
let revalidating = -1;
|
|
63
|
+
/** The last page the screen showed whole (rows ready, nothing paging, failing or standing in): what a revalidation
|
|
64
|
+
* keeps on screen and restores when it fails, and what a restored boot shows. A next page loading or failing after
|
|
65
|
+
* it leaves those rows on screen, so it is still this. */
|
|
66
|
+
let lastShown: { state: CollectionQueryState<Row>; loadedPages: number } | undefined;
|
|
67
|
+
const sameCriteria = (a: CollectionQuery, b: CollectionQuery) => JSON.stringify(a) === JSON.stringify(b);
|
|
68
|
+
let clearedByError = false;
|
|
69
|
+
const snapshot = (): CollectionQueryState<Row> => ({ ...state, read: { ...state.read }, criteria: copyQuery(state.criteria), items: [...state.items] });
|
|
70
|
+
const emit = () => {
|
|
71
|
+
if (disposed || revalidating === generation) return;
|
|
72
|
+
// A settled answer replaces it, an empty one included: rows the live query proved gone are never kept.
|
|
73
|
+
if (state.status === 'ready' && !state.pageError && !state.loadingMore && !state.provisional) {
|
|
74
|
+
lastShown = { state: snapshot(), loadedPages };
|
|
75
|
+
}
|
|
76
|
+
publish(snapshot());
|
|
77
|
+
};
|
|
78
|
+
const merge = (old: Row[], page: Row[]): Row[] => {
|
|
79
|
+
const positions = new Map<string, number>(), result: Row[] = [];
|
|
80
|
+
for (const item of [...old, ...page]) {
|
|
81
|
+
const id = source.id(item);
|
|
82
|
+
if (!id) throw new Error('A backend collection row requires an identity');
|
|
83
|
+
const index = positions.get(id);
|
|
84
|
+
if (index === undefined) { positions.set(id, result.length); result.push(item); }
|
|
85
|
+
else result[index] = item;
|
|
86
|
+
}
|
|
87
|
+
return result;
|
|
88
|
+
};
|
|
89
|
+
/** [keepRows]: a search typed over the rows on screen leaves them there until its answer arrives (status stays
|
|
90
|
+
* `loading`, and nothing pages under the old answer), so the list is not blanked on each keystroke. */
|
|
91
|
+
const fetch = async (append: boolean, keepRows = false): Promise<void> => {
|
|
92
|
+
if (disposed || (append && (state.loadingMore || state.status === 'loading' || !state.nextCursor))) return;
|
|
93
|
+
const revision = append ? generation : ++generation;
|
|
94
|
+
const cursor = append ? state.nextCursor : '';
|
|
95
|
+
const criteria = copyQuery(state.criteria);
|
|
96
|
+
if (!append) loadedPages = 0;
|
|
97
|
+
state = { ...state, status: append ? 'ready' : 'loading', loadingMore: append, pageError: false, error: '',
|
|
98
|
+
...(append ? {} : keepRows ? { nextCursor: '', complete: false, provisional: false }
|
|
99
|
+
: { items: [], nextCursor: '', total: undefined, metadata: undefined, complete: false, provisional: false }) };
|
|
100
|
+
emit();
|
|
101
|
+
try {
|
|
102
|
+
if (!append && source.cached) {
|
|
103
|
+
const cached = await source.cached(criteria).catch(() => undefined);
|
|
104
|
+
if (disposed || generation !== revision) return;
|
|
105
|
+
if (cached?.items.length) {
|
|
106
|
+
state = { ...state, items: merge([], cached.items), metadata: cached.metadata, status: 'ready', complete: false, provisional: true };
|
|
107
|
+
emit();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
const page = await source.fetch(criteria, cursor);
|
|
111
|
+
if (disposed || generation !== revision) return;
|
|
112
|
+
if (!Array.isArray(page.items) || typeof page.nextCursor !== 'string' || (cursor && page.nextCursor === cursor)) throw new Error('Invalid collection page');
|
|
113
|
+
state = { ...state, items: merge(append ? state.items : [], page.items), nextCursor: page.nextCursor,
|
|
114
|
+
total: typeof page.total === 'number' && Number.isFinite(page.total) && page.total >= 0 ? page.total : (append ? state.total : undefined),
|
|
115
|
+
metadata: page.metadata ?? (append ? state.metadata : undefined),
|
|
116
|
+
status: 'ready', loadingMore: false, pageError: false, complete: page.complete ?? !page.nextCursor, provisional: false };
|
|
117
|
+
loadedPages++;
|
|
118
|
+
} catch (error) {
|
|
119
|
+
if (disposed || generation !== revision) return;
|
|
120
|
+
const clear = source.clearOnError?.(error) === true;
|
|
121
|
+
// Revoked access always ends what a revalidation showed, whether or not the source clears its rows.
|
|
122
|
+
clearedByError = clear || /HTTP 40[13]\b/.test(String(error));
|
|
123
|
+
if (clearedByError) lastShown = undefined;
|
|
124
|
+
if (clear) loadedPages = 0;
|
|
125
|
+
// The rows a typed search kept on screen while it ran were never its answer: a failed one shows none of them.
|
|
126
|
+
const drop = clear || keepRows;
|
|
127
|
+
state = { ...state, ...(drop ? { items: [], nextCursor: '', total: undefined, metadata: undefined } : {}),
|
|
128
|
+
status: append && !clear ? 'ready' : 'error', loadingMore: false, pageError: append && !clear, complete: false,
|
|
129
|
+
provisional: false, error: source.errorMessage?.(error) ?? '' };
|
|
130
|
+
}
|
|
131
|
+
emit();
|
|
132
|
+
};
|
|
133
|
+
return {
|
|
134
|
+
getState: snapshot,
|
|
135
|
+
/** [revalidate]: a screen coming back re-queries the rows it shows. They stay on screen until every
|
|
136
|
+
* page is in, and a failure keeps them; revoked access still clears them, and other criteria reset. */
|
|
137
|
+
async query(criteria: Partial<CollectionQuery>, restorePages = false, revalidate = false): Promise<void> {
|
|
138
|
+
if (disposed) return Promise.resolve();
|
|
139
|
+
const next = normalize(criteria);
|
|
140
|
+
const same = JSON.stringify(next) === JSON.stringify(state.criteria);
|
|
141
|
+
const count = restorePages && same ? Math.max(loadedPages, restoringPages, 1) : 1;
|
|
142
|
+
const showing = lastShown && sameCriteria(lastShown.state.criteria, next) ? lastShown : undefined;
|
|
143
|
+
restoringPages = count;
|
|
144
|
+
// Only the search text changed: the user is typing over the rows on screen, also while the last keystroke's
|
|
145
|
+
// search is still out.
|
|
146
|
+
const typing = !same && (state.status === 'ready' || state.status === 'loading')
|
|
147
|
+
&& sameCriteria({ ...state.criteria, query: '' }, { ...next, query: '' });
|
|
148
|
+
state = { ...state, criteria: next };
|
|
149
|
+
if (revalidate && showing) { revalidating = generation + 1; clearedByError = false; }
|
|
150
|
+
const pending = fetch(false, typing);
|
|
151
|
+
const revision = generation;
|
|
152
|
+
await pending;
|
|
153
|
+
// Re-appearance revalidates every previously opened page using fresh
|
|
154
|
+
// cursors. A changed query, error or revoked access stops the restoration.
|
|
155
|
+
while (!disposed && generation === revision && loadedPages < count && state.status === 'ready'
|
|
156
|
+
&& !state.pageError && !state.loadingMore && state.nextCursor) await fetch(true);
|
|
157
|
+
if (generation === revision) restoringPages = 0;
|
|
158
|
+
if (revalidating === revision) {
|
|
159
|
+
revalidating = -1;
|
|
160
|
+
if (generation !== revision) return;
|
|
161
|
+
if ((state.status !== 'ready' || state.pageError) && showing && !clearedByError) {
|
|
162
|
+
state = { ...showing.state, criteria: next };
|
|
163
|
+
loadedPages = showing.loadedPages;
|
|
164
|
+
}
|
|
165
|
+
emit();
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
/** The page the screen shows (rows ready, nothing failing or still paging), for the service to keep with its
|
|
169
|
+
* state; undefined when it shows none. */
|
|
170
|
+
shownPage(): CollectionShownPage<Row> | undefined {
|
|
171
|
+
if (!lastShown || !sameCriteria(lastShown.state.criteria, state.criteria)) return undefined;
|
|
172
|
+
const page = lastShown.state;
|
|
173
|
+
return { state: { ...page, criteria: copyQuery(page.criteria), items: [...page.items] }, loadedPages: lastShown.loadedPages };
|
|
174
|
+
},
|
|
175
|
+
/** A cold boot restored from disk: what the last run showed becomes what this one shows, so its first `load`
|
|
176
|
+
* revalidates behind it instead of starting empty. Only before the first query, and only a well-formed page. */
|
|
177
|
+
seed(page: unknown): boolean {
|
|
178
|
+
const candidate = page && typeof page === 'object' ? page as Partial<CollectionShownPage<Row>> : undefined;
|
|
179
|
+
const restored = candidate?.state;
|
|
180
|
+
if (generation !== 0 || state.status !== 'idle' || !restored || restored.status !== 'ready'
|
|
181
|
+
|| !Array.isArray(restored.items) || typeof restored.nextCursor !== 'string') return false;
|
|
182
|
+
try { restored.items.forEach(item => { if (!source.id(item)) throw new Error('A backend collection row requires an identity'); }); } catch { return false; }
|
|
183
|
+
state = { ...state, ...restored, criteria: normalize(restored.criteria ?? {}), items: [...restored.items], status: 'ready',
|
|
184
|
+
loadingMore: false, pageError: false, provisional: false, error: '', read: restored.read ? { ...restored.read } : initialReadStatus() };
|
|
185
|
+
loadedPages = Math.max(1, Math.floor(Number(candidate?.loadedPages) || 1));
|
|
186
|
+
lastShown = { state: snapshot(), loadedPages };
|
|
187
|
+
return true;
|
|
188
|
+
},
|
|
189
|
+
refresh: () => { restoringPages = 0; return fetch(false); },
|
|
190
|
+
loadMore: () => fetch(true),
|
|
191
|
+
retry: () => fetch(state.pageError),
|
|
192
|
+
dispose() { disposed = true; generation++; },
|
|
193
|
+
};
|
|
194
|
+
}
|