@atlaskit/editor-plugin-panel 6.0.0 → 6.0.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 +8 -0
- package/dist/cjs/pm-plugins/utils/utils.js +5 -0
- package/dist/es2019/pm-plugins/utils/utils.js +6 -0
- package/dist/esm/pm-plugins/utils/utils.js +5 -0
- package/dist/types/panelPluginType.d.ts +1 -0
- package/dist/types-ts4.5/panelPluginType.d.ts +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-panel
|
|
2
2
|
|
|
3
|
+
## 6.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`5f1d8eb6b1fa2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5f1d8eb6b1fa2) -
|
|
8
|
+
EDITOR-1464 Update toDOM methods to include localId
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 6.0.0
|
|
4
12
|
|
|
5
13
|
### 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
|