@atlaskit/editor-extension-dropbox 0.4.0 → 0.4.2

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.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
8
+
9
+ ## 0.4.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
14
+
3
15
  ## 0.4.0
4
16
 
5
17
  ### Minor Changes
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/constants.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/constants.d.ts"
11
+ "../dist/types-ts4.5/constants.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,4 +1,4 @@
1
- export declare type DropboxFile = {
1
+ export type DropboxFile = {
2
2
  isDir: boolean;
3
3
  linkType: 'preview';
4
4
  name: string;
@@ -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 type DropboxFile = {
2
+ isDir: boolean;
3
+ linkType: 'preview';
4
+ name: string;
5
+ link: string;
6
+ id: string;
7
+ icon: string;
8
+ };
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/dropboxscript.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/dropboxscript.d.ts"
11
+ "../dist/types-ts4.5/dropboxscript.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/enable-dropbox.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/enable-dropbox.d.ts"
11
+ "../dist/types-ts4.5/enable-dropbox.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/manifest.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/manifest.d.ts"
11
+ "../dist/types-ts4.5/manifest.d.ts"
12
12
  ]
13
13
  }
14
14
  }
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/modal.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/modal.d.ts"
11
+ "../dist/types-ts4.5/modal.d.ts"
12
12
  ]
13
13
  }
14
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
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,14 @@
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.5 <4.9": {
17
+ "*": [
18
+ "dist/types-ts4.5/*",
19
+ "dist/types-ts4.5/index.d.ts"
20
+ ]
21
+ }
22
+ },
15
23
  "sideEffects": false,
16
24
  "atlaskit:src": "src/index.ts",
17
25
  "atlassian": {
@@ -26,7 +34,7 @@
26
34
  "dependencies": {
27
35
  "@atlaskit/adf-utils": "^18.2.0",
28
36
  "@atlaskit/button": "^16.7.0",
29
- "@atlaskit/editor-common": "^74.0.0",
37
+ "@atlaskit/editor-common": "^74.1.0",
30
38
  "@atlaskit/icon": "^21.12.0",
31
39
  "@atlaskit/modal-dialog": "^12.5.0",
32
40
  "@babel/runtime": "^7.0.0",
@@ -42,7 +50,7 @@
42
50
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
43
51
  "react": "^16.8.0",
44
52
  "react-dom": "^16.8.0",
45
- "typescript": "4.5.5"
53
+ "typescript": "~4.9.5"
46
54
  },
47
55
  "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
48
56
  "techstack": {
@@ -6,9 +6,9 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/types.d.ts",
8
8
  "typesVersions": {
9
- ">=4.0 <4.5": {
9
+ ">=4.5 <4.9": {
10
10
  "*": [
11
- "../dist/types-ts4.0/types.d.ts"
11
+ "../dist/types-ts4.5/types.d.ts"
12
12
  ]
13
13
  }
14
14
  }