@licklist/design 0.78.4 → 0.78.5-dev.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/affiliate/form/AffiliateForm.d.ts.map +1 -1
- package/dist/affiliate/form/AffiliateForm.js +6 -2
- package/dist/auth/AccessDenied/AccessDenied.d.ts.map +1 -1
- package/dist/auth/AccessDenied/AccessDenied.js +4 -3
- package/dist/auth/Authorizer.d.ts.map +1 -1
- package/dist/auth/Authorizer.js +10 -6
- package/dist/auth/ChangePassword/ChangePasswordComponent.d.ts.map +1 -1
- package/dist/auth/ChangePassword/ChangePasswordComponent.js +36 -41
- package/dist/auth/Layout/AuthNavComponent.d.ts.map +1 -1
- package/dist/auth/Layout/AuthNavComponent.js +2 -3
- package/dist/auth/Layout/UserNavDropDown.d.ts.map +1 -1
- package/dist/auth/Layout/UserNavDropDown.js +8 -9
- package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
- package/dist/auth/Login/LoginComponent.js +59 -61
- package/dist/auth/Logout/Logout.d.ts.map +1 -1
- package/dist/auth/Logout/Logout.js +4 -2
- package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
- package/dist/auth/Register/RegisterComponent.js +53 -58
- package/dist/auth/ResetPassword/ResetPasswordComponent.d.ts.map +1 -1
- package/dist/auth/ResetPassword/ResetPasswordComponent.js +26 -30
- package/dist/auth/Social/SocialCallbackComponent.d.ts.map +1 -1
- package/dist/auth/Social/SocialCallbackComponent.js +3 -3
- package/dist/events/edit-event-modal/IntervalInput.d.ts.map +1 -1
- package/dist/events/edit-event-modal/IntervalInput.js +5 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts +3 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/EditEventForm/EditEventForm.js +16 -3
- package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +2 -2
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/utils/getDefaultProductSet.js +0 -1
- package/dist/events/event-card/EventCard.d.ts +3 -2
- package/dist/events/event-card/EventCard.d.ts.map +1 -1
- package/dist/events/event-card/EventCard.js +29 -19
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts +2 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/EventStatisticModal.js +2 -3
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.d.ts.map +1 -1
- package/dist/events/event-statistic-modal/hooks/useTableData.js +2 -1
- package/dist/events/event-statistic-modal/utils/index.js +3 -3
- package/dist/events/event-venue-map/EventVenueMap.d.ts.map +1 -1
- package/dist/events/event-venue-map/EventVenueMap.js +1 -0
- package/dist/events/event-venue-map/hooks/useCanvasSize.d.ts.map +1 -1
- package/dist/events/event-venue-map/hooks/useCanvasSize.js +11 -4
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetForm.js +1 -2
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.js +3 -4
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.d.ts.map +1 -1
- package/dist/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.js +5 -13
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.d.ts.map +1 -1
- package/dist/iframe/event/event-navigation-footer/EventNavigationFooter.js +3 -2
- package/dist/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.js +13 -0
- package/dist/iframe/order-process/components/NavigationSteps/NavigationSteps.js +3 -3
- package/dist/iframe/payment/order-items-table/OrderItemsTable.js +0 -1
- package/dist/iframe/payment/payment-form/PaymentForm.js +0 -1
- package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
- package/dist/iframe/ryft/RyftPaymentForm.js +1 -3
- package/dist/iframe/ryft/utils/ryft-form.d.ts.map +1 -1
- package/dist/iframe/ryft/utils/ryft-form.js +4 -5
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +3 -0
- package/dist/pages/PrivacyComponent.d.ts +3 -0
- package/dist/pages/PrivacyComponent.d.ts.map +1 -0
- package/dist/pages/PrivacyComponent.js +536 -0
- package/dist/pages/TermsComponent.d.ts +3 -0
- package/dist/pages/TermsComponent.d.ts.map +1 -0
- package/dist/pages/TermsComponent.js +682 -0
- package/dist/pages/index.d.ts +3 -0
- package/dist/pages/index.d.ts.map +1 -0
- package/dist/product-set/card/ProductSetCard.d.ts.map +1 -1
- package/dist/product-set/card/ProductSetCard.js +3 -2
- package/dist/product-set/form/ProductSetForm.d.ts +4 -1
- package/dist/product-set/form/ProductSetForm.d.ts.map +1 -1
- package/dist/product-set/form/ProductSetForm.js +1 -1
- package/dist/product-set/form/ProductsControl.js +2 -1
- package/dist/product-set/product/advanced-options/AdvancedOptions.js +0 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.d.ts.map +1 -1
- package/dist/product-set/product/booking-management/ProductBookingManagementControl.js +6 -0
- package/dist/product-set/product/deposit/ProductDepositControl.d.ts.map +1 -1
- package/dist/product-set/product/deposit/ProductDepositControl.js +3 -0
- package/dist/product-set/product/duration/ProductDurationControl.d.ts.map +1 -1
- package/dist/product-set/product/duration/ProductDurationControl.js +6 -0
- package/dist/product-set/product/price/ProductPriceControl.d.ts.map +1 -1
- package/dist/product-set/product/price/ProductPriceControl.js +3 -0
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityConstantControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityControl.js +6 -0
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.d.ts.map +1 -1
- package/dist/product-set/product/quantity/ProductQuantityRechargingControl.js +4 -1
- package/dist/product-set/product-category/ProductCategoryControl.d.ts.map +1 -1
- package/dist/product-set/product-category/ProductCategoryControl.js +12 -0
- package/dist/product-set/utils/index.d.ts +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/recurrence-input/RecurrenceEndInput.js +3 -0
- package/dist/recurring-date-picker-input/RecurrenceEndInput.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.d.ts.map +1 -1
- package/dist/resource/form/components/CapacityControl.js +3 -0
- package/dist/resource/form/components/SortControl.d.ts.map +1 -1
- package/dist/resource/form/components/SortControl.js +3 -0
- package/dist/sales/coupon/control/CouponFormControl.d.ts.map +1 -1
- package/dist/sales/coupon/control/CouponFormControl.js +21 -0
- package/dist/sales/notes/NotesTableRow.js +0 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.d.ts.map +1 -1
- package/dist/sales/payment-form/components/RyftPayment/RyftPayment.js +1 -3
- package/dist/setting/dashboard/DashboardSettingForm.d.ts.map +1 -1
- package/dist/setting/dashboard/DashboardSettingForm.js +4 -1
- package/dist/setting/dashboard/snippets/card/SnippetCard.d.ts.map +1 -1
- package/dist/setting/dashboard/snippets/card/SnippetCard.js +4 -4
- package/dist/snippet/snippet-template/preview/Preview.js +0 -1
- package/dist/static/CurrencyNumberInput.d.ts.map +1 -1
- package/dist/static/CurrencyNumberInput.js +3 -0
- package/dist/static/RestrictedAccess.d.ts.map +1 -1
- package/dist/static/RestrictedAccess.js +3 -2
- package/dist/static/form-number-input/FormNumberInput.d.ts.map +1 -1
- package/dist/static/form-number-input/FormNumberInput.js +3 -0
- package/dist/static/index.js +1 -1
- package/dist/static/number-input/NumberInput.d.ts.map +1 -1
- package/dist/static/number-input/NumberInput.js +3 -0
- package/dist/striped-static-table/StripedStaticTable.js +0 -1
- package/dist/styles/events/EditEventModal.scss +7 -0
- package/dist/styles/iframe-events/Calendar.scss +1 -1
- package/dist/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/dist/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
- package/dist/styles/sales/BookingResults.scss +1 -1
- package/dist/table/ReactTableHelperComponent.d.ts.map +1 -1
- package/dist/table/ReactTableHelperComponent.js +3 -3
- package/dist/table/TableHelperComponent.d.ts.map +1 -1
- package/dist/table/TableHelperComponent.js +3 -3
- package/dist/venue-map-sets/card/VenueMapSetCard.d.ts.map +1 -1
- package/dist/venue-map-sets/card/VenueMapSetCard.js +4 -3
- package/dist/zone/card/ZoneCard.d.ts.map +1 -1
- package/dist/zone/card/ZoneCard.js +4 -3
- package/dist/zone/form/components/GameDurationControl.d.ts.map +1 -1
- package/dist/zone/form/components/GameDurationControl.js +3 -0
- package/dist/zone/form/components/SortControl.d.ts.map +1 -1
- package/dist/zone/form/components/SortControl.js +3 -0
- package/package.json +11 -9
- package/src/affiliate/form/AffiliateForm.tsx +4 -2
- package/src/auth/AccessDenied/AccessDenied.tsx +4 -3
- package/src/auth/Authorizer.tsx +11 -6
- package/src/auth/ChangePassword/ChangePasswordComponent.tsx +21 -26
- package/src/auth/Layout/AuthNavComponent.tsx +2 -3
- package/src/auth/Layout/UserNavDropDown.tsx +6 -7
- package/src/auth/Login/LoginComponent.tsx +43 -47
- package/src/auth/Logout/Logout.stories.tsx +12 -14
- package/src/auth/Logout/Logout.tsx +4 -3
- package/src/auth/Register/RegisterComponent.tsx +35 -41
- package/src/auth/ResetPassword/ResetPasswordComponent.tsx +16 -20
- package/src/auth/Social/SocialCallbackComponent.tsx +4 -4
- package/src/events/edit-event-modal/IntervalInput.tsx +4 -0
- package/src/events/edit-event-modal/component/EditEventForm/EditEventForm.tsx +19 -4
- package/src/events/edit-event-modal/utils/getDefaultProductSet.ts +0 -1
- package/src/events/event-card/EventCard.stories.tsx +5 -8
- package/src/events/event-card/EventCard.tsx +35 -28
- package/src/events/event-statistic-modal/EventStatisticModal.tsx +3 -1
- package/src/events/event-statistic-modal/hooks/useTableData.tsx +2 -1
- package/src/events/event-statistic-modal/utils/index.ts +4 -4
- package/src/events/event-venue-map/EventVenueMap.tsx +1 -0
- package/src/events/event-venue-map/hooks/useCanvasSize.ts +5 -1
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/ProductWithModifierSetModal.tsx +2 -2
- package/src/iframe/ProductWithModifierModal/ModifierSetModal/controll/ModifierSetControll.tsx +5 -13
- package/src/iframe/event/event-navigation-footer/EventNavigationFooter.tsx +3 -2
- package/src/iframe/order-process/components/BookingSummary/components/ProductSummary/ProductSummary.tsx +1 -0
- package/src/iframe/order-process/components/CategoryProduct/components/NumberInput/NumberInput.tsx +9 -0
- package/src/iframe/order-process/components/NavigationSteps/NavigationSteps.tsx +3 -3
- package/src/iframe/order-process/components/utils/useOnWindowUnmount.ts +1 -1
- package/src/iframe/ryft/RyftPaymentForm.tsx +2 -5
- package/src/iframe/ryft/utils/ryft-form.ts +6 -5
- package/src/index.ts +1 -0
- package/src/notification/email-template/control/EmailTemplateControl.tsx +1 -0
- package/src/pages/PrivacyComponent.tsx +318 -0
- package/src/pages/TermsComponent.tsx +306 -0
- package/src/pages/index.ts +2 -0
- package/src/product-set/card/ProductSetCard.tsx +3 -2
- package/src/product-set/form/ProductSetForm.tsx +6 -2
- package/src/product-set/product/booking-management/ProductBookingManagementControl.tsx +2 -0
- package/src/product-set/product/deposit/ProductDepositControl.tsx +1 -0
- package/src/product-set/product/duration/ProductDurationControl.tsx +2 -0
- package/src/product-set/product/price/ProductPriceControl.tsx +1 -0
- package/src/product-set/product/quantity/ProductQuantityConstantControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityControl.tsx +2 -0
- package/src/product-set/product/quantity/ProductQuantityRechargingControl.tsx +1 -0
- package/src/product-set/product-category/ProductCategoryControl.tsx +4 -0
- package/src/recurrence-input/RecurrenceEndInput.tsx +1 -0
- package/src/recurring-date-picker-input/RecurrenceEndInput.tsx +1 -0
- package/src/resource/form/components/CapacityControl.tsx +1 -0
- package/src/resource/form/components/SortControl.tsx +1 -0
- package/src/sales/coupon/control/CouponFormControl.tsx +7 -0
- package/src/sales/payment-form/components/RyftPayment/RyftPayment.tsx +1 -3
- package/src/setting/dashboard/DashboardSettingForm.tsx +1 -0
- package/src/setting/dashboard/snippets/card/SnippetCard.tsx +4 -3
- package/src/static/CurrencyNumberInput.tsx +1 -0
- package/src/static/RestrictedAccess.tsx +3 -6
- package/src/static/form-number-input/FormNumberInput.tsx +1 -0
- package/src/static/number-input/NumberInput.tsx +1 -0
- package/src/styles/events/EditEventModal.scss +7 -0
- package/src/styles/iframe-events/Calendar.scss +1 -1
- package/src/styles/iframe-external-modal/IframeExternalModal.scss +2 -2
- package/src/styles/ryft-payment-form/RyftPaymentForm.scss +1 -3
- package/src/styles/sales/BookingResults.scss +1 -1
- package/src/table/ReactTableHelperComponent.tsx +3 -5
- package/src/table/TableHelperComponent.tsx +3 -3
- package/src/venue-map-sets/card/VenueMapSetCard.tsx +4 -3
- package/src/zone/card/ZoneCard.tsx +4 -3
- package/src/zone/form/components/GameDurationControl.tsx +1 -0
- package/src/zone/form/components/SortControl.tsx +1 -0
- package/yarn.lock +329 -271
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RestrictedAccess.d.ts","sourceRoot":"","sources":["../../src/static/RestrictedAccess.tsx"],"names":[],"mappings":"AAKA,iBAAS,gBAAgB,
|
|
1
|
+
{"version":3,"file":"RestrictedAccess.d.ts","sourceRoot":"","sources":["../../src/static/RestrictedAccess.tsx"],"names":[],"mappings":"AAKA,iBAAS,gBAAgB,4CAiBxB;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Button } from 'react-bootstrap';
|
|
3
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService';
|
|
4
3
|
import { useTranslation } from 'react-i18next';
|
|
5
4
|
import { FaArrowLeft } from 'react-icons/fa';
|
|
5
|
+
import { useNavigate } from 'react-router-dom';
|
|
6
6
|
|
|
7
7
|
function RestrictedAccess() {
|
|
8
8
|
var t = useTranslation('Design').t;
|
|
9
|
+
var navigate = useNavigate();
|
|
9
10
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
10
11
|
children: [
|
|
11
12
|
/*#__PURE__*/ jsx(Button, {
|
|
12
13
|
className: "mt-3 ml-3",
|
|
13
14
|
variant: "link",
|
|
14
15
|
onClick: function() {
|
|
15
|
-
return
|
|
16
|
+
return navigate(-1);
|
|
16
17
|
},
|
|
17
18
|
children: /*#__PURE__*/ jsx(FaArrowLeft, {
|
|
18
19
|
size: 25
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormNumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/form-number-input/FormNumberInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EAGhB,MAAM,iBAAiB,CAAA;AAIxB,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,IAAI,CACV,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACpD,CAAA;CACF;AAED,eAAO,MAAM,eAAe,2DAOzB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"FormNumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/form-number-input/FormNumberInput.tsx"],"names":[],"mappings":"AAGA,OAAO,EAEL,eAAe,EAGhB,MAAM,iBAAiB,CAAA;AAIxB,UAAU,oBAAoB;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,IAAI,CACV,eAAe,EACf,KAAK,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,GAAG,SAAS,CACpD,CAAA;CACF;AAED,eAAO,MAAM,eAAe,2DAOzB,oBAAoB,4CAkEtB,CAAA"}
|
|
@@ -106,6 +106,9 @@ var FormNumberInput = function(param) {
|
|
|
106
106
|
type: "number",
|
|
107
107
|
step: step,
|
|
108
108
|
disabled: disabled,
|
|
109
|
+
onWheel: function(event) {
|
|
110
|
+
return event.currentTarget.blur();
|
|
111
|
+
},
|
|
109
112
|
isInvalid: HookFormService.isInvalid(fieldName, errors)
|
|
110
113
|
}, field), {
|
|
111
114
|
onChange: function(event) {
|
package/dist/static/index.js
CHANGED
|
@@ -19,7 +19,7 @@ import 'react-phone-number-input/locale/en.json';
|
|
|
19
19
|
import 'react-phone-number-input/style.css';
|
|
20
20
|
import 'react-bootstrap/Card';
|
|
21
21
|
import 'react-bootstrap/Button';
|
|
22
|
-
import '
|
|
22
|
+
import 'react-router-dom';
|
|
23
23
|
import 'react-bootstrap/Alert';
|
|
24
24
|
import 'react-date-range';
|
|
25
25
|
import 'react-use';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/number-input/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAgB,EAChB,SAAc,EACd,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,YAAY,GACb,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"NumberInput.d.ts","sourceRoot":"","sources":["../../../src/static/number-input/NumberInput.tsx"],"names":[],"mappings":"AAIA,UAAU,gBAAgB;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACjC,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACnC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IACrC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB;AAED,wBAAgB,WAAW,CAAC,EAC1B,QAAgB,EAChB,SAAc,EACd,KAAK,EACL,QAAQ,EACR,WAAW,EACX,SAAS,EACT,GAAG,EACH,GAAG,EACH,YAAY,GACb,EAAE,gBAAgB,2CAoDlB"}
|
|
@@ -11,7 +11,6 @@ import { StaticTable } from '../table/StaticTable.js';
|
|
|
11
11
|
import 'react-router-dom';
|
|
12
12
|
import 'lodash';
|
|
13
13
|
import '@licklist/plugins/dist/hooks/Query/useQuery';
|
|
14
|
-
import '@licklist/plugins/dist/services/Route/RouteService';
|
|
15
14
|
import 'react-loader';
|
|
16
15
|
import '../table/utils/index.js';
|
|
17
16
|
import '@tanstack/react-table';
|
|
@@ -15,7 +15,7 @@ body[bkdt-scrollable='false'] .bkdt-mask {
|
|
|
15
15
|
left: 0;
|
|
16
16
|
width: 100%;
|
|
17
17
|
height: 100%;
|
|
18
|
-
z-index:
|
|
18
|
+
z-index: 2147483646;
|
|
19
19
|
background-color: rgba(0, 0, 0, 0.5);
|
|
20
20
|
display: none;
|
|
21
21
|
}
|
|
@@ -24,7 +24,7 @@ body[bkdt-scrollable='false'] .bkdt-mask {
|
|
|
24
24
|
position: fixed;
|
|
25
25
|
top: 0;
|
|
26
26
|
left: 0;
|
|
27
|
-
z-index:
|
|
27
|
+
z-index: 2147483647;
|
|
28
28
|
display: none;
|
|
29
29
|
width: 100%;
|
|
30
30
|
height: 100%;
|
|
@@ -102,7 +102,6 @@
|
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
.ryft-payment-form {
|
|
105
|
-
|
|
106
105
|
.form-disable-box {
|
|
107
106
|
display: none;
|
|
108
107
|
position: absolute;
|
|
@@ -184,7 +183,6 @@
|
|
|
184
183
|
}
|
|
185
184
|
|
|
186
185
|
@include media-breakpoint-up(md) {
|
|
187
|
-
|
|
188
186
|
.ryft-payment-form,
|
|
189
187
|
.form-disable-box {
|
|
190
188
|
height: 50%;
|
|
@@ -213,4 +211,4 @@
|
|
|
213
211
|
.divider {
|
|
214
212
|
display: none !important;
|
|
215
213
|
}
|
|
216
|
-
}
|
|
214
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReactTableHelperComponent.d.ts","sourceRoot":"","sources":["../../src/table/ReactTableHelperComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,GAAG,EACH,YAAY,EACb,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"ReactTableHelperComponent.d.ts","sourceRoot":"","sources":["../../src/table/ReactTableHelperComponent.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,GAAG,EACH,YAAY,EACb,MAAM,OAAO,CAAA;AAgBd,OAAO,EACL,mBAAmB,EACnB,mCAAmC,EACnC,qCAAqC,EAErC,oBAAoB,EACrB,MAAM,SAAS,CAAA;AAGhB,YAAY,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAA;AAElD,MAAM,MAAM,8BAA8B,CAAC,CAAC,SAAS,MAAM,IACzD,mBAAmB,CAAC,CAAC,CAAC,GACpB,CACI,mCAAmC,CAAC,CAAC,CAAC,GACtC,qCAAqC,CAAC,CAAC,CAAC,CAC3C,CAAA;AAEL,MAAM,MAAM,4BAA4B,GAAG;IACzC,OAAO,EAAE,oBAAoB,GAAG,IAAI,CAAA;CACrC,CAAA;AAyQD,QAAA,MAAM,yBAAyB,EAE1B,CAAC,CAAgB,SAAN,MAAM,EACpB,KAAK,EAAE,8BAA8B,CAAC,CAAC,CAAC,GAAG;IACzC,GAAG,CAAC,EAAE,GAAG,CAAC,4BAA4B,CAAC,CAAA;CACxC,KACE,YAAY,CAAA;AAEjB,OAAO,EAAE,yBAAyB,EAAE,CAAA"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef, useMemo, useImperativeHandle, useEffect } from 'react';
|
|
3
3
|
import { Row, Col, Table } from 'react-bootstrap';
|
|
4
|
-
import { useLocation } from 'react-router-dom';
|
|
4
|
+
import { useLocation, useNavigate } from 'react-router-dom';
|
|
5
5
|
import { isEqual } from 'lodash';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { useReactTable, getCoreRowModel, flexRender } from '@tanstack/react-table';
|
|
8
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService';
|
|
9
8
|
import TableService from '@licklist/plugins/dist/services/Table/TableService';
|
|
10
9
|
import { LoaderIndicator } from '../static/loader/LoaderIndicator.js';
|
|
11
10
|
import { FilterHelperComponent } from './FilterHelperComponent.js';
|
|
@@ -117,6 +116,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
117
116
|
"renderRow"
|
|
118
117
|
]);
|
|
119
118
|
var pathname = useLocation().pathname;
|
|
119
|
+
var navigate = useNavigate();
|
|
120
120
|
var _useTableQueryOptions = useTableQueryOptions({
|
|
121
121
|
initialOptions: initialOptions,
|
|
122
122
|
externalFilters: externalFilters
|
|
@@ -194,7 +194,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
194
194
|
setOptionsCache(options);
|
|
195
195
|
setCachedExternalFilters(externalFilters);
|
|
196
196
|
var nextUrlSearchParams = new URLSearchParams(_object_spread({}, options, externalFilters));
|
|
197
|
-
|
|
197
|
+
navigate([
|
|
198
198
|
pathname,
|
|
199
199
|
nextUrlSearchParams.toString()
|
|
200
200
|
].join('?'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableHelperComponent.d.ts","sourceRoot":"","sources":["../../src/table/TableHelperComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TableHelperComponent.d.ts","sourceRoot":"","sources":["../../src/table/TableHelperComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAA;AAM3D,OAAO,qBAAqB,MAAM,mEAAmE,CAAA;AACrG,OAAO,YAAY,MAAM,0DAA0D,CAAA;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,yDAAyD,CAAA;AAQrF,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,YAAY,EAAE,QAAQ,CAAA;IACtB,SAAS,CAAC,EAAE,qBAAqB,CAAC,GAAG,CAAC,CAAA;IACtC,WAAW,CAAC,EAAE,QAAQ,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAA;IAC9B,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,eAAe,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;IACxC,cAAc,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;IACrC,qBAAqB,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,CAAC,WAAW,CAAC,KAAK,IAAI,CAAA;CACrE;AAUD;;;;;;GAMG;AACH,iBAAS,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,2CA8S7D;AAED,OAAO,EAAE,oBAAoB,EAAE,CAAA"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import { useState, useEffect } from 'react';
|
|
3
3
|
import { Row, Col, Table } from 'react-bootstrap';
|
|
4
|
-
import { useLocation } from 'react-router-dom';
|
|
4
|
+
import { useLocation, useNavigate } from 'react-router-dom';
|
|
5
5
|
import { isEqual } from 'lodash';
|
|
6
6
|
import useQuery from '@licklist/plugins/dist/hooks/Query/useQuery';
|
|
7
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService';
|
|
8
7
|
import TableService from '@licklist/plugins/dist/services/Table/TableService';
|
|
9
8
|
import { LoaderIndicator } from '../static/loader/LoaderIndicator.js';
|
|
10
9
|
import { FilterHelperComponent } from './FilterHelperComponent.js';
|
|
@@ -158,6 +157,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
158
157
|
var paginator = props.paginator, headers = props.headers, renderItemFn = props.renderItemFn, isLoading = props.isLoading, onRefreshFn = props.onRefreshFn, refreshAt = props.refreshAt, _props_striped = props.striped, striped = _props_striped === void 0 ? true : _props_striped, _props_bordered = props.bordered, bordered = _props_bordered === void 0 ? true : _props_bordered, _props_displaySearchBar = props.displaySearchBar, displaySearchBar = _props_displaySearchBar === void 0 ? true : _props_displaySearchBar, _props_displayPerPageSelect = props.displayPerPageSelect, displayPerPageSelect = _props_displayPerPageSelect === void 0 ? true : _props_displayPerPageSelect, _props_displayShowingSection = props.displayShowingSection, displayShowingSection = _props_displayShowingSection === void 0 ? true : _props_displayShowingSection, _props_externalFilters = props.externalFilters, externalFilters = _props_externalFilters === void 0 ? {} : _props_externalFilters, _props_initialOptions = props.initialOptions, initialOptions = _props_initialOptions === void 0 ? {} : _props_initialOptions, filteredOrdersOptions = props.filteredOrdersOptions;
|
|
159
158
|
var query = useQuery();
|
|
160
159
|
var pathname = useLocation().pathname;
|
|
160
|
+
var navigate = useNavigate();
|
|
161
161
|
var page = Number(getFilterOptionsValue(query, initialOptions, 'page'));
|
|
162
162
|
var perPage = Number(getFilterOptionsValue(query, initialOptions, 'perPage'));
|
|
163
163
|
var sortKey = String(getFilterOptionsValue(query, initialOptions, 'sortKey'));
|
|
@@ -182,7 +182,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
182
182
|
if (onRefreshFn) {
|
|
183
183
|
onRefreshFn(options);
|
|
184
184
|
}
|
|
185
|
-
|
|
185
|
+
navigate([
|
|
186
186
|
pathname,
|
|
187
187
|
[
|
|
188
188
|
"page=".concat(options.page),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VenueMapSetCard.d.ts","sourceRoot":"","sources":["../../../src/venue-map-sets/card/VenueMapSetCard.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAMtF,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,SAAc,EACd,aAAoB,GACrB,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"VenueMapSetCard.d.ts","sourceRoot":"","sources":["../../../src/venue-map-sets/card/VenueMapSetCard.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAMtF,MAAM,WAAW,oBAAqB,SAAQ,iBAAiB;IAC7D,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,eAAe,CAAC,EAC9B,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,SAAc,EACd,aAAoB,GACrB,EAAE,oBAAoB,2CA8EtB"}
|
|
@@ -4,8 +4,8 @@ import { OverlayTrigger, Popover, ListGroup } from 'react-bootstrap';
|
|
|
4
4
|
import { useId } from '@react-aria/utils';
|
|
5
5
|
import { useTranslation } from 'react-i18next';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService';
|
|
8
7
|
import { FaEye, FaTrashAlt, FaEllipsisH } from 'react-icons/fa';
|
|
8
|
+
import { useNavigate } from 'react-router-dom';
|
|
9
9
|
import { MenuButton } from '../../table/MenuButton.js';
|
|
10
10
|
import { ConfirmModal } from '../../modals/confirmation/ConfirmModal.js';
|
|
11
11
|
|
|
@@ -60,15 +60,16 @@ function VenueMapSetCard(param) {
|
|
|
60
60
|
var t = useTranslation('Design').t;
|
|
61
61
|
var popoverId = useId();
|
|
62
62
|
var _useState = _sliced_to_array(useState(false), 2), isOverlayVisibile = _useState[0], setIsOverlayVisible = _useState[1];
|
|
63
|
+
var navigate = useNavigate();
|
|
63
64
|
return /*#__PURE__*/ jsx("div", {
|
|
64
65
|
role: "button",
|
|
65
66
|
tabIndex: 0,
|
|
66
67
|
className: "border-0 venue-map-set-card-wrapper w-100 pb-0",
|
|
67
68
|
onClick: function() {
|
|
68
|
-
return
|
|
69
|
+
return navigate(href);
|
|
69
70
|
},
|
|
70
71
|
onKeyUp: function() {
|
|
71
|
-
return
|
|
72
|
+
return navigate(href);
|
|
72
73
|
},
|
|
73
74
|
children: /*#__PURE__*/ jsxs("div", {
|
|
74
75
|
className: clsx('venue-map-set-card', className),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZoneCard.d.ts","sourceRoot":"","sources":["../../../src/zone/card/ZoneCard.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAMtF,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,SAAc,EACd,aAAoB,GACrB,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"ZoneCard.d.ts","sourceRoot":"","sources":["../../../src/zone/card/ZoneCard.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAMtF,MAAM,WAAW,aAAc,SAAQ,iBAAiB;IACtD,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,MAAM,IAAI,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,QAAQ,CAAC,EACvB,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,SAAc,EACd,aAAoB,GACrB,EAAE,aAAa,2CA+Ef"}
|
|
@@ -4,8 +4,8 @@ import { OverlayTrigger, Popover, ListGroup } from 'react-bootstrap';
|
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { useId } from '@react-aria/utils';
|
|
7
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService';
|
|
8
7
|
import { FaEye, FaTrashAlt, FaEllipsisH } from 'react-icons/fa';
|
|
8
|
+
import { useNavigate } from 'react-router-dom';
|
|
9
9
|
import { ConfirmModal } from '../../modals/confirmation/ConfirmModal.js';
|
|
10
10
|
import { MenuButton } from '../../table/MenuButton.js';
|
|
11
11
|
|
|
@@ -61,15 +61,16 @@ function ZoneCard(param) {
|
|
|
61
61
|
var popoverId = useId();
|
|
62
62
|
var ZoneCardClasses = "zone-card ".concat(className);
|
|
63
63
|
var _useState = _sliced_to_array(useState(false), 2), isOverlayVisibile = _useState[0], setIsOverlayVisible = _useState[1];
|
|
64
|
+
var navigate = useNavigate();
|
|
64
65
|
return /*#__PURE__*/ jsx("div", {
|
|
65
66
|
role: "button",
|
|
66
67
|
tabIndex: 0,
|
|
67
68
|
className: "border-0 zone-card-wrapper w-100 pb-0",
|
|
68
69
|
onClick: function() {
|
|
69
|
-
return
|
|
70
|
+
return navigate(href);
|
|
70
71
|
},
|
|
71
72
|
onKeyUp: function() {
|
|
72
|
-
return
|
|
73
|
+
return navigate(href);
|
|
73
74
|
},
|
|
74
75
|
children: /*#__PURE__*/ jsxs("div", {
|
|
75
76
|
className: ZoneCardClasses,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,
|
|
1
|
+
{"version":3,"file":"GameDurationControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/GameDurationControl.tsx"],"names":[],"mappings":"AAOA,KAAK,wBAAwB,GAAG;IAC9B,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,mBAAmB,mBAE7B,wBAAwB,4CAgC1B,CAAA"}
|
|
@@ -77,6 +77,9 @@ var GameDurationControl = function(param) {
|
|
|
77
77
|
required: false,
|
|
78
78
|
min: 1
|
|
79
79
|
})), {
|
|
80
|
+
onWheel: function(event) {
|
|
81
|
+
return event.currentTarget.blur();
|
|
82
|
+
},
|
|
80
83
|
placeholder: t('Design:duration'),
|
|
81
84
|
isInvalid: Boolean(errors.defaultDuration),
|
|
82
85
|
disabled: isLoading
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"SortControl.d.ts","sourceRoot":"","sources":["../../../../src/zone/form/components/SortControl.tsx"],"names":[],"mappings":"AAOA,KAAK,gBAAgB,GAAG;IACtB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,kBAAmB,gBAAgB,4CAoC1D,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.78.
|
|
3
|
+
"version": "0.78.5-dev.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -42,9 +42,10 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.
|
|
45
|
+
"@licklist/core": "0.36.1-dev.0",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
|
-
"@licklist/plugins": "0.
|
|
47
|
+
"@licklist/plugins": "0.36.4-dev.0",
|
|
48
|
+
"clsx": "2.1.1",
|
|
48
49
|
"lodash": "4.17.21",
|
|
49
50
|
"luxon": "3.5.0",
|
|
50
51
|
"react": "17.0.2",
|
|
@@ -52,7 +53,8 @@
|
|
|
52
53
|
"react-hook-form": "7.52.2",
|
|
53
54
|
"react-i18next": "11.8.8",
|
|
54
55
|
"react-intl": "6.6.8",
|
|
55
|
-
"react-query": "3.34.12"
|
|
56
|
+
"react-query": "3.34.12",
|
|
57
|
+
"react-router-dom": "6.30.1"
|
|
56
58
|
},
|
|
57
59
|
"dependencies": {
|
|
58
60
|
"@dnd-kit/core": "3.1.1",
|
|
@@ -61,9 +63,9 @@
|
|
|
61
63
|
"@dnd-kit/utilities": "2.0.0",
|
|
62
64
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
63
65
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
64
|
-
"@licklist/core": "0.
|
|
66
|
+
"@licklist/core": "0.36.0-dev.0",
|
|
65
67
|
"@licklist/eslint-config": "0.5.6",
|
|
66
|
-
"@licklist/plugins": "0.
|
|
68
|
+
"@licklist/plugins": "0.36.2-dev.2",
|
|
67
69
|
"@mantine/core": "6.0.22",
|
|
68
70
|
"@mantine/hooks": "6.0.22",
|
|
69
71
|
"@mdx-js/react": "1.6.22",
|
|
@@ -94,7 +96,6 @@
|
|
|
94
96
|
"@wojtekmaj/react-daterange-picker": "4.1.0",
|
|
95
97
|
"bootstrap": "4.6.0",
|
|
96
98
|
"bootstrap-social": "5.1.1",
|
|
97
|
-
"clsx": "2.1.1",
|
|
98
99
|
"date-fns": "2.29.3",
|
|
99
100
|
"emojibase": "6.1.0",
|
|
100
101
|
"emojibase-data": "7.0.1",
|
|
@@ -121,7 +122,6 @@
|
|
|
121
122
|
"react-overlays": "4.1.1",
|
|
122
123
|
"react-phone-number-input": "3.1.16",
|
|
123
124
|
"react-query": "3.34.12",
|
|
124
|
-
"react-router-dom": "5.2.0",
|
|
125
125
|
"react-select": "5.3.0",
|
|
126
126
|
"react-swipeable": "6.2.0",
|
|
127
127
|
"react-use": "17.3.1",
|
|
@@ -206,8 +206,10 @@
|
|
|
206
206
|
"yarn tsc"
|
|
207
207
|
]
|
|
208
208
|
},
|
|
209
|
+
"packageManager": "yarn@4.4.0",
|
|
209
210
|
"volta": {
|
|
210
211
|
"node": "20.9.0",
|
|
211
212
|
"yarn": "4.4.0"
|
|
212
|
-
}
|
|
213
|
+
},
|
|
214
|
+
"stableVersion": "0.71.4-dev.1"
|
|
213
215
|
}
|
|
@@ -3,6 +3,7 @@ import { Button, Form } from 'react-bootstrap'
|
|
|
3
3
|
import { FormProvider, useForm } from 'react-hook-form'
|
|
4
4
|
import { useTranslation } from 'react-i18next'
|
|
5
5
|
import { Affiliate } from '@licklist/core/dist/DataMapper/Product/AffiliateDataMapper'
|
|
6
|
+
import { useNavigate } from 'react-router-dom'
|
|
6
7
|
import { Dialog, useDialogContext } from '../../modals/dialog'
|
|
7
8
|
import { AffiliateFormValues, GenerateLinkFunction } from '../types'
|
|
8
9
|
import { AffiliateControl } from './AffiliateControl'
|
|
@@ -22,6 +23,7 @@ export const AffiliateForm = ({
|
|
|
22
23
|
}: AffiliateFormProps) => {
|
|
23
24
|
const { t } = useTranslation('Design')
|
|
24
25
|
const { isShownDialog, showDialog, hideDialog } = useDialogContext()
|
|
26
|
+
const navigate = useNavigate()
|
|
25
27
|
|
|
26
28
|
const form = useForm({
|
|
27
29
|
defaultValues,
|
|
@@ -47,8 +49,8 @@ export const AffiliateForm = ({
|
|
|
47
49
|
)
|
|
48
50
|
|
|
49
51
|
const onApproveDialog = useCallback(() => {
|
|
50
|
-
|
|
51
|
-
}, [])
|
|
52
|
+
navigate(-1)
|
|
53
|
+
}, [navigate])
|
|
52
54
|
|
|
53
55
|
const onDeclineDialog = useCallback(() => {
|
|
54
56
|
window.history.pushState(null, '', window.location.pathname)
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { Button } from 'react-bootstrap'
|
|
2
2
|
import { useTranslation } from 'react-i18next'
|
|
3
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService'
|
|
4
3
|
import useUser from '@licklist/plugins/dist/context/user/hooks/useUser'
|
|
5
4
|
import { FaLock } from 'react-icons/fa'
|
|
5
|
+
import { useNavigate } from 'react-router-dom'
|
|
6
6
|
|
|
7
7
|
export const AccessDenied = () => {
|
|
8
8
|
const { t } = useTranslation('App')
|
|
9
9
|
const user = useUser()
|
|
10
|
+
const navigate = useNavigate()
|
|
10
11
|
|
|
11
12
|
const onGoToHomepage = () => {
|
|
12
|
-
|
|
13
|
+
navigate('/')
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
const logOutHandler = () => {
|
|
16
17
|
user.logout()
|
|
17
|
-
|
|
18
|
+
navigate('/')
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
return (
|
package/src/auth/Authorizer.tsx
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ReactNode, useEffect, useState, useCallback } from 'react'
|
|
2
|
-
import { matchPath } from 'react-router-dom'
|
|
2
|
+
import { matchPath, useLocation } from 'react-router-dom'
|
|
3
3
|
import useUser from '@licklist/plugins/dist/context/user/hooks/useUser'
|
|
4
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService'
|
|
5
4
|
import { ROUTES, MATCH_ROUTE_PATTERNS } from '@licklist/core/dist/Config'
|
|
6
5
|
import useAuthApi from '@licklist/plugins/dist/hooks/Api/useAuthApi'
|
|
7
6
|
import useAuth from '@licklist/plugins/dist/context/user/hooks/useAuth'
|
|
7
|
+
import RouteService from '@licklist/plugins/dist/services/Route/RouteService'
|
|
8
8
|
import { BlockLoader } from '../static/loader/BlockLoader'
|
|
9
9
|
|
|
10
10
|
export interface AuthorizerProps {
|
|
@@ -17,6 +17,8 @@ function Authorizer(props: AuthorizerProps) {
|
|
|
17
17
|
const user = useUser()
|
|
18
18
|
const { useProfile } = useAuthApi()
|
|
19
19
|
|
|
20
|
+
const { pathname } = useLocation()
|
|
21
|
+
|
|
20
22
|
// This will re-fetch user's profile
|
|
21
23
|
const profile = useProfile()
|
|
22
24
|
|
|
@@ -26,13 +28,15 @@ function Authorizer(props: AuthorizerProps) {
|
|
|
26
28
|
() =>
|
|
27
29
|
Object.values(MATCH_ROUTE_PATTERNS)
|
|
28
30
|
.map((pathUrlPattern) =>
|
|
29
|
-
matchPath
|
|
31
|
+
matchPath(
|
|
32
|
+
{
|
|
33
|
+
path: pathUrlPattern,
|
|
34
|
+
},
|
|
30
35
|
RouteService.getCurrentPage(),
|
|
31
|
-
pathUrlPattern,
|
|
32
36
|
),
|
|
33
37
|
)
|
|
34
38
|
.filter(Boolean)
|
|
35
|
-
.map((matched) => matched.
|
|
39
|
+
.map((matched) => matched.pathname),
|
|
36
40
|
[],
|
|
37
41
|
)
|
|
38
42
|
|
|
@@ -61,7 +65,7 @@ function Authorizer(props: AuthorizerProps) {
|
|
|
61
65
|
ROUTES.FORGOT_PASSWORD,
|
|
62
66
|
ROUTES.SSO_LOGIN,
|
|
63
67
|
...matchedPathPatternUrls(),
|
|
64
|
-
].includes(
|
|
68
|
+
].includes(pathname)
|
|
65
69
|
) {
|
|
66
70
|
setIsValidated(() => true)
|
|
67
71
|
return
|
|
@@ -80,6 +84,7 @@ function Authorizer(props: AuthorizerProps) {
|
|
|
80
84
|
profile.isError,
|
|
81
85
|
profile.isLoading,
|
|
82
86
|
profile.isFetching,
|
|
87
|
+
pathname,
|
|
83
88
|
])
|
|
84
89
|
|
|
85
90
|
if (profile.isFetching || profile.isLoading || !isValidated)
|
|
@@ -2,16 +2,14 @@ import { useContext, useEffect, useState } from 'react'
|
|
|
2
2
|
import Row from 'react-bootstrap/Row'
|
|
3
3
|
import Col from 'react-bootstrap/Col'
|
|
4
4
|
import { useTranslation } from 'react-i18next'
|
|
5
|
-
import { useLocation } from 'react-router-dom'
|
|
5
|
+
import { useLocation, useNavigate } from 'react-router-dom'
|
|
6
6
|
import { ApiServiceError } from '@licklist/core/dist/Api/ApiService'
|
|
7
7
|
import RequestContext from '@licklist/plugins/dist/context/app/RequestContext'
|
|
8
8
|
import useUserApi from '@licklist/plugins/dist/hooks/Api/useUserApi'
|
|
9
9
|
import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification'
|
|
10
|
-
import RouteService from '@licklist/plugins/dist/services/Route/RouteService'
|
|
11
10
|
import { UserChangePasswordRequest } from '@licklist/plugins/dist/types/Request/UserChangePasswordRequest'
|
|
12
11
|
import { ROUTES } from '@licklist/core/dist/Config'
|
|
13
12
|
import { ChangePasswordFormComponent } from './ChangePasswordFormComponent'
|
|
14
|
-
import { Router } from '../Router'
|
|
15
13
|
import FormCard from '../../static/FormCard'
|
|
16
14
|
import { LoaderIndicator } from '../../static/loader/LoaderIndicator'
|
|
17
15
|
|
|
@@ -22,6 +20,7 @@ function ChangePasswordComponent() {
|
|
|
22
20
|
const { search } = useLocation()
|
|
23
21
|
const email = new URLSearchParams(search).get('email')
|
|
24
22
|
const token = new URLSearchParams(search).get('token')
|
|
23
|
+
const navigate = useNavigate()
|
|
25
24
|
|
|
26
25
|
const [isLoading, setIsLoading] = useState<boolean>(false)
|
|
27
26
|
|
|
@@ -33,7 +32,7 @@ function ChangePasswordComponent() {
|
|
|
33
32
|
message: error.response?.data?.message,
|
|
34
33
|
})
|
|
35
34
|
|
|
36
|
-
|
|
35
|
+
navigate(ROUTES.FORGOT_PASSWORD)
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
const changePassword = async (resetRequest: UserChangePasswordRequest) =>
|
|
@@ -51,39 +50,35 @@ function ChangePasswordComponent() {
|
|
|
51
50
|
message: t('Notification:passwordChangedSuccessfully'),
|
|
52
51
|
})
|
|
53
52
|
|
|
54
|
-
|
|
53
|
+
navigate(ROUTES.LOGIN_PAGE)
|
|
55
54
|
}
|
|
56
55
|
|
|
57
56
|
useEffect(() => {
|
|
58
57
|
if (!email && !token) {
|
|
59
|
-
|
|
58
|
+
navigate(ROUTES.LOGIN_PAGE)
|
|
60
59
|
}
|
|
61
60
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
62
61
|
}, [])
|
|
63
62
|
|
|
64
63
|
return (
|
|
65
|
-
<
|
|
66
|
-
<
|
|
67
|
-
<
|
|
68
|
-
|
|
69
|
-
<h1 className='text-center'>{t('User:resetPasswordTitle')}</h1>
|
|
70
|
-
<h3 className='text-center'>{t('User:forEmail', { email })}</h3>
|
|
64
|
+
<Row className='justify-content-center'>
|
|
65
|
+
<Col xs sm={12} md={7} lg={6} xl={5} className='align-self-center'>
|
|
66
|
+
<h1 className='text-center'>{t('User:resetPasswordTitle')}</h1>
|
|
67
|
+
<h3 className='text-center'>{t('User:forEmail', { email })}</h3>
|
|
71
68
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
69
|
+
<FormCard>
|
|
70
|
+
<ChangePasswordFormComponent
|
|
71
|
+
isLoading={isLoading}
|
|
72
|
+
setIsLoading={setIsLoading}
|
|
73
|
+
onSubmit={handleOnSubmit}
|
|
74
|
+
email={email}
|
|
75
|
+
token={token}
|
|
76
|
+
/>
|
|
80
77
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
</Row>
|
|
86
|
-
</Router>
|
|
78
|
+
<LoaderIndicator isLoaded={!isLoading} />
|
|
79
|
+
</FormCard>
|
|
80
|
+
</Col>
|
|
81
|
+
</Row>
|
|
87
82
|
)
|
|
88
83
|
}
|
|
89
84
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { useTranslation } from 'react-i18next'
|
|
2
2
|
import { Link } from 'react-router-dom'
|
|
3
3
|
import StyledButton from '../../static/StyledButton'
|
|
4
|
-
import { Router } from '../Router'
|
|
5
4
|
|
|
6
5
|
function AuthNavComponent() {
|
|
7
6
|
const { t } = useTranslation('User')
|
|
8
7
|
|
|
9
8
|
return (
|
|
10
|
-
|
|
9
|
+
<>
|
|
11
10
|
{/* TODO fix issue react router types
|
|
12
11
|
@ts-expect-error */}
|
|
13
12
|
<Link to='/login'>
|
|
@@ -26,7 +25,7 @@ function AuthNavComponent() {
|
|
|
26
25
|
{t('register')}
|
|
27
26
|
</StyledButton>
|
|
28
27
|
</Link>
|
|
29
|
-
|
|
28
|
+
</>
|
|
30
29
|
)
|
|
31
30
|
}
|
|
32
31
|
|