@atlaskit/editor-plugin-loom 9.0.3 → 9.0.4

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,13 @@
1
1
  # @atlaskit/editor-plugin-loom
2
2
 
3
+ ## 9.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8708f328d5db6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8708f328d5db6) -
8
+ Clean up platform_editor_toolbar_aifc_overflow_menu_update feature gate
9
+ - Updated dependencies
10
+
3
11
  ## 9.0.3
4
12
 
5
13
  ### Patch Changes
@@ -11,7 +11,6 @@ var _hooks = require("@atlaskit/editor-common/hooks");
11
11
  var _messages = require("@atlaskit/editor-common/messages");
12
12
  var _toolbar = require("@atlaskit/editor-common/toolbar");
13
13
  var _editorToolbar = require("@atlaskit/editor-toolbar");
14
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
14
  var _commands = require("../pm-plugins/commands");
16
15
  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); }
17
16
  var useLoomEnabled = function useLoomEnabled(api) {
@@ -30,7 +29,7 @@ var LoomMenuItem = exports.LoomMenuItem = function LoomMenuItem(_ref) {
30
29
  var loomEnabled = useLoomEnabled(api);
31
30
  var _useEditorToolbar = (0, _toolbar.useEditorToolbar)(),
32
31
  editorViewMode = _useEditorToolbar.editorViewMode;
33
- if (editorViewMode !== 'edit' && (0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_overflow_menu_update')) {
32
+ if (editorViewMode !== 'edit') {
34
33
  return null;
35
34
  }
36
35
  if (renderButton) {
@@ -5,11 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.getToolbarComponents = void 0;
8
- var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
9
8
  var _react = _interopRequireDefault(require("react"));
10
9
  var _toolbar = require("@atlaskit/editor-common/toolbar");
11
10
  var _editorToolbar = require("@atlaskit/editor-toolbar");
12
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
13
11
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
14
12
  var _LoomMenuItem = require("./LoomMenuItem");
15
13
  var _MenuSection = require("./MenuSection");
@@ -17,15 +15,11 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
17
15
  return [{
18
16
  type: _toolbar.LOOM_MENU_SECTION.type,
19
17
  key: _toolbar.LOOM_MENU_SECTION.key,
20
- parents: [].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_overflow_menu_update') ? [] : [{
21
- type: _toolbar.OVERFLOW_MENU.type,
22
- key: _toolbar.OVERFLOW_MENU.key,
23
- rank: _toolbar.OVERFLOW_MENU_RANK[_toolbar.LOOM_MENU_SECTION.key]
24
- }]), [{
18
+ parents: [{
25
19
  type: _toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
26
20
  key: _toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
27
21
  rank: _toolbar.OVERFLOW_MENU_PRIMARY_TOOLBAR_RANK[_toolbar.LOOM_MENU_SECTION.key]
28
- }]),
22
+ }],
29
23
  component: function component(_ref) {
30
24
  var children = _ref.children;
31
25
  if ((0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true)) {
@@ -44,11 +38,11 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
44
38
  type: _toolbar.LOOM_MENU_SECTION.type,
45
39
  key: _toolbar.LOOM_MENU_SECTION.key,
46
40
  rank: _toolbar.LOOM_MENU_SECTION_RANK[_toolbar.LOOM_MENU_ITEM.key]
47
- }].concat((0, _toConsumableArray2.default)((0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_overflow_menu_update') ? [{
41
+ }, {
48
42
  type: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.type,
49
43
  key: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION.key,
50
44
  rank: _toolbar.OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[_toolbar.LOOM_MENU_ITEM.key]
51
- }] : [])),
45
+ }],
52
46
  component: function component() {
53
47
  return /*#__PURE__*/_react.default.createElement(_LoomMenuItem.LoomMenuItem, {
54
48
  api: api,
@@ -4,7 +4,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
6
6
  import { LoomIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { executeRecordVideo } from '../pm-plugins/commands';
9
8
  const useLoomEnabled = api => {
10
9
  const {
@@ -25,7 +24,7 @@ export const LoomMenuItem = ({
25
24
  const {
26
25
  editorViewMode
27
26
  } = useEditorToolbar();
28
- if (editorViewMode !== 'edit' && fg('platform_editor_toolbar_aifc_overflow_menu_update')) {
27
+ if (editorViewMode !== 'edit') {
29
28
  return null;
30
29
  }
31
30
  if (renderButton) {
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- import { LOOM_MENU_SECTION, OVERFLOW_MENU_RANK, OVERFLOW_MENU, LOOM_MENU_ITEM, LOOM_MENU_SECTION_RANK, OVERFLOW_MENU_PRIMARY_TOOLBAR_RANK, OVERFLOW_MENU_PRIMARY_TOOLBAR, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK } from '@atlaskit/editor-common/toolbar';
2
+ import { LOOM_MENU_SECTION, LOOM_MENU_ITEM, LOOM_MENU_SECTION_RANK, OVERFLOW_MENU_PRIMARY_TOOLBAR_RANK, OVERFLOW_MENU_PRIMARY_TOOLBAR, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK } from '@atlaskit/editor-common/toolbar';
3
3
  import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
4
- import { fg } from '@atlaskit/platform-feature-flags';
5
4
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
6
5
  import { LoomMenuItem } from './LoomMenuItem';
7
6
  import { MenuSection } from './MenuSection';
@@ -9,11 +8,7 @@ export const getToolbarComponents = (config, api) => {
9
8
  return [{
10
9
  type: LOOM_MENU_SECTION.type,
11
10
  key: LOOM_MENU_SECTION.key,
12
- parents: [...(fg('platform_editor_toolbar_aifc_overflow_menu_update') ? [] : [{
13
- type: OVERFLOW_MENU.type,
14
- key: OVERFLOW_MENU.key,
15
- rank: OVERFLOW_MENU_RANK[LOOM_MENU_SECTION.key]
16
- }]), {
11
+ parents: [{
17
12
  type: OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
18
13
  key: OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
19
14
  rank: OVERFLOW_MENU_PRIMARY_TOOLBAR_RANK[LOOM_MENU_SECTION.key]
@@ -37,11 +32,11 @@ export const getToolbarComponents = (config, api) => {
37
32
  type: LOOM_MENU_SECTION.type,
38
33
  key: LOOM_MENU_SECTION.key,
39
34
  rank: LOOM_MENU_SECTION_RANK[LOOM_MENU_ITEM.key]
40
- }, ...(fg('platform_editor_toolbar_aifc_overflow_menu_update') ? [{
35
+ }, {
41
36
  type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
42
37
  key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
43
38
  rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[LOOM_MENU_ITEM.key]
44
- }] : [])],
39
+ }],
45
40
  component: () => {
46
41
  return /*#__PURE__*/React.createElement(LoomMenuItem, {
47
42
  api: api,
@@ -4,7 +4,6 @@ import { useSharedPluginStateWithSelector } from '@atlaskit/editor-common/hooks'
4
4
  import { toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
5
5
  import { useEditorToolbar } from '@atlaskit/editor-common/toolbar';
6
6
  import { LoomIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
7
  import { executeRecordVideo } from '../pm-plugins/commands';
9
8
  var useLoomEnabled = function useLoomEnabled(api) {
10
9
  var _useSharedPluginState = useSharedPluginStateWithSelector(api, ['loom'], function (states) {
@@ -22,7 +21,7 @@ export var LoomMenuItem = function LoomMenuItem(_ref) {
22
21
  var loomEnabled = useLoomEnabled(api);
23
22
  var _useEditorToolbar = useEditorToolbar(),
24
23
  editorViewMode = _useEditorToolbar.editorViewMode;
25
- if (editorViewMode !== 'edit' && fg('platform_editor_toolbar_aifc_overflow_menu_update')) {
24
+ if (editorViewMode !== 'edit') {
26
25
  return null;
27
26
  }
28
27
  if (renderButton) {
@@ -1,8 +1,6 @@
1
- import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
2
1
  import React from 'react';
3
- import { LOOM_MENU_SECTION, OVERFLOW_MENU_RANK, OVERFLOW_MENU, LOOM_MENU_ITEM, LOOM_MENU_SECTION_RANK, OVERFLOW_MENU_PRIMARY_TOOLBAR_RANK, OVERFLOW_MENU_PRIMARY_TOOLBAR, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK } from '@atlaskit/editor-common/toolbar';
2
+ import { LOOM_MENU_SECTION, LOOM_MENU_ITEM, LOOM_MENU_SECTION_RANK, OVERFLOW_MENU_PRIMARY_TOOLBAR_RANK, OVERFLOW_MENU_PRIMARY_TOOLBAR, OVERFLOW_EXTENSIONS_MENU_SECTION, OVERFLOW_EXTENSIONS_MENU_SECTION_RANK } from '@atlaskit/editor-common/toolbar';
4
3
  import { ToolbarDropdownItemSection } from '@atlaskit/editor-toolbar';
5
- import { fg } from '@atlaskit/platform-feature-flags';
6
4
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
7
5
  import { LoomMenuItem } from './LoomMenuItem';
8
6
  import { MenuSection } from './MenuSection';
@@ -10,15 +8,11 @@ export var getToolbarComponents = function getToolbarComponents(config, api) {
10
8
  return [{
11
9
  type: LOOM_MENU_SECTION.type,
12
10
  key: LOOM_MENU_SECTION.key,
13
- parents: [].concat(_toConsumableArray(fg('platform_editor_toolbar_aifc_overflow_menu_update') ? [] : [{
14
- type: OVERFLOW_MENU.type,
15
- key: OVERFLOW_MENU.key,
16
- rank: OVERFLOW_MENU_RANK[LOOM_MENU_SECTION.key]
17
- }]), [{
11
+ parents: [{
18
12
  type: OVERFLOW_MENU_PRIMARY_TOOLBAR.type,
19
13
  key: OVERFLOW_MENU_PRIMARY_TOOLBAR.key,
20
14
  rank: OVERFLOW_MENU_PRIMARY_TOOLBAR_RANK[LOOM_MENU_SECTION.key]
21
- }]),
15
+ }],
22
16
  component: function component(_ref) {
23
17
  var children = _ref.children;
24
18
  if (expValEquals('platform_editor_toolbar_aifc_patch_3', 'isEnabled', true)) {
@@ -37,11 +31,11 @@ export var getToolbarComponents = function getToolbarComponents(config, api) {
37
31
  type: LOOM_MENU_SECTION.type,
38
32
  key: LOOM_MENU_SECTION.key,
39
33
  rank: LOOM_MENU_SECTION_RANK[LOOM_MENU_ITEM.key]
40
- }].concat(_toConsumableArray(fg('platform_editor_toolbar_aifc_overflow_menu_update') ? [{
34
+ }, {
41
35
  type: OVERFLOW_EXTENSIONS_MENU_SECTION.type,
42
36
  key: OVERFLOW_EXTENSIONS_MENU_SECTION.key,
43
37
  rank: OVERFLOW_EXTENSIONS_MENU_SECTION_RANK[LOOM_MENU_ITEM.key]
44
- }] : [])),
38
+ }],
45
39
  component: function component() {
46
40
  return /*#__PURE__*/React.createElement(LoomMenuItem, {
47
41
  api: api,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-loom",
3
- "version": "9.0.3",
3
+ "version": "9.0.4",
4
4
  "description": "Loom plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -46,8 +46,8 @@
46
46
  "@atlaskit/icon": "^29.4.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/platform-feature-flags-react": "^0.4.0",
49
- "@atlaskit/tmp-editor-statsig": "^16.23.0",
50
- "@atlaskit/tokens": "^10.0.0",
49
+ "@atlaskit/tmp-editor-statsig": "^16.28.0",
50
+ "@atlaskit/tokens": "^10.1.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@emotion/react": "^11.7.1",
53
53
  "@loomhq/record-sdk": "^4.7.1"
@@ -102,9 +102,6 @@
102
102
  "platform-feature-flags": {
103
103
  "should-render-to-parent-should-be-true-editor-lego": {
104
104
  "type": "boolean"
105
- },
106
- "platform_editor_toolbar_aifc_overflow_menu_update": {
107
- "type": "boolean"
108
105
  }
109
106
  }
110
107
  }