@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
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// "2 hours ago" for a recent timestamp, the plain date once it is a week old (the One App blog list and cards).
|
|
2
|
-
// Pure and Intl-free: the absolute date comes from engine-intl, whose fallback never throws on the wrist engines.
|
|
3
|
-
import { copyParam, copyPlural } from "./himi-copy.js";
|
|
4
|
-
import { formatDateMedium } from "./engine-intl.js";
|
|
5
|
-
|
|
6
|
-
const MINUTE = 60_000;
|
|
7
|
-
const HOUR = 60 * MINUTE;
|
|
8
|
-
const DAY = 24 * HOUR;
|
|
9
|
-
const RELATIVE_DAYS = 7;
|
|
10
|
-
|
|
11
|
-
/** "" when `iso` is missing or not a date. A time in the future (a clock skew) reads as the date, never "-3 minutes ago". */
|
|
12
|
-
export function relativeTime(iso: string | undefined, now: number): string {
|
|
13
|
-
const at = iso ? Date.parse(iso) : NaN;
|
|
14
|
-
if (!Number.isFinite(at)) return "";
|
|
15
|
-
const age = now - at;
|
|
16
|
-
if (age < 0 || age >= RELATIVE_DAYS * DAY) return formatDateMedium(new Date(at));
|
|
17
|
-
if (age < MINUTE) return copyParam("relativeTime.justNow", "Just now");
|
|
18
|
-
if (age < HOUR) return copyPlural("relativeTime.minutesAgo", "{n, plural, one {# minute ago} other {# minutes ago}}", Math.floor(age / MINUTE));
|
|
19
|
-
if (age < DAY) return copyPlural("relativeTime.hoursAgo", "{n, plural, one {# hour ago} other {# hours ago}}", Math.floor(age / HOUR));
|
|
20
|
-
return copyPlural("relativeTime.daysAgo", "{n, plural, one {# day ago} other {# days ago}}", Math.floor(age / DAY));
|
|
21
|
-
}
|
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
// Wix File Share ("Documents") — the consumer REST contract, for Tier-5 workers. Hand-written.
|
|
2
|
-
//
|
|
3
|
-
// SOURCE. Every path, field and enum below comes from the File Share service's published schema
|
|
4
|
-
// (docs-schema FQDN `wix.file_sharing.v1.library_item` / `.settings`, appDefId
|
|
5
|
-
// 1537b24e-29d1-6d8f-b8e1-d6860f2f70b9, proto artifact com.wixpress.catalyst:file-sharing-api) and
|
|
6
|
-
// from its server and its JS client in wix-private/catalyst-server (file-sharing-server/). The
|
|
7
|
-
// public gateway maps `www.wixapis.com/file-sharing/api/v1/file-sharing/*` onto the service, so the
|
|
8
|
-
// calls go through the host's wixApi bridge with the visitor or member credential. Owner
|
|
9
|
-
// credentials are never used: a library's folder and plan permissions are evaluated for the
|
|
10
|
-
// identity that calls.
|
|
11
|
-
//
|
|
12
|
-
// PERMISSIONS ARE THE SERVER'S. FileSharingService checks View on every read (a query returns only
|
|
13
|
-
// the items the caller may see), Download on `download`, UploadFile on the target folder for
|
|
14
|
-
// `start-upload` and `complete-upload`. `authorize-actions` only says in advance what those checks
|
|
15
|
-
// will answer, so a screen can leave out a button that would be refused. It is never the gate.
|
|
16
|
-
//
|
|
17
|
-
// CACHING. None of these paths has a Wix cache rule, and the native cache policy is deny-by-default
|
|
18
|
-
// (WixCachePolicy), so a member's restricted listing is never served to the next account.
|
|
19
|
-
|
|
20
|
-
export const FILE_SHARE_APP_DEF_ID = "1537b24e-29d1-6d8f-b8e1-d6860f2f70b9";
|
|
21
|
-
export const FILE_SHARE_BASE = "/file-sharing/api/v1/file-sharing";
|
|
22
|
-
|
|
23
|
-
/** Rows per page. The service allows 1..100. */
|
|
24
|
-
export const PAGE_SIZE = 50;
|
|
25
|
-
/** `LibraryItemFilter.search` is 1..50 characters. */
|
|
26
|
-
export const SEARCH_MAX = 50;
|
|
27
|
-
/** `CompleteFileUploadAction.uploadResponse` is at most 4096 characters. */
|
|
28
|
-
export const UPLOAD_RESPONSE_MAX = 4096;
|
|
29
|
-
/** The largest file this app uploads. The upload is a multipart body sent through
|
|
30
|
-
* `presigned_upload.put`, whose inline bound is 8 MiB (MAX_INLINE_BASE64_BYTES); 7 MiB leaves
|
|
31
|
-
* room for the form fields. A larger file is refused before any request, with a message. */
|
|
32
|
-
export const UPLOAD_MAX_BYTES = 7 * 1024 * 1024;
|
|
33
|
-
|
|
34
|
-
export type Availability = "PUBLIC" | "MEMBER" | "PAID" | string;
|
|
35
|
-
export type AllowedAction =
|
|
36
|
-
| "MOVE" | "RENAME" | "DELETE" | "DOWNLOAD" | "CREATE_FOLDER" | "UPLOAD_FILE" | "VIEW" | "FAVORITE" | "MANAGE_PERMISSIONS";
|
|
37
|
-
|
|
38
|
-
export interface WixLibraryItem {
|
|
39
|
-
id?: string;
|
|
40
|
-
name?: string;
|
|
41
|
-
parentFolderId?: string;
|
|
42
|
-
createdAt?: string;
|
|
43
|
-
createdByName?: string | { value?: string };
|
|
44
|
-
path?: Array<{ libraryItemId?: string; name?: string }>;
|
|
45
|
-
availability?: Availability;
|
|
46
|
-
fileFields?: { extension?: string; sizeInBytes?: string | number; size?: number; category?: string; previewable?: boolean };
|
|
47
|
-
folderFields?: { childrenCount?: number; lastModified?: string; availability?: Availability };
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export interface LibraryPage {
|
|
51
|
-
items: WixLibraryItem[];
|
|
52
|
-
nextCursor: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface AuthorizedAction {
|
|
56
|
-
itemId?: string;
|
|
57
|
-
action?: AllowedAction;
|
|
58
|
-
status?: "ALLOWED" | "FORBIDDEN";
|
|
59
|
-
reason?: string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface Authorization {
|
|
63
|
-
/** itemId → the actions the server will allow on it. */
|
|
64
|
-
items: Map<string, Set<AllowedAction>>;
|
|
65
|
-
/** itemId → why each refused action is refused (`MUST_BE_A_MEMBER`, `MISSING_PERMISSION`, …). */
|
|
66
|
-
refusals: Map<string, Map<AllowedAction, string>>;
|
|
67
|
-
/** Actions allowed in the folder passed as `parentFolderId`. */
|
|
68
|
-
folder: Set<AllowedAction>;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export interface FileShareSettings {
|
|
72
|
-
rootFolderId: string;
|
|
73
|
-
whoCanDownload: string;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export interface UploadTarget {
|
|
77
|
-
url: string;
|
|
78
|
-
requestParameters: Record<string, string>;
|
|
79
|
-
actionId: string;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/** A refusal `start-upload` or `complete-upload` returned instead of a URL or an item. */
|
|
83
|
-
export interface UploadRefusal {
|
|
84
|
-
kind: "tooBig" | "extension" | "quota" | "video" | "unknown";
|
|
85
|
-
maxSize?: number;
|
|
86
|
-
extension?: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
type WixApiBridge = { call: (method: string, path: string, body?: unknown) => Promise<unknown> };
|
|
90
|
-
|
|
91
|
-
async function call<T>(method: string, path: string, body?: unknown): Promise<T> {
|
|
92
|
-
const wixApi = (globalThis as { himalaya?: { wixApi?: WixApiBridge } }).himalaya?.wixApi;
|
|
93
|
-
if (!wixApi) throw new Error("wix-file-share: host did not install the wixApi bridge");
|
|
94
|
-
return (body === undefined
|
|
95
|
-
? await wixApi.call(method, `${FILE_SHARE_BASE}${path}`)
|
|
96
|
-
: await wixApi.call(method, `${FILE_SHARE_BASE}${path}`, body)) as T;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/** The HTTP status of a bridge failure. The bridges put it first in the message (`HTTP 403 …`);
|
|
100
|
-
* some also set a field. A status quoted inside the body is data, not the answer. */
|
|
101
|
-
export function httpStatus(error: unknown): number | undefined {
|
|
102
|
-
if (!error || typeof error !== "object") return undefined;
|
|
103
|
-
const row = error as { status?: unknown; statusCode?: unknown; response?: { status?: unknown }; message?: unknown };
|
|
104
|
-
for (const value of [row.status, row.statusCode, row.response?.status]) {
|
|
105
|
-
if (typeof value === "number" && value >= 100) return value;
|
|
106
|
-
}
|
|
107
|
-
const match = typeof row.message === "string" ? /^(?:HTTP\s*)?(\d{3})\b/i.exec(row.message.trim()) : null;
|
|
108
|
-
return match ? Number(match[1]) : undefined;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
function page(raw: unknown): LibraryPage {
|
|
112
|
-
const data = (raw ?? {}) as { libraryItems?: unknown; metaData?: { nextCursor?: unknown } };
|
|
113
|
-
const next = data.metaData?.nextCursor;
|
|
114
|
-
return {
|
|
115
|
-
items: Array.isArray(data.libraryItems) ? data.libraryItems as WixLibraryItem[] : [],
|
|
116
|
-
// A StringValue arrives as a bare string; tolerate the wrapped form too.
|
|
117
|
-
nextCursor: typeof next === "string" ? next : typeof (next as { value?: unknown })?.value === "string" ? String((next as { value: string }).value) : "",
|
|
118
|
-
};
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
function paging(cursor: string): { limit: number; cursor?: string } {
|
|
122
|
-
return cursor ? { limit: PAGE_SIZE, cursor } : { limit: PAGE_SIZE };
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** One page of a folder's direct children. `folderId` "" is the library root (the service
|
|
126
|
-
* defaults to it when no parent is given). */
|
|
127
|
-
export async function queryFolder(folderId: string, cursor = ""): Promise<LibraryPage> {
|
|
128
|
-
return page(await call("POST", "/library-folder-items/query", {
|
|
129
|
-
...(folderId ? { filter: { parentLibraryItemIds: [folderId] } } : {}),
|
|
130
|
-
paging: paging(cursor),
|
|
131
|
-
}));
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/** One page of a name / uploader search under `folderId` (the whole library for ""). */
|
|
135
|
-
export async function searchLibrary(text: string, folderId: string, cursor = ""): Promise<LibraryPage> {
|
|
136
|
-
const search = text.trim().slice(0, SEARCH_MAX);
|
|
137
|
-
return page(await call("POST", "/library-items/query", {
|
|
138
|
-
filter: { search, ...(folderId ? { descendantsOfFolderId: folderId } : {}) },
|
|
139
|
-
paging: paging(cursor),
|
|
140
|
-
}));
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export async function appSettings(): Promise<FileShareSettings> {
|
|
144
|
-
const data = await call<{ rootFolderId?: unknown; settings?: { downloadSettings?: { whoCanDownload?: unknown } } }>("GET", "/settings");
|
|
145
|
-
return {
|
|
146
|
-
rootFolderId: typeof data?.rootFolderId === "string" ? data.rootFolderId : "",
|
|
147
|
-
whoCanDownload: typeof data?.settings?.downloadSettings?.whoCanDownload === "string" ? data.settings.downloadSettings.whoCanDownload : "",
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/** What the caller may do on `itemIds` (at most 100) and inside `parentFolderId`. */
|
|
152
|
-
export async function authorize(itemIds: string[], parentFolderId: string): Promise<Authorization> {
|
|
153
|
-
const data = await call<{ authorizedActions?: AuthorizedAction[]; folderAuthorizedActions?: AuthorizedAction[] }>(
|
|
154
|
-
"POST",
|
|
155
|
-
"/authorize-actions",
|
|
156
|
-
{ libraryItemIds: itemIds.slice(0, 100), ...(parentFolderId ? { parentFolderId } : {}) },
|
|
157
|
-
);
|
|
158
|
-
const items = new Map<string, Set<AllowedAction>>();
|
|
159
|
-
const refusals = new Map<string, Map<AllowedAction, string>>();
|
|
160
|
-
for (const row of data?.authorizedActions ?? []) {
|
|
161
|
-
if (!row?.itemId || !row.action) continue;
|
|
162
|
-
if (row.status === "ALLOWED") {
|
|
163
|
-
if (!items.has(row.itemId)) items.set(row.itemId, new Set());
|
|
164
|
-
items.get(row.itemId)!.add(row.action);
|
|
165
|
-
} else {
|
|
166
|
-
if (!refusals.has(row.itemId)) refusals.set(row.itemId, new Map());
|
|
167
|
-
refusals.get(row.itemId)!.set(row.action, row.reason ?? "");
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
const folder = new Set<AllowedAction>();
|
|
171
|
-
for (const row of data?.folderAuthorizedActions ?? []) {
|
|
172
|
-
if (row?.action && row.status === "ALLOWED") folder.add(row.action);
|
|
173
|
-
}
|
|
174
|
-
return { items, refusals, folder };
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
/** A fresh, expiring `Content-Disposition: attachment` URL for one file. */
|
|
178
|
-
export async function downloadUrl(itemId: string): Promise<string> {
|
|
179
|
-
const data = await call<{ url?: unknown }>("POST", "/library-items/download", { action: { libraryItemIds: [itemId] } });
|
|
180
|
-
if (typeof data?.url !== "string" || !data.url) throw new Error("wix-file-share: download returned no url");
|
|
181
|
-
return data.url;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
/** A fresh `Content-Disposition: inline` URL for one file. The service counts it as a view. */
|
|
185
|
-
export async function viewUrl(itemId: string): Promise<string> {
|
|
186
|
-
const data = await call<{ urls?: Array<{ libraryItemId?: string; url?: string }> }>("POST", "/library-items/view-file", { actions: [{ libraryItemId: itemId }] });
|
|
187
|
-
const url = (data?.urls ?? []).find((row) => row?.libraryItemId === itemId)?.url ?? data?.urls?.[0]?.url;
|
|
188
|
-
if (typeof url !== "string" || !url) throw new Error("wix-file-share: view-file returned no url");
|
|
189
|
-
return url;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
function refusalOf(row: Record<string, unknown> | undefined): UploadRefusal {
|
|
193
|
-
const tooBig = row?.fileTooBig as { maxSize?: unknown } | undefined;
|
|
194
|
-
if (tooBig) return { kind: "tooBig", ...(Number.isFinite(Number(tooBig.maxSize)) ? { maxSize: Number(tooBig.maxSize) } : {}) };
|
|
195
|
-
const ext = row?.fileExtensionNotSupported as { extension?: unknown } | undefined;
|
|
196
|
-
if (ext) return { kind: "extension", ...(typeof ext.extension === "string" ? { extension: ext.extension } : {}) };
|
|
197
|
-
if (row?.quotaExceeded) return { kind: "quota" };
|
|
198
|
-
if (row?.videoFilesForbidden) return { kind: "video" };
|
|
199
|
-
return { kind: "unknown" };
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
/** Phase 1: ask for an upload URL for one file into `folderId` ("" = root). */
|
|
203
|
-
export async function startUpload(
|
|
204
|
-
file: { name: string; sizeBytes: number },
|
|
205
|
-
folderId: string,
|
|
206
|
-
actionId: string,
|
|
207
|
-
): Promise<{ target?: UploadTarget; refusal?: UploadRefusal }> {
|
|
208
|
-
const data = await call<{ urls?: Array<Record<string, unknown>>; failures?: Array<Record<string, unknown>> }>("POST", "/files/start-upload", {
|
|
209
|
-
actions: [{ name: file.name, sizeInBytes: String(file.sizeBytes), ...(folderId ? { parentFolderId: folderId } : {}), actionId }],
|
|
210
|
-
});
|
|
211
|
-
const failure = (data?.failures ?? []).find((row) => row?.actionId === actionId) ?? data?.failures?.[0];
|
|
212
|
-
if (failure) return { refusal: refusalOf(failure) };
|
|
213
|
-
const row = (data?.urls ?? []).find((candidate) => candidate?.actionId === actionId) ?? data?.urls?.[0];
|
|
214
|
-
const url = typeof row?.url === "string" ? row.url : "";
|
|
215
|
-
if (!url) return { refusal: { kind: "unknown" } };
|
|
216
|
-
const params: Record<string, string> = {};
|
|
217
|
-
for (const [key, value] of Object.entries((row?.requestParameters ?? {}) as Record<string, unknown>)) {
|
|
218
|
-
if (value !== undefined && value !== null) params[key] = String(value);
|
|
219
|
-
}
|
|
220
|
-
return { target: { url, requestParameters: params, actionId } };
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
/** Phase 3: hand the upload host's answer back, so the file becomes a library item. */
|
|
224
|
-
export async function completeUpload(
|
|
225
|
-
uploadResponse: string,
|
|
226
|
-
folderId: string,
|
|
227
|
-
actionId: string,
|
|
228
|
-
): Promise<{ item?: WixLibraryItem; refusal?: UploadRefusal }> {
|
|
229
|
-
const data = await call<{ libraryItems?: WixLibraryItem[]; failures?: Array<Record<string, unknown>> }>("POST", "/files/complete-upload", {
|
|
230
|
-
actions: [{ uploadResponse, ...(folderId ? { parentFolderId: folderId } : {}), actionId }],
|
|
231
|
-
});
|
|
232
|
-
const failure = (data?.failures ?? []).find((row) => row?.actionId === actionId) ?? data?.failures?.[0];
|
|
233
|
-
if (failure) return { refusal: refusalOf(failure) };
|
|
234
|
-
const item = data?.libraryItems?.[0];
|
|
235
|
-
return item?.id ? { item } : { refusal: { kind: "unknown" } };
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
// ── multipart body, as base64 ────────────────────────────────────────────────
|
|
239
|
-
//
|
|
240
|
-
// The upload host takes `multipart/form-data`: every `requestParameters` entry as a field, then
|
|
241
|
-
// the bytes as `file` (catalyst-server WixMediaClient.uploadFile). `presigned_upload.put` sends a
|
|
242
|
-
// base64 body verbatim, so the body is built here as base64 WITHOUT decoding the file: the text
|
|
243
|
-
// before the file is made a multiple of 3 bytes long (by a CRLF preamble, which RFC 2046 lets a
|
|
244
|
-
// parser ignore), so its base64 joins the file's base64 exactly. Only the file's last base64
|
|
245
|
-
// quantum (at most 3 bytes) is decoded, to be re-encoded together with the closing boundary.
|
|
246
|
-
|
|
247
|
-
const B64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
248
|
-
|
|
249
|
-
export function utf8Bytes(text: string): number[] {
|
|
250
|
-
const out: number[] = [];
|
|
251
|
-
for (const ch of text) {
|
|
252
|
-
let code = ch.codePointAt(0)!;
|
|
253
|
-
if (code < 0x80) out.push(code);
|
|
254
|
-
else if (code < 0x800) out.push(0xc0 | (code >> 6), 0x80 | (code & 63));
|
|
255
|
-
else if (code < 0x10000) out.push(0xe0 | (code >> 12), 0x80 | ((code >> 6) & 63), 0x80 | (code & 63));
|
|
256
|
-
else {
|
|
257
|
-
code = Math.min(code, 0x10ffff);
|
|
258
|
-
out.push(0xf0 | (code >> 18), 0x80 | ((code >> 12) & 63), 0x80 | ((code >> 6) & 63), 0x80 | (code & 63));
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
return out;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
export function base64Encode(bytes: number[]): string {
|
|
265
|
-
let out = "";
|
|
266
|
-
for (let i = 0; i < bytes.length; i += 3) {
|
|
267
|
-
const a = bytes[i]!, b = bytes[i + 1], c = bytes[i + 2];
|
|
268
|
-
const n = (a << 16) | ((b ?? 0) << 8) | (c ?? 0);
|
|
269
|
-
out += B64[(n >> 18) & 63]! + B64[(n >> 12) & 63]! + (b === undefined ? "=" : B64[(n >> 6) & 63]!) + (c === undefined ? "=" : B64[n & 63]!);
|
|
270
|
-
}
|
|
271
|
-
return out;
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
/** Decode ONE base64 quantum (4 characters) into its 1–3 bytes. */
|
|
275
|
-
function decodeQuantum(quantum: string): number[] {
|
|
276
|
-
const values = [...quantum].map((ch) => (ch === "=" ? -1 : B64.indexOf(ch)));
|
|
277
|
-
// Two data characters, then either two more, one and "=", or "==".
|
|
278
|
-
if (values.length !== 4 || values[0]! < 0 || values[1]! < 0 || (values[2]! < 0 && values[3]! >= 0)) {
|
|
279
|
-
throw new Error("wix-file-share: invalid base64");
|
|
280
|
-
}
|
|
281
|
-
const n = (values[0]! << 18) | (values[1]! << 12) | (Math.max(values[2]!, 0) << 6) | Math.max(values[3]!, 0);
|
|
282
|
-
const bytes = [(n >> 16) & 255];
|
|
283
|
-
if (values[2]! >= 0) bytes.push((n >> 8) & 255);
|
|
284
|
-
if (values[3]! >= 0) bytes.push(n & 255);
|
|
285
|
-
return bytes;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/** A header value inside double quotes: no CR/LF, quotes and backslashes escaped. */
|
|
289
|
-
function quoted(value: string): string {
|
|
290
|
-
return value.replace(/[\r\n]+/g, " ").replace(/["\\]/g, (ch) => `\\${ch}`);
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
export function multipartBase64(
|
|
294
|
-
fields: Record<string, string>,
|
|
295
|
-
file: { name: string; mimeType: string; base64: string },
|
|
296
|
-
boundary: string,
|
|
297
|
-
): string {
|
|
298
|
-
if (!/^[A-Za-z0-9'()+_,.\/:=?-]{1,70}$/.test(boundary)) throw new Error("wix-file-share: invalid boundary");
|
|
299
|
-
const fileB64 = file.base64.replace(/\s+/g, "");
|
|
300
|
-
if (fileB64.length % 4 !== 0 || /[^A-Za-z0-9+/=]/.test(fileB64) || /=[^=]/.test(fileB64)) throw new Error("wix-file-share: invalid base64");
|
|
301
|
-
const mime = /^[A-Za-z0-9!#$&^_.+-]+\/[A-Za-z0-9!#$&^_.+-]+$/.test(file.mimeType) ? file.mimeType : "application/octet-stream";
|
|
302
|
-
let head = "";
|
|
303
|
-
for (const [name, value] of Object.entries(fields)) {
|
|
304
|
-
head += `--${boundary}\r\nContent-Disposition: form-data; name="${quoted(name)}"\r\n\r\n${value}\r\n`;
|
|
305
|
-
}
|
|
306
|
-
head += `--${boundary}\r\nContent-Disposition: form-data; name="file"; filename="${quoted(file.name)}"\r\nContent-Type: ${mime}\r\n\r\n`;
|
|
307
|
-
const headBytes = utf8Bytes(head);
|
|
308
|
-
// Pad to a multiple of 3 with a CRLF preamble: remainder 1 takes 2 bytes, remainder 2 takes 4.
|
|
309
|
-
const preamble = [[], [13, 10], [13, 10, 13, 10]][headBytes.length % 3]!;
|
|
310
|
-
const prefix = [...preamble, ...headBytes];
|
|
311
|
-
const body = fileB64.slice(0, Math.max(0, fileB64.length - 4));
|
|
312
|
-
const last = fileB64.length ? decodeQuantum(fileB64.slice(-4)) : [];
|
|
313
|
-
const tail = [...last, ...utf8Bytes(`\r\n--${boundary}--\r\n`)];
|
|
314
|
-
return base64Encode(prefix) + body + base64Encode(tail);
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
/** Human file size: 0 B, 12 KB, 3.4 MB. */
|
|
318
|
-
export function formatSize(bytes: number): string {
|
|
319
|
-
if (!Number.isFinite(bytes) || bytes < 0) return "";
|
|
320
|
-
if (bytes < 1024) return `${bytes} B`;
|
|
321
|
-
const units = ["KB", "MB", "GB", "TB"];
|
|
322
|
-
let value = bytes / 1024;
|
|
323
|
-
let unit = 0;
|
|
324
|
-
while (value >= 1024 && unit < units.length - 1) { value /= 1024; unit += 1; }
|
|
325
|
-
return `${value >= 10 || Number.isInteger(value) ? Math.round(value) : value.toFixed(1)} ${units[unit]}`;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
export function sizeOf(item: WixLibraryItem): number {
|
|
329
|
-
const raw = item.fileFields?.sizeInBytes ?? item.fileFields?.size;
|
|
330
|
-
const n = typeof raw === "string" ? Number(raw) : raw;
|
|
331
|
-
return typeof n === "number" && Number.isFinite(n) && n >= 0 ? n : -1;
|
|
332
|
-
}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_recipe": "The business's latest announcement (title, rich body, creator and date), read at runtime. Service: registerAnnouncementSection(svc). Hidden whole while there is nothing to show.",
|
|
3
|
-
"_placeholders": {
|
|
4
|
-
"svc": "service name the page worker registered with registerAnnouncementSection",
|
|
5
|
-
"id": "unique node id prefix (e.g. the screen id)",
|
|
6
|
-
"heading": "the source section's own title when it shows one, else an empty string"
|
|
7
|
-
},
|
|
8
|
-
"node": {
|
|
9
|
-
"id": "{{id}}.announcement",
|
|
10
|
-
"body": {
|
|
11
|
-
"package": "himalaya",
|
|
12
|
-
"type": "VStack",
|
|
13
|
-
"props": {
|
|
14
|
-
"spacing": 8,
|
|
15
|
-
"alignment": "leading",
|
|
16
|
-
"children": [
|
|
17
|
-
{
|
|
18
|
-
"id": "{{id}}.heading",
|
|
19
|
-
"body": { "package": "himalaya", "type": "Text", "props": { "text": "{{heading}}", "style": "title3", "collapseWhenEmpty": true } }
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"id": "{{id}}.title",
|
|
23
|
-
"body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.title", "style": "bodyEmphasis", "collapseWhenEmpty": true } },
|
|
24
|
-
"modifiers": { "hiddenPath": "$service:{{svc}}.noTitle" }
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"id": "{{id}}.body_rich",
|
|
28
|
-
"body": {
|
|
29
|
-
"package": "himalaya",
|
|
30
|
-
"type": "RichContent",
|
|
31
|
-
"props": {
|
|
32
|
-
"documentJsonPath": "$service:{{svc}}.bodyJson",
|
|
33
|
-
"onLink": { "actionId": "tier5.{{svc}}.openLink" },
|
|
34
|
-
"fallback": { "id": "{{id}}.body_rich_fallback", "body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.body", "style": "body", "color": "textSecondary" } } }
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
"modifiers": { "hiddenPath": "$service:{{svc}}.noBodyJson" }
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
"id": "{{id}}.body",
|
|
41
|
-
"body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.body", "style": "body", "color": "textSecondary", "collapseWhenEmpty": true } },
|
|
42
|
-
"modifiers": { "hiddenPath": "$service:{{svc}}.hasBodyJson" }
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"id": "{{id}}.meta",
|
|
46
|
-
"body": {
|
|
47
|
-
"package": "himalaya",
|
|
48
|
-
"type": "HStack",
|
|
49
|
-
"props": {
|
|
50
|
-
"spacing": 8,
|
|
51
|
-
"alignment": "center",
|
|
52
|
-
"children": [
|
|
53
|
-
{
|
|
54
|
-
"id": "{{id}}.creator",
|
|
55
|
-
"body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.creator", "style": "caption", "color": "textSecondary", "collapseWhenEmpty": true } },
|
|
56
|
-
"modifiers": { "hiddenPath": "$service:{{svc}}.noCreator" }
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"id": "{{id}}.created",
|
|
60
|
-
"body": { "package": "himalaya", "type": "Text", "props": { "text": "$service:{{svc}}.created", "style": "caption", "color": "textSecondary", "collapseWhenEmpty": true } },
|
|
61
|
-
"modifiers": { "hiddenPath": "$service:{{svc}}.noCreated" }
|
|
62
|
-
}
|
|
63
|
-
]
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
"modifiers": { "hiddenPath": "$service:{{svc}}.noAnnouncement", "padding": { "leading": 16, "trailing": 16, "top": 16, "bottom": 16 } }
|
|
71
|
-
}
|
|
72
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"_recipe": "Blog hero: the latest posts as a snapping carousel (one post per page, page dots drawn by the renderer): cover image, then title and time under it. ONE node. Service: registerBlogList(svc, { limit }); the page worker's onAppear (on an always-mounted box around this node) calls tier5.<svc>.load.",
|
|
3
|
-
"_placeholders": {
|
|
4
|
-
"svc": "service name the page worker registered with registerBlogList",
|
|
5
|
-
"id": "unique node id prefix for this section",
|
|
6
|
-
"detailScreen": "blog post screen id, himi_blog_post"
|
|
7
|
-
},
|
|
8
|
-
"node": {
|
|
9
|
-
"id": "{{id}}.hero",
|
|
10
|
-
"body": {
|
|
11
|
-
"package": "himalaya",
|
|
12
|
-
"type": "Carousel",
|
|
13
|
-
"props": {
|
|
14
|
-
"itemsPath": "$service:{{svc}}.rows",
|
|
15
|
-
"paged": true,
|
|
16
|
-
"items": [
|
|
17
|
-
{
|
|
18
|
-
"id": "{{id}}.card",
|
|
19
|
-
"body": {
|
|
20
|
-
"package": "himalaya",
|
|
21
|
-
"type": "VStack",
|
|
22
|
-
"props": {
|
|
23
|
-
"spacing": 8,
|
|
24
|
-
"alignment": "leading",
|
|
25
|
-
"children": [
|
|
26
|
-
{
|
|
27
|
-
"id": "{{id}}.cover",
|
|
28
|
-
"body": {
|
|
29
|
-
"package": "himalaya",
|
|
30
|
-
"type": "Image",
|
|
31
|
-
"props": {
|
|
32
|
-
"url": "$item.cover",
|
|
33
|
-
"initials": "$item.initial",
|
|
34
|
-
"fillWidth": true,
|
|
35
|
-
"height": 200,
|
|
36
|
-
"contentMode": "fill",
|
|
37
|
-
"contentDescription": "$item.title",
|
|
38
|
-
"shape": "rect"
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
"modifiers": {
|
|
42
|
-
"fillMaxWidth": true,
|
|
43
|
-
"hiddenPath": "$item.noCover"
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"id": "{{id}}.title",
|
|
48
|
-
"body": {
|
|
49
|
-
"package": "himalaya",
|
|
50
|
-
"type": "Text",
|
|
51
|
-
"props": {
|
|
52
|
-
"text": "$item.title",
|
|
53
|
-
"style": "bodyEmphasis",
|
|
54
|
-
"maxLines": 2
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"id": "{{id}}.meta",
|
|
60
|
-
"body": {
|
|
61
|
-
"package": "himalaya",
|
|
62
|
-
"type": "Text",
|
|
63
|
-
"props": {
|
|
64
|
-
"text": "$item.meta",
|
|
65
|
-
"style": "caption",
|
|
66
|
-
"maxLines": 1,
|
|
67
|
-
"color": "textSecondary",
|
|
68
|
-
"collapseWhenEmpty": true
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
"modifiers": {
|
|
76
|
-
"fillMaxWidth": true,
|
|
77
|
-
"onTap": {
|
|
78
|
-
"actionId": "himi.open",
|
|
79
|
-
"params": {
|
|
80
|
-
"screenId": "{{detailScreen}}",
|
|
81
|
-
"id": "$item.id"
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
"pressFeedback": "scale",
|
|
85
|
-
"accessibilityLabel": "$item.title"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
]
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
"modifiers": {
|
|
92
|
-
"hiddenPath": "$service:{{svc}}.noRows"
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|