@atlaskit/editor-plugin-insert-block 12.0.12 → 12.0.14

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,21 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 12.0.14
4
+
5
+ ### Patch Changes
6
+
7
+ - [`db6cfe6d842ac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/db6cfe6d842ac) -
8
+ Cleaned up stale experiment platform_editor_fix_media_picker_hidden. Removed experiment gating in
9
+ MediaButton, keeping the shipped (true) code path. Removed experiment type definition and config
10
+ entry.
11
+ - Updated dependencies
12
+
13
+ ## 12.0.13
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 12.0.12
4
20
 
5
21
  ### Patch Changes
@@ -13,7 +13,6 @@ var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _toolbar = require("@atlaskit/editor-common/toolbar");
14
14
  var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
15
15
  var _editorToolbar = require("@atlaskit/editor-toolbar");
16
- var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
17
16
  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 _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
18
17
  var MediaButton = exports.MediaButton = function MediaButton(_ref) {
19
18
  var api = _ref.api;
@@ -44,17 +43,10 @@ var MediaButton = exports.MediaButton = function MediaButton(_ref) {
44
43
  if (api !== null && api !== void 0 && (_api$mediaInsert = api.mediaInsert) !== null && _api$mediaInsert !== void 0 && (_api$mediaInsert = _api$mediaInsert.commands) !== null && _api$mediaInsert !== void 0 && _api$mediaInsert.showMediaInsertPopup) {
45
44
  var _api$core, _api$mediaInsert2;
46
45
  var ref = mediaButtonRef.current;
47
- var mountInfoOld = ref ? {
48
- ref: ref,
49
- mountPoint: ref
50
- } : undefined;
51
- var mountInfo = ref !== null && ref !== void 0 && ref.parentElement ? {
46
+ var resolvedMountInfo = ref !== null && ref !== void 0 && ref.parentElement ? {
52
47
  ref: ref,
53
48
  mountPoint: popupsMountPoint !== null && popupsMountPoint !== void 0 ? popupsMountPoint : ref.parentElement
54
49
  } : undefined;
55
- var resolvedMountInfo = (0, _experiments.editorExperiment)('platform_editor_fix_media_picker_hidden', true, {
56
- exposure: true
57
- }) ? mountInfo : mountInfoOld;
58
50
  api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$mediaInsert2 = api.mediaInsert) === null || _api$mediaInsert2 === void 0 ? void 0 : _api$mediaInsert2.commands.showMediaInsertPopup(resolvedMountInfo));
59
51
  } else {
60
52
  showMediaPicker();
@@ -6,7 +6,6 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
6
6
  import { TOOLBAR_BUTTON_TEST_ID } from '@atlaskit/editor-common/toolbar';
7
7
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
8
8
  import { ToolbarButton, ToolbarTooltip, ImageIcon, useToolbarUI } from '@atlaskit/editor-toolbar';
9
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
9
  export const MediaButton = ({
11
10
  api
12
11
  }) => {
@@ -40,17 +39,10 @@ export const MediaButton = ({
40
39
  if (api !== null && api !== void 0 && (_api$mediaInsert = api.mediaInsert) !== null && _api$mediaInsert !== void 0 && (_api$mediaInsert$comm = _api$mediaInsert.commands) !== null && _api$mediaInsert$comm !== void 0 && _api$mediaInsert$comm.showMediaInsertPopup) {
41
40
  var _api$core, _api$mediaInsert2;
42
41
  const ref = mediaButtonRef.current;
43
- const mountInfoOld = ref ? {
44
- ref,
45
- mountPoint: ref
46
- } : undefined;
47
- const mountInfo = ref !== null && ref !== void 0 && ref.parentElement ? {
42
+ const resolvedMountInfo = ref !== null && ref !== void 0 && ref.parentElement ? {
48
43
  ref,
49
44
  mountPoint: popupsMountPoint !== null && popupsMountPoint !== void 0 ? popupsMountPoint : ref.parentElement
50
45
  } : undefined;
51
- const resolvedMountInfo = editorExperiment('platform_editor_fix_media_picker_hidden', true, {
52
- exposure: true
53
- }) ? mountInfo : mountInfoOld;
54
46
  api === null || api === void 0 ? void 0 : (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(api === null || api === void 0 ? void 0 : (_api$mediaInsert2 = api.mediaInsert) === null || _api$mediaInsert2 === void 0 ? void 0 : _api$mediaInsert2.commands.showMediaInsertPopup(resolvedMountInfo));
55
47
  } else {
56
48
  showMediaPicker();
@@ -6,7 +6,6 @@ import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/
6
6
  import { TOOLBAR_BUTTON_TEST_ID } from '@atlaskit/editor-common/toolbar';
7
7
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
8
8
  import { ToolbarButton, ToolbarTooltip, ImageIcon, useToolbarUI } from '@atlaskit/editor-toolbar';
9
- import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
9
  export var MediaButton = function MediaButton(_ref) {
11
10
  var api = _ref.api;
12
11
  var _useIntl = useIntl(),
@@ -36,17 +35,10 @@ export var MediaButton = function MediaButton(_ref) {
36
35
  if (api !== null && api !== void 0 && (_api$mediaInsert = api.mediaInsert) !== null && _api$mediaInsert !== void 0 && (_api$mediaInsert = _api$mediaInsert.commands) !== null && _api$mediaInsert !== void 0 && _api$mediaInsert.showMediaInsertPopup) {
37
36
  var _api$core, _api$mediaInsert2;
38
37
  var ref = mediaButtonRef.current;
39
- var mountInfoOld = ref ? {
40
- ref: ref,
41
- mountPoint: ref
42
- } : undefined;
43
- var mountInfo = ref !== null && ref !== void 0 && ref.parentElement ? {
38
+ var resolvedMountInfo = ref !== null && ref !== void 0 && ref.parentElement ? {
44
39
  ref: ref,
45
40
  mountPoint: popupsMountPoint !== null && popupsMountPoint !== void 0 ? popupsMountPoint : ref.parentElement
46
41
  } : undefined;
47
- var resolvedMountInfo = editorExperiment('platform_editor_fix_media_picker_hidden', true, {
48
- exposure: true
49
- }) ? mountInfo : mountInfoOld;
50
42
  api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$mediaInsert2 = api.mediaInsert) === null || _api$mediaInsert2 === void 0 ? void 0 : _api$mediaInsert2.commands.showMediaInsertPopup(resolvedMountInfo));
51
43
  } else {
52
44
  showMediaPicker();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "12.0.12",
3
+ "version": "12.0.14",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -42,7 +42,7 @@
42
42
  "@atlaskit/editor-plugin-hyperlink": "^13.1.0",
43
43
  "@atlaskit/editor-plugin-image-upload": "^11.0.0",
44
44
  "@atlaskit/editor-plugin-layout": "^12.0.0",
45
- "@atlaskit/editor-plugin-media": "^13.4.0",
45
+ "@atlaskit/editor-plugin-media": "^13.5.0",
46
46
  "@atlaskit/editor-plugin-media-insert": "^24.0.0",
47
47
  "@atlaskit/editor-plugin-mentions": "^13.3.0",
48
48
  "@atlaskit/editor-plugin-metrics": "^12.0.0",
@@ -62,9 +62,9 @@
62
62
  "@atlaskit/editor-toolbar-model": "^0.5.0",
63
63
  "@atlaskit/emoji": "^70.17.0",
64
64
  "@atlaskit/icon": "^35.4.0",
65
- "@atlaskit/icon-lab": "^6.13.0",
65
+ "@atlaskit/icon-lab": "^6.14.0",
66
66
  "@atlaskit/platform-feature-flags": "^1.1.0",
67
- "@atlaskit/tmp-editor-statsig": "^100.0.0",
67
+ "@atlaskit/tmp-editor-statsig": "^102.0.0",
68
68
  "@atlaskit/tokens": "^13.4.0",
69
69
  "@babel/runtime": "^7.0.0",
70
70
  "@emotion/react": "^11.7.1",