@atlaskit/editor-plugin-alignment 1.13.7 → 1.13.8

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-alignment
2
2
 
3
+ ## 1.13.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#171647](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/171647)
8
+ [`6c7e6b55bfa57`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6c7e6b55bfa57) -
9
+ Close the alignment dropdown when the alignment toolbar icon is clicked
10
+
3
11
  ## 1.13.7
4
12
 
5
13
  ### Patch Changes
@@ -119,7 +119,7 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
119
119
  });
120
120
  }
121
121
  },
122
- onOpenChange: this.onOpenChange,
122
+ onOpenChange: (0, _platformFeatureFlags.fg)('platform_editor_fix_toolbar_alignment_item') ? undefined : this.onOpenChange,
123
123
  handleEscapeKeydown: this.hideOnEscape,
124
124
  arrowKeyNavigationProviderOptions: {
125
125
  type: _uiMenu.ArrowKeyNavigationType.MENU
@@ -99,7 +99,7 @@ export class AlignmentToolbar extends React.Component {
99
99
  });
100
100
  }
101
101
  },
102
- onOpenChange: this.onOpenChange,
102
+ onOpenChange: fg('platform_editor_fix_toolbar_alignment_item') ? undefined : this.onOpenChange,
103
103
  handleEscapeKeydown: this.hideOnEscape,
104
104
  arrowKeyNavigationProviderOptions: {
105
105
  type: ArrowKeyNavigationType.MENU
@@ -115,7 +115,7 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
115
115
  });
116
116
  }
117
117
  },
118
- onOpenChange: this.onOpenChange,
118
+ onOpenChange: fg('platform_editor_fix_toolbar_alignment_item') ? undefined : this.onOpenChange,
119
119
  handleEscapeKeydown: this.hideOnEscape,
120
120
  arrowKeyNavigationProviderOptions: {
121
121
  type: ArrowKeyNavigationType.MENU
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-alignment",
3
- "version": "1.13.7",
3
+ "version": "1.13.8",
4
4
  "description": "Alignment plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@atlaskit/adf-schema": "^46.1.0",
24
- "@atlaskit/editor-common": "^95.7.0",
24
+ "@atlaskit/editor-common": "^95.10.0",
25
25
  "@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
26
- "@atlaskit/editor-prosemirror": "6.0.0",
26
+ "@atlaskit/editor-prosemirror": "6.2.1",
27
27
  "@atlaskit/editor-tables": "^2.8.0",
28
- "@atlaskit/icon": "^22.26.0",
28
+ "@atlaskit/icon": "^22.28.0",
29
29
  "@atlaskit/platform-feature-flags": "0.3.0",
30
- "@atlaskit/tokens": "^2.3.0",
30
+ "@atlaskit/tokens": "^2.4.0",
31
31
  "@babel/runtime": "^7.0.0",
32
32
  "@emotion/react": "^11.7.1"
33
33
  },
@@ -93,5 +93,10 @@
93
93
  },
94
94
  "af:exports": {
95
95
  ".": "./src/index.ts"
96
+ },
97
+ "platform-feature-flags": {
98
+ "platform_editor_fix_toolbar_alignment_item": {
99
+ "type": "boolean"
100
+ }
96
101
  }
97
102
  }