@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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/editor-extension-dropbox
2
2
 
3
+ ## 0.4.43
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.4.42
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 0.4.41
4
16
 
5
17
  ### Patch Changes
@@ -145,38 +145,41 @@ var manifestFunction = function manifestFunction(_ref) {
145
145
  quickInsert: [{
146
146
  key: 'item',
147
147
  action: function action() {
148
- return new Promise( /*#__PURE__*/function () {
149
- var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(resolve, reject) {
150
- var newNode;
151
- return _regenerator.default.wrap(function _callee$(_context) {
152
- while (1) switch (_context.prev = _context.next) {
153
- case 0:
154
- _context.prev = 0;
155
- _context.next = 3;
156
- return pickFromDropbox(appKey, canMountinIframe);
157
- case 3:
158
- newNode = _context.sent;
159
- if (!newNode) {
160
- reject();
161
- } else {
162
- resolve(newNode);
163
- }
164
- _context.next = 10;
165
- break;
166
- case 7:
167
- _context.prev = 7;
168
- _context.t0 = _context["catch"](0);
169
- reject(_context.t0);
170
- case 10:
171
- case "end":
172
- return _context.stop();
173
- }
174
- }, _callee, null, [[0, 7]]);
175
- }));
176
- return function (_x3, _x4) {
177
- return _ref2.apply(this, arguments);
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
  }
@@ -1 +1,3 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
1
3
  export { default } from './manifest';
@@ -85,7 +85,9 @@ const manifestFunction = ({
85
85
  modules: {
86
86
  quickInsert: [{
87
87
  key: 'item',
88
- action: () => new Promise(async (resolve, reject) => {
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
@@ -1 +1,3 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
1
3
  export { default } from './manifest';
@@ -127,38 +127,41 @@ var manifestFunction = function manifestFunction(_ref) {
127
127
  quickInsert: [{
128
128
  key: 'item',
129
129
  action: function action() {
130
- return new Promise( /*#__PURE__*/function () {
131
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(resolve, reject) {
132
- var newNode;
133
- return _regeneratorRuntime.wrap(function _callee$(_context) {
134
- while (1) switch (_context.prev = _context.next) {
135
- case 0:
136
- _context.prev = 0;
137
- _context.next = 3;
138
- return pickFromDropbox(appKey, canMountinIframe);
139
- case 3:
140
- newNode = _context.sent;
141
- if (!newNode) {
142
- reject();
143
- } else {
144
- resolve(newNode);
145
- }
146
- _context.next = 10;
147
- break;
148
- case 7:
149
- _context.prev = 7;
150
- _context.t0 = _context["catch"](0);
151
- reject(_context.t0);
152
- case 10:
153
- case "end":
154
- return _context.stop();
155
- }
156
- }, _callee, null, [[0, 7]]);
157
- }));
158
- return function (_x3, _x4) {
159
- return _ref2.apply(this, arguments);
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.41",
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": "^95.10.0",
44
+ "@atlaskit/editor-common": "^97.0.0",
45
45
  "@atlaskit/heading": "4.0.0",
46
- "@atlaskit/icon": "^23.0.0",
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.4.0",
49
+ "@atlaskit/tokens": "^2.5.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1"
52
52
  },