@dreamcommerce/aurora 2.18.0 → 2.19.0-10

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.
@@ -24,7 +24,10 @@ var CSS_CLASSES = {
24
24
  imagePickerSelectedFile: "".concat(imagePicker, "__selected-file"),
25
25
  imagePickerSelectedFileNameWrapper: "".concat(imagePicker, "__selected-file-name-wrapper"),
26
26
  imagePickerSelectedFileRemoveWrapper: "".concat(imagePicker, "__selected-file-remove-wrapper"),
27
- imagePickerSupportedFormats: "".concat(imagePicker, "__supported-formats")
27
+ imagePickerSupportedFormats: "".concat(imagePicker, "__supported-formats"),
28
+ imagePickerLoadingWrapper: "".concat(imagePicker, "__loading-wrapper"),
29
+ imagePickerLoadingWrapperContent: "".concat(imagePicker, "__loading-wrapper-content"),
30
+ imagePickerLoadingWrapperContentText: "".concat(imagePicker, "__loading-wrapper-content-text")
28
31
  };
29
32
 
30
33
  exports.default = CSS_CLASSES;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
6
  var classnames = require('classnames');
7
+ var main_module = require('../../css/loader/main.module.less.js');
7
8
  var css_classes = require('./css_classes.js');
8
9
  var constants = require('./constants.js');
9
- var main_module = require('../../css/loader/main.module.less.js');
10
10
 
11
11
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
12
 
@@ -14,6 +14,7 @@ var use_modals_context = require('../modal_new/hooks/use_modals_context.js');
14
14
  var modal = require('../modal_new/components/modal/modal.js');
15
15
  var http_requester_contants = require('../../../../star_core/build/esm/packages/star_core/src/features/http_requester/http_requester_contants.js');
16
16
  var use_http_api = require('../../hooks/use_http_api.js');
17
+ var index$1 = require('../loader/index.js');
17
18
 
18
19
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
19
20
 
@@ -67,6 +68,11 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
67
68
  imageEditorResult = _useState8[0],
68
69
  setImageEditorResult = _useState8[1];
69
70
 
71
+ var _useState9 = React.useState(false),
72
+ _useState10 = _rollupPluginBabelHelpers.slicedToArray(_useState9, 2),
73
+ isLoading = _useState10[0],
74
+ setIsLoading = _useState10[1];
75
+
70
76
  var handleControlChange = /*#__PURE__*/function () {
71
77
  var _ref2 = _rollupPluginBabelHelpers.asyncToGenerator( /*#__PURE__*/_rollupPluginBabelHelpers.regeneratorRuntime().mark(function _callee(file) {
72
78
  var fileList, fileAsDataUrl, _httpApi$fetch, response, cancelRequest, responseObject;
@@ -94,16 +100,19 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
94
100
  pendingRequestRef.current = undefined;
95
101
  }
96
102
 
103
+ setIsLoading(true);
97
104
  _httpApi$fetch = httpApi.fetch({
98
105
  url: url,
99
106
  method: http_requester_contants.REQUEST_TYPES.post,
100
107
  data: fileList[0]
101
108
  }), response = _httpApi$fetch.response, cancelRequest = _httpApi$fetch.cancelRequest;
102
109
  pendingRequestRef.current = cancelRequest;
103
- _context.next = 10;
104
- return response;
110
+ _context.next = 11;
111
+ return response.finally(function () {
112
+ return setIsLoading(false);
113
+ });
105
114
 
106
- case 10:
115
+ case 11:
107
116
  responseObject = _context.sent;
108
117
  onUploaded === null || onUploaded === void 0 || onUploaded({
109
118
  fileList: fileList,
@@ -111,7 +120,7 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
111
120
  imageId: responseObject.data.imageId
112
121
  });
113
122
 
114
- case 12:
123
+ case 13:
115
124
  case "end":
116
125
  return _context.stop();
117
126
  }
@@ -164,17 +173,19 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
164
173
 
165
174
  return (_pendingRequestRef$cu = pendingRequestRef.current) === null || _pendingRequestRef$cu === void 0 ? void 0 : _pendingRequestRef$cu.call(pendingRequestRef);
166
175
  };
167
- }, []);
176
+ }, [image]);
168
177
  React.useEffect(function () {
169
178
  var src = image !== null && image !== void 0 ? image : initialImage;
170
179
  setImageEditorSrc(src !== null && src !== void 0 ? src : '');
171
- }, [image, initialImage]);
180
+ }, [image, initialImage, isLoading]);
172
181
 
173
182
  var renderImageEditor = function renderImageEditor(defaultProps) {
174
183
  return ImageEditor ? /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(ImageEditor, _rollupPluginBabelHelpers.objectSpread2({}, defaultProps))) : null;
175
184
  };
176
185
 
177
- return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement(index['default'], {
186
+ return /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
187
+ className: main_module['default'][css_classes['default'].imagePickerLoadingWrapper]
188
+ }, /*#__PURE__*/React__default['default'].createElement(index['default'], {
178
189
  id: id,
179
190
  name: name,
180
191
  onChange: handleControlChange,
@@ -191,7 +202,11 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
191
202
  type: "button"
192
203
  }, /*#__PURE__*/React__default['default'].createElement(icon_image['default'], null), t('Edit')),
193
204
  editedImageResult: imageEditorResult
194
- }), ImageEditor && /*#__PURE__*/React__default['default'].createElement(modal.ModalNew, {
205
+ }), isLoading && /*#__PURE__*/React__default['default'].createElement("div", {
206
+ className: main_module['default'][css_classes['default'].imagePickerLoadingWrapperContent]
207
+ }, /*#__PURE__*/React__default['default'].createElement(index$1['default'], null), /*#__PURE__*/React__default['default'].createElement("span", {
208
+ className: main_module['default'][css_classes['default'].imagePickerLoadingWrapperContentText]
209
+ }, t('Transfering file...')))), ImageEditor && /*#__PURE__*/React__default['default'].createElement(modal.ModalNew, {
195
210
  name: modalId,
196
211
  header: t('Edit image'),
197
212
  minWidth: "80vw"
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,6BAA6B,iEAAqE;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,6BAA6B,iEAAqE;AAClG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var styleInject_es = require('../../../../../external/style-inject/dist/style-inject.es.js');
6
6
 
7
- var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_image-picker__wrapper__2RK3f {\n position: relative;\n border: 1px dashed #abb4cd;\n border-radius: 2px;\n}\n.main-module_image-picker__wrapper-error__kCZeA {\n border-color: #e60c54;\n}\n.main-module_image-picker__wrapper-error__kCZeA:hover {\n border-color: #e60c54;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc {\n position: relative;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc .main-module_image-picker__label__1i_Fq {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 46px;\n left: 0;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc .main-module_image-picker__description__1v13N {\n display: none;\n}\n.main-module_image-picker__wrapper__2RK3f:hover {\n border-color: #135cc8;\n}\n.main-module_image-picker__wrapper__2RK3f:hover .main-module_image-picker__upload-icon__3sMvN {\n fill: #3c83ec;\n}\n.main-module_image-picker__wrapper-top-buttons__241RY {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n top: 1rem;\n right: 1rem;\n z-index: 10;\n}\n.main-module_image-picker__edit-button__3O-iq {\n display: flex;\n align-items: center;\n gap: 4px;\n background-color: #ffffff;\n background-image: none;\n border: 0;\n border-radius: 2px;\n padding: 0.5rem;\n font-size: 12px;\n color: #3c83ec;\n cursor: pointer;\n}\n.main-module_image-picker__label__1i_Fq {\n cursor: pointer;\n}\n.main-module_image-picker__input__3Wu2I {\n display: none;\n}\n.main-module_image-picker__description__1v13N {\n padding: 2rem 0;\n text-align: center;\n color: #3c83ec;\n}\n.main-module_image-picker__supported-formats__1_R_X {\n font-size: 12px;\n color: #59687e;\n}\n.main-module_image-picker__upload-icon__3sMvN {\n width: 1rem;\n height: auto;\n margin-bottom: 1rem;\n fill: #abb4cd;\n}\n.main-module_image-picker__delete-button__21_kT {\n display: flex;\n align-items: center;\n color: #3c83ec;\n cursor: pointer;\n background: transparent;\n}\n.main-module_image-picker__delete-button__21_kT:hover .main-module_image-picker__delete-label__3v2ot {\n text-decoration: underline;\n}\n.main-module_image-picker__delete-button__21_kT .main-module_image-picker__delete-label__3v2ot {\n color: #3c83ec;\n}\n.main-module_image-picker__delete-button__21_kT svg {\n fill: #3c83ec;\n}\n.main-module_image-picker__wrong-file-format-icon__X-NL0 {\n margin: 2rem 0 0.5rem;\n fill: #ffffff;\n}\n.main-module_image-picker__delete-icon__30pkO {\n fill: #3c83ec;\n margin-right: 0.5rem;\n}\n.main-module_image-picker__selected-file__3bRqa {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 46px;\n}\n.main-module_image-picker__selected-file-name-wrapper__37MKd,\n.main-module_image-picker__selected-file-remove-wrapper__2v4W2 {\n padding: 1rem;\n}\n.main-module_image-picker__selected-file-remove-wrapper__2v4W2 {\n display: flex;\n justify-content: flex-end;\n}\n.main-module_image-picker__selected-file-name-wrapper__37MKd {\n color: #59687e;\n}\n.main-module_image-picker__image-preview-wrapper__1jPXU {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.main-module_image-picker__image-preview-wrapper__1jPXU svg {\n fill: transparent;\n}\n.main-module_image-picker__image-preview__12pRu {\n max-width: 100%;\n max-height: 100%;\n}\n.main-module_image-picker__error-text__rXAvw {\n margin-top: 0.5rem;\n color: #e60c54;\n}\n";
7
+ var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_image-picker__wrapper__2RK3f {\n position: relative;\n border: 1px dashed #abb4cd;\n border-radius: 2px;\n}\n.main-module_image-picker__wrapper-error__kCZeA {\n border-color: #e60c54;\n}\n.main-module_image-picker__wrapper-error__kCZeA:hover {\n border-color: #e60c54;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc {\n position: relative;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc .main-module_image-picker__label__1i_Fq {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 46px;\n left: 0;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc .main-module_image-picker__description__1v13N {\n display: none;\n}\n.main-module_image-picker__wrapper__2RK3f:hover {\n border-color: #135cc8;\n}\n.main-module_image-picker__wrapper__2RK3f:hover .main-module_image-picker__upload-icon__3sMvN {\n fill: #3c83ec;\n}\n.main-module_image-picker__wrapper-top-buttons__241RY {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n top: 1rem;\n right: 1rem;\n z-index: 10;\n}\n.main-module_image-picker__edit-button__3O-iq {\n display: flex;\n align-items: center;\n gap: 4px;\n background-color: #ffffff;\n background-image: none;\n border: 0;\n border-radius: 2px;\n padding: 0.5rem;\n font-size: 12px;\n color: #3c83ec;\n cursor: pointer;\n}\n.main-module_image-picker__label__1i_Fq {\n cursor: pointer;\n}\n.main-module_image-picker__input__3Wu2I {\n display: none;\n}\n.main-module_image-picker__description__1v13N {\n padding: 2rem 0;\n text-align: center;\n color: #3c83ec;\n}\n.main-module_image-picker__supported-formats__1_R_X {\n font-size: 12px;\n color: #59687e;\n}\n.main-module_image-picker__upload-icon__3sMvN {\n width: 1rem;\n height: auto;\n margin-bottom: 1rem;\n fill: #abb4cd;\n}\n.main-module_image-picker__delete-button__21_kT {\n display: flex;\n align-items: center;\n color: #3c83ec;\n cursor: pointer;\n background: transparent;\n}\n.main-module_image-picker__delete-button__21_kT:hover .main-module_image-picker__delete-label__3v2ot {\n text-decoration: underline;\n}\n.main-module_image-picker__delete-button__21_kT .main-module_image-picker__delete-label__3v2ot {\n color: #3c83ec;\n}\n.main-module_image-picker__delete-button__21_kT svg {\n fill: #3c83ec;\n}\n.main-module_image-picker__wrong-file-format-icon__X-NL0 {\n margin: 2rem 0 0.5rem;\n fill: #ffffff;\n}\n.main-module_image-picker__delete-icon__30pkO {\n fill: #3c83ec;\n margin-right: 0.5rem;\n}\n.main-module_image-picker__selected-file__3bRqa {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 46px;\n}\n.main-module_image-picker__selected-file-name-wrapper__37MKd,\n.main-module_image-picker__selected-file-remove-wrapper__2v4W2 {\n padding: 1rem;\n}\n.main-module_image-picker__selected-file-remove-wrapper__2v4W2 {\n display: flex;\n justify-content: flex-end;\n}\n.main-module_image-picker__selected-file-name-wrapper__37MKd {\n color: #59687e;\n}\n.main-module_image-picker__image-preview-wrapper__1jPXU {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.main-module_image-picker__image-preview-wrapper__1jPXU svg {\n fill: transparent;\n}\n.main-module_image-picker__image-preview__12pRu {\n max-width: 100%;\n max-height: 100%;\n}\n.main-module_image-picker__error-text__rXAvw {\n margin-top: 0.5rem;\n color: #e60c54;\n}\n.main-module_image-picker__loading-wrapper__gBtlh {\n position: relative;\n}\n.main-module_image-picker__loading-wrapper-content__21jzx {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n background-color: #ffffff;\n width: 100%;\n height: 100%;\n border-radius: 2px;\n}\n.main-module_image-picker__loading-wrapper-content-text__2-Fup {\n color: #5c657e;\n margin-top: 0.5rem;\n}\n";
8
8
  var styles = {
9
9
  "image-picker__wrapper": "main-module_image-picker__wrapper__2RK3f",
10
10
  "image-picker__wrapper-error": "main-module_image-picker__wrapper-error__kCZeA",
@@ -25,7 +25,10 @@ var styles = {
25
25
  "image-picker__selected-file-remove-wrapper": "main-module_image-picker__selected-file-remove-wrapper__2v4W2",
26
26
  "image-picker__image-preview-wrapper": "main-module_image-picker__image-preview-wrapper__1jPXU",
27
27
  "image-picker__image-preview": "main-module_image-picker__image-preview__12pRu",
28
- "image-picker__error-text": "main-module_image-picker__error-text__rXAvw"
28
+ "image-picker__error-text": "main-module_image-picker__error-text__rXAvw",
29
+ "image-picker__loading-wrapper": "main-module_image-picker__loading-wrapper__gBtlh",
30
+ "image-picker__loading-wrapper-content": "main-module_image-picker__loading-wrapper-content__21jzx",
31
+ "image-picker__loading-wrapper-content-text": "main-module_image-picker__loading-wrapper-content-text__2-Fup"
29
32
  };
30
33
  styleInject_es['default'](css_248z);
31
34
 
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,6BAA6B,8DAAkE;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,6BAA6B,8DAAkE;AAC/F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -44,6 +44,7 @@ var index$g = require('./components/controls/hoc/control_textarea/index.js');
44
44
  var index$F = require('./components/image_picker/index.js');
45
45
  var use_modals_context = require('./components/modal_new/hooks/use_modals_context.js');
46
46
  var modal = require('./components/modal_new/components/modal/modal.js');
47
+ var index$L = require('./components/loader/index.js');
47
48
  var index$P = require('./components/xhr_image_picker/index.js');
48
49
  var index$p = require('./components/controls/hoc/control_xhr_image_picker/index.js');
49
50
  var index$z = require('./components/table/index.js');
@@ -63,7 +64,6 @@ var icon_mobile = require('./assets/icon_mobile.js');
63
64
  var icon_tablet = require('./assets/icon_tablet.js');
64
65
  var icon_warning = require('./assets/icon_warning.js');
65
66
  var index$N = require('./components/link/index.js');
66
- var index$L = require('./components/loader/index.js');
67
67
  var index$s = require('./components/modal/index.js');
68
68
  var modal_context = require('./components/modal/context/modal_context.js');
69
69
  var modal_provider = require('./components/modal/hoc/modal_provider.js');
@@ -139,6 +139,7 @@ exports.ControlTextarea = index$g['default'];
139
139
  exports.ImagePicker = index$F['default'];
140
140
  exports.useModalsContext = use_modals_context.useModalsContext;
141
141
  exports.ModalNew = modal.ModalNew;
142
+ exports.Loader = index$L['default'];
142
143
  exports.XhrImagePicker = index$P['default'];
143
144
  exports.ControlXhrImagePicker = index$p['default'];
144
145
  exports.Table = index$z['default'];
@@ -159,7 +160,6 @@ exports.IconMobile = icon_mobile['default'];
159
160
  exports.IconTablet = icon_tablet['default'];
160
161
  exports.IconWarning = icon_warning['default'];
161
162
  exports.Link = index$N['default'];
162
- exports.Loader = index$L['default'];
163
163
  exports.Modal = index$s['default'];
164
164
  exports.ModalContext = modal_context.ModalContext;
165
165
  exports.ModalProvider = modal_provider['default'];
@@ -20,5 +20,8 @@ declare const _default: {
20
20
  imagePickerSelectedFileNameWrapper: string;
21
21
  imagePickerSelectedFileRemoveWrapper: string;
22
22
  imagePickerSupportedFormats: string;
23
+ imagePickerLoadingWrapper: string;
24
+ imagePickerLoadingWrapperContent: string;
25
+ imagePickerLoadingWrapperContentText: string;
23
26
  };
24
27
  export default _default;
@@ -20,7 +20,10 @@ var CSS_CLASSES = {
20
20
  imagePickerSelectedFile: "".concat(imagePicker, "__selected-file"),
21
21
  imagePickerSelectedFileNameWrapper: "".concat(imagePicker, "__selected-file-name-wrapper"),
22
22
  imagePickerSelectedFileRemoveWrapper: "".concat(imagePicker, "__selected-file-remove-wrapper"),
23
- imagePickerSupportedFormats: "".concat(imagePicker, "__supported-formats")
23
+ imagePickerSupportedFormats: "".concat(imagePicker, "__supported-formats"),
24
+ imagePickerLoadingWrapper: "".concat(imagePicker, "__loading-wrapper"),
25
+ imagePickerLoadingWrapperContent: "".concat(imagePicker, "__loading-wrapper-content"),
26
+ imagePickerLoadingWrapperContentText: "".concat(imagePicker, "__loading-wrapper-content-text")
24
27
  };
25
28
 
26
29
  export default CSS_CLASSES;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
2
  import classnames from 'classnames';
3
+ import cssClasses from '../../css/loader/main.module.less.js';
3
4
  import { cssLoader } from './css_classes.js';
4
5
  import { LOADER_SIZE_CSS_CLASS_MAP, LOADER_SIZE } from './constants.js';
5
- import cssClasses from '../../css/loader/main.module.less.js';
6
6
 
7
7
  var Loader = function Loader(_ref) {
8
8
  var size = _ref.size,
@@ -10,6 +10,7 @@ import { useModalsContext } from '../modal_new/hooks/use_modals_context.js';
10
10
  import { ModalNew } from '../modal_new/components/modal/modal.js';
11
11
  import { REQUEST_TYPES } from '../../../../star_core/build/esm/packages/star_core/src/features/http_requester/http_requester_contants.js';
12
12
  import { useHttpApi } from '../../hooks/use_http_api.js';
13
+ import Loader from '../loader/index.js';
13
14
 
14
15
  var XhrImagePicker = function XhrImagePicker(_ref) {
15
16
  var id = _ref.id,
@@ -59,6 +60,11 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
59
60
  imageEditorResult = _useState8[0],
60
61
  setImageEditorResult = _useState8[1];
61
62
 
63
+ var _useState9 = useState(false),
64
+ _useState10 = _slicedToArray(_useState9, 2),
65
+ isLoading = _useState10[0],
66
+ setIsLoading = _useState10[1];
67
+
62
68
  var handleControlChange = /*#__PURE__*/function () {
63
69
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(file) {
64
70
  var fileList, fileAsDataUrl, _httpApi$fetch, response, cancelRequest, responseObject;
@@ -86,16 +92,19 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
86
92
  pendingRequestRef.current = undefined;
87
93
  }
88
94
 
95
+ setIsLoading(true);
89
96
  _httpApi$fetch = httpApi.fetch({
90
97
  url: url,
91
98
  method: REQUEST_TYPES.post,
92
99
  data: fileList[0]
93
100
  }), response = _httpApi$fetch.response, cancelRequest = _httpApi$fetch.cancelRequest;
94
101
  pendingRequestRef.current = cancelRequest;
95
- _context.next = 10;
96
- return response;
102
+ _context.next = 11;
103
+ return response.finally(function () {
104
+ return setIsLoading(false);
105
+ });
97
106
 
98
- case 10:
107
+ case 11:
99
108
  responseObject = _context.sent;
100
109
  onUploaded === null || onUploaded === void 0 || onUploaded({
101
110
  fileList: fileList,
@@ -103,7 +112,7 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
103
112
  imageId: responseObject.data.imageId
104
113
  });
105
114
 
106
- case 12:
115
+ case 13:
107
116
  case "end":
108
117
  return _context.stop();
109
118
  }
@@ -156,17 +165,19 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
156
165
 
157
166
  return (_pendingRequestRef$cu = pendingRequestRef.current) === null || _pendingRequestRef$cu === void 0 ? void 0 : _pendingRequestRef$cu.call(pendingRequestRef);
158
167
  };
159
- }, []);
168
+ }, [image]);
160
169
  useEffect(function () {
161
170
  var src = image !== null && image !== void 0 ? image : initialImage;
162
171
  setImageEditorSrc(src !== null && src !== void 0 ? src : '');
163
- }, [image, initialImage]);
172
+ }, [image, initialImage, isLoading]);
164
173
 
165
174
  var renderImageEditor = function renderImageEditor(defaultProps) {
166
175
  return ImageEditor ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(ImageEditor, _objectSpread2({}, defaultProps))) : null;
167
176
  };
168
177
 
169
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ImagePicker, {
178
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
179
+ className: styles[CSS_CLASSES.imagePickerLoadingWrapper]
180
+ }, /*#__PURE__*/React.createElement(ImagePicker, {
170
181
  id: id,
171
182
  name: name,
172
183
  onChange: handleControlChange,
@@ -183,7 +194,11 @@ var XhrImagePicker = function XhrImagePicker(_ref) {
183
194
  type: "button"
184
195
  }, /*#__PURE__*/React.createElement(IconImage, null), t('Edit')),
185
196
  editedImageResult: imageEditorResult
186
- }), ImageEditor && /*#__PURE__*/React.createElement(ModalNew, {
197
+ }), isLoading && /*#__PURE__*/React.createElement("div", {
198
+ className: styles[CSS_CLASSES.imagePickerLoadingWrapperContent]
199
+ }, /*#__PURE__*/React.createElement(Loader, null), /*#__PURE__*/React.createElement("span", {
200
+ className: styles[CSS_CLASSES.imagePickerLoadingWrapperContentText]
201
+ }, t('Transfering file...')))), ImageEditor && /*#__PURE__*/React.createElement(ModalNew, {
187
202
  name: modalId,
188
203
  header: t('Edit image'),
189
204
  minWidth: "80vw"
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA,+BAA+B,iEAAqE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA,+BAA+B,iEAAqE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,6 +1,6 @@
1
1
  import styleInject from '../../../../../external/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_image-picker__wrapper__2RK3f {\n position: relative;\n border: 1px dashed #abb4cd;\n border-radius: 2px;\n}\n.main-module_image-picker__wrapper-error__kCZeA {\n border-color: #e60c54;\n}\n.main-module_image-picker__wrapper-error__kCZeA:hover {\n border-color: #e60c54;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc {\n position: relative;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc .main-module_image-picker__label__1i_Fq {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 46px;\n left: 0;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc .main-module_image-picker__description__1v13N {\n display: none;\n}\n.main-module_image-picker__wrapper__2RK3f:hover {\n border-color: #135cc8;\n}\n.main-module_image-picker__wrapper__2RK3f:hover .main-module_image-picker__upload-icon__3sMvN {\n fill: #3c83ec;\n}\n.main-module_image-picker__wrapper-top-buttons__241RY {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n top: 1rem;\n right: 1rem;\n z-index: 10;\n}\n.main-module_image-picker__edit-button__3O-iq {\n display: flex;\n align-items: center;\n gap: 4px;\n background-color: #ffffff;\n background-image: none;\n border: 0;\n border-radius: 2px;\n padding: 0.5rem;\n font-size: 12px;\n color: #3c83ec;\n cursor: pointer;\n}\n.main-module_image-picker__label__1i_Fq {\n cursor: pointer;\n}\n.main-module_image-picker__input__3Wu2I {\n display: none;\n}\n.main-module_image-picker__description__1v13N {\n padding: 2rem 0;\n text-align: center;\n color: #3c83ec;\n}\n.main-module_image-picker__supported-formats__1_R_X {\n font-size: 12px;\n color: #59687e;\n}\n.main-module_image-picker__upload-icon__3sMvN {\n width: 1rem;\n height: auto;\n margin-bottom: 1rem;\n fill: #abb4cd;\n}\n.main-module_image-picker__delete-button__21_kT {\n display: flex;\n align-items: center;\n color: #3c83ec;\n cursor: pointer;\n background: transparent;\n}\n.main-module_image-picker__delete-button__21_kT:hover .main-module_image-picker__delete-label__3v2ot {\n text-decoration: underline;\n}\n.main-module_image-picker__delete-button__21_kT .main-module_image-picker__delete-label__3v2ot {\n color: #3c83ec;\n}\n.main-module_image-picker__delete-button__21_kT svg {\n fill: #3c83ec;\n}\n.main-module_image-picker__wrong-file-format-icon__X-NL0 {\n margin: 2rem 0 0.5rem;\n fill: #ffffff;\n}\n.main-module_image-picker__delete-icon__30pkO {\n fill: #3c83ec;\n margin-right: 0.5rem;\n}\n.main-module_image-picker__selected-file__3bRqa {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 46px;\n}\n.main-module_image-picker__selected-file-name-wrapper__37MKd,\n.main-module_image-picker__selected-file-remove-wrapper__2v4W2 {\n padding: 1rem;\n}\n.main-module_image-picker__selected-file-remove-wrapper__2v4W2 {\n display: flex;\n justify-content: flex-end;\n}\n.main-module_image-picker__selected-file-name-wrapper__37MKd {\n color: #59687e;\n}\n.main-module_image-picker__image-preview-wrapper__1jPXU {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.main-module_image-picker__image-preview-wrapper__1jPXU svg {\n fill: transparent;\n}\n.main-module_image-picker__image-preview__12pRu {\n max-width: 100%;\n max-height: 100%;\n}\n.main-module_image-picker__error-text__rXAvw {\n margin-top: 0.5rem;\n color: #e60c54;\n}\n";
3
+ var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_image-picker__wrapper__2RK3f {\n position: relative;\n border: 1px dashed #abb4cd;\n border-radius: 2px;\n}\n.main-module_image-picker__wrapper-error__kCZeA {\n border-color: #e60c54;\n}\n.main-module_image-picker__wrapper-error__kCZeA:hover {\n border-color: #e60c54;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc {\n position: relative;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc .main-module_image-picker__label__1i_Fq {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 46px;\n left: 0;\n}\n.main-module_image-picker__wrapper-has-file__2zmRc .main-module_image-picker__description__1v13N {\n display: none;\n}\n.main-module_image-picker__wrapper__2RK3f:hover {\n border-color: #135cc8;\n}\n.main-module_image-picker__wrapper__2RK3f:hover .main-module_image-picker__upload-icon__3sMvN {\n fill: #3c83ec;\n}\n.main-module_image-picker__wrapper-top-buttons__241RY {\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n top: 1rem;\n right: 1rem;\n z-index: 10;\n}\n.main-module_image-picker__edit-button__3O-iq {\n display: flex;\n align-items: center;\n gap: 4px;\n background-color: #ffffff;\n background-image: none;\n border: 0;\n border-radius: 2px;\n padding: 0.5rem;\n font-size: 12px;\n color: #3c83ec;\n cursor: pointer;\n}\n.main-module_image-picker__label__1i_Fq {\n cursor: pointer;\n}\n.main-module_image-picker__input__3Wu2I {\n display: none;\n}\n.main-module_image-picker__description__1v13N {\n padding: 2rem 0;\n text-align: center;\n color: #3c83ec;\n}\n.main-module_image-picker__supported-formats__1_R_X {\n font-size: 12px;\n color: #59687e;\n}\n.main-module_image-picker__upload-icon__3sMvN {\n width: 1rem;\n height: auto;\n margin-bottom: 1rem;\n fill: #abb4cd;\n}\n.main-module_image-picker__delete-button__21_kT {\n display: flex;\n align-items: center;\n color: #3c83ec;\n cursor: pointer;\n background: transparent;\n}\n.main-module_image-picker__delete-button__21_kT:hover .main-module_image-picker__delete-label__3v2ot {\n text-decoration: underline;\n}\n.main-module_image-picker__delete-button__21_kT .main-module_image-picker__delete-label__3v2ot {\n color: #3c83ec;\n}\n.main-module_image-picker__delete-button__21_kT svg {\n fill: #3c83ec;\n}\n.main-module_image-picker__wrong-file-format-icon__X-NL0 {\n margin: 2rem 0 0.5rem;\n fill: #ffffff;\n}\n.main-module_image-picker__delete-icon__30pkO {\n fill: #3c83ec;\n margin-right: 0.5rem;\n}\n.main-module_image-picker__selected-file__3bRqa {\n display: flex;\n align-items: center;\n justify-content: space-between;\n height: 46px;\n}\n.main-module_image-picker__selected-file-name-wrapper__37MKd,\n.main-module_image-picker__selected-file-remove-wrapper__2v4W2 {\n padding: 1rem;\n}\n.main-module_image-picker__selected-file-remove-wrapper__2v4W2 {\n display: flex;\n justify-content: flex-end;\n}\n.main-module_image-picker__selected-file-name-wrapper__37MKd {\n color: #59687e;\n}\n.main-module_image-picker__image-preview-wrapper__1jPXU {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.main-module_image-picker__image-preview-wrapper__1jPXU svg {\n fill: transparent;\n}\n.main-module_image-picker__image-preview__12pRu {\n max-width: 100%;\n max-height: 100%;\n}\n.main-module_image-picker__error-text__rXAvw {\n margin-top: 0.5rem;\n color: #e60c54;\n}\n.main-module_image-picker__loading-wrapper__gBtlh {\n position: relative;\n}\n.main-module_image-picker__loading-wrapper-content__21jzx {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n background-color: #ffffff;\n width: 100%;\n height: 100%;\n border-radius: 2px;\n}\n.main-module_image-picker__loading-wrapper-content-text__2-Fup {\n color: #5c657e;\n margin-top: 0.5rem;\n}\n";
4
4
  var styles = {
5
5
  "image-picker__wrapper": "main-module_image-picker__wrapper__2RK3f",
6
6
  "image-picker__wrapper-error": "main-module_image-picker__wrapper-error__kCZeA",
@@ -21,7 +21,10 @@ var styles = {
21
21
  "image-picker__selected-file-remove-wrapper": "main-module_image-picker__selected-file-remove-wrapper__2v4W2",
22
22
  "image-picker__image-preview-wrapper": "main-module_image-picker__image-preview-wrapper__1jPXU",
23
23
  "image-picker__image-preview": "main-module_image-picker__image-preview__12pRu",
24
- "image-picker__error-text": "main-module_image-picker__error-text__rXAvw"
24
+ "image-picker__error-text": "main-module_image-picker__error-text__rXAvw",
25
+ "image-picker__loading-wrapper": "main-module_image-picker__loading-wrapper__gBtlh",
26
+ "image-picker__loading-wrapper-content": "main-module_image-picker__loading-wrapper-content__21jzx",
27
+ "image-picker__loading-wrapper-content-text": "main-module_image-picker__loading-wrapper-content-text__2-Fup"
25
28
  };
26
29
  styleInject(css_248z);
27
30
 
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,wBAAwB,8DAAkE;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,wBAAwB,8DAAkE;AAC1F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -40,6 +40,7 @@ export { default as ControlTextarea } from './components/controls/hoc/control_te
40
40
  export { default as ImagePicker } from './components/image_picker/index.js';
41
41
  export { useModalsContext } from './components/modal_new/hooks/use_modals_context.js';
42
42
  export { ModalNew } from './components/modal_new/components/modal/modal.js';
43
+ export { default as Loader } from './components/loader/index.js';
43
44
  export { default as XhrImagePicker } from './components/xhr_image_picker/index.js';
44
45
  export { default as ControlXhrImagePicker } from './components/controls/hoc/control_xhr_image_picker/index.js';
45
46
  export { default as Table } from './components/table/index.js';
@@ -59,7 +60,6 @@ export { default as IconMobile } from './assets/icon_mobile.js';
59
60
  export { default as IconTablet } from './assets/icon_tablet.js';
60
61
  export { default as IconWarning } from './assets/icon_warning.js';
61
62
  export { default as Link } from './components/link/index.js';
62
- export { default as Loader } from './components/loader/index.js';
63
63
  export { default as Modal } from './components/modal/index.js';
64
64
  export { ModalContext } from './components/modal/context/modal_context.js';
65
65
  export { default as ModalProvider } from './components/modal/hoc/modal_provider.js';
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@dreamcommerce/aurora",
3
3
  "packageManager": "yarn@3.2.0",
4
4
  "sideEffects": false,
5
- "version": "2.18.0",
5
+ "version": "2.19.0-10",
6
6
  "description": "aurora",
7
7
  "author": "k0ssak",
8
8
  "license": "MIT",