@atlaskit/editor-extension-dropbox 9.0.14 → 10.0.0

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,37 @@
1
1
  # @atlaskit/editor-extension-dropbox
2
2
 
3
+ ## 10.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
8
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
9
+
10
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
11
+
12
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
13
+
14
+ ```diff
15
+ - "typesVersions": {
16
+ - ">=4.5 <4.9": {
17
+ - "*": [
18
+ - "dist/types-ts4.5/*",
19
+ - "dist/types-ts4.5/index.d.ts"
20
+ - ]
21
+ - }
22
+ - },
23
+ ```
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
29
+ ## 9.0.15
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies
34
+
3
35
  ## 9.0.14
4
36
 
5
37
  ### Patch Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/constants.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/constants.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/constants.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/dropboxscript.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/dropboxscript.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/dropboxscript.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/enable-dropbox.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/enable-dropbox.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/enable-dropbox.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/manifest.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/manifest.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/manifest.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/modal.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/modal.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/modal.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-extension-dropbox",
3
- "version": "9.0.14",
3
+ "version": "10.0.0",
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,14 +12,6 @@
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
- },
23
15
  "sideEffects": [
24
16
  "*.compiled.css"
25
17
  ],
@@ -38,20 +30,20 @@
38
30
  }
39
31
  },
40
32
  "dependencies": {
41
- "@atlaskit/adf-utils": "^19.33.0",
42
- "@atlaskit/button": "^23.11.0",
43
- "@atlaskit/heading": "^5.4.0",
44
- "@atlaskit/modal-dialog": "^15.3.0",
45
- "@atlaskit/platform-feature-flags": "^1.1.0",
46
- "@atlaskit/primitives": "^19.0.0",
47
- "@atlaskit/tmp-editor-statsig": "^102.0.0",
48
- "@atlaskit/tokens": "^13.4.0",
33
+ "@atlaskit/adf-utils": "^20.0.0",
34
+ "@atlaskit/button": "^24.0.0",
35
+ "@atlaskit/heading": "^6.0.0",
36
+ "@atlaskit/modal-dialog": "^16.0.0",
37
+ "@atlaskit/platform-feature-flags": "^2.0.0",
38
+ "@atlaskit/primitives": "^20.0.0",
39
+ "@atlaskit/tmp-editor-statsig": "^104.0.0",
40
+ "@atlaskit/tokens": "^14.0.0",
49
41
  "@babel/runtime": "^7.0.0",
50
42
  "@compiled/react": "^0.20.0",
51
43
  "@emotion/react": "^11.7.1"
52
44
  },
53
45
  "peerDependencies": {
54
- "@atlaskit/editor-common": "^115.15.0",
46
+ "@atlaskit/editor-common": "^116.0.0",
55
47
  "react": "^18.2.0",
56
48
  "react-dom": "^18.2.0"
57
49
  },
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/types.d.ts"
17
10
  }
@@ -1,2 +0,0 @@
1
- export declare const POPUP_MOUNTPOINT = "twp-dropbox-popup-mount-point";
2
- export declare const DROPBOX_IFRAME_NAME = "twp-dropboxjs-iframe";
@@ -1,2 +0,0 @@
1
- declare const _default: {};
2
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: (appKey: string) => Promise<void>;
2
- export default _default;
@@ -1 +0,0 @@
1
- export { DROPBOX_IFRAME_NAME, POPUP_MOUNTPOINT } from '../constants';
@@ -1 +0,0 @@
1
- export { default } from '../dropboxscript';
@@ -1 +0,0 @@
1
- export { default } from '../enable-dropbox';
@@ -1 +0,0 @@
1
- export { default } from '../manifest';
@@ -1 +0,0 @@
1
- export { default } from '../modal';
@@ -1 +0,0 @@
1
- export type { DropboxFile } from '../types';
@@ -1,2 +0,0 @@
1
- declare const _default: () => JSX.Element;
2
- export default _default;
@@ -1 +0,0 @@
1
- export { default } from './manifest';
@@ -1,20 +0,0 @@
1
- import type { ExtensionManifest } from '@atlaskit/editor-common/extensions';
2
- import type { DropboxFile } from './types';
3
- declare global {
4
- interface Window {
5
- Dropbox: {
6
- appKey?: string;
7
- choose: (args: {
8
- cancel: () => void;
9
- iframe?: boolean;
10
- success: (value: DropboxFile[] | PromiseLike<DropboxFile[]>) => void;
11
- windowName?: string;
12
- }) => void;
13
- };
14
- }
15
- }
16
- declare const manifestFunction: ({ appKey, canMountinIframe, }: {
17
- appKey: string;
18
- canMountinIframe: boolean;
19
- }) => ExtensionManifest;
20
- export default manifestFunction;
@@ -1,7 +0,0 @@
1
- import { jsx } from '@emotion/react';
2
- declare const Modal: ({ onClose, TEST_ONLY_src, showModal, }: {
3
- onClose: () => any;
4
- showModal?: boolean;
5
- TEST_ONLY_src?: string;
6
- }) => jsx.JSX.Element;
7
- export default Modal;
@@ -1,8 +0,0 @@
1
- export type DropboxFile = {
2
- icon: string;
3
- id: string;
4
- isDir: boolean;
5
- link: string;
6
- linkType: 'preview';
7
- name: string;
8
- };