@atlaskit/editor-extension-dropbox 13.1.1 → 13.1.3
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 +16 -0
- package/afm-cc/tsconfig.json +6 -0
- package/dist/cjs/manifest.js +3 -3
- package/dist/cjs/modal.js +10 -6
- package/dist/es2019/manifest.js +1 -1
- package/dist/es2019/modal.js +6 -2
- package/dist/esm/manifest.js +1 -1
- package/dist/esm/modal.js +6 -2
- package/docs/README.tsx +1 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-extension-dropbox
|
|
2
2
|
|
|
3
|
+
## 13.1.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
|
|
8
|
+
VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
|
|
9
|
+
voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
|
|
10
|
+
changes.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 13.1.2
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 13.1.1
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
|
@@ -28,6 +28,9 @@
|
|
|
28
28
|
{
|
|
29
29
|
"path": "../../../design-system/button/afm-cc/tsconfig.json"
|
|
30
30
|
},
|
|
31
|
+
{
|
|
32
|
+
"path": "../../../../build/website/docs/afm-cc/tsconfig.json"
|
|
33
|
+
},
|
|
31
34
|
{
|
|
32
35
|
"path": "../../../design-system/heading/afm-cc/tsconfig.json"
|
|
33
36
|
},
|
|
@@ -46,6 +49,9 @@
|
|
|
46
49
|
{
|
|
47
50
|
"path": "../../../react-compiler/react-compiler-gating/afm-cc/tsconfig.json"
|
|
48
51
|
},
|
|
52
|
+
{
|
|
53
|
+
"path": "../../../design-system/section-message/afm-cc/tsconfig.json"
|
|
54
|
+
},
|
|
49
55
|
{
|
|
50
56
|
"path": "../../tmp-editor-statsig/afm-cc/tsconfig.json"
|
|
51
57
|
},
|
package/dist/cjs/manifest.js
CHANGED
|
@@ -15,13 +15,13 @@ var _builders = require("@atlaskit/adf-utils/builders");
|
|
|
15
15
|
var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
|
|
16
16
|
var _enableDropbox = _interopRequireDefault(require("./enable-dropbox"));
|
|
17
17
|
var _constants = require("./constants");
|
|
18
|
-
var
|
|
18
|
+
var _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t3 in e) "default" !== _t3 && {}.hasOwnProperty.call(e, _t3) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t3)) && (i.get || i.set) ? o(f, _t3, i) : f[_t3] = e[_t3]); return f; })(e, t); }
|
|
20
20
|
var reactRoots = new WeakMap();
|
|
21
21
|
|
|
22
22
|
/** Mounts `element` into `mountPoint`: uses the React 18/19 `createRoot` API when `nike_r19_render_unmount` is on, else the legacy render path. */
|
|
23
23
|
var renderToMountPoint = function renderToMountPoint(element, mountPoint) {
|
|
24
|
-
if ((0,
|
|
24
|
+
if ((0, _fg.fg)('nike_r19_render_unmount')) {
|
|
25
25
|
var root = reactRoots.get(mountPoint);
|
|
26
26
|
if (!root) {
|
|
27
27
|
root = (0, _client.createRoot)(mountPoint);
|
|
@@ -35,7 +35,7 @@ var renderToMountPoint = function renderToMountPoint(element, mountPoint) {
|
|
|
35
35
|
|
|
36
36
|
/** Unmounts the tree at `mountPoint`: uses `root.unmount()` when `nike_r19_render_unmount` is on, else the legacy unmount path. */
|
|
37
37
|
var unmountFromMountPoint = function unmountFromMountPoint(mountPoint) {
|
|
38
|
-
if ((0,
|
|
38
|
+
if ((0, _fg.fg)('nike_r19_render_unmount')) {
|
|
39
39
|
var root = reactRoots.get(mountPoint);
|
|
40
40
|
if (root) {
|
|
41
41
|
root.unmount();
|
package/dist/cjs/modal.js
CHANGED
|
@@ -9,8 +9,12 @@ exports.default = void 0;
|
|
|
9
9
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
10
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _react2 = require("@emotion/react");
|
|
12
|
-
var _modalDialog =
|
|
13
|
-
var
|
|
12
|
+
var _modalDialog = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-dialog"));
|
|
13
|
+
var _modalTransition = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-transition"));
|
|
14
|
+
var _closeButton = require("@atlaskit/modal-dialog/close-button");
|
|
15
|
+
var _hooks = require("@atlaskit/modal-dialog/hooks");
|
|
16
|
+
var _modalBody = _interopRequireDefault(require("@atlaskit/modal-dialog/modal-body"));
|
|
17
|
+
var _heading = _interopRequireDefault(require("@atlaskit/heading/heading"));
|
|
14
18
|
var _constants = require("./constants");
|
|
15
19
|
var _primitives = require("@atlaskit/primitives");
|
|
16
20
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
@@ -56,7 +60,7 @@ var headingStyle = (0, _primitives.xcss)({
|
|
|
56
60
|
marginTop: 'space.100'
|
|
57
61
|
});
|
|
58
62
|
var Header = function Header() {
|
|
59
|
-
var _useModal = (0,
|
|
63
|
+
var _useModal = (0, _hooks.useModal)(),
|
|
60
64
|
onClose = _useModal.onClose,
|
|
61
65
|
titleId = _useModal.titleId;
|
|
62
66
|
return (0, _react2.jsx)("div", {
|
|
@@ -68,7 +72,7 @@ var Header = function Header() {
|
|
|
68
72
|
}, (0, _react2.jsx)(_heading.default, {
|
|
69
73
|
id: titleId,
|
|
70
74
|
size: "xsmall"
|
|
71
|
-
}, "Dropbox")), (0, _react2.jsx)("div", null, (0, _react2.jsx)(
|
|
75
|
+
}, "Dropbox")), (0, _react2.jsx)("div", null, (0, _react2.jsx)(_closeButton.CloseButton, {
|
|
72
76
|
onClick: onClose
|
|
73
77
|
})));
|
|
74
78
|
};
|
|
@@ -83,7 +87,7 @@ var Modal = function Modal(_ref) {
|
|
|
83
87
|
if (typeof showModal === 'boolean' && isOpen !== showModal) {
|
|
84
88
|
setIsOpen(showModal);
|
|
85
89
|
}
|
|
86
|
-
return (0, _react2.jsx)(
|
|
90
|
+
return (0, _react2.jsx)(_modalTransition.default, null, isOpen && (0, _react2.jsx)(_modalDialog.default, {
|
|
87
91
|
height: "100%",
|
|
88
92
|
width: "large"
|
|
89
93
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
@@ -92,7 +96,7 @@ var Modal = function Modal(_ref) {
|
|
|
92
96
|
setIsOpen(false);
|
|
93
97
|
_onClose();
|
|
94
98
|
}
|
|
95
|
-
}, (0, _react2.jsx)(Header, null), (0, _react2.jsx)(
|
|
99
|
+
}, (0, _react2.jsx)(Header, null), (0, _react2.jsx)(_modalBody.default, null, (0, _react2.jsx)(ModalBody, null, TEST_ONLY_src ? (0, _react2.jsx)("iframe", {
|
|
96
100
|
css: iframeStyle,
|
|
97
101
|
name: _constants.DROPBOX_IFRAME_NAME,
|
|
98
102
|
title: "Dropbox file chooser",
|
package/dist/es2019/manifest.js
CHANGED
|
@@ -5,7 +5,7 @@ import { inlineCard } from '@atlaskit/adf-utils/builders';
|
|
|
5
5
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
6
6
|
import enableDropbox from './enable-dropbox';
|
|
7
7
|
import { POPUP_MOUNTPOINT, DROPBOX_IFRAME_NAME } from './constants';
|
|
8
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
9
9
|
const reactRoots = new WeakMap();
|
|
10
10
|
|
|
11
11
|
/** Mounts `element` into `mountPoint`: uses the React 18/19 `createRoot` API when `nike_r19_render_unmount` is on, else the legacy render path. */
|
package/dist/es2019/modal.js
CHANGED
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
import React, { useState } from 'react';
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
7
7
|
import { jsx, css } from '@emotion/react';
|
|
8
|
-
import ModalDialog
|
|
9
|
-
import
|
|
8
|
+
import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
|
|
9
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
10
|
+
import { CloseButton } from '@atlaskit/modal-dialog/close-button';
|
|
11
|
+
import { useModal } from '@atlaskit/modal-dialog/hooks';
|
|
12
|
+
import AKModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
13
|
+
import Heading from '@atlaskit/heading/heading';
|
|
10
14
|
import { DROPBOX_IFRAME_NAME } from './constants';
|
|
11
15
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
12
16
|
import { xcss, Box } from '@atlaskit/primitives';
|
package/dist/esm/manifest.js
CHANGED
|
@@ -7,7 +7,7 @@ import { inlineCard } from '@atlaskit/adf-utils/builders';
|
|
|
7
7
|
import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
|
|
8
8
|
import enableDropbox from './enable-dropbox';
|
|
9
9
|
import { POPUP_MOUNTPOINT, DROPBOX_IFRAME_NAME } from './constants';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
|
+
import { fg } from '@atlaskit/platform-feature-flags/fg';
|
|
11
11
|
var reactRoots = new WeakMap();
|
|
12
12
|
|
|
13
13
|
/** Mounts `element` into `mountPoint`: uses the React 18/19 `createRoot` API when `nike_r19_render_unmount` is on, else the legacy render path. */
|
package/dist/esm/modal.js
CHANGED
|
@@ -6,8 +6,12 @@ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
|
6
6
|
import React, { useState } from 'react';
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports
|
|
8
8
|
import { jsx, css } from '@emotion/react';
|
|
9
|
-
import ModalDialog
|
|
10
|
-
import
|
|
9
|
+
import ModalDialog from '@atlaskit/modal-dialog/modal-dialog';
|
|
10
|
+
import ModalTransition from '@atlaskit/modal-dialog/modal-transition';
|
|
11
|
+
import { CloseButton } from '@atlaskit/modal-dialog/close-button';
|
|
12
|
+
import { useModal } from '@atlaskit/modal-dialog/hooks';
|
|
13
|
+
import AKModalBody from '@atlaskit/modal-dialog/modal-body';
|
|
14
|
+
import Heading from '@atlaskit/heading/heading';
|
|
11
15
|
import { DROPBOX_IFRAME_NAME } from './constants';
|
|
12
16
|
// eslint-disable-next-line @atlaskit/design-system/no-emotion-primitives -- to be migrated to @atlaskit/primitives/compiled – go/akcss
|
|
13
17
|
import { xcss, Box } from '@atlaskit/primitives';
|
package/docs/README.tsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { md, code } from '@atlaskit/docs';
|
|
3
|
-
import SectionMessage from '@atlaskit/section-message';
|
|
3
|
+
import SectionMessage from '@atlaskit/section-message/message';
|
|
4
4
|
|
|
5
5
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6
6
|
const _default_1: any = md`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-extension-dropbox",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.3",
|
|
4
4
|
"description": "A an atlassian editor extension to add a native dropbox picker",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -32,13 +32,15 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/adf-utils": "^20.7.0",
|
|
34
34
|
"@atlaskit/button": "^25.2.0",
|
|
35
|
+
"@atlaskit/docs": "^12.2.0",
|
|
35
36
|
"@atlaskit/heading": "^7.1.0",
|
|
36
37
|
"@atlaskit/modal-dialog": "^16.5.0",
|
|
37
38
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
38
39
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
39
40
|
"@atlaskit/primitives": "^22.4.0",
|
|
40
41
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
41
|
-
"@atlaskit/
|
|
42
|
+
"@atlaskit/section-message": "^10.1.0",
|
|
43
|
+
"@atlaskit/tmp-editor-statsig": "^159.0.0",
|
|
42
44
|
"@atlaskit/tokens": "^16.8.0",
|
|
43
45
|
"@babel/runtime": "^7.0.0",
|
|
44
46
|
"@compiled/react": "^1.0.2",
|