@atlaskit/editor-common 112.7.3 → 112.7.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 +16 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/afm-products/tsconfig.json +0 -3
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/card/ui/assets/card.js +3 -1
- package/dist/cjs/card/ui/assets/embed.js +3 -1
- package/dist/cjs/card/ui/assets/inline.js +3 -1
- package/dist/cjs/card/ui/assets/url.js +3 -1
- package/dist/cjs/element-browser/components/CategoryList.js +1 -1
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +3 -3
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/cjs/element-browser/components/ElementSearch.js +1 -1
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +2 -2
- package/dist/cjs/extensibility/Extension/Extension/index.js +9 -3
- package/dist/cjs/extensibility/Extension/Extension/styles.js +2 -2
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +1 -1
- package/dist/cjs/extensibility/Extension/LegacyContentHeader/index.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/cjs/extensibility/Extension.js +3 -1
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +1 -1
- package/dist/cjs/extensions/UnknownMacroPlaceholder.compiled.css +3 -3
- package/dist/cjs/extensions/UnknownMacroPlaceholder.js +4 -3
- package/dist/cjs/keymaps/index.js +1 -0
- package/dist/cjs/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +20 -11
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +6 -2
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +6 -2
- package/dist/cjs/link/LinkSearch/withActivityProvider.js +5 -3
- package/dist/cjs/mark/commands.js +5 -3
- package/dist/cjs/media-inline/inline-image-card.js +3 -1
- package/dist/cjs/media-inline/media-inline-image-card.js +6 -2
- package/dist/cjs/media-single/CommentBadge.js +6 -4
- package/dist/cjs/media-single/CommentBadgeNext.js +3 -1
- package/dist/cjs/media-single/MediaBadges.js +3 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +3 -9
- package/dist/cjs/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/cjs/quick-insert/assets/datasource-assets-objects.js +3 -3
- package/dist/cjs/quick-insert/assets/five-column-layout.js +1 -1
- package/dist/cjs/quick-insert/assets/four-column-layout.js +1 -1
- package/dist/cjs/quick-insert/assets/one-column-layout.js +1 -1
- package/dist/cjs/quick-insert/assets/three-column-layout.js +1 -1
- package/dist/cjs/quick-insert/assets/two-column-layout.js +1 -1
- package/dist/cjs/resizer/BreakoutResizer.js +3 -1
- package/dist/cjs/resizer/Resizer.js +6 -2
- package/dist/cjs/styles/shared/blockquote.js +1 -1
- package/dist/cjs/styles/shared/table.js +3 -3
- package/dist/cjs/table/SortingIcon.js +3 -3
- package/dist/cjs/toolbar/context.js +1 -0
- package/dist/cjs/ui/AssistiveText/AssistiveText.js +4 -0
- package/dist/cjs/ui/ContextPanel/context.js +3 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/FloatingToolbar/Button.js +4 -2
- package/dist/cjs/ui/HoverLinkOverlay/index.js +3 -1
- package/dist/cjs/ui/Mention/index.js +3 -1
- package/dist/cjs/ui/MultiBodiedExtension/index.js +1 -1
- package/dist/cjs/ui/ResizerLegacy/index.js +3 -1
- package/dist/cjs/ui/TableSelector/index.js +6 -5
- package/dist/cjs/ui/TableSelector/table-selector.js +9 -10
- package/dist/cjs/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +3 -3
- package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -1
- package/dist/cjs/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +4 -0
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +12 -4
- package/dist/cjs/ui-menu/DropdownMenu/index.js +21 -10
- package/dist/cjs/ui-menu/ToolbarButton/styles.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/card/ui/assets/card.js +3 -1
- package/dist/es2019/card/ui/assets/embed.js +3 -1
- package/dist/es2019/card/ui/assets/inline.js +3 -1
- package/dist/es2019/card/ui/assets/url.js +3 -1
- package/dist/es2019/element-browser/components/CategoryList.js +2 -2
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +3 -3
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +1 -1
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +2 -2
- package/dist/es2019/extensibility/Extension/Extension/index.js +9 -3
- package/dist/es2019/extensibility/Extension/Extension/styles.js +2 -2
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +1 -1
- package/dist/es2019/extensibility/Extension/LegacyContentHeader/index.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/es2019/extensibility/Extension.js +3 -1
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +1 -1
- package/dist/es2019/extensions/UnknownMacroPlaceholder.compiled.css +3 -3
- package/dist/es2019/extensions/UnknownMacroPlaceholder.js +3 -2
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +20 -11
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +6 -2
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +6 -2
- package/dist/es2019/link/LinkSearch/withActivityProvider.js +4 -2
- package/dist/es2019/mark/commands.js +5 -3
- package/dist/es2019/media-inline/inline-image-card.js +3 -1
- package/dist/es2019/media-inline/media-inline-image-card.js +6 -2
- package/dist/es2019/media-single/CommentBadge.js +6 -4
- package/dist/es2019/media-single/CommentBadgeNext.js +3 -1
- package/dist/es2019/media-single/MediaBadges.js +3 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +4 -10
- package/dist/es2019/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/es2019/quick-insert/assets/datasource-assets-objects.js +3 -3
- package/dist/es2019/quick-insert/assets/five-column-layout.js +1 -1
- package/dist/es2019/quick-insert/assets/four-column-layout.js +1 -1
- package/dist/es2019/quick-insert/assets/one-column-layout.js +1 -1
- package/dist/es2019/quick-insert/assets/three-column-layout.js +1 -1
- package/dist/es2019/quick-insert/assets/two-column-layout.js +1 -1
- package/dist/es2019/resizer/BreakoutResizer.js +3 -1
- package/dist/es2019/resizer/Resizer.js +6 -2
- package/dist/es2019/styles/shared/blockquote.js +2 -2
- package/dist/es2019/styles/shared/table.js +13 -14
- package/dist/es2019/table/SortingIcon.js +4 -4
- package/dist/es2019/toolbar/context.js +1 -0
- package/dist/es2019/ui/AssistiveText/AssistiveText.js +4 -0
- package/dist/es2019/ui/ContextPanel/context.js +3 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/FloatingToolbar/Button.js +4 -2
- package/dist/es2019/ui/HoverLinkOverlay/index.js +3 -1
- package/dist/es2019/ui/Mention/index.js +3 -1
- package/dist/es2019/ui/MultiBodiedExtension/index.js +1 -1
- package/dist/es2019/ui/ResizerLegacy/index.js +3 -1
- package/dist/es2019/ui/TableSelector/index.js +6 -5
- package/dist/es2019/ui/TableSelector/table-selector.js +9 -10
- package/dist/es2019/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +3 -3
- package/dist/es2019/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +1 -2
- package/dist/es2019/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -1
- package/dist/es2019/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +4 -0
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +12 -4
- package/dist/es2019/ui-menu/DropdownMenu/index.js +25 -14
- package/dist/es2019/ui-menu/ToolbarButton/styles.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/card/ui/assets/card.js +3 -1
- package/dist/esm/card/ui/assets/embed.js +3 -1
- package/dist/esm/card/ui/assets/inline.js +3 -1
- package/dist/esm/card/ui/assets/url.js +3 -1
- package/dist/esm/element-browser/components/CategoryList.js +2 -2
- package/dist/esm/element-browser/components/ElementList/ElementList.js +3 -3
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +1 -1
- package/dist/esm/element-browser/components/ElementSearch.js +1 -1
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +2 -2
- package/dist/esm/extensibility/Extension/Extension/index.js +9 -3
- package/dist/esm/extensibility/Extension/Extension/styles.js +2 -2
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +1 -1
- package/dist/esm/extensibility/Extension/LegacyContentHeader/index.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -0
- package/dist/esm/extensibility/Extension.js +3 -1
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +1 -1
- package/dist/esm/extensions/UnknownMacroPlaceholder.compiled.css +3 -3
- package/dist/esm/extensions/UnknownMacroPlaceholder.js +4 -3
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/link/ConfigureLinkOverlay/Dropdown.js +4 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +20 -11
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +6 -2
- package/dist/esm/link/LinkSearch/LinkSearchList.js +6 -2
- package/dist/esm/link/LinkSearch/withActivityProvider.js +4 -2
- package/dist/esm/mark/commands.js +5 -3
- package/dist/esm/media-inline/inline-image-card.js +3 -1
- package/dist/esm/media-inline/media-inline-image-card.js +6 -2
- package/dist/esm/media-single/CommentBadge.js +6 -4
- package/dist/esm/media-single/CommentBadgeNext.js +3 -1
- package/dist/esm/media-single/MediaBadges.js +3 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +4 -10
- package/dist/esm/paste/md-plugins/linkify-md-plugin.js +2 -2
- package/dist/esm/quick-insert/assets/datasource-assets-objects.js +3 -3
- package/dist/esm/quick-insert/assets/five-column-layout.js +1 -1
- package/dist/esm/quick-insert/assets/four-column-layout.js +1 -1
- package/dist/esm/quick-insert/assets/one-column-layout.js +1 -1
- package/dist/esm/quick-insert/assets/three-column-layout.js +1 -1
- package/dist/esm/quick-insert/assets/two-column-layout.js +1 -1
- package/dist/esm/resizer/BreakoutResizer.js +3 -1
- package/dist/esm/resizer/Resizer.js +6 -2
- package/dist/esm/styles/shared/blockquote.js +2 -2
- package/dist/esm/styles/shared/table.js +4 -4
- package/dist/esm/table/SortingIcon.js +3 -3
- package/dist/esm/toolbar/context.js +1 -0
- package/dist/esm/ui/AssistiveText/AssistiveText.js +4 -0
- package/dist/esm/ui/ContextPanel/context.js +3 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/FloatingToolbar/Button.js +4 -2
- package/dist/esm/ui/HoverLinkOverlay/index.js +3 -1
- package/dist/esm/ui/Mention/index.js +3 -1
- package/dist/esm/ui/MultiBodiedExtension/index.js +1 -1
- package/dist/esm/ui/ResizerLegacy/index.js +3 -1
- package/dist/esm/ui/TableSelector/index.js +6 -5
- package/dist/esm/ui/TableSelector/table-selector.js +9 -10
- package/dist/esm/ui-color/ColorPalette/Palettes/borderColorPalette.js +1 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/cellBackgroundColorPalette.js +1 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +3 -3
- package/dist/esm/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -1
- package/dist/esm/ui-menu/ArrowKeyNavigationProvider/MenuArrowKeyNavigationProvider/index.js +4 -0
- package/dist/esm/ui-menu/ColorPickerButton/index.js +12 -4
- package/dist/esm/ui-menu/DropdownMenu/index.js +21 -10
- package/dist/esm/ui-menu/ToolbarButton/styles.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 112.7.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`d497cbb2d150f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/d497cbb2d150f) -
|
|
8
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 112.7.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [`a35f1a8d92461`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a35f1a8d92461) -
|
|
16
|
+
[FFCLEANUP-84844] Clean up stale feature flag platform_editor_nested_table_refresh_width_fix
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 112.7.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/afm-cc/tsconfig.json
CHANGED
package/afm-jira/tsconfig.json
CHANGED
|
@@ -374,6 +374,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
374
374
|
ACTION_SUBJECT["BLOCK_MENU_ITEM"] = "blockMenuItem";
|
|
375
375
|
ACTION_SUBJECT["PASTE_ACTIONS_MENU"] = "pasteActionsMenu";
|
|
376
376
|
ACTION_SUBJECT["SYNCED_BLOCK"] = "syncedBlock";
|
|
377
|
+
ACTION_SUBJECT["NATIVE_EMBED"] = "nativeEmbed";
|
|
377
378
|
return ACTION_SUBJECT;
|
|
378
379
|
}({});
|
|
379
380
|
var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
@@ -30,7 +30,9 @@ var IconCardGlyph = function IconCardGlyph(_ref) {
|
|
|
30
30
|
var IconCard = exports.IconCard = function IconCard(_ref2) {
|
|
31
31
|
var label = _ref2.label;
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement(IconCardGlyph, {
|
|
33
|
-
"aria-label": label
|
|
33
|
+
"aria-label": label
|
|
34
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
35
|
+
,
|
|
34
36
|
style: {
|
|
35
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
36
38
|
width: '24px',
|
|
@@ -30,7 +30,9 @@ var IconEmbedGlyph = function IconEmbedGlyph(_ref) {
|
|
|
30
30
|
var IconEmbed = exports.IconEmbed = function IconEmbed(_ref2) {
|
|
31
31
|
var label = _ref2.label;
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement(IconEmbedGlyph, {
|
|
33
|
-
"aria-label": label
|
|
33
|
+
"aria-label": label
|
|
34
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
35
|
+
,
|
|
34
36
|
style: {
|
|
35
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
36
38
|
width: '24px',
|
|
@@ -30,7 +30,9 @@ var IconInlineGlyph = function IconInlineGlyph(_ref) {
|
|
|
30
30
|
var IconInline = exports.IconInline = function IconInline(_ref2) {
|
|
31
31
|
var label = _ref2.label;
|
|
32
32
|
return /*#__PURE__*/_react.default.createElement(IconInlineGlyph, {
|
|
33
|
-
"aria-label": label
|
|
33
|
+
"aria-label": label
|
|
34
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
35
|
+
,
|
|
34
36
|
style: {
|
|
35
37
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
36
38
|
width: '24px',
|
|
@@ -32,7 +32,9 @@ var IconUrlGlyph = function IconUrlGlyph(_ref) {
|
|
|
32
32
|
var IconUrl = exports.IconUrl = function IconUrl(_ref2) {
|
|
33
33
|
var label = _ref2.label;
|
|
34
34
|
return /*#__PURE__*/_react.default.createElement(IconUrlGlyph, {
|
|
35
|
-
"aria-label": label
|
|
35
|
+
"aria-label": label
|
|
36
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
37
|
+
,
|
|
36
38
|
style: {
|
|
37
39
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
38
40
|
width: '24px',
|
|
@@ -183,7 +183,7 @@ function CategoryListItem(_ref2) {
|
|
|
183
183
|
}
|
|
184
184
|
var buttonWrapper = (0, _react2.css)((0, _defineProperty2.default)({
|
|
185
185
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
186
|
-
height: ""
|
|
186
|
+
height: "32px",
|
|
187
187
|
margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " ", "var(--ds-space-050, 4px)", " 0")
|
|
188
188
|
}, "@media (min-width: ".concat(_constants.DEVICE_BREAKPOINT_NUMBERS.medium, "px)"), {
|
|
189
189
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
@@ -47,7 +47,7 @@ var itemIcon = exports.itemIcon = (0, _react2.css)({
|
|
|
47
47
|
width: "".concat(ICON_WIDTH, "px"),
|
|
48
48
|
height: "".concat(ICON_HEIGHT, "px"),
|
|
49
49
|
overflow: 'hidden',
|
|
50
|
-
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border,
|
|
50
|
+
border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
|
|
51
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
52
52
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
53
53
|
boxSizing: 'border-box',
|
|
@@ -96,6 +96,7 @@ function ElementList(_ref) {
|
|
|
96
96
|
setColumnCount((0, _utils.getColumnCount)(containerWidth));
|
|
97
97
|
var updatedScrollbarWidth = (0, _utils.getScrollbarWidth)();
|
|
98
98
|
if (updatedScrollbarWidth > 0) {
|
|
99
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-chain-state-updates -- Ignored via go/ees017 (to be fixed)
|
|
99
100
|
setScrollbarWidth(updatedScrollbarWidth);
|
|
100
101
|
}
|
|
101
102
|
}
|
|
@@ -515,8 +516,7 @@ var elementItemsWrapper = (0, _react2.css)({
|
|
|
515
516
|
padding: "var(--ds-space-025, 2px)",
|
|
516
517
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
517
518
|
'.ReactVirtualized__Grid': {
|
|
518
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
519
|
-
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-design-token-usage
|
|
519
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/no-unsafe-design-token-usage -- Ignored via go/DSP-18766
|
|
520
520
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
521
521
|
outline: 'none',
|
|
522
522
|
'&:focus': {
|
|
@@ -60,7 +60,7 @@ function EmptyState(_ref) {
|
|
|
60
60
|
}
|
|
61
61
|
var emptyStateHeading = (0, _react2.css)({
|
|
62
62
|
font: "var(--ds-font-heading-medium, normal 653 20px/24px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
63
|
-
color: "var(--ds-text,
|
|
63
|
+
color: "var(--ds-text, #292A2E)",
|
|
64
64
|
marginTop: "var(--ds-space-300, 24px)"
|
|
65
65
|
});
|
|
66
66
|
var emptyStateSubHeading = (0, _react2.css)({
|
|
@@ -164,7 +164,7 @@ var wrapperInline = (0, _react2.css)({
|
|
|
164
164
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
165
165
|
'& > [data-ds--text-field--container]': {
|
|
166
166
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
167
|
-
height: ""
|
|
167
|
+
height: "40px",
|
|
168
168
|
flex: 'none',
|
|
169
169
|
overflow: 'revert'
|
|
170
170
|
}
|
|
@@ -105,7 +105,7 @@ var searchContainer = (0, _react2.css)({
|
|
|
105
105
|
var mobileCategoryListWrapper = (0, _react2.css)({
|
|
106
106
|
display: 'flex',
|
|
107
107
|
overflowX: 'auto',
|
|
108
|
-
padding: "var(--ds-space-200,
|
|
108
|
+
padding: "var(--ds-space-200, 16px)".concat(" 0 ", "var(--ds-space-200, 16px)", " 0"),
|
|
109
109
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
110
110
|
minHeight: "".concat(_constants.GRID_SIZE * 4, "px"),
|
|
111
111
|
overflow: '-moz-scrollbars-none',
|
|
@@ -120,7 +120,7 @@ var mobileCategoryListWrapper = (0, _react2.css)({
|
|
|
120
120
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
121
121
|
var categoryListWrapper = (0, _react2.css)(mobileCategoryListWrapper, {
|
|
122
122
|
padding: 0,
|
|
123
|
-
marginTop: "var(--ds-space-200,
|
|
123
|
+
marginTop: "var(--ds-space-200, 16px)",
|
|
124
124
|
flexDirection: 'column'
|
|
125
125
|
});
|
|
126
126
|
function StatelessElementBrowser(props) {
|
|
@@ -148,10 +148,14 @@ function ExtensionWithPluginState(props) {
|
|
|
148
148
|
var extensionContentStyles = (0, _expValEquals.expValEquals)('platform_editor_extension_styles', 'isEnabled', true) ? _styles2.extensionContent : _styles2.content;
|
|
149
149
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _expValEquals.expValEquals)('cc_editor_lcm_readonly_initial', 'isEnabled', true) ? null : showLegacyContentHeader && (0, _react2.jsx)(_LegacyContentHeader.LegacyContentHeader, {
|
|
150
150
|
isNodeSelected: isNodeSelected,
|
|
151
|
-
isNodeHovered: isNodeHovered
|
|
151
|
+
isNodeHovered: isNodeHovered
|
|
152
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
153
|
+
,
|
|
152
154
|
onMouseEnter: function onMouseEnter() {
|
|
153
155
|
return handleMouseEvent(true);
|
|
154
|
-
}
|
|
156
|
+
}
|
|
157
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
158
|
+
,
|
|
155
159
|
onMouseLeave: function onMouseLeave() {
|
|
156
160
|
return handleMouseEvent(false);
|
|
157
161
|
}
|
|
@@ -249,7 +253,9 @@ var Extension = function Extension(props) {
|
|
|
249
253
|
width = _useSharedPluginState.width;
|
|
250
254
|
|
|
251
255
|
// Ignored via go/ees005
|
|
252
|
-
return (0, _react2.jsx)(ExtensionWithPluginState
|
|
256
|
+
return (0, _react2.jsx)(ExtensionWithPluginState
|
|
257
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
258
|
+
, (0, _extends2.default)({
|
|
253
259
|
widthState: {
|
|
254
260
|
width: width !== null && width !== void 0 ? width : 0,
|
|
255
261
|
lineLength: lineLength
|
|
@@ -69,7 +69,7 @@ var header = exports.header = (0, _react.css)({
|
|
|
69
69
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
70
70
|
var content = exports.content = (0, _react.css)({
|
|
71
71
|
padding: "var(--ds-space-100, 8px)",
|
|
72
|
-
background: "var(--ds-surface,
|
|
72
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
73
73
|
border: "1px solid ".concat("var(--ds-border, #0B120E24)"),
|
|
74
74
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
75
75
|
cursor: 'initial',
|
|
@@ -89,7 +89,7 @@ var extensionContent = exports.extensionContent = (0, _react.css)({
|
|
|
89
89
|
boxSizing: 'border-box',
|
|
90
90
|
paddingTop: "var(--ds-space-100, 8px)",
|
|
91
91
|
paddingBottom: "var(--ds-space-100, 8px)",
|
|
92
|
-
background: "var(--ds-surface,
|
|
92
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
93
93
|
border: "1px solid ".concat("var(--ds-border, #0B120E24)"),
|
|
94
94
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
95
95
|
cursor: 'initial',
|
|
@@ -25,7 +25,7 @@ var wrapperStyle = exports.wrapperStyle = (0, _react.css)(_styles.wrapperDefault
|
|
|
25
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
26
|
'&.with-children': {
|
|
27
27
|
padding: 0,
|
|
28
|
-
background: "var(--ds-background-neutral-subtle,
|
|
28
|
+
background: "var(--ds-background-neutral-subtle, #00000000)"
|
|
29
29
|
},
|
|
30
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
31
|
'&.with-hover-border': {
|
|
@@ -58,7 +58,7 @@ var lcmHeaderStyles = (0, _react2.css)({
|
|
|
58
58
|
},
|
|
59
59
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
60
60
|
'& > .legacy-content-header-text': {
|
|
61
|
-
font: "var(--ds-font-body-small, 12px)",
|
|
61
|
+
font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
|
|
62
62
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
63
63
|
'& span': {
|
|
64
64
|
paddingRight: "var(--ds-space-050, 4px)"
|
|
@@ -190,6 +190,7 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
190
190
|
// Ignored via go/ees005
|
|
191
191
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
192
192
|
, (0, _extends2.default)({}, i18n.configure, {
|
|
193
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
193
194
|
values: {
|
|
194
195
|
macroName: text
|
|
195
196
|
}
|
|
@@ -85,7 +85,9 @@ var Extension = exports.Extension = /*#__PURE__*/function (_Component) {
|
|
|
85
85
|
}, {
|
|
86
86
|
key: "render",
|
|
87
87
|
value: function render() {
|
|
88
|
-
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
88
|
+
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
89
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
90
|
+
, {
|
|
89
91
|
providers: ['extensionProvider'],
|
|
90
92
|
providerFactory: this.providerFactory,
|
|
91
93
|
renderNode: this.renderWithProvider
|
|
@@ -18,7 +18,7 @@ var mbeExtensionWrapperCSSStyles = exports.mbeExtensionWrapperCSSStyles = (0, _r
|
|
|
18
18
|
marginRight: "var(--ds-space-negative-150, -12px)"
|
|
19
19
|
},
|
|
20
20
|
cursor: 'pointer',
|
|
21
|
-
marginTop: "var(--ds-space-250,
|
|
21
|
+
marginTop: "var(--ds-space-250, 20px)",
|
|
22
22
|
marginBottom: "var(--ds-space-200, 16px)",
|
|
23
23
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
24
|
'.extension-title': {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
._11c81a4x{font:var(--ds-font-body-small,9pt)}
|
|
2
1
|
._11c8fhey{font:var(--ds-font-body,normal 400 14px/20px "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
2
|
+
._11c8wadc{font:var(--ds-font-body-small,normal 400 9pt/1pc "Atlassian Sans",ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Ubuntu,"Helvetica Neue",sans-serif)}
|
|
3
3
|
._19it7tl1{border:var(--_98ihdp)}
|
|
4
4
|
._2rko12b0{border-radius:var(--ds-radius-small,4px)}
|
|
5
5
|
._2rko14xi{border-radius:var(--ds-radius-small,4px) var(--ds-radius-small,4px) 0 0}
|
|
6
|
-
.
|
|
6
|
+
._n7zl1q32{border-bottom:var(--_1e0q5w0)}
|
|
7
7
|
._154i1n1a{top:-1px}
|
|
8
8
|
._18m915vq{overflow-y:hidden}
|
|
9
9
|
._18u0idpf{margin-left:0}
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
._1reo15vq{overflow-x:hidden}
|
|
15
15
|
._2hwxidpf{margin-right:0}
|
|
16
16
|
._6z24egat{tab-size:4}
|
|
17
|
+
._bfhkhp5a{background-color:var(--ds-surface-raised,#fff)}
|
|
17
18
|
._bfhki8nm{background-color:var(--ds-background-neutral,#0515240f)}
|
|
18
|
-
._bfhkrnwa{background-color:var(--ds-surface-raised,#fffdf6)}
|
|
19
19
|
._bfhkvuon{background-color:var(--ds-surface,#fff)}
|
|
20
20
|
._ca0qu2gc{padding-top:var(--ds-space-100,8px)}
|
|
21
21
|
._ca0qutpp{padding-top:var(--ds-space-150,9pt)}
|
|
@@ -36,6 +36,7 @@ function UnknownMacroPlaceholder(_ref) {
|
|
|
36
36
|
var value = String((_param$value = param === null || param === void 0 ? void 0 : param.value) !== null && _param$value !== void 0 ? _param$value : '').trim();
|
|
37
37
|
return "".concat(key, " = ").concat(value);
|
|
38
38
|
};
|
|
39
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-computations-in-render -- Ignored via go/ees017 (to be fixed)
|
|
39
40
|
var visibleParams = Object.entries(macroParams).filter(function (_ref2) {
|
|
40
41
|
var _ref3 = (0, _slicedToArray2.default)(_ref2, 1),
|
|
41
42
|
key = _ref3[0];
|
|
@@ -53,14 +54,14 @@ function UnknownMacroPlaceholder(_ref) {
|
|
|
53
54
|
});
|
|
54
55
|
return /*#__PURE__*/React.createElement("section", {
|
|
55
56
|
"aria-label": intl.formatMessage(_messages.messages.unknownMacroPlaceholderAriaLabel),
|
|
56
|
-
className: (0, _runtime.ax)(["_19it7tl1 _2rko12b0 _1reo15vq _18m915vq
|
|
57
|
+
className: (0, _runtime.ax)(["_19it7tl1 _2rko12b0 _1reo15vq _18m915vq _bfhkhp5a"]),
|
|
57
58
|
style: {
|
|
58
59
|
"--_98ihdp": (0, _runtime.ix)("1px solid ".concat(neutralBorder))
|
|
59
60
|
}
|
|
60
61
|
}, /*#__PURE__*/React.createElement("div", {
|
|
61
|
-
className: (0, _runtime.ax)(["_2rko14xi
|
|
62
|
+
className: (0, _runtime.ax)(["_2rko14xi _11c8wadc _n7zl1q32 _bfhki8nm _ca0qu2gc _u5f3pxbi _n3td1b66 _19bvpxbi _kqswh2mm _154i1n1a"]),
|
|
62
63
|
style: {
|
|
63
|
-
"--
|
|
64
|
+
"--_1e0q5w0": (0, _runtime.ix)("var(--ds-border-width, 1px)".concat(" solid ", neutralBorder))
|
|
64
65
|
}
|
|
65
66
|
}, headerText), /*#__PURE__*/React.createElement("div", {
|
|
66
67
|
className: (0, _runtime.ax)(["_19pkidpf _2hwxidpf _otyridpf _18u0idpf _bfhkvuon _ca0qutpp _u5f3utpp _n3tdutpp _19bvutpp"])
|
|
@@ -386,6 +386,7 @@ function getAriaKeyshortcuts(keymap) {
|
|
|
386
386
|
case 'arrowdown':
|
|
387
387
|
return 'Arrow Down';
|
|
388
388
|
default:
|
|
389
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
389
390
|
return modifier.split('').join(' ');
|
|
390
391
|
}
|
|
391
392
|
}).join('+');
|
|
@@ -71,6 +71,7 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
71
71
|
focusEditor();
|
|
72
72
|
}, [fireActionClickEvent, focusEditor, onConfigureClickCallback]);
|
|
73
73
|
return (0, _react2.jsx)(_dropdownMenu.default, {
|
|
74
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
74
75
|
trigger: function trigger(_ref3) {
|
|
75
76
|
var _onClick = _ref3.onClick,
|
|
76
77
|
triggerRef = _ref3.triggerRef,
|
|
@@ -83,7 +84,9 @@ var Dropdown = function Dropdown(_ref) {
|
|
|
83
84
|
iconBefore: (0, _react2.jsx)(_chevronDown.default, {
|
|
84
85
|
label: configureLinkLabel,
|
|
85
86
|
size: "small"
|
|
86
|
-
})
|
|
87
|
+
})
|
|
88
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
89
|
+
,
|
|
87
90
|
onClick: function onClick(e) {
|
|
88
91
|
_onClick === null || _onClick === void 0 || _onClick(e);
|
|
89
92
|
fireLinkClickEvent();
|
|
@@ -916,13 +916,17 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
|
|
|
916
916
|
ariaActiveDescendant: ariaActiveDescendant,
|
|
917
917
|
ariaControls: linkSearchListId,
|
|
918
918
|
ariaAutoComplete: true,
|
|
919
|
-
describedById: screenReaderDescriptionId
|
|
919
|
+
describedById: screenReaderDescriptionId
|
|
920
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
921
|
+
,
|
|
920
922
|
ref: function ref(ele) {
|
|
921
923
|
return _this3.urlInputContainer = ele;
|
|
922
924
|
},
|
|
923
925
|
testId: 'link-url',
|
|
924
926
|
onSubmit: this.handleSubmit,
|
|
925
|
-
onChange: this.updateInput
|
|
927
|
+
onChange: this.updateInput
|
|
928
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
929
|
+
,
|
|
926
930
|
autoFocus: {
|
|
927
931
|
preventScroll: true
|
|
928
932
|
},
|
|
@@ -945,7 +949,9 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
|
|
|
945
949
|
css: [inputLabel, textLabelMargin]
|
|
946
950
|
}, formatMessage(messages.textVisibleLabel)), (0, _react2.jsx)("div", {
|
|
947
951
|
css: [_ToolbarComponents.inputWrapper, inputWrapperPosition]
|
|
948
|
-
}, (0, _react2.jsx)(_ui.PanelTextInput
|
|
952
|
+
}, (0, _react2.jsx)(_ui.PanelTextInput
|
|
953
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
954
|
+
, {
|
|
949
955
|
ref: function ref(ele) {
|
|
950
956
|
return _this3.displayTextInputContainer = ele;
|
|
951
957
|
},
|
|
@@ -989,14 +995,17 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
|
|
|
989
995
|
onMouseLeave: this.handleMouseLeaveResultItem
|
|
990
996
|
})));
|
|
991
997
|
if ((0, _expValEquals.expValEquals)('platform_editor_a11y_escape_link_dialog', 'isEnabled', true)) {
|
|
992
|
-
return (
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
998
|
+
return (
|
|
999
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
1000
|
+
(0, _react2.jsx)(_reactFocusLock.default, {
|
|
1001
|
+
returnFocus: {
|
|
1002
|
+
preventScroll: true
|
|
1003
|
+
},
|
|
1004
|
+
focusOptions: {
|
|
1005
|
+
preventScroll: true
|
|
1006
|
+
}
|
|
1007
|
+
}, hyperlinkElement)
|
|
1008
|
+
);
|
|
1000
1009
|
}
|
|
1001
1010
|
return hyperlinkElement;
|
|
1002
1011
|
}
|
|
@@ -43,9 +43,13 @@ function HyperlinkAddToolbar(_ref2) {
|
|
|
43
43
|
searchSessionId = _ref2.searchSessionId,
|
|
44
44
|
timesViewed = _ref2.timesViewed,
|
|
45
45
|
isOffline = _ref2.isOffline;
|
|
46
|
-
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
46
|
+
return /*#__PURE__*/_react.default.createElement(_providerFactory.WithProviders
|
|
47
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
48
|
+
, {
|
|
47
49
|
providers: ['activityProvider', 'searchProvider'],
|
|
48
|
-
providerFactory: providerFactory
|
|
50
|
+
providerFactory: providerFactory
|
|
51
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
52
|
+
,
|
|
49
53
|
renderNode: function renderNode(_ref3) {
|
|
50
54
|
var activityProvider = _ref3.activityProvider,
|
|
51
55
|
searchProvider = _ref3.searchProvider;
|
|
@@ -58,7 +58,9 @@ var LinkSearchList = function LinkSearchList(_ref) {
|
|
|
58
58
|
return (0, _react.jsx)(_LinkSearchListItem.default, {
|
|
59
59
|
id: "link-search-list-item-".concat(index),
|
|
60
60
|
item: item,
|
|
61
|
-
selected: selectedIndex === index
|
|
61
|
+
selected: selectedIndex === index
|
|
62
|
+
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
63
|
+
,
|
|
62
64
|
onFocus: function onFocus() {
|
|
63
65
|
return _onFocus === null || _onFocus === void 0 ? void 0 : _onFocus(index);
|
|
64
66
|
},
|
|
@@ -67,7 +69,9 @@ var LinkSearchList = function LinkSearchList(_ref) {
|
|
|
67
69
|
onMouseEnter: onMouseEnter,
|
|
68
70
|
onMouseLeave: onMouseLeave,
|
|
69
71
|
onSelect: onSelect,
|
|
70
|
-
key: item.objectId
|
|
72
|
+
key: item.objectId
|
|
73
|
+
// eslint-disable-next-line @atlassian/perf-linting/detect-unnecessary-rerenders, @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
74
|
+
,
|
|
71
75
|
ref: function ref(el) {
|
|
72
76
|
return listItemRefCallback === null || listItemRefCallback === void 0 ? void 0 : listItemRefCallback(el, item.objectId);
|
|
73
77
|
}
|
|
@@ -14,7 +14,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
15
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
16
|
var _react = _interopRequireDefault(require("react"));
|
|
17
|
-
var
|
|
17
|
+
var _providerFactory2 = require("../../provider-factory");
|
|
18
18
|
var _excluded = ["providerFactory"];
|
|
19
19
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
20
20
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -31,7 +31,7 @@ function withActivityProvider(WrappedComponent) {
|
|
|
31
31
|
_this = _callSuper(this, WithActivityProvider, [].concat(args));
|
|
32
32
|
(0, _defineProperty2.default)(_this, "renderNode", function (providers) {
|
|
33
33
|
var _ref = _this.props,
|
|
34
|
-
|
|
34
|
+
_providerFactory = _ref.providerFactory,
|
|
35
35
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
36
36
|
var activityProvider = providers.activityProvider;
|
|
37
37
|
|
|
@@ -48,7 +48,9 @@ function withActivityProvider(WrappedComponent) {
|
|
|
48
48
|
key: "render",
|
|
49
49
|
value: function render() {
|
|
50
50
|
var providerFactory = this.props.providerFactory;
|
|
51
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
51
|
+
return /*#__PURE__*/_react.default.createElement(_providerFactory2.WithProviders
|
|
52
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
53
|
+
, {
|
|
52
54
|
providers: ['activityProvider'],
|
|
53
55
|
providerFactory: providerFactory,
|
|
54
56
|
renderNode: this.renderNode
|
|
@@ -28,8 +28,8 @@ var SMART_TO_ASCII = {
|
|
|
28
28
|
var FIND_SMART_CHAR = new RegExp("[".concat(Object.keys(SMART_TO_ASCII).join(''), "]"), 'g');
|
|
29
29
|
function filterChildrenBetween(doc, from, to, predicate) {
|
|
30
30
|
var results = [];
|
|
31
|
-
doc.nodesBetween(from, to, function (node, pos,
|
|
32
|
-
if (predicate(node, pos,
|
|
31
|
+
doc.nodesBetween(from, to, function (node, pos, _parent) {
|
|
32
|
+
if (predicate(node, pos, _parent)) {
|
|
33
33
|
results.push({
|
|
34
34
|
node: node,
|
|
35
35
|
pos: pos
|
|
@@ -47,7 +47,7 @@ function transformNonTextNodesToText(from, to, tr) {
|
|
|
47
47
|
emojiNodeType = _schema$nodes.emoji,
|
|
48
48
|
inlineCardNodeType = _schema$nodes.inlineCard;
|
|
49
49
|
var nodesToChange = [];
|
|
50
|
-
doc.nodesBetween(from, to, function (node, pos,
|
|
50
|
+
doc.nodesBetween(from, to, function (node, pos, _parent) {
|
|
51
51
|
if ([mentionNodeType, textNodeType, emojiNodeType, inlineCardNodeType].includes(node.type)) {
|
|
52
52
|
nodesToChange.push({
|
|
53
53
|
node: node,
|
|
@@ -70,6 +70,8 @@ function transformNonTextNodesToText(from, to, tr) {
|
|
|
70
70
|
var startPositionInSelection = Math.max(pos, from);
|
|
71
71
|
var endPositionInSelection = Math.min(pos + node.nodeSize, to);
|
|
72
72
|
var textForReplacing = doc.textBetween(startPositionInSelection, endPositionInSelection);
|
|
73
|
+
|
|
74
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-expensive-split-replace -- Ignored via go/ees017 (to be fixed)
|
|
73
75
|
var _newText = textForReplacing.replace(FIND_SMART_CHAR, function (match) {
|
|
74
76
|
var _SMART_TO_ASCII$match;
|
|
75
77
|
return (_SMART_TO_ASCII$match = SMART_TO_ASCII[match]) !== null && _SMART_TO_ASCII$match !== void 0 ? _SMART_TO_ASCII$match : match;
|
|
@@ -59,7 +59,9 @@ var InlineImageCard = exports.InlineImageCard = function InlineImageCard(_ref) {
|
|
|
59
59
|
return (0, _react2.jsx)(_react.Fragment, null, (0, _react2.jsx)(_mediaUi.MediaImage, {
|
|
60
60
|
dataURI: preview.dataURI,
|
|
61
61
|
alt: alt,
|
|
62
|
-
previewOrientation: preview.orientation
|
|
62
|
+
previewOrientation: preview.orientation
|
|
63
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
64
|
+
,
|
|
63
65
|
onImageLoad: function onImageLoad() {
|
|
64
66
|
_onImageLoad(preview);
|
|
65
67
|
},
|
|
@@ -143,7 +143,9 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
|
|
|
143
143
|
value: mediaClient
|
|
144
144
|
}, (0, _react2.jsx)(_inlineImageCard.InlineImageCard, {
|
|
145
145
|
dimensions: dimensions,
|
|
146
|
-
identifier: identifier
|
|
146
|
+
identifier: identifier
|
|
147
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
148
|
+
,
|
|
147
149
|
renderError: function renderError() {
|
|
148
150
|
return (0, _react2.jsx)(_errorView.InlineImageCardErrorView, {
|
|
149
151
|
message: formatMessage(_mediaInlineCard.messages.unableToLoadContent)
|
|
@@ -214,7 +216,9 @@ var MediaInlineImageCardInternal = exports.MediaInlineImageCardInternal = functi
|
|
|
214
216
|
var mediaViewer = (0, _react.useMemo)(function () {
|
|
215
217
|
if (isMediaViewerVisible && mediaClient !== null && mediaClient !== void 0 && mediaClient.mediaClientConfig) {
|
|
216
218
|
return /*#__PURE__*/_reactDom.default.createPortal((0, _react2.jsx)(_mediaViewer.MediaViewer, {
|
|
217
|
-
collectionName: identifier.collectionName || ''
|
|
219
|
+
collectionName: identifier.collectionName || ''
|
|
220
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
221
|
+
,
|
|
218
222
|
items: [identifier],
|
|
219
223
|
mediaClientConfig: mediaClient === null || mediaClient === void 0 ? void 0 : mediaClient.mediaClientConfig,
|
|
220
224
|
selectedItem: identifier,
|
|
@@ -78,11 +78,11 @@ var CommentBadge = exports.CommentBadge = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
78
78
|
var colourToken = (0, _react.useMemo)(function () {
|
|
79
79
|
switch (status) {
|
|
80
80
|
case 'active':
|
|
81
|
-
return "var(--ds-background-accent-yellow-subtlest-pressed, #
|
|
81
|
+
return "var(--ds-background-accent-yellow-subtlest-pressed, #EFDD4E)";
|
|
82
82
|
case 'entered':
|
|
83
|
-
return "var(--ds-background-accent-yellow-subtlest-hovered, #
|
|
83
|
+
return "var(--ds-background-accent-yellow-subtlest-hovered, #F5E989)";
|
|
84
84
|
default:
|
|
85
|
-
return "var(--ds-background-accent-yellow-subtlest, #
|
|
85
|
+
return "var(--ds-background-accent-yellow-subtlest, #FEF7C8)";
|
|
86
86
|
}
|
|
87
87
|
}, [status]);
|
|
88
88
|
return (0, _react2.jsx)("div", {
|
|
@@ -97,7 +97,9 @@ var CommentBadge = exports.CommentBadge = /*#__PURE__*/(0, _react.forwardRef)(fu
|
|
|
97
97
|
}, (0, _react2.jsx)(_tooltip.default, {
|
|
98
98
|
position: "top",
|
|
99
99
|
content: title
|
|
100
|
-
}, (0, _react2.jsx)(_customThemeButton.default
|
|
100
|
+
}, (0, _react2.jsx)(_customThemeButton.default
|
|
101
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
102
|
+
, {
|
|
101
103
|
style: {
|
|
102
104
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
103
105
|
height: badgeDimensions,
|
|
@@ -43,7 +43,9 @@ var CommentBadgeNext = exports.CommentBadgeNext = function CommentBadgeNext(_ref
|
|
|
43
43
|
return /*#__PURE__*/_react.default.createElement(_tooltip.default, {
|
|
44
44
|
position: "top",
|
|
45
45
|
content: title
|
|
46
|
-
}, /*#__PURE__*/_react.default.createElement(_primitives.Pressable
|
|
46
|
+
}, /*#__PURE__*/_react.default.createElement(_primitives.Pressable
|
|
47
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
48
|
+
, {
|
|
47
49
|
xcss: [baseStyles, mediumBadgeStyles],
|
|
48
50
|
padding: "space.0",
|
|
49
51
|
onClick: onClick,
|
|
@@ -91,7 +91,9 @@ var MediaBadges = exports.MediaBadges = function MediaBadges(_ref) {
|
|
|
91
91
|
as: "div",
|
|
92
92
|
testId: "media-badges",
|
|
93
93
|
"data-media-badges": "true",
|
|
94
|
-
contentEditable: false
|
|
94
|
+
contentEditable: false
|
|
95
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
96
|
+
,
|
|
95
97
|
xcss: [containerStyles, useMinimumZIndex && hackedZIndexStyles, extendedResizeOffset && resizeOffsetStyles]
|
|
96
98
|
}, children);
|
|
97
99
|
};
|
|
@@ -19,7 +19,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
19
19
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
20
20
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
21
21
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
22
|
-
var packageVersion = "112.7.
|
|
22
|
+
var packageVersion = "112.7.4";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|