@atlaskit/editor-extension-dropbox 14.0.7 → 14.0.8
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 +8 -0
- package/afm-cc/tsconfig.json +0 -3
- package/dist/cjs/manifest.js +4 -5
- package/dist/es2019/manifest.js +4 -5
- package/dist/esm/manifest.js +4 -5
- package/package.json +2 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-extension-dropbox
|
|
2
2
|
|
|
3
|
+
## 14.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`6304662fbdf4a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6304662fbdf4a) -
|
|
8
|
+
Use the supported `createRoot` API when `platform_editor_react19_migration` is enabled.
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 14.0.7
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/dist/cjs/manifest.js
CHANGED
|
@@ -15,13 +15,12 @@ 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 _fg = require("@atlaskit/platform-feature-flags/fg");
|
|
19
18
|
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
19
|
var reactRoots = new WeakMap();
|
|
21
20
|
|
|
22
|
-
/** Mounts `element` into `mountPoint
|
|
21
|
+
/** Mounts `element` into `mountPoint` using `createRoot` when the migration experiment is on. */
|
|
23
22
|
var renderToMountPoint = function renderToMountPoint(element, mountPoint) {
|
|
24
|
-
if ((0,
|
|
23
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_react19_migration')) {
|
|
25
24
|
var root = reactRoots.get(mountPoint);
|
|
26
25
|
if (!root) {
|
|
27
26
|
root = (0, _client.createRoot)(mountPoint);
|
|
@@ -33,9 +32,9 @@ var renderToMountPoint = function renderToMountPoint(element, mountPoint) {
|
|
|
33
32
|
}
|
|
34
33
|
};
|
|
35
34
|
|
|
36
|
-
/** Unmounts the tree
|
|
35
|
+
/** Unmounts the tree using the registered root when the migration experiment is on. */
|
|
37
36
|
var unmountFromMountPoint = function unmountFromMountPoint(mountPoint) {
|
|
38
|
-
if ((0,
|
|
37
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_react19_migration')) {
|
|
39
38
|
var root = reactRoots.get(mountPoint);
|
|
40
39
|
if (root) {
|
|
41
40
|
root.unmount();
|
package/dist/es2019/manifest.js
CHANGED
|
@@ -5,12 +5,11 @@ 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/fg';
|
|
9
8
|
const reactRoots = new WeakMap();
|
|
10
9
|
|
|
11
|
-
/** Mounts `element` into `mountPoint
|
|
10
|
+
/** Mounts `element` into `mountPoint` using `createRoot` when the migration experiment is on. */
|
|
12
11
|
const renderToMountPoint = (element, mountPoint) => {
|
|
13
|
-
if (
|
|
12
|
+
if (isExperimentEnabled('platform_editor_react19_migration')) {
|
|
14
13
|
let root = reactRoots.get(mountPoint);
|
|
15
14
|
if (!root) {
|
|
16
15
|
root = createRoot(mountPoint);
|
|
@@ -22,9 +21,9 @@ const renderToMountPoint = (element, mountPoint) => {
|
|
|
22
21
|
}
|
|
23
22
|
};
|
|
24
23
|
|
|
25
|
-
/** Unmounts the tree
|
|
24
|
+
/** Unmounts the tree using the registered root when the migration experiment is on. */
|
|
26
25
|
const unmountFromMountPoint = mountPoint => {
|
|
27
|
-
if (
|
|
26
|
+
if (isExperimentEnabled('platform_editor_react19_migration')) {
|
|
28
27
|
const root = reactRoots.get(mountPoint);
|
|
29
28
|
if (root) {
|
|
30
29
|
root.unmount();
|
package/dist/esm/manifest.js
CHANGED
|
@@ -7,12 +7,11 @@ 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/fg';
|
|
11
10
|
var reactRoots = new WeakMap();
|
|
12
11
|
|
|
13
|
-
/** Mounts `element` into `mountPoint
|
|
12
|
+
/** Mounts `element` into `mountPoint` using `createRoot` when the migration experiment is on. */
|
|
14
13
|
var renderToMountPoint = function renderToMountPoint(element, mountPoint) {
|
|
15
|
-
if (
|
|
14
|
+
if (isExperimentEnabled('platform_editor_react19_migration')) {
|
|
16
15
|
var root = reactRoots.get(mountPoint);
|
|
17
16
|
if (!root) {
|
|
18
17
|
root = createRoot(mountPoint);
|
|
@@ -24,9 +23,9 @@ var renderToMountPoint = function renderToMountPoint(element, mountPoint) {
|
|
|
24
23
|
}
|
|
25
24
|
};
|
|
26
25
|
|
|
27
|
-
/** Unmounts the tree
|
|
26
|
+
/** Unmounts the tree using the registered root when the migration experiment is on. */
|
|
28
27
|
var unmountFromMountPoint = function unmountFromMountPoint(mountPoint) {
|
|
29
|
-
if (
|
|
28
|
+
if (isExperimentEnabled('platform_editor_react19_migration')) {
|
|
30
29
|
var root = reactRoots.get(mountPoint);
|
|
31
30
|
if (root) {
|
|
32
31
|
root.unmount();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-extension-dropbox",
|
|
3
|
-
"version": "14.0.
|
|
3
|
+
"version": "14.0.8",
|
|
4
4
|
"description": "A an atlassian editor extension to add a native dropbox picker",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -36,11 +36,10 @@
|
|
|
36
36
|
"@atlaskit/heading": "^7.1.0",
|
|
37
37
|
"@atlaskit/modal-dialog": "^16.5.0",
|
|
38
38
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
39
|
-
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
40
39
|
"@atlaskit/primitives": "^22.4.0",
|
|
41
40
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
42
41
|
"@atlaskit/section-message": "^10.1.0",
|
|
43
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
42
|
+
"@atlaskit/tmp-editor-statsig": "^168.0.0",
|
|
44
43
|
"@atlaskit/tokens": "^16.9.0",
|
|
45
44
|
"@babel/runtime": "^7.0.0",
|
|
46
45
|
"@compiled/react": "^1.0.2",
|
|
@@ -67,10 +66,5 @@
|
|
|
67
66
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
68
67
|
"react": "^19.2.0",
|
|
69
68
|
"react-dom": "^19.2.0"
|
|
70
|
-
},
|
|
71
|
-
"platform-feature-flags": {
|
|
72
|
-
"nike_r19_render_unmount": {
|
|
73
|
-
"type": "boolean"
|
|
74
|
-
}
|
|
75
69
|
}
|
|
76
70
|
}
|