@bigbinary/neeto-image-uploader-frontend 3.0.6 → 3.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/app/javascript/src/translations/en.json +1 -0
- package/dist/AssetLibrary.js +5 -5
- package/dist/BasicImageUploader.js +4 -4
- package/dist/BasicImageUploader.js.map +1 -1
- package/dist/ImageForm.js +7 -7
- package/dist/ImageForm.js.map +1 -1
- package/dist/ImageUploader.js +7 -7
- package/dist/ImageUploader.js.map +1 -1
- package/dist/{ImageWithFallback-DzT_N2Su.js → ImageWithFallback-Bq5rs1yf.js} +13 -5
- package/dist/ImageWithFallback-Bq5rs1yf.js.map +1 -0
- package/dist/{ImageWithFallback-Csv6Oivd.js → ImageWithFallback-DCGYkTnN.js} +13 -5
- package/dist/ImageWithFallback-DCGYkTnN.js.map +1 -0
- package/dist/cjs/AssetLibrary.js +5 -5
- package/dist/cjs/BasicImageUploader.js +4 -4
- package/dist/cjs/BasicImageUploader.js.map +1 -1
- package/dist/cjs/ImageForm.js +7 -7
- package/dist/cjs/ImageForm.js.map +1 -1
- package/dist/cjs/ImageUploader.js +7 -7
- package/dist/cjs/ImageUploader.js.map +1 -1
- package/dist/cjs/hooks.js +4 -4
- package/dist/cjs/index.js +7 -7
- package/dist/cjs/utils.js +1 -1
- package/dist/hooks.js +4 -4
- package/dist/{imagekit.esm-Bhjn2yWQ.js → imagekit.esm-CXW6c1fP.js} +3 -2
- package/dist/imagekit.esm-CXW6c1fP.js.map +1 -0
- package/dist/{imagekit.esm-DjCK_cT4.js → imagekit.esm-CisvUNYU.js} +3 -2
- package/dist/imagekit.esm-CisvUNYU.js.map +1 -0
- package/dist/{index-BF9s4sZW.js → index-BGVHZZys.js} +31 -31
- package/dist/index-BGVHZZys.js.map +1 -0
- package/dist/{index-DhN-kj31.js → index-CjVmJmv5.js} +31 -31
- package/dist/index-CjVmJmv5.js.map +1 -0
- package/dist/index.js +7 -7
- package/dist/{query-DMtOS6FM.js → query-BJnGLX4z.js} +3 -2
- package/dist/query-BJnGLX4z.js.map +1 -0
- package/dist/{query-BslM05TL.js → query-eZTZ-5Dm.js} +3 -1
- package/dist/query-eZTZ-5Dm.js.map +1 -0
- package/dist/{useImageUploader-Dgah80e0.js → useImageUploader-BLOdyAwv.js} +34 -19
- package/dist/useImageUploader-BLOdyAwv.js.map +1 -0
- package/dist/{useImageUploader-C2PgQiZJ.js → useImageUploader-KvCoumJZ.js} +33 -18
- package/dist/useImageUploader-KvCoumJZ.js.map +1 -0
- package/dist/{useProfileImageUpload-BOP54J2z.js → useProfileImageUpload-CiGxDpEx.js} +3 -3
- package/dist/useProfileImageUpload-CiGxDpEx.js.map +1 -0
- package/dist/{useProfileImageUpload-kJjZSen1.js → useProfileImageUpload-DkmUBjtt.js} +3 -3
- package/dist/{useProfileImageUpload-kJjZSen1.js.map → useProfileImageUpload-DkmUBjtt.js.map} +1 -1
- package/dist/{utils-D8kIruZ4.js → utils-CoOpqzJA.js} +3 -3
- package/dist/{utils-D8kIruZ4.js.map → utils-CoOpqzJA.js.map} +1 -1
- package/dist/{utils--D590Zim.js → utils-YicuhSoR.js} +4 -4
- package/dist/{utils--D590Zim.js.map → utils-YicuhSoR.js.map} +1 -1
- package/dist/utils.js +1 -1
- package/package.json +21 -21
- package/dist/ImageWithFallback-Csv6Oivd.js.map +0 -1
- package/dist/ImageWithFallback-DzT_N2Su.js.map +0 -1
- package/dist/imagekit.esm-Bhjn2yWQ.js.map +0 -1
- package/dist/imagekit.esm-DjCK_cT4.js.map +0 -1
- package/dist/index-BF9s4sZW.js.map +0 -1
- package/dist/index-DhN-kj31.js.map +0 -1
- package/dist/query-BslM05TL.js.map +0 -1
- package/dist/query-DMtOS6FM.js.map +0 -1
- package/dist/useImageUploader-C2PgQiZJ.js.map +0 -1
- package/dist/useImageUploader-Dgah80e0.js.map +0 -1
- package/dist/useProfileImageUpload-BOP54J2z.js.map +0 -1
|
@@ -12,9 +12,9 @@ var Toastr = require('@bigbinary/neetoui/Toastr');
|
|
|
12
12
|
var Typography = require('@bigbinary/neetoui/Typography');
|
|
13
13
|
var ramda = require('ramda');
|
|
14
14
|
var reactI18next = require('react-i18next');
|
|
15
|
-
var utils$1 = require('./utils-
|
|
16
|
-
var useImageUploader = require('./useImageUploader-
|
|
17
|
-
var imagekit_esm = require('./imagekit.esm-
|
|
15
|
+
var utils$1 = require('./utils-CoOpqzJA.js');
|
|
16
|
+
var useImageUploader = require('./useImageUploader-KvCoumJZ.js');
|
|
17
|
+
var imagekit_esm = require('./imagekit.esm-CisvUNYU.js');
|
|
18
18
|
var classnames = require('classnames');
|
|
19
19
|
var LeftArrow = require('@bigbinary/neeto-icons/LeftArrow');
|
|
20
20
|
var Button = require('@bigbinary/neetoui/Button');
|
|
@@ -27,7 +27,7 @@ var Switch = require('@bigbinary/neetoui/Switch');
|
|
|
27
27
|
var Label = require('@bigbinary/neetoui/Label');
|
|
28
28
|
var jsxRuntime = require('react/jsx-runtime');
|
|
29
29
|
var NoData = require('@bigbinary/neetoui/NoData');
|
|
30
|
-
var query = require('./query-
|
|
30
|
+
var query = require('./query-eZTZ-5Dm.js');
|
|
31
31
|
var MenuHorizontal = require('@bigbinary/neeto-icons/MenuHorizontal');
|
|
32
32
|
var constants = require('@bigbinary/neeto-team-members-frontend/constants');
|
|
33
33
|
var Alert = require('@bigbinary/neetoui/Alert');
|
|
@@ -40,7 +40,7 @@ var constructCloudflareImageURL = function constructCloudflareImageURL(url) {
|
|
|
40
40
|
return url.replace("https://imagedelivery.net", "https://images.".concat(domain, "/cdn-cgi/imagedelivery"));
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s
|
|
43
|
+
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=true===r.prepend?"prepend":"append",d=true===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
44
44
|
|
|
45
45
|
var css$2 = ":root{--niu-modal-width:95vw;--niu-modal-height:75vh;--niu-modal-max-width:1152px;--niu-modal-max-height:36rem;--niu-modal-header-height:13.75rem;--niu-unsplash-container-max-height:22.1875rem}.niu-modal{height:75vh!important;height:var(--niu-modal-height)!important;max-height:36rem!important;max-height:var(--niu-modal-max-height)!important;max-width:1152px!important;max-width:var(--niu-modal-max-width)!important;position:relative!important;width:95vw!important;width:var(--niu-modal-width)!important}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImFwcC9qYXZhc2NyaXB0L3N0eWxlc2hlZXRzL2Fic3RyYWN0cy92YXJpYWJsZXMuY3NzIiwiYXBwL2phdmFzY3JpcHQvc3R5bGVzaGVldHMvY29tcG9uZW50cy9tb2RhbC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFDRSxzQkFBdUIsQ0FDdkIsdUJBQXdCLENBQ3hCLDRCQUE2QixDQUM3Qiw0QkFBNkIsQ0FDN0Isa0NBQW1DLENBQ25DLDhDQUNGLENDTEEsV0FFRSxxQkFBMEMsQ0FBMUMsd0NBQTBDLENBRTFDLDBCQUFrRCxDQUFsRCxnREFBa0QsQ0FEbEQsMEJBQWdELENBQWhELDhDQUFnRCxDQUVoRCwyQkFBNkIsQ0FKN0Isb0JBQXdDLENBQXhDLHNDQUtGIiwic291cmNlc0NvbnRlbnQiOlsiOnJvb3Qge1xuICAtLW5pdS1tb2RhbC13aWR0aDogOTV2dztcbiAgLS1uaXUtbW9kYWwtaGVpZ2h0OiA3NXZoO1xuICAtLW5pdS1tb2RhbC1tYXgtd2lkdGg6IDExNTJweDtcbiAgLS1uaXUtbW9kYWwtbWF4LWhlaWdodDogMzZyZW07XG4gIC0tbml1LW1vZGFsLWhlYWRlci1oZWlnaHQ6IDEzLjc1cmVtO1xuICAtLW5pdS11bnNwbGFzaC1jb250YWluZXItbWF4LWhlaWdodDogMjIuMTg3NXJlbTtcbn1cbiIsIkBpbXBvcnQgXCIuLi9hYnN0cmFjdHMvdmFyaWFibGVzLmNzc1wiO1xuXG4ubml1LW1vZGFsIHtcbiAgd2lkdGg6IHZhcigtLW5pdS1tb2RhbC13aWR0aCkgIWltcG9ydGFudDtcbiAgaGVpZ2h0OiB2YXIoLS1uaXUtbW9kYWwtaGVpZ2h0KSAhaW1wb3J0YW50O1xuICBtYXgtd2lkdGg6IHZhcigtLW5pdS1tb2RhbC1tYXgtd2lkdGgpICFpbXBvcnRhbnQ7XG4gIG1heC1oZWlnaHQ6IHZhcigtLW5pdS1tb2RhbC1tYXgtaGVpZ2h0KSAhaW1wb3J0YW50O1xuICBwb3NpdGlvbjogcmVsYXRpdmUgIWltcG9ydGFudDtcbn1cbiJdfQ== */";
|
|
46
46
|
n(css$2,{});
|
|
@@ -101,19 +101,19 @@ function K(s, t, e, o) {
|
|
|
101
101
|
const i = { ...s };
|
|
102
102
|
return t === "ArrowLeft" ? o === "nw" ? (i.x -= e, i.y -= e, i.width += e, i.height += e) : o === "w" ? (i.x -= e, i.width += e) : o === "sw" ? (i.x -= e, i.width += e, i.height += e) : o === "ne" ? (i.y += e, i.width -= e, i.height -= e) : o === "e" ? i.width -= e : o === "se" && (i.width -= e, i.height -= e) : t === "ArrowRight" && (o === "nw" ? (i.x += e, i.y += e, i.width -= e, i.height -= e) : o === "w" ? (i.x += e, i.width -= e) : o === "sw" ? (i.x += e, i.width -= e, i.height -= e) : o === "ne" ? (i.y -= e, i.width += e, i.height += e) : o === "e" ? i.width += e : o === "se" && (i.width += e, i.height += e)), t === "ArrowUp" ? o === "nw" ? (i.x -= e, i.y -= e, i.width += e, i.height += e) : o === "n" ? (i.y -= e, i.height += e) : o === "ne" ? (i.y -= e, i.width += e, i.height += e) : o === "sw" ? (i.x += e, i.width -= e, i.height -= e) : o === "s" ? i.height -= e : o === "se" && (i.width -= e, i.height -= e) : t === "ArrowDown" && (o === "nw" ? (i.x += e, i.y += e, i.width -= e, i.height -= e) : o === "n" ? (i.y += e, i.height -= e) : o === "ne" ? (i.y += e, i.width -= e, i.height -= e) : o === "sw" ? (i.x -= e, i.width += e, i.height += e) : o === "s" ? i.height += e : o === "se" && (i.width += e, i.height += e)), i;
|
|
103
103
|
}
|
|
104
|
-
const b = { capture:
|
|
104
|
+
const b = { capture: true, passive: false }, v = class m extends g.PureComponent {
|
|
105
105
|
constructor() {
|
|
106
|
-
super(...arguments), this.docMoveBound =
|
|
106
|
+
super(...arguments), this.docMoveBound = false, this.mouseDownOnCrop = false, this.dragStarted = false, this.evData = {
|
|
107
107
|
startClientX: 0,
|
|
108
108
|
startClientY: 0,
|
|
109
109
|
startCropX: 0,
|
|
110
110
|
startCropY: 0,
|
|
111
111
|
clientX: 0,
|
|
112
112
|
clientY: 0,
|
|
113
|
-
isResize:
|
|
114
|
-
}, this.componentRef = g.createRef(), this.mediaRef = g.createRef(), this.initChangeCalled =
|
|
115
|
-
cropIsActive:
|
|
116
|
-
newCropIsBeingDrawn:
|
|
113
|
+
isResize: true
|
|
114
|
+
}, this.componentRef = g.createRef(), this.mediaRef = g.createRef(), this.initChangeCalled = false, this.state = {
|
|
115
|
+
cropIsActive: false,
|
|
116
|
+
newCropIsBeingDrawn: false
|
|
117
117
|
}, this.onCropPointerDown = (t) => {
|
|
118
118
|
const { crop: e, disabled: o } = this.props, i = this.getBox();
|
|
119
119
|
if (!e)
|
|
@@ -121,7 +121,7 @@ const b = { capture: !0, passive: !1 }, v = class m extends g.PureComponent {
|
|
|
121
121
|
const n = y(e, i.width, i.height);
|
|
122
122
|
if (o)
|
|
123
123
|
return;
|
|
124
|
-
t.cancelable && t.preventDefault(), this.bindDocMove(), this.componentRef.current.focus({ preventScroll:
|
|
124
|
+
t.cancelable && t.preventDefault(), this.bindDocMove(), this.componentRef.current.focus({ preventScroll: true });
|
|
125
125
|
const a = t.target.dataset.ord, w = !!a;
|
|
126
126
|
let h = t.clientX, r = t.clientY, c = n.x, d = n.y;
|
|
127
127
|
if (a) {
|
|
@@ -138,12 +138,12 @@ const b = { capture: !0, passive: !1 }, v = class m extends g.PureComponent {
|
|
|
138
138
|
clientY: t.clientY,
|
|
139
139
|
isResize: w,
|
|
140
140
|
ord: a
|
|
141
|
-
}, this.mouseDownOnCrop =
|
|
141
|
+
}, this.mouseDownOnCrop = true, this.setState({ cropIsActive: true });
|
|
142
142
|
}, this.onComponentPointerDown = (t) => {
|
|
143
143
|
const { crop: e, disabled: o, locked: i, keepSelection: n, onChange: a } = this.props, w = this.getBox();
|
|
144
144
|
if (o || i || n && e)
|
|
145
145
|
return;
|
|
146
|
-
t.cancelable && t.preventDefault(), this.bindDocMove(), this.componentRef.current.focus({ preventScroll:
|
|
146
|
+
t.cancelable && t.preventDefault(), this.bindDocMove(), this.componentRef.current.focus({ preventScroll: true });
|
|
147
147
|
const h = t.clientX - w.x, r = t.clientY - w.y, c = {
|
|
148
148
|
unit: "px",
|
|
149
149
|
x: h,
|
|
@@ -158,13 +158,13 @@ const b = { capture: !0, passive: !1 }, v = class m extends g.PureComponent {
|
|
|
158
158
|
startCropY: r,
|
|
159
159
|
clientX: t.clientX,
|
|
160
160
|
clientY: t.clientY,
|
|
161
|
-
isResize:
|
|
162
|
-
}, this.mouseDownOnCrop =
|
|
161
|
+
isResize: true
|
|
162
|
+
}, this.mouseDownOnCrop = true, a(y(c, w.width, w.height), D(c, w.width, w.height)), this.setState({ cropIsActive: true, newCropIsBeingDrawn: true });
|
|
163
163
|
}, this.onDocPointerMove = (t) => {
|
|
164
164
|
const { crop: e, disabled: o, onChange: i, onDragStart: n } = this.props, a = this.getBox();
|
|
165
165
|
if (o || !e || !this.mouseDownOnCrop)
|
|
166
166
|
return;
|
|
167
|
-
t.cancelable && t.preventDefault(), this.dragStarted || (this.dragStarted =
|
|
167
|
+
t.cancelable && t.preventDefault(), this.dragStarted || (this.dragStarted = true, n && n(t));
|
|
168
168
|
const { evData: w } = this;
|
|
169
169
|
w.clientX = t.clientX, w.clientY = t.clientY;
|
|
170
170
|
let h;
|
|
@@ -177,11 +177,11 @@ const b = { capture: !0, passive: !1 }, v = class m extends g.PureComponent {
|
|
|
177
177
|
if (o)
|
|
178
178
|
return;
|
|
179
179
|
const a = t.key;
|
|
180
|
-
let w =
|
|
180
|
+
let w = false;
|
|
181
181
|
if (!e)
|
|
182
182
|
return;
|
|
183
183
|
const h = this.getBox(), r = this.makePixelCrop(h), d = (navigator.platform.match("Mac") ? t.metaKey : t.ctrlKey) ? m.nudgeStepLarge : t.shiftKey ? m.nudgeStepMedium : m.nudgeStep;
|
|
184
|
-
if (a === "ArrowLeft" ? (r.x -= d, w =
|
|
184
|
+
if (a === "ArrowLeft" ? (r.x -= d, w = true) : a === "ArrowRight" ? (r.x += d, w = true) : a === "ArrowUp" ? (r.y -= d, w = true) : a === "ArrowDown" && (r.y += d, w = true), w) {
|
|
185
185
|
t.cancelable && t.preventDefault(), r.x = f(r.x, 0, h.width - r.width), r.y = f(r.y, 0, h.height - r.height);
|
|
186
186
|
const p = y(r, h.width, h.height), l = D(r, h.width, h.height);
|
|
187
187
|
i(p, l), n && n(p, l);
|
|
@@ -221,7 +221,7 @@ const b = { capture: !0, passive: !1 }, v = class m extends g.PureComponent {
|
|
|
221
221
|
}
|
|
222
222
|
}, this.onDocPointerDone = (t) => {
|
|
223
223
|
const { crop: e, disabled: o, onComplete: i, onDragEnd: n } = this.props, a = this.getBox();
|
|
224
|
-
this.unbindDocMove(), !(o || !e) && this.mouseDownOnCrop && (this.mouseDownOnCrop =
|
|
224
|
+
this.unbindDocMove(), !(o || !e) && this.mouseDownOnCrop && (this.mouseDownOnCrop = false, this.dragStarted = false, n && n(t), i && i(y(e, a.width, a.height), D(e, a.width, a.height)), this.setState({ cropIsActive: false, newCropIsBeingDrawn: false }));
|
|
225
225
|
}, this.onDragFocus = (t) => {
|
|
226
226
|
var e;
|
|
227
227
|
(e = this.componentRef.current) == null || e.scrollTo(0, 0);
|
|
@@ -250,10 +250,10 @@ const b = { capture: !0, passive: !1 }, v = class m extends g.PureComponent {
|
|
|
250
250
|
this.resizeObserver && this.resizeObserver.disconnect();
|
|
251
251
|
}
|
|
252
252
|
bindDocMove() {
|
|
253
|
-
this.docMoveBound || (this.document.addEventListener("pointermove", this.onDocPointerMove, b), this.document.addEventListener("pointerup", this.onDocPointerDone, b), this.document.addEventListener("pointercancel", this.onDocPointerDone, b), this.docMoveBound =
|
|
253
|
+
this.docMoveBound || (this.document.addEventListener("pointermove", this.onDocPointerMove, b), this.document.addEventListener("pointerup", this.onDocPointerDone, b), this.document.addEventListener("pointercancel", this.onDocPointerDone, b), this.docMoveBound = true);
|
|
254
254
|
}
|
|
255
255
|
unbindDocMove() {
|
|
256
|
-
this.docMoveBound && (this.document.removeEventListener("pointermove", this.onDocPointerMove, b), this.document.removeEventListener("pointerup", this.onDocPointerDone, b), this.document.removeEventListener("pointercancel", this.onDocPointerDone, b), this.docMoveBound =
|
|
256
|
+
this.docMoveBound && (this.document.removeEventListener("pointermove", this.onDocPointerMove, b), this.document.removeEventListener("pointerup", this.onDocPointerDone, b), this.document.removeEventListener("pointercancel", this.onDocPointerDone, b), this.docMoveBound = false);
|
|
257
257
|
}
|
|
258
258
|
getCropStyle() {
|
|
259
259
|
const { crop: t } = this.props;
|
|
@@ -463,7 +463,7 @@ var developmentApi = {
|
|
|
463
463
|
};
|
|
464
464
|
|
|
465
465
|
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
466
|
-
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t),
|
|
466
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
467
467
|
var useCropImage = function useCropImage(options) {
|
|
468
468
|
return reactQuery.useMutation(_objectSpread$3({
|
|
469
469
|
mutationFn: developmentApi.cropImage
|
|
@@ -910,7 +910,7 @@ var imagesApi = {
|
|
|
910
910
|
};
|
|
911
911
|
|
|
912
912
|
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
913
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t),
|
|
913
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
914
914
|
var useFetchAssets = function useFetchAssets(_ref) {
|
|
915
915
|
var searchTerm = _ref.searchTerm,
|
|
916
916
|
url = _ref.url,
|
|
@@ -1365,9 +1365,9 @@ var require$$2 = /*@__PURE__*/getAugmentedNamespace(bricks_module);
|
|
|
1365
1365
|
|
|
1366
1366
|
var InfiniteScroll = {exports: {}};
|
|
1367
1367
|
|
|
1368
|
-
(function (module, exports) {
|
|
1368
|
+
(function (module, exports$1) {
|
|
1369
1369
|
|
|
1370
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1370
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
1371
1371
|
value: true
|
|
1372
1372
|
});
|
|
1373
1373
|
|
|
@@ -1661,8 +1661,8 @@ var InfiniteScroll = {exports: {}};
|
|
|
1661
1661
|
loader: null,
|
|
1662
1662
|
getScrollParent: null
|
|
1663
1663
|
};
|
|
1664
|
-
exports.default = InfiniteScroll;
|
|
1665
|
-
module.exports = exports['default'];
|
|
1664
|
+
exports$1.default = InfiniteScroll;
|
|
1665
|
+
module.exports = exports$1['default'];
|
|
1666
1666
|
} (InfiniteScroll, InfiniteScroll.exports));
|
|
1667
1667
|
|
|
1668
1668
|
var InfiniteScrollExports = InfiniteScroll.exports;
|
|
@@ -2042,7 +2042,7 @@ var unsplashApi = {
|
|
|
2042
2042
|
};
|
|
2043
2043
|
|
|
2044
2044
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2045
|
-
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t),
|
|
2045
|
+
function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2046
2046
|
var UNSPLASH_LIST = query.QUERY_KEYS.UNSPLASH_LIST;
|
|
2047
2047
|
var useFetchUnsplashImages = function useFetchUnsplashImages(_ref) {
|
|
2048
2048
|
var query$1 = _ref.query;
|
|
@@ -2211,7 +2211,7 @@ var ImageLibrary = function ImageLibrary(_ref) {
|
|
|
2211
2211
|
};
|
|
2212
2212
|
|
|
2213
2213
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
2214
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
2214
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
2215
2215
|
var Modal = function Modal(_ref) {
|
|
2216
2216
|
var isOpen = _ref.isOpen,
|
|
2217
2217
|
_ref$onClose = _ref.onClose,
|
|
@@ -2410,4 +2410,4 @@ var Modal = function Modal(_ref) {
|
|
|
2410
2410
|
|
|
2411
2411
|
exports.Modal = Modal;
|
|
2412
2412
|
exports.constructCloudflareImageURL = constructCloudflareImageURL;
|
|
2413
|
-
//# sourceMappingURL=index-
|
|
2413
|
+
//# sourceMappingURL=index-CjVmJmv5.js.map
|