@atlaskit/editor-plugin-panel 6.0.0 → 6.0.2

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,19 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 6.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`5f1d8eb6b1fa2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5f1d8eb6b1fa2) -
14
+ EDITOR-1464 Update toDOM methods to include localId
15
+ - Updated dependencies
16
+
3
17
  ## 6.0.0
4
18
 
5
19
  ### Patch Changes
@@ -42,6 +42,11 @@ var panelAttrsToDom = exports.panelAttrsToDom = function panelAttrsToDom(attrs,
42
42
  'data-panel-icon-text': panelIconText
43
43
  });
44
44
  }
45
+ if ((0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid')) {
46
+ panelAttrs = _objectSpread(_objectSpread({}, panelAttrs), {}, {
47
+ 'data-local-id': attrs.localId
48
+ });
49
+ }
45
50
  var iconDiv = ['div',
46
51
  // EDITOR-266 This fixes an issue in LCM where if you have nested panels
47
52
  // The icon colour will be overridden by the parent panel style, this is used to create a more specific css selector
@@ -37,6 +37,12 @@ export const panelAttrsToDom = (attrs, allowCustomPanel) => {
37
37
  'data-panel-icon-text': panelIconText
38
38
  };
39
39
  }
40
+ if (fg('platform_editor_adf_with_localid')) {
41
+ panelAttrs = {
42
+ ...panelAttrs,
43
+ 'data-local-id': attrs.localId
44
+ };
45
+ }
40
46
  const iconDiv = ['div',
41
47
  // EDITOR-266 This fixes an issue in LCM where if you have nested panels
42
48
  // The icon colour will be overridden by the parent panel style, this is used to create a more specific css selector
@@ -35,6 +35,11 @@ export var panelAttrsToDom = function panelAttrsToDom(attrs, allowCustomPanel) {
35
35
  'data-panel-icon-text': panelIconText
36
36
  });
37
37
  }
38
+ if (fg('platform_editor_adf_with_localid')) {
39
+ panelAttrs = _objectSpread(_objectSpread({}, panelAttrs), {}, {
40
+ 'data-local-id': attrs.localId
41
+ });
42
+ }
38
43
  var iconDiv = ['div',
39
44
  // EDITOR-266 This fixes an issue in LCM where if you have nested panels
40
45
  // The icon colour will be overridden by the parent panel style, this is used to create a more specific css selector
@@ -15,6 +15,7 @@ export interface PanelPluginConfig {
15
15
  }
16
16
  export type DomPanelAtrrs = {
17
17
  class: string;
18
+ 'data-local-id'?: string;
18
19
  'data-panel-color'?: string;
19
20
  'data-panel-icon-id'?: string;
20
21
  'data-panel-icon-text'?: string;
@@ -15,6 +15,7 @@ export interface PanelPluginConfig {
15
15
  }
16
16
  export type DomPanelAtrrs = {
17
17
  class: string;
18
+ 'data-local-id'?: string;
18
19
  'data-panel-color'?: string;
19
20
  'data-panel-icon-id'?: string;
20
21
  'data-panel-icon-text'?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "6.0.0",
3
+ "version": "6.0.2",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -36,18 +36,18 @@
36
36
  "@atlaskit/editor-plugin-selection": "^4.0.0",
37
37
  "@atlaskit/editor-prosemirror": "7.0.0",
38
38
  "@atlaskit/editor-shared-styles": "^3.6.0",
39
- "@atlaskit/editor-toolbar": "^0.6.0",
39
+ "@atlaskit/editor-toolbar": "^0.7.0",
40
40
  "@atlaskit/emoji": "^69.5.0",
41
41
  "@atlaskit/icon": "^28.1.0",
42
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
43
43
  "@atlaskit/theme": "^20.0.0",
44
- "@atlaskit/tmp-editor-statsig": "^12.0.0",
44
+ "@atlaskit/tmp-editor-statsig": "^12.2.0",
45
45
  "@atlaskit/tokens": "^6.1.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "uuid": "^3.1.0"
48
48
  },
49
49
  "peerDependencies": {
50
- "@atlaskit/editor-common": "^108.0.0",
50
+ "@atlaskit/editor-common": "^108.1.0",
51
51
  "react": "^18.2.0",
52
52
  "react-dom": "^18.2.0",
53
53
  "react-intl-next": "npm:react-intl@^5.18.1"