@atlaskit/editor-plugin-media-insert 2.7.0 → 2.7.1
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 +9 -0
- package/dist/cjs/actions.js +5 -0
- package/dist/es2019/actions.js +5 -0
- package/dist/esm/actions.js +5 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-media-insert
|
|
2
2
|
|
|
3
|
+
## 2.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#140707](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/140707)
|
|
8
|
+
[`972fb840acf35`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/972fb840acf35) -
|
|
9
|
+
Switch from fg to experiment for media-from-url
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 2.7.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/cjs/actions.js
CHANGED
|
@@ -4,6 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.showMediaInsertPopup = exports.closeMediaInsertPicker = exports.ACTION_OPEN_POPUP = exports.ACTION_CLOSE_POPUP = void 0;
|
|
7
|
+
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
7
8
|
var _pluginKey = require("./pm-plugins/plugin-key");
|
|
8
9
|
var ACTION_OPEN_POPUP = exports.ACTION_OPEN_POPUP = 'OPEN_POPUP';
|
|
9
10
|
var ACTION_CLOSE_POPUP = exports.ACTION_CLOSE_POPUP = 'CLOSE_POPUP';
|
|
@@ -15,6 +16,10 @@ var setPopupMeta = function setPopupMeta(_ref) {
|
|
|
15
16
|
});
|
|
16
17
|
};
|
|
17
18
|
var showMediaInsertPopup = exports.showMediaInsertPopup = function showMediaInsertPopup(tr) {
|
|
19
|
+
// Log exposure here but don't actually switch anything on it
|
|
20
|
+
(0, _experiments.editorExperiment)('add-media-from-url', true, {
|
|
21
|
+
exposure: true
|
|
22
|
+
});
|
|
18
23
|
return setPopupMeta({
|
|
19
24
|
type: ACTION_OPEN_POPUP,
|
|
20
25
|
tr: tr
|
package/dist/es2019/actions.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
1
2
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
2
3
|
export const ACTION_OPEN_POPUP = 'OPEN_POPUP';
|
|
3
4
|
export const ACTION_CLOSE_POPUP = 'CLOSE_POPUP';
|
|
@@ -8,6 +9,10 @@ const setPopupMeta = ({
|
|
|
8
9
|
type
|
|
9
10
|
});
|
|
10
11
|
export const showMediaInsertPopup = tr => {
|
|
12
|
+
// Log exposure here but don't actually switch anything on it
|
|
13
|
+
editorExperiment('add-media-from-url', true, {
|
|
14
|
+
exposure: true
|
|
15
|
+
});
|
|
11
16
|
return setPopupMeta({
|
|
12
17
|
type: ACTION_OPEN_POPUP,
|
|
13
18
|
tr
|
package/dist/esm/actions.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
1
2
|
import { pluginKey } from './pm-plugins/plugin-key';
|
|
2
3
|
export var ACTION_OPEN_POPUP = 'OPEN_POPUP';
|
|
3
4
|
export var ACTION_CLOSE_POPUP = 'CLOSE_POPUP';
|
|
@@ -9,6 +10,10 @@ var setPopupMeta = function setPopupMeta(_ref) {
|
|
|
9
10
|
});
|
|
10
11
|
};
|
|
11
12
|
export var showMediaInsertPopup = function showMediaInsertPopup(tr) {
|
|
13
|
+
// Log exposure here but don't actually switch anything on it
|
|
14
|
+
editorExperiment('add-media-from-url', true, {
|
|
15
|
+
exposure: true
|
|
16
|
+
});
|
|
12
17
|
return setPopupMeta({
|
|
13
18
|
type: ACTION_OPEN_POPUP,
|
|
14
19
|
tr: tr
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-media-insert",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.1",
|
|
4
4
|
"description": "Media Insert plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@atlaskit/button": "^20.1.0",
|
|
27
|
-
"@atlaskit/editor-common": "^89.
|
|
27
|
+
"@atlaskit/editor-common": "^89.2.0",
|
|
28
28
|
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
29
29
|
"@atlaskit/editor-plugin-media": "^1.31.0",
|
|
30
30
|
"@atlaskit/editor-prosemirror": "6.0.0",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"@atlaskit/section-message": "^6.6.0",
|
|
39
39
|
"@atlaskit/tabs": "^16.4.0",
|
|
40
40
|
"@atlaskit/textfield": "^6.5.0",
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "*",
|
|
41
42
|
"@babel/runtime": "^7.0.0",
|
|
42
43
|
"react": "^16.8.0",
|
|
43
44
|
"react-intl-next": "npm:react-intl@^5.18.1"
|