@licklist/design 0.78.7-stage.2 → 0.78.7-stage.22

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.
Files changed (38) hide show
  1. package/dist/CustomDatePicker/CustomDatePicker.d.ts +10 -0
  2. package/dist/CustomDatePicker/CustomDatePicker.d.ts.map +1 -0
  3. package/dist/auth/ChangePassword/ChangePasswordComponent.d.ts.map +1 -1
  4. package/dist/auth/ChangePassword/ChangePasswordComponent.js +5 -4
  5. package/dist/auth/Login/LoginComponent.d.ts.map +1 -1
  6. package/dist/auth/Login/LoginComponent.js +12 -7
  7. package/dist/auth/Register/RegisterComponent.d.ts.map +1 -1
  8. package/dist/auth/Register/RegisterComponent.js +5 -4
  9. package/dist/auth/ResetPassword/ResetPasswordComponent.d.ts.map +1 -1
  10. package/dist/auth/ResetPassword/ResetPasswordComponent.js +5 -4
  11. package/dist/auth/Social/SocialCallbackComponent.d.ts.map +1 -1
  12. package/dist/auth/Social/SocialCallbackComponent.js +5 -2
  13. package/dist/auth/Social/SocialFormComponent.d.ts.map +1 -1
  14. package/dist/auth/Social/SocialFormComponent.js +4 -4
  15. package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.d.ts.map +1 -1
  16. package/dist/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.js +5 -4
  17. package/dist/events/edit-event-modal/component/SelectEventProductSet/component/EditEventProductSet.js +1 -1
  18. package/dist/file-upload/FileUpload.d.ts.map +1 -1
  19. package/dist/file-upload/FileUpload.js +4 -4
  20. package/dist/iframe/payment/order-items-table/hooks/useTableData.d.ts.map +1 -1
  21. package/dist/iframe/payment/order-items-table/hooks/useTableData.js +81 -80
  22. package/dist/iframe/payment/payment-page/PaymentPage.js +4 -6
  23. package/dist/iframe/ryft/RyftPaymentForm.d.ts.map +1 -1
  24. package/dist/iframe/ryft/RyftPaymentForm.js +54 -37
  25. package/package.json +5 -5
  26. package/src/CustomDatePicker/CustomDatePicker.tsx +252 -0
  27. package/src/auth/ChangePassword/ChangePasswordComponent.tsx +3 -4
  28. package/src/auth/Login/LoginComponent.tsx +8 -6
  29. package/src/auth/Register/RegisterComponent.tsx +3 -4
  30. package/src/auth/ResetPassword/ResetPasswordComponent.tsx +3 -4
  31. package/src/auth/Social/SocialCallbackComponent.tsx +3 -2
  32. package/src/auth/Social/SocialFormComponent.tsx +2 -3
  33. package/src/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.tsx +3 -4
  34. package/src/file-upload/FileUpload.tsx +2 -3
  35. package/src/iframe/payment/order-items-table/hooks/useTableData.tsx +103 -109
  36. package/src/iframe/payment/payment-page/PaymentPage.tsx +5 -5
  37. package/src/iframe/ryft/RyftPaymentForm.tsx +72 -42
  38. package/yarn.lock +401 -432
@@ -0,0 +1,10 @@
1
+ type CustomDatePickerProps = {
2
+ name: string;
3
+ error?: string;
4
+ label?: string;
5
+ showAge?: boolean;
6
+ required?: boolean;
7
+ };
8
+ export declare function CustomDatePicker({ name, error, showAge, required }: CustomDatePickerProps): import("react/jsx-runtime").JSX.Element;
9
+ export {};
10
+ //# sourceMappingURL=CustomDatePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CustomDatePicker.d.ts","sourceRoot":"","sources":["../../src/CustomDatePicker/CustomDatePicker.tsx"],"names":[],"mappings":"AAMA,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,KAAK,EACL,OAAc,EACd,QAAe,EAChB,EAAE,qBAAqB,2CAwOvB"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChangePasswordComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/ChangePassword/ChangePasswordComponent.tsx"],"names":[],"mappings":"AAeA,iBAAS,uBAAuB,4CAmE/B;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
1
+ {"version":3,"file":"ChangePasswordComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/ChangePassword/ChangePasswordComponent.tsx"],"names":[],"mappings":"AAeA,iBAAS,uBAAuB,4CAkE/B;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
2
3
  import { useContext, useState, useEffect } from 'react';
3
4
  import Row from 'react-bootstrap/Row';
4
5
  import Col from 'react-bootstrap/Col';
@@ -6,7 +7,6 @@ import { useTranslation } from 'react-i18next';
6
7
  import { useLocation, useNavigate } from 'react-router-dom';
7
8
  import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
8
9
  import useUserApi from '@licklist/plugins/dist/hooks/Api/useUserApi';
9
- import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
10
10
  import { ROUTES } from '@licklist/core/dist/Config';
11
11
  import { ChangePasswordFormComponent } from './ChangePasswordFormComponent.js';
12
12
  import FormCard from '../../static/FormCard.js';
@@ -189,7 +189,6 @@ function ChangePasswordComponent() {
189
189
  'App'
190
190
  ]).t;
191
191
  var request = useContext(RequestContext);
192
- var notification = useNotification();
193
192
  var search = useLocation().search;
194
193
  var email = new URLSearchParams(search).get('email');
195
194
  var token = new URLSearchParams(search).get('token');
@@ -198,7 +197,8 @@ function ChangePasswordComponent() {
198
197
  var userApiService = useUserApi(request);
199
198
  var handleError = function(error) {
200
199
  var _error_response_data, _error_response;
201
- notification.danger({
200
+ showAlert({
201
+ type: 'error',
202
202
  title: t('App:error'),
203
203
  message: (_error_response = error.response) === null || _error_response === void 0 ? void 0 : (_error_response_data = _error_response.data) === null || _error_response_data === void 0 ? void 0 : _error_response_data.message
204
204
  });
@@ -234,7 +234,8 @@ function ChangePasswordComponent() {
234
234
  2
235
235
  ];
236
236
  }
237
- notification.success({
237
+ showAlert({
238
+ type: 'success',
238
239
  title: 'Success',
239
240
  message: t('Notification:passwordChangedSuccessfully')
240
241
  });
@@ -1 +1 @@
1
- {"version":3,"file":"LoginComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Login/LoginComponent.tsx"],"names":[],"mappings":"AAqBA,KAAK,mBAAmB,GAAG;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,cAAc,yCAGjB,mBAAmB,4CAkHrB,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
1
+ {"version":3,"file":"LoginComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Login/LoginComponent.tsx"],"names":[],"mappings":"AAqBA,KAAK,mBAAmB,GAAG;IACzB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,QAAA,MAAM,cAAc,yCAGjB,mBAAmB,4CAoHrB,CAAA;AAED,OAAO,EAAE,cAAc,EAAE,CAAA"}
@@ -1,12 +1,12 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
2
  import { useContext, useState, useEffect } from 'react';
3
+ import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
3
4
  import Row from 'react-bootstrap/Row';
4
5
  import Col from 'react-bootstrap/Col';
5
6
  import { useTranslation, Trans } from 'react-i18next';
6
7
  import { useNavigate, Link } from 'react-router-dom';
7
8
  import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
8
9
  import useUserApi from '@licklist/plugins/dist/hooks/Api/useUserApi';
9
- import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
10
10
  import useAuth from '@licklist/plugins/dist/context/user/hooks/useAuth';
11
11
  import useUser from '@licklist/plugins/dist/context/user/hooks/useUser';
12
12
  import useInvite from '@licklist/plugins/dist/context/user/hooks/useInvite';
@@ -194,7 +194,6 @@ var LoginComponent = function(param) {
194
194
  'User'
195
195
  ]).t;
196
196
  var request = useContext(RequestContext);
197
- var notification = useNotification();
198
197
  var auth = useAuth();
199
198
  var user = useUser();
200
199
  var invite = useInvite();
@@ -202,9 +201,12 @@ var LoginComponent = function(param) {
202
201
  var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
203
202
  var userApiService = useUserApi(request);
204
203
  var handleError = function(error) {
205
- notification.danger({
204
+ var _error_response_data, _error_response;
205
+ showAlert({
206
+ type: 'error',
206
207
  title: 'Error',
207
- message: error.message
208
+ message: (error === null || error === void 0 ? void 0 : (_error_response = error.response) === null || _error_response === void 0 ? void 0 : (_error_response_data = _error_response.data) === null || _error_response_data === void 0 ? void 0 : _error_response_data.message) || error.message,
209
+ timeout: 10000
208
210
  });
209
211
  };
210
212
  var storeSecrets = function(secrets) {
@@ -271,9 +273,12 @@ var LoginComponent = function(param) {
271
273
  // Store user profile
272
274
  user.login(profile.data);
273
275
  invite.clearInvitation();
274
- notification.success({
276
+ showAlert({
277
+ type: 'success',
275
278
  title: 'Success',
276
- message: t('Notification:loggedSuccessfully')
279
+ message: t('Notification:loggedSuccessfully'),
280
+ timeout: 10000,
281
+ mount: 'global'
277
282
  });
278
283
  navigate('/', {
279
284
  replace: true
@@ -326,7 +331,7 @@ var LoginComponent = function(param) {
326
331
  "Don't have account? ",
327
332
  /*#__PURE__*/ jsx(Link, {
328
333
  to: "/register",
329
- children: "Sign up"
334
+ children: "Sign uuup"
330
335
  }),
331
336
  "."
332
337
  ]
@@ -1 +1 @@
1
- {"version":3,"file":"RegisterComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Register/RegisterComponent.tsx"],"names":[],"mappings":"AAmBA,KAAK,sBAAsB,GAAG;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,iBAAS,iBAAiB,CAAC,EACzB,eAAuB,GACxB,EAAE,sBAAsB,2CA6GxB;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
1
+ {"version":3,"file":"RegisterComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Register/RegisterComponent.tsx"],"names":[],"mappings":"AAmBA,KAAK,sBAAsB,GAAG;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,iBAAS,iBAAiB,CAAC,EACzB,eAAuB,GACxB,EAAE,sBAAsB,2CA4GxB;AAED,OAAO,EAAE,iBAAiB,EAAE,CAAA"}
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
+ import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
2
3
  import { useContext, useState } from 'react';
3
4
  import { useTranslation, Trans } from 'react-i18next';
4
5
  import { useNavigate, Link } from 'react-router-dom';
5
6
  import { Row, Col } from 'react-bootstrap';
6
7
  import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
7
- import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
8
8
  import useUser from '@licklist/plugins/dist/context/user/hooks/useUser';
9
9
  import useAuth from '@licklist/plugins/dist/context/user/hooks/useAuth';
10
10
  import useInvite from '@licklist/plugins/dist/context/user/hooks/useInvite';
@@ -195,7 +195,6 @@ function RegisterComponent(param) {
195
195
  var _param_showSocialLinks = param.showSocialLinks, showSocialLinks = _param_showSocialLinks === void 0 ? false : _param_showSocialLinks;
196
196
  var t = useTranslation('User').t;
197
197
  var request = useContext(RequestContext);
198
- var notification = useNotification();
199
198
  var auth = useAuth();
200
199
  var user = useUser();
201
200
  var invite = useInvite();
@@ -212,7 +211,8 @@ function RegisterComponent(param) {
212
211
  }
213
212
  };
214
213
  var handleError = function(error) {
215
- notification.danger({
214
+ showAlert({
215
+ type: 'error',
216
216
  title: 'Error',
217
217
  message: error.message
218
218
  });
@@ -278,7 +278,8 @@ function RegisterComponent(param) {
278
278
  // Store user profile
279
279
  user.login(profile.message);
280
280
  invite.clearInvitation();
281
- notification.success({
281
+ showAlert({
282
+ type: 'success',
282
283
  title: 'Success',
283
284
  message: t('Notification:registeredSuccessfully')
284
285
  });
@@ -1 +1 @@
1
- {"version":3,"file":"ResetPasswordComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/ResetPassword/ResetPasswordComponent.tsx"],"names":[],"mappings":"AAeA,iBAAS,sBAAsB,4CAoD9B;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
1
+ {"version":3,"file":"ResetPasswordComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/ResetPassword/ResetPasswordComponent.tsx"],"names":[],"mappings":"AAeA,iBAAS,sBAAsB,4CAmD9B;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAA"}
@@ -1,11 +1,11 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
2
3
  import { useContext, useState } from 'react';
3
4
  import Row from 'react-bootstrap/Row';
4
5
  import Col from 'react-bootstrap/Col';
5
6
  import { useTranslation } from 'react-i18next';
6
7
  import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
7
8
  import useUserApi from '@licklist/plugins/dist/hooks/Api/useUserApi';
8
- import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
9
9
  import { ROUTES } from '@licklist/core/dist/Config';
10
10
  import { useNavigate } from 'react-router-dom';
11
11
  import { ResetPasswordFormComponent } from './ResetPasswordFormComponent.js';
@@ -189,13 +189,13 @@ function ResetPasswordComponent() {
189
189
  'App'
190
190
  ]).t;
191
191
  var request = useContext(RequestContext);
192
- var notification = useNotification();
193
192
  var navigate = useNavigate();
194
193
  var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
195
194
  var userApiService = useUserApi(request);
196
195
  var handleError = function(error) {
197
196
  var _error_response_data, _error_response;
198
- notification.danger({
197
+ showAlert({
198
+ type: 'error',
199
199
  title: t('App:error'),
200
200
  message: (_error_response = error.response) === null || _error_response === void 0 ? void 0 : (_error_response_data = _error_response.data) === null || _error_response_data === void 0 ? void 0 : _error_response_data.message
201
201
  });
@@ -230,7 +230,8 @@ function ResetPasswordComponent() {
230
230
  2
231
231
  ];
232
232
  }
233
- notification.success({
233
+ showAlert({
234
+ type: 'success',
234
235
  title: 'Success',
235
236
  message: t('Notification:passwordResetedSuccessfully')
236
237
  });
@@ -1 +1 @@
1
- {"version":3,"file":"SocialCallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Social/SocialCallbackComponent.tsx"],"names":[],"mappings":"AAqBA,iBAAS,uBAAuB,4CA2G/B;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
1
+ {"version":3,"file":"SocialCallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Social/SocialCallbackComponent.tsx"],"names":[],"mappings":"AAsBA,iBAAS,uBAAuB,4CA2G/B;AAED,OAAO,EAAE,uBAAuB,EAAE,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { jsx, Fragment } from 'react/jsx-runtime';
2
+ import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
2
3
  import { useState, useContext, useEffect } from 'react';
3
4
  import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
4
5
  import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
@@ -203,7 +204,8 @@ function SocialCallbackComponent() {
203
204
  // Handle social callback
204
205
  useEffect(function() {
205
206
  var handleError = function(error) {
206
- notification.danger({
207
+ showAlert({
208
+ type: 'error',
207
209
  title: 'Error',
208
210
  message: error.message
209
211
  });
@@ -252,7 +254,8 @@ function SocialCallbackComponent() {
252
254
  }
253
255
  // Store user profile
254
256
  user.login(profile.message);
255
- notification.success({
257
+ showAlert({
258
+ type: 'success',
256
259
  title: 'Success',
257
260
  message: t('Notification:loggedSuccessfully')
258
261
  });
@@ -1 +1 @@
1
- {"version":3,"file":"SocialFormComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Social/SocialFormComponent.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,QAAQ,CAAA;CACvB;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CA8E3D;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
1
+ {"version":3,"file":"SocialFormComponent.d.ts","sourceRoot":"","sources":["../../../src/auth/Social/SocialFormComponent.tsx"],"names":[],"mappings":"AAaA,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,QAAQ,CAAA;CACvB;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CA6E3D;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAA"}
@@ -1,5 +1,5 @@
1
1
  import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
2
- import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
2
+ import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
3
3
  import RequestContext from '@licklist/plugins/dist/context/app/RequestContext';
4
4
  import useSocialApi from '@licklist/plugins/dist/hooks/Api/useSocialApi';
5
5
  import RouteService from '@licklist/plugins/dist/services/Route/RouteService';
@@ -9,7 +9,7 @@ import { useTranslation } from 'react-i18next';
9
9
  import { LoaderIndicator } from '../../static/loader/LoaderIndicator.js';
10
10
  import SocialButton from '../../static/SocialButton.js';
11
11
 
12
- /* eslint-disable @typescript-eslint/ban-ts-comment */ /* eslint-disable @typescript-eslint/ban-types */ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
12
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
13
13
  try {
14
14
  var info = gen[key](arg);
15
15
  var value = info.value;
@@ -136,13 +136,13 @@ function _ts_generator(thisArg, body) {
136
136
  function SocialFormComponent(props) {
137
137
  var isLoading = props.isLoading, setIsLoading = props.setIsLoading;
138
138
  var request = useContext(RequestContext);
139
- var notification = useNotification();
140
139
  var t = useTranslation([
141
140
  'App'
142
141
  ]).t;
143
142
  var socialService = useSocialApi(request);
144
143
  var handleError = function(error) {
145
- notification.danger({
144
+ showAlert({
145
+ type: 'error',
146
146
  title: 'Error',
147
147
  message: error.message
148
148
  });
@@ -1 +1 @@
1
- {"version":3,"file":"CustomFieldSet.d.ts","sourceRoot":"","sources":["../../../../../src/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAI3E,OAAO,EAGL,YAAY,EACb,MAAM,2BAA2B,CAAA;AAKlC,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAW9E,KAAK,mBAAmB,GAAG,iBAAiB,GAAG;IAC7C,YAAY,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAA;IAClD,IAAI,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAA;IACpC,WAAW,EAAE,gBAAgB,EAAE,CAAA;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,gBAAgB,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,CAAA;IAC1D,gBAAgB,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,CAAA;IAC1D,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,cAAc,2HASxB,mBAAmB,4CAgNrB,CAAA"}
1
+ {"version":3,"file":"CustomFieldSet.d.ts","sourceRoot":"","sources":["../../../../../src/custom-fields/field-set/components/CustomFieldSet/CustomFieldSet.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AAEtF,OAAO,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAA;AAG3E,OAAO,EAGL,YAAY,EACb,MAAM,2BAA2B,CAAA;AAKlC,OAAO,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAW9E,KAAK,mBAAmB,GAAG,iBAAiB,GAAG;IAC7C,YAAY,EAAE,oBAAoB,CAAC,cAAc,CAAC,CAAA;IAClD,IAAI,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAA;IACpC,WAAW,EAAE,gBAAgB,EAAE,CAAA;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,gBAAgB,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,CAAA;IAC1D,gBAAgB,EAAE,oBAAoB,CAAC,kBAAkB,CAAC,CAAA;IAC1D,YAAY,CAAC,EAAE,WAAW,CAAA;CAC3B,CAAA;AAED,eAAO,MAAM,cAAc,2HASxB,mBAAmB,4CA+MrB,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
2
+ import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
2
3
  import { useContext, useState, useEffect, createElement } from 'react';
3
4
  import { useTranslation } from 'react-i18next';
4
5
  import { Form, Button } from 'react-bootstrap';
@@ -7,7 +8,6 @@ import { isEqual } from 'lodash';
7
8
  import { CUSTOM_FIELD_TYPE_INPUT, CUSTOM_FIELD_TYPE_DROPDOWN } from '@licklist/core/dist/DataMapper/Order/CustomFieldDataMapper';
8
9
  import FormErrorService from '@licklist/plugins/dist/services/Form/FormErrorService';
9
10
  import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
10
- import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
11
11
  import { CreateSortableListItem } from '../../../../sortable-list/CreateSortableListItem.js';
12
12
  import { SORTABLE_ID_KEY } from '../../../../sortable-list/SortableList.js';
13
13
  import { SortableTreeItem } from '../../../../sortable-tree/SortableTreeItem.js';
@@ -271,7 +271,6 @@ var CustomFieldSet = function(param) {
271
271
  serverErrors,
272
272
  setError
273
273
  ]);
274
- var notification = useNotification();
275
274
  var _useFieldArray = useFieldArray({
276
275
  control: control,
277
276
  name: CUSTOM_FIELDS
@@ -295,7 +294,8 @@ var CustomFieldSet = function(param) {
295
294
  if (!response) return [
296
295
  2
297
296
  ];
298
- notification.success({
297
+ showAlert({
298
+ type: 'success',
299
299
  title: t('App:success'),
300
300
  message: t('Notification:createSuccessfully', {
301
301
  argument: t('customField')
@@ -333,7 +333,8 @@ var CustomFieldSet = function(param) {
333
333
  ];
334
334
  case 1:
335
335
  _state.sent();
336
- notification.success({
336
+ showAlert({
337
+ type: 'success',
337
338
  title: t('App:success'),
338
339
  message: t('Notification:theRemovedSuccessfully', {
339
340
  argument: t('customField')
@@ -32,7 +32,7 @@ import 'react-bootstrap/Collapse';
32
32
  import '@licklist/plugins/dist/hooks/Media/useImages';
33
33
  import '@licklist/core/dist/DataMapper/Media/ImageDataMapper';
34
34
  import 'react-select';
35
- import '@licklist/plugins/dist/context/app/hooks/useNotification';
35
+ import '@licklist/plugins/dist/context/app/AlertContext';
36
36
  import '../../../../../static/index.js';
37
37
  import '../../../../../tiptap-editor/TipTapEditor.js';
38
38
  import '@licklist/core/dist/DataMapper/Product/ProductDataMapper';
@@ -1 +1 @@
1
- {"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../src/file-upload/FileUpload.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAA;AAQ7G,KAAK,YAAY,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;AAEtE,UAAU,eAAe;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IACtC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAA;IAC3B,YAAY,CAAC,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,EACzB,aAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,KAAwB,EACxB,QAAa,EACb,cAAc,EACd,SAAiB,EACjB,QAAgB,EAChB,QAAgB,GACjB,EAAE,eAAe,2CA4FjB;AAED,UAAU,iBAAiB;IACzB,iBAAiB,EAAE,MAAM,EAAE,CAAA;IAC3B,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,eAAO,MAAM,aAAa,wDAIvB,iBAAiB;0CAsB2B,QAAQ;2BAqB/C,MAAM,GAAG,MAAM,SACZ,MAAM,SACN,MAAM;;;;;CAmBhB,CAAA"}
1
+ {"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../src/file-upload/FileUpload.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,EAAE,MAAM,sDAAsD,CAAA;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAC7F,OAAO,EAAE,kBAAkB,EAAE,MAAM,0EAA0E,CAAA;AAQ7G,KAAK,YAAY,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;AAEtE,UAAU,eAAe;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,aAAa,EAAE,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,CAAA;IACtC,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,iBAAiB,EAAE,MAAM,EAAE,CAAA;IAC3B,YAAY,CAAC,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAC5D,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,UAAU,CAAC,EACzB,aAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,SAAS,EACT,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,KAAwB,EACxB,QAAa,EACb,cAAc,EACd,SAAiB,EACjB,QAAgB,EAChB,QAAgB,GACjB,EAAE,eAAe,2CA4FjB;AAED,UAAU,iBAAiB;IACzB,iBAAiB,EAAE,MAAM,EAAE,CAAA;IAC3B,aAAa,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,eAAO,MAAM,aAAa,wDAIvB,iBAAiB;0CAqB2B,QAAQ;2BAqB/C,MAAM,GAAG,MAAM,SACZ,MAAM,SACN,MAAM;;;;;CAmBhB,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { showAlert } from '@licklist/plugins/dist/context/app/AlertContext';
2
3
  import { useEffect, useState } from 'react';
3
4
  import clsx from 'clsx';
4
- import useNotification from '@licklist/plugins/dist/context/app/hooks/useNotification';
5
5
  import { useTranslation } from 'react-i18next';
6
6
  import { Form } from 'react-bootstrap';
7
7
  import '../static/index.js';
@@ -10,7 +10,7 @@ import { ReactComponent as SvgAddImage } from '../assets/dashboard/addImage.svg.
10
10
  import { LoaderIndicator } from '../static/loader/LoaderIndicator.js';
11
11
  import '@licklist/plugins/dist/hooks/Media/useWindowDimensions';
12
12
 
13
- /* eslint-disable no-return-assign */ /* eslint-disable react-hooks/exhaustive-deps */ function _array_like_to_array(arr, len) {
13
+ function _array_like_to_array(arr, len) {
14
14
  if (len == null || len > arr.length) len = arr.length;
15
15
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
16
16
  return arr2;
@@ -163,7 +163,6 @@ var useFileUpload = function(param) {
163
163
  var allowMultiple = param.allowMultiple, allowedExtensions = param.allowedExtensions, onFileRemove = param.onFileRemove;
164
164
  var _useState = _sliced_to_array(useState(null), 2), files = _useState[0], setFiles = _useState[1];
165
165
  var _useState1 = _sliced_to_array(useState(false), 2), isDragged = _useState1[0], setIsDragged = _useState1[1];
166
- var notification = useNotification();
167
166
  var t = useTranslation('Design').t;
168
167
  var uploadFile = function(file) {
169
168
  var sameFile = files === null || files === void 0 ? void 0 : files.find(function(uploadedFile) {
@@ -190,7 +189,8 @@ var useFileUpload = function(param) {
190
189
  if (isExtensionValid) {
191
190
  uploadFile(file);
192
191
  } else {
193
- notification.danger({
192
+ showAlert({
193
+ type: 'error',
194
194
  title: t('fileNotUploaded', {
195
195
  fileName: file.name
196
196
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/hooks/useTableData.tsx"],"names":[],"mappings":"AAWA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAA;AAQ5D,eAAO,MAAM,2BAA2B;;;;CAIvC,CAAA;AAED,eAAO,MAAM,YAAY,oEAKtB,oBAAoB;;;;;IA+KtB,CAAA"}
1
+ {"version":3,"file":"useTableData.d.ts","sourceRoot":"","sources":["../../../../../src/iframe/payment/order-items-table/hooks/useTableData.tsx"],"names":[],"mappings":"AAYA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,OAAO,EAAE,oBAAoB,EAAe,MAAM,UAAU,CAAA;AAK5D,eAAO,MAAM,2BAA2B;;;;CAIvC,CAAA;AAED,eAAO,MAAM,YAAY,oEAKtB,oBAAoB;;;;;IA2KtB,CAAA"}