@atlaskit/editor-extension-dropbox 0.4.41 → 0.4.43
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 +12 -0
- package/dist/cjs/manifest.js +35 -32
- package/dist/es2019/index.js +2 -0
- package/dist/es2019/manifest.js +3 -1
- package/dist/esm/enable-dropbox.js +2 -2
- package/dist/esm/index.js +2 -0
- package/dist/esm/manifest.js +35 -32
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
package/dist/cjs/manifest.js
CHANGED
|
@@ -145,38 +145,41 @@ var manifestFunction = function manifestFunction(_ref) {
|
|
|
145
145
|
quickInsert: [{
|
|
146
146
|
key: 'item',
|
|
147
147
|
action: function action() {
|
|
148
|
-
return
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
148
|
+
return (
|
|
149
|
+
// eslint-disable-next-line no-async-promise-executor
|
|
150
|
+
new Promise( /*#__PURE__*/function () {
|
|
151
|
+
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(resolve, reject) {
|
|
152
|
+
var newNode;
|
|
153
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
154
|
+
while (1) switch (_context.prev = _context.next) {
|
|
155
|
+
case 0:
|
|
156
|
+
_context.prev = 0;
|
|
157
|
+
_context.next = 3;
|
|
158
|
+
return pickFromDropbox(appKey, canMountinIframe);
|
|
159
|
+
case 3:
|
|
160
|
+
newNode = _context.sent;
|
|
161
|
+
if (!newNode) {
|
|
162
|
+
reject();
|
|
163
|
+
} else {
|
|
164
|
+
resolve(newNode);
|
|
165
|
+
}
|
|
166
|
+
_context.next = 10;
|
|
167
|
+
break;
|
|
168
|
+
case 7:
|
|
169
|
+
_context.prev = 7;
|
|
170
|
+
_context.t0 = _context["catch"](0);
|
|
171
|
+
reject(_context.t0);
|
|
172
|
+
case 10:
|
|
173
|
+
case "end":
|
|
174
|
+
return _context.stop();
|
|
175
|
+
}
|
|
176
|
+
}, _callee, null, [[0, 7]]);
|
|
177
|
+
}));
|
|
178
|
+
return function (_x3, _x4) {
|
|
179
|
+
return _ref2.apply(this, arguments);
|
|
180
|
+
};
|
|
181
|
+
}())
|
|
182
|
+
);
|
|
180
183
|
}
|
|
181
184
|
}]
|
|
182
185
|
}
|
package/dist/es2019/index.js
CHANGED
package/dist/es2019/manifest.js
CHANGED
|
@@ -85,7 +85,9 @@ const manifestFunction = ({
|
|
|
85
85
|
modules: {
|
|
86
86
|
quickInsert: [{
|
|
87
87
|
key: 'item',
|
|
88
|
-
action: () =>
|
|
88
|
+
action: () =>
|
|
89
|
+
// eslint-disable-next-line no-async-promise-executor
|
|
90
|
+
new Promise(async (resolve, reject) => {
|
|
89
91
|
try {
|
|
90
92
|
let newNode = await pickFromDropbox(appKey, canMountinIframe);
|
|
91
93
|
if (!newNode) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
|
2
2
|
import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
3
|
-
export default ( /*#__PURE__*/function () {
|
|
3
|
+
export default ( /*#__PURE__*/(function () {
|
|
4
4
|
var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(appKey) {
|
|
5
5
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
6
6
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -24,4 +24,4 @@ export default ( /*#__PURE__*/function () {
|
|
|
24
24
|
return function (_x) {
|
|
25
25
|
return _ref.apply(this, arguments);
|
|
26
26
|
};
|
|
27
|
-
}());
|
|
27
|
+
})());
|
package/dist/esm/index.js
CHANGED
package/dist/esm/manifest.js
CHANGED
|
@@ -127,38 +127,41 @@ var manifestFunction = function manifestFunction(_ref) {
|
|
|
127
127
|
quickInsert: [{
|
|
128
128
|
key: 'item',
|
|
129
129
|
action: function action() {
|
|
130
|
-
return
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
130
|
+
return (
|
|
131
|
+
// eslint-disable-next-line no-async-promise-executor
|
|
132
|
+
new Promise( /*#__PURE__*/function () {
|
|
133
|
+
var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(resolve, reject) {
|
|
134
|
+
var newNode;
|
|
135
|
+
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
136
|
+
while (1) switch (_context.prev = _context.next) {
|
|
137
|
+
case 0:
|
|
138
|
+
_context.prev = 0;
|
|
139
|
+
_context.next = 3;
|
|
140
|
+
return pickFromDropbox(appKey, canMountinIframe);
|
|
141
|
+
case 3:
|
|
142
|
+
newNode = _context.sent;
|
|
143
|
+
if (!newNode) {
|
|
144
|
+
reject();
|
|
145
|
+
} else {
|
|
146
|
+
resolve(newNode);
|
|
147
|
+
}
|
|
148
|
+
_context.next = 10;
|
|
149
|
+
break;
|
|
150
|
+
case 7:
|
|
151
|
+
_context.prev = 7;
|
|
152
|
+
_context.t0 = _context["catch"](0);
|
|
153
|
+
reject(_context.t0);
|
|
154
|
+
case 10:
|
|
155
|
+
case "end":
|
|
156
|
+
return _context.stop();
|
|
157
|
+
}
|
|
158
|
+
}, _callee, null, [[0, 7]]);
|
|
159
|
+
}));
|
|
160
|
+
return function (_x3, _x4) {
|
|
161
|
+
return _ref2.apply(this, arguments);
|
|
162
|
+
};
|
|
163
|
+
}())
|
|
164
|
+
);
|
|
162
165
|
}
|
|
163
166
|
}]
|
|
164
167
|
}
|
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.43",
|
|
4
4
|
"description": "A an atlassian editor extension to add a native dropbox picker",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@atlaskit/adf-utils": "^19.14.0",
|
|
43
43
|
"@atlaskit/button": "^20.3.0",
|
|
44
|
-
"@atlaskit/editor-common": "^
|
|
44
|
+
"@atlaskit/editor-common": "^97.0.0",
|
|
45
45
|
"@atlaskit/heading": "4.0.0",
|
|
46
|
-
"@atlaskit/icon": "^23.
|
|
46
|
+
"@atlaskit/icon": "^23.1.0",
|
|
47
47
|
"@atlaskit/modal-dialog": "^12.18.0",
|
|
48
48
|
"@atlaskit/primitives": "^13.3.0",
|
|
49
|
-
"@atlaskit/tokens": "^2.
|
|
49
|
+
"@atlaskit/tokens": "^2.5.0",
|
|
50
50
|
"@babel/runtime": "^7.0.0",
|
|
51
51
|
"@emotion/react": "^11.7.1"
|
|
52
52
|
},
|