@wix/himalaya-cli 0.2051.0 → 0.2053.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/wix-sdk/stores-v1/src/display.d.ts +7 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/wix-stores.mjs +1 -1
- package/guides/sdk-reference.json +1 -1
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +1109 -147
- package/templates/beauty-salon/l10n/ar.json +122 -6
- package/templates/beauty-salon/l10n/cs.json +122 -6
- package/templates/beauty-salon/l10n/da.json +122 -6
- package/templates/beauty-salon/l10n/de.json +122 -6
- package/templates/beauty-salon/l10n/el.json +122 -6
- package/templates/beauty-salon/l10n/en.json +81 -9
- package/templates/beauty-salon/l10n/es.json +122 -6
- package/templates/beauty-salon/l10n/fi.json +122 -6
- package/templates/beauty-salon/l10n/fr.json +122 -6
- package/templates/beauty-salon/l10n/he.json +100 -5
- package/templates/beauty-salon/l10n/hu.json +122 -6
- package/templates/beauty-salon/l10n/id.json +122 -6
- package/templates/beauty-salon/l10n/it.json +122 -6
- package/templates/beauty-salon/l10n/ja.json +122 -6
- package/templates/beauty-salon/l10n/ko.json +122 -6
- package/templates/beauty-salon/l10n/lt.json +122 -6
- package/templates/beauty-salon/l10n/nl.json +122 -6
- package/templates/beauty-salon/l10n/no.json +122 -6
- package/templates/beauty-salon/l10n/pl.json +122 -6
- package/templates/beauty-salon/l10n/pt.json +122 -6
- package/templates/beauty-salon/l10n/ru.json +122 -6
- package/templates/beauty-salon/l10n/sv.json +122 -6
- package/templates/beauty-salon/l10n/th.json +122 -6
- package/templates/beauty-salon/l10n/tr.json +122 -6
- package/templates/beauty-salon/l10n/uk.json +122 -6
- package/templates/beauty-salon/l10n/vi.json +122 -6
- package/templates/beauty-salon/l10n/zh.json +122 -6
- package/templates/beauty-salon/tier5-src/_shared/about-text.ts +8 -0
- package/templates/beauty-salon/tier5-src/_shared/himi-store-search.ts +77 -0
- package/templates/beauty-salon/tier5-src/himi-branded-lite-category/index.ts +22 -8
- package/templates/beauty-salon/tier5-src/wix-spaces-member-detail/index.ts +769 -0
- package/templates/branded-lite/dev/index.ts +1589 -143
- package/templates/branded-lite/l10n/ar.json +46 -6
- package/templates/branded-lite/l10n/cs.json +46 -6
- package/templates/branded-lite/l10n/da.json +46 -6
- package/templates/branded-lite/l10n/de.json +46 -6
- package/templates/branded-lite/l10n/el.json +46 -6
- package/templates/branded-lite/l10n/en.json +46 -11
- package/templates/branded-lite/l10n/es.json +46 -6
- package/templates/branded-lite/l10n/fi.json +46 -6
- package/templates/branded-lite/l10n/fr.json +46 -6
- package/templates/branded-lite/l10n/he.json +38 -5
- package/templates/branded-lite/l10n/hu.json +46 -6
- package/templates/branded-lite/l10n/id.json +46 -6
- package/templates/branded-lite/l10n/it.json +46 -6
- package/templates/branded-lite/l10n/ja.json +46 -6
- package/templates/branded-lite/l10n/ko.json +46 -6
- package/templates/branded-lite/l10n/lt.json +46 -6
- package/templates/branded-lite/l10n/nl.json +46 -6
- package/templates/branded-lite/l10n/no.json +46 -6
- package/templates/branded-lite/l10n/pl.json +46 -6
- package/templates/branded-lite/l10n/pt.json +46 -6
- package/templates/branded-lite/l10n/ru.json +46 -6
- package/templates/branded-lite/l10n/sv.json +46 -6
- package/templates/branded-lite/l10n/th.json +46 -6
- package/templates/branded-lite/l10n/tr.json +46 -6
- package/templates/branded-lite/l10n/uk.json +46 -6
- package/templates/branded-lite/l10n/vi.json +46 -6
- package/templates/branded-lite/l10n/zh.json +46 -6
- package/templates/branded-lite/tier5-src/_shared/about-text.ts +8 -0
- package/templates/branded-lite/tier5-src/_shared/himi-store-search.ts +77 -0
- package/templates/branded-lite/tier5-src/himi-branded-lite-category/index.ts +22 -8
- package/templates/branded-lite/tier5-src/himi-branded-lite-shop/index.ts +31 -14
- package/templates/branded-lite/tier5-src/wix-spaces-member-detail/index.ts +247 -34
- package/templates/community-club/dev/index.ts +1362 -155
- package/templates/community-club/l10n/ar.json +123 -12
- package/templates/community-club/l10n/cs.json +123 -12
- package/templates/community-club/l10n/da.json +123 -12
- package/templates/community-club/l10n/de.json +123 -12
- package/templates/community-club/l10n/el.json +123 -12
- package/templates/community-club/l10n/en.json +86 -15
- package/templates/community-club/l10n/es.json +123 -12
- package/templates/community-club/l10n/fi.json +123 -12
- package/templates/community-club/l10n/fr.json +123 -12
- package/templates/community-club/l10n/he.json +102 -10
- package/templates/community-club/l10n/hu.json +123 -12
- package/templates/community-club/l10n/id.json +123 -12
- package/templates/community-club/l10n/it.json +123 -12
- package/templates/community-club/l10n/ja.json +123 -12
- package/templates/community-club/l10n/ko.json +123 -12
- package/templates/community-club/l10n/lt.json +123 -12
- package/templates/community-club/l10n/nl.json +123 -12
- package/templates/community-club/l10n/no.json +123 -12
- package/templates/community-club/l10n/pl.json +123 -12
- package/templates/community-club/l10n/pt.json +123 -12
- package/templates/community-club/l10n/ru.json +123 -12
- package/templates/community-club/l10n/sv.json +123 -12
- package/templates/community-club/l10n/th.json +123 -12
- package/templates/community-club/l10n/tr.json +123 -12
- package/templates/community-club/l10n/uk.json +123 -12
- package/templates/community-club/l10n/vi.json +123 -12
- package/templates/community-club/l10n/zh.json +123 -12
- package/templates/community-club/tier5-src/_shared/about-text.ts +8 -0
- package/templates/community-club/tier5-src/_shared/detail-presence.ts +51 -0
- package/templates/community-club/tier5-src/wix-spaces-member-detail/index.ts +769 -0
- package/templates/events-meetups/dev/index.ts +1362 -155
- package/templates/events-meetups/l10n/ar.json +123 -12
- package/templates/events-meetups/l10n/cs.json +123 -12
- package/templates/events-meetups/l10n/da.json +123 -12
- package/templates/events-meetups/l10n/de.json +123 -12
- package/templates/events-meetups/l10n/el.json +123 -12
- package/templates/events-meetups/l10n/en.json +86 -15
- package/templates/events-meetups/l10n/es.json +123 -12
- package/templates/events-meetups/l10n/fi.json +123 -12
- package/templates/events-meetups/l10n/fr.json +123 -12
- package/templates/events-meetups/l10n/he.json +102 -10
- package/templates/events-meetups/l10n/hu.json +123 -12
- package/templates/events-meetups/l10n/id.json +123 -12
- package/templates/events-meetups/l10n/it.json +123 -12
- package/templates/events-meetups/l10n/ja.json +123 -12
- package/templates/events-meetups/l10n/ko.json +123 -12
- package/templates/events-meetups/l10n/lt.json +123 -12
- package/templates/events-meetups/l10n/nl.json +123 -12
- package/templates/events-meetups/l10n/no.json +123 -12
- package/templates/events-meetups/l10n/pl.json +123 -12
- package/templates/events-meetups/l10n/pt.json +123 -12
- package/templates/events-meetups/l10n/ru.json +123 -12
- package/templates/events-meetups/l10n/sv.json +123 -12
- package/templates/events-meetups/l10n/th.json +123 -12
- package/templates/events-meetups/l10n/tr.json +123 -12
- package/templates/events-meetups/l10n/uk.json +123 -12
- package/templates/events-meetups/l10n/vi.json +123 -12
- package/templates/events-meetups/l10n/zh.json +123 -12
- package/templates/events-meetups/tier5-src/_shared/about-text.ts +8 -0
- package/templates/events-meetups/tier5-src/_shared/detail-presence.ts +51 -0
- package/templates/events-meetups/tier5-src/wix-spaces-member-detail/index.ts +769 -0
- package/templates/gym-fitness/dev/index.ts +1109 -147
- package/templates/gym-fitness/l10n/ar.json +122 -6
- package/templates/gym-fitness/l10n/cs.json +122 -6
- package/templates/gym-fitness/l10n/da.json +122 -6
- package/templates/gym-fitness/l10n/de.json +122 -6
- package/templates/gym-fitness/l10n/el.json +122 -6
- package/templates/gym-fitness/l10n/en.json +81 -9
- package/templates/gym-fitness/l10n/es.json +122 -6
- package/templates/gym-fitness/l10n/fi.json +122 -6
- package/templates/gym-fitness/l10n/fr.json +122 -6
- package/templates/gym-fitness/l10n/he.json +100 -5
- package/templates/gym-fitness/l10n/hu.json +122 -6
- package/templates/gym-fitness/l10n/id.json +122 -6
- package/templates/gym-fitness/l10n/it.json +122 -6
- package/templates/gym-fitness/l10n/ja.json +122 -6
- package/templates/gym-fitness/l10n/ko.json +122 -6
- package/templates/gym-fitness/l10n/lt.json +122 -6
- package/templates/gym-fitness/l10n/nl.json +122 -6
- package/templates/gym-fitness/l10n/no.json +122 -6
- package/templates/gym-fitness/l10n/pl.json +122 -6
- package/templates/gym-fitness/l10n/pt.json +122 -6
- package/templates/gym-fitness/l10n/ru.json +122 -6
- package/templates/gym-fitness/l10n/sv.json +122 -6
- package/templates/gym-fitness/l10n/th.json +122 -6
- package/templates/gym-fitness/l10n/tr.json +122 -6
- package/templates/gym-fitness/l10n/uk.json +122 -6
- package/templates/gym-fitness/l10n/vi.json +122 -6
- package/templates/gym-fitness/l10n/zh.json +122 -6
- package/templates/gym-fitness/tier5-src/_shared/about-text.ts +8 -0
- package/templates/gym-fitness/tier5-src/_shared/himi-store-search.ts +77 -0
- package/templates/gym-fitness/tier5-src/himi-branded-lite-category/index.ts +22 -8
- package/templates/gym-fitness/tier5-src/wix-spaces-member-detail/index.ts +769 -0
- package/templates/nonprofit-cause/dev/index.ts +1360 -153
- package/templates/nonprofit-cause/l10n/ar.json +123 -6
- package/templates/nonprofit-cause/l10n/cs.json +123 -6
- package/templates/nonprofit-cause/l10n/da.json +123 -6
- package/templates/nonprofit-cause/l10n/de.json +123 -6
- package/templates/nonprofit-cause/l10n/el.json +123 -6
- package/templates/nonprofit-cause/l10n/en.json +86 -9
- package/templates/nonprofit-cause/l10n/es.json +123 -6
- package/templates/nonprofit-cause/l10n/fi.json +123 -6
- package/templates/nonprofit-cause/l10n/fr.json +123 -6
- package/templates/nonprofit-cause/l10n/he.json +102 -5
- package/templates/nonprofit-cause/l10n/hu.json +123 -6
- package/templates/nonprofit-cause/l10n/id.json +123 -6
- package/templates/nonprofit-cause/l10n/it.json +123 -6
- package/templates/nonprofit-cause/l10n/ja.json +123 -6
- package/templates/nonprofit-cause/l10n/ko.json +123 -6
- package/templates/nonprofit-cause/l10n/lt.json +123 -6
- package/templates/nonprofit-cause/l10n/nl.json +123 -6
- package/templates/nonprofit-cause/l10n/no.json +123 -6
- package/templates/nonprofit-cause/l10n/pl.json +123 -6
- package/templates/nonprofit-cause/l10n/pt.json +123 -6
- package/templates/nonprofit-cause/l10n/ru.json +123 -6
- package/templates/nonprofit-cause/l10n/sv.json +123 -6
- package/templates/nonprofit-cause/l10n/th.json +123 -6
- package/templates/nonprofit-cause/l10n/tr.json +123 -6
- package/templates/nonprofit-cause/l10n/uk.json +123 -6
- package/templates/nonprofit-cause/l10n/vi.json +123 -6
- package/templates/nonprofit-cause/l10n/zh.json +123 -6
- package/templates/nonprofit-cause/tier5-src/_shared/about-text.ts +8 -0
- package/templates/nonprofit-cause/tier5-src/wix-spaces-member-detail/index.ts +769 -0
- package/templates/personal-fitness-trainer/dev/index.ts +650 -75
- package/templates/personal-fitness-trainer/tier5-src/_shared/about-text.ts +8 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/group-member-count.ts +15 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/himi-media.ts +33 -0
- package/templates/personal-fitness-trainer/tier5-src/wix-spaces-member-detail/index.ts +769 -0
- package/templates/personal-fitness-trainer/tokens.json +6 -0
- package/templates/podcast-creator/dev/index.ts +1115 -153
- package/templates/podcast-creator/l10n/ar.json +117 -6
- package/templates/podcast-creator/l10n/cs.json +117 -6
- package/templates/podcast-creator/l10n/da.json +117 -6
- package/templates/podcast-creator/l10n/de.json +117 -6
- package/templates/podcast-creator/l10n/el.json +117 -6
- package/templates/podcast-creator/l10n/en.json +81 -9
- package/templates/podcast-creator/l10n/es.json +117 -6
- package/templates/podcast-creator/l10n/fi.json +117 -6
- package/templates/podcast-creator/l10n/fr.json +117 -6
- package/templates/podcast-creator/l10n/he.json +96 -5
- package/templates/podcast-creator/l10n/hu.json +117 -6
- package/templates/podcast-creator/l10n/id.json +117 -6
- package/templates/podcast-creator/l10n/it.json +117 -6
- package/templates/podcast-creator/l10n/ja.json +117 -6
- package/templates/podcast-creator/l10n/ko.json +117 -6
- package/templates/podcast-creator/l10n/lt.json +117 -6
- package/templates/podcast-creator/l10n/nl.json +117 -6
- package/templates/podcast-creator/l10n/no.json +117 -6
- package/templates/podcast-creator/l10n/pl.json +117 -6
- package/templates/podcast-creator/l10n/pt.json +117 -6
- package/templates/podcast-creator/l10n/ru.json +117 -6
- package/templates/podcast-creator/l10n/sv.json +117 -6
- package/templates/podcast-creator/l10n/th.json +117 -6
- package/templates/podcast-creator/l10n/tr.json +117 -6
- package/templates/podcast-creator/l10n/uk.json +117 -6
- package/templates/podcast-creator/l10n/vi.json +117 -6
- package/templates/podcast-creator/l10n/zh.json +117 -6
- package/templates/podcast-creator/tier5-src/_shared/about-text.ts +8 -0
- package/templates/podcast-creator/tier5-src/wix-spaces-member-detail/index.ts +769 -0
- package/templates/portfolio-creative/dev/index.ts +1113 -151
- package/templates/portfolio-creative/l10n/ar.json +122 -12
- package/templates/portfolio-creative/l10n/cs.json +122 -12
- package/templates/portfolio-creative/l10n/da.json +122 -12
- package/templates/portfolio-creative/l10n/de.json +122 -12
- package/templates/portfolio-creative/l10n/el.json +122 -12
- package/templates/portfolio-creative/l10n/en.json +81 -15
- package/templates/portfolio-creative/l10n/es.json +122 -12
- package/templates/portfolio-creative/l10n/fi.json +122 -12
- package/templates/portfolio-creative/l10n/fr.json +122 -12
- package/templates/portfolio-creative/l10n/he.json +100 -10
- package/templates/portfolio-creative/l10n/hu.json +122 -12
- package/templates/portfolio-creative/l10n/id.json +122 -12
- package/templates/portfolio-creative/l10n/it.json +122 -12
- package/templates/portfolio-creative/l10n/ja.json +122 -12
- package/templates/portfolio-creative/l10n/ko.json +122 -12
- package/templates/portfolio-creative/l10n/lt.json +122 -12
- package/templates/portfolio-creative/l10n/nl.json +122 -12
- package/templates/portfolio-creative/l10n/no.json +122 -12
- package/templates/portfolio-creative/l10n/pl.json +122 -12
- package/templates/portfolio-creative/l10n/pt.json +122 -12
- package/templates/portfolio-creative/l10n/ru.json +122 -12
- package/templates/portfolio-creative/l10n/sv.json +122 -12
- package/templates/portfolio-creative/l10n/th.json +122 -12
- package/templates/portfolio-creative/l10n/tr.json +122 -12
- package/templates/portfolio-creative/l10n/uk.json +122 -12
- package/templates/portfolio-creative/l10n/vi.json +122 -12
- package/templates/portfolio-creative/l10n/zh.json +122 -12
- package/templates/portfolio-creative/tier5-src/_shared/about-text.ts +8 -0
- package/templates/portfolio-creative/tier5-src/_shared/himi-store-search.ts +77 -0
- package/templates/portfolio-creative/tier5-src/himi-branded-lite-category/index.ts +22 -8
- package/templates/portfolio-creative/tier5-src/wix-spaces-member-detail/index.ts +769 -0
- package/templates/restaurant/dev/index.ts +1114 -152
- package/templates/restaurant/l10n/ar.json +117 -6
- package/templates/restaurant/l10n/cs.json +117 -6
- package/templates/restaurant/l10n/da.json +117 -6
- package/templates/restaurant/l10n/de.json +117 -6
- package/templates/restaurant/l10n/el.json +117 -6
- package/templates/restaurant/l10n/en.json +81 -9
- package/templates/restaurant/l10n/es.json +117 -6
- package/templates/restaurant/l10n/fi.json +117 -6
- package/templates/restaurant/l10n/fr.json +117 -6
- package/templates/restaurant/l10n/he.json +96 -5
- package/templates/restaurant/l10n/hu.json +117 -6
- package/templates/restaurant/l10n/id.json +117 -6
- package/templates/restaurant/l10n/it.json +117 -6
- package/templates/restaurant/l10n/ja.json +117 -6
- package/templates/restaurant/l10n/ko.json +117 -6
- package/templates/restaurant/l10n/lt.json +117 -6
- package/templates/restaurant/l10n/nl.json +117 -6
- package/templates/restaurant/l10n/no.json +117 -6
- package/templates/restaurant/l10n/pl.json +117 -6
- package/templates/restaurant/l10n/pt.json +117 -6
- package/templates/restaurant/l10n/ru.json +117 -6
- package/templates/restaurant/l10n/sv.json +117 -6
- package/templates/restaurant/l10n/th.json +117 -6
- package/templates/restaurant/l10n/tr.json +117 -6
- package/templates/restaurant/l10n/uk.json +117 -6
- package/templates/restaurant/l10n/vi.json +117 -6
- package/templates/restaurant/l10n/zh.json +117 -6
- package/templates/restaurant/tier5-src/_shared/about-text.ts +8 -0
- package/templates/restaurant/tier5-src/wix-spaces-member-detail/index.ts +769 -0
- package/templates/retail-store/dev/index.ts +1115 -153
- package/templates/retail-store/l10n/ar.json +122 -12
- package/templates/retail-store/l10n/cs.json +122 -12
- package/templates/retail-store/l10n/da.json +122 -12
- package/templates/retail-store/l10n/de.json +122 -12
- package/templates/retail-store/l10n/el.json +122 -12
- package/templates/retail-store/l10n/en.json +81 -15
- package/templates/retail-store/l10n/es.json +122 -12
- package/templates/retail-store/l10n/fi.json +122 -12
- package/templates/retail-store/l10n/fr.json +122 -12
- package/templates/retail-store/l10n/he.json +100 -10
- package/templates/retail-store/l10n/hu.json +122 -12
- package/templates/retail-store/l10n/id.json +122 -12
- package/templates/retail-store/l10n/it.json +122 -12
- package/templates/retail-store/l10n/ja.json +122 -12
- package/templates/retail-store/l10n/ko.json +122 -12
- package/templates/retail-store/l10n/lt.json +122 -12
- package/templates/retail-store/l10n/nl.json +122 -12
- package/templates/retail-store/l10n/no.json +122 -12
- package/templates/retail-store/l10n/pl.json +122 -12
- package/templates/retail-store/l10n/pt.json +122 -12
- package/templates/retail-store/l10n/ru.json +122 -12
- package/templates/retail-store/l10n/sv.json +122 -12
- package/templates/retail-store/l10n/th.json +122 -12
- package/templates/retail-store/l10n/tr.json +122 -12
- package/templates/retail-store/l10n/uk.json +122 -12
- package/templates/retail-store/l10n/vi.json +122 -12
- package/templates/retail-store/l10n/zh.json +122 -12
- package/templates/retail-store/tier5-src/_shared/about-text.ts +8 -0
- package/templates/retail-store/tier5-src/_shared/himi-store-search.ts +77 -0
- package/templates/retail-store/tier5-src/himi-branded-lite-category/index.ts +22 -8
- package/templates/retail-store/tier5-src/himi-branded-lite-shop/index.ts +31 -14
- package/templates/retail-store/tier5-src/wix-spaces-member-detail/index.ts +769 -0
- package/templates/yoga-studio/dev/index.ts +1109 -147
- package/templates/yoga-studio/l10n/ar.json +117 -6
- package/templates/yoga-studio/l10n/cs.json +117 -6
- package/templates/yoga-studio/l10n/da.json +117 -6
- package/templates/yoga-studio/l10n/de.json +117 -6
- package/templates/yoga-studio/l10n/el.json +117 -6
- package/templates/yoga-studio/l10n/en.json +81 -9
- package/templates/yoga-studio/l10n/es.json +117 -6
- package/templates/yoga-studio/l10n/fi.json +117 -6
- package/templates/yoga-studio/l10n/fr.json +117 -6
- package/templates/yoga-studio/l10n/he.json +96 -5
- package/templates/yoga-studio/l10n/hu.json +117 -6
- package/templates/yoga-studio/l10n/id.json +117 -6
- package/templates/yoga-studio/l10n/it.json +117 -6
- package/templates/yoga-studio/l10n/ja.json +117 -6
- package/templates/yoga-studio/l10n/ko.json +117 -6
- package/templates/yoga-studio/l10n/lt.json +117 -6
- package/templates/yoga-studio/l10n/nl.json +117 -6
- package/templates/yoga-studio/l10n/no.json +117 -6
- package/templates/yoga-studio/l10n/pl.json +117 -6
- package/templates/yoga-studio/l10n/pt.json +117 -6
- package/templates/yoga-studio/l10n/ru.json +117 -6
- package/templates/yoga-studio/l10n/sv.json +117 -6
- package/templates/yoga-studio/l10n/th.json +117 -6
- package/templates/yoga-studio/l10n/tr.json +117 -6
- package/templates/yoga-studio/l10n/uk.json +117 -6
- package/templates/yoga-studio/l10n/vi.json +117 -6
- package/templates/yoga-studio/l10n/zh.json +117 -6
- package/templates/yoga-studio/tier5-src/_shared/about-text.ts +8 -0
- package/templates/yoga-studio/tier5-src/wix-spaces-member-detail/index.ts +769 -0
- package/templates/beauty-salon/tier5-src/wix-spaces-view-profile/index.ts +0 -119
- package/templates/branded-lite/tier5-src/wix-spaces-view-profile/index.ts +0 -119
- package/templates/community-club/tier5-src/wix-spaces-view-profile/index.ts +0 -119
- package/templates/events-meetups/tier5-src/wix-spaces-view-profile/index.ts +0 -119
- package/templates/gym-fitness/tier5-src/wix-spaces-view-profile/index.ts +0 -119
- package/templates/nonprofit-cause/tier5-src/wix-spaces-view-profile/index.ts +0 -119
- package/templates/personal-fitness-trainer/tier5-src/wix-spaces-view-profile/index.ts +0 -119
- package/templates/podcast-creator/tier5-src/wix-spaces-view-profile/index.ts +0 -119
- package/templates/portfolio-creative/tier5-src/wix-spaces-view-profile/index.ts +0 -119
- package/templates/restaurant/tier5-src/wix-spaces-view-profile/index.ts +0 -119
- package/templates/retail-store/tier5-src/wix-spaces-view-profile/index.ts +0 -119
- package/templates/yoga-studio/tier5-src/wix-spaces-view-profile/index.ts +0 -119
|
@@ -9,6 +9,7 @@ import { detailInputId, presence, presenceAfterError, type PresenceFlags } from
|
|
|
9
9
|
import { stashCopy, copyParam, copyTemplate } from "../_shared/himi-copy.js";
|
|
10
10
|
import { FACETS_BOOT, PAGE_SIZE, applyFacets, currencyOf, facetActions, idOf, readViewPrefs, tagFields, toRows, toggleSaved, type FacetState } from "../_shared/himi-store-facets.js";
|
|
11
11
|
import { refreshSavedThen } from "../_shared/himi-store-saved.js";
|
|
12
|
+
import { createStoreSearch } from "../_shared/himi-store-search.js";
|
|
12
13
|
import { withIapPresentation } from "../_shared/iap-presentation.js";
|
|
13
14
|
|
|
14
15
|
interface State extends FacetState, PresenceFlags {
|
|
@@ -46,12 +47,18 @@ const products = createCollectionQuery<StoreProduct>({
|
|
|
46
47
|
},
|
|
47
48
|
}, () => { void svc.productsChanged(); });
|
|
48
49
|
|
|
50
|
+
// The search field asks Wix which of the category's products match (any word, name or
|
|
51
|
+
// description), like Shop; offline or on a failure, the names on the device.
|
|
52
|
+
const search = createStoreSearch(() => { void svc.searchLanded(); });
|
|
53
|
+
|
|
49
54
|
function derive(s: State): State {
|
|
50
55
|
const page = products.getState();
|
|
51
56
|
const source = s.found ? page.items : [];
|
|
52
|
-
const query = s.query.trim().toLowerCase();
|
|
53
57
|
const rows = toRows(source);
|
|
54
|
-
const
|
|
58
|
+
const found = search.match(rows, categoryId, s.found ? s.query : "");
|
|
59
|
+
const next = applyFacets(s, found.rows, source.map(currencyOf).find(Boolean));
|
|
60
|
+
// While Wix answers with no name match on screen yet, the skeleton, never "no matches".
|
|
61
|
+
const waiting = found.searching && next.matched === 0;
|
|
55
62
|
const pending = s.found && (page.status === "idle" || page.status === "loading" || page.loadingMore || (!!page.nextCursor && !page.pageError));
|
|
56
63
|
const firstError = s.found && page.status === "error";
|
|
57
64
|
const loaded = s.hasLoadedProducts || page.status === "ready";
|
|
@@ -68,12 +75,12 @@ function derive(s: State): State {
|
|
|
68
75
|
opt1Chips: next.opt1Chips.map(c => ({ ...c, selected: next.opt1Selected.includes(c.id) })),
|
|
69
76
|
opt2Chips: next.opt2Chips.map(c => ({ ...c, selected: next.opt2Selected.includes(c.id) })),
|
|
70
77
|
opt3Chips: next.opt3Chips.map(c => ({ ...c, selected: next.opt3Selected.includes(c.id) })),
|
|
71
|
-
countLabel: s.found && page.status === "ready" ? copyTemplate("collection.resultCount", "{count} products", { count: next.matched }) : "",
|
|
78
|
+
countLabel: s.found && page.status === "ready" && !found.searching ? copyTemplate("collection.resultCount", "{count} products", { count: next.matched }) : "",
|
|
72
79
|
// Searching a partially loaded category must not replace its content with
|
|
73
80
|
// a first-load skeleton just because the current pages have no match yet.
|
|
74
81
|
hasLoadedProducts: loaded,
|
|
75
|
-
isLoading: pending && !loaded,
|
|
76
|
-
notLoading: !(pending && !loaded),
|
|
82
|
+
isLoading: (pending && !loaded) || waiting,
|
|
83
|
+
notLoading: !(pending && !loaded) && !waiting,
|
|
77
84
|
nextCursor: next.nextCursor || (!scanning && !page.pageError ? page.nextCursor : ""),
|
|
78
85
|
noMore: next.noMore && (scanning || !page.nextCursor || page.pageError),
|
|
79
86
|
pendingProducts: pending,
|
|
@@ -81,8 +88,11 @@ function derive(s: State): State {
|
|
|
81
88
|
noPageError: !s.found || !page.pageError,
|
|
82
89
|
noRefreshError: !refreshFailed || !s.found || !loaded || page.pageError,
|
|
83
90
|
// A filtered first page isn't proof of no matches while later pages load.
|
|
84
|
-
noEmpty: !s.found || pending || firstError || page.pageError || next.results.length > 0,
|
|
85
|
-
|
|
91
|
+
noEmpty: !s.found || pending || waiting || firstError || page.pageError || next.results.length > 0,
|
|
92
|
+
// Offline or a failed search is not "nothing matches": say only the names were searched.
|
|
93
|
+
emptyText: found.unavailable && s.query.trim()
|
|
94
|
+
? copyTemplate("collection.searchUnavailable", "Search isn’t available right now. No product names match “{query}”.", { query: s.query.trim() })
|
|
95
|
+
: copyParam("collection.productsEmptyBody", "Try another search or browse a different category."),
|
|
86
96
|
};
|
|
87
97
|
}
|
|
88
98
|
|
|
@@ -112,6 +122,8 @@ const actions = {
|
|
|
112
122
|
stashCopy(arg);
|
|
113
123
|
// Hearts follow the signed-in member's account wishlist, read beside the products.
|
|
114
124
|
refreshSavedThen(() => svc.savedChanged());
|
|
125
|
+
// A load (onAppear, pull to refresh, the error banner) asks a failed search again.
|
|
126
|
+
search.reset();
|
|
115
127
|
const version = ++loadVersion;
|
|
116
128
|
const id = detailInputId();
|
|
117
129
|
if (!id) return derive({ ...s, ...presence("missing"), loadId: version });
|
|
@@ -155,6 +167,8 @@ const actions = {
|
|
|
155
167
|
});
|
|
156
168
|
},
|
|
157
169
|
productsChanged: (s: State) => s.loadId === loadVersion ? derive(s) : undefined,
|
|
170
|
+
// Wix answered the newest search text (an older text's answer never dispatches).
|
|
171
|
+
searchLanded: (s: State) => derive(s),
|
|
158
172
|
search: (s: State, arg?: { value?: string }) => derive({ ...s, query: (arg?.value ?? "").slice(0, 256), visible: PAGE_SIZE, cursorEpoch: s.cursorEpoch + 1 }),
|
|
159
173
|
toggleSave: async (s: State, arg?: unknown): Promise<State> => { try { await toggleSaved(s.results, idOf(arg)); } catch { return s; } return derive(svc.getState() as State); },
|
|
160
174
|
// The signed-in member's saved list landed: re-mark the hearts.
|
|
@@ -179,7 +193,7 @@ const actions = {
|
|
|
179
193
|
await products.loadMore();
|
|
180
194
|
return undefined;
|
|
181
195
|
},
|
|
182
|
-
retry: async () => { refreshFailed = false; await products.retry(); await readRemaining(loadVersion); return undefined; },
|
|
196
|
+
retry: async () => { refreshFailed = false; search.reset(); await products.retry(); await readRemaining(loadVersion); return undefined; },
|
|
183
197
|
};
|
|
184
198
|
const register = withIapPresentation<State>({
|
|
185
199
|
prefix: "category",
|