@atlaskit/editor-extension-dropbox 0.3.2 → 0.3.4

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.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 0.3.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
14
+
3
15
  ## 0.3.2
4
16
 
5
17
  ### Patch Changes
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/constants.js",
5
5
  "module:es2019": "../dist/es2019/constants.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/constants.d.ts"
7
+ "types": "../dist/types/constants.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/constants.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,2 @@
1
+ export declare const POPUP_MOUNTPOINT = "twp-dropbox-popup-mount-point";
2
+ export declare const DROPBOX_IFRAME_NAME = "twp-dropboxjs-iframe";
@@ -0,0 +1,2 @@
1
+ declare const _default: {};
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: (appKey: string) => Promise<void>;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => JSX.Element;
3
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default } from './manifest';
@@ -0,0 +1,20 @@
1
+ import { ExtensionManifest } from '@atlaskit/editor-common/extensions';
2
+ import { DropboxFile } from './types';
3
+ declare global {
4
+ interface Window {
5
+ Dropbox: {
6
+ appKey?: string;
7
+ choose: (args: {
8
+ iframe?: boolean;
9
+ windowName?: string;
10
+ success: (value: DropboxFile[] | PromiseLike<DropboxFile[]>) => void;
11
+ cancel: () => void;
12
+ }) => void;
13
+ };
14
+ }
15
+ }
16
+ declare const manifestFunction: ({ appKey, canMountinIframe, }: {
17
+ appKey: string;
18
+ canMountinIframe: boolean;
19
+ }) => ExtensionManifest;
20
+ export default manifestFunction;
@@ -0,0 +1,7 @@
1
+ import { jsx } from '@emotion/react';
2
+ declare const Modal: ({ onClose, TEST_ONLY_src, showModal, }: {
3
+ onClose: () => any;
4
+ TEST_ONLY_src?: string | undefined;
5
+ showModal?: boolean | undefined;
6
+ }) => jsx.JSX.Element;
7
+ export default Modal;
@@ -0,0 +1,8 @@
1
+ export declare type DropboxFile = {
2
+ isDir: boolean;
3
+ linkType: 'preview';
4
+ name: string;
5
+ link: string;
6
+ id: string;
7
+ icon: string;
8
+ };
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/dropboxscript.js",
5
5
  "module:es2019": "../dist/es2019/dropboxscript.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/dropboxscript.d.ts"
7
+ "types": "../dist/types/dropboxscript.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/dropboxscript.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/enable-dropbox.js",
5
5
  "module:es2019": "../dist/es2019/enable-dropbox.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/enable-dropbox.d.ts"
7
+ "types": "../dist/types/enable-dropbox.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/enable-dropbox.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/manifest.js",
5
5
  "module:es2019": "../dist/es2019/manifest.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/manifest.d.ts"
7
+ "types": "../dist/types/manifest.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/manifest.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/modal.js",
5
5
  "module:es2019": "../dist/es2019/modal.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/modal.d.ts"
7
+ "types": "../dist/types/modal.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/modal.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
4
4
  "description": "A an atlassian editor extension to add a native dropbox picker",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,6 +12,13 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.0 <4.5": {
17
+ "*": [
18
+ "dist/types-ts4.0/*"
19
+ ]
20
+ }
21
+ },
15
22
  "sideEffects": false,
16
23
  "atlaskit:src": "src/index.ts",
17
24
  "atlassian": {
@@ -26,9 +33,9 @@
26
33
  "dependencies": {
27
34
  "@atlaskit/adf-utils": "^17.1.0",
28
35
  "@atlaskit/button": "^16.3.0",
29
- "@atlaskit/editor-common": "^69.1.0",
30
- "@atlaskit/icon": "^21.10.0",
31
- "@atlaskit/modal-dialog": "^12.2.0",
36
+ "@atlaskit/editor-common": "^70.0.0",
37
+ "@atlaskit/icon": "^21.11.0",
38
+ "@atlaskit/modal-dialog": "^12.4.0",
32
39
  "@babel/runtime": "^7.0.0",
33
40
  "@emotion/react": "^11.7.1"
34
41
  },
@@ -38,11 +45,11 @@
38
45
  },
39
46
  "devDependencies": {
40
47
  "@atlaskit/docs": "*",
41
- "@atlaskit/section-message": "^6.0.0",
48
+ "@atlaskit/section-message": "^6.3.0",
42
49
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
43
50
  "react": "^16.8.0",
44
51
  "react-dom": "^16.8.0",
45
- "typescript": "4.3.5"
52
+ "typescript": "4.5.5"
46
53
  },
47
54
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
48
55
  "techstack": {
package/report.api.md CHANGED
@@ -1,6 +1,8 @@
1
- ## API Report File for "@atlaskit/editor-extension-dropbox"
1
+ ## API Report File for "@atlaskit/editor-extension-dropbox".
2
2
 
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
3
+ > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
4
6
 
5
7
  ```ts
6
8
  import { ExtensionManifest } from '@atlaskit/editor-common/extensions';
@@ -4,5 +4,12 @@
4
4
  "module": "../dist/esm/types.js",
5
5
  "module:es2019": "../dist/es2019/types.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/types.d.ts"
7
+ "types": "../dist/types/types.d.ts",
8
+ "typesVersions": {
9
+ ">=4.0 <4.5": {
10
+ "*": [
11
+ "../dist/types-ts4.0/types.d.ts"
12
+ ]
13
+ }
14
+ }
8
15
  }