@dreamcommerce/aurora 2.20.1 → 2.20.2-1

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 (17) hide show
  1. package/build/cjs/external/lodash/isEqual.js +43 -0
  2. package/build/cjs/external/lodash/isEqual.js.map +1 -0
  3. package/build/cjs/packages/aurora/src/components/color_picker_new/components/pure-color-picker.js +39 -22
  4. package/build/cjs/packages/aurora/src/components/color_picker_new/components/pure-color-picker.js.map +1 -1
  5. package/build/cjs/packages/aurora/src/components/color_picker_new/index.js +3 -6
  6. package/build/cjs/packages/aurora/src/components/color_picker_new/index.js.map +1 -1
  7. package/build/cjs/packages/star_core/build/esm/packages/star_core/src/classes/axios_http_client/axios_http_client.js +5 -0
  8. package/build/cjs/packages/star_core/build/esm/packages/star_core/src/classes/axios_http_client/axios_http_client.js.map +1 -1
  9. package/build/esm/external/lodash/isEqual.js +39 -0
  10. package/build/esm/external/lodash/isEqual.js.map +1 -0
  11. package/build/esm/packages/aurora/src/components/color_picker_new/components/pure-color-picker.js +40 -23
  12. package/build/esm/packages/aurora/src/components/color_picker_new/components/pure-color-picker.js.map +1 -1
  13. package/build/esm/packages/aurora/src/components/color_picker_new/index.js +4 -7
  14. package/build/esm/packages/aurora/src/components/color_picker_new/index.js.map +1 -1
  15. package/build/esm/packages/star_core/build/esm/packages/star_core/src/classes/axios_http_client/axios_http_client.js +5 -0
  16. package/build/esm/packages/star_core/build/esm/packages/star_core/src/classes/axios_http_client/axios_http_client.js.map +1 -1
  17. package/package.json +1 -1
@@ -0,0 +1,43 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var _baseIsEqual = require('./_baseIsEqual.js');
6
+
7
+ /**
8
+ * Performs a deep comparison between two values to determine if they are
9
+ * equivalent.
10
+ *
11
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
12
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
13
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
14
+ * by their own, not inherited, enumerable properties. Functions and DOM
15
+ * nodes are compared by strict equality, i.e. `===`.
16
+ *
17
+ * @static
18
+ * @memberOf _
19
+ * @since 0.1.0
20
+ * @category Lang
21
+ * @param {*} value The value to compare.
22
+ * @param {*} other The other value to compare.
23
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
24
+ * @example
25
+ *
26
+ * var object = { 'a': 1 };
27
+ * var other = { 'a': 1 };
28
+ *
29
+ * _.isEqual(object, other);
30
+ * // => true
31
+ *
32
+ * object === other;
33
+ * // => false
34
+ */
35
+
36
+ function isEqual(value, other) {
37
+ return _baseIsEqual['default'](value, other);
38
+ }
39
+
40
+ var isEqual_1 = isEqual;
41
+
42
+ exports.default = isEqual_1;
43
+ //# sourceMappingURL=isEqual.js.map
@@ -0,0 +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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var React = require('react');
6
- var context = require('../context.js');
6
+ var _rollupPluginBabelHelpers = require('../../../../../../_virtual/_rollupPluginBabelHelpers.js');
7
7
  var constants = require('../constants.js');
8
8
  var css_classes = require('../css_classes.js');
9
9
  var colorLabelInput = require('./color-label-input.js');
@@ -16,21 +16,45 @@ var colorPickerSwatch = require('./color-picker-swatch.js');
16
16
  var colorPickerShades = require('./color-picker-shades.js');
17
17
  var colorPickerVariables = require('./color-picker-variables.js');
18
18
  var dropdown = require('../../dropdown/components/dropdown.js');
19
+ var isEqual = require('../../../../../../external/lodash/isEqual.js');
19
20
 
20
21
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
21
22
 
22
23
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
23
24
 
24
- var ColorPickerNewPure = function ColorPickerNewPure(_ref) {
25
- var id = _ref.id,
26
- name = _ref.name,
27
- colorVariables = _ref.colorVariables;
25
+ var ColorPickerMy = /*#__PURE__*/React__default['default'].memo(function (_ref) {
26
+ var colorValue = _ref.colorValue,
27
+ setColor = _ref.setColor;
28
+ console.warn('%c ColorPickerMy', 'color: red', colorValue);
29
+ return /*#__PURE__*/React__default['default'].createElement(index.ColorPicker, {
30
+ value: colorValue,
31
+ onChange: setColor,
32
+ width: constants.COLOR_PICKER_WIDTH,
33
+ height: constants.COLOR_PICKER_HEIGHT,
34
+ hideColorTypeBtns: true,
35
+ hideColorGuide: true,
36
+ hideAdvancedSliders: true,
37
+ hideInputType: true,
38
+ hideInputs: true,
39
+ hidePresets: true,
40
+ className: "".concat(main_module['default'][css_classes.cssColorPickerRbgcp])
41
+ });
42
+ }, function (prev, curr) {
43
+ return isEqual['default'](prev, curr);
44
+ });
45
+ var ColorPickerNewPure = /*#__PURE__*/React__default['default'].memo(function (_ref2) {
46
+ var id = _ref2.id,
47
+ name = _ref2.name,
48
+ colorVariables = _ref2.colorVariables;
49
+
50
+ // const { color, setColor } = useContext<IColorPickerNewContextProps>(ColorPickerNewContext);
51
+ var _useState = React.useState(),
52
+ _useState2 = _rollupPluginBabelHelpers.slicedToArray(_useState, 2),
53
+ colorValue = _useState2[0],
54
+ setColor = _useState2[1]; // const colorValue = typeof color === 'string' ? color : color.value;
28
55
 
29
- var _useContext = React.useContext(context.ColorPickerNewContext),
30
- color = _useContext.color,
31
- setColor = _useContext.setColor;
32
56
 
33
- var colorValue = typeof color === 'string' ? color : color.value;
57
+ console.log('%c ColorPickerNewWithContext', 'color: red', colorVariables);
34
58
  return /*#__PURE__*/React__default['default'].createElement("div", {
35
59
  className: "".concat(main_module['default'][css_classes.cssColorPicker])
36
60
  }, /*#__PURE__*/React__default['default'].createElement(dropdown['default'], null, /*#__PURE__*/React__default['default'].createElement(dropdown['default'].CustomLabel, null, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -48,22 +72,15 @@ var ColorPickerNewPure = function ColorPickerNewPure(_ref) {
48
72
  shouldCloseOthersOnOpen: true
49
73
  }, /*#__PURE__*/React__default['default'].createElement(colorPickerHeader.ColorPickerHeader, null), /*#__PURE__*/React__default['default'].createElement("div", {
50
74
  className: "".concat(main_module['default'][css_classes.cssColorPickerContainer])
51
- }, /*#__PURE__*/React__default['default'].createElement(index.ColorPicker, {
52
- value: colorValue,
53
- onChange: setColor,
54
- width: constants.COLOR_PICKER_WIDTH,
55
- height: constants.COLOR_PICKER_HEIGHT,
56
- hideColorTypeBtns: true,
57
- hideColorGuide: true,
58
- hideAdvancedSliders: true,
59
- hideInputType: true,
60
- hideInputs: true,
61
- hidePresets: true,
62
- className: "".concat(main_module['default'][css_classes.cssColorPickerRbgcp])
75
+ }, /*#__PURE__*/React__default['default'].createElement(ColorPickerMy, {
76
+ colorValue: colorValue,
77
+ setColor: setColor
63
78
  }), /*#__PURE__*/React__default['default'].createElement(colorPickerInputs.ColorPickerInputs, null), /*#__PURE__*/React__default['default'].createElement(colorPickerShades.ColorPickerShades, null), (colorVariables === null || colorVariables === void 0 ? void 0 : colorVariables.isVisible) && /*#__PURE__*/React__default['default'].createElement(colorPickerVariables.ColorPickerVariables, {
64
79
  variables: colorVariables.variables
65
80
  })), /*#__PURE__*/React__default['default'].createElement(colorPickerFooter.ColorPickerFooter, null))));
66
- };
81
+ }, function (prev, curr) {
82
+ return isEqual['default'](prev, curr);
83
+ });
67
84
 
68
85
  exports.default = ColorPickerNewPure;
69
86
  //# sourceMappingURL=pure-color-picker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,oBAAoB,0FAA8F;AAClH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,oBAAoB,0FAA8F;AAClH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,8CAAkD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,8 +40,8 @@ var ColorPickerNewWithContext = function ColorPickerNewWithContext(_ref) {
40
40
  handleSave = _useColorPicker.handleSave,
41
41
  handlePickSwatch = _useColorPicker.handlePickSwatch;
42
42
 
43
- var value = React.useMemo(function () {
44
- return {
43
+ return /*#__PURE__*/React__default['default'].createElement(context.ColorPickerNewContext.Provider, {
44
+ value: {
45
45
  color: color,
46
46
  setColor: setColor,
47
47
  hex: hex,
@@ -55,10 +55,7 @@ var ColorPickerNewWithContext = function ColorPickerNewWithContext(_ref) {
55
55
  handleCancel: handleCancel,
56
56
  handleSave: handleSave,
57
57
  handlePickSwatch: handlePickSwatch
58
- };
59
- }, [color, setColor, hex, hslArr, handleOnChangeAlpha, alphaValue, rgbaArr, setR, setG, setB, handleCancel, handleSave, handlePickSwatch]);
60
- return /*#__PURE__*/React__default['default'].createElement(context.ColorPickerNewContext.Provider, {
61
- value: value
58
+ }
62
59
  }, /*#__PURE__*/React__default['default'].createElement(pureColorPicker['default'], {
63
60
  id: id,
64
61
  name: name,
@@ -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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -39,6 +39,11 @@ var AxiosClient = /*#__PURE__*/function () {
39
39
  cancelRequest: cancelRequest
40
40
  };
41
41
  }
42
+ }, {
43
+ key: "isCancelError",
44
+ value: function isCancelError(error) {
45
+ return index['default'].isCancel(error);
46
+ }
42
47
  }]);
43
48
  }();
44
49
 
@@ -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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -0,0 +1,39 @@
1
+ import _baseIsEqual from './_baseIsEqual.js';
2
+
3
+ /**
4
+ * Performs a deep comparison between two values to determine if they are
5
+ * equivalent.
6
+ *
7
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
8
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
9
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
10
+ * by their own, not inherited, enumerable properties. Functions and DOM
11
+ * nodes are compared by strict equality, i.e. `===`.
12
+ *
13
+ * @static
14
+ * @memberOf _
15
+ * @since 0.1.0
16
+ * @category Lang
17
+ * @param {*} value The value to compare.
18
+ * @param {*} other The other value to compare.
19
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
20
+ * @example
21
+ *
22
+ * var object = { 'a': 1 };
23
+ * var other = { 'a': 1 };
24
+ *
25
+ * _.isEqual(object, other);
26
+ * // => true
27
+ *
28
+ * object === other;
29
+ * // => false
30
+ */
31
+
32
+ function isEqual(value, other) {
33
+ return _baseIsEqual(value, other);
34
+ }
35
+
36
+ var isEqual_1 = isEqual;
37
+
38
+ export default isEqual_1;
39
+ //# sourceMappingURL=isEqual.js.map
@@ -0,0 +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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,5 +1,5 @@
1
- import React, { useContext } from 'react';
2
- import { ColorPickerNewContext } from '../context.js';
1
+ import React, { useState } from 'react';
2
+ import { slicedToArray as _slicedToArray } from '../../../../../../_virtual/_rollupPluginBabelHelpers.js';
3
3
  import { COLOR_PICKER_WIDTH, COLOR_PICKER_HEIGHT } from '../constants.js';
4
4
  import { cssColorPicker, cssColorPickerInputContainer, cssColorPickerInputColorSwatchContainer, cssColorPickerContainer, cssColorPickerRbgcp } from '../css_classes.js';
5
5
  import { ColorLabelInput } from './color-label-input.js';
@@ -12,17 +12,41 @@ import { ColorPickerSwatch } from './color-picker-swatch.js';
12
12
  import { ColorPickerShades } from './color-picker-shades.js';
13
13
  import { ColorPickerVariables } from './color-picker-variables.js';
14
14
  import Dropdown from '../../dropdown/components/dropdown.js';
15
+ import isEqual_1 from '../../../../../../external/lodash/isEqual.js';
15
16
 
16
- var ColorPickerNewPure = function ColorPickerNewPure(_ref) {
17
- var id = _ref.id,
18
- name = _ref.name,
19
- colorVariables = _ref.colorVariables;
17
+ var ColorPickerMy = /*#__PURE__*/React.memo(function (_ref) {
18
+ var colorValue = _ref.colorValue,
19
+ setColor = _ref.setColor;
20
+ console.warn('%c ColorPickerMy', 'color: red', colorValue);
21
+ return /*#__PURE__*/React.createElement(ColorPicker, {
22
+ value: colorValue,
23
+ onChange: setColor,
24
+ width: COLOR_PICKER_WIDTH,
25
+ height: COLOR_PICKER_HEIGHT,
26
+ hideColorTypeBtns: true,
27
+ hideColorGuide: true,
28
+ hideAdvancedSliders: true,
29
+ hideInputType: true,
30
+ hideInputs: true,
31
+ hidePresets: true,
32
+ className: "".concat(styles[cssColorPickerRbgcp])
33
+ });
34
+ }, function (prev, curr) {
35
+ return isEqual_1(prev, curr);
36
+ });
37
+ var ColorPickerNewPure = /*#__PURE__*/React.memo(function (_ref2) {
38
+ var id = _ref2.id,
39
+ name = _ref2.name,
40
+ colorVariables = _ref2.colorVariables;
41
+
42
+ // const { color, setColor } = useContext<IColorPickerNewContextProps>(ColorPickerNewContext);
43
+ var _useState = useState(),
44
+ _useState2 = _slicedToArray(_useState, 2),
45
+ colorValue = _useState2[0],
46
+ setColor = _useState2[1]; // const colorValue = typeof color === 'string' ? color : color.value;
20
47
 
21
- var _useContext = useContext(ColorPickerNewContext),
22
- color = _useContext.color,
23
- setColor = _useContext.setColor;
24
48
 
25
- var colorValue = typeof color === 'string' ? color : color.value;
49
+ console.log('%c ColorPickerNewWithContext', 'color: red', colorVariables);
26
50
  return /*#__PURE__*/React.createElement("div", {
27
51
  className: "".concat(styles[cssColorPicker])
28
52
  }, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.CustomLabel, null, /*#__PURE__*/React.createElement("div", {
@@ -40,22 +64,15 @@ var ColorPickerNewPure = function ColorPickerNewPure(_ref) {
40
64
  shouldCloseOthersOnOpen: true
41
65
  }, /*#__PURE__*/React.createElement(ColorPickerHeader, null), /*#__PURE__*/React.createElement("div", {
42
66
  className: "".concat(styles[cssColorPickerContainer])
43
- }, /*#__PURE__*/React.createElement(ColorPicker, {
44
- value: colorValue,
45
- onChange: setColor,
46
- width: COLOR_PICKER_WIDTH,
47
- height: COLOR_PICKER_HEIGHT,
48
- hideColorTypeBtns: true,
49
- hideColorGuide: true,
50
- hideAdvancedSliders: true,
51
- hideInputType: true,
52
- hideInputs: true,
53
- hidePresets: true,
54
- className: "".concat(styles[cssColorPickerRbgcp])
67
+ }, /*#__PURE__*/React.createElement(ColorPickerMy, {
68
+ colorValue: colorValue,
69
+ setColor: setColor
55
70
  }), /*#__PURE__*/React.createElement(ColorPickerInputs, null), /*#__PURE__*/React.createElement(ColorPickerShades, null), (colorVariables === null || colorVariables === void 0 ? void 0 : colorVariables.isVisible) && /*#__PURE__*/React.createElement(ColorPickerVariables, {
56
71
  variables: colorVariables.variables
57
72
  })), /*#__PURE__*/React.createElement(ColorPickerFooter, null))));
58
- };
73
+ }, function (prev, curr) {
74
+ return isEqual_1(prev, curr);
75
+ });
59
76
 
60
77
  export default ColorPickerNewPure;
61
78
  //# sourceMappingURL=pure-color-picker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,4BAA4B,0FAA8F;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,4BAA4B,0FAA8F;AAC1H;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,sBAAsB,8CAAkD;AACxE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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,4 +1,4 @@
1
- import React, { useMemo } from 'react';
1
+ import React from 'react';
2
2
  import { ColorPickerNewContext } from './context.js';
3
3
  import ColorPickerNewPure from './components/pure-color-picker.js';
4
4
  import useColorPicker from './hooks/use_color_picker.js';
@@ -32,8 +32,8 @@ var ColorPickerNewWithContext = function ColorPickerNewWithContext(_ref) {
32
32
  handleSave = _useColorPicker.handleSave,
33
33
  handlePickSwatch = _useColorPicker.handlePickSwatch;
34
34
 
35
- var value = useMemo(function () {
36
- return {
35
+ return /*#__PURE__*/React.createElement(ColorPickerNewContext.Provider, {
36
+ value: {
37
37
  color: color,
38
38
  setColor: setColor,
39
39
  hex: hex,
@@ -47,10 +47,7 @@ var ColorPickerNewWithContext = function ColorPickerNewWithContext(_ref) {
47
47
  handleCancel: handleCancel,
48
48
  handleSave: handleSave,
49
49
  handlePickSwatch: handlePickSwatch
50
- };
51
- }, [color, setColor, hex, hslArr, handleOnChangeAlpha, alphaValue, rgbaArr, setR, setG, setB, handleCancel, handleSave, handlePickSwatch]);
52
- return /*#__PURE__*/React.createElement(ColorPickerNewContext.Provider, {
53
- value: value
50
+ }
54
51
  }, /*#__PURE__*/React.createElement(ColorPickerNewPure, {
55
52
  id: id,
56
53
  name: name,
@@ -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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -35,6 +35,11 @@ var AxiosClient = /*#__PURE__*/function () {
35
35
  cancelRequest: cancelRequest
36
36
  };
37
37
  }
38
+ }, {
39
+ key: "isCancelError",
40
+ value: function isCancelError(error) {
41
+ return axios.isCancel(error);
42
+ }
38
43
  }]);
39
44
  }();
40
45
 
@@ -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;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
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.20.1",
5
+ "version": "2.20.2-1",
6
6
  "description": "aurora",
7
7
  "author": "k0ssak",
8
8
  "license": "MIT",