@atlaskit/editor-plugin-card 13.1.3 → 13.1.5
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 +12 -0
- package/dist/cjs/nodeviews/genericCard.js +2 -2
- package/dist/cjs/nodeviews/inlineCardWithAwareness.js +1 -1
- package/dist/cjs/ui/AwarenessWrapper/index.js +3 -3
- package/dist/cjs/ui/DatasourceDropdownOption.js +1 -1
- package/dist/cjs/ui/EditLinkToolbar.js +4 -4
- package/dist/cjs/ui/EditToolbarButton/EditToolbarButtonPresentation.js +1 -1
- package/dist/cjs/ui/EditToolbarButton/index.js +1 -1
- package/dist/cjs/ui/HyperlinkToolbarAppearanceDropdown.js +1 -1
- package/dist/cjs/ui/LinkToolbarAppearanceDropdown.js +1 -1
- package/dist/es2019/nodeviews/genericCard.js +2 -2
- package/dist/es2019/nodeviews/inlineCardWithAwareness.js +1 -1
- package/dist/es2019/ui/AwarenessWrapper/index.js +3 -3
- package/dist/es2019/ui/DatasourceDropdownOption.js +1 -1
- package/dist/es2019/ui/EditLinkToolbar.js +4 -4
- package/dist/es2019/ui/EditToolbarButton/EditToolbarButtonPresentation.js +1 -1
- package/dist/es2019/ui/EditToolbarButton/index.js +1 -1
- package/dist/es2019/ui/HyperlinkToolbarAppearanceDropdown.js +1 -1
- package/dist/es2019/ui/LinkToolbarAppearanceDropdown.js +1 -1
- package/dist/esm/nodeviews/genericCard.js +2 -2
- package/dist/esm/nodeviews/inlineCardWithAwareness.js +1 -1
- package/dist/esm/ui/AwarenessWrapper/index.js +3 -3
- package/dist/esm/ui/DatasourceDropdownOption.js +1 -1
- package/dist/esm/ui/EditLinkToolbar.js +4 -4
- package/dist/esm/ui/EditToolbarButton/EditToolbarButtonPresentation.js +1 -1
- package/dist/esm/ui/EditToolbarButton/index.js +1 -1
- package/dist/esm/ui/HyperlinkToolbarAppearanceDropdown.js +1 -1
- package/dist/esm/ui/LinkToolbarAppearanceDropdown.js +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -97,7 +97,7 @@ function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
97
97
|
if (url) {
|
|
98
98
|
return (0, _platformFeatureFlags.fg)('dst-a11y__replace-anchor-with-link__linking-platfo') ? /*#__PURE__*/_react.default.createElement(_link.default, {
|
|
99
99
|
href: url
|
|
100
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
100
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
101
101
|
,
|
|
102
102
|
onClick: function onClick(e) {
|
|
103
103
|
e.preventDefault();
|
|
@@ -118,7 +118,7 @@ function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
118
118
|
var editorAppearance = (_getPluginState = (0, _state.getPluginState)(this.props.view.state)) === null || _getPluginState === void 0 ? void 0 : _getPluginState.editorAppearance;
|
|
119
119
|
var analyticsEditorAppearance = (0, _utils.getAnalyticsEditorAppearance)(editorAppearance);
|
|
120
120
|
return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext
|
|
121
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
121
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
122
122
|
, {
|
|
123
123
|
data: {
|
|
124
124
|
attributes: {
|
|
@@ -199,7 +199,7 @@ var InlineCardWithAwareness = exports.InlineCardWithAwareness = /*#__PURE__*/(0,
|
|
|
199
199
|
view: view,
|
|
200
200
|
showPanelButton: showPanelButton,
|
|
201
201
|
showPanelButtonIcon: isPreviewAvailable && isPreviewPanelAvailable ? 'panel' : 'modal'
|
|
202
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
202
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
203
203
|
,
|
|
204
204
|
onClick: function onClick(event) {
|
|
205
205
|
if (isPreviewPanelAvailable) {
|
|
@@ -89,12 +89,12 @@ var AwarenessWrapper = exports.AwarenessWrapper = function AwarenessWrapper(_ref
|
|
|
89
89
|
return (0, _react2.jsx)(_InlineCardOverlay.default, {
|
|
90
90
|
isSelected: isSelected,
|
|
91
91
|
isVisible: isResolvedViewRendered && (isInserted || isHovered || isSelected)
|
|
92
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
92
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
93
93
|
,
|
|
94
94
|
onMouseEnter: function onMouseEnter() {
|
|
95
95
|
return handleOverlayChange(true);
|
|
96
96
|
}
|
|
97
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
97
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
98
98
|
,
|
|
99
99
|
onMouseLeave: function onMouseLeave() {
|
|
100
100
|
return handleOverlayChange(false);
|
|
@@ -117,7 +117,7 @@ var AwarenessWrapper = exports.AwarenessWrapper = function AwarenessWrapper(_ref
|
|
|
117
117
|
"data-ssr-placeholder": "awareness-wrapper-".concat(placeholderUniqId),
|
|
118
118
|
"data-ssr-placeholder-replace": "awareness-wrapper-".concat(placeholderUniqId)
|
|
119
119
|
}, (0, _react2.jsx)(_analyticsNext.AnalyticsContext
|
|
120
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
120
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
121
121
|
, {
|
|
122
122
|
data: {
|
|
123
123
|
attributes: (0, _utils.getResolvedAttributesFromStore)(url, 'inline', cardContext === null || cardContext === void 0 || (_cardContext$value = cardContext.value) === null || _cardContext$value === void 0 ? void 0 : _cardContext$value.store)
|
|
@@ -93,7 +93,7 @@ var DatasourceDropdownOption = exports.DatasourceDropdownOption = function Datas
|
|
|
93
93
|
iconBefore: (0, _smartLinkList.default)({
|
|
94
94
|
label: intl.formatMessage(_messages.cardMessages.datasourceAppearanceTitle)
|
|
95
95
|
})
|
|
96
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
96
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
97
97
|
,
|
|
98
98
|
onClick: function onClick() {
|
|
99
99
|
return dispatchCommand(onChangeAppearance);
|
|
@@ -103,7 +103,7 @@ var EditLinkToolbar = exports.EditLinkToolbar = /*#__PURE__*/function (_React$Co
|
|
|
103
103
|
,
|
|
104
104
|
invokeMethod: _analytics.INPUT_METHOD.FLOATING_TB,
|
|
105
105
|
lpLinkPicker: lpLinkPicker
|
|
106
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
106
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
107
107
|
,
|
|
108
108
|
onSubmit: function onSubmit(href, title, displayText, inputMethod, analytic) {
|
|
109
109
|
_this.hideLinkToolbar();
|
|
@@ -111,7 +111,7 @@ var EditLinkToolbar = exports.EditLinkToolbar = /*#__PURE__*/function (_React$Co
|
|
|
111
111
|
_onSubmit(href, displayText || title, inputMethod, analytic);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
114
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
115
115
|
,
|
|
116
116
|
onEscapeCallback: function onEscapeCallback(state, dispatch) {
|
|
117
117
|
var tr = state.tr;
|
|
@@ -123,7 +123,7 @@ var EditLinkToolbar = exports.EditLinkToolbar = /*#__PURE__*/function (_React$Co
|
|
|
123
123
|
}
|
|
124
124
|
return false;
|
|
125
125
|
}
|
|
126
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
126
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
127
127
|
,
|
|
128
128
|
onClickAwayCallback: function onClickAwayCallback(state, dispatch) {
|
|
129
129
|
var tr = state.tr;
|
|
@@ -180,7 +180,7 @@ var buildEditLinkToolbar = exports.buildEditLinkToolbar = function buildEditLink
|
|
|
180
180
|
node: node,
|
|
181
181
|
lpLinkPicker: lpLinkPicker,
|
|
182
182
|
forceFocusSelector: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 || (_pluginInjectionApi$f = _pluginInjectionApi$f.actions) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.forceFocusSelector
|
|
183
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
183
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
184
184
|
,
|
|
185
185
|
onSubmit: function onSubmit(newHref, newText, inputMethod, analytic) {
|
|
186
186
|
var urlChanged = newHref !== displayInfo.url;
|
|
@@ -133,7 +133,7 @@ var EditToolbarButtonPresentation = function EditToolbarButtonPresentation(_ref)
|
|
|
133
133
|
handleEscapeKeydown: onClose,
|
|
134
134
|
trigger: trigger,
|
|
135
135
|
scrollableElement: containerRef.current
|
|
136
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
136
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
137
137
|
,
|
|
138
138
|
arrowKeyNavigationProviderOptions: {
|
|
139
139
|
type: _uiMenu.ArrowKeyNavigationType.MENU
|
|
@@ -158,7 +158,7 @@ var EditToolbarButtonWithCardContext = function EditToolbarButtonWithCardContext
|
|
|
158
158
|
handleEscapeKeydown: onClose,
|
|
159
159
|
trigger: trigger,
|
|
160
160
|
scrollableElement: containerRef.current
|
|
161
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
161
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
162
162
|
,
|
|
163
163
|
arrowKeyNavigationProviderOptions: {
|
|
164
164
|
type: _uiMenu.ArrowKeyNavigationType.MENU
|
|
@@ -193,7 +193,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
193
193
|
handleEscapeKeydown: close,
|
|
194
194
|
trigger: trigger,
|
|
195
195
|
scrollableElement: containerRef.current
|
|
196
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
196
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
197
197
|
,
|
|
198
198
|
arrowKeyNavigationProviderOptions: {
|
|
199
199
|
type: _uiMenu.ArrowKeyNavigationType.MENU
|
|
@@ -108,7 +108,7 @@ var LinkAppearanceMenu = exports.LinkAppearanceMenu = function LinkAppearanceMen
|
|
|
108
108
|
return /*#__PURE__*/_react.default.createElement(_menu.ButtonItem, {
|
|
109
109
|
key: option.title,
|
|
110
110
|
iconBefore: option.icon
|
|
111
|
-
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
111
|
+
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
112
112
|
,
|
|
113
113
|
onClick: function onClick() {
|
|
114
114
|
return option.onClick();
|
|
@@ -75,7 +75,7 @@ export function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
75
75
|
if (url) {
|
|
76
76
|
return fg('dst-a11y__replace-anchor-with-link__linking-platfo') ? /*#__PURE__*/React.createElement(Link, {
|
|
77
77
|
href: url
|
|
78
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
78
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
79
79
|
,
|
|
80
80
|
onClick: e => {
|
|
81
81
|
e.preventDefault();
|
|
@@ -96,7 +96,7 @@ export function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
96
96
|
const editorAppearance = (_getPluginState = getPluginState(this.props.view.state)) === null || _getPluginState === void 0 ? void 0 : _getPluginState.editorAppearance;
|
|
97
97
|
const analyticsEditorAppearance = getAnalyticsEditorAppearance(editorAppearance);
|
|
98
98
|
return /*#__PURE__*/React.createElement(AnalyticsContext
|
|
99
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
99
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
100
100
|
, {
|
|
101
101
|
data: {
|
|
102
102
|
attributes: {
|
|
@@ -178,7 +178,7 @@ export const InlineCardWithAwareness = /*#__PURE__*/memo(({
|
|
|
178
178
|
view: view,
|
|
179
179
|
showPanelButton: showPanelButton,
|
|
180
180
|
showPanelButtonIcon: isPreviewAvailable && isPreviewPanelAvailable ? 'panel' : 'modal'
|
|
181
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
181
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
182
182
|
,
|
|
183
183
|
onClick: event => {
|
|
184
184
|
if (isPreviewPanelAvailable) {
|
|
@@ -79,10 +79,10 @@ export const AwarenessWrapper = ({
|
|
|
79
79
|
return jsx(InlineCardOverlay, {
|
|
80
80
|
isSelected: isSelected,
|
|
81
81
|
isVisible: isResolvedViewRendered && (isInserted || isHovered || isSelected)
|
|
82
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
82
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
83
83
|
,
|
|
84
84
|
onMouseEnter: () => handleOverlayChange(true)
|
|
85
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
85
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
86
86
|
,
|
|
87
87
|
onMouseLeave: () => handleOverlayChange(false),
|
|
88
88
|
url: url
|
|
@@ -103,7 +103,7 @@ export const AwarenessWrapper = ({
|
|
|
103
103
|
"data-ssr-placeholder": `awareness-wrapper-${placeholderUniqId}`,
|
|
104
104
|
"data-ssr-placeholder-replace": `awareness-wrapper-${placeholderUniqId}`
|
|
105
105
|
}, jsx(AnalyticsContext
|
|
106
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
106
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
107
107
|
, {
|
|
108
108
|
data: {
|
|
109
109
|
attributes: getResolvedAttributesFromStore(url, 'inline', cardContext === null || cardContext === void 0 ? void 0 : (_cardContext$value = cardContext.value) === null || _cardContext$value === void 0 ? void 0 : _cardContext$value.store)
|
|
@@ -88,7 +88,7 @@ export const DatasourceDropdownOption = ({
|
|
|
88
88
|
iconBefore: SmartLinkListIcon({
|
|
89
89
|
label: intl.formatMessage(messages.datasourceAppearanceTitle)
|
|
90
90
|
})
|
|
91
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
91
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
92
92
|
,
|
|
93
93
|
onClick: () => dispatchCommand(onChangeAppearance),
|
|
94
94
|
isSelected: selected
|
|
@@ -76,7 +76,7 @@ export class EditLinkToolbar extends React.Component {
|
|
|
76
76
|
,
|
|
77
77
|
invokeMethod: INPUT_METHOD.FLOATING_TB,
|
|
78
78
|
lpLinkPicker: lpLinkPicker
|
|
79
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
79
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
80
80
|
,
|
|
81
81
|
onSubmit: (href, title, displayText, inputMethod, analytic) => {
|
|
82
82
|
this.hideLinkToolbar();
|
|
@@ -84,7 +84,7 @@ export class EditLinkToolbar extends React.Component {
|
|
|
84
84
|
onSubmit(href, displayText || title, inputMethod, analytic);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
87
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
88
88
|
,
|
|
89
89
|
onEscapeCallback: (state, dispatch) => {
|
|
90
90
|
const {
|
|
@@ -98,7 +98,7 @@ export class EditLinkToolbar extends React.Component {
|
|
|
98
98
|
}
|
|
99
99
|
return false;
|
|
100
100
|
}
|
|
101
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
101
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
102
102
|
,
|
|
103
103
|
onClickAwayCallback: (state, dispatch) => {
|
|
104
104
|
const {
|
|
@@ -157,7 +157,7 @@ export const buildEditLinkToolbar = ({
|
|
|
157
157
|
node: node,
|
|
158
158
|
lpLinkPicker: lpLinkPicker,
|
|
159
159
|
forceFocusSelector: pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 ? void 0 : (_pluginInjectionApi$f2 = _pluginInjectionApi$f.actions) === null || _pluginInjectionApi$f2 === void 0 ? void 0 : _pluginInjectionApi$f2.forceFocusSelector
|
|
160
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
160
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
161
161
|
,
|
|
162
162
|
onSubmit: (newHref, newText, inputMethod, analytic) => {
|
|
163
163
|
const urlChanged = newHref !== displayInfo.url;
|
|
@@ -116,7 +116,7 @@ const EditToolbarButtonPresentation = ({
|
|
|
116
116
|
handleEscapeKeydown: onClose,
|
|
117
117
|
trigger: trigger,
|
|
118
118
|
scrollableElement: containerRef.current
|
|
119
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
119
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
120
120
|
,
|
|
121
121
|
arrowKeyNavigationProviderOptions: {
|
|
122
122
|
type: ArrowKeyNavigationType.MENU
|
|
@@ -143,7 +143,7 @@ const EditToolbarButtonWithCardContext = props => {
|
|
|
143
143
|
handleEscapeKeydown: onClose,
|
|
144
144
|
trigger: trigger,
|
|
145
145
|
scrollableElement: containerRef.current
|
|
146
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
146
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
147
147
|
,
|
|
148
148
|
arrowKeyNavigationProviderOptions: {
|
|
149
149
|
type: ArrowKeyNavigationType.MENU
|
|
@@ -108,7 +108,7 @@ const CustomHyperlinkDropdown = props => {
|
|
|
108
108
|
handleEscapeKeydown: close,
|
|
109
109
|
trigger: trigger,
|
|
110
110
|
scrollableElement: containerRef.current
|
|
111
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
111
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
112
112
|
,
|
|
113
113
|
arrowKeyNavigationProviderOptions: {
|
|
114
114
|
type: ArrowKeyNavigationType.MENU
|
|
@@ -95,7 +95,7 @@ export const LinkAppearanceMenu = ({
|
|
|
95
95
|
return /*#__PURE__*/React.createElement(ButtonItem, {
|
|
96
96
|
key: option.title,
|
|
97
97
|
iconBefore: option.icon
|
|
98
|
-
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
98
|
+
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
99
99
|
,
|
|
100
100
|
onClick: () => option.onClick(),
|
|
101
101
|
isSelected: option.selected,
|
|
@@ -88,7 +88,7 @@ export function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
88
88
|
if (url) {
|
|
89
89
|
return fg('dst-a11y__replace-anchor-with-link__linking-platfo') ? /*#__PURE__*/React.createElement(Link, {
|
|
90
90
|
href: url
|
|
91
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
91
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
92
92
|
,
|
|
93
93
|
onClick: function onClick(e) {
|
|
94
94
|
e.preventDefault();
|
|
@@ -109,7 +109,7 @@ export function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
109
109
|
var editorAppearance = (_getPluginState = getPluginState(this.props.view.state)) === null || _getPluginState === void 0 ? void 0 : _getPluginState.editorAppearance;
|
|
110
110
|
var analyticsEditorAppearance = getAnalyticsEditorAppearance(editorAppearance);
|
|
111
111
|
return /*#__PURE__*/React.createElement(AnalyticsContext
|
|
112
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
112
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
113
113
|
, {
|
|
114
114
|
data: {
|
|
115
115
|
attributes: {
|
|
@@ -190,7 +190,7 @@ export var InlineCardWithAwareness = /*#__PURE__*/memo(function (_ref) {
|
|
|
190
190
|
view: view,
|
|
191
191
|
showPanelButton: showPanelButton,
|
|
192
192
|
showPanelButtonIcon: isPreviewAvailable && isPreviewPanelAvailable ? 'panel' : 'modal'
|
|
193
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
193
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
194
194
|
,
|
|
195
195
|
onClick: function onClick(event) {
|
|
196
196
|
if (isPreviewPanelAvailable) {
|
|
@@ -81,12 +81,12 @@ export var AwarenessWrapper = function AwarenessWrapper(_ref) {
|
|
|
81
81
|
return jsx(InlineCardOverlay, {
|
|
82
82
|
isSelected: isSelected,
|
|
83
83
|
isVisible: isResolvedViewRendered && (isInserted || isHovered || isSelected)
|
|
84
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
84
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
85
85
|
,
|
|
86
86
|
onMouseEnter: function onMouseEnter() {
|
|
87
87
|
return handleOverlayChange(true);
|
|
88
88
|
}
|
|
89
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
89
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
90
90
|
,
|
|
91
91
|
onMouseLeave: function onMouseLeave() {
|
|
92
92
|
return handleOverlayChange(false);
|
|
@@ -109,7 +109,7 @@ export var AwarenessWrapper = function AwarenessWrapper(_ref) {
|
|
|
109
109
|
"data-ssr-placeholder": "awareness-wrapper-".concat(placeholderUniqId),
|
|
110
110
|
"data-ssr-placeholder-replace": "awareness-wrapper-".concat(placeholderUniqId)
|
|
111
111
|
}, jsx(AnalyticsContext
|
|
112
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
112
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
113
113
|
, {
|
|
114
114
|
data: {
|
|
115
115
|
attributes: getResolvedAttributesFromStore(url, 'inline', cardContext === null || cardContext === void 0 || (_cardContext$value = cardContext.value) === null || _cardContext$value === void 0 ? void 0 : _cardContext$value.store)
|
|
@@ -86,7 +86,7 @@ export var DatasourceDropdownOption = function DatasourceDropdownOption(_ref) {
|
|
|
86
86
|
iconBefore: SmartLinkListIcon({
|
|
87
87
|
label: intl.formatMessage(messages.datasourceAppearanceTitle)
|
|
88
88
|
})
|
|
89
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
89
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
90
90
|
,
|
|
91
91
|
onClick: function onClick() {
|
|
92
92
|
return dispatchCommand(onChangeAppearance);
|
|
@@ -94,7 +94,7 @@ export var EditLinkToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
94
94
|
,
|
|
95
95
|
invokeMethod: INPUT_METHOD.FLOATING_TB,
|
|
96
96
|
lpLinkPicker: lpLinkPicker
|
|
97
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
97
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
98
98
|
,
|
|
99
99
|
onSubmit: function onSubmit(href, title, displayText, inputMethod, analytic) {
|
|
100
100
|
_this.hideLinkToolbar();
|
|
@@ -102,7 +102,7 @@ export var EditLinkToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
102
102
|
_onSubmit(href, displayText || title, inputMethod, analytic);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
105
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
106
106
|
,
|
|
107
107
|
onEscapeCallback: function onEscapeCallback(state, dispatch) {
|
|
108
108
|
var tr = state.tr;
|
|
@@ -114,7 +114,7 @@ export var EditLinkToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
114
114
|
}
|
|
115
115
|
return false;
|
|
116
116
|
}
|
|
117
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
117
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
118
118
|
,
|
|
119
119
|
onClickAwayCallback: function onClickAwayCallback(state, dispatch) {
|
|
120
120
|
var tr = state.tr;
|
|
@@ -171,7 +171,7 @@ export var buildEditLinkToolbar = function buildEditLinkToolbar(_ref2) {
|
|
|
171
171
|
node: node,
|
|
172
172
|
lpLinkPicker: lpLinkPicker,
|
|
173
173
|
forceFocusSelector: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$f = pluginInjectionApi.floatingToolbar) === null || _pluginInjectionApi$f === void 0 || (_pluginInjectionApi$f = _pluginInjectionApi$f.actions) === null || _pluginInjectionApi$f === void 0 ? void 0 : _pluginInjectionApi$f.forceFocusSelector
|
|
174
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
174
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
175
175
|
,
|
|
176
176
|
onSubmit: function onSubmit(newHref, newText, inputMethod, analytic) {
|
|
177
177
|
var urlChanged = newHref !== displayInfo.url;
|
|
@@ -125,7 +125,7 @@ var EditToolbarButtonPresentation = function EditToolbarButtonPresentation(_ref)
|
|
|
125
125
|
handleEscapeKeydown: onClose,
|
|
126
126
|
trigger: trigger,
|
|
127
127
|
scrollableElement: containerRef.current
|
|
128
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
128
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
129
129
|
,
|
|
130
130
|
arrowKeyNavigationProviderOptions: {
|
|
131
131
|
type: ArrowKeyNavigationType.MENU
|
|
@@ -152,7 +152,7 @@ var EditToolbarButtonWithCardContext = function EditToolbarButtonWithCardContext
|
|
|
152
152
|
handleEscapeKeydown: onClose,
|
|
153
153
|
trigger: trigger,
|
|
154
154
|
scrollableElement: containerRef.current
|
|
155
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
155
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
156
156
|
,
|
|
157
157
|
arrowKeyNavigationProviderOptions: {
|
|
158
158
|
type: ArrowKeyNavigationType.MENU
|
|
@@ -184,7 +184,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
184
184
|
handleEscapeKeydown: close,
|
|
185
185
|
trigger: trigger,
|
|
186
186
|
scrollableElement: containerRef.current
|
|
187
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
187
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
188
188
|
,
|
|
189
189
|
arrowKeyNavigationProviderOptions: {
|
|
190
190
|
type: ArrowKeyNavigationType.MENU
|
|
@@ -101,7 +101,7 @@ export var LinkAppearanceMenu = function LinkAppearanceMenu(_ref) {
|
|
|
101
101
|
return /*#__PURE__*/React.createElement(ButtonItem, {
|
|
102
102
|
key: option.title,
|
|
103
103
|
iconBefore: option.icon
|
|
104
|
-
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
104
|
+
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
105
105
|
,
|
|
106
106
|
onClick: function onClick() {
|
|
107
107
|
return option.onClick();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-card",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.5",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/adf-schema": "^52.4.0",
|
|
33
|
-
"@atlaskit/analytics-next": "^11.
|
|
33
|
+
"@atlaskit/analytics-next": "^11.2.0",
|
|
34
34
|
"@atlaskit/custom-steps": "^0.16.0",
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^8.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-base": "^9.0.0",
|
|
@@ -53,17 +53,17 @@
|
|
|
53
53
|
"@atlaskit/link-client-extension": "^6.0.0",
|
|
54
54
|
"@atlaskit/link-datasource": "^4.34.0",
|
|
55
55
|
"@atlaskit/link-extractors": "^2.4.0",
|
|
56
|
-
"@atlaskit/linking-common": "^9.
|
|
56
|
+
"@atlaskit/linking-common": "^9.11.0",
|
|
57
57
|
"@atlaskit/linking-types": "^14.2.0",
|
|
58
58
|
"@atlaskit/menu": "^8.4.0",
|
|
59
59
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
60
60
|
"@atlaskit/platform-feature-flags-react": "^0.4.0",
|
|
61
|
-
"@atlaskit/primitives": "^18.
|
|
61
|
+
"@atlaskit/primitives": "^18.1.0",
|
|
62
62
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
63
63
|
"@atlaskit/smart-card": "^43.27.0",
|
|
64
64
|
"@atlaskit/theme": "^22.0.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
66
|
-
"@atlaskit/tokens": "^11.
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^46.0.0",
|
|
66
|
+
"@atlaskit/tokens": "^11.2.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
69
69
|
"lodash": "^4.17.21",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^112.
|
|
76
|
-
"@atlaskit/link-provider": "^4.
|
|
75
|
+
"@atlaskit/editor-common": "^112.9.0",
|
|
76
|
+
"@atlaskit/link-provider": "^4.3.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
79
79
|
},
|