@wix/himalaya-cli 0.1762.0 → 0.1764.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/stdlib/flows/screens/src/file-share-client.d.ts +115 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/file-share-screen.d.ts +57 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/file-share-service.d.ts +441 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +1032 -117
- package/dist/cli.mjs +73447 -72087
- package/guides/base44-app-to-himi-app.md +56 -0
- package/guides/getting-started.md +2 -0
- package/guides/himi-json-output.md +35 -0
- package/guides/himi-skill.md +2 -0
- package/guides/index.json +6 -0
- package/guides/one-app-section-mappings.md +6 -6
- package/guides/one-app-to-himi-app.md +27 -4
- package/guides/push-cli-onboarding.md +25 -14
- package/guides/wix-file-share.md +168 -0
- package/guides/wix-site-to-himi-app.md +1 -0
- 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 -140
- package/templates/branded-lite/l10n/cs.json +31 -140
- package/templates/branded-lite/l10n/da.json +31 -140
- package/templates/branded-lite/l10n/de.json +31 -140
- package/templates/branded-lite/l10n/el.json +31 -140
- package/templates/branded-lite/l10n/en.json +8 -6
- package/templates/branded-lite/l10n/es.json +31 -140
- package/templates/branded-lite/l10n/fi.json +31 -140
- package/templates/branded-lite/l10n/fr.json +31 -140
- package/templates/branded-lite/l10n/he.json +27 -112
- package/templates/branded-lite/l10n/hu.json +31 -140
- package/templates/branded-lite/l10n/id.json +31 -140
- package/templates/branded-lite/l10n/it.json +31 -140
- package/templates/branded-lite/l10n/ja.json +31 -140
- package/templates/branded-lite/l10n/ko.json +31 -140
- package/templates/branded-lite/l10n/lt.json +31 -140
- package/templates/branded-lite/l10n/nl.json +31 -140
- package/templates/branded-lite/l10n/no.json +31 -140
- package/templates/branded-lite/l10n/pl.json +31 -140
- package/templates/branded-lite/l10n/pt.json +31 -140
- package/templates/branded-lite/l10n/ru.json +31 -140
- package/templates/branded-lite/l10n/sv.json +31 -140
- package/templates/branded-lite/l10n/th.json +31 -140
- package/templates/branded-lite/l10n/tr.json +31 -140
- package/templates/branded-lite/l10n/uk.json +31 -140
- package/templates/branded-lite/l10n/vi.json +31 -140
- package/templates/branded-lite/l10n/zh.json +31 -140
- package/templates/branded-lite/recipes/blog-search.json +45 -0
- package/templates/{beauty-salon/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/{beauty-salon/recipes/events-inline-list.json → branded-lite/recipes/group-feed.json} +112 -89
- package/templates/{events-meetups/recipes/programs-participant-carousel.json → branded-lite/recipes/groups-cards.json} +71 -93
- package/templates/{events-meetups/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/branded-lite/tier5-src/himi-branded-lite-file-share/index.ts +8 -631
- 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.json +0 -309
- package/templates/beauty-salon/recipes/faq-list.json +0 -503
- package/templates/beauty-salon/recipes/groups-list.json +0 -196
- 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/branded-lite/tier5-src/_shared/wix-file-share.ts +0 -332
- 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-list.json +0 -228
- 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/detail-presence.ts +0 -51
- 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/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
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
{
|
|
2
|
+
"_recipe": "A rail of a Wix Video channel's videos, scrolling sideways. Cards: the cover (a play glyph when none) with the length on it, then the title under it; a tap opens the video's screen with its channel. A channel with no ready videos shows nothing. ONE node, always mounted. Service: registerVideosSection(svc, { channelId, limit, showTitle, showDuration }); the section's See All button is placed beside it by the generator, and a failed read shows the shared section-error piece.",
|
|
3
|
+
"_placeholders": {
|
|
4
|
+
"svc": "service name the page worker registered with registerVideosSection",
|
|
5
|
+
"id": "unique node id prefix for this section",
|
|
6
|
+
"detailScreen": "video screen id, himi_video"
|
|
7
|
+
},
|
|
8
|
+
"node": {
|
|
9
|
+
"id": "{{id}}.videos",
|
|
10
|
+
"body": {
|
|
11
|
+
"package": "himalaya",
|
|
12
|
+
"type": "VStack",
|
|
13
|
+
"props": {
|
|
14
|
+
"spacing": 12,
|
|
15
|
+
"alignment": "leading",
|
|
16
|
+
"children": [
|
|
17
|
+
{
|
|
18
|
+
"id": "{{id}}.loading",
|
|
19
|
+
"body": {
|
|
20
|
+
"package": "himalaya",
|
|
21
|
+
"type": "Skeleton",
|
|
22
|
+
"props": {
|
|
23
|
+
"height": 146,
|
|
24
|
+
"count": 1,
|
|
25
|
+
"cornerRadius": 12
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"modifiers": {
|
|
29
|
+
"padding": {
|
|
30
|
+
"leading": 0,
|
|
31
|
+
"trailing": 0,
|
|
32
|
+
"top": 0,
|
|
33
|
+
"bottom": 0
|
|
34
|
+
},
|
|
35
|
+
"hiddenPath": "$service:{{svc}}.notLoading"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "{{id}}.rail",
|
|
40
|
+
"body": {
|
|
41
|
+
"package": "himalaya",
|
|
42
|
+
"type": "Carousel",
|
|
43
|
+
"props": {
|
|
44
|
+
"itemsPath": "$service:{{svc}}.rows",
|
|
45
|
+
"items": [
|
|
46
|
+
{
|
|
47
|
+
"id": "{{id}}.card",
|
|
48
|
+
"body": {
|
|
49
|
+
"package": "himalaya",
|
|
50
|
+
"type": "VStack",
|
|
51
|
+
"props": {
|
|
52
|
+
"spacing": 8,
|
|
53
|
+
"alignment": "leading",
|
|
54
|
+
"children": [
|
|
55
|
+
{
|
|
56
|
+
"id": "{{id}}.frame",
|
|
57
|
+
"body": {
|
|
58
|
+
"package": "himalaya",
|
|
59
|
+
"type": "ZStack",
|
|
60
|
+
"props": {
|
|
61
|
+
"alignment": "leading",
|
|
62
|
+
"children": [
|
|
63
|
+
{
|
|
64
|
+
"id": "{{id}}.cover",
|
|
65
|
+
"body": {
|
|
66
|
+
"package": "himalaya",
|
|
67
|
+
"type": "Image",
|
|
68
|
+
"props": {
|
|
69
|
+
"url": "$item.coverUrl",
|
|
70
|
+
"fillWidth": true,
|
|
71
|
+
"height": 146,
|
|
72
|
+
"contentMode": "fill",
|
|
73
|
+
"shape": "rect"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"modifiers": {
|
|
77
|
+
"fillMaxWidth": true,
|
|
78
|
+
"hiddenPath": "$item.noCover",
|
|
79
|
+
"accessibilityRole": "decorative"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"id": "{{id}}.placeholder",
|
|
84
|
+
"body": {
|
|
85
|
+
"package": "himalaya",
|
|
86
|
+
"type": "ZStack",
|
|
87
|
+
"props": {
|
|
88
|
+
"alignment": "center",
|
|
89
|
+
"children": [
|
|
90
|
+
{
|
|
91
|
+
"id": "",
|
|
92
|
+
"body": {
|
|
93
|
+
"package": "himalaya",
|
|
94
|
+
"type": "Icon",
|
|
95
|
+
"props": {
|
|
96
|
+
"name": "play",
|
|
97
|
+
"size": 28,
|
|
98
|
+
"tint": "accentPrimary"
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
"modifiers": {
|
|
102
|
+
"accessibilityRole": "decorative"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
"modifiers": {
|
|
109
|
+
"fillMaxWidth": true,
|
|
110
|
+
"height": 146,
|
|
111
|
+
"background": {
|
|
112
|
+
"token": "accentSurface"
|
|
113
|
+
},
|
|
114
|
+
"hiddenPath": "$item.hasCover"
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"id": "",
|
|
119
|
+
"body": {
|
|
120
|
+
"package": "himalaya",
|
|
121
|
+
"type": "VStack",
|
|
122
|
+
"props": {
|
|
123
|
+
"spacing": 0,
|
|
124
|
+
"alignment": "leading",
|
|
125
|
+
"children": [
|
|
126
|
+
{
|
|
127
|
+
"id": "",
|
|
128
|
+
"body": {
|
|
129
|
+
"package": "himalaya",
|
|
130
|
+
"type": "Spacer",
|
|
131
|
+
"props": {}
|
|
132
|
+
}
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
"id": "",
|
|
136
|
+
"body": {
|
|
137
|
+
"package": "himalaya",
|
|
138
|
+
"type": "HStack",
|
|
139
|
+
"props": {
|
|
140
|
+
"spacing": 0,
|
|
141
|
+
"alignment": "center",
|
|
142
|
+
"children": [
|
|
143
|
+
{
|
|
144
|
+
"id": "",
|
|
145
|
+
"body": {
|
|
146
|
+
"package": "himalaya",
|
|
147
|
+
"type": "Spacer",
|
|
148
|
+
"props": {}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"id": "{{id}}.duration",
|
|
153
|
+
"body": {
|
|
154
|
+
"package": "himalaya",
|
|
155
|
+
"type": "Text",
|
|
156
|
+
"props": {
|
|
157
|
+
"text": "$item.duration",
|
|
158
|
+
"style": "caption",
|
|
159
|
+
"color": "textOnAccent",
|
|
160
|
+
"maxLines": 1
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"modifiers": {
|
|
164
|
+
"background": {
|
|
165
|
+
"token": "accentPrimary"
|
|
166
|
+
},
|
|
167
|
+
"cornerRadius": 6,
|
|
168
|
+
"padding": {
|
|
169
|
+
"leading": 8,
|
|
170
|
+
"trailing": 8,
|
|
171
|
+
"top": 2,
|
|
172
|
+
"bottom": 2
|
|
173
|
+
},
|
|
174
|
+
"hiddenPath": "$item.noDuration"
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
]
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
]
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
"modifiers": {
|
|
185
|
+
"fillMaxWidth": true,
|
|
186
|
+
"height": 146,
|
|
187
|
+
"padding": {
|
|
188
|
+
"leading": 8,
|
|
189
|
+
"trailing": 8,
|
|
190
|
+
"top": 8,
|
|
191
|
+
"bottom": 8
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"modifiers": {
|
|
199
|
+
"fillMaxWidth": true,
|
|
200
|
+
"height": 146,
|
|
201
|
+
"cornerRadius": 12
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
"id": "{{id}}.title",
|
|
206
|
+
"body": {
|
|
207
|
+
"package": "himalaya",
|
|
208
|
+
"type": "Text",
|
|
209
|
+
"props": {
|
|
210
|
+
"text": "$item.title",
|
|
211
|
+
"style": "bodyEmphasis",
|
|
212
|
+
"maxLines": 2
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
"modifiers": {
|
|
216
|
+
"hiddenPath": "$item.noTitle"
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"modifiers": {
|
|
223
|
+
"width": 260,
|
|
224
|
+
"onTap": {
|
|
225
|
+
"actionId": "himi.open",
|
|
226
|
+
"params": {
|
|
227
|
+
"screenId": "{{detailScreen}}",
|
|
228
|
+
"id": "$item.id",
|
|
229
|
+
"channelId": "$item.channelId"
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"pressFeedback": "scale",
|
|
233
|
+
"haptic": "light",
|
|
234
|
+
"accessibilityLabel": "$item.accessibilityLabel"
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"modifiers": {
|
|
241
|
+
"hiddenPath": "$service:{{svc}}.noRows"
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}
|
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
// limit unset -> follow the page cursor to the last post; limit N -> N posts and a "See All" for the same category,
|
|
3
3
|
// show.{author,date,readingTime,likes,views,comments} -> exactly what the section's displayOptions enable,
|
|
4
4
|
// relativeTime -> "2 hours ago" instead of the date,
|
|
5
|
-
// countOrder -> the icon counts in the source's order (default likes, views, comments)
|
|
5
|
+
// countOrder -> the icon counts in the source's order (default likes, views, comments),
|
|
6
|
+
// featuredOnly -> only the posts the owner marked featured (the Blog API's `featured` filter),
|
|
7
|
+
// search -> a search section: no posts until the reader types, then the latest posts whose title or excerpt hold the text.
|
|
6
8
|
// A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipe blog-post-row.json).
|
|
7
9
|
import { defineService as register } from "@himalaya/state";
|
|
8
10
|
import { queryPosts, type WixPost, type WixQueryPostsRequest } from "@himalaya/wix-blog";
|
|
@@ -25,6 +27,13 @@ export interface BlogListOptions {
|
|
|
25
27
|
countOrder?: CountKey[];
|
|
26
28
|
/** The post screen a row opens. */
|
|
27
29
|
detailScreenId?: string;
|
|
30
|
+
/** Only the posts the owner marked featured. */
|
|
31
|
+
featuredOnly?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* A search section instead of a list: nothing is shown (or read) until the reader types. The latest posts are read once, up to the API's
|
|
34
|
+
* per-query cap, and each keystroke filters them by title and excerpt; `limit` and paging do not apply.
|
|
35
|
+
*/
|
|
36
|
+
search?: boolean;
|
|
28
37
|
}
|
|
29
38
|
|
|
30
39
|
export interface Count { key: CountKey; icon: string; value: number; text: string }
|
|
@@ -50,6 +59,8 @@ export interface BlogListState {
|
|
|
50
59
|
loadingMore: boolean;
|
|
51
60
|
total: number;
|
|
52
61
|
notLoading: boolean; notErrored: boolean; noRows: boolean; notEmpty: boolean; noSeeAll: boolean;
|
|
62
|
+
/** True unless a search found nothing: the "no matching posts" line hides on it. */
|
|
63
|
+
hasMatches: boolean;
|
|
53
64
|
}
|
|
54
65
|
|
|
55
66
|
/** The METRICS fieldset names, across the post DTO versions. */
|
|
@@ -93,7 +104,8 @@ const slotOf = (counts: Count[], index: number): CountSlot => {
|
|
|
93
104
|
|
|
94
105
|
export function registerBlogList(serviceName: string, options: BlogListOptions) {
|
|
95
106
|
const order = (options.countOrder?.length ? options.countOrder : COUNT_KEYS).filter((key, i, all) => COUNT_KEYS.includes(key) && all.indexOf(key) === i);
|
|
96
|
-
const
|
|
107
|
+
const searching = options.search === true;
|
|
108
|
+
const limited = !searching && typeof options.limit === "number" && options.limit > 0;
|
|
97
109
|
const detailScreenId = options.detailScreenId ?? "himi_blog_post";
|
|
98
110
|
// Author names by member id, for this service only. A failed lookup stays unknown: no placeholder name.
|
|
99
111
|
const authors = new Map<string, string>();
|
|
@@ -137,14 +149,34 @@ export function registerBlogList(serviceName: string, options: BlogListOptions)
|
|
|
137
149
|
return {
|
|
138
150
|
status, rows, loadingMore, total,
|
|
139
151
|
// An unlimited list follows the cursor; a limited one stops at its authored count.
|
|
140
|
-
nextCursor: !limited && more ? String(next) : "",
|
|
152
|
+
nextCursor: !limited && !searching && more ? String(next) : "",
|
|
141
153
|
notLoading: status !== "loading", notErrored: status !== "error",
|
|
142
|
-
|
|
154
|
+
// A search has its own "no matching posts" line; the list's "no posts yet" must not show before anything is typed.
|
|
155
|
+
noRows: !rows.length, notEmpty: searching || !(status === "ready" && !rows.length),
|
|
156
|
+
hasMatches: !searching || !typed || status !== "ready" || rows.length > 0,
|
|
143
157
|
// See All only for a LIMITED list that has more posts than it shows.
|
|
144
158
|
noSeeAll: !(limited && more),
|
|
145
159
|
};
|
|
146
160
|
}
|
|
147
161
|
|
|
162
|
+
/** One query of the list: the section's category and featured filter, newest first. */
|
|
163
|
+
async function read(offset: number, size: number) {
|
|
164
|
+
const result = await queryPosts({
|
|
165
|
+
fieldsets: ["METRICS"],
|
|
166
|
+
query: {
|
|
167
|
+
filter: {
|
|
168
|
+
...(options.categoryId ? { categoryIds: { $hasSome: [options.categoryId] } } : {}),
|
|
169
|
+
...(options.featuredOnly ? { featured: { $eq: true } } : {}),
|
|
170
|
+
},
|
|
171
|
+
paging: { limit: size, offset },
|
|
172
|
+
sort: [{ fieldName: "firstPublishedDate", order: "DESC" }],
|
|
173
|
+
},
|
|
174
|
+
} as WixQueryPostsRequest & { fieldsets: string[] });
|
|
175
|
+
const posts = (result.posts ?? []) as Post[];
|
|
176
|
+
if (options.show.author) await resolveAuthors(posts);
|
|
177
|
+
return { posts, total: result.pagingMetadata?.total };
|
|
178
|
+
}
|
|
179
|
+
|
|
148
180
|
async function page(offset: number): Promise<{ rows: BlogRow[]; next: number; total: number; more: boolean }> {
|
|
149
181
|
// A limited list reads its whole count (several queries when it is above the API's per-query cap); an unlimited one a page at a time.
|
|
150
182
|
const want = limited ? options.limit as number : PAGE;
|
|
@@ -155,28 +187,42 @@ export function registerBlogList(serviceName: string, options: BlogListOptions)
|
|
|
155
187
|
let more = false;
|
|
156
188
|
while (rows.length < want) {
|
|
157
189
|
const size = Math.min(want - rows.length, limited ? MAX_PAGE : PAGE);
|
|
158
|
-
const
|
|
159
|
-
fieldsets: ["METRICS"],
|
|
160
|
-
query: {
|
|
161
|
-
filter: options.categoryId ? { categoryIds: { $hasSome: [options.categoryId] } } : {},
|
|
162
|
-
paging: { limit: size, offset: at },
|
|
163
|
-
sort: [{ fieldName: "firstPublishedDate", order: "DESC" }],
|
|
164
|
-
},
|
|
165
|
-
} as WixQueryPostsRequest & { fieldsets: string[] });
|
|
166
|
-
const posts = (result.posts ?? []) as Post[];
|
|
167
|
-
if (options.show.author) await resolveAuthors(posts);
|
|
190
|
+
const batch = await read(at, size);
|
|
168
191
|
const now = Date.now();
|
|
169
|
-
rows.push(...posts.map((post) => rowOf(post, now)));
|
|
170
|
-
at += posts.length;
|
|
171
|
-
total =
|
|
192
|
+
rows.push(...batch.posts.map((post) => rowOf(post, now)));
|
|
193
|
+
at += batch.posts.length;
|
|
194
|
+
total = batch.total;
|
|
172
195
|
// The total is optional in the response: without it, a full page means there may be more, a short or empty one means there is not.
|
|
173
|
-
more = total !== undefined ? at < total : posts.length === size;
|
|
196
|
+
more = total !== undefined ? at < total : batch.posts.length === size;
|
|
174
197
|
if (!more) break;
|
|
175
198
|
}
|
|
176
199
|
return { rows, next: offset + rows.length, total: total ?? offset + rows.length, more };
|
|
177
200
|
}
|
|
178
201
|
|
|
179
|
-
|
|
202
|
+
// ---- search section: the latest posts, read once, filtered by what the reader typed ----
|
|
203
|
+
/** The text the reader typed, trimmed and lower-cased; "" shows nothing. Read after every await, so the newest keystroke wins. */
|
|
204
|
+
let typed = "";
|
|
205
|
+
let pool: Promise<Array<{ row: BlogRow; text: string }>> | undefined;
|
|
206
|
+
const readPool = async () => {
|
|
207
|
+
const { posts } = await read(0, MAX_PAGE);
|
|
208
|
+
const now = Date.now();
|
|
209
|
+
return posts.map((post) => ({ row: rowOf(post, now), text: `${post.title ?? ""}\n${post.excerpt ?? ""}`.toLowerCase() }));
|
|
210
|
+
};
|
|
211
|
+
async function runSearch(fresh = false): Promise<BlogListState> {
|
|
212
|
+
if (fresh) pool = undefined;
|
|
213
|
+
try {
|
|
214
|
+
const entries = typed ? await (pool ??= readPool()) : [];
|
|
215
|
+
const rows = typed ? entries.filter((entry) => entry.text.includes(typed)).map((entry) => entry.row) : [];
|
|
216
|
+
return view("ready", rows, rows.length, rows.length, false);
|
|
217
|
+
} catch (error) {
|
|
218
|
+
pool = undefined;
|
|
219
|
+
console.warn("blog_list: the posts could not be read", error);
|
|
220
|
+
return view("error", [], 0, 0, false);
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
// A search section has nothing to wait for before the reader types: no skeleton.
|
|
225
|
+
const initial = view(searching ? "ready" : "loading", [], 0, 0, false);
|
|
180
226
|
/** This run has read the posts. A cold boot restores last session's rows as "ready"; they are revalidated once, then a re-appear keeps them. */
|
|
181
227
|
let loadedThisRun = false;
|
|
182
228
|
const reload = async (): Promise<BlogListState> => {
|
|
@@ -186,13 +232,21 @@ export function registerBlogList(serviceName: string, options: BlogListOptions)
|
|
|
186
232
|
const svc = register<BlogListState, {
|
|
187
233
|
load: (state: BlogListState, arg?: unknown) => Promise<BlogListState>;
|
|
188
234
|
retry: (state: BlogListState) => Promise<BlogListState>;
|
|
235
|
+
search: (state: BlogListState, arg?: unknown) => Promise<BlogListState>;
|
|
189
236
|
loadMore: (state: BlogListState) => Promise<BlogListState>;
|
|
190
237
|
}>(serviceName, {
|
|
191
238
|
state: initial,
|
|
192
239
|
actions: {
|
|
240
|
+
// A search section drops its post pool on every appear, so posts published while the reader was away are searched too (the pool is read again when they type).
|
|
193
241
|
// The screen's onAppear fires on every re-appear (back from a post): a list that has posts keeps them and its scroll position. Only an empty (nothing yet, or a failed read) list reads, so posts added while away show on return; retry always reads.
|
|
194
|
-
load: async (state, arg) => { stashCopy(arg); return loadedThisRun && state.status === "ready" && state.rows.length ? state : reload(); },
|
|
195
|
-
retry: reload,
|
|
242
|
+
load: async (state, arg) => { stashCopy(arg); return searching ? runSearch(true) : loadedThisRun && state.status === "ready" && state.rows.length ? state : reload(); },
|
|
243
|
+
retry: async () => searching ? runSearch(true) : reload(),
|
|
244
|
+
// The search field's change (debounced by the recipe): a string, or an object carrying the text as `value`.
|
|
245
|
+
search: async (_state, arg) => {
|
|
246
|
+
const value = typeof arg === "string" ? arg : (arg as { value?: unknown } | undefined)?.value;
|
|
247
|
+
typed = typeof value === "string" ? value.trim().toLowerCase() : "";
|
|
248
|
+
return runSearch();
|
|
249
|
+
},
|
|
196
250
|
loadMore: async (state) => {
|
|
197
251
|
if (!state.nextCursor || state.loadingMore) return state;
|
|
198
252
|
try {
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// A page's Pro Gallery section as a registrable service: the site's first galleries, each as its cover and name, that open the gallery.
|
|
2
|
+
// limit -> how many galleries (the source section's `maxGalleries`); `noMore` is false when the site has more,
|
|
3
|
+
// which is when the section's See All button (to the galleries screen) shows.
|
|
4
|
+
// showName -> whether a card shows the gallery's name (the source section's `isShowName`); the accessibility label always has it.
|
|
5
|
+
// The read is the one the template's galleries screen makes first (`GET /progallery/v2/galleries`, one item per gallery as its cover).
|
|
6
|
+
// A page worker registers it under a service name; the descriptor binds `$service:<serviceName>.*` (recipes galleries-carousel / galleries-list).
|
|
7
|
+
import { defineService } from "@himalaya/state";
|
|
8
|
+
import { wixMediaUrl } from "@himalaya/wix-media";
|
|
9
|
+
import { copyParam, stashCopy, copyTemplate } from "./himi-copy.js";
|
|
10
|
+
|
|
11
|
+
export interface GalleriesSectionOptions {
|
|
12
|
+
/** How many galleries to show. */
|
|
13
|
+
limit?: number;
|
|
14
|
+
/** Whether a card shows the gallery's name. */
|
|
15
|
+
showName?: boolean;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface GalleryRow {
|
|
19
|
+
id: string;
|
|
20
|
+
/** The name a card shows: "" when the source section hides names. */
|
|
21
|
+
name: string;
|
|
22
|
+
/** The gallery's name for screen readers and for the screen the card opens. */
|
|
23
|
+
label: string;
|
|
24
|
+
image: string; initial: string; hasImage: boolean; noImage: boolean;
|
|
25
|
+
/** The screen a card opens; the card binds `id`, `label` and `source` as its params. */
|
|
26
|
+
detailScreenId: string;
|
|
27
|
+
/** `himi_gallery` reads a gallery live from the Pro Gallery gateway only when the tap says the row came from there. */
|
|
28
|
+
source: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export interface GalleriesSectionState {
|
|
32
|
+
status: "loading" | "ready" | "error";
|
|
33
|
+
rows: GalleryRow[];
|
|
34
|
+
emptyText: string;
|
|
35
|
+
notLoading: boolean; notErrored: boolean; noRows: boolean; noEmpty: boolean;
|
|
36
|
+
/** false when the site has more galleries than the section shows. */
|
|
37
|
+
noMore: boolean;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const GALLERIES_PATH = "/progallery/v2/galleries";
|
|
41
|
+
const DEFAULT_LIMIT = 10;
|
|
42
|
+
/** The API's page maximum, and the most galleries a section shows (the template's galleries screen caps at 30 too). */
|
|
43
|
+
const PAGE_SIZE = 10, MAX_GALLERIES = 30;
|
|
44
|
+
/** A 240pt card at 3x: the shared list size (1000px) would ship far more pixels than a rail shows. */
|
|
45
|
+
const CARD_IMAGE = { width: 720, height: 540, quality: 85 };
|
|
46
|
+
|
|
47
|
+
type WixApi = { call: (method: string, path: string) => Promise<unknown> };
|
|
48
|
+
interface RawGallery { id?: unknown; name?: unknown; items?: Array<{ image?: { imageInfo?: unknown } }> }
|
|
49
|
+
|
|
50
|
+
/** A Pro Gallery image item's URL: `imageInfo` is a Wix media object (`{ url, id }`) or a `wix:image://` string; anything else is "". */
|
|
51
|
+
function coverOf(gallery: RawGallery): string {
|
|
52
|
+
const info = Array.isArray(gallery.items) ? gallery.items[0]?.image?.imageInfo : undefined;
|
|
53
|
+
if (typeof info === "string") return wixMediaUrl(info, CARD_IMAGE);
|
|
54
|
+
if (!info || typeof info !== "object") return "";
|
|
55
|
+
const media = info as { url?: unknown; id?: unknown };
|
|
56
|
+
return wixMediaUrl(media.url, CARD_IMAGE) || wixMediaUrl(media.id, CARD_IMAGE);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function rowOf(gallery: RawGallery, index: number, showName: boolean): GalleryRow {
|
|
60
|
+
const name = typeof gallery.name === "string" ? gallery.name.trim() : "";
|
|
61
|
+
const label = name || copyTemplate("galleries.untitledGallery", "Gallery {number}", { number: index + 1 });
|
|
62
|
+
const image = coverOf(gallery);
|
|
63
|
+
return {
|
|
64
|
+
id: gallery.id as string, name: showName ? label : "", label,
|
|
65
|
+
image, initial: (label[0] ?? "#").toUpperCase(), hasImage: !!image, noImage: !image,
|
|
66
|
+
detailScreenId: "himi_gallery", source: "gateway",
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** The first `limit` galleries, page by page, and whether the site has more. A response that is not a gallery list is a failed read. */
|
|
71
|
+
async function readGalleries(api: WixApi, limit: number): Promise<{ galleries: RawGallery[]; more: boolean }> {
|
|
72
|
+
const galleries: RawGallery[] = [];
|
|
73
|
+
let total: unknown;
|
|
74
|
+
while (galleries.length < limit) {
|
|
75
|
+
const size = Math.min(PAGE_SIZE, limit - galleries.length);
|
|
76
|
+
const res = await api.call("GET", `${GALLERIES_PATH}?itemLimit=1&offset=${galleries.length}&limit=${size}`) as { galleries?: unknown; totalGalleries?: unknown } | null;
|
|
77
|
+
const page = res?.galleries;
|
|
78
|
+
if (!Array.isArray(page)) throw new Error("Malformed Pro Gallery list response");
|
|
79
|
+
galleries.push(...(page as RawGallery[]));
|
|
80
|
+
total = res?.totalGalleries;
|
|
81
|
+
if (page.length < size) break;
|
|
82
|
+
}
|
|
83
|
+
// A response without a total cannot say the list ended: a section that read its full count offers View All.
|
|
84
|
+
return { galleries, more: typeof total === "number" ? total > galleries.length : galleries.length >= limit };
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function registerGalleriesSection(serviceName: string, options: GalleriesSectionOptions = {}) {
|
|
88
|
+
const limit = Math.min(Math.max(Math.floor(options.limit ?? DEFAULT_LIMIT), 1), MAX_GALLERIES);
|
|
89
|
+
const showName = options.showName !== false;
|
|
90
|
+
const view = (status: GalleriesSectionState["status"], rows: GalleryRow[], more: boolean): GalleriesSectionState => ({
|
|
91
|
+
status, rows,
|
|
92
|
+
emptyText: status === "ready" && !rows.length ? copyParam("galleries.sectionEmptyText", "No galleries yet.") : "",
|
|
93
|
+
notLoading: status !== "loading", notErrored: status !== "error",
|
|
94
|
+
noRows: !rows.length, noEmpty: !(status === "ready" && !rows.length),
|
|
95
|
+
noMore: !more,
|
|
96
|
+
});
|
|
97
|
+
return defineService<GalleriesSectionState, { load: (state: GalleriesSectionState, arg?: unknown) => Promise<GalleriesSectionState> }>(serviceName, {
|
|
98
|
+
state: view("loading", [], false),
|
|
99
|
+
actions: {
|
|
100
|
+
load: async (_state, arg) => {
|
|
101
|
+
stashCopy(arg);
|
|
102
|
+
try {
|
|
103
|
+
const api = (globalThis as { himalaya?: { wixApi?: WixApi } }).himalaya?.wixApi;
|
|
104
|
+
if (!api) throw new Error("Wix bridge unavailable");
|
|
105
|
+
const { galleries, more } = await readGalleries(api, limit);
|
|
106
|
+
const rows = galleries.filter((gallery) => typeof gallery.id === "string" && gallery.id).slice(0, limit).map((gallery, index) => rowOf(gallery, index, showName));
|
|
107
|
+
return view("ready", rows, more);
|
|
108
|
+
} catch (error) {
|
|
109
|
+
console.warn("galleries_section: the galleries could not be read", error);
|
|
110
|
+
return view("error", [], false);
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
});
|
|
115
|
+
}
|