@atlaskit/editor-plugin-card 13.1.2 → 13.1.4
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 +6 -2
- package/dist/cjs/nodeviews/inlineCardWithAwareness.js +3 -1
- package/dist/cjs/ui/AwarenessWrapper/index.js +9 -3
- package/dist/cjs/ui/DatasourceDropdownOption.js +3 -1
- package/dist/cjs/ui/EditLinkToolbar.js +12 -4
- package/dist/cjs/ui/EditToolbarButton/EditToolbarButtonPresentation.js +3 -1
- package/dist/cjs/ui/EditToolbarButton/index.js +3 -1
- package/dist/cjs/ui/HyperlinkToolbarAppearanceDropdown.js +4 -1
- package/dist/cjs/ui/LinkToolbarAppearance.js +13 -8
- package/dist/cjs/ui/LinkToolbarAppearanceDropdown.js +3 -1
- package/dist/es2019/nodeviews/genericCard.js +6 -2
- package/dist/es2019/nodeviews/inlineCardWithAwareness.js +3 -1
- package/dist/es2019/ui/AwarenessWrapper/index.js +9 -3
- package/dist/es2019/ui/DatasourceDropdownOption.js +3 -1
- package/dist/es2019/ui/EditLinkToolbar.js +12 -4
- package/dist/es2019/ui/EditToolbarButton/EditToolbarButtonPresentation.js +3 -1
- package/dist/es2019/ui/EditToolbarButton/index.js +3 -1
- package/dist/es2019/ui/HyperlinkToolbarAppearanceDropdown.js +4 -1
- package/dist/es2019/ui/LinkToolbarAppearance.js +14 -9
- package/dist/es2019/ui/LinkToolbarAppearanceDropdown.js +3 -1
- package/dist/esm/nodeviews/genericCard.js +6 -2
- package/dist/esm/nodeviews/inlineCardWithAwareness.js +3 -1
- package/dist/esm/ui/AwarenessWrapper/index.js +9 -3
- package/dist/esm/ui/DatasourceDropdownOption.js +3 -1
- package/dist/esm/ui/EditLinkToolbar.js +12 -4
- package/dist/esm/ui/EditToolbarButton/EditToolbarButtonPresentation.js +3 -1
- package/dist/esm/ui/EditToolbarButton/index.js +3 -1
- package/dist/esm/ui/HyperlinkToolbarAppearanceDropdown.js +4 -1
- package/dist/esm/ui/LinkToolbarAppearance.js +13 -8
- package/dist/esm/ui/LinkToolbarAppearanceDropdown.js +3 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -96,7 +96,9 @@ function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
96
96
|
if (this.state.isError) {
|
|
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
|
-
href: url
|
|
99
|
+
href: url
|
|
100
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
101
|
+
,
|
|
100
102
|
onClick: function onClick(e) {
|
|
101
103
|
e.preventDefault();
|
|
102
104
|
}
|
|
@@ -115,7 +117,9 @@ function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
115
117
|
}
|
|
116
118
|
var editorAppearance = (_getPluginState = (0, _state.getPluginState)(this.props.view.state)) === null || _getPluginState === void 0 ? void 0 : _getPluginState.editorAppearance;
|
|
117
119
|
var analyticsEditorAppearance = (0, _utils.getAnalyticsEditorAppearance)(editorAppearance);
|
|
118
|
-
return /*#__PURE__*/_react.default.createElement(_analyticsNext.AnalyticsContext
|
|
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)
|
|
122
|
+
, {
|
|
119
123
|
data: {
|
|
120
124
|
attributes: {
|
|
121
125
|
location: analyticsEditorAppearance
|
|
@@ -198,7 +198,9 @@ var InlineCardWithAwareness = exports.InlineCardWithAwareness = /*#__PURE__*/(0,
|
|
|
198
198
|
editorAnalyticsApi: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a4 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a4 === void 0 ? void 0 : _pluginInjectionApi$a4.actions,
|
|
199
199
|
view: view,
|
|
200
200
|
showPanelButton: showPanelButton,
|
|
201
|
-
showPanelButtonIcon: isPreviewAvailable && isPreviewPanelAvailable ? 'panel' : 'modal'
|
|
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)
|
|
203
|
+
,
|
|
202
204
|
onClick: function onClick(event) {
|
|
203
205
|
if (isPreviewPanelAvailable) {
|
|
204
206
|
var _extractSmartLinkEmbe;
|
|
@@ -88,10 +88,14 @@ var AwarenessWrapper = exports.AwarenessWrapper = function AwarenessWrapper(_ref
|
|
|
88
88
|
if (shouldShowLinkOverlay && !(0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') && !(0, _experiments.editorExperiment)('platform_editor_preview_panel_linking_exp', true)) {
|
|
89
89
|
return (0, _react2.jsx)(_InlineCardOverlay.default, {
|
|
90
90
|
isSelected: isSelected,
|
|
91
|
-
isVisible: isResolvedViewRendered && (isInserted || isHovered || isSelected)
|
|
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)
|
|
93
|
+
,
|
|
92
94
|
onMouseEnter: function onMouseEnter() {
|
|
93
95
|
return handleOverlayChange(true);
|
|
94
|
-
}
|
|
96
|
+
}
|
|
97
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
98
|
+
,
|
|
95
99
|
onMouseLeave: function onMouseLeave() {
|
|
96
100
|
return handleOverlayChange(false);
|
|
97
101
|
},
|
|
@@ -112,7 +116,9 @@ var AwarenessWrapper = exports.AwarenessWrapper = function AwarenessWrapper(_ref
|
|
|
112
116
|
"data-vc": "awareness-wrapper",
|
|
113
117
|
"data-ssr-placeholder": "awareness-wrapper-".concat(placeholderUniqId),
|
|
114
118
|
"data-ssr-placeholder-replace": "awareness-wrapper-".concat(placeholderUniqId)
|
|
115
|
-
}, (0, _react2.jsx)(_analyticsNext.AnalyticsContext
|
|
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)
|
|
121
|
+
, {
|
|
116
122
|
data: {
|
|
117
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)
|
|
118
124
|
}
|
|
@@ -92,7 +92,9 @@ var DatasourceDropdownOption = exports.DatasourceDropdownOption = function Datas
|
|
|
92
92
|
key: intl.formatMessage(_messages.cardMessages.datasourceAppearanceTitle),
|
|
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)
|
|
97
|
+
,
|
|
96
98
|
onClick: function onClick() {
|
|
97
99
|
return dispatchCommand(onChangeAppearance);
|
|
98
100
|
},
|
|
@@ -102,13 +102,17 @@ var EditLinkToolbar = exports.EditLinkToolbar = /*#__PURE__*/function (_React$Co
|
|
|
102
102
|
// via the floating toolbar
|
|
103
103
|
,
|
|
104
104
|
invokeMethod: _analytics.INPUT_METHOD.FLOATING_TB,
|
|
105
|
-
lpLinkPicker: lpLinkPicker
|
|
105
|
+
lpLinkPicker: lpLinkPicker
|
|
106
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
107
|
+
,
|
|
106
108
|
onSubmit: function onSubmit(href, title, displayText, inputMethod, analytic) {
|
|
107
109
|
_this.hideLinkToolbar();
|
|
108
110
|
if (_onSubmit) {
|
|
109
111
|
_onSubmit(href, displayText || title, inputMethod, analytic);
|
|
110
112
|
}
|
|
111
|
-
}
|
|
113
|
+
}
|
|
114
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
115
|
+
,
|
|
112
116
|
onEscapeCallback: function onEscapeCallback(state, dispatch) {
|
|
113
117
|
var tr = state.tr;
|
|
114
118
|
(0, _actions.hideLinkToolbar)(tr);
|
|
@@ -118,7 +122,9 @@ var EditLinkToolbar = exports.EditLinkToolbar = /*#__PURE__*/function (_React$Co
|
|
|
118
122
|
return true;
|
|
119
123
|
}
|
|
120
124
|
return false;
|
|
121
|
-
}
|
|
125
|
+
}
|
|
126
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
127
|
+
,
|
|
122
128
|
onClickAwayCallback: function onClickAwayCallback(state, dispatch) {
|
|
123
129
|
var tr = state.tr;
|
|
124
130
|
if (dispatch) {
|
|
@@ -173,7 +179,9 @@ var buildEditLinkToolbar = exports.buildEditLinkToolbar = function buildEditLink
|
|
|
173
179
|
text: displayInfo.title || '',
|
|
174
180
|
node: node,
|
|
175
181
|
lpLinkPicker: lpLinkPicker,
|
|
176
|
-
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
|
|
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)
|
|
184
|
+
,
|
|
177
185
|
onSubmit: function onSubmit(newHref, newText, inputMethod, analytic) {
|
|
178
186
|
var urlChanged = newHref !== displayInfo.url;
|
|
179
187
|
var titleChanged = newText !== displayInfo.title;
|
|
@@ -132,7 +132,9 @@ var EditToolbarButtonPresentation = function EditToolbarButtonPresentation(_ref)
|
|
|
132
132
|
handleClickOutside: onClose,
|
|
133
133
|
handleEscapeKeydown: onClose,
|
|
134
134
|
trigger: trigger,
|
|
135
|
-
scrollableElement: containerRef.current
|
|
135
|
+
scrollableElement: containerRef.current
|
|
136
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
137
|
+
,
|
|
136
138
|
arrowKeyNavigationProviderOptions: {
|
|
137
139
|
type: _uiMenu.ArrowKeyNavigationType.MENU
|
|
138
140
|
}
|
|
@@ -157,7 +157,9 @@ var EditToolbarButtonWithCardContext = function EditToolbarButtonWithCardContext
|
|
|
157
157
|
handleClickOutside: onClose,
|
|
158
158
|
handleEscapeKeydown: onClose,
|
|
159
159
|
trigger: trigger,
|
|
160
|
-
scrollableElement: containerRef.current
|
|
160
|
+
scrollableElement: containerRef.current
|
|
161
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
162
|
+
,
|
|
161
163
|
arrowKeyNavigationProviderOptions: {
|
|
162
164
|
type: _uiMenu.ArrowKeyNavigationType.MENU
|
|
163
165
|
}
|
|
@@ -122,6 +122,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
122
122
|
case 21:
|
|
123
123
|
_context2.prev = 21;
|
|
124
124
|
_context2.t3 = _context2["catch"](3);
|
|
125
|
+
// eslint-disable-line no-unused-vars
|
|
125
126
|
isUrlSupported = false;
|
|
126
127
|
case 24:
|
|
127
128
|
newMap = new Map(supportedUrlsMap);
|
|
@@ -191,7 +192,9 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
191
192
|
handleClickOutside: close,
|
|
192
193
|
handleEscapeKeydown: close,
|
|
193
194
|
trigger: trigger,
|
|
194
|
-
scrollableElement: containerRef.current
|
|
195
|
+
scrollableElement: containerRef.current
|
|
196
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
197
|
+
,
|
|
195
198
|
arrowKeyNavigationProviderOptions: {
|
|
196
199
|
type: _uiMenu.ArrowKeyNavigationType.MENU
|
|
197
200
|
},
|
|
@@ -127,14 +127,18 @@ var LinkToolbarAppearance = exports.LinkToolbarAppearance = /*#__PURE__*/functio
|
|
|
127
127
|
var embedEnabled = embedOption ? !embedOption.disabled : false;
|
|
128
128
|
if ((0, _toolbar.shouldRenderToolbarPulse)(embedEnabled, currentAppearance !== null && currentAppearance !== void 0 ? currentAppearance : '', status !== null && status !== void 0 ? status : '', showUpgradeDiscoverability)) {
|
|
129
129
|
var resolvedAnalyticsAttributes = (0, _utils2.getResolvedAttributesFromStore)(url || '', currentAppearance || null, cardContext === null || cardContext === void 0 ? void 0 : cardContext.store);
|
|
130
|
-
return
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
130
|
+
return (
|
|
131
|
+
/*#__PURE__*/
|
|
132
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
133
|
+
_react.default.createElement(_analyticsNext.AnalyticsContext, {
|
|
134
|
+
data: {
|
|
135
|
+
attributes: _objectSpread({}, resolvedAnalyticsAttributes)
|
|
136
|
+
}
|
|
137
|
+
}, /*#__PURE__*/_react.default.createElement(_Pulse.DiscoveryPulse, {
|
|
138
|
+
localStorageKey: _localStorage.LOCAL_STORAGE_DISCOVERY_KEY_TOOLBAR,
|
|
139
|
+
testId: "toolbar-discovery-pulse"
|
|
140
|
+
}, LinkToolbarButtons))
|
|
141
|
+
);
|
|
138
142
|
}
|
|
139
143
|
return LinkToolbarButtons;
|
|
140
144
|
});
|
|
@@ -161,6 +165,7 @@ var getUnavailableMessage = exports.getUnavailableMessage = function getUnavaila
|
|
|
161
165
|
});
|
|
162
166
|
return tooltip;
|
|
163
167
|
} catch (e) {
|
|
168
|
+
// eslint-disable-line no-unused-vars
|
|
164
169
|
return intl.formatMessage(_messages.cardMessages.displayOptionUnavailableInParentNode, {
|
|
165
170
|
node: intl.formatMessage(_messages.default.defaultBlockNode)
|
|
166
171
|
});
|
|
@@ -107,7 +107,9 @@ var LinkAppearanceMenu = exports.LinkAppearanceMenu = function LinkAppearanceMen
|
|
|
107
107
|
return /*#__PURE__*/_react.default.createElement(_menu.MenuGroup, null, /*#__PURE__*/_react.default.createElement(_menu.Section, null, finalOptions.map(function (option) {
|
|
108
108
|
return /*#__PURE__*/_react.default.createElement(_menu.ButtonItem, {
|
|
109
109
|
key: option.title,
|
|
110
|
-
iconBefore: option.icon
|
|
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)
|
|
112
|
+
,
|
|
111
113
|
onClick: function onClick() {
|
|
112
114
|
return option.onClick();
|
|
113
115
|
},
|
|
@@ -74,7 +74,9 @@ export function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
74
74
|
if (this.state.isError) {
|
|
75
75
|
if (url) {
|
|
76
76
|
return fg('dst-a11y__replace-anchor-with-link__linking-platfo') ? /*#__PURE__*/React.createElement(Link, {
|
|
77
|
-
href: url
|
|
77
|
+
href: url
|
|
78
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
79
|
+
,
|
|
78
80
|
onClick: e => {
|
|
79
81
|
e.preventDefault();
|
|
80
82
|
}
|
|
@@ -93,7 +95,9 @@ export function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
93
95
|
}
|
|
94
96
|
const editorAppearance = (_getPluginState = getPluginState(this.props.view.state)) === null || _getPluginState === void 0 ? void 0 : _getPluginState.editorAppearance;
|
|
95
97
|
const analyticsEditorAppearance = getAnalyticsEditorAppearance(editorAppearance);
|
|
96
|
-
return /*#__PURE__*/React.createElement(AnalyticsContext
|
|
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)
|
|
100
|
+
, {
|
|
97
101
|
data: {
|
|
98
102
|
attributes: {
|
|
99
103
|
location: analyticsEditorAppearance
|
|
@@ -177,7 +177,9 @@ export const InlineCardWithAwareness = /*#__PURE__*/memo(({
|
|
|
177
177
|
editorAnalyticsApi: pluginInjectionApi === null || pluginInjectionApi === void 0 ? void 0 : (_pluginInjectionApi$a5 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a5 === void 0 ? void 0 : _pluginInjectionApi$a5.actions,
|
|
178
178
|
view: view,
|
|
179
179
|
showPanelButton: showPanelButton,
|
|
180
|
-
showPanelButtonIcon: isPreviewAvailable && isPreviewPanelAvailable ? 'panel' : 'modal'
|
|
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)
|
|
182
|
+
,
|
|
181
183
|
onClick: event => {
|
|
182
184
|
if (isPreviewPanelAvailable) {
|
|
183
185
|
var _extractSmartLinkEmbe;
|
|
@@ -78,8 +78,12 @@ export const AwarenessWrapper = ({
|
|
|
78
78
|
if (shouldShowLinkOverlay && !editorExperiment('platform_editor_controls', 'variant1') && !editorExperiment('platform_editor_preview_panel_linking_exp', true)) {
|
|
79
79
|
return jsx(InlineCardOverlay, {
|
|
80
80
|
isSelected: isSelected,
|
|
81
|
-
isVisible: isResolvedViewRendered && (isInserted || isHovered || isSelected)
|
|
82
|
-
|
|
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)
|
|
83
|
+
,
|
|
84
|
+
onMouseEnter: () => handleOverlayChange(true)
|
|
85
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
86
|
+
,
|
|
83
87
|
onMouseLeave: () => handleOverlayChange(false),
|
|
84
88
|
url: url
|
|
85
89
|
}, children);
|
|
@@ -98,7 +102,9 @@ export const AwarenessWrapper = ({
|
|
|
98
102
|
"data-vc": "awareness-wrapper",
|
|
99
103
|
"data-ssr-placeholder": `awareness-wrapper-${placeholderUniqId}`,
|
|
100
104
|
"data-ssr-placeholder-replace": `awareness-wrapper-${placeholderUniqId}`
|
|
101
|
-
}, jsx(AnalyticsContext
|
|
105
|
+
}, jsx(AnalyticsContext
|
|
106
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
107
|
+
, {
|
|
102
108
|
data: {
|
|
103
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)
|
|
104
110
|
}
|
|
@@ -87,7 +87,9 @@ export const DatasourceDropdownOption = ({
|
|
|
87
87
|
key: intl.formatMessage(messages.datasourceAppearanceTitle),
|
|
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)
|
|
92
|
+
,
|
|
91
93
|
onClick: () => dispatchCommand(onChangeAppearance),
|
|
92
94
|
isSelected: selected
|
|
93
95
|
}, intl.formatMessage(messages.datasourceAppearanceTitle));
|
|
@@ -75,13 +75,17 @@ export class EditLinkToolbar extends React.Component {
|
|
|
75
75
|
// via the floating toolbar
|
|
76
76
|
,
|
|
77
77
|
invokeMethod: INPUT_METHOD.FLOATING_TB,
|
|
78
|
-
lpLinkPicker: lpLinkPicker
|
|
78
|
+
lpLinkPicker: lpLinkPicker
|
|
79
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
80
|
+
,
|
|
79
81
|
onSubmit: (href, title, displayText, inputMethod, analytic) => {
|
|
80
82
|
this.hideLinkToolbar();
|
|
81
83
|
if (onSubmit) {
|
|
82
84
|
onSubmit(href, displayText || title, inputMethod, analytic);
|
|
83
85
|
}
|
|
84
|
-
}
|
|
86
|
+
}
|
|
87
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
88
|
+
,
|
|
85
89
|
onEscapeCallback: (state, dispatch) => {
|
|
86
90
|
const {
|
|
87
91
|
tr
|
|
@@ -93,7 +97,9 @@ export class EditLinkToolbar extends React.Component {
|
|
|
93
97
|
return true;
|
|
94
98
|
}
|
|
95
99
|
return false;
|
|
96
|
-
}
|
|
100
|
+
}
|
|
101
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
102
|
+
,
|
|
97
103
|
onClickAwayCallback: (state, dispatch) => {
|
|
98
104
|
const {
|
|
99
105
|
tr
|
|
@@ -150,7 +156,9 @@ export const buildEditLinkToolbar = ({
|
|
|
150
156
|
text: displayInfo.title || '',
|
|
151
157
|
node: node,
|
|
152
158
|
lpLinkPicker: lpLinkPicker,
|
|
153
|
-
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
|
|
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)
|
|
161
|
+
,
|
|
154
162
|
onSubmit: (newHref, newText, inputMethod, analytic) => {
|
|
155
163
|
const urlChanged = newHref !== displayInfo.url;
|
|
156
164
|
const titleChanged = newText !== displayInfo.title;
|
|
@@ -115,7 +115,9 @@ const EditToolbarButtonPresentation = ({
|
|
|
115
115
|
handleClickOutside: onClose,
|
|
116
116
|
handleEscapeKeydown: onClose,
|
|
117
117
|
trigger: trigger,
|
|
118
|
-
scrollableElement: containerRef.current
|
|
118
|
+
scrollableElement: containerRef.current
|
|
119
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
120
|
+
,
|
|
119
121
|
arrowKeyNavigationProviderOptions: {
|
|
120
122
|
type: ArrowKeyNavigationType.MENU
|
|
121
123
|
}
|
|
@@ -142,7 +142,9 @@ const EditToolbarButtonWithCardContext = props => {
|
|
|
142
142
|
handleClickOutside: onClose,
|
|
143
143
|
handleEscapeKeydown: onClose,
|
|
144
144
|
trigger: trigger,
|
|
145
|
-
scrollableElement: containerRef.current
|
|
145
|
+
scrollableElement: containerRef.current
|
|
146
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
147
|
+
,
|
|
146
148
|
arrowKeyNavigationProviderOptions: {
|
|
147
149
|
type: ArrowKeyNavigationType.MENU
|
|
148
150
|
}
|
|
@@ -52,6 +52,7 @@ const CustomHyperlinkDropdown = props => {
|
|
|
52
52
|
const provider = await getProvider();
|
|
53
53
|
isUrlSupported = (_await$provider$findP = await (provider === null || provider === void 0 ? void 0 : provider.findPattern(url))) !== null && _await$provider$findP !== void 0 ? _await$provider$findP : false;
|
|
54
54
|
} catch (error) {
|
|
55
|
+
// eslint-disable-line no-unused-vars
|
|
55
56
|
isUrlSupported = false;
|
|
56
57
|
}
|
|
57
58
|
const newMap = new Map(supportedUrlsMap);
|
|
@@ -106,7 +107,9 @@ const CustomHyperlinkDropdown = props => {
|
|
|
106
107
|
handleClickOutside: close,
|
|
107
108
|
handleEscapeKeydown: close,
|
|
108
109
|
trigger: trigger,
|
|
109
|
-
scrollableElement: containerRef.current
|
|
110
|
+
scrollableElement: containerRef.current
|
|
111
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
112
|
+
,
|
|
110
113
|
arrowKeyNavigationProviderOptions: {
|
|
111
114
|
type: ArrowKeyNavigationType.MENU
|
|
112
115
|
},
|
|
@@ -100,16 +100,20 @@ export class LinkToolbarAppearance extends React.Component {
|
|
|
100
100
|
const embedEnabled = embedOption ? !embedOption.disabled : false;
|
|
101
101
|
if (shouldRenderToolbarPulse(embedEnabled, currentAppearance !== null && currentAppearance !== void 0 ? currentAppearance : '', status !== null && status !== void 0 ? status : '', showUpgradeDiscoverability)) {
|
|
102
102
|
const resolvedAnalyticsAttributes = getResolvedAttributesFromStore(url || '', currentAppearance || null, cardContext === null || cardContext === void 0 ? void 0 : cardContext.store);
|
|
103
|
-
return
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
return (
|
|
104
|
+
/*#__PURE__*/
|
|
105
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
106
|
+
React.createElement(AnalyticsContext, {
|
|
107
|
+
data: {
|
|
108
|
+
attributes: {
|
|
109
|
+
...resolvedAnalyticsAttributes
|
|
110
|
+
}
|
|
107
111
|
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
112
|
+
}, /*#__PURE__*/React.createElement(DiscoveryPulse, {
|
|
113
|
+
localStorageKey: LOCAL_STORAGE_DISCOVERY_KEY_TOOLBAR,
|
|
114
|
+
testId: "toolbar-discovery-pulse"
|
|
115
|
+
}, LinkToolbarButtons))
|
|
116
|
+
);
|
|
113
117
|
}
|
|
114
118
|
return LinkToolbarButtons;
|
|
115
119
|
});
|
|
@@ -130,6 +134,7 @@ export const getUnavailableMessage = (state, intl) => {
|
|
|
130
134
|
});
|
|
131
135
|
return tooltip;
|
|
132
136
|
} catch (e) {
|
|
137
|
+
// eslint-disable-line no-unused-vars
|
|
133
138
|
return intl.formatMessage(messages.displayOptionUnavailableInParentNode, {
|
|
134
139
|
node: intl.formatMessage(nodeNames.defaultBlockNode)
|
|
135
140
|
});
|
|
@@ -94,7 +94,9 @@ export const LinkAppearanceMenu = ({
|
|
|
94
94
|
return /*#__PURE__*/React.createElement(MenuGroup, null, /*#__PURE__*/React.createElement(Section, null, finalOptions.map(option => {
|
|
95
95
|
return /*#__PURE__*/React.createElement(ButtonItem, {
|
|
96
96
|
key: option.title,
|
|
97
|
-
iconBefore: option.icon
|
|
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)
|
|
99
|
+
,
|
|
98
100
|
onClick: () => option.onClick(),
|
|
99
101
|
isSelected: option.selected,
|
|
100
102
|
description: option.description,
|
|
@@ -87,7 +87,9 @@ export function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
87
87
|
if (this.state.isError) {
|
|
88
88
|
if (url) {
|
|
89
89
|
return fg('dst-a11y__replace-anchor-with-link__linking-platfo') ? /*#__PURE__*/React.createElement(Link, {
|
|
90
|
-
href: url
|
|
90
|
+
href: url
|
|
91
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
92
|
+
,
|
|
91
93
|
onClick: function onClick(e) {
|
|
92
94
|
e.preventDefault();
|
|
93
95
|
}
|
|
@@ -106,7 +108,9 @@ export function Card(SmartCardComponent, UnsupportedComponent) {
|
|
|
106
108
|
}
|
|
107
109
|
var editorAppearance = (_getPluginState = getPluginState(this.props.view.state)) === null || _getPluginState === void 0 ? void 0 : _getPluginState.editorAppearance;
|
|
108
110
|
var analyticsEditorAppearance = getAnalyticsEditorAppearance(editorAppearance);
|
|
109
|
-
return /*#__PURE__*/React.createElement(AnalyticsContext
|
|
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)
|
|
113
|
+
, {
|
|
110
114
|
data: {
|
|
111
115
|
attributes: {
|
|
112
116
|
location: analyticsEditorAppearance
|
|
@@ -189,7 +189,9 @@ export var InlineCardWithAwareness = /*#__PURE__*/memo(function (_ref) {
|
|
|
189
189
|
editorAnalyticsApi: pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$a4 = pluginInjectionApi.analytics) === null || _pluginInjectionApi$a4 === void 0 ? void 0 : _pluginInjectionApi$a4.actions,
|
|
190
190
|
view: view,
|
|
191
191
|
showPanelButton: showPanelButton,
|
|
192
|
-
showPanelButtonIcon: isPreviewAvailable && isPreviewPanelAvailable ? 'panel' : 'modal'
|
|
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)
|
|
194
|
+
,
|
|
193
195
|
onClick: function onClick(event) {
|
|
194
196
|
if (isPreviewPanelAvailable) {
|
|
195
197
|
var _extractSmartLinkEmbe;
|
|
@@ -80,10 +80,14 @@ export var AwarenessWrapper = function AwarenessWrapper(_ref) {
|
|
|
80
80
|
if (shouldShowLinkOverlay && !editorExperiment('platform_editor_controls', 'variant1') && !editorExperiment('platform_editor_preview_panel_linking_exp', true)) {
|
|
81
81
|
return jsx(InlineCardOverlay, {
|
|
82
82
|
isSelected: isSelected,
|
|
83
|
-
isVisible: isResolvedViewRendered && (isInserted || isHovered || isSelected)
|
|
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)
|
|
85
|
+
,
|
|
84
86
|
onMouseEnter: function onMouseEnter() {
|
|
85
87
|
return handleOverlayChange(true);
|
|
86
|
-
}
|
|
88
|
+
}
|
|
89
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
90
|
+
,
|
|
87
91
|
onMouseLeave: function onMouseLeave() {
|
|
88
92
|
return handleOverlayChange(false);
|
|
89
93
|
},
|
|
@@ -104,7 +108,9 @@ export var AwarenessWrapper = function AwarenessWrapper(_ref) {
|
|
|
104
108
|
"data-vc": "awareness-wrapper",
|
|
105
109
|
"data-ssr-placeholder": "awareness-wrapper-".concat(placeholderUniqId),
|
|
106
110
|
"data-ssr-placeholder-replace": "awareness-wrapper-".concat(placeholderUniqId)
|
|
107
|
-
}, jsx(AnalyticsContext
|
|
111
|
+
}, jsx(AnalyticsContext
|
|
112
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
113
|
+
, {
|
|
108
114
|
data: {
|
|
109
115
|
attributes: getResolvedAttributesFromStore(url, 'inline', cardContext === null || cardContext === void 0 || (_cardContext$value = cardContext.value) === null || _cardContext$value === void 0 ? void 0 : _cardContext$value.store)
|
|
110
116
|
}
|
|
@@ -85,7 +85,9 @@ export var DatasourceDropdownOption = function DatasourceDropdownOption(_ref) {
|
|
|
85
85
|
key: intl.formatMessage(messages.datasourceAppearanceTitle),
|
|
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)
|
|
90
|
+
,
|
|
89
91
|
onClick: function onClick() {
|
|
90
92
|
return dispatchCommand(onChangeAppearance);
|
|
91
93
|
},
|
|
@@ -93,13 +93,17 @@ export var EditLinkToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
93
93
|
// via the floating toolbar
|
|
94
94
|
,
|
|
95
95
|
invokeMethod: INPUT_METHOD.FLOATING_TB,
|
|
96
|
-
lpLinkPicker: lpLinkPicker
|
|
96
|
+
lpLinkPicker: lpLinkPicker
|
|
97
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
98
|
+
,
|
|
97
99
|
onSubmit: function onSubmit(href, title, displayText, inputMethod, analytic) {
|
|
98
100
|
_this.hideLinkToolbar();
|
|
99
101
|
if (_onSubmit) {
|
|
100
102
|
_onSubmit(href, displayText || title, inputMethod, analytic);
|
|
101
103
|
}
|
|
102
|
-
}
|
|
104
|
+
}
|
|
105
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
106
|
+
,
|
|
103
107
|
onEscapeCallback: function onEscapeCallback(state, dispatch) {
|
|
104
108
|
var tr = state.tr;
|
|
105
109
|
_hideLinkToolbar(tr);
|
|
@@ -109,7 +113,9 @@ export var EditLinkToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
109
113
|
return true;
|
|
110
114
|
}
|
|
111
115
|
return false;
|
|
112
|
-
}
|
|
116
|
+
}
|
|
117
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
118
|
+
,
|
|
113
119
|
onClickAwayCallback: function onClickAwayCallback(state, dispatch) {
|
|
114
120
|
var tr = state.tr;
|
|
115
121
|
if (dispatch) {
|
|
@@ -164,7 +170,9 @@ export var buildEditLinkToolbar = function buildEditLinkToolbar(_ref2) {
|
|
|
164
170
|
text: displayInfo.title || '',
|
|
165
171
|
node: node,
|
|
166
172
|
lpLinkPicker: lpLinkPicker,
|
|
167
|
-
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
|
|
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)
|
|
175
|
+
,
|
|
168
176
|
onSubmit: function onSubmit(newHref, newText, inputMethod, analytic) {
|
|
169
177
|
var urlChanged = newHref !== displayInfo.url;
|
|
170
178
|
var titleChanged = newText !== displayInfo.title;
|
|
@@ -124,7 +124,9 @@ var EditToolbarButtonPresentation = function EditToolbarButtonPresentation(_ref)
|
|
|
124
124
|
handleClickOutside: onClose,
|
|
125
125
|
handleEscapeKeydown: onClose,
|
|
126
126
|
trigger: trigger,
|
|
127
|
-
scrollableElement: containerRef.current
|
|
127
|
+
scrollableElement: containerRef.current
|
|
128
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
129
|
+
,
|
|
128
130
|
arrowKeyNavigationProviderOptions: {
|
|
129
131
|
type: ArrowKeyNavigationType.MENU
|
|
130
132
|
}
|
|
@@ -151,7 +151,9 @@ var EditToolbarButtonWithCardContext = function EditToolbarButtonWithCardContext
|
|
|
151
151
|
handleClickOutside: onClose,
|
|
152
152
|
handleEscapeKeydown: onClose,
|
|
153
153
|
trigger: trigger,
|
|
154
|
-
scrollableElement: containerRef.current
|
|
154
|
+
scrollableElement: containerRef.current
|
|
155
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
156
|
+
,
|
|
155
157
|
arrowKeyNavigationProviderOptions: {
|
|
156
158
|
type: ArrowKeyNavigationType.MENU
|
|
157
159
|
}
|
|
@@ -113,6 +113,7 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
113
113
|
case 21:
|
|
114
114
|
_context2.prev = 21;
|
|
115
115
|
_context2.t3 = _context2["catch"](3);
|
|
116
|
+
// eslint-disable-line no-unused-vars
|
|
116
117
|
isUrlSupported = false;
|
|
117
118
|
case 24:
|
|
118
119
|
newMap = new Map(supportedUrlsMap);
|
|
@@ -182,7 +183,9 @@ var CustomHyperlinkDropdown = function CustomHyperlinkDropdown(props) {
|
|
|
182
183
|
handleClickOutside: close,
|
|
183
184
|
handleEscapeKeydown: close,
|
|
184
185
|
trigger: trigger,
|
|
185
|
-
scrollableElement: containerRef.current
|
|
186
|
+
scrollableElement: containerRef.current
|
|
187
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
188
|
+
,
|
|
186
189
|
arrowKeyNavigationProviderOptions: {
|
|
187
190
|
type: ArrowKeyNavigationType.MENU
|
|
188
191
|
},
|
|
@@ -118,14 +118,18 @@ export var LinkToolbarAppearance = /*#__PURE__*/function (_React$Component) {
|
|
|
118
118
|
var embedEnabled = embedOption ? !embedOption.disabled : false;
|
|
119
119
|
if (shouldRenderToolbarPulse(embedEnabled, currentAppearance !== null && currentAppearance !== void 0 ? currentAppearance : '', status !== null && status !== void 0 ? status : '', showUpgradeDiscoverability)) {
|
|
120
120
|
var resolvedAnalyticsAttributes = getResolvedAttributesFromStore(url || '', currentAppearance || null, cardContext === null || cardContext === void 0 ? void 0 : cardContext.store);
|
|
121
|
-
return
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
121
|
+
return (
|
|
122
|
+
/*#__PURE__*/
|
|
123
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
124
|
+
React.createElement(AnalyticsContext, {
|
|
125
|
+
data: {
|
|
126
|
+
attributes: _objectSpread({}, resolvedAnalyticsAttributes)
|
|
127
|
+
}
|
|
128
|
+
}, /*#__PURE__*/React.createElement(DiscoveryPulse, {
|
|
129
|
+
localStorageKey: LOCAL_STORAGE_DISCOVERY_KEY_TOOLBAR,
|
|
130
|
+
testId: "toolbar-discovery-pulse"
|
|
131
|
+
}, LinkToolbarButtons))
|
|
132
|
+
);
|
|
129
133
|
}
|
|
130
134
|
return LinkToolbarButtons;
|
|
131
135
|
});
|
|
@@ -152,6 +156,7 @@ export var getUnavailableMessage = function getUnavailableMessage(state, intl) {
|
|
|
152
156
|
});
|
|
153
157
|
return tooltip;
|
|
154
158
|
} catch (e) {
|
|
159
|
+
// eslint-disable-line no-unused-vars
|
|
155
160
|
return intl.formatMessage(messages.displayOptionUnavailableInParentNode, {
|
|
156
161
|
node: intl.formatMessage(nodeNames.defaultBlockNode)
|
|
157
162
|
});
|
|
@@ -100,7 +100,9 @@ export var LinkAppearanceMenu = function LinkAppearanceMenu(_ref) {
|
|
|
100
100
|
return /*#__PURE__*/React.createElement(MenuGroup, null, /*#__PURE__*/React.createElement(Section, null, finalOptions.map(function (option) {
|
|
101
101
|
return /*#__PURE__*/React.createElement(ButtonItem, {
|
|
102
102
|
key: option.title,
|
|
103
|
-
iconBefore: option.icon
|
|
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)
|
|
105
|
+
,
|
|
104
106
|
onClick: function onClick() {
|
|
105
107
|
return option.onClick();
|
|
106
108
|
},
|
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.4",
|
|
4
4
|
"description": "Card plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -53,16 +53,16 @@
|
|
|
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
61
|
"@atlaskit/primitives": "^18.0.0",
|
|
62
62
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
63
|
-
"@atlaskit/smart-card": "^43.
|
|
63
|
+
"@atlaskit/smart-card": "^43.27.0",
|
|
64
64
|
"@atlaskit/theme": "^22.0.0",
|
|
65
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
65
|
+
"@atlaskit/tmp-editor-statsig": "^45.0.0",
|
|
66
66
|
"@atlaskit/tokens": "^11.1.0",
|
|
67
67
|
"@babel/runtime": "^7.0.0",
|
|
68
68
|
"@emotion/react": "^11.7.1",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"uuid": "^3.1.0"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"@atlaskit/editor-common": "^112.
|
|
75
|
+
"@atlaskit/editor-common": "^112.8.0",
|
|
76
76
|
"@atlaskit/link-provider": "^4.2.0",
|
|
77
77
|
"react": "^18.2.0",
|
|
78
78
|
"react-intl-next": "npm:react-intl@^5.18.1"
|