@roomstay/frontend 2.6.52 → 2.6.54
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/288.bundle.js +1 -1
- package/dist/493.bundle.js +1 -1
- package/dist/586.bundle.js +1 -1
- package/dist/839.bundle.js +1 -1
- package/dist/978.bundle.js +1 -1
- package/dist/main.bundle.js +1 -1
- package/dist/src/components/generic/Event/EventCard.js +2 -2
- package/dist/src/components/generic/Event/EventCard.js.map +1 -1
- package/dist/src/components/generic/date/FloatingDatePicker.d.ts +1 -0
- package/dist/src/components/generic/date/FloatingDatePicker.js +8 -0
- package/dist/src/components/generic/date/FloatingDatePicker.js.map +1 -1
- package/dist/src/components/steps/addons/AddonCard.js +1 -1
- package/dist/src/components/steps/addons/AddonCard.js.map +1 -1
- package/dist/src/components/steps/room/AvailableUpgradesModal.js +5 -0
- package/dist/src/components/steps/room/AvailableUpgradesModal.js.map +1 -1
- package/dist/src/components/steps/room/RoomList.js +18 -4
- package/dist/src/components/steps/room/RoomList.js.map +1 -1
- package/dist/src/components/steps/room/RoomListCrossSellBlock.js +1 -1
- package/dist/src/components/steps/room/RoomListCrossSellBlock.js.map +1 -1
- package/dist/src/components/steps/room/RoomModal.js +18 -10
- package/dist/src/components/steps/room/RoomModal.js.map +1 -1
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js +4 -1
- package/dist/src/components/steps/room/roomBuilderProgress/RoomBuilderProgressRow.js.map +1 -1
- package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js +1 -1
- package/dist/src/components/steps/room/roomDetails/RoomDetailsBedsBlock.js.map +1 -1
- package/dist/src/contexts/BasketContext/BasketContextType.d.ts +7 -1
- package/dist/src/contexts/BasketContext/BasketContextType.js.map +1 -1
- package/dist/src/contexts/BasketContext/BasketContextWrapper.js +9 -2
- package/dist/src/contexts/BasketContext/BasketContextWrapper.js.map +1 -1
- package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js +1 -1
- package/dist/src/contexts/ConfirmationStepContext/ConfirmationStepContextWrapper.js.map +1 -1
- package/dist/src/contexts/HotelOverridesContext.js +4 -0
- package/dist/src/contexts/HotelOverridesContext.js.map +1 -1
- package/dist/src/hooks/EventHook.d.ts +1 -1
- package/dist/src/hooks/EventHook.js +1 -1
- package/dist/src/hooks/EventHook.js.map +1 -1
- package/dist/src/hooks/RoomRateAvailabilityListFromApi.js +9 -4
- package/dist/src/hooks/RoomRateAvailabilityListFromApi.js.map +1 -1
- package/dist/src/hooks/useSignedInMember.d.ts +1 -1
- package/dist/src/models/Api/HotelOverrideDTO.d.ts +4 -0
- package/dist/src/models/Api/HotelOverrideDTO.js.map +1 -1
- package/dist/src/providers/FilterProvider.js +4 -1
- package/dist/src/providers/FilterProvider.js.map +1 -1
- package/dist/src/providers/ImageProvider.js +2 -0
- package/dist/src/providers/ImageProvider.js.map +1 -1
- package/dist/src/translations/languages/en-gb.js +3 -3
- package/dist/src/translations/languages/en-gb.js.map +1 -1
- package/dist/src/util/Analytics/GoogleAnalytics4.d.ts +1 -1
- package/dist/src/util/Analytics/UniversalAnalytics.d.ts +1 -1
- package/dist/src/util/DerbysoftPixel.js +37 -0
- package/dist/src/util/DerbysoftPixel.js.map +1 -1
- package/dist/src/util/Validation.js +1 -1
- package/dist/src/util/Validation.js.map +1 -1
- package/dist/test.bundle.js +1 -1
- package/dist/vendors.bundle.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Validation.js","sourceRoot":"/","sources":["src/util/Validation.ts"],"names":[],"mappings":";;;AAGA,4DAAyD;AAK5C,QAAA,WAAW,GAAG,sJAAsJ,CAAC;AACrK,QAAA,cAAc,GACvB,
|
|
1
|
+
{"version":3,"file":"Validation.js","sourceRoot":"/","sources":["src/util/Validation.ts"],"names":[],"mappings":";;;AAGA,4DAAyD;AAK5C,QAAA,WAAW,GAAG,sJAAsJ,CAAC;AACrK,QA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EI,MAAM,6BAA6B,GACtC,CAAC,CAAY,EAAE,EAAE,CACjB,CAAC,UAAmB,EAAU,EAAE,CAC5B,CAAC,CAAC,yBAAW,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,UAAU,EAAE;IACjE,UAAU,EAAE,UAAU,IAAI,CAAC,CAAC,yBAAW,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,CAAC;CAChG,CAAC,CAAC;AALE,QAAA,6BAA6B,iCAK/B;AAEJ,MAAM,0BAA0B,GAAG,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC,CAAC,yBAAW,CAAC,UAAU,CAAC,aAAa,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;AAAnH,QAAA,0BAA0B,8BAAyF;AACzH,MAAM,gBAAgB,GACzB,CAAC,CAAY,EAAE,EAAE,CACjB,CAAC,UAAmB,EAAE,UAAmB,EAAmC,EAAE,CAAC,CAAC;IAC5E,KAAK,EAAE,UAAU;IACjB,OAAO,EAAE,IAAA,qCAA6B,EAAC,CAAC,CAAC,CAAC,UAAU,CAAC;CACxD,CAAC,CAAC;AALM,QAAA,gBAAgB,oBAKtB;AAEA,MAAM,oBAAoB,GAAG,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC;IACnD,KAAK,EAAE,mBAAW;IAClB,OAAO,EAAE,IAAA,kCAA0B,EAAC,CAAC,CAAC;CACzC,CAAC,CAAC;AAHU,QAAA,oBAAoB,wBAG9B","sourcesContent":["import { TFunction } from 'i18next';\nimport { ValidationValue, ValidationValueMessage } from 'react-hook-form';\n\nimport { Translation } from '@/translations/Translation';\n\ntype MakeValidationRule<T extends ValidationValue> = (t: TFunction) => ValidationValueMessage<T>;\ntype MakeValidationMessage = (t: TFunction) => string;\n\nexport const EMAIL_REGEX = /^(([^<>()[\\]\\\\.,;:\\s@\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\nexport const PASSWORD_REGEX =\n /^(?=.*[A-Z])(?=.*[a-z])(?=.*\\d)(?=.*[><?@+'`~^%&*[\\]{}.!#|\\\\\"$';,:;=\\\\/(),-\\s+])[A-Za-z\\u0600-\\u06FF\\u0430-\\u044f\\u0590-\\u05FF\\u0370-\\u03ff\\u1f00-\\u1fff\\d><?@+'`~^%&*[\\]{}.!#|\\\\\"$';,:;=\\\\/(),-\\s+]{8,}$/;\nexport const PHONE_REGEX = /.*\\s\\d+/;\nexport const makePasswordPatternValidationMessage: MakeValidationMessage = (t: TFunction) => t(Translation.UserPortal.ProfileScreen.Validation.Password.IsNotValid);\nexport const makePasswordMatchValidationMessage: MakeValidationMessage = (t) => t(Translation.UserPortal.ProfileScreen.Validation.Password.DoesNotMatch);\nexport const makePasswordPatternRule: MakeValidationRule<RegExp> = (t) => ({\n value: PASSWORD_REGEX,\n message: makePasswordPatternValidationMessage(t),\n});\nexport const isPasswordMatch = (t: TFunction) => (passwordValue: string) => (repeatPassword: string) => {\n return !repeatPassword || repeatPassword === passwordValue || makePasswordMatchValidationMessage(t);\n};\n\nexport const makeEmailPatternValidationMessage = (t: TFunction) => t(Translation.UserPortal.ProfileScreen.Validation.Email.IsNotValid);\nexport const makeEmailPatternRule: MakeValidationRule<RegExp> = (t) => ({\n value: EMAIL_REGEX,\n message: makeEmailPatternValidationMessage(t),\n});\n\nexport const makeRequiredValidationMessage =\n (t: TFunction) =>\n (fieldLabel?: string): string =>\n t(Translation.UserPortal.ProfileScreen.Validation.Common.IsRequired, {\n fieldLabel: fieldLabel || t(Translation.UserPortal.ProfileScreen.Validation.Common.ThisField),\n });\n\nexport const makePhoneValidationMessage = (t: TFunction) => t(Translation.UserPortal.ProfileScreen.Validation.Phone.IsNotValid);\nexport const makeRequiredRule =\n (t: TFunction) =>\n (isRequired: boolean, fieldLabel?: string): ValidationValueMessage<boolean> => ({\n value: isRequired,\n message: makeRequiredValidationMessage(t)(fieldLabel),\n });\n\nexport const makePhonePatternRule = (t: TFunction) => ({\n value: PHONE_REGEX,\n message: makePhoneValidationMessage(t),\n});\n"]}
|