@wix/himalaya-cli 0.1866.0 → 0.1868.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/dev-server/src/builder.d.ts +2 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts +4 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/copy.generated.d.ts +17 -7
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/auth/src/feedback.d.ts +1 -1
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/index.d.ts +1 -44
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/stdlib/flows/screens/src/overlapping-panel-header.d.ts +30 -0
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/auth.mjs +55 -11
- package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/screens.mjs +217 -155
- package/dist/browser-plane/assets.json +5 -5
- package/dist/browser-plane/preview-deferred/{a60c092217d4c21970ff66e8b63221007e49d0792eb9d5fe66238f8efbce884a.bin → 606c83075130fbcd609b5aabaa1e6bac0bfb27bd362d1ce8eb5cbcb266e1f682.bin} +1 -1
- package/dist/browser-plane/sw.js +8 -8
- package/dist/cli.mjs +6179 -5817
- package/dist/preview-assets.generated.bin +0 -0
- package/guides/component-index.md +1 -1
- package/guides/component-reference.json +1 -1
- package/guides/component-reference.md +4 -0
- package/guides/designing-himi-screens.md +5 -0
- package/guides/one-app-to-himi-app.md +13 -7
- package/guides/one-app-viewer.md +3 -1
- package/guides/release-notes.md +13 -0
- package/guides/sdk-reference.json +0 -21
- package/package.json +2 -2
- package/templates/bare-fashion/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/beauty-salon/dev/index.ts +122 -8
- package/templates/beauty-salon/l10n/ar.json +5 -0
- package/templates/beauty-salon/l10n/cs.json +5 -0
- package/templates/beauty-salon/l10n/da.json +5 -0
- package/templates/beauty-salon/l10n/de.json +5 -0
- package/templates/beauty-salon/l10n/el.json +5 -0
- package/templates/beauty-salon/l10n/en.json +1 -1
- package/templates/beauty-salon/l10n/es.json +5 -0
- package/templates/beauty-salon/l10n/fi.json +5 -0
- package/templates/beauty-salon/l10n/fr.json +5 -0
- package/templates/beauty-salon/l10n/he.json +4 -0
- package/templates/beauty-salon/l10n/hu.json +5 -0
- package/templates/beauty-salon/l10n/id.json +5 -0
- package/templates/beauty-salon/l10n/it.json +5 -0
- package/templates/beauty-salon/l10n/ja.json +5 -0
- package/templates/beauty-salon/l10n/ko.json +5 -0
- package/templates/beauty-salon/l10n/lt.json +5 -0
- package/templates/beauty-salon/l10n/nl.json +5 -0
- package/templates/beauty-salon/l10n/no.json +5 -0
- package/templates/beauty-salon/l10n/pl.json +5 -0
- package/templates/beauty-salon/l10n/pt.json +5 -0
- package/templates/beauty-salon/l10n/ru.json +5 -0
- package/templates/beauty-salon/l10n/sv.json +5 -0
- package/templates/beauty-salon/l10n/th.json +5 -0
- package/templates/beauty-salon/l10n/tr.json +5 -0
- package/templates/beauty-salon/l10n/uk.json +5 -0
- package/templates/beauty-salon/l10n/vi.json +5 -0
- package/templates/beauty-salon/l10n/zh.json +5 -0
- package/templates/beauty-salon/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/beauty-salon/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/beauty-salon-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/branded-lite/dev/index.ts +732 -583
- package/templates/branded-lite/l10n/ar.json +5 -0
- package/templates/branded-lite/l10n/cs.json +5 -0
- package/templates/branded-lite/l10n/da.json +5 -0
- package/templates/branded-lite/l10n/de.json +5 -0
- package/templates/branded-lite/l10n/el.json +5 -0
- package/templates/branded-lite/l10n/en.json +2 -2
- package/templates/branded-lite/l10n/es.json +5 -0
- package/templates/branded-lite/l10n/fi.json +5 -0
- package/templates/branded-lite/l10n/fr.json +5 -0
- package/templates/branded-lite/l10n/he.json +4 -0
- package/templates/branded-lite/l10n/hu.json +5 -0
- package/templates/branded-lite/l10n/id.json +5 -0
- package/templates/branded-lite/l10n/it.json +5 -0
- package/templates/branded-lite/l10n/ja.json +5 -0
- package/templates/branded-lite/l10n/ko.json +5 -0
- package/templates/branded-lite/l10n/lt.json +5 -0
- package/templates/branded-lite/l10n/nl.json +5 -0
- package/templates/branded-lite/l10n/no.json +5 -0
- package/templates/branded-lite/l10n/pl.json +5 -0
- package/templates/branded-lite/l10n/pt.json +5 -0
- package/templates/branded-lite/l10n/ru.json +5 -0
- package/templates/branded-lite/l10n/sv.json +5 -0
- package/templates/branded-lite/l10n/th.json +5 -0
- package/templates/branded-lite/l10n/tr.json +5 -0
- package/templates/branded-lite/l10n/uk.json +5 -0
- package/templates/branded-lite/l10n/vi.json +5 -0
- package/templates/branded-lite/l10n/zh.json +5 -0
- package/templates/branded-lite/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/branded-lite/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/branded-lite/tier5-src/business-chat/index.ts +20 -6
- package/templates/branded-lite/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/brandy/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/brandy/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/community-club/dev/index.ts +122 -8
- package/templates/community-club/l10n/ar.json +10 -0
- package/templates/community-club/l10n/cs.json +10 -0
- package/templates/community-club/l10n/da.json +10 -0
- package/templates/community-club/l10n/de.json +10 -0
- package/templates/community-club/l10n/el.json +10 -0
- package/templates/community-club/l10n/en.json +1 -1
- package/templates/community-club/l10n/es.json +10 -0
- package/templates/community-club/l10n/fi.json +10 -0
- package/templates/community-club/l10n/fr.json +10 -0
- package/templates/community-club/l10n/he.json +8 -0
- package/templates/community-club/l10n/hu.json +10 -0
- package/templates/community-club/l10n/id.json +10 -0
- package/templates/community-club/l10n/it.json +10 -0
- package/templates/community-club/l10n/ja.json +10 -0
- package/templates/community-club/l10n/ko.json +10 -0
- package/templates/community-club/l10n/lt.json +10 -0
- package/templates/community-club/l10n/nl.json +10 -0
- package/templates/community-club/l10n/no.json +10 -0
- package/templates/community-club/l10n/pl.json +10 -0
- package/templates/community-club/l10n/pt.json +10 -0
- package/templates/community-club/l10n/ru.json +10 -0
- package/templates/community-club/l10n/sv.json +10 -0
- package/templates/community-club/l10n/th.json +10 -0
- package/templates/community-club/l10n/tr.json +10 -0
- package/templates/community-club/l10n/uk.json +10 -0
- package/templates/community-club/l10n/vi.json +10 -0
- package/templates/community-club/l10n/zh.json +10 -0
- package/templates/community-club/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/community-club/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/community-club-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/conference/dev/index.ts +744 -595
- package/templates/conference/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/conference/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/conference/tier5-src/business-chat/index.ts +20 -6
- package/templates/conference/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/events-meetups/dev/index.ts +122 -8
- package/templates/events-meetups/l10n/ar.json +10 -0
- package/templates/events-meetups/l10n/cs.json +10 -0
- package/templates/events-meetups/l10n/da.json +10 -0
- package/templates/events-meetups/l10n/de.json +10 -0
- package/templates/events-meetups/l10n/el.json +10 -0
- package/templates/events-meetups/l10n/en.json +1 -1
- package/templates/events-meetups/l10n/es.json +10 -0
- package/templates/events-meetups/l10n/fi.json +10 -0
- package/templates/events-meetups/l10n/fr.json +10 -0
- package/templates/events-meetups/l10n/he.json +8 -0
- package/templates/events-meetups/l10n/hu.json +10 -0
- package/templates/events-meetups/l10n/id.json +10 -0
- package/templates/events-meetups/l10n/it.json +10 -0
- package/templates/events-meetups/l10n/ja.json +10 -0
- package/templates/events-meetups/l10n/ko.json +10 -0
- package/templates/events-meetups/l10n/lt.json +10 -0
- package/templates/events-meetups/l10n/nl.json +10 -0
- package/templates/events-meetups/l10n/no.json +10 -0
- package/templates/events-meetups/l10n/pl.json +10 -0
- package/templates/events-meetups/l10n/pt.json +10 -0
- package/templates/events-meetups/l10n/ru.json +10 -0
- package/templates/events-meetups/l10n/sv.json +10 -0
- package/templates/events-meetups/l10n/th.json +10 -0
- package/templates/events-meetups/l10n/tr.json +10 -0
- package/templates/events-meetups/l10n/uk.json +10 -0
- package/templates/events-meetups/l10n/vi.json +10 -0
- package/templates/events-meetups/l10n/zh.json +10 -0
- package/templates/events-meetups/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/events-meetups/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/events-meetups-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/fitness-gym/dev/index.ts +743 -507
- package/templates/fitness-gym/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/fitness-gym/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/fitness-gym/tier5-src/business-chat/index.ts +20 -6
- package/templates/fitness-gym/tier5-src/himi-booking-account/index.ts +14 -3
- package/templates/fitness-gym/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/gym-fitness/dev/index.ts +122 -8
- package/templates/gym-fitness/l10n/ar.json +5 -0
- package/templates/gym-fitness/l10n/cs.json +5 -0
- package/templates/gym-fitness/l10n/da.json +5 -0
- package/templates/gym-fitness/l10n/de.json +5 -0
- package/templates/gym-fitness/l10n/el.json +5 -0
- package/templates/gym-fitness/l10n/en.json +1 -1
- package/templates/gym-fitness/l10n/es.json +5 -0
- package/templates/gym-fitness/l10n/fi.json +5 -0
- package/templates/gym-fitness/l10n/fr.json +5 -0
- package/templates/gym-fitness/l10n/he.json +4 -0
- package/templates/gym-fitness/l10n/hu.json +5 -0
- package/templates/gym-fitness/l10n/id.json +5 -0
- package/templates/gym-fitness/l10n/it.json +5 -0
- package/templates/gym-fitness/l10n/ja.json +5 -0
- package/templates/gym-fitness/l10n/ko.json +5 -0
- package/templates/gym-fitness/l10n/lt.json +5 -0
- package/templates/gym-fitness/l10n/nl.json +5 -0
- package/templates/gym-fitness/l10n/no.json +5 -0
- package/templates/gym-fitness/l10n/pl.json +5 -0
- package/templates/gym-fitness/l10n/pt.json +5 -0
- package/templates/gym-fitness/l10n/ru.json +5 -0
- package/templates/gym-fitness/l10n/sv.json +5 -0
- package/templates/gym-fitness/l10n/th.json +5 -0
- package/templates/gym-fitness/l10n/tr.json +5 -0
- package/templates/gym-fitness/l10n/uk.json +5 -0
- package/templates/gym-fitness/l10n/vi.json +5 -0
- package/templates/gym-fitness/l10n/zh.json +5 -0
- package/templates/gym-fitness/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/gym-fitness/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/gym-fitness-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/medical-services/dev/index.ts +747 -595
- package/templates/medical-services/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/medical-services/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/medical-services/tier5-src/business-chat/index.ts +20 -6
- package/templates/medical-services/tier5-src/himi-booking-account/index.ts +14 -3
- package/templates/medical-services/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/nonprofit-cause/dev/index.ts +122 -8
- package/templates/nonprofit-cause/l10n/ar.json +10 -0
- package/templates/nonprofit-cause/l10n/cs.json +10 -0
- package/templates/nonprofit-cause/l10n/da.json +10 -0
- package/templates/nonprofit-cause/l10n/de.json +10 -0
- package/templates/nonprofit-cause/l10n/el.json +10 -0
- package/templates/nonprofit-cause/l10n/en.json +1 -1
- package/templates/nonprofit-cause/l10n/es.json +10 -0
- package/templates/nonprofit-cause/l10n/fi.json +10 -0
- package/templates/nonprofit-cause/l10n/fr.json +10 -0
- package/templates/nonprofit-cause/l10n/he.json +8 -0
- package/templates/nonprofit-cause/l10n/hu.json +10 -0
- package/templates/nonprofit-cause/l10n/id.json +10 -0
- package/templates/nonprofit-cause/l10n/it.json +10 -0
- package/templates/nonprofit-cause/l10n/ja.json +10 -0
- package/templates/nonprofit-cause/l10n/ko.json +10 -0
- package/templates/nonprofit-cause/l10n/lt.json +10 -0
- package/templates/nonprofit-cause/l10n/nl.json +10 -0
- package/templates/nonprofit-cause/l10n/no.json +10 -0
- package/templates/nonprofit-cause/l10n/pl.json +10 -0
- package/templates/nonprofit-cause/l10n/pt.json +10 -0
- package/templates/nonprofit-cause/l10n/ru.json +10 -0
- package/templates/nonprofit-cause/l10n/sv.json +10 -0
- package/templates/nonprofit-cause/l10n/th.json +10 -0
- package/templates/nonprofit-cause/l10n/tr.json +10 -0
- package/templates/nonprofit-cause/l10n/uk.json +10 -0
- package/templates/nonprofit-cause/l10n/vi.json +10 -0
- package/templates/nonprofit-cause/l10n/zh.json +10 -0
- package/templates/nonprofit-cause/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/nonprofit-cause/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/nonprofit-cause-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/owner-lite/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/personal-fitness-trainer/dev/index.ts +760 -602
- package/templates/personal-fitness-trainer/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/personal-fitness-trainer/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/personal-fitness-trainer/tier5-src/business-chat/index.ts +20 -6
- package/templates/personal-fitness-trainer/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/podcast-creator/dev/index.ts +122 -8
- package/templates/podcast-creator/l10n/ar.json +10 -0
- package/templates/podcast-creator/l10n/cs.json +10 -0
- package/templates/podcast-creator/l10n/da.json +10 -0
- package/templates/podcast-creator/l10n/de.json +10 -0
- package/templates/podcast-creator/l10n/el.json +10 -0
- package/templates/podcast-creator/l10n/en.json +1 -1
- package/templates/podcast-creator/l10n/es.json +10 -0
- package/templates/podcast-creator/l10n/fi.json +10 -0
- package/templates/podcast-creator/l10n/fr.json +10 -0
- package/templates/podcast-creator/l10n/he.json +8 -0
- package/templates/podcast-creator/l10n/hu.json +10 -0
- package/templates/podcast-creator/l10n/id.json +10 -0
- package/templates/podcast-creator/l10n/it.json +10 -0
- package/templates/podcast-creator/l10n/ja.json +10 -0
- package/templates/podcast-creator/l10n/ko.json +10 -0
- package/templates/podcast-creator/l10n/lt.json +10 -0
- package/templates/podcast-creator/l10n/nl.json +10 -0
- package/templates/podcast-creator/l10n/no.json +10 -0
- package/templates/podcast-creator/l10n/pl.json +10 -0
- package/templates/podcast-creator/l10n/pt.json +10 -0
- package/templates/podcast-creator/l10n/ru.json +10 -0
- package/templates/podcast-creator/l10n/sv.json +10 -0
- package/templates/podcast-creator/l10n/th.json +10 -0
- package/templates/podcast-creator/l10n/tr.json +10 -0
- package/templates/podcast-creator/l10n/uk.json +10 -0
- package/templates/podcast-creator/l10n/vi.json +10 -0
- package/templates/podcast-creator/l10n/zh.json +10 -0
- package/templates/podcast-creator/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/podcast-creator/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/podcast-creator-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/portfolio-creative/dev/index.ts +122 -8
- package/templates/portfolio-creative/l10n/ar.json +10 -0
- package/templates/portfolio-creative/l10n/cs.json +10 -0
- package/templates/portfolio-creative/l10n/da.json +10 -0
- package/templates/portfolio-creative/l10n/de.json +10 -0
- package/templates/portfolio-creative/l10n/el.json +10 -0
- package/templates/portfolio-creative/l10n/en.json +1 -1
- package/templates/portfolio-creative/l10n/es.json +10 -0
- package/templates/portfolio-creative/l10n/fi.json +10 -0
- package/templates/portfolio-creative/l10n/fr.json +10 -0
- package/templates/portfolio-creative/l10n/he.json +8 -0
- package/templates/portfolio-creative/l10n/hu.json +10 -0
- package/templates/portfolio-creative/l10n/id.json +10 -0
- package/templates/portfolio-creative/l10n/it.json +10 -0
- package/templates/portfolio-creative/l10n/ja.json +10 -0
- package/templates/portfolio-creative/l10n/ko.json +10 -0
- package/templates/portfolio-creative/l10n/lt.json +10 -0
- package/templates/portfolio-creative/l10n/nl.json +10 -0
- package/templates/portfolio-creative/l10n/no.json +10 -0
- package/templates/portfolio-creative/l10n/pl.json +10 -0
- package/templates/portfolio-creative/l10n/pt.json +10 -0
- package/templates/portfolio-creative/l10n/ru.json +10 -0
- package/templates/portfolio-creative/l10n/sv.json +10 -0
- package/templates/portfolio-creative/l10n/th.json +10 -0
- package/templates/portfolio-creative/l10n/tr.json +10 -0
- package/templates/portfolio-creative/l10n/uk.json +10 -0
- package/templates/portfolio-creative/l10n/vi.json +10 -0
- package/templates/portfolio-creative/l10n/zh.json +10 -0
- package/templates/portfolio-creative/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/portfolio-creative/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/portfolio-creative-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/restaurant/dev/index.ts +122 -8
- package/templates/restaurant/l10n/ar.json +10 -0
- package/templates/restaurant/l10n/cs.json +10 -0
- package/templates/restaurant/l10n/da.json +10 -0
- package/templates/restaurant/l10n/de.json +10 -0
- package/templates/restaurant/l10n/el.json +10 -0
- package/templates/restaurant/l10n/en.json +1 -1
- package/templates/restaurant/l10n/es.json +10 -0
- package/templates/restaurant/l10n/fi.json +10 -0
- package/templates/restaurant/l10n/fr.json +10 -0
- package/templates/restaurant/l10n/he.json +8 -0
- package/templates/restaurant/l10n/hu.json +10 -0
- package/templates/restaurant/l10n/id.json +10 -0
- package/templates/restaurant/l10n/it.json +10 -0
- package/templates/restaurant/l10n/ja.json +10 -0
- package/templates/restaurant/l10n/ko.json +10 -0
- package/templates/restaurant/l10n/lt.json +10 -0
- package/templates/restaurant/l10n/nl.json +10 -0
- package/templates/restaurant/l10n/no.json +10 -0
- package/templates/restaurant/l10n/pl.json +10 -0
- package/templates/restaurant/l10n/pt.json +10 -0
- package/templates/restaurant/l10n/ru.json +10 -0
- package/templates/restaurant/l10n/sv.json +10 -0
- package/templates/restaurant/l10n/th.json +10 -0
- package/templates/restaurant/l10n/tr.json +10 -0
- package/templates/restaurant/l10n/uk.json +10 -0
- package/templates/restaurant/l10n/vi.json +10 -0
- package/templates/restaurant/l10n/zh.json +10 -0
- package/templates/restaurant/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/restaurant/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/restaurant-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/retail-store/dev/index.ts +122 -8
- package/templates/retail-store/l10n/ar.json +10 -0
- package/templates/retail-store/l10n/cs.json +10 -0
- package/templates/retail-store/l10n/da.json +10 -0
- package/templates/retail-store/l10n/de.json +10 -0
- package/templates/retail-store/l10n/el.json +10 -0
- package/templates/retail-store/l10n/en.json +1 -1
- package/templates/retail-store/l10n/es.json +10 -0
- package/templates/retail-store/l10n/fi.json +10 -0
- package/templates/retail-store/l10n/fr.json +10 -0
- package/templates/retail-store/l10n/he.json +8 -0
- package/templates/retail-store/l10n/hu.json +10 -0
- package/templates/retail-store/l10n/id.json +10 -0
- package/templates/retail-store/l10n/it.json +10 -0
- package/templates/retail-store/l10n/ja.json +10 -0
- package/templates/retail-store/l10n/ko.json +10 -0
- package/templates/retail-store/l10n/lt.json +10 -0
- package/templates/retail-store/l10n/nl.json +10 -0
- package/templates/retail-store/l10n/no.json +10 -0
- package/templates/retail-store/l10n/pl.json +10 -0
- package/templates/retail-store/l10n/pt.json +10 -0
- package/templates/retail-store/l10n/ru.json +10 -0
- package/templates/retail-store/l10n/sv.json +10 -0
- package/templates/retail-store/l10n/th.json +10 -0
- package/templates/retail-store/l10n/tr.json +10 -0
- package/templates/retail-store/l10n/uk.json +10 -0
- package/templates/retail-store/l10n/vi.json +10 -0
- package/templates/retail-store/l10n/zh.json +10 -0
- package/templates/retail-store/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/retail-store/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/retail-store-owner/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/salon-spa/dev/index.ts +744 -595
- package/templates/salon-spa/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/salon-spa/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/salon-spa/tier5-src/business-chat/index.ts +20 -6
- package/templates/salon-spa/tier5-src/himi-booking-account/index.ts +14 -3
- package/templates/salon-spa/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/wholesale-store/dev/index.ts +751 -602
- package/templates/wholesale-store/tier5-src/_shared/business-chat-presenter.ts +11 -0
- package/templates/wholesale-store/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/wholesale-store/tier5-src/business-chat/index.ts +20 -6
- package/templates/wholesale-store/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/yoga-studio/dev/index.ts +122 -8
- package/templates/yoga-studio/l10n/ar.json +5 -0
- package/templates/yoga-studio/l10n/cs.json +5 -0
- package/templates/yoga-studio/l10n/da.json +5 -0
- package/templates/yoga-studio/l10n/de.json +5 -0
- package/templates/yoga-studio/l10n/el.json +5 -0
- package/templates/yoga-studio/l10n/en.json +1 -1
- package/templates/yoga-studio/l10n/es.json +5 -0
- package/templates/yoga-studio/l10n/fi.json +5 -0
- package/templates/yoga-studio/l10n/fr.json +5 -0
- package/templates/yoga-studio/l10n/he.json +4 -0
- package/templates/yoga-studio/l10n/hu.json +5 -0
- package/templates/yoga-studio/l10n/id.json +5 -0
- package/templates/yoga-studio/l10n/it.json +5 -0
- package/templates/yoga-studio/l10n/ja.json +5 -0
- package/templates/yoga-studio/l10n/ko.json +5 -0
- package/templates/yoga-studio/l10n/lt.json +5 -0
- package/templates/yoga-studio/l10n/nl.json +5 -0
- package/templates/yoga-studio/l10n/no.json +5 -0
- package/templates/yoga-studio/l10n/pl.json +5 -0
- package/templates/yoga-studio/l10n/pt.json +5 -0
- package/templates/yoga-studio/l10n/ru.json +5 -0
- package/templates/yoga-studio/l10n/sv.json +5 -0
- package/templates/yoga-studio/l10n/th.json +5 -0
- package/templates/yoga-studio/l10n/tr.json +5 -0
- package/templates/yoga-studio/l10n/uk.json +5 -0
- package/templates/yoga-studio/l10n/vi.json +5 -0
- package/templates/yoga-studio/l10n/zh.json +5 -0
- package/templates/yoga-studio/tier5-src/_shared/himi-account.ts +14 -1
- package/templates/yoga-studio/tier5-src/himi-store-account/index.ts +192 -28
- package/templates/yoga-studio-owner/tier5-src/_shared/himi-account.ts +14 -1
|
@@ -972,6 +972,8 @@ export declare function carousel(props: {
|
|
|
972
972
|
autoplayIntervalMs?: number;
|
|
973
973
|
itemsPath?: string;
|
|
974
974
|
liveWindow?: number;
|
|
975
|
+
/** "auto" (default) draws the page dots; "hidden" draws none and reserves no space (paging stays accessible). */
|
|
976
|
+
indicator?: "auto" | "hidden";
|
|
975
977
|
}, opts?: {
|
|
976
978
|
id?: string;
|
|
977
979
|
}): Component;
|
package/dist/authoring-runtime/node_modules/@wix/himalaya/dist/_types/core/ts/src/schema.d.ts
CHANGED
|
@@ -1422,6 +1422,10 @@ export interface CarouselProps {
|
|
|
1422
1422
|
itemsPath?: string;
|
|
1423
1423
|
/** RFC 0073 §4.5 — 0 (default) = all slides mounted; N ⇒ mount current ± N, unmount the rest. */
|
|
1424
1424
|
liveWindow?: number;
|
|
1425
|
+
/** Page indicator: `"auto"` / absent (default) draws the dots; `"hidden"` draws none and
|
|
1426
|
+
* reserves no space, while paging stays accessible (VoiceOver adjustable, TalkBack position,
|
|
1427
|
+
* web keyboard + live position). Unknown ⇒ `"auto"`; an older binary keeps the dots. */
|
|
1428
|
+
indicator?: "auto" | "hidden";
|
|
1425
1429
|
}
|
|
1426
1430
|
export interface PagerProps {
|
|
1427
1431
|
pages: Component[];
|
|
@@ -99,21 +99,31 @@ declare const _default: {
|
|
|
99
99
|
readonly "auth.gate.code.show": "Show code";
|
|
100
100
|
readonly "auth.gate.code.hide": "Hide code";
|
|
101
101
|
readonly "auth.feedback.invalid_input": "Check the highlighted fields and try again.";
|
|
102
|
-
readonly "auth.feedback.invalid_credentials": "
|
|
103
|
-
readonly "auth.feedback.registration_failed": "We
|
|
104
|
-
readonly "auth.feedback.email_in_use": "
|
|
102
|
+
readonly "auth.feedback.invalid_credentials": "Wrong email or password. Try again, or reset your password.";
|
|
103
|
+
readonly "auth.feedback.registration_failed": "We couldn't create your account. Try again.";
|
|
104
|
+
readonly "auth.feedback.email_in_use": "An account with this email already exists. Sign in instead.";
|
|
105
105
|
readonly "auth.feedback.invalid_code": "That code is invalid or has expired. Check the code or request a new one.";
|
|
106
106
|
readonly "auth.feedback.expired_code": "That code has expired. Request a new code and try again.";
|
|
107
107
|
readonly "auth.feedback.totp": "That code did not work. Enter the current code from your authenticator app.";
|
|
108
|
-
readonly "auth.feedback.network": "
|
|
109
|
-
readonly "auth.feedback.rate_limited": "Too many attempts. Wait a few minutes
|
|
108
|
+
readonly "auth.feedback.network": "No connection. Check your internet and try again.";
|
|
109
|
+
readonly "auth.feedback.rate_limited": "Too many attempts. Wait a few minutes, then try again.";
|
|
110
110
|
readonly "auth.feedback.delivery_failed": "We couldn't send the code. Try again, or try another way.";
|
|
111
111
|
readonly "auth.feedback.sms_region_unsupported": "SMS codes aren't available in your region. Try another way.";
|
|
112
112
|
readonly "auth.feedback.verification_expired": "This verification has expired. Go back and sign in again.";
|
|
113
113
|
readonly "auth.feedback.unavailable": "This action is not available here. Use a supported sign-in method or open the app.";
|
|
114
114
|
readonly "auth.feedback.cancelled": "Sign-in was cancelled. Try again when you are ready.";
|
|
115
|
-
readonly "auth.feedback.verification_required": "
|
|
116
|
-
readonly "auth.feedback.unknown": "
|
|
115
|
+
readonly "auth.feedback.verification_required": "We couldn't complete the security check. Try again.";
|
|
116
|
+
readonly "auth.feedback.unknown": "There was a technical issue on our side. Try again.";
|
|
117
|
+
readonly "auth.feedback.signin_failed": "We couldn't sign you in. Try again.";
|
|
118
|
+
readonly "auth.feedback.account_not_found": "We couldn't find an account with this email. Check it, or create an account.";
|
|
119
|
+
readonly "auth.feedback.pending_approval": "Your request to join was sent. You'll get an email once it's approved.";
|
|
120
|
+
readonly "auth.feedback.password_reset_required": "As a security precaution, we had to reset your password. Send yourself a reset link to create a new one.";
|
|
121
|
+
readonly "auth.feedback.offline_signIn": "You're offline. Get online to sign in.";
|
|
122
|
+
readonly "auth.feedback.offline_register": "You're offline. Get online to create your account.";
|
|
123
|
+
readonly "auth.feedback.offline_reset": "You're offline. Get online to reset your password.";
|
|
124
|
+
readonly "auth.feedback.reset_rate_limited": "We already sent you an email. Wait a few minutes before you ask again.";
|
|
125
|
+
readonly "auth.gate.pendingApproval.title": "Pending approval";
|
|
126
|
+
readonly "auth.validation.passwordTooShort": "Password must have at least 6 characters.";
|
|
117
127
|
readonly "auth.validation.emailRequired": "Enter your email address.";
|
|
118
128
|
readonly "auth.validation.emailInvalid": "Enter a valid email address.";
|
|
119
129
|
readonly "auth.validation.passwordMinimum": "Use at least 8 characters for your new password.";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type AuthFailureCode = "invalid_input" | "invalid_credentials" | "registration_failed" | "email_in_use" | "invalid_code" | "expired_code" | "network" | "rate_limited" | "unavailable" | "cancelled" | "verification_required" | "delivery_failed" | "sms_region_unsupported" | "verification_expired" | "unknown";
|
|
1
|
+
export type AuthFailureCode = "invalid_input" | "invalid_credentials" | "registration_failed" | "email_in_use" | "invalid_code" | "expired_code" | "network" | "rate_limited" | "unavailable" | "cancelled" | "verification_required" | "delivery_failed" | "sms_region_unsupported" | "verification_expired" | "unknown" | "signin_failed" | "account_not_found" | "pending_approval" | "password_reset_required" | "reset_rate_limited";
|
|
2
2
|
export type AuthOperation = "signIn" | "register" | "reset" | "verify";
|
|
3
3
|
/** The English default for a catalog key (`core/runtime/l10n/auth-gate/en.json`), or "" when none. */
|
|
4
4
|
export declare function authDefault(key: string): string;
|
|
@@ -5,54 +5,11 @@ export * from "./file-share-screen.js";
|
|
|
5
5
|
export * from "./one-app-page.js";
|
|
6
6
|
export * from "./one-app-visibility.js";
|
|
7
7
|
export * from "./one-app-section.js";
|
|
8
|
+
export * from "./overlapping-panel-header.js";
|
|
8
9
|
export * from "./invite.js";
|
|
9
10
|
export * from "./podcast.js";
|
|
10
11
|
export * from "./podcast-service.js";
|
|
11
12
|
import { entitlement } from "@wix/himalaya/checkout";
|
|
12
|
-
type Node = Record<string, any>;
|
|
13
|
-
/** An action shown by `detailedHeader`. */
|
|
14
|
-
export interface DetailedHeaderAction {
|
|
15
|
-
label: string;
|
|
16
|
-
action: Node;
|
|
17
|
-
style?: "primary" | "secondary" | "plain";
|
|
18
|
-
}
|
|
19
|
-
/** Options for the shared One App-style detailed header composition. */
|
|
20
|
-
export interface DetailedHeaderOptions {
|
|
21
|
-
/** Prefix for stable SDUI node IDs. Use a unique value for each header. */
|
|
22
|
-
id?: string;
|
|
23
|
-
/** Page nodes that scroll beneath the hero and detail card. */
|
|
24
|
-
content?: Node[];
|
|
25
|
-
/** Cover image selected by the migration from the source cover list. */
|
|
26
|
-
imageUrl?: string;
|
|
27
|
-
title: string;
|
|
28
|
-
subtitle?: string;
|
|
29
|
-
logoUrl?: string;
|
|
30
|
-
locationLabel?: string;
|
|
31
|
-
locationAction?: DetailedHeaderAction;
|
|
32
|
-
memberCaption?: string;
|
|
33
|
-
memberAvatars?: Array<{
|
|
34
|
-
imageUrl?: string;
|
|
35
|
-
initials?: string;
|
|
36
|
-
}>;
|
|
37
|
-
/** Live member rows from a service. This takes precedence over `memberAvatars`. */
|
|
38
|
-
memberAvatarsPath?: string;
|
|
39
|
-
inviteAction?: DetailedHeaderAction;
|
|
40
|
-
primaryAction?: DetailedHeaderAction;
|
|
41
|
-
aboutAction?: DetailedHeaderAction;
|
|
42
|
-
/** Keep the hero at one height when the source header is not collapsible. */
|
|
43
|
-
collapsible?: boolean;
|
|
44
|
-
expandedHeight?: number;
|
|
45
|
-
collapsedHeight?: number;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Build an optional Detailed cover header for screens that explicitly request one.
|
|
49
|
-
*
|
|
50
|
-
* The header uses Himalaya's cross-platform `CollapsingHeader` and standard
|
|
51
|
-
* components for the detail card, logo, member strip, and actions. The One App
|
|
52
|
-
* migration workflow uses native navigation bars and does not call this builder.
|
|
53
|
-
* Himalaya's hero accepts one image.
|
|
54
|
-
*/
|
|
55
|
-
export declare function detailedHeader(opts: DetailedHeaderOptions): Node;
|
|
56
13
|
export interface ScreenEnvelope {
|
|
57
14
|
screenId: string;
|
|
58
15
|
renderer: string;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
type Node = Record<string, any>;
|
|
2
|
+
/** The cover's width:height. About 244pt tall at 390pt wide. */
|
|
3
|
+
export declare const OVERLAPPING_PANEL_COVER_RATIO = 1.6;
|
|
4
|
+
/** How far the panel overlaps the cover's bottom. */
|
|
5
|
+
export declare const OVERLAPPING_PANEL_OVERLAP = 20;
|
|
6
|
+
/** The delay between two covers when the source gives none, or one that is not a positive number. */
|
|
7
|
+
export declare const DEFAULT_COVER_TRANSITION_MS = 3000;
|
|
8
|
+
export interface OverlappingPanelHeaderOptions {
|
|
9
|
+
/** Prefix of every node id. Stable: the cover's id (`overlappingPanelCoverId`) keys the immersive bar's `solidAfter`. */
|
|
10
|
+
id: string;
|
|
11
|
+
/** Omitted when empty, as are the subtitle and the logo (no placeholder). */
|
|
12
|
+
title?: string;
|
|
13
|
+
subtitle?: string;
|
|
14
|
+
logoUrl?: string;
|
|
15
|
+
/** The logo's accessible name. Defaults to the title. */
|
|
16
|
+
logoLabel?: string;
|
|
17
|
+
/** Image URLs, in order. */
|
|
18
|
+
coverUrls?: readonly string[];
|
|
19
|
+
/** Milliseconds between covers. Missing, zero, negative or not a number: `DEFAULT_COVER_TRANSITION_MS`. */
|
|
20
|
+
coverTransitionMs?: unknown;
|
|
21
|
+
/** The accessible name of a multi-cover carousel. Default "Cover images". */
|
|
22
|
+
coverLabel?: string;
|
|
23
|
+
}
|
|
24
|
+
/** The node id of the header's cover: the edge after which an immersive bar turns solid. */
|
|
25
|
+
export declare const overlappingPanelCoverId: (id: string) => string;
|
|
26
|
+
/** A usable cover delay in milliseconds: a positive finite number (rounded), else the default. */
|
|
27
|
+
export declare function coverTransitionMs(value: unknown): number;
|
|
28
|
+
/** The Overlapping panel header. Always a header: no cover is the themed surface, no identity collapses the panel. */
|
|
29
|
+
export declare function overlappingPanelHeader(options: OverlappingPanelHeaderOptions): Node;
|
|
30
|
+
export {};
|
|
@@ -224,21 +224,31 @@ var copy_generated_default = {
|
|
|
224
224
|
"auth.gate.code.show": "Show code",
|
|
225
225
|
"auth.gate.code.hide": "Hide code",
|
|
226
226
|
"auth.feedback.invalid_input": "Check the highlighted fields and try again.",
|
|
227
|
-
"auth.feedback.invalid_credentials": "
|
|
228
|
-
"auth.feedback.registration_failed": "We
|
|
229
|
-
"auth.feedback.email_in_use": "
|
|
227
|
+
"auth.feedback.invalid_credentials": "Wrong email or password. Try again, or reset your password.",
|
|
228
|
+
"auth.feedback.registration_failed": "We couldn't create your account. Try again.",
|
|
229
|
+
"auth.feedback.email_in_use": "An account with this email already exists. Sign in instead.",
|
|
230
230
|
"auth.feedback.invalid_code": "That code is invalid or has expired. Check the code or request a new one.",
|
|
231
231
|
"auth.feedback.expired_code": "That code has expired. Request a new code and try again.",
|
|
232
232
|
"auth.feedback.totp": "That code did not work. Enter the current code from your authenticator app.",
|
|
233
|
-
"auth.feedback.network": "
|
|
234
|
-
"auth.feedback.rate_limited": "Too many attempts. Wait a few minutes
|
|
233
|
+
"auth.feedback.network": "No connection. Check your internet and try again.",
|
|
234
|
+
"auth.feedback.rate_limited": "Too many attempts. Wait a few minutes, then try again.",
|
|
235
235
|
"auth.feedback.delivery_failed": "We couldn't send the code. Try again, or try another way.",
|
|
236
236
|
"auth.feedback.sms_region_unsupported": "SMS codes aren't available in your region. Try another way.",
|
|
237
237
|
"auth.feedback.verification_expired": "This verification has expired. Go back and sign in again.",
|
|
238
238
|
"auth.feedback.unavailable": "This action is not available here. Use a supported sign-in method or open the app.",
|
|
239
239
|
"auth.feedback.cancelled": "Sign-in was cancelled. Try again when you are ready.",
|
|
240
|
-
"auth.feedback.verification_required": "
|
|
241
|
-
"auth.feedback.unknown": "
|
|
240
|
+
"auth.feedback.verification_required": "We couldn't complete the security check. Try again.",
|
|
241
|
+
"auth.feedback.unknown": "There was a technical issue on our side. Try again.",
|
|
242
|
+
"auth.feedback.signin_failed": "We couldn't sign you in. Try again.",
|
|
243
|
+
"auth.feedback.account_not_found": "We couldn't find an account with this email. Check it, or create an account.",
|
|
244
|
+
"auth.feedback.pending_approval": "Your request to join was sent. You'll get an email once it's approved.",
|
|
245
|
+
"auth.feedback.password_reset_required": "As a security precaution, we had to reset your password. Send yourself a reset link to create a new one.",
|
|
246
|
+
"auth.feedback.offline_signIn": "You're offline. Get online to sign in.",
|
|
247
|
+
"auth.feedback.offline_register": "You're offline. Get online to create your account.",
|
|
248
|
+
"auth.feedback.offline_reset": "You're offline. Get online to reset your password.",
|
|
249
|
+
"auth.feedback.reset_rate_limited": "We already sent you an email. Wait a few minutes before you ask again.",
|
|
250
|
+
"auth.gate.pendingApproval.title": "Pending approval",
|
|
251
|
+
"auth.validation.passwordTooShort": "Password must have at least 6 characters.",
|
|
242
252
|
"auth.validation.emailRequired": "Enter your email address.",
|
|
243
253
|
"auth.validation.emailInvalid": "Enter a valid email address.",
|
|
244
254
|
"auth.validation.passwordMinimum": "Use at least 8 characters for your new password.",
|
|
@@ -290,7 +300,13 @@ var failureKeys = {
|
|
|
290
300
|
delivery_failed: "auth.feedback.delivery_failed",
|
|
291
301
|
sms_region_unsupported: "auth.feedback.sms_region_unsupported",
|
|
292
302
|
verification_expired: "auth.feedback.verification_expired",
|
|
293
|
-
unknown: "auth.feedback.unknown"
|
|
303
|
+
unknown: "auth.feedback.unknown",
|
|
304
|
+
// The cases the Wix branded app and wix.com sites name on their own (IAM -19999, -19958, -19973).
|
|
305
|
+
signin_failed: "auth.feedback.signin_failed",
|
|
306
|
+
account_not_found: "auth.feedback.account_not_found",
|
|
307
|
+
pending_approval: "auth.feedback.pending_approval",
|
|
308
|
+
password_reset_required: "auth.feedback.password_reset_required",
|
|
309
|
+
reset_rate_limited: "auth.feedback.reset_rate_limited"
|
|
294
310
|
};
|
|
295
311
|
var codes = new Set(Object.keys(failureKeys));
|
|
296
312
|
var aliases = {
|
|
@@ -314,8 +330,22 @@ var aliases = {
|
|
|
314
330
|
smsRegionUnsupported: "sms_region_unsupported",
|
|
315
331
|
verificationExpired: "verification_expired"
|
|
316
332
|
};
|
|
317
|
-
var
|
|
333
|
+
var iamWrongPasswordCode = "-19976";
|
|
334
|
+
var iamUnknownAccountCode = "-19999";
|
|
335
|
+
var iamPendingApprovalCode = "-19958";
|
|
336
|
+
var iamPasswordResetCode = "-19973";
|
|
337
|
+
var iamBlockedCode = "-19956";
|
|
338
|
+
var iamCaptchaCodes = /* @__PURE__ */ new Set(["-19970", "-19971", "CAPTCHA_REQUIRED", "RECAPTCHA_REQUIRED", "recaptchaRequired"]);
|
|
318
339
|
var iamEmailInUseCode = "-19995";
|
|
340
|
+
var unknownKeys = {
|
|
341
|
+
signIn: "auth.feedback.signin_failed",
|
|
342
|
+
register: "auth.feedback.registration_failed"
|
|
343
|
+
};
|
|
344
|
+
var offlineKeys = {
|
|
345
|
+
signIn: "auth.feedback.offline_signIn",
|
|
346
|
+
register: "auth.feedback.offline_register",
|
|
347
|
+
reset: "auth.feedback.offline_reset"
|
|
348
|
+
};
|
|
319
349
|
function authDefault(key) {
|
|
320
350
|
return copy_generated_default[key] ?? "";
|
|
321
351
|
}
|
|
@@ -342,16 +372,29 @@ function authFailure(raw, operation = "signIn", translate) {
|
|
|
342
372
|
const status = value.statusCode ?? value.status;
|
|
343
373
|
const application = String(payload.details?.applicationError?.code ?? value.details?.applicationError?.code ?? payload.applicationCode ?? value.applicationCode ?? named ?? "");
|
|
344
374
|
let code = codes.has(named) ? named : aliases[named] ?? "unknown";
|
|
345
|
-
if (
|
|
375
|
+
if (application === iamPendingApprovalCode) code = "pending_approval";
|
|
376
|
+
else if (operation === "signIn" && application === iamWrongPasswordCode) code = "invalid_credentials";
|
|
377
|
+
else if ((operation === "signIn" || operation === "reset") && application === iamUnknownAccountCode) code = "account_not_found";
|
|
378
|
+
else if (operation === "signIn" && application === iamPasswordResetCode) code = "password_reset_required";
|
|
379
|
+
else if (operation === "signIn" && application === iamBlockedCode) code = "signin_failed";
|
|
380
|
+
else if (operation === "signIn" && iamCaptchaCodes.has(application)) code = "rate_limited";
|
|
381
|
+
else if (operation === "register" && iamCaptchaCodes.has(application)) code = "registration_failed";
|
|
346
382
|
else if (operation === "register" && (application === iamEmailInUseCode || status === 409)) code = "email_in_use";
|
|
347
|
-
else if (status === 429) code = "rate_limited";
|
|
383
|
+
else if (status === 429) code = operation === "reset" ? "reset_rate_limited" : "rate_limited";
|
|
348
384
|
else if ([404, 405, 501].includes(status)) code = "unavailable";
|
|
349
385
|
else if ([401, 403].includes(status) && operation === "signIn") code = "invalid_credentials";
|
|
350
386
|
else if (status === 0 || status >= 500 || value.name === "TypeError" || value.name === "TimeoutError") code = "network";
|
|
351
387
|
if (operation === "verify" && code === "invalid_credentials") code = "invalid_code";
|
|
352
388
|
if (operation === "register" && code === "invalid_credentials") code = "registration_failed";
|
|
389
|
+
if (operation === "reset" && code === "rate_limited") code = "reset_rate_limited";
|
|
390
|
+
if (code === "network" && typeof status === "number" && status >= 500) {
|
|
391
|
+
return { code, reason: authMessage(unknownKeys[operation] ?? failureKeys.unknown, translate) };
|
|
392
|
+
}
|
|
393
|
+
if (code === "network" && offlineKeys[operation]) return { code, reason: authMessage(offlineKeys[operation], translate) };
|
|
394
|
+
if (code === "unknown" && unknownKeys[operation]) return { code, reason: authMessage(unknownKeys[operation], translate) };
|
|
353
395
|
return { code, reason: authMessage(failureKeys[code], translate) };
|
|
354
396
|
}
|
|
397
|
+
var MIN_PASSWORD_LENGTH = 6;
|
|
355
398
|
function identityErrors(input, operation, requireName = false) {
|
|
356
399
|
const errors = {};
|
|
357
400
|
if (operation === "verify") {
|
|
@@ -362,6 +405,7 @@ function identityErrors(input, operation, requireName = false) {
|
|
|
362
405
|
if (!email) errors.email = "auth.validation.emailRequired";
|
|
363
406
|
else if (validate({ type: "email" }, email)) errors.email = "auth.validation.emailInvalid";
|
|
364
407
|
if ((operation === "signIn" || operation === "register") && !input.password?.length) errors.password = "auth.validation.passwordRequired";
|
|
408
|
+
else if (operation === "register" && (input.password?.length ?? 0) < MIN_PASSWORD_LENGTH) errors.password = "auth.validation.passwordTooShort";
|
|
365
409
|
if (operation === "register" && requireName && !input.name?.trim()) errors.name = "auth.validation.nameRequired";
|
|
366
410
|
return errors;
|
|
367
411
|
}
|