@atlaskit/editor-extension-dropbox 0.4.43 → 0.4.44

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,11 @@
1
1
  # @atlaskit/editor-extension-dropbox
2
2
 
3
+ ## 0.4.44
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 0.4.43
4
10
 
5
11
  ### Patch Changes
@@ -10,6 +10,8 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"))
10
10
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
11
11
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
12
12
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
13
+ // Ignored via go/ees005
14
+ // eslint-disable-next-line require-await
13
15
  var _default = exports.default = /*#__PURE__*/function () {
14
16
  var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(appKey) {
15
17
  return _regenerator.default.wrap(function _callee$(_context) {
@@ -1,3 +1,5 @@
1
+ // Ignored via go/ees005
2
+ // eslint-disable-next-line require-await
1
3
  export default (async appKey => {
2
4
  if (!window.Dropbox) {
3
5
  // The dropbox script is in no way typescript, and is not our code
@@ -11,7 +11,7 @@ async function pickFromDropbox(appKey, canMountinIframe) {
11
11
  // to iframe in the picker - we are currently waiting for permissions.
12
12
  // To test the picker, comment out the ReactDOM render call, and the `iframe` and `winowName` options
13
13
  if (canMountinIframe) {
14
- let Modal = await import('./modal');
14
+ const Modal = await import('./modal');
15
15
 
16
16
  // The decision has been made to simply append our modal to the body
17
17
  // Using the passed in popupMountPoint has the potential to cause
@@ -89,7 +89,7 @@ const manifestFunction = ({
89
89
  // eslint-disable-next-line no-async-promise-executor
90
90
  new Promise(async (resolve, reject) => {
91
91
  try {
92
- let newNode = await pickFromDropbox(appKey, canMountinIframe);
92
+ const newNode = await pickFromDropbox(appKey, canMountinIframe);
93
93
  if (!newNode) {
94
94
  reject();
95
95
  } else {
@@ -70,7 +70,7 @@ const Modal = ({
70
70
  TEST_ONLY_src,
71
71
  showModal
72
72
  }) => {
73
- let [isOpen, setIsOpen] = useState(true);
73
+ const [isOpen, setIsOpen] = useState(true);
74
74
  if (typeof showModal === 'boolean' && isOpen !== showModal) {
75
75
  setIsOpen(showModal);
76
76
  }
@@ -1,5 +1,7 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
2
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
+ // Ignored via go/ees005
4
+ // eslint-disable-next-line require-await
3
5
  export default ( /*#__PURE__*/(function () {
4
6
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee(appKey) {
5
7
  return _regeneratorRuntime.wrap(function _callee$(_context) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "0.4.43",
3
+ "version": "0.4.44",
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,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@atlaskit/adf-utils": "^19.14.0",
43
43
  "@atlaskit/button": "^20.3.0",
44
- "@atlaskit/editor-common": "^97.0.0",
44
+ "@atlaskit/editor-common": "^98.0.0",
45
45
  "@atlaskit/heading": "4.0.0",
46
46
  "@atlaskit/icon": "^23.1.0",
47
47
  "@atlaskit/modal-dialog": "^12.18.0",
package/tsconfig.json CHANGED
@@ -9,6 +9,5 @@
9
9
  "./examples/**/*.tsx"
10
10
  ],
11
11
  "compilerOptions": {
12
- "baseUrl": "./"
13
12
  }
14
13
  }