@atlaskit/editor-plugin-card 0.14.1 → 0.14.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,11 @@
1
1
  # @atlaskit/editor-plugin-card
2
2
 
3
+ ## 0.14.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#42839](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/42839) [`7324375d4fa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7324375d4fa) - [ux] Cleansup feature flag `prevent-popup-overflow` so that it is permanently enabled when `lp-link-picker` flag is enabled, improving the positioning of the link picker.
8
+
3
9
  ## 0.14.1
4
10
 
5
11
  ### Patch Changes
@@ -120,14 +120,13 @@ var floatingToolbar = exports.floatingToolbar = function floatingToolbar(cardOpt
120
120
 
121
121
  // Applies padding override for when link picker is currently displayed
122
122
  var className = pluginState !== null && pluginState !== void 0 && pluginState.showLinkingToolbar ? _styles.FLOATING_TOOLBAR_LINKPICKER_CLASSNAME : undefined;
123
- var lpLinkPicker = featureFlags.lpLinkPicker,
124
- preventPopupOverflow = featureFlags.preventPopupOverflow;
123
+ var lpLinkPicker = featureFlags.lpLinkPicker;
125
124
  var isLinkPickerEnabled = !!lpLinkPicker;
126
125
  return _objectSpread(_objectSpread({
127
126
  title: intl.formatMessage(_messages.cardMessages.card),
128
127
  className: className,
129
128
  nodeType: nodeType,
130
- preventPopupOverflow: preventPopupOverflow
129
+ preventPopupOverflow: isLinkPickerEnabled
131
130
  }, toolbarOffset), {}, {
132
131
  getDomRef: function getDomRef(view) {
133
132
  var element = (0, _utils2.findDomRefAtPos)(view.state.selection.from, view.domAtPos.bind(view));
@@ -115,15 +115,14 @@ export const floatingToolbar = (cardOptions, featureFlags, platform, linkPickerO
115
115
  // Applies padding override for when link picker is currently displayed
116
116
  const className = pluginState !== null && pluginState !== void 0 && pluginState.showLinkingToolbar ? FLOATING_TOOLBAR_LINKPICKER_CLASSNAME : undefined;
117
117
  const {
118
- lpLinkPicker,
119
- preventPopupOverflow
118
+ lpLinkPicker
120
119
  } = featureFlags;
121
120
  const isLinkPickerEnabled = !!lpLinkPicker;
122
121
  return {
123
122
  title: intl.formatMessage(messages.card),
124
123
  className,
125
124
  nodeType,
126
- preventPopupOverflow,
125
+ preventPopupOverflow: isLinkPickerEnabled,
127
126
  ...toolbarOffset,
128
127
  getDomRef: view => {
129
128
  const element = findDomRefAtPos(view.state.selection.from, view.domAtPos.bind(view));
@@ -110,14 +110,13 @@ export var floatingToolbar = function floatingToolbar(cardOptions, featureFlags,
110
110
 
111
111
  // Applies padding override for when link picker is currently displayed
112
112
  var className = pluginState !== null && pluginState !== void 0 && pluginState.showLinkingToolbar ? FLOATING_TOOLBAR_LINKPICKER_CLASSNAME : undefined;
113
- var lpLinkPicker = featureFlags.lpLinkPicker,
114
- preventPopupOverflow = featureFlags.preventPopupOverflow;
113
+ var lpLinkPicker = featureFlags.lpLinkPicker;
115
114
  var isLinkPickerEnabled = !!lpLinkPicker;
116
115
  return _objectSpread(_objectSpread({
117
116
  title: intl.formatMessage(messages.card),
118
117
  className: className,
119
118
  nodeType: nodeType,
120
- preventPopupOverflow: preventPopupOverflow
119
+ preventPopupOverflow: isLinkPickerEnabled
121
120
  }, toolbarOffset), {}, {
122
121
  getDomRef: function getDomRef(view) {
123
122
  var element = findDomRefAtPos(view.state.selection.from, view.domAtPos.bind(view));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-card",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
4
4
  "description": "Card plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/adf-schema": "^34.0.0",
35
35
  "@atlaskit/analytics-next": "^9.1.0",
36
36
  "@atlaskit/custom-steps": "^0.0.4",
37
- "@atlaskit/editor-common": "^76.22.0",
37
+ "@atlaskit/editor-common": "^76.23.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^0.3.0",
39
39
  "@atlaskit/editor-plugin-decorations": "^0.2.0",
40
40
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
@@ -49,13 +49,13 @@
49
49
  "@atlaskit/link-analytics": "^8.3.0",
50
50
  "@atlaskit/link-client-extension": "^1.8.0",
51
51
  "@atlaskit/link-datasource": "^1.19.0",
52
- "@atlaskit/linking-common": "^4.19.0",
52
+ "@atlaskit/linking-common": "^4.21.0",
53
53
  "@atlaskit/linking-types": "^8.5.0",
54
54
  "@atlaskit/platform-feature-flags": "^0.2.0",
55
55
  "@atlaskit/primitives": "^1.12.0",
56
56
  "@atlaskit/smart-card": "^26.42.0",
57
57
  "@atlaskit/theme": "^12.6.0",
58
- "@atlaskit/tokens": "^1.28.0",
58
+ "@atlaskit/tokens": "^1.29.0",
59
59
  "@babel/runtime": "^7.0.0",
60
60
  "@emotion/react": "^11.7.1",
61
61
  "lodash": "^4.17.21",