@atlaskit/editor-plugin-panel 1.0.2 → 1.0.3

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,12 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#75775](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/75775) [`d0cee3285a1a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d0cee3285a1a) - ED-22287: Adding 16px right padding to panel for all elements. Also using 12px for the no-icon usecase.
8
+ - Updated dependencies
9
+
3
10
  ## 1.0.2
4
11
 
5
12
  ### Patch Changes
package/dist/cjs/utils.js CHANGED
@@ -27,7 +27,7 @@ var panelAttrsToDom = exports.panelAttrsToDom = function panelAttrsToDom(attrs,
27
27
  var hasIcon = !isCustomPanel || !!panelIcon || !!panelIconId;
28
28
  var tokenColor = panelColor && (0, _editorPalette.hexToEditorBackgroundPaletteColor)(panelColor);
29
29
  var panelBackgroundColor = tokenColor || panelColor;
30
- var style = ["".concat(panelColor && isCustomPanel ? "background-color: ".concat(panelBackgroundColor, ";") : ''), "".concat(hasIcon ? '' : 'padding-left: 12px;')].join('');
30
+ var style = ["".concat(panelColor && isCustomPanel ? "background-color: ".concat(panelBackgroundColor, ";") : ''), "".concat(hasIcon ? '' : 'padding-left: 12px;padding-right: 12px;')].join('');
31
31
  var panelAttrs = {
32
32
  class: _panel.PanelSharedCssClassName.prefix,
33
33
  'data-panel-type': panelType || _adfSchema.PanelType.INFO,
@@ -21,7 +21,7 @@ export const panelAttrsToDom = (attrs, allowCustomPanel) => {
21
21
  const hasIcon = !isCustomPanel || !!panelIcon || !!panelIconId;
22
22
  const tokenColor = panelColor && hexToEditorBackgroundPaletteColor(panelColor);
23
23
  const panelBackgroundColor = tokenColor || panelColor;
24
- const style = [`${panelColor && isCustomPanel ? `background-color: ${panelBackgroundColor};` : ''}`, `${hasIcon ? '' : 'padding-left: 12px;'}`].join('');
24
+ const style = [`${panelColor && isCustomPanel ? `background-color: ${panelBackgroundColor};` : ''}`, `${hasIcon ? '' : 'padding-left: 12px;padding-right: 12px;'}`].join('');
25
25
  let panelAttrs = {
26
26
  class: PanelSharedCssClassName.prefix,
27
27
  'data-panel-type': panelType || PanelType.INFO,
package/dist/esm/utils.js CHANGED
@@ -20,7 +20,7 @@ export var panelAttrsToDom = function panelAttrsToDom(attrs, allowCustomPanel) {
20
20
  var hasIcon = !isCustomPanel || !!panelIcon || !!panelIconId;
21
21
  var tokenColor = panelColor && hexToEditorBackgroundPaletteColor(panelColor);
22
22
  var panelBackgroundColor = tokenColor || panelColor;
23
- var style = ["".concat(panelColor && isCustomPanel ? "background-color: ".concat(panelBackgroundColor, ";") : ''), "".concat(hasIcon ? '' : 'padding-left: 12px;')].join('');
23
+ var style = ["".concat(panelColor && isCustomPanel ? "background-color: ".concat(panelBackgroundColor, ";") : ''), "".concat(hasIcon ? '' : 'padding-left: 12px;padding-right: 12px;')].join('');
24
24
  var panelAttrs = {
25
25
  class: PanelSharedCssClassName.prefix,
26
26
  'data-panel-type': panelType || PanelType.INFO,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,14 +34,14 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/adf-schema": "^35.5.1",
37
- "@atlaskit/editor-common": "^78.3.0",
37
+ "@atlaskit/editor-common": "^78.5.0",
38
38
  "@atlaskit/editor-palette": "1.5.2",
39
39
  "@atlaskit/editor-plugin-analytics": "^1.0.0",
40
40
  "@atlaskit/editor-plugin-decorations": "^1.0.0",
41
41
  "@atlaskit/editor-prosemirror": "3.0.0",
42
42
  "@atlaskit/editor-shared-styles": "^2.9.0",
43
43
  "@atlaskit/emoji": "^67.6.0",
44
- "@atlaskit/icon": "^22.0.0",
44
+ "@atlaskit/icon": "^22.1.0",
45
45
  "@atlaskit/platform-feature-flags": "^0.2.0",
46
46
  "@atlaskit/theme": "^12.6.0",
47
47
  "@babel/runtime": "^7.0.0"