@atlaskit/editor-plugin-card 0.14.0 → 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 +34 -0
- package/dist/cjs/toolbar.js +2 -3
- package/dist/es2019/toolbar.js +2 -3
- package/dist/esm/toolbar.js +2 -3
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types-ts4.5/plugin.d.ts +1 -1
- package/package.json +6 -6
- package/report.api.md +1 -1
- package/tmp/api-report-tmp.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
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
|
+
|
|
9
|
+
## 0.14.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#43646](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/43646) [`d43f8e9402f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d43f8e9402f) - Make feature flags plugin optional in all plugins including:
|
|
14
|
+
|
|
15
|
+
- analytics
|
|
16
|
+
- base
|
|
17
|
+
- card
|
|
18
|
+
- code-block
|
|
19
|
+
- expand
|
|
20
|
+
- extension
|
|
21
|
+
- floating-toolbar
|
|
22
|
+
- hyperlink
|
|
23
|
+
- insert-block
|
|
24
|
+
- layout
|
|
25
|
+
- layout
|
|
26
|
+
- list
|
|
27
|
+
- media
|
|
28
|
+
- paste
|
|
29
|
+
- rule
|
|
30
|
+
- table
|
|
31
|
+
- tasks-and-decisions
|
|
32
|
+
|
|
33
|
+
We already treat it as optional in the plugins, so this is just ensuring that the plugin is not mandatory to be added to the preset.
|
|
34
|
+
|
|
35
|
+
- Updated dependencies
|
|
36
|
+
|
|
3
37
|
## 0.14.0
|
|
4
38
|
|
|
5
39
|
### Minor Changes
|
package/dist/cjs/toolbar.js
CHANGED
|
@@ -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:
|
|
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));
|
package/dist/es2019/toolbar.js
CHANGED
|
@@ -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));
|
package/dist/esm/toolbar.js
CHANGED
|
@@ -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:
|
|
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/dist/types/plugin.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import type { CardPluginOptions, CardPluginState } from './types';
|
|
|
11
11
|
export type CardPlugin = NextEditorPlugin<'card', {
|
|
12
12
|
pluginConfiguration: CardPluginOptions;
|
|
13
13
|
dependencies: [
|
|
14
|
-
FeatureFlagsPlugin
|
|
14
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
15
15
|
OptionalPlugin<AnalyticsPlugin>,
|
|
16
16
|
WidthPlugin,
|
|
17
17
|
DecorationsPlugin,
|
|
@@ -11,7 +11,7 @@ import type { CardPluginOptions, CardPluginState } from './types';
|
|
|
11
11
|
export type CardPlugin = NextEditorPlugin<'card', {
|
|
12
12
|
pluginConfiguration: CardPluginOptions;
|
|
13
13
|
dependencies: [
|
|
14
|
-
FeatureFlagsPlugin
|
|
14
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
15
15
|
OptionalPlugin<AnalyticsPlugin>,
|
|
16
16
|
WidthPlugin,
|
|
17
17
|
DecorationsPlugin,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "0.14.
|
|
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.
|
|
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",
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"@atlaskit/icon": "^22.0.0",
|
|
49
49
|
"@atlaskit/link-analytics": "^8.3.0",
|
|
50
50
|
"@atlaskit/link-client-extension": "^1.8.0",
|
|
51
|
-
"@atlaskit/link-datasource": "^1.
|
|
52
|
-
"@atlaskit/linking-common": "^4.
|
|
51
|
+
"@atlaskit/link-datasource": "^1.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
|
-
"@atlaskit/primitives": "^1.
|
|
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.
|
|
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",
|
package/report.api.md
CHANGED
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ type CardInfo = {
|
|
|
37
37
|
export type CardPlugin = NextEditorPlugin<'card', {
|
|
38
38
|
pluginConfiguration: CardPluginOptions;
|
|
39
39
|
dependencies: [
|
|
40
|
-
FeatureFlagsPlugin
|
|
40
|
+
OptionalPlugin<FeatureFlagsPlugin>,
|
|
41
41
|
OptionalPlugin<AnalyticsPlugin>,
|
|
42
42
|
WidthPlugin,
|
|
43
43
|
DecorationsPlugin,
|