@bigbinary/neeto-image-uploader-frontend 3.0.6 → 3.0.8-beta.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.
- package/app/javascript/src/translations/ar.json +2 -1
- package/app/javascript/src/translations/bg.json +2 -1
- package/app/javascript/src/translations/ca.json +2 -1
- package/app/javascript/src/translations/cs.json +2 -1
- package/app/javascript/src/translations/da.json +2 -1
- package/app/javascript/src/translations/de.json +2 -1
- package/app/javascript/src/translations/en.json +1 -0
- package/app/javascript/src/translations/es-MX.json +2 -1
- package/app/javascript/src/translations/es.json +2 -1
- package/app/javascript/src/translations/et.json +2 -1
- package/app/javascript/src/translations/fi.json +2 -1
- package/app/javascript/src/translations/fil.json +2 -1
- package/app/javascript/src/translations/fr.json +2 -1
- package/app/javascript/src/translations/he.json +2 -1
- package/app/javascript/src/translations/hi.json +2 -1
- package/app/javascript/src/translations/hr.json +2 -1
- package/app/javascript/src/translations/hu.json +2 -1
- package/app/javascript/src/translations/id.json +2 -1
- package/app/javascript/src/translations/it.json +2 -1
- package/app/javascript/src/translations/ja.json +2 -1
- package/app/javascript/src/translations/ko.json +2 -1
- package/app/javascript/src/translations/nl.json +2 -1
- package/app/javascript/src/translations/pl.json +2 -1
- package/app/javascript/src/translations/pt-BR.json +2 -1
- package/app/javascript/src/translations/pt.json +2 -1
- package/app/javascript/src/translations/ro.json +2 -1
- package/app/javascript/src/translations/ru.json +2 -1
- package/app/javascript/src/translations/sk.json +2 -1
- package/app/javascript/src/translations/sl.json +2 -1
- package/app/javascript/src/translations/sv.json +2 -1
- package/app/javascript/src/translations/th.json +2 -1
- package/app/javascript/src/translations/tr.json +2 -1
- package/app/javascript/src/translations/uk.json +2 -1
- package/app/javascript/src/translations/vi.json +2 -1
- package/app/javascript/src/translations/zh-CN.json +2 -1
- package/app/javascript/src/translations/zh-TW.json +2 -1
- 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 +15 -10
- 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 +15 -10
- 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
|
@@ -10,9 +10,9 @@ import Toastr from '@bigbinary/neetoui/Toastr';
|
|
|
10
10
|
import Typography from '@bigbinary/neetoui/Typography';
|
|
11
11
|
import { mergeRight, identity, isEmpty, prop, equals } from 'ramda';
|
|
12
12
|
import { useTranslation, Trans } from 'react-i18next';
|
|
13
|
-
import {
|
|
14
|
-
import { u as useImageUploader, a as useCreateBlob, i as isGif, g as generateASCIIFileName } from './useImageUploader-
|
|
15
|
-
import { b as IMAGE_UPLOADER_BASE_URL, I as IS_DEVELOPMENT_OR_HEROKU_ENV, C as CLOUD_FLARE } from './imagekit.esm-
|
|
13
|
+
import { b as isNilOrEmpty, c as DEFAULT_CROP_CONFIG, g as getAspectRatio, d as getPixels, e as getHeightFromAspectRatio, f as getWidthFromAspectRatio, h as getInitialCropSize, j as getPercentage, k as getWrapperRefStyles, l as isItemsCenter, m as getCloudFlareCroppedURL, n as getImageKitCroppedURL, o as getCropValues, p as IMAGES_PER_PAGE, q as INFINITE_SCROLLER_STYLE, r as INFINITE_SCROLLER_SIZES, T as TABS, A as ASSETS_DESTROY_URL, s as ASSETS_FETCH_URL, U as UNSPLASH_DEFAULT_NAME, t as UNSPLASH_DEFAULT_REQUEST_CONFIG, D as DEFAULT_UPLOAD_CONFIG, u as useUploadDropzone, v as UNSPLASH_URL, a as ImageDirectUpload } from './utils-YicuhSoR.js';
|
|
14
|
+
import { u as useImageUploader, a as useCreateBlob, i as isGif, g as generateASCIIFileName } from './useImageUploader-BLOdyAwv.js';
|
|
15
|
+
import { b as IMAGE_UPLOADER_BASE_URL, I as IS_DEVELOPMENT_OR_HEROKU_ENV, C as CLOUD_FLARE } from './imagekit.esm-CXW6c1fP.js';
|
|
16
16
|
import classnames from 'classnames';
|
|
17
17
|
import LeftArrow from '@bigbinary/neeto-icons/LeftArrow';
|
|
18
18
|
import Button from '@bigbinary/neetoui/Button';
|
|
@@ -25,7 +25,7 @@ import Switch from '@bigbinary/neetoui/Switch';
|
|
|
25
25
|
import Label from '@bigbinary/neetoui/Label';
|
|
26
26
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
27
27
|
import NoData from '@bigbinary/neetoui/NoData';
|
|
28
|
-
import {
|
|
28
|
+
import { A as ASSETS_STALE_TIME, Q as QUERY_KEYS, U as UNSPLASH_STALE_TIME } from './query-BJnGLX4z.js';
|
|
29
29
|
import MenuHorizontal from '@bigbinary/neeto-icons/MenuHorizontal';
|
|
30
30
|
import { VIEW_ROLES_PERMISSION } from '@bigbinary/neeto-team-members-frontend/constants';
|
|
31
31
|
import Alert from '@bigbinary/neetoui/Alert';
|
|
@@ -38,7 +38,7 @@ var constructCloudflareImageURL = function constructCloudflareImageURL(url) {
|
|
|
38
38
|
return url.replace("https://imagedelivery.net", "https://images.".concat(domain, "/cdn-cgi/imagedelivery"));
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s
|
|
41
|
+
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}}
|
|
42
42
|
|
|
43
43
|
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== */";
|
|
44
44
|
n(css$2,{});
|
|
@@ -99,19 +99,19 @@ function K(s, t, e, o) {
|
|
|
99
99
|
const i = { ...s };
|
|
100
100
|
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;
|
|
101
101
|
}
|
|
102
|
-
const b = { capture:
|
|
102
|
+
const b = { capture: true, passive: false }, v = class m extends PureComponent {
|
|
103
103
|
constructor() {
|
|
104
|
-
super(...arguments), this.docMoveBound =
|
|
104
|
+
super(...arguments), this.docMoveBound = false, this.mouseDownOnCrop = false, this.dragStarted = false, this.evData = {
|
|
105
105
|
startClientX: 0,
|
|
106
106
|
startClientY: 0,
|
|
107
107
|
startCropX: 0,
|
|
108
108
|
startCropY: 0,
|
|
109
109
|
clientX: 0,
|
|
110
110
|
clientY: 0,
|
|
111
|
-
isResize:
|
|
112
|
-
}, this.componentRef = createRef(), this.mediaRef = createRef(), this.initChangeCalled =
|
|
113
|
-
cropIsActive:
|
|
114
|
-
newCropIsBeingDrawn:
|
|
111
|
+
isResize: true
|
|
112
|
+
}, this.componentRef = createRef(), this.mediaRef = createRef(), this.initChangeCalled = false, this.state = {
|
|
113
|
+
cropIsActive: false,
|
|
114
|
+
newCropIsBeingDrawn: false
|
|
115
115
|
}, this.onCropPointerDown = (t) => {
|
|
116
116
|
const { crop: e, disabled: o } = this.props, i = this.getBox();
|
|
117
117
|
if (!e)
|
|
@@ -119,7 +119,7 @@ const b = { capture: !0, passive: !1 }, v = class m extends PureComponent {
|
|
|
119
119
|
const n = y(e, i.width, i.height);
|
|
120
120
|
if (o)
|
|
121
121
|
return;
|
|
122
|
-
t.cancelable && t.preventDefault(), this.bindDocMove(), this.componentRef.current.focus({ preventScroll:
|
|
122
|
+
t.cancelable && t.preventDefault(), this.bindDocMove(), this.componentRef.current.focus({ preventScroll: true });
|
|
123
123
|
const a = t.target.dataset.ord, w = !!a;
|
|
124
124
|
let h = t.clientX, r = t.clientY, c = n.x, d = n.y;
|
|
125
125
|
if (a) {
|
|
@@ -136,12 +136,12 @@ const b = { capture: !0, passive: !1 }, v = class m extends PureComponent {
|
|
|
136
136
|
clientY: t.clientY,
|
|
137
137
|
isResize: w,
|
|
138
138
|
ord: a
|
|
139
|
-
}, this.mouseDownOnCrop =
|
|
139
|
+
}, this.mouseDownOnCrop = true, this.setState({ cropIsActive: true });
|
|
140
140
|
}, this.onComponentPointerDown = (t) => {
|
|
141
141
|
const { crop: e, disabled: o, locked: i, keepSelection: n, onChange: a } = this.props, w = this.getBox();
|
|
142
142
|
if (o || i || n && e)
|
|
143
143
|
return;
|
|
144
|
-
t.cancelable && t.preventDefault(), this.bindDocMove(), this.componentRef.current.focus({ preventScroll:
|
|
144
|
+
t.cancelable && t.preventDefault(), this.bindDocMove(), this.componentRef.current.focus({ preventScroll: true });
|
|
145
145
|
const h = t.clientX - w.x, r = t.clientY - w.y, c = {
|
|
146
146
|
unit: "px",
|
|
147
147
|
x: h,
|
|
@@ -156,13 +156,13 @@ const b = { capture: !0, passive: !1 }, v = class m extends PureComponent {
|
|
|
156
156
|
startCropY: r,
|
|
157
157
|
clientX: t.clientX,
|
|
158
158
|
clientY: t.clientY,
|
|
159
|
-
isResize:
|
|
160
|
-
}, this.mouseDownOnCrop =
|
|
159
|
+
isResize: true
|
|
160
|
+
}, this.mouseDownOnCrop = true, a(y(c, w.width, w.height), D(c, w.width, w.height)), this.setState({ cropIsActive: true, newCropIsBeingDrawn: true });
|
|
161
161
|
}, this.onDocPointerMove = (t) => {
|
|
162
162
|
const { crop: e, disabled: o, onChange: i, onDragStart: n } = this.props, a = this.getBox();
|
|
163
163
|
if (o || !e || !this.mouseDownOnCrop)
|
|
164
164
|
return;
|
|
165
|
-
t.cancelable && t.preventDefault(), this.dragStarted || (this.dragStarted =
|
|
165
|
+
t.cancelable && t.preventDefault(), this.dragStarted || (this.dragStarted = true, n && n(t));
|
|
166
166
|
const { evData: w } = this;
|
|
167
167
|
w.clientX = t.clientX, w.clientY = t.clientY;
|
|
168
168
|
let h;
|
|
@@ -175,11 +175,11 @@ const b = { capture: !0, passive: !1 }, v = class m extends PureComponent {
|
|
|
175
175
|
if (o)
|
|
176
176
|
return;
|
|
177
177
|
const a = t.key;
|
|
178
|
-
let w =
|
|
178
|
+
let w = false;
|
|
179
179
|
if (!e)
|
|
180
180
|
return;
|
|
181
181
|
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;
|
|
182
|
-
if (a === "ArrowLeft" ? (r.x -= d, w =
|
|
182
|
+
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) {
|
|
183
183
|
t.cancelable && t.preventDefault(), r.x = f(r.x, 0, h.width - r.width), r.y = f(r.y, 0, h.height - r.height);
|
|
184
184
|
const p = y(r, h.width, h.height), l = D(r, h.width, h.height);
|
|
185
185
|
i(p, l), n && n(p, l);
|
|
@@ -219,7 +219,7 @@ const b = { capture: !0, passive: !1 }, v = class m extends PureComponent {
|
|
|
219
219
|
}
|
|
220
220
|
}, this.onDocPointerDone = (t) => {
|
|
221
221
|
const { crop: e, disabled: o, onComplete: i, onDragEnd: n } = this.props, a = this.getBox();
|
|
222
|
-
this.unbindDocMove(), !(o || !e) && this.mouseDownOnCrop && (this.mouseDownOnCrop =
|
|
222
|
+
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 }));
|
|
223
223
|
}, this.onDragFocus = (t) => {
|
|
224
224
|
var e;
|
|
225
225
|
(e = this.componentRef.current) == null || e.scrollTo(0, 0);
|
|
@@ -248,10 +248,10 @@ const b = { capture: !0, passive: !1 }, v = class m extends PureComponent {
|
|
|
248
248
|
this.resizeObserver && this.resizeObserver.disconnect();
|
|
249
249
|
}
|
|
250
250
|
bindDocMove() {
|
|
251
|
-
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 =
|
|
251
|
+
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);
|
|
252
252
|
}
|
|
253
253
|
unbindDocMove() {
|
|
254
|
-
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 =
|
|
254
|
+
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);
|
|
255
255
|
}
|
|
256
256
|
getCropStyle() {
|
|
257
257
|
const { crop: t } = this.props;
|
|
@@ -461,7 +461,7 @@ var developmentApi = {
|
|
|
461
461
|
};
|
|
462
462
|
|
|
463
463
|
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; }
|
|
464
|
-
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),
|
|
464
|
+
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; }
|
|
465
465
|
var useCropImage = function useCropImage(options) {
|
|
466
466
|
return useMutation(_objectSpread$3({
|
|
467
467
|
mutationFn: developmentApi.cropImage
|
|
@@ -908,7 +908,7 @@ var imagesApi = {
|
|
|
908
908
|
};
|
|
909
909
|
|
|
910
910
|
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; }
|
|
911
|
-
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),
|
|
911
|
+
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; }
|
|
912
912
|
var useFetchAssets = function useFetchAssets(_ref) {
|
|
913
913
|
var searchTerm = _ref.searchTerm,
|
|
914
914
|
url = _ref.url,
|
|
@@ -1363,9 +1363,9 @@ var require$$2 = /*@__PURE__*/getAugmentedNamespace(bricks_module);
|
|
|
1363
1363
|
|
|
1364
1364
|
var InfiniteScroll = {exports: {}};
|
|
1365
1365
|
|
|
1366
|
-
(function (module, exports) {
|
|
1366
|
+
(function (module, exports$1) {
|
|
1367
1367
|
|
|
1368
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1368
|
+
Object.defineProperty(exports$1, "__esModule", {
|
|
1369
1369
|
value: true
|
|
1370
1370
|
});
|
|
1371
1371
|
|
|
@@ -1659,8 +1659,8 @@ var InfiniteScroll = {exports: {}};
|
|
|
1659
1659
|
loader: null,
|
|
1660
1660
|
getScrollParent: null
|
|
1661
1661
|
};
|
|
1662
|
-
exports.default = InfiniteScroll;
|
|
1663
|
-
module.exports = exports['default'];
|
|
1662
|
+
exports$1.default = InfiniteScroll;
|
|
1663
|
+
module.exports = exports$1['default'];
|
|
1664
1664
|
} (InfiniteScroll, InfiniteScroll.exports));
|
|
1665
1665
|
|
|
1666
1666
|
var InfiniteScrollExports = InfiniteScroll.exports;
|
|
@@ -2040,7 +2040,7 @@ var unsplashApi = {
|
|
|
2040
2040
|
};
|
|
2041
2041
|
|
|
2042
2042
|
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; }
|
|
2043
|
-
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),
|
|
2043
|
+
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; }
|
|
2044
2044
|
var UNSPLASH_LIST = QUERY_KEYS.UNSPLASH_LIST;
|
|
2045
2045
|
var useFetchUnsplashImages = function useFetchUnsplashImages(_ref) {
|
|
2046
2046
|
var query = _ref.query;
|
|
@@ -2209,7 +2209,7 @@ var ImageLibrary = function ImageLibrary(_ref) {
|
|
|
2209
2209
|
};
|
|
2210
2210
|
|
|
2211
2211
|
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; }
|
|
2212
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t),
|
|
2212
|
+
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; }
|
|
2213
2213
|
var Modal = function Modal(_ref) {
|
|
2214
2214
|
var isOpen = _ref.isOpen,
|
|
2215
2215
|
_ref$onClose = _ref.onClose,
|
|
@@ -2407,4 +2407,4 @@ var Modal = function Modal(_ref) {
|
|
|
2407
2407
|
};
|
|
2408
2408
|
|
|
2409
2409
|
export { Modal as M, constructCloudflareImageURL as c };
|
|
2410
|
-
//# sourceMappingURL=index-
|
|
2410
|
+
//# sourceMappingURL=index-BGVHZZys.js.map
|