@atlaskit/editor-extension-dropbox 14.0.7 → 14.1.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,24 @@
1
1
  # @atlaskit/editor-extension-dropbox
2
2
 
3
+ ## 14.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`bd2c5b0112185`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/bd2c5b0112185) -
8
+ Remove stale API report artifacts from published Platform packages.
9
+
10
+ ### Patch Changes
11
+
12
+ - Updated dependencies
13
+
14
+ ## 14.0.8
15
+
16
+ ### Patch Changes
17
+
18
+ - [`6304662fbdf4a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6304662fbdf4a) -
19
+ Use the supported `createRoot` API when `platform_editor_react19_migration` is enabled.
20
+ - Updated dependencies
21
+
3
22
  ## 14.0.7
4
23
 
5
24
  ### 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.7",
3
+ "version": "14.1.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/"
@@ -30,24 +30,23 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/adf-utils": "^20.7.0",
34
- "@atlaskit/button": "^25.2.0",
33
+ "@atlaskit/adf-utils": "^20.8.0",
34
+ "@atlaskit/button": "^25.3.0",
35
35
  "@atlaskit/docs": "^12.2.0",
36
- "@atlaskit/heading": "^7.1.0",
37
- "@atlaskit/modal-dialog": "^16.5.0",
36
+ "@atlaskit/heading": "^7.2.0",
37
+ "@atlaskit/modal-dialog": "^16.6.0",
38
38
  "@atlaskit/platform-feature-experiments": "^0.3.0",
39
- "@atlaskit/platform-feature-flags": "^2.1.0",
40
- "@atlaskit/primitives": "^22.4.0",
39
+ "@atlaskit/primitives": "^22.5.0",
41
40
  "@atlaskit/react-compiler-gating": "^0.2.0",
42
- "@atlaskit/section-message": "^10.1.0",
43
- "@atlaskit/tmp-editor-statsig": "^167.0.0",
44
- "@atlaskit/tokens": "^16.9.0",
41
+ "@atlaskit/section-message": "^10.2.0",
42
+ "@atlaskit/tmp-editor-statsig": "^168.0.0",
43
+ "@atlaskit/tokens": "^16.10.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.7.0",
49
+ "@atlaskit/editor-common": "^120.9.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
  }
package/report.api.md DELETED
@@ -1,47 +0,0 @@
1
- <!-- API Report Version: 2.3 -->
2
-
3
- ## API Report File for "@atlaskit/editor-extension-dropbox"
4
-
5
- > Do not edit this file. This report is auto-generated using
6
- > [API Extractor](https://api-extractor.com/).
7
- > [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
8
-
9
- ### Table of contents
10
-
11
- - [Main Entry Types](#main-entry-types)
12
- - [Peer Dependencies](#peer-dependencies)
13
-
14
- ### Main Entry Types
15
-
16
- <!--SECTION START: Main Entry Types-->
17
-
18
- ```ts
19
- import { ExtensionManifest } from '@atlaskit/editor-common/extensions';
20
-
21
- // @public (undocumented)
22
- const manifestFunction: ({
23
- appKey,
24
- canMountinIframe,
25
- }: {
26
- appKey: string;
27
- canMountinIframe: boolean;
28
- }) => ExtensionManifest;
29
- export default manifestFunction;
30
-
31
- // (No @packageDocumentation comment for this package)
32
- ```
33
-
34
- <!--SECTION END: Main Entry Types-->
35
-
36
- ### Peer Dependencies
37
-
38
- <!--SECTION START: Peer Dependencies-->
39
-
40
- ```json
41
- {
42
- "react": "^16.8.0",
43
- "react-dom": "^16.8.0"
44
- }
45
- ```
46
-
47
- <!--SECTION END: Peer Dependencies-->