@atlaskit/editor-extension-dropbox 14.0.6 → 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 CHANGED
@@ -1,5 +1,19 @@
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
+
11
+ ## 14.0.7
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 14.0.6
4
18
 
5
19
  ### Patch Changes
@@ -40,9 +40,6 @@
40
40
  {
41
41
  "path": "../../../platform/feature-experiments/afm-cc/tsconfig.json"
42
42
  },
43
- {
44
- "path": "../../../platform/feature-flags/afm-cc/tsconfig.json"
45
- },
46
43
  {
47
44
  "path": "../../../design-system/primitives/afm-cc/tsconfig.json"
48
45
  },
@@ -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`: uses the React 18/19 `createRoot` API when `nike_r19_render_unmount` is on, else the legacy render path. */
21
+ /** Mounts `element` into `mountPoint` using `createRoot` when the migration experiment is on. */
23
22
  var renderToMountPoint = function renderToMountPoint(element, mountPoint) {
24
- if ((0, _fg.fg)('nike_r19_render_unmount')) {
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 at `mountPoint`: uses `root.unmount()` when `nike_r19_render_unmount` is on, else the legacy unmount path. */
35
+ /** Unmounts the tree using the registered root when the migration experiment is on. */
37
36
  var unmountFromMountPoint = function unmountFromMountPoint(mountPoint) {
38
- if ((0, _fg.fg)('nike_r19_render_unmount')) {
37
+ if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_react19_migration')) {
39
38
  var root = reactRoots.get(mountPoint);
40
39
  if (root) {
41
40
  root.unmount();
@@ -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`: uses the React 18/19 `createRoot` API when `nike_r19_render_unmount` is on, else the legacy render path. */
10
+ /** Mounts `element` into `mountPoint` using `createRoot` when the migration experiment is on. */
12
11
  const renderToMountPoint = (element, mountPoint) => {
13
- if (fg('nike_r19_render_unmount')) {
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 at `mountPoint`: uses `root.unmount()` when `nike_r19_render_unmount` is on, else the legacy unmount path. */
24
+ /** Unmounts the tree using the registered root when the migration experiment is on. */
26
25
  const unmountFromMountPoint = mountPoint => {
27
- if (fg('nike_r19_render_unmount')) {
26
+ if (isExperimentEnabled('platform_editor_react19_migration')) {
28
27
  const root = reactRoots.get(mountPoint);
29
28
  if (root) {
30
29
  root.unmount();
@@ -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`: uses the React 18/19 `createRoot` API when `nike_r19_render_unmount` is on, else the legacy render path. */
12
+ /** Mounts `element` into `mountPoint` using `createRoot` when the migration experiment is on. */
14
13
  var renderToMountPoint = function renderToMountPoint(element, mountPoint) {
15
- if (fg('nike_r19_render_unmount')) {
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 at `mountPoint`: uses `root.unmount()` when `nike_r19_render_unmount` is on, else the legacy unmount path. */
26
+ /** Unmounts the tree using the registered root when the migration experiment is on. */
28
27
  var unmountFromMountPoint = function unmountFromMountPoint(mountPoint) {
29
- if (fg('nike_r19_render_unmount')) {
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.6",
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,18 +36,17 @@
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": "^166.0.0",
44
- "@atlaskit/tokens": "^16.8.0",
42
+ "@atlaskit/tmp-editor-statsig": "^168.0.0",
43
+ "@atlaskit/tokens": "^16.9.0",
45
44
  "@babel/runtime": "^7.0.0",
46
45
  "@compiled/react": "^1.0.2",
47
46
  "@emotion/react": "^11.7.1"
48
47
  },
49
48
  "peerDependencies": {
50
- "@atlaskit/editor-common": "^120.6.0",
49
+ "@atlaskit/editor-common": "^120.7.0",
51
50
  "react": "^18.2.0 || ^19.2.0",
52
51
  "react-dom": "^18.2.0 || ^19.2.0"
53
52
  },
@@ -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
  }