@atlaskit/editor-extension-dropbox 0.4.46 → 0.4.48
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/CHANGELOG.md
CHANGED
|
@@ -394,7 +394,7 @@ Please reach out to the Editor team if you need more information
|
|
|
394
394
|
return e.error("The sizeLimit option, if provided, must be a positive number");
|
|
395
395
|
}), e;
|
|
396
396
|
},
|
|
397
|
-
|
|
397
|
+
_l2 = function l(e) {
|
|
398
398
|
if (Dropbox.isBrowserSupported()) {
|
|
399
399
|
var o,
|
|
400
400
|
r,
|
|
@@ -404,12 +404,12 @@ Please reach out to the Editor team if you need more information
|
|
|
404
404
|
a.style.width = "735px", a.style.height = "552px", a.style.margin = "125px auto 0 auto", a.style.border = "1px solid #ACACAC", a.style.boxShadow = "rgba(0, 0, 0, .2) 0px 4px 16px";
|
|
405
405
|
var c = document.createElement("div");
|
|
406
406
|
c.style.position = "fixed", c.style.left = c.style.right = c.style.top = c.style.bottom = "0", c.style.zIndex = "1000", c.style.backgroundColor = "rgba(160, 160, 160, 0.2)", c.appendChild(a), document.body.appendChild(c);
|
|
407
|
-
var
|
|
407
|
+
var _l = function l(e) {
|
|
408
408
|
e.source === a.contentWindow && (s.onClose = function () {
|
|
409
|
-
document.body.removeChild(c), Dropbox.removeListener(window, "message",
|
|
409
|
+
document.body.removeChild(c), Dropbox.removeListener(window, "message", _l);
|
|
410
410
|
}, t.handleMessageEvent(e, s.onClose, s.options));
|
|
411
411
|
};
|
|
412
|
-
Dropbox.addListener(window, "message",
|
|
412
|
+
Dropbox.addListener(window, "message", _l);
|
|
413
413
|
} else {
|
|
414
414
|
var u = t.popupDimensionsString(735, 552);
|
|
415
415
|
s.onClose = n(t.chooserUrl(s.options, s.options.iframe), u, s.options).onClose;
|
|
@@ -417,7 +417,7 @@ Please reach out to the Editor team if you need more information
|
|
|
417
417
|
} else alert(i("Your browser does not support the Dropbox Chooser"));
|
|
418
418
|
};
|
|
419
419
|
Dropbox.choose = function (e) {
|
|
420
|
-
null == e && (e = {}), e = a(e),
|
|
420
|
+
null == e && (e = {}), e = a(e), _l2(e);
|
|
421
421
|
}, Dropbox.cancelChooser = function () {
|
|
422
422
|
t.currentChooserSession && (t.currentChooserSession.onClose && t.currentChooserSession.onClose(), t.currentChooserSession.options.cancel && t.currentChooserSession.options.cancel(t.last_navigation));
|
|
423
423
|
}, Dropbox.isBrowserSupported = function () {
|
|
@@ -432,7 +432,7 @@ Please reach out to the Editor team if you need more information
|
|
|
432
432
|
null == e && (e = {}), e = a(e);
|
|
433
433
|
var o = s(i("Choose from Dropbox"));
|
|
434
434
|
return Dropbox.addListener(o, "click", function (n) {
|
|
435
|
-
n.preventDefault(),
|
|
435
|
+
n.preventDefault(), _l2({
|
|
436
436
|
success: function success(n, t) {
|
|
437
437
|
o.className = "dropbox-dropin-btn dropbox-dropin-success", "function" == typeof e.success && e.success(n, t);
|
|
438
438
|
},
|
|
@@ -480,10 +480,10 @@ Please reach out to the Editor team if you need more information
|
|
|
480
480
|
p.type = "text/css";
|
|
481
481
|
var d = ' @-webkit-keyframes rotate {\n from { -webkit-transform: rotate(0deg); }\n to { -webkit-transform: rotate(360deg); }\n }\n\n @keyframes rotate {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n\n .dropbox-dropin-btn, .dropbox-dropin-btn:link, .dropbox-dropin-btn:hover {\n display: inline-block;\n height: 14px;\n font-family: "Lucida Grande", "Segoe UI", "Tahoma", "Helvetica Neue", "Helvetica", sans-serif;\n font-size: 11px;\n font-weight: 600;\n color: #636363;\n text-decoration: none;\n padding: 1px 7px 5px 3px;\n border: 1px solid #ebebeb;\n border-radius: 2px;\n border-bottom-color: #d4d4d4;\n ' + u("#fcfcfc", "#f5f5f5") + "\n }\n\n .dropbox-dropin-default:hover, .dropbox-dropin-error:hover {\n border-color: #dedede;\n border-bottom-color: #cacaca;\n " + u("#fdfdfd", "#f5f5f5") + "\n }\n\n .dropbox-dropin-default:active, .dropbox-dropin-error:active {\n border-color: #d1d1d1;\n box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);\n }\n\n .dropbox-dropin-btn .dropin-btn-status {\n display: inline-block;\n width: 15px;\n height: 14px;\n vertical-align: bottom;\n margin: 0 5px 0 2px;\n background: transparent url('" + Dropbox.baseUrl + "/static/images/widgets/dbx-saver-status.png') no-repeat;\n position: relative;\n top: 2px;\n }\n\n .dropbox-dropin-default .dropin-btn-status {\n background-position: 0px 0px;\n }\n\n .dropbox-dropin-progress .dropin-btn-status {\n width: 18px;\n margin: 0 4px 0 0;\n background: url('" + Dropbox.baseUrl + "/static/images/widgets/dbx-progress.png') no-repeat center center;\n -webkit-animation-name: rotate;\n -webkit-animation-duration: 1.7s;\n -webkit-animation-iteration-count: infinite;\n -webkit-animation-timing-function: linear;\n animation-name: rotate;\n animation-duration: 1.7s;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n }\n\n .dropbox-dropin-success .dropin-btn-status {\n background-position: -15px 0px;\n }\n\n .dropbox-dropin-disabled {\n background: #e0e0e0;\n border: 1px #dadada solid;\n border-bottom: 1px solid #ccc;\n box-shadow: none;\n }\n\n .dropbox-dropin-disabled .dropin-btn-status {\n background-position: -30px 0px;\n }\n\n .dropbox-dropin-error .dropin-btn-status {\n background-position: -45px 0px;\n }\n\n @media only screen and (-webkit-min-device-pixel-ratio: 1.4) {\n .dropbox-dropin-btn .dropin-btn-status {\n background-image: url('" + Dropbox.baseUrl + "/static/images/widgets/dbx-saver-status-2x.png');\n background-size: 60px 14px;\n -webkit-background-size: 60px 14px;\n }\n\n .dropbox-dropin-progress .dropin-btn-status {\n background: url('" + Dropbox.baseUrl + "/static/images/widgets/dbx-progress-2x.png') no-repeat center center;\n background-size: 20px 20px;\n -webkit-background-size: 20px 20px;\n }\n }\n\n .dropbox-saver:hover, .dropbox-chooser:hover {\n text-decoration: none;\n cursor: pointer;\n }\n\n .dropbox-chooser, .dropbox-dropin-btn {\n line-height: 11px !important;\n text-decoration: none !important;\n box-sizing: content-box !important;\n -webkit-box-sizing: content-box !important;\n -moz-box-sizing: content-box !important;\n }\n ";
|
|
482
482
|
p.styleSheet ? p.styleSheet.cssText = d : p.textContent = d, document.getElementsByTagName("head")[0].appendChild(p), setTimeout(t.createIEFrame, 0);
|
|
483
|
-
var
|
|
484
|
-
document.removeEventListener ? document.removeEventListener("DOMContentLoaded",
|
|
483
|
+
var _f = function f() {
|
|
484
|
+
document.removeEventListener ? document.removeEventListener("DOMContentLoaded", _f, !1) : document.detachEvent && document.detachEvent("onreadystatechange", _f), t.createIEFrame(), o.genericDropins.init();
|
|
485
485
|
};
|
|
486
|
-
"interactive" === document.readyState || "complete" === document.readyState ? setTimeout(
|
|
486
|
+
"interactive" === document.readyState || "complete" === document.readyState ? setTimeout(_f, 0) : document.addEventListener ? document.addEventListener("DOMContentLoaded", _f, !1) : document.attachEvent("onreadystatechange", _f);
|
|
487
487
|
};
|
|
488
488
|
}, function (e, o, n) {
|
|
489
489
|
"use strict";
|
|
@@ -387,7 +387,7 @@ Please reach out to the Editor team if you need more information
|
|
|
387
387
|
return e.error("The sizeLimit option, if provided, must be a positive number");
|
|
388
388
|
}), e;
|
|
389
389
|
},
|
|
390
|
-
|
|
390
|
+
_l2 = function l(e) {
|
|
391
391
|
if (Dropbox.isBrowserSupported()) {
|
|
392
392
|
var o,
|
|
393
393
|
r,
|
|
@@ -397,12 +397,12 @@ Please reach out to the Editor team if you need more information
|
|
|
397
397
|
a.style.width = "735px", a.style.height = "552px", a.style.margin = "125px auto 0 auto", a.style.border = "1px solid #ACACAC", a.style.boxShadow = "rgba(0, 0, 0, .2) 0px 4px 16px";
|
|
398
398
|
var c = document.createElement("div");
|
|
399
399
|
c.style.position = "fixed", c.style.left = c.style.right = c.style.top = c.style.bottom = "0", c.style.zIndex = "1000", c.style.backgroundColor = "rgba(160, 160, 160, 0.2)", c.appendChild(a), document.body.appendChild(c);
|
|
400
|
-
var
|
|
400
|
+
var _l = function l(e) {
|
|
401
401
|
e.source === a.contentWindow && (s.onClose = function () {
|
|
402
|
-
document.body.removeChild(c), Dropbox.removeListener(window, "message",
|
|
402
|
+
document.body.removeChild(c), Dropbox.removeListener(window, "message", _l);
|
|
403
403
|
}, t.handleMessageEvent(e, s.onClose, s.options));
|
|
404
404
|
};
|
|
405
|
-
Dropbox.addListener(window, "message",
|
|
405
|
+
Dropbox.addListener(window, "message", _l);
|
|
406
406
|
} else {
|
|
407
407
|
var u = t.popupDimensionsString(735, 552);
|
|
408
408
|
s.onClose = n(t.chooserUrl(s.options, s.options.iframe), u, s.options).onClose;
|
|
@@ -410,7 +410,7 @@ Please reach out to the Editor team if you need more information
|
|
|
410
410
|
} else alert(i("Your browser does not support the Dropbox Chooser"));
|
|
411
411
|
};
|
|
412
412
|
Dropbox.choose = function (e) {
|
|
413
|
-
null == e && (e = {}), e = a(e),
|
|
413
|
+
null == e && (e = {}), e = a(e), _l2(e);
|
|
414
414
|
}, Dropbox.cancelChooser = function () {
|
|
415
415
|
t.currentChooserSession && (t.currentChooserSession.onClose && t.currentChooserSession.onClose(), t.currentChooserSession.options.cancel && t.currentChooserSession.options.cancel(t.last_navigation));
|
|
416
416
|
}, Dropbox.isBrowserSupported = function () {
|
|
@@ -425,7 +425,7 @@ Please reach out to the Editor team if you need more information
|
|
|
425
425
|
null == e && (e = {}), e = a(e);
|
|
426
426
|
var o = s(i("Choose from Dropbox"));
|
|
427
427
|
return Dropbox.addListener(o, "click", function (n) {
|
|
428
|
-
n.preventDefault(),
|
|
428
|
+
n.preventDefault(), _l2({
|
|
429
429
|
success: function success(n, t) {
|
|
430
430
|
o.className = "dropbox-dropin-btn dropbox-dropin-success", "function" == typeof e.success && e.success(n, t);
|
|
431
431
|
},
|
|
@@ -473,10 +473,10 @@ Please reach out to the Editor team if you need more information
|
|
|
473
473
|
p.type = "text/css";
|
|
474
474
|
var d = ' @-webkit-keyframes rotate {\n from { -webkit-transform: rotate(0deg); }\n to { -webkit-transform: rotate(360deg); }\n }\n\n @keyframes rotate {\n from { transform: rotate(0deg); }\n to { transform: rotate(360deg); }\n }\n\n .dropbox-dropin-btn, .dropbox-dropin-btn:link, .dropbox-dropin-btn:hover {\n display: inline-block;\n height: 14px;\n font-family: "Lucida Grande", "Segoe UI", "Tahoma", "Helvetica Neue", "Helvetica", sans-serif;\n font-size: 11px;\n font-weight: 600;\n color: #636363;\n text-decoration: none;\n padding: 1px 7px 5px 3px;\n border: 1px solid #ebebeb;\n border-radius: 2px;\n border-bottom-color: #d4d4d4;\n ' + u("#fcfcfc", "#f5f5f5") + "\n }\n\n .dropbox-dropin-default:hover, .dropbox-dropin-error:hover {\n border-color: #dedede;\n border-bottom-color: #cacaca;\n " + u("#fdfdfd", "#f5f5f5") + "\n }\n\n .dropbox-dropin-default:active, .dropbox-dropin-error:active {\n border-color: #d1d1d1;\n box-shadow: inset 0 1px 1px rgba(0,0,0,0.1);\n }\n\n .dropbox-dropin-btn .dropin-btn-status {\n display: inline-block;\n width: 15px;\n height: 14px;\n vertical-align: bottom;\n margin: 0 5px 0 2px;\n background: transparent url('" + Dropbox.baseUrl + "/static/images/widgets/dbx-saver-status.png') no-repeat;\n position: relative;\n top: 2px;\n }\n\n .dropbox-dropin-default .dropin-btn-status {\n background-position: 0px 0px;\n }\n\n .dropbox-dropin-progress .dropin-btn-status {\n width: 18px;\n margin: 0 4px 0 0;\n background: url('" + Dropbox.baseUrl + "/static/images/widgets/dbx-progress.png') no-repeat center center;\n -webkit-animation-name: rotate;\n -webkit-animation-duration: 1.7s;\n -webkit-animation-iteration-count: infinite;\n -webkit-animation-timing-function: linear;\n animation-name: rotate;\n animation-duration: 1.7s;\n animation-iteration-count: infinite;\n animation-timing-function: linear;\n }\n\n .dropbox-dropin-success .dropin-btn-status {\n background-position: -15px 0px;\n }\n\n .dropbox-dropin-disabled {\n background: #e0e0e0;\n border: 1px #dadada solid;\n border-bottom: 1px solid #ccc;\n box-shadow: none;\n }\n\n .dropbox-dropin-disabled .dropin-btn-status {\n background-position: -30px 0px;\n }\n\n .dropbox-dropin-error .dropin-btn-status {\n background-position: -45px 0px;\n }\n\n @media only screen and (-webkit-min-device-pixel-ratio: 1.4) {\n .dropbox-dropin-btn .dropin-btn-status {\n background-image: url('" + Dropbox.baseUrl + "/static/images/widgets/dbx-saver-status-2x.png');\n background-size: 60px 14px;\n -webkit-background-size: 60px 14px;\n }\n\n .dropbox-dropin-progress .dropin-btn-status {\n background: url('" + Dropbox.baseUrl + "/static/images/widgets/dbx-progress-2x.png') no-repeat center center;\n background-size: 20px 20px;\n -webkit-background-size: 20px 20px;\n }\n }\n\n .dropbox-saver:hover, .dropbox-chooser:hover {\n text-decoration: none;\n cursor: pointer;\n }\n\n .dropbox-chooser, .dropbox-dropin-btn {\n line-height: 11px !important;\n text-decoration: none !important;\n box-sizing: content-box !important;\n -webkit-box-sizing: content-box !important;\n -moz-box-sizing: content-box !important;\n }\n ";
|
|
475
475
|
p.styleSheet ? p.styleSheet.cssText = d : p.textContent = d, document.getElementsByTagName("head")[0].appendChild(p), setTimeout(t.createIEFrame, 0);
|
|
476
|
-
var
|
|
477
|
-
document.removeEventListener ? document.removeEventListener("DOMContentLoaded",
|
|
476
|
+
var _f = function f() {
|
|
477
|
+
document.removeEventListener ? document.removeEventListener("DOMContentLoaded", _f, !1) : document.detachEvent && document.detachEvent("onreadystatechange", _f), t.createIEFrame(), o.genericDropins.init();
|
|
478
478
|
};
|
|
479
|
-
"interactive" === document.readyState || "complete" === document.readyState ? setTimeout(
|
|
479
|
+
"interactive" === document.readyState || "complete" === document.readyState ? setTimeout(_f, 0) : document.addEventListener ? document.addEventListener("DOMContentLoaded", _f, !1) : document.attachEvent("onreadystatechange", _f);
|
|
480
480
|
};
|
|
481
481
|
}, function (e, o, n) {
|
|
482
482
|
"use strict";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: () => React.JSX.Element;
|
|
3
3
|
export default _default;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default: () => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: () => React.JSX.Element;
|
|
3
3
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-extension-dropbox",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.48",
|
|
4
4
|
"description": "A an atlassian editor extension to add a native dropbox picker",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"runReact18": true
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@atlaskit/adf-utils": "^19.
|
|
43
|
-
"@atlaskit/button": "^20.
|
|
44
|
-
"@atlaskit/editor-common": "^99.
|
|
45
|
-
"@atlaskit/heading": "4.0
|
|
46
|
-
"@atlaskit/icon": "^23.
|
|
47
|
-
"@atlaskit/modal-dialog": "^12.
|
|
48
|
-
"@atlaskit/primitives": "^13.
|
|
49
|
-
"@atlaskit/tokens": "^3.
|
|
42
|
+
"@atlaskit/adf-utils": "^19.18.0",
|
|
43
|
+
"@atlaskit/button": "^20.5.0",
|
|
44
|
+
"@atlaskit/editor-common": "^99.17.0",
|
|
45
|
+
"@atlaskit/heading": "4.2.0",
|
|
46
|
+
"@atlaskit/icon": "^23.9.0",
|
|
47
|
+
"@atlaskit/modal-dialog": "^12.20.0",
|
|
48
|
+
"@atlaskit/primitives": "^13.5.0",
|
|
49
|
+
"@atlaskit/tokens": "^3.3.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1"
|
|
52
52
|
},
|