@atlaskit/editor-plugin-panel 17.0.13 → 17.0.15

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-panel
2
2
 
3
+ ## 17.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - [`656801b9e097c`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/656801b9e097c) -
8
+ VOLTC-331 - Migrate updated package usage in platform/editor: rewrite barrel imports of
9
+ voltCompliant provider packages to deep/subpath imports (consumer-side debarrel). No public API
10
+ changes.
11
+ - Updated dependencies
12
+
13
+ ## 17.0.14
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 17.0.13
4
20
 
5
21
  ### Patch Changes
@@ -13,7 +13,7 @@ var _blockMenu = require("@atlaskit/editor-common/block-menu");
13
13
  var _messages = require("@atlaskit/editor-common/messages");
14
14
  var _quickInsert = require("@atlaskit/editor-common/quick-insert");
15
15
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
16
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
17
17
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
18
18
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
19
19
  var _createPanelAction = require("./pm-plugins/commands/create-panel-action");
@@ -62,7 +62,7 @@ var panelPlugin = function panelPlugin(_ref) {
62
62
  return {
63
63
  name: 'panel',
64
64
  nodes: function nodes() {
65
- if ((0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid')) {
65
+ if ((0, _fg.fg)('platform_editor_adf_with_localid')) {
66
66
  return [{
67
67
  name: 'panel',
68
68
  node: _objectSpread(_objectSpread({}, (0, _adfSchema.extendedPanelWithLocalId)(!!allowCustomPanel)), {}, {
@@ -12,7 +12,7 @@ var _editorPalette = require("@atlaskit/editor-palette");
12
12
  var _state = require("@atlaskit/editor-prosemirror/state");
13
13
  var _utils = require("@atlaskit/editor-prosemirror/utils");
14
14
  var _consts = require("@atlaskit/editor-shared-styles/consts");
15
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
15
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
16
16
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
17
17
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
18
18
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -62,7 +62,7 @@ var panelAttrsToDom = exports.panelAttrsToDom = function panelAttrsToDom(attrs,
62
62
  'data-panel-icon': panelIcon
63
63
  });
64
64
  }
65
- if ((0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid')) {
65
+ if ((0, _fg.fg)('platform_editor_adf_with_localid')) {
66
66
  panelAttrs = _objectSpread(_objectSpread({}, panelAttrs), {}, {
67
67
  'data-local-id': attrs.localId
68
68
  });
@@ -26,7 +26,7 @@ var _statusDiscovery = _interopRequireDefault(require("@atlaskit/icon/core/statu
26
26
  var _statusInformation = _interopRequireDefault(require("@atlaskit/icon/core/status-information"));
27
27
  var _statusSuccess = _interopRequireDefault(require("@atlaskit/icon/core/status-success"));
28
28
  var _statusWarning = _interopRequireDefault(require("@atlaskit/icon/core/status-warning"));
29
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
29
+ var _fg = require("@atlaskit/platform-feature-flags/fg");
30
30
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
31
31
  var _actions = require("../editor-actions/actions");
32
32
  var _utils2 = require("../pm-plugins/utils/utils");
@@ -200,7 +200,7 @@ var getToolbarItems = exports.getToolbarItems = function getToolbarItems(formatM
200
200
  };
201
201
  };
202
202
  var panelColor = activePanelType === _adfSchema.PanelType.CUSTOM ? activePanelColor || (0, _panel.getPanelTypeBackgroundNoTokens)(_adfSchema.PanelType.INFO) : (0, _panel.getPanelTypeBackgroundNoTokens)(activePanelType);
203
- var isNewPanelPaletteEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _platformFeatureFlags.fg)('platform_editor_lovability_text_bg_color_patch_2');
203
+ var isNewPanelPaletteEnabled = (0, _expValEquals.expValEquals)('platform_editor_lovability_text_bg_color', 'isEnabled', true) && (0, _fg.fg)('platform_editor_lovability_text_bg_color_patch_2');
204
204
  var colorPalette = isNewPanelPaletteEnabled ? _uiColor.panelBackgroundPaletteNew : _uiColor.panelBackgroundPalette;
205
205
  var defaultPalette = colorPalette.find(function (item) {
206
206
  return item.value === panelColor;
@@ -4,7 +4,7 @@ import { TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION,
4
4
  import { blockTypeMessages } from '@atlaskit/editor-common/messages';
5
5
  import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
6
6
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
7
- import { fg } from '@atlaskit/platform-feature-flags';
7
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
8
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
9
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
10
10
  import { createPanelAction } from './pm-plugins/commands/create-panel-action';
@@ -4,7 +4,7 @@ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
4
4
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
5
5
  import { findParentNode, findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
6
6
  import { akEditorTableContainerBg } from '@atlaskit/editor-shared-styles/consts';
7
- import { fg } from '@atlaskit/platform-feature-flags';
7
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
8
8
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
9
9
  export const isPanel = nodeName => {
10
10
  return expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) ? ['panel', 'panel_c1'].includes(nodeName) : nodeName === 'panel';
@@ -16,7 +16,7 @@ import StatusDiscoveryIcon from '@atlaskit/icon/core/status-discovery';
16
16
  import InformationIcon from '@atlaskit/icon/core/status-information';
17
17
  import SuccessIcon from '@atlaskit/icon/core/status-success';
18
18
  import WarningIcon from '@atlaskit/icon/core/status-warning';
19
- import { fg } from '@atlaskit/platform-feature-flags';
19
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
20
20
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
21
21
  import { changePanelType, removePanel } from '../editor-actions/actions';
22
22
  import { findPanel } from '../pm-plugins/utils/utils';
@@ -8,7 +8,7 @@ import { TRANSFORM_STRUCTURE_PANEL_MENU_ITEM, TRANSFORM_STRUCTURE_MENU_SECTION,
8
8
  import { blockTypeMessages } from '@atlaskit/editor-common/messages';
9
9
  import { IconCustomPanel, IconPanel, IconPanelError, IconPanelNote, IconPanelSuccess, IconPanelWarning } from '@atlaskit/editor-common/quick-insert';
10
10
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
11
- import { fg } from '@atlaskit/platform-feature-flags';
11
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
12
12
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
13
13
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
14
14
  import { createPanelAction } from './pm-plugins/commands/create-panel-action';
@@ -7,7 +7,7 @@ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
7
7
  import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
8
8
  import { findParentNode, findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
9
9
  import { akEditorTableContainerBg } from '@atlaskit/editor-shared-styles/consts';
10
- import { fg } from '@atlaskit/platform-feature-flags';
10
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
11
11
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
12
  export var isPanel = function isPanel(nodeName) {
13
13
  return expValEquals('platform_editor_nest_table_in_panel', 'isEnabled', true) ? ['panel', 'panel_c1'].includes(nodeName) : nodeName === 'panel';
@@ -20,7 +20,7 @@ import StatusDiscoveryIcon from '@atlaskit/icon/core/status-discovery';
20
20
  import InformationIcon from '@atlaskit/icon/core/status-information';
21
21
  import SuccessIcon from '@atlaskit/icon/core/status-success';
22
22
  import WarningIcon from '@atlaskit/icon/core/status-warning';
23
- import { fg } from '@atlaskit/platform-feature-flags';
23
+ import { fg } from '@atlaskit/platform-feature-flags/fg';
24
24
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
25
25
  import { changePanelType, removePanel } from '../editor-actions/actions';
26
26
  import { findPanel } from '../pm-plugins/utils/utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "17.0.13",
3
+ "version": "17.0.15",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,7 +36,7 @@
36
36
  "@atlaskit/icon": "^37.5.0",
37
37
  "@atlaskit/platform-feature-experiments": "^0.3.0",
38
38
  "@atlaskit/platform-feature-flags": "^2.1.0",
39
- "@atlaskit/tmp-editor-statsig": "^158.0.0",
39
+ "@atlaskit/tmp-editor-statsig": "^159.0.0",
40
40
  "@atlaskit/tokens": "^16.8.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "uuid": "^3.1.0"