@atlaskit/editor-extension-dropbox 13.0.8 → 13.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 +22 -0
- package/afm-cc/tsconfig.json +3 -0
- package/dist/cjs/manifest.js +5 -5
- package/dist/es2019/manifest.js +5 -5
- package/dist/esm/manifest.js +5 -5
- package/package.json +10 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @atlaskit/editor-extension-dropbox
|
|
2
2
|
|
|
3
|
+
## 13.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`d96f86ff344b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d96f86ff344b8) -
|
|
8
|
+
Use @atlaskit/platform-feature-experiments directly for
|
|
9
|
+
platform_editor_vc90_transition_expand_icon, platform_editor_add_image_editing,
|
|
10
|
+
platform_editor_ai_multi_format_streaming, platform_editor_default_toolbar_state,
|
|
11
|
+
platform_editor_early_exit_return_draft, platform_editor_fix_focus_MediaInsertPicker,
|
|
12
|
+
platform_editor_fix_table_move_shortcut, platform_editor_menu_radius_update,
|
|
13
|
+
platform_editor_react19_migration, and show_mentions_in_suggest_reply.
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
19
|
+
## 13.0.9
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- Updated dependencies
|
|
24
|
+
|
|
3
25
|
## 13.0.8
|
|
4
26
|
|
|
5
27
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/dist/cjs/manifest.js
CHANGED
|
@@ -12,7 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _reactDom = _interopRequireDefault(require("react-dom"));
|
|
13
13
|
var _client = require("react-dom/client");
|
|
14
14
|
var _builders = require("@atlaskit/adf-utils/builders");
|
|
15
|
-
var
|
|
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
18
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
@@ -81,7 +81,7 @@ function _pickFromDropbox() {
|
|
|
81
81
|
popupMountPoint.id = _constants.POPUP_MOUNTPOINT;
|
|
82
82
|
document.body.appendChild(popupMountPoint);
|
|
83
83
|
}
|
|
84
|
-
if ((0,
|
|
84
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_react19_migration')) {
|
|
85
85
|
root = (0, _client.createRoot)(popupMountPoint);
|
|
86
86
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
87
87
|
root.render( /*#__PURE__*/_react.default.createElement(Modal.default, {
|
|
@@ -111,7 +111,7 @@ function _pickFromDropbox() {
|
|
|
111
111
|
case 5:
|
|
112
112
|
_context2.prev = 5;
|
|
113
113
|
_t2 = _context2["catch"](3);
|
|
114
|
-
if ((0,
|
|
114
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_react19_migration')) {
|
|
115
115
|
if (root) {
|
|
116
116
|
root.unmount();
|
|
117
117
|
}
|
|
@@ -124,7 +124,7 @@ function _pickFromDropbox() {
|
|
|
124
124
|
_context2.next = 7;
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
|
-
if ((0,
|
|
127
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_react19_migration')) {
|
|
128
128
|
if (root) {
|
|
129
129
|
root.unmount();
|
|
130
130
|
}
|
|
@@ -148,7 +148,7 @@ function _pickFromDropbox() {
|
|
|
148
148
|
content: newNodes
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
if ((0,
|
|
151
|
+
if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_react19_migration')) {
|
|
152
152
|
if (root) {
|
|
153
153
|
root.unmount();
|
|
154
154
|
}
|
package/dist/es2019/manifest.js
CHANGED
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import ReactDOM from 'react-dom';
|
|
3
3
|
import { createRoot } from 'react-dom/client';
|
|
4
4
|
import { inlineCard } from '@atlaskit/adf-utils/builders';
|
|
5
|
-
import {
|
|
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
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -56,7 +56,7 @@ async function pickFromDropbox(appKey, canMountinIframe) {
|
|
|
56
56
|
popupMountPoint.id = POPUP_MOUNTPOINT;
|
|
57
57
|
document.body.appendChild(popupMountPoint);
|
|
58
58
|
}
|
|
59
|
-
if (
|
|
59
|
+
if (isExperimentEnabled('platform_editor_react19_migration')) {
|
|
60
60
|
root = createRoot(popupMountPoint);
|
|
61
61
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
62
62
|
root.render( /*#__PURE__*/React.createElement(Modal.default, {
|
|
@@ -81,7 +81,7 @@ async function pickFromDropbox(appKey, canMountinIframe) {
|
|
|
81
81
|
});
|
|
82
82
|
// eslint-disable-next-line no-unused-vars
|
|
83
83
|
} catch (e) {
|
|
84
|
-
if (
|
|
84
|
+
if (isExperimentEnabled('platform_editor_react19_migration')) {
|
|
85
85
|
if (root) {
|
|
86
86
|
root.unmount();
|
|
87
87
|
}
|
|
@@ -92,7 +92,7 @@ async function pickFromDropbox(appKey, canMountinIframe) {
|
|
|
92
92
|
}
|
|
93
93
|
let node;
|
|
94
94
|
if (!files.length) {
|
|
95
|
-
if (
|
|
95
|
+
if (isExperimentEnabled('platform_editor_react19_migration')) {
|
|
96
96
|
if (root) {
|
|
97
97
|
root.unmount();
|
|
98
98
|
}
|
|
@@ -114,7 +114,7 @@ async function pickFromDropbox(appKey, canMountinIframe) {
|
|
|
114
114
|
content: newNodes
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
if (
|
|
117
|
+
if (isExperimentEnabled('platform_editor_react19_migration')) {
|
|
118
118
|
if (root) {
|
|
119
119
|
root.unmount();
|
|
120
120
|
}
|
package/dist/esm/manifest.js
CHANGED
|
@@ -4,7 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import ReactDOM from 'react-dom';
|
|
5
5
|
import { createRoot } from 'react-dom/client';
|
|
6
6
|
import { inlineCard } from '@atlaskit/adf-utils/builders';
|
|
7
|
-
import {
|
|
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
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -70,7 +70,7 @@ function _pickFromDropbox() {
|
|
|
70
70
|
popupMountPoint.id = POPUP_MOUNTPOINT;
|
|
71
71
|
document.body.appendChild(popupMountPoint);
|
|
72
72
|
}
|
|
73
|
-
if (
|
|
73
|
+
if (isExperimentEnabled('platform_editor_react19_migration')) {
|
|
74
74
|
root = createRoot(popupMountPoint);
|
|
75
75
|
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
76
76
|
root.render( /*#__PURE__*/React.createElement(Modal.default, {
|
|
@@ -100,7 +100,7 @@ function _pickFromDropbox() {
|
|
|
100
100
|
case 5:
|
|
101
101
|
_context2.prev = 5;
|
|
102
102
|
_t2 = _context2["catch"](3);
|
|
103
|
-
if (
|
|
103
|
+
if (isExperimentEnabled('platform_editor_react19_migration')) {
|
|
104
104
|
if (root) {
|
|
105
105
|
root.unmount();
|
|
106
106
|
}
|
|
@@ -113,7 +113,7 @@ function _pickFromDropbox() {
|
|
|
113
113
|
_context2.next = 7;
|
|
114
114
|
break;
|
|
115
115
|
}
|
|
116
|
-
if (
|
|
116
|
+
if (isExperimentEnabled('platform_editor_react19_migration')) {
|
|
117
117
|
if (root) {
|
|
118
118
|
root.unmount();
|
|
119
119
|
}
|
|
@@ -137,7 +137,7 @@ function _pickFromDropbox() {
|
|
|
137
137
|
content: newNodes
|
|
138
138
|
};
|
|
139
139
|
}
|
|
140
|
-
if (
|
|
140
|
+
if (isExperimentEnabled('platform_editor_react19_migration')) {
|
|
141
141
|
if (root) {
|
|
142
142
|
root.unmount();
|
|
143
143
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-extension-dropbox",
|
|
3
|
-
"version": "13.0
|
|
3
|
+
"version": "13.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/"
|
|
@@ -31,20 +31,21 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/adf-utils": "^20.7.0",
|
|
34
|
-
"@atlaskit/button": "^25.
|
|
35
|
-
"@atlaskit/heading": "^7.
|
|
36
|
-
"@atlaskit/modal-dialog": "^16.
|
|
34
|
+
"@atlaskit/button": "^25.2.0",
|
|
35
|
+
"@atlaskit/heading": "^7.1.0",
|
|
36
|
+
"@atlaskit/modal-dialog": "^16.5.0",
|
|
37
|
+
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
37
38
|
"@atlaskit/platform-feature-flags": "^2.1.0",
|
|
38
|
-
"@atlaskit/primitives": "^22.
|
|
39
|
+
"@atlaskit/primitives": "^22.4.0",
|
|
39
40
|
"@atlaskit/react-compiler-gating": "^0.2.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
41
|
-
"@atlaskit/tokens": "^16.
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^157.0.0",
|
|
42
|
+
"@atlaskit/tokens": "^16.8.0",
|
|
42
43
|
"@babel/runtime": "^7.0.0",
|
|
43
44
|
"@compiled/react": "^1.0.2",
|
|
44
45
|
"@emotion/react": "^11.7.1"
|
|
45
46
|
},
|
|
46
47
|
"peerDependencies": {
|
|
47
|
-
"@atlaskit/editor-common": "^119.
|
|
48
|
+
"@atlaskit/editor-common": "^119.13.0",
|
|
48
49
|
"react": "^18.2.0 || ^19.2.0",
|
|
49
50
|
"react-dom": "^18.2.0 || ^19.2.0"
|
|
50
51
|
},
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
}
|
|
61
62
|
},
|
|
62
63
|
"devDependencies": {
|
|
64
|
+
"@atlassian/experiment-test-utils": "^0.2.0",
|
|
63
65
|
"@atlassian/structured-docs-types": "workspace:^",
|
|
64
66
|
"react": "^19.2.0",
|
|
65
67
|
"react-dom": "^19.2.0"
|