@dreamcommerce/aurora 2.16.8-7 → 2.16.8-8

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 (51) hide show
  1. package/build/cjs/_virtual/_rollupPluginBabelHelpers.js +0 -191
  2. package/build/cjs/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  3. package/build/cjs/packages/aurora/src/components/controls/hoc/control_xhr_image_picker/index.js +2 -2
  4. package/build/cjs/packages/aurora/src/components/xhr_image_picker/index.js +9 -7
  5. package/build/cjs/packages/aurora/src/components/xhr_image_picker/index.js.map +1 -1
  6. package/build/cjs/packages/aurora/src/index.js +0 -2
  7. package/build/cjs/packages/aurora/src/index.js.map +1 -1
  8. package/build/esm/_virtual/_rollupPluginBabelHelpers.js +1 -181
  9. package/build/esm/_virtual/_rollupPluginBabelHelpers.js.map +1 -1
  10. package/build/esm/packages/aurora/src/components/controls/hoc/control_xhr_image_picker/index.js +2 -2
  11. package/build/esm/packages/aurora/src/components/controls/types.d.ts +1 -3
  12. package/build/esm/packages/aurora/src/components/gallery/index.js +3 -3
  13. package/build/esm/packages/aurora/src/components/xhr_image_picker/index.d.ts +1 -1
  14. package/build/esm/packages/aurora/src/components/xhr_image_picker/index.js +10 -8
  15. package/build/esm/packages/aurora/src/components/xhr_image_picker/index.js.map +1 -1
  16. package/build/esm/packages/aurora/src/components/xhr_image_picker/types.d.ts +6 -4
  17. package/build/esm/packages/aurora/src/components/xhr_image_picker/types.js +0 -1
  18. package/build/esm/packages/aurora/src/components/xhr_image_picker/types.js.map +1 -1
  19. package/build/esm/packages/aurora/src/index.d.ts +1 -2
  20. package/build/esm/packages/aurora/src/index.js +0 -1
  21. package/build/esm/packages/aurora/src/index.js.map +1 -1
  22. package/package.json +1 -3
  23. package/build/cjs/external/@pqina/pintura/pintura.css.js +0 -11
  24. package/build/cjs/external/@pqina/pintura/pintura.css.js.map +0 -1
  25. package/build/cjs/external/@pqina/pintura/pintura.js +0 -121
  26. package/build/cjs/external/@pqina/pintura/pintura.js.map +0 -1
  27. package/build/cjs/external/@pqina/react-pintura/PinturaEditor.js +0 -83
  28. package/build/cjs/external/@pqina/react-pintura/PinturaEditor.js.map +0 -1
  29. package/build/cjs/external/@pqina/react-pintura/PinturaEditorModal.js +0 -95
  30. package/build/cjs/external/@pqina/react-pintura/PinturaEditorModal.js.map +0 -1
  31. package/build/cjs/external/@pqina/react-pintura/PinturaEditorOverlay.js +0 -83
  32. package/build/cjs/external/@pqina/react-pintura/PinturaEditorOverlay.js.map +0 -1
  33. package/build/cjs/external/@pqina/react-pintura/events.js +0 -46
  34. package/build/cjs/external/@pqina/react-pintura/events.js.map +0 -1
  35. package/build/cjs/packages/aurora/src/components/pintura/index.js +0 -51
  36. package/build/cjs/packages/aurora/src/components/pintura/index.js.map +0 -1
  37. package/build/esm/external/@pqina/pintura/pintura.css.js +0 -7
  38. package/build/esm/external/@pqina/pintura/pintura.css.js.map +0 -1
  39. package/build/esm/external/@pqina/pintura/pintura.js +0 -15
  40. package/build/esm/external/@pqina/pintura/pintura.js.map +0 -1
  41. package/build/esm/external/@pqina/react-pintura/PinturaEditor.js +0 -75
  42. package/build/esm/external/@pqina/react-pintura/PinturaEditor.js.map +0 -1
  43. package/build/esm/external/@pqina/react-pintura/PinturaEditorModal.js +0 -87
  44. package/build/esm/external/@pqina/react-pintura/PinturaEditorModal.js.map +0 -1
  45. package/build/esm/external/@pqina/react-pintura/PinturaEditorOverlay.js +0 -75
  46. package/build/esm/external/@pqina/react-pintura/PinturaEditorOverlay.js.map +0 -1
  47. package/build/esm/external/@pqina/react-pintura/events.js +0 -41
  48. package/build/esm/external/@pqina/react-pintura/events.js.map +0 -1
  49. package/build/esm/packages/aurora/src/components/pintura/index.d.ts +0 -10
  50. package/build/esm/packages/aurora/src/components/pintura/index.js +0 -43
  51. package/build/esm/packages/aurora/src/components/pintura/index.js.map +0 -1
@@ -1 +0,0 @@
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;"}
@@ -1,75 +0,0 @@
1
- import React from 'react';
2
- import { inherits as _inherits, createClass as _createClass, classCallCheck as _classCallCheck, possibleConstructorReturn as _possibleConstructorReturn, getPrototypeOf as _getPrototypeOf, objectSpread2 as _objectSpread2 } from '../../../_virtual/_rollupPluginBabelHelpers.js';
3
- import { appendEditor as Pw } from '../pintura/pintura.js';
4
- import { sub, unsub } from './events.js';
5
-
6
- function _callSuper(_this, derived, args) {
7
- function isNativeReflectConstruct() {
8
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
9
- if (Reflect.construct.sham) return false;
10
- if (typeof Proxy === "function") return true;
11
-
12
- try {
13
- return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
14
- } catch (e) {
15
- return false;
16
- }
17
- }
18
-
19
- derived = _getPrototypeOf(derived);
20
- return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
21
- }
22
-
23
- var PinturaEditor = /*#__PURE__*/function (_React$Component) {
24
- function PinturaEditor(props) {
25
- var _this2;
26
-
27
- _classCallCheck(this, PinturaEditor);
28
-
29
- _this2 = _callSuper(this, PinturaEditor, [props]);
30
- _this2.elementRef = /*#__PURE__*/React.createRef();
31
- _this2.editor = undefined;
32
- return _this2;
33
- }
34
-
35
- _inherits(PinturaEditor, _React$Component);
36
-
37
- return _createClass(PinturaEditor, [{
38
- key: "componentDidMount",
39
- value: function componentDidMount() {
40
- if (!this.elementRef.current) return;
41
-
42
- var props = _objectSpread2({}, this.props);
43
-
44
- this.editor = Pw(this.elementRef.current, props);
45
- sub(this, props);
46
- }
47
- }, {
48
- key: "componentDidUpdate",
49
- value: function componentDidUpdate() {
50
- var props = _objectSpread2({}, this.props);
51
-
52
- Object.assign(this.editor, props);
53
- sub(this, props);
54
- }
55
- }, {
56
- key: "componentWillUnmount",
57
- value: function componentWillUnmount() {
58
- if (!this.editor) return;
59
- unsub(this);
60
- this.editor.destroy();
61
- this.editor = undefined;
62
- }
63
- }, {
64
- key: "render",
65
- value: function render() {
66
- return /*#__PURE__*/React.createElement('div', {
67
- className: "PinturaRootWrapper ".concat(this.props.className ? this.props.className : '').trim(),
68
- ref: this.elementRef
69
- });
70
- }
71
- }]);
72
- }(React.Component);
73
-
74
- export default PinturaEditor;
75
- //# sourceMappingURL=PinturaEditor.js.map
@@ -1 +0,0 @@
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;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,87 +0,0 @@
1
- import React from 'react';
2
- import { inherits as _inherits, createClass as _createClass, classCallCheck as _classCallCheck, possibleConstructorReturn as _possibleConstructorReturn, getPrototypeOf as _getPrototypeOf, objectSpread2 as _objectSpread2 } from '../../../_virtual/_rollupPluginBabelHelpers.js';
3
- import { openEditor as Ew } from '../pintura/pintura.js';
4
- import { sub, unsub } from './events.js';
5
-
6
- function _callSuper(_this, derived, args) {
7
- function isNativeReflectConstruct() {
8
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
9
- if (Reflect.construct.sham) return false;
10
- if (typeof Proxy === "function") return true;
11
-
12
- try {
13
- return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
14
- } catch (e) {
15
- return false;
16
- }
17
- }
18
-
19
- derived = _getPrototypeOf(derived);
20
- return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
21
- }
22
-
23
- var PinturaEditorModal = /*#__PURE__*/function (_React$Component) {
24
- function PinturaEditorModal(props) {
25
- var _this2;
26
-
27
- _classCallCheck(this, PinturaEditorModal);
28
-
29
- _this2 = _callSuper(this, PinturaEditorModal, [props]);
30
- _this2.editor = undefined;
31
- return _this2;
32
- }
33
-
34
- _inherits(PinturaEditorModal, _React$Component);
35
-
36
- return _createClass(PinturaEditorModal, [{
37
- key: "componentDidMount",
38
- value: function componentDidMount() {
39
- // We'll wrap the module in a container so we can use the container as a CSS module target
40
- this.el = document.createElement('div');
41
- if (this.props.className) this.el.className = this.props.className;
42
- document.body.append(this.el); // Create editor and proxy events
43
-
44
- var props = _objectSpread2({}, this.props);
45
-
46
- this.editor = Ew(_objectSpread2(_objectSpread2({}, props), {}, {
47
- enableAutoDestroy: false
48
- }), this.el);
49
- sub(this, props);
50
- }
51
- }, {
52
- key: "componentDidUpdate",
53
- value: function componentDidUpdate() {
54
- var props = _objectSpread2({}, this.props);
55
-
56
- Object.assign(this.editor, props);
57
- sub(this, props);
58
- }
59
- }, {
60
- key: "componentWillUnmount",
61
- value: function componentWillUnmount() {
62
- if (!this.editor) return;
63
- unsub(this);
64
- this.editor.destroy();
65
- this.editor = undefined;
66
- this.el.remove();
67
- }
68
- }, {
69
- key: "show",
70
- value: function show() {
71
- this.editor.show();
72
- }
73
- }, {
74
- key: "hide",
75
- value: function hide() {
76
- this.editor.hide();
77
- }
78
- }, {
79
- key: "render",
80
- value: function render() {
81
- return null;
82
- }
83
- }]);
84
- }(React.Component);
85
-
86
- export default PinturaEditorModal;
87
- //# sourceMappingURL=PinturaEditorModal.js.map
@@ -1 +0,0 @@
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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,75 +0,0 @@
1
- import React from 'react';
2
- import { inherits as _inherits, createClass as _createClass, classCallCheck as _classCallCheck, possibleConstructorReturn as _possibleConstructorReturn, getPrototypeOf as _getPrototypeOf, objectSpread2 as _objectSpread2 } from '../../../_virtual/_rollupPluginBabelHelpers.js';
3
- import { overlayEditor as Iw } from '../pintura/pintura.js';
4
- import { sub, unsub } from './events.js';
5
-
6
- function _callSuper(_this, derived, args) {
7
- function isNativeReflectConstruct() {
8
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
9
- if (Reflect.construct.sham) return false;
10
- if (typeof Proxy === "function") return true;
11
-
12
- try {
13
- return !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
14
- } catch (e) {
15
- return false;
16
- }
17
- }
18
-
19
- derived = _getPrototypeOf(derived);
20
- return _possibleConstructorReturn(_this, isNativeReflectConstruct() ? Reflect.construct(derived, args || [], _getPrototypeOf(_this).constructor) : derived.apply(_this, args));
21
- }
22
-
23
- var PinturaEditorOverlay = /*#__PURE__*/function (_React$Component) {
24
- function PinturaEditorOverlay(props) {
25
- var _this2;
26
-
27
- _classCallCheck(this, PinturaEditorOverlay);
28
-
29
- _this2 = _callSuper(this, PinturaEditorOverlay, [props]);
30
- _this2.elementRef = /*#__PURE__*/React.createRef();
31
- _this2.editor = undefined;
32
- return _this2;
33
- }
34
-
35
- _inherits(PinturaEditorOverlay, _React$Component);
36
-
37
- return _createClass(PinturaEditorOverlay, [{
38
- key: "componentDidMount",
39
- value: function componentDidMount() {
40
- if (!this.elementRef.current) return;
41
-
42
- var props = _objectSpread2({}, this.props);
43
-
44
- this.editor = Iw(this.elementRef.current, props);
45
- sub(this, props);
46
- }
47
- }, {
48
- key: "componentDidUpdate",
49
- value: function componentDidUpdate() {
50
- var props = _objectSpread2({}, this.props);
51
-
52
- Object.assign(this.editor, props);
53
- sub(this, props);
54
- }
55
- }, {
56
- key: "componentWillUnmount",
57
- value: function componentWillUnmount() {
58
- if (!this.editor) return;
59
- unsub(this);
60
- this.editor.destroy();
61
- this.editor = undefined;
62
- }
63
- }, {
64
- key: "render",
65
- value: function render() {
66
- return /*#__PURE__*/React.createElement('div', {
67
- className: "PinturaRootWrapper ".concat(this.props.className ? this.props.className : '').trim(),
68
- ref: this.elementRef
69
- });
70
- }
71
- }]);
72
- }(React.Component);
73
-
74
- export default PinturaEditorOverlay;
75
- //# sourceMappingURL=PinturaEditorOverlay.js.map
@@ -1 +0,0 @@
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;AACA;AACA;AACA;AACA;AACA;"}
@@ -1,41 +0,0 @@
1
- import { slicedToArray as _slicedToArray } from '../../../_virtual/_rollupPluginBabelHelpers.js';
2
-
3
- var isEvent = function isEvent(key) {
4
- return /^on[A-Z]/.test(key);
5
- };
6
-
7
- var getEventsFromProps = function getEventsFromProps(props) {
8
- return Object.keys(props).filter(isEvent).map(getEventFromKey);
9
- };
10
-
11
- var getEventFromKey = function getEventFromKey(key) {
12
- return key.substr(2).toLowerCase();
13
- };
14
-
15
- var unsub = function unsub(component) {
16
- var events = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
17
- (component.unsubs || [] // events not supplied, or event is in events list
18
- ).filter(function (_ref) {
19
- var _ref2 = _slicedToArray(_ref, 1),
20
- event = _ref2[0];
21
-
22
- return !events || events.includes(event);
23
- }).forEach(function (_ref3) {
24
- var _ref4 = _slicedToArray(_ref3, 2),
25
- unsub = _ref4[1];
26
-
27
- return unsub();
28
- });
29
- };
30
- var sub = function sub(component, props) {
31
- // unsub existing subscriptions
32
- unsub(component, getEventsFromProps(props)); // subscribe
33
-
34
- component.unsubs = Object.keys(props).filter(isEvent).map(function (key) {
35
- var type = getEventFromKey(key);
36
- return [type, component.editor.on(type, props[key])];
37
- });
38
- };
39
-
40
- export { sub, unsub };
41
- //# sourceMappingURL=events.js.map
@@ -1 +0,0 @@
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;"}
@@ -1,10 +0,0 @@
1
- import '@pqina/pintura/pintura.css';
2
- import React from 'react';
3
- interface IPinturaProps {
4
- src: File | string;
5
- height?: string;
6
- onPreviewLoaded?: () => void;
7
- onEditionDone?: (result: File | undefined) => void;
8
- }
9
- export declare const Pintura: React.FC<IPinturaProps>;
10
- export {};
@@ -1,43 +0,0 @@
1
- import React, { useState, useEffect } from 'react';
2
- import { slicedToArray as _slicedToArray, objectSpread2 as _objectSpread2 } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
3
- import '../../../../../external/@pqina/pintura/pintura.css.js';
4
- import { getEditorDefaults as Ow } from '../../../../../external/@pqina/pintura/pintura.js';
5
- import PinturaEditor from '../../../../../external/@pqina/react-pintura/PinturaEditor.js';
6
- import '../../../../../external/@pqina/react-pintura/PinturaEditorModal.js';
7
- import '../../../../../external/@pqina/react-pintura/PinturaEditorOverlay.js';
8
-
9
- var Pintura = function Pintura(_ref) {
10
- var src = _ref.src,
11
- _ref$height = _ref.height,
12
- height = _ref$height === void 0 ? '70vh' : _ref$height,
13
- onPreviewLoaded = _ref.onPreviewLoaded,
14
- onEditionDone = _ref.onEditionDone;
15
-
16
- var _useState = useState(),
17
- _useState2 = _slicedToArray(_useState, 2),
18
- inlineResult = _useState2[0],
19
- setInlineResult = _useState2[1];
20
-
21
- useEffect(function () {
22
- if (inlineResult && onEditionDone) onEditionDone(inlineResult);
23
- }, [inlineResult]);
24
-
25
- var handleLoadPreview = function handleLoadPreview() {
26
- onPreviewLoaded && onPreviewLoaded();
27
- };
28
-
29
- return /*#__PURE__*/React.createElement("div", {
30
- style: {
31
- height: height
32
- }
33
- }, /*#__PURE__*/React.createElement(PinturaEditor, _objectSpread2(_objectSpread2({}, Ow()), {}, {
34
- src: src,
35
- onProcess: function onProcess(res) {
36
- return setInlineResult(res.dest);
37
- },
38
- onLoadpreview: handleLoadPreview
39
- })));
40
- };
41
-
42
- export { Pintura };
43
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA,OAAO,uDAA2D;AAClE,wCAAwC,mDAAuD;AAC/F,0BAA0B,+DAAmE;AAC7F,OAAO,oEAAwE;AAC/E,OAAO,sEAA0E;AACjF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}