@atlaskit/editor-common 112.20.3 → 112.21.1
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 +26 -0
- package/dist/cjs/ai-messages/ai-suggestions.js +25 -0
- package/dist/cjs/copy-button/index.js +1 -2
- package/dist/cjs/keymaps/index.js +4 -5
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/resizer/BreakoutResizer.js +1 -2
- package/dist/cjs/styles/shared/table.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/PanelTextInput/index.js +2 -3
- package/dist/es2019/ai-messages/ai-suggestions.js +25 -0
- package/dist/es2019/copy-button/index.js +2 -3
- package/dist/es2019/keymaps/index.js +5 -6
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/resizer/BreakoutResizer.js +2 -3
- package/dist/es2019/styles/shared/table.js +2 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/PanelTextInput/index.js +3 -4
- package/dist/esm/ai-messages/ai-suggestions.js +25 -0
- package/dist/esm/copy-button/index.js +2 -3
- package/dist/esm/keymaps/index.js +5 -6
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/resizer/BreakoutResizer.js +2 -3
- package/dist/esm/styles/shared/table.js +2 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/PanelTextInput/index.js +3 -4
- package/dist/types/ai-messages/ai-suggestions.d.ts +25 -0
- package/dist/types/analytics/types/insert-events.d.ts +5 -0
- package/dist/types/styles/shared/table.d.ts +16 -16
- package/dist/types-ts4.5/ai-messages/ai-suggestions.d.ts +25 -0
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +5 -0
- package/dist/types-ts4.5/styles/shared/table.d.ts +16 -16
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 112.21.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`ef22944bdbbdf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/ef22944bdbbdf) -
|
|
8
|
+
Migrate smart link visited analytics from UI event to track event. The `ui.smartLink.visited`
|
|
9
|
+
event has been replaced with `track.smartLink.visited` to better capture engagement metrics for
|
|
10
|
+
smart links. This change is gated behind the `cc_integrations_editor_open_link_click_analytics`
|
|
11
|
+
feature flag and includes additional attributes (displayCategory, extensionKey, status,
|
|
12
|
+
statusDetails) when the flag is enabled.
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 112.21.0
|
|
16
|
+
|
|
17
|
+
### Minor Changes
|
|
18
|
+
|
|
19
|
+
- [`4f84bfcb00893`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4f84bfcb00893) -
|
|
20
|
+
EDITOR-6370: Various UI improvements such as tooltips, scrollIntoView, stack styles etc.
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
|
|
25
|
+
Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
|
|
26
|
+
rolled out
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 112.20.3
|
|
4
30
|
|
|
5
31
|
### Patch Changes
|
|
@@ -61,6 +61,11 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntlNext.d
|
|
|
61
61
|
defaultMessage: 'Loading…',
|
|
62
62
|
description: 'Label for the fetch suggestions button when loading'
|
|
63
63
|
},
|
|
64
|
+
iconButtonSuggestionsCountLabel: {
|
|
65
|
+
id: 'fabric.editor.ai.suggestions.iconButton.suggestionsCountLabel.non-final',
|
|
66
|
+
defaultMessage: '{count} suggestions',
|
|
67
|
+
description: 'Tooltip text for the suggestion icon button when there are multiple AI suggestions'
|
|
68
|
+
},
|
|
64
69
|
fetchGenerateFromDocument: {
|
|
65
70
|
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromDocument.non-final',
|
|
66
71
|
defaultMessage: 'Suggested edits (generate)',
|
|
@@ -111,6 +116,26 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntlNext.d
|
|
|
111
116
|
defaultMessage: 'Private',
|
|
112
117
|
description: 'Label for the private/lock indicator on the AI suggestions card'
|
|
113
118
|
},
|
|
119
|
+
cardPrivateTooltipLabel: {
|
|
120
|
+
id: 'fabric.editor.ai.suggestions.card.privateTooltipLabel.non-final',
|
|
121
|
+
defaultMessage: 'Only you and those with access to the sources can see this private suggestion.',
|
|
122
|
+
description: 'Tooltip shown on the private indicator icon in the AI suggestions card'
|
|
123
|
+
},
|
|
124
|
+
cardSourcesButtonLabel: {
|
|
125
|
+
id: 'fabric.editor.ai.suggestions.card.sourcesButtonLabel.non-final',
|
|
126
|
+
defaultMessage: 'Sources',
|
|
127
|
+
description: 'Label for the sources toggle button on the AI suggestions card'
|
|
128
|
+
},
|
|
129
|
+
cardSourcesHideButtonLabel: {
|
|
130
|
+
id: 'fabric.editor.ai.suggestions.card.sourcesHideButtonLabel.non-final',
|
|
131
|
+
defaultMessage: 'Hide sources',
|
|
132
|
+
description: 'Label for the sources toggle button when sources are expanded'
|
|
133
|
+
},
|
|
134
|
+
cardSourcesShowButtonLabel: {
|
|
135
|
+
id: 'fabric.editor.ai.suggestions.card.sourcesShowButtonLabel.non-final',
|
|
136
|
+
defaultMessage: 'Show sources',
|
|
137
|
+
description: 'Label for the sources toggle button when sources are collapsed'
|
|
138
|
+
},
|
|
114
139
|
cardAcceptButtonLabel: {
|
|
115
140
|
id: 'fabric.editor.ai.suggestions.card.acceptButtonLabel.non-final',
|
|
116
141
|
defaultMessage: 'Accept',
|
|
@@ -9,7 +9,6 @@ exports.toDOM = void 0;
|
|
|
9
9
|
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
10
10
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
11
11
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
12
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
13
12
|
var _clipboard = require("../clipboard");
|
|
14
13
|
var _browser = require("../utils/browser");
|
|
15
14
|
function getSelectedNodeOrNodeParentByNodeType(_ref) {
|
|
@@ -29,7 +28,7 @@ var copyDomNode = exports.copyDomNode = function copyDomNode(domNode, nodeType,
|
|
|
29
28
|
var div = document.createElement('div');
|
|
30
29
|
div.appendChild(domNode);
|
|
31
30
|
var schema = selection.$from.doc.type.schema;
|
|
32
|
-
var browser = (0,
|
|
31
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
33
32
|
|
|
34
33
|
// if copying inline content
|
|
35
34
|
if (nodeType.inlineContent) {
|
|
@@ -110,7 +110,6 @@ var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
|
110
110
|
var _react = _interopRequireWildcard(require("react"));
|
|
111
111
|
var _react2 = require("@emotion/react");
|
|
112
112
|
var _w3cKeyname = require("w3c-keyname");
|
|
113
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
114
113
|
var _editorCommands = require("../preset/editor-commands");
|
|
115
114
|
var _browser = require("../utils/browser");
|
|
116
115
|
var _consts = require("./consts");
|
|
@@ -257,7 +256,7 @@ var tooltipShortcutStyle = (0, _react2.css)({
|
|
|
257
256
|
});
|
|
258
257
|
function formatShortcut(keymap) {
|
|
259
258
|
var shortcut;
|
|
260
|
-
var browser = (0,
|
|
259
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
261
260
|
if (browser.mac) {
|
|
262
261
|
// for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
|
|
263
262
|
shortcut = keymap.mac
|
|
@@ -347,7 +346,7 @@ function findShortcutByDescription(description) {
|
|
|
347
346
|
return;
|
|
348
347
|
}
|
|
349
348
|
function findShortcutByKeymap(keymap) {
|
|
350
|
-
var browser = (0,
|
|
349
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
351
350
|
if (browser.mac) {
|
|
352
351
|
return keymap.mac;
|
|
353
352
|
}
|
|
@@ -355,7 +354,7 @@ function findShortcutByKeymap(keymap) {
|
|
|
355
354
|
}
|
|
356
355
|
function getAriaKeyshortcuts(keymap) {
|
|
357
356
|
var keyShortcuts;
|
|
358
|
-
var browser = (0,
|
|
357
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
359
358
|
if (typeof keymap === 'string') {
|
|
360
359
|
keyShortcuts = keymap;
|
|
361
360
|
} else if ((0, _typeof2.default)(keymap) === 'object') {
|
|
@@ -447,7 +446,7 @@ function bindKeymapWithEditorCommand(shortcut, cmd, keymap) {
|
|
|
447
446
|
}
|
|
448
447
|
function findKeyMapForBrowser(keyMap) {
|
|
449
448
|
if (keyMap) {
|
|
450
|
-
var browser = (0,
|
|
449
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
451
450
|
if (browser.mac) {
|
|
452
451
|
return keyMap.mac;
|
|
453
452
|
}
|
|
@@ -882,7 +882,7 @@ var HyperlinkLinkAddToolbar = exports.HyperlinkLinkAddToolbar = /*#__PURE__*/fun
|
|
|
882
882
|
var ariaActiveDescendant = selectedIndex > -1 ? "link-search-list-item-".concat(selectedIndex) : '';
|
|
883
883
|
var linkSearchInputId = 'search-recent-links-field-id';
|
|
884
884
|
var displayTextInputId = 'display-text-filed-id';
|
|
885
|
-
var browser = (0,
|
|
885
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
886
886
|
// Added workaround with a screen reader Announcer specifically for VoiceOver + Safari
|
|
887
887
|
// as the Aria design pattern for combobox does not work in this case
|
|
888
888
|
// for details: https://a11y-internal.atlassian.net/browse/AK-740
|
|
@@ -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.
|
|
22
|
+
var packageVersion = "112.21.0";
|
|
23
23
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
24
24
|
// Remove URL as it has UGC
|
|
25
25
|
// Ignored via go/ees007
|
|
@@ -11,7 +11,6 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
11
11
|
var _bindEventListener = require("bind-event-listener");
|
|
12
12
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
13
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
15
14
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
15
|
var _analytics = require("../analytics");
|
|
17
16
|
var _styles = require("../styles");
|
|
@@ -134,7 +133,7 @@ var BreakoutResizer = exports.BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
134
133
|
currentLayout = _useBreakoutGuideline.currentLayout,
|
|
135
134
|
guidelines = _useBreakoutGuideline.guidelines,
|
|
136
135
|
setCurrentWidth = _useBreakoutGuideline.setCurrentWidth;
|
|
137
|
-
var browser = (0,
|
|
136
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
138
137
|
(0, _react.useEffect)(function () {
|
|
139
138
|
if (displayGuidelines) {
|
|
140
139
|
displayGuidelines(guidelines || []);
|
|
@@ -64,7 +64,7 @@ var firstNodeWithNotMarginTop = function firstNodeWithNotMarginTop() {
|
|
|
64
64
|
(0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t> :first-child:not(style),\n\t\t\t\t> style:first-child + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\t\t\t"])));
|
|
65
65
|
};
|
|
66
66
|
var tableSharedStyle = exports.tableSharedStyle = function tableSharedStyle() {
|
|
67
|
-
var browser = (0,
|
|
67
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
68
68
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Appears safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing
|
|
69
69
|
return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t", "\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tmargin: 0 auto ", ";\n\t\t\tbox-sizing: border-box;\n\n\t\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t\t.", ",\n\t\t\t\t.", " {\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 1px;\n\t\t\t\theight: calc(100% - ", ");\n\t\t\t\tbackground: ", ";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t}\n\t\t\t.", " {\n\t\t\t\tright: 0;\n\t\t\t}\n\t\t\t.", " {\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t\t.", "[data-with-numbered-table='true'] {\n\t\t\t\tleft: ", "px;\n\t\t\t}\n\t\t}\n\t\t.", "[data-number-column='true'] {\n\t\t\tpadding-left: ", "px;\n\t\t\tclear: both;\n\t\t}\n\n\t\t.", " {\n\t\t\twill-change: width, margin-left;\n\t\t}\n\n\t\t.", " table {\n\t\t\twill-change: width;\n\t\t}\n\n\t\t.", " > table {\n\t\t\tmargin: ", " 0 0 0;\n\t\t}\n\n\t\t.", " > table,\n\t\t.", " > table {\n\t\t\tmargin: ", " ", " 0 0;\n\t\t}\n\n\t\t/* support panel nested in table */\n\t\t", "\n\n\t\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\t\tborder-collapse: collapse;\n\t\t\tborder: ", "px solid ", ";\n\t\t\tborder-left-color: transparent;\n\t\t\tborder-right-color: transparent;\n\t\t\ttable-layout: fixed;\n\t\t\tfont-size: 1em;\n\t\t\twidth: 100%;\n\n\t\t\t&[data-autosize='true'] {\n\t\t\t\ttable-layout: auto;\n\t\t\t}\n\n\t\t\t& {\n\t\t\t\t* {\n\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t}\n\t\t\t\thr {\n\t\t\t\t\tbox-sizing: content-box;\n\t\t\t\t}\n\n\t\t\t\ttbody {\n\t\t\t\t\tborder-bottom: none;\n\t\t\t\t}\n\t\t\t\tth td {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t}\n\n\t\t\t\t> tbody > tr > th,\n\t\t\t\t> tbody > tr > td {\n\t\t\t\t\tmin-width: ", "px;\n\t\t\t\t\tfont-weight: ", ";\n\t\t\t\t\tvertical-align: top;\n\t\t\t\t\tborder: 1px solid ", ";\n\t\t\t\t\tborder-right-width: 0;\n\t\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\t\tpadding: ", ";\n\t\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t\t", "\n\n\t\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/* Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected */\n\t\t\t\t> tbody > tr > td {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t}\n\n\t\t\t\tth {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\ttext-align: left;\n\n\t\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t\t", " {\n\t\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t\t/* selector lives inside @atlaskit/code */\n\t\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t"])), (0, _tableCell.tableCellBackgroundStyleOverride)(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_RIGHT_BORDER, TableSharedCssClassName.TABLE_LEFT_BORDER, "var(--ds-space-300, 24px)", "var(--ds-background-accent-gray-subtler, #DDDEE1)", "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_RIGHT_BORDER, TableSharedCssClassName.TABLE_LEFT_BORDER, TableSharedCssClassName.TABLE_LEFT_BORDER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", (0, _platformFeatureFlags.fg)('platform_editor_bordered_panel_nested_in_table') ? ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " .ak-editor-panel {\n\t\t\tborder: ", "var(--ds-border-width, 1px)", " solid ", "var(--ds-border, #0B120E24)", ";\n\t\t}") : '', TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, #DDDEE1)", "var(--ds-background-neutral-subtle, #00000000)", tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, #DDDEE1)", "var(--ds-space-100, 8px)", browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", "var(--ds-surface, #FFFFFF)", "var(--ds-background-accent-gray-subtlest, #F0F1F2)", (0, _expValEquals.expValEquals)('platform_editor_native_anchor_with_dnd', 'isEnabled', true) ? '&:not(.danger)' : '&:not([style]):not(.danger)', _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border, #0B120E24)", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, (0, _editorSharedStyles.overflowShadow)({
|
|
70
70
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "112.
|
|
27
|
+
var packageVersion = "112.21.0";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -14,7 +14,6 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = require("react");
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
18
17
|
var _browser = require("../../utils/browser");
|
|
19
18
|
var _styles = require("./styles");
|
|
20
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)); }
|
|
@@ -174,7 +173,7 @@ var PanelTextInput = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
174
173
|
// Ignored via go/ees005
|
|
175
174
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
176
175
|
function isUndoEvent(event) {
|
|
177
|
-
var browser = (0,
|
|
176
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
178
177
|
return event.keyCode === KeyZCode && (
|
|
179
178
|
// cmd + z for mac
|
|
180
179
|
browser.mac && event.metaKey && !event.shiftKey ||
|
|
@@ -187,7 +186,7 @@ var PanelTextInput = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
187
186
|
}, {
|
|
188
187
|
key: "isRedoEvent",
|
|
189
188
|
value: function isRedoEvent(event) {
|
|
190
|
-
var browser = (0,
|
|
189
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
191
190
|
return (
|
|
192
191
|
// ctrl + y for non-mac
|
|
193
192
|
!browser.mac && event.ctrlKey && event.keyCode === KeyYCode || browser.mac && event.metaKey && event.shiftKey && event.keyCode === KeyZCode || event.ctrlKey && event.shiftKey && event.keyCode === KeyZCode
|
|
@@ -55,6 +55,11 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
55
55
|
defaultMessage: 'Loading…',
|
|
56
56
|
description: 'Label for the fetch suggestions button when loading'
|
|
57
57
|
},
|
|
58
|
+
iconButtonSuggestionsCountLabel: {
|
|
59
|
+
id: 'fabric.editor.ai.suggestions.iconButton.suggestionsCountLabel.non-final',
|
|
60
|
+
defaultMessage: '{count} suggestions',
|
|
61
|
+
description: 'Tooltip text for the suggestion icon button when there are multiple AI suggestions'
|
|
62
|
+
},
|
|
58
63
|
fetchGenerateFromDocument: {
|
|
59
64
|
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromDocument.non-final',
|
|
60
65
|
defaultMessage: 'Suggested edits (generate)',
|
|
@@ -105,6 +110,26 @@ export const aiSuggestionsMessages = defineMessages({
|
|
|
105
110
|
defaultMessage: 'Private',
|
|
106
111
|
description: 'Label for the private/lock indicator on the AI suggestions card'
|
|
107
112
|
},
|
|
113
|
+
cardPrivateTooltipLabel: {
|
|
114
|
+
id: 'fabric.editor.ai.suggestions.card.privateTooltipLabel.non-final',
|
|
115
|
+
defaultMessage: 'Only you and those with access to the sources can see this private suggestion.',
|
|
116
|
+
description: 'Tooltip shown on the private indicator icon in the AI suggestions card'
|
|
117
|
+
},
|
|
118
|
+
cardSourcesButtonLabel: {
|
|
119
|
+
id: 'fabric.editor.ai.suggestions.card.sourcesButtonLabel.non-final',
|
|
120
|
+
defaultMessage: 'Sources',
|
|
121
|
+
description: 'Label for the sources toggle button on the AI suggestions card'
|
|
122
|
+
},
|
|
123
|
+
cardSourcesHideButtonLabel: {
|
|
124
|
+
id: 'fabric.editor.ai.suggestions.card.sourcesHideButtonLabel.non-final',
|
|
125
|
+
defaultMessage: 'Hide sources',
|
|
126
|
+
description: 'Label for the sources toggle button when sources are expanded'
|
|
127
|
+
},
|
|
128
|
+
cardSourcesShowButtonLabel: {
|
|
129
|
+
id: 'fabric.editor.ai.suggestions.card.sourcesShowButtonLabel.non-final',
|
|
130
|
+
defaultMessage: 'Show sources',
|
|
131
|
+
description: 'Label for the sources toggle button when sources are collapsed'
|
|
132
|
+
},
|
|
108
133
|
cardAcceptButtonLabel: {
|
|
109
134
|
id: 'fabric.editor.ai.suggestions.card.acceptButtonLabel.non-final',
|
|
110
135
|
defaultMessage: 'Accept',
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { copyHTMLToClipboard, copyHTMLToClipboardPolyfill } from '../clipboard';
|
|
6
|
-
import {
|
|
5
|
+
import { getBrowserInfo } from '../utils/browser';
|
|
7
6
|
export function getSelectedNodeOrNodeParentByNodeType({
|
|
8
7
|
nodeType,
|
|
9
8
|
selection
|
|
@@ -22,7 +21,7 @@ export const copyDomNode = (domNode, nodeType, selection) => {
|
|
|
22
21
|
const div = document.createElement('div');
|
|
23
22
|
div.appendChild(domNode);
|
|
24
23
|
const schema = selection.$from.doc.type.schema;
|
|
25
|
-
const browser =
|
|
24
|
+
const browser = getBrowserInfo();
|
|
26
25
|
|
|
27
26
|
// if copying inline content
|
|
28
27
|
if (nodeType.inlineContent) {
|
|
@@ -7,9 +7,8 @@ import React, { Fragment } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { base, keyName } from 'w3c-keyname';
|
|
10
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
11
10
|
import { editorCommandToPMCommand } from '../preset/editor-commands';
|
|
12
|
-
import {
|
|
11
|
+
import { getBrowserInfo } from '../utils/browser';
|
|
13
12
|
export const addAltText = makeKeyMapWithCommon('Add Alt Text', 'Mod-Alt-y');
|
|
14
13
|
export const toggleViewChanges = makeKeyMapWithCommon('View changes', 'Mod-Alt-z');
|
|
15
14
|
export const navToEditorToolbar = makeKeyMapWithCommon('Navigate to editor toolbar', 'Alt-F9');
|
|
@@ -144,7 +143,7 @@ const tooltipShortcutStyle = css({
|
|
|
144
143
|
});
|
|
145
144
|
export function formatShortcut(keymap) {
|
|
146
145
|
let shortcut;
|
|
147
|
-
const browser =
|
|
146
|
+
const browser = getBrowserInfo();
|
|
148
147
|
if (browser.mac) {
|
|
149
148
|
// for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
|
|
150
149
|
shortcut = keymap.mac
|
|
@@ -231,7 +230,7 @@ export function findShortcutByDescription(description) {
|
|
|
231
230
|
return;
|
|
232
231
|
}
|
|
233
232
|
export function findShortcutByKeymap(keymap) {
|
|
234
|
-
const browser =
|
|
233
|
+
const browser = getBrowserInfo();
|
|
235
234
|
if (browser.mac) {
|
|
236
235
|
return keymap.mac;
|
|
237
236
|
}
|
|
@@ -239,7 +238,7 @@ export function findShortcutByKeymap(keymap) {
|
|
|
239
238
|
}
|
|
240
239
|
export function getAriaKeyshortcuts(keymap) {
|
|
241
240
|
let keyShortcuts;
|
|
242
|
-
const browser =
|
|
241
|
+
const browser = getBrowserInfo();
|
|
243
242
|
if (typeof keymap === 'string') {
|
|
244
243
|
keyShortcuts = keymap;
|
|
245
244
|
} else if (typeof keymap === 'object') {
|
|
@@ -331,7 +330,7 @@ export function bindKeymapWithEditorCommand(shortcut, cmd, keymap) {
|
|
|
331
330
|
}
|
|
332
331
|
export function findKeyMapForBrowser(keyMap) {
|
|
333
332
|
if (keyMap) {
|
|
334
|
-
const browser =
|
|
333
|
+
const browser = getBrowserInfo();
|
|
335
334
|
if (browser.mac) {
|
|
336
335
|
return keyMap.mac;
|
|
337
336
|
}
|
|
@@ -24,7 +24,7 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
24
24
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '../../../analytics';
|
|
25
25
|
import { Announcer, PanelTextInput } from '../../../ui';
|
|
26
26
|
import { normalizeUrl } from '../../../utils';
|
|
27
|
-
import {
|
|
27
|
+
import { getBrowserInfo } from '../../../utils/browser';
|
|
28
28
|
import LinkSearchList from '../../LinkSearch/LinkSearchList';
|
|
29
29
|
import { container, narrowContainerWidth, inputWrapper } from '../../LinkSearch/ToolbarComponents';
|
|
30
30
|
import { transformTimeStamp } from '../../LinkSearch/transformTimeStamp';
|
|
@@ -736,7 +736,7 @@ export class HyperlinkLinkAddToolbar extends PureComponent {
|
|
|
736
736
|
const ariaActiveDescendant = selectedIndex > -1 ? `link-search-list-item-${selectedIndex}` : '';
|
|
737
737
|
const linkSearchInputId = 'search-recent-links-field-id';
|
|
738
738
|
const displayTextInputId = 'display-text-filed-id';
|
|
739
|
-
const browser =
|
|
739
|
+
const browser = getBrowserInfo();
|
|
740
740
|
// Added workaround with a screen reader Announcer specifically for VoiceOver + Safari
|
|
741
741
|
// as the Aria design pattern for combobox does not work in this case
|
|
742
742
|
// for details: https://a11y-internal.atlassian.net/browse/AK-740
|
|
@@ -4,7 +4,7 @@ import { isFedRamp } from './environment';
|
|
|
4
4
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
5
5
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
6
6
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
7
|
-
const packageVersion = "112.
|
|
7
|
+
const packageVersion = "112.21.0";
|
|
8
8
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
9
9
|
// Remove URL as it has UGC
|
|
10
10
|
// Ignored via go/ees007
|
|
@@ -2,11 +2,10 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
|
|
|
2
2
|
import { bind, bindAll } from 'bind-event-listener';
|
|
3
3
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
6
5
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
6
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
8
7
|
import { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '../styles';
|
|
9
|
-
import {
|
|
8
|
+
import { getBrowserInfo } from '../utils/browser';
|
|
10
9
|
import Resizer from './Resizer';
|
|
11
10
|
import { ResizerBreakoutModeLabel } from './ResizerBreakoutModeLabel';
|
|
12
11
|
import { SNAP_GAP, useBreakoutGuidelines } from './useBreakoutGuidelines';
|
|
@@ -123,7 +122,7 @@ const BreakoutResizer = ({
|
|
|
123
122
|
guidelines,
|
|
124
123
|
setCurrentWidth
|
|
125
124
|
} = useBreakoutGuidelines(getEditorWidth, isResizing && editorExperiment('single_column_layouts', true), dynamicFullWidthGuidelineOffset);
|
|
126
|
-
const browser =
|
|
125
|
+
const browser = getBrowserInfo();
|
|
127
126
|
useEffect(() => {
|
|
128
127
|
if (displayGuidelines) {
|
|
129
128
|
displayGuidelines(guidelines || []);
|
|
@@ -5,7 +5,7 @@ import { tableCellContentDomSelector, tableCellSelector, tableHeaderSelector, ta
|
|
|
5
5
|
import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorSelectedNodeClassName, akEditorTableNumberColumnWidth, akEditorWideLayoutWidth, overflowShadow } from '@atlaskit/editor-shared-styles';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
7
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
|
-
import {
|
|
8
|
+
import { getBrowserInfo } from '../../utils/browser';
|
|
9
9
|
import { CodeBlockSharedCssClassName } from './code-block';
|
|
10
10
|
import { tableCellBackgroundStyleOverride } from './tableCell';
|
|
11
11
|
export const tableMarginTop = 24;
|
|
@@ -74,7 +74,7 @@ css`
|
|
|
74
74
|
}
|
|
75
75
|
`;
|
|
76
76
|
const tableSharedStyle = () => {
|
|
77
|
-
const browser =
|
|
77
|
+
const browser = getBrowserInfo();
|
|
78
78
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Appears safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing
|
|
79
79
|
return css`
|
|
80
80
|
${tableCellBackgroundStyleOverride()}
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "112.
|
|
17
|
+
const packageVersion = "112.21.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
const fadeIn = keyframes({
|
|
@@ -8,8 +8,7 @@ import { PureComponent } from 'react';
|
|
|
8
8
|
|
|
9
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
10
10
|
import { jsx } from '@emotion/react';
|
|
11
|
-
import {
|
|
12
|
-
import { browser as browserLegacy, getBrowserInfo } from '../../utils/browser';
|
|
11
|
+
import { getBrowserInfo } from '../../utils/browser';
|
|
13
12
|
import { panelTextInput, panelTextInputWithCustomWidth } from './styles';
|
|
14
13
|
const KeyZCode = 90;
|
|
15
14
|
const KeyYCode = 89;
|
|
@@ -158,7 +157,7 @@ export default class PanelTextInput extends PureComponent {
|
|
|
158
157
|
// Ignored via go/ees005
|
|
159
158
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
160
159
|
isUndoEvent(event) {
|
|
161
|
-
const browser =
|
|
160
|
+
const browser = getBrowserInfo();
|
|
162
161
|
return event.keyCode === KeyZCode && (
|
|
163
162
|
// cmd + z for mac
|
|
164
163
|
browser.mac && event.metaKey && !event.shiftKey ||
|
|
@@ -169,7 +168,7 @@ export default class PanelTextInput extends PureComponent {
|
|
|
169
168
|
// Ignored via go/ees005
|
|
170
169
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
171
170
|
isRedoEvent(event) {
|
|
172
|
-
const browser =
|
|
171
|
+
const browser = getBrowserInfo();
|
|
173
172
|
return (
|
|
174
173
|
// ctrl + y for non-mac
|
|
175
174
|
!browser.mac && event.ctrlKey && event.keyCode === KeyYCode || browser.mac && event.metaKey && event.shiftKey && event.keyCode === KeyZCode || event.ctrlKey && event.shiftKey && event.keyCode === KeyZCode
|
|
@@ -55,6 +55,11 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
55
55
|
defaultMessage: 'Loading…',
|
|
56
56
|
description: 'Label for the fetch suggestions button when loading'
|
|
57
57
|
},
|
|
58
|
+
iconButtonSuggestionsCountLabel: {
|
|
59
|
+
id: 'fabric.editor.ai.suggestions.iconButton.suggestionsCountLabel.non-final',
|
|
60
|
+
defaultMessage: '{count} suggestions',
|
|
61
|
+
description: 'Tooltip text for the suggestion icon button when there are multiple AI suggestions'
|
|
62
|
+
},
|
|
58
63
|
fetchGenerateFromDocument: {
|
|
59
64
|
id: 'fabric.editor.ai.suggestions.quickInsert.generateFromDocument.non-final',
|
|
60
65
|
defaultMessage: 'Suggested edits (generate)',
|
|
@@ -105,6 +110,26 @@ export var aiSuggestionsMessages = defineMessages({
|
|
|
105
110
|
defaultMessage: 'Private',
|
|
106
111
|
description: 'Label for the private/lock indicator on the AI suggestions card'
|
|
107
112
|
},
|
|
113
|
+
cardPrivateTooltipLabel: {
|
|
114
|
+
id: 'fabric.editor.ai.suggestions.card.privateTooltipLabel.non-final',
|
|
115
|
+
defaultMessage: 'Only you and those with access to the sources can see this private suggestion.',
|
|
116
|
+
description: 'Tooltip shown on the private indicator icon in the AI suggestions card'
|
|
117
|
+
},
|
|
118
|
+
cardSourcesButtonLabel: {
|
|
119
|
+
id: 'fabric.editor.ai.suggestions.card.sourcesButtonLabel.non-final',
|
|
120
|
+
defaultMessage: 'Sources',
|
|
121
|
+
description: 'Label for the sources toggle button on the AI suggestions card'
|
|
122
|
+
},
|
|
123
|
+
cardSourcesHideButtonLabel: {
|
|
124
|
+
id: 'fabric.editor.ai.suggestions.card.sourcesHideButtonLabel.non-final',
|
|
125
|
+
defaultMessage: 'Hide sources',
|
|
126
|
+
description: 'Label for the sources toggle button when sources are expanded'
|
|
127
|
+
},
|
|
128
|
+
cardSourcesShowButtonLabel: {
|
|
129
|
+
id: 'fabric.editor.ai.suggestions.card.sourcesShowButtonLabel.non-final',
|
|
130
|
+
defaultMessage: 'Show sources',
|
|
131
|
+
description: 'Label for the sources toggle button when sources are collapsed'
|
|
132
|
+
},
|
|
108
133
|
cardAcceptButtonLabel: {
|
|
109
134
|
id: 'fabric.editor.ai.suggestions.card.acceptButtonLabel.non-final',
|
|
110
135
|
defaultMessage: 'Accept',
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { DOMSerializer } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { findParentNodeOfType, findSelectedNodeOfType } from '@atlaskit/editor-prosemirror/utils';
|
|
4
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
5
4
|
import { copyHTMLToClipboard, copyHTMLToClipboardPolyfill } from '../clipboard';
|
|
6
|
-
import {
|
|
5
|
+
import { getBrowserInfo } from '../utils/browser';
|
|
7
6
|
export function getSelectedNodeOrNodeParentByNodeType(_ref) {
|
|
8
7
|
var nodeType = _ref.nodeType,
|
|
9
8
|
selection = _ref.selection;
|
|
@@ -21,7 +20,7 @@ export var copyDomNode = function copyDomNode(domNode, nodeType, selection) {
|
|
|
21
20
|
var div = document.createElement('div');
|
|
22
21
|
div.appendChild(domNode);
|
|
23
22
|
var schema = selection.$from.doc.type.schema;
|
|
24
|
-
var browser =
|
|
23
|
+
var browser = getBrowserInfo();
|
|
25
24
|
|
|
26
25
|
// if copying inline content
|
|
27
26
|
if (nodeType.inlineContent) {
|
|
@@ -8,9 +8,8 @@ import React, { Fragment } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { base, keyName } from 'w3c-keyname';
|
|
11
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
12
11
|
import { editorCommandToPMCommand } from '../preset/editor-commands';
|
|
13
|
-
import {
|
|
12
|
+
import { getBrowserInfo } from '../utils/browser';
|
|
14
13
|
export var addAltText = makeKeyMapWithCommon('Add Alt Text', 'Mod-Alt-y');
|
|
15
14
|
export var toggleViewChanges = makeKeyMapWithCommon('View changes', 'Mod-Alt-z');
|
|
16
15
|
export var navToEditorToolbar = makeKeyMapWithCommon('Navigate to editor toolbar', 'Alt-F9');
|
|
@@ -145,7 +144,7 @@ var tooltipShortcutStyle = css({
|
|
|
145
144
|
});
|
|
146
145
|
export function formatShortcut(keymap) {
|
|
147
146
|
var shortcut;
|
|
148
|
-
var browser =
|
|
147
|
+
var browser = getBrowserInfo();
|
|
149
148
|
if (browser.mac) {
|
|
150
149
|
// for reference: https://wincent.com/wiki/Unicode_representations_of_modifier_keys
|
|
151
150
|
shortcut = keymap.mac
|
|
@@ -235,7 +234,7 @@ export function findShortcutByDescription(description) {
|
|
|
235
234
|
return;
|
|
236
235
|
}
|
|
237
236
|
export function findShortcutByKeymap(keymap) {
|
|
238
|
-
var browser =
|
|
237
|
+
var browser = getBrowserInfo();
|
|
239
238
|
if (browser.mac) {
|
|
240
239
|
return keymap.mac;
|
|
241
240
|
}
|
|
@@ -243,7 +242,7 @@ export function findShortcutByKeymap(keymap) {
|
|
|
243
242
|
}
|
|
244
243
|
export function getAriaKeyshortcuts(keymap) {
|
|
245
244
|
var keyShortcuts;
|
|
246
|
-
var browser =
|
|
245
|
+
var browser = getBrowserInfo();
|
|
247
246
|
if (typeof keymap === 'string') {
|
|
248
247
|
keyShortcuts = keymap;
|
|
249
248
|
} else if (_typeof(keymap) === 'object') {
|
|
@@ -335,7 +334,7 @@ export function bindKeymapWithEditorCommand(shortcut, cmd, keymap) {
|
|
|
335
334
|
}
|
|
336
335
|
export function findKeyMapForBrowser(keyMap) {
|
|
337
336
|
if (keyMap) {
|
|
338
|
-
var browser =
|
|
337
|
+
var browser = getBrowserInfo();
|
|
339
338
|
if (browser.mac) {
|
|
340
339
|
return keyMap.mac;
|
|
341
340
|
}
|
|
@@ -35,7 +35,7 @@ import Tooltip from '@atlaskit/tooltip';
|
|
|
35
35
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '../../../analytics';
|
|
36
36
|
import { Announcer, PanelTextInput } from '../../../ui';
|
|
37
37
|
import { normalizeUrl } from '../../../utils';
|
|
38
|
-
import {
|
|
38
|
+
import { getBrowserInfo } from '../../../utils/browser';
|
|
39
39
|
import LinkSearchList from '../../LinkSearch/LinkSearchList';
|
|
40
40
|
import { container, narrowContainerWidth, inputWrapper } from '../../LinkSearch/ToolbarComponents';
|
|
41
41
|
import { transformTimeStamp } from '../../LinkSearch/transformTimeStamp';
|
|
@@ -879,7 +879,7 @@ export var HyperlinkLinkAddToolbar = /*#__PURE__*/function (_PureComponent) {
|
|
|
879
879
|
var ariaActiveDescendant = selectedIndex > -1 ? "link-search-list-item-".concat(selectedIndex) : '';
|
|
880
880
|
var linkSearchInputId = 'search-recent-links-field-id';
|
|
881
881
|
var displayTextInputId = 'display-text-filed-id';
|
|
882
|
-
var browser =
|
|
882
|
+
var browser = getBrowserInfo();
|
|
883
883
|
// Added workaround with a screen reader Announcer specifically for VoiceOver + Safari
|
|
884
884
|
// as the Aria design pattern for combobox does not work in this case
|
|
885
885
|
// for details: https://a11y-internal.atlassian.net/browse/AK-740
|
|
@@ -10,7 +10,7 @@ import { isFedRamp } from './environment';
|
|
|
10
10
|
import { normaliseSentryBreadcrumbs, SERIALIZABLE_ATTRIBUTES } from './normalise-sentry-breadcrumbs';
|
|
11
11
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
12
12
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
13
|
-
var packageVersion = "112.
|
|
13
|
+
var packageVersion = "112.21.0";
|
|
14
14
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
15
15
|
// Remove URL as it has UGC
|
|
16
16
|
// Ignored via go/ees007
|
|
@@ -3,11 +3,10 @@ import React, { useCallback, useEffect, useLayoutEffect, useMemo, useRef, useSta
|
|
|
3
3
|
import { bind, bindAll } from 'bind-event-listener';
|
|
4
4
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorGutterPadding, akEditorGutterPaddingDynamic, akEditorGutterPaddingReduced, akEditorFullPageNarrowBreakout } from '@atlaskit/editor-shared-styles';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
7
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE } from '../analytics';
|
|
9
8
|
import { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '../styles';
|
|
10
|
-
import {
|
|
9
|
+
import { getBrowserInfo } from '../utils/browser';
|
|
11
10
|
import Resizer from './Resizer';
|
|
12
11
|
import { ResizerBreakoutModeLabel } from './ResizerBreakoutModeLabel';
|
|
13
12
|
import { SNAP_GAP, useBreakoutGuidelines } from './useBreakoutGuidelines';
|
|
@@ -125,7 +124,7 @@ var BreakoutResizer = function BreakoutResizer(_ref) {
|
|
|
125
124
|
currentLayout = _useBreakoutGuideline.currentLayout,
|
|
126
125
|
guidelines = _useBreakoutGuideline.guidelines,
|
|
127
126
|
setCurrentWidth = _useBreakoutGuideline.setCurrentWidth;
|
|
128
|
-
var browser =
|
|
127
|
+
var browser = getBrowserInfo();
|
|
129
128
|
useEffect(function () {
|
|
130
129
|
if (displayGuidelines) {
|
|
131
130
|
displayGuidelines(guidelines || []);
|
|
@@ -7,7 +7,7 @@ import { tableCellContentDomSelector, tableCellSelector, tableHeaderSelector, ta
|
|
|
7
7
|
import { akEditorBreakoutPadding, akEditorFullWidthLayoutWidth, akEditorSelectedNodeClassName, akEditorTableNumberColumnWidth, akEditorWideLayoutWidth, overflowShadow } from '@atlaskit/editor-shared-styles';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
9
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
10
|
-
import {
|
|
10
|
+
import { getBrowserInfo } from '../../utils/browser';
|
|
11
11
|
import { CodeBlockSharedCssClassName } from './code-block';
|
|
12
12
|
import { tableCellBackgroundStyleOverride } from './tableCell';
|
|
13
13
|
export var tableMarginTop = 24;
|
|
@@ -57,7 +57,7 @@ var firstNodeWithNotMarginTop = function firstNodeWithNotMarginTop() {
|
|
|
57
57
|
css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t\t> :first-child:not(style),\n\t\t\t\t> style:first-child + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\n\t\t\t\t> .ProseMirror-gapcursor:first-child + span + *,\n\t\t\t\t> style:first-child + .ProseMirror-gapcursor + span + * {\n\t\t\t\t\tmargin-top: 0;\n\t\t\t\t}\n\t\t\t"])));
|
|
58
58
|
};
|
|
59
59
|
var tableSharedStyle = function tableSharedStyle() {
|
|
60
|
-
var browser =
|
|
60
|
+
var browser = getBrowserInfo();
|
|
61
61
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Appears safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing
|
|
62
62
|
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t\t", "\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tmargin: 0 auto ", ";\n\t\t\tbox-sizing: border-box;\n\n\t\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t\t.", ",\n\t\t\t\t.", " {\n\t\t\t\tdisplay: block;\n\t\t\t\twidth: 1px;\n\t\t\t\theight: calc(100% - ", ");\n\t\t\t\tbackground: ", ";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t}\n\t\t\t.", " {\n\t\t\t\tright: 0;\n\t\t\t}\n\t\t\t.", " {\n\t\t\t\tleft: 0;\n\t\t\t}\n\t\t\t.", "[data-with-numbered-table='true'] {\n\t\t\t\tleft: ", "px;\n\t\t\t}\n\t\t}\n\t\t.", "[data-number-column='true'] {\n\t\t\tpadding-left: ", "px;\n\t\t\tclear: both;\n\t\t}\n\n\t\t.", " {\n\t\t\twill-change: width, margin-left;\n\t\t}\n\n\t\t.", " table {\n\t\t\twill-change: width;\n\t\t}\n\n\t\t.", " > table {\n\t\t\tmargin: ", " 0 0 0;\n\t\t}\n\n\t\t.", " > table,\n\t\t.", " > table {\n\t\t\tmargin: ", " ", " 0 0;\n\t\t}\n\n\t\t/* support panel nested in table */\n\t\t", "\n\n\t\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\t\tborder-collapse: collapse;\n\t\t\tborder: ", "px solid ", ";\n\t\t\tborder-left-color: transparent;\n\t\t\tborder-right-color: transparent;\n\t\t\ttable-layout: fixed;\n\t\t\tfont-size: 1em;\n\t\t\twidth: 100%;\n\n\t\t\t&[data-autosize='true'] {\n\t\t\t\ttable-layout: auto;\n\t\t\t}\n\n\t\t\t& {\n\t\t\t\t* {\n\t\t\t\t\tbox-sizing: border-box;\n\t\t\t\t}\n\t\t\t\thr {\n\t\t\t\t\tbox-sizing: content-box;\n\t\t\t\t}\n\n\t\t\t\ttbody {\n\t\t\t\t\tborder-bottom: none;\n\t\t\t\t}\n\t\t\t\tth td {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t}\n\n\t\t\t\t> tbody > tr > th,\n\t\t\t\t> tbody > tr > td {\n\t\t\t\t\tmin-width: ", "px;\n\t\t\t\t\tfont-weight: ", ";\n\t\t\t\t\tvertical-align: top;\n\t\t\t\t\tborder: 1px solid ", ";\n\t\t\t\t\tborder-right-width: 0;\n\t\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\t\tpadding: ", ";\n\t\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t\t", "\n\n\t\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t/* Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected */\n\t\t\t\t> tbody > tr > td {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t}\n\n\t\t\t\tth {\n\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\ttext-align: left;\n\n\t\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t\t", " {\n\t\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t\t/* selector lives inside @atlaskit/code */\n\t\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t"])), tableCellBackgroundStyleOverride(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_RIGHT_BORDER, TableSharedCssClassName.TABLE_LEFT_BORDER, "var(--ds-space-300, 24px)", "var(--ds-background-accent-gray-subtler, #DDDEE1)", "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_RIGHT_BORDER, TableSharedCssClassName.TABLE_LEFT_BORDER, TableSharedCssClassName.TABLE_LEFT_BORDER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", fg('platform_editor_bordered_panel_nested_in_table') ? ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " .ak-editor-panel {\n\t\t\tborder: ", "var(--ds-border-width, 1px)", " solid ", "var(--ds-border, #0B120E24)", ";\n\t\t}") : '', TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, #DDDEE1)", "var(--ds-background-neutral-subtle, #00000000)", tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, #DDDEE1)", "var(--ds-space-100, 8px)", browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", "var(--ds-surface, #FFFFFF)", "var(--ds-background-accent-gray-subtlest, #F0F1F2)", expValEquals('platform_editor_native_anchor_with_dnd', 'isEnabled', true) ? '&:not(.danger)' : '&:not([style]):not(.danger)', CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", akEditorSelectedNodeClassName, "var(--ds-border, #0B120E24)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, overflowShadow({
|
|
63
63
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
@@ -21,7 +21,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
21
21
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
22
22
|
import Layer from '../Layer';
|
|
23
23
|
var packageName = "@atlaskit/editor-common";
|
|
24
|
-
var packageVersion = "112.
|
|
24
|
+
var packageVersion = "112.21.0";
|
|
25
25
|
var halfFocusRing = 1;
|
|
26
26
|
var dropOffset = '0, 8';
|
|
27
27
|
var fadeIn = keyframes({
|
|
@@ -16,8 +16,7 @@ import { PureComponent } from 'react';
|
|
|
16
16
|
|
|
17
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled, @typescript-eslint/consistent-type-imports -- Ignored via go/DSP-18766; jsx required at runtime for @jsxRuntime classic
|
|
18
18
|
import { jsx } from '@emotion/react';
|
|
19
|
-
import {
|
|
20
|
-
import { browser as browserLegacy, getBrowserInfo } from '../../utils/browser';
|
|
19
|
+
import { getBrowserInfo } from '../../utils/browser';
|
|
21
20
|
import { panelTextInput, panelTextInputWithCustomWidth } from './styles';
|
|
22
21
|
var KeyZCode = 90;
|
|
23
22
|
var KeyYCode = 89;
|
|
@@ -171,7 +170,7 @@ var PanelTextInput = /*#__PURE__*/function (_PureComponent) {
|
|
|
171
170
|
// Ignored via go/ees005
|
|
172
171
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
173
172
|
function isUndoEvent(event) {
|
|
174
|
-
var browser =
|
|
173
|
+
var browser = getBrowserInfo();
|
|
175
174
|
return event.keyCode === KeyZCode && (
|
|
176
175
|
// cmd + z for mac
|
|
177
176
|
browser.mac && event.metaKey && !event.shiftKey ||
|
|
@@ -184,7 +183,7 @@ var PanelTextInput = /*#__PURE__*/function (_PureComponent) {
|
|
|
184
183
|
}, {
|
|
185
184
|
key: "isRedoEvent",
|
|
186
185
|
value: function isRedoEvent(event) {
|
|
187
|
-
var browser =
|
|
186
|
+
var browser = getBrowserInfo();
|
|
188
187
|
return (
|
|
189
188
|
// ctrl + y for non-mac
|
|
190
189
|
!browser.mac && event.ctrlKey && event.keyCode === KeyYCode || browser.mac && event.metaKey && event.shiftKey && event.keyCode === KeyZCode || event.ctrlKey && event.shiftKey && event.keyCode === KeyZCode
|
|
@@ -34,11 +34,31 @@ export declare const aiSuggestionsMessages: {
|
|
|
34
34
|
description: string;
|
|
35
35
|
id: string;
|
|
36
36
|
};
|
|
37
|
+
cardPrivateTooltipLabel: {
|
|
38
|
+
defaultMessage: string;
|
|
39
|
+
description: string;
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
37
42
|
cardRovoTitle: {
|
|
38
43
|
defaultMessage: string;
|
|
39
44
|
description: string;
|
|
40
45
|
id: string;
|
|
41
46
|
};
|
|
47
|
+
cardSourcesButtonLabel: {
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
description: string;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
cardSourcesHideButtonLabel: {
|
|
53
|
+
defaultMessage: string;
|
|
54
|
+
description: string;
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
57
|
+
cardSourcesShowButtonLabel: {
|
|
58
|
+
defaultMessage: string;
|
|
59
|
+
description: string;
|
|
60
|
+
id: string;
|
|
61
|
+
};
|
|
42
62
|
fetchGenerateFromAdf: {
|
|
43
63
|
defaultMessage: string;
|
|
44
64
|
description: string;
|
|
@@ -59,6 +79,11 @@ export declare const aiSuggestionsMessages: {
|
|
|
59
79
|
description: string;
|
|
60
80
|
id: string;
|
|
61
81
|
};
|
|
82
|
+
iconButtonSuggestionsCountLabel: {
|
|
83
|
+
defaultMessage: string;
|
|
84
|
+
description: string;
|
|
85
|
+
id: string;
|
|
86
|
+
};
|
|
62
87
|
originalViewLabel: {
|
|
63
88
|
defaultMessage: string;
|
|
64
89
|
description: string;
|
|
@@ -157,6 +157,11 @@ type InsertSnippetAEP = InsertAEP<ACTION_SUBJECT_ID.SNIPPET, {
|
|
|
157
157
|
type FailedToInsertSnippetAEP = OperationalAEP<ACTION.FAILED_TO_INSERT, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.SNIPPET, {
|
|
158
158
|
reason: 'emptyBody' | 'parseError';
|
|
159
159
|
snippetId: string;
|
|
160
|
+
} | {
|
|
161
|
+
copiedMediaFiles: number;
|
|
162
|
+
reason: 'partialMediaCopyFailure';
|
|
163
|
+
snippetId: string;
|
|
164
|
+
totalMediaFiles: number;
|
|
160
165
|
}>;
|
|
161
166
|
export type InsertEventPayload = InsertDividerAEP | InsertLineBreakAEP | InsertPanelAEP | InsertCodeBlockAEP | InsertTableAEP | InsertExpandAEP | InsertActionDecisionAEP | InsertEmojiAEP | InsertStatusAEP | InsertMediaSingleAEP | InsertMediaGroupAEP | InsertMediaInlineAEP | InsertLinkAEP | InsertLinkPreviewAEP | InsertMediaLinkAEP | InsertSmartLinkAEP | InsertLayoutAEP | InsertExtensionAEP | InsertNodeViaExtensionAPIAEP | InsertDateAEP | InsertPlaceholderTextAEP | InsertNativeEmbedAEP | FailedToInsertMediaPayload | InsertReferenceSyncedBlockPayload | InsertSourceSyncedBlockPayload | InsertSnippetAEP | FailedToInsertSnippetAEP;
|
|
162
167
|
export {};
|
|
@@ -12,29 +12,29 @@ export declare const tableResizeHandleWidth = 6;
|
|
|
12
12
|
export declare const tablePadding = 8;
|
|
13
13
|
export declare const tableControlsSpacing: number;
|
|
14
14
|
export declare const TableSharedCssClassName: {
|
|
15
|
+
readonly TABLE_CELL_NODEVIEW_CONTENT_DOM: 'pm-table-cell-nodeview-content-dom';
|
|
16
|
+
readonly TABLE_CELL_WRAPPER: 'pm-table-cell-content-wrap';
|
|
17
|
+
readonly TABLE_COLUMN_CONTROLS_DECORATIONS: 'pm-table-column-controls-decoration';
|
|
15
18
|
readonly TABLE_CONTAINER: 'pm-table-container';
|
|
19
|
+
readonly TABLE_HEADER_CELL_WRAPPER: 'pm-table-header-content-wrap';
|
|
20
|
+
readonly TABLE_LEFT_BORDER: 'pm-table-left-border';
|
|
21
|
+
readonly TABLE_LEFT_SHADOW: 'pm-table-with-left-shadow';
|
|
16
22
|
readonly TABLE_NODE_WRAPPER: 'pm-table-wrapper';
|
|
17
23
|
readonly TABLE_NODE_WRAPPER_NO_OVERFLOW: 'pm-table-wrapper-no-overflow';
|
|
18
|
-
readonly
|
|
24
|
+
readonly TABLE_RESIZER_CONTAINER: 'pm-table-resizer-container';
|
|
19
25
|
readonly TABLE_RIGHT_BORDER: 'pm-table-right-border';
|
|
20
|
-
readonly TABLE_LEFT_BORDER: 'pm-table-left-border';
|
|
21
|
-
readonly TABLE_LEFT_SHADOW: 'pm-table-with-left-shadow';
|
|
22
26
|
readonly TABLE_RIGHT_SHADOW: 'pm-table-with-right-shadow';
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
readonly TABLE_STICKY_SCROLLBAR_CONTAINER: 'pm-table-sticky-scrollbar-container';
|
|
26
|
-
readonly TABLE_STICKY_SENTINEL_TOP: 'pm-table-sticky-sentinel-top';
|
|
27
|
-
readonly TABLE_STICKY_SENTINEL_BOTTOM: 'pm-table-sticky-sentinel-bottom';
|
|
28
|
-
readonly TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: 'pm-table-sticky-scrollbar-sentinel-top';
|
|
29
|
-
readonly TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: 'pm-table-sticky-scrollbar-sentinel-bottom';
|
|
27
|
+
readonly TABLE_ROW_CONTROLS_WRAPPER: 'pm-table-row-controls-wrapper';
|
|
28
|
+
readonly TABLE_SCROLL_INLINE_SHADOW: 'pm-table-scroll-inline-shadow';
|
|
30
29
|
readonly TABLE_SHADOW_SENTINEL_LEFT: 'pm-table-shadow-sentinel-left';
|
|
31
30
|
readonly TABLE_SHADOW_SENTINEL_RIGHT: 'pm-table-shadow-sentinel-right';
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
31
|
+
readonly TABLE_STICKY_SCROLLBAR_CONTAINER: 'pm-table-sticky-scrollbar-container';
|
|
32
|
+
readonly TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: 'pm-table-sticky-scrollbar-sentinel-bottom';
|
|
33
|
+
readonly TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: 'pm-table-sticky-scrollbar-sentinel-top';
|
|
34
|
+
readonly TABLE_STICKY_SENTINEL_BOTTOM: 'pm-table-sticky-sentinel-bottom';
|
|
35
|
+
readonly TABLE_STICKY_SENTINEL_TOP: 'pm-table-sticky-sentinel-top';
|
|
36
|
+
readonly TABLE_STICKY_SHADOW: 'pm-table-sticky-shadow';
|
|
37
|
+
readonly TABLE_STICKY_WRAPPER: 'pm-table-sticky-wrapper';
|
|
38
38
|
};
|
|
39
39
|
declare const tableSharedStyle: () => SerializedStyles;
|
|
40
40
|
export declare const calcTableWidth: (layout: TableLayout, containerWidth?: number, addControllerPadding?: boolean) => number | "inherit";
|
|
@@ -34,11 +34,31 @@ export declare const aiSuggestionsMessages: {
|
|
|
34
34
|
description: string;
|
|
35
35
|
id: string;
|
|
36
36
|
};
|
|
37
|
+
cardPrivateTooltipLabel: {
|
|
38
|
+
defaultMessage: string;
|
|
39
|
+
description: string;
|
|
40
|
+
id: string;
|
|
41
|
+
};
|
|
37
42
|
cardRovoTitle: {
|
|
38
43
|
defaultMessage: string;
|
|
39
44
|
description: string;
|
|
40
45
|
id: string;
|
|
41
46
|
};
|
|
47
|
+
cardSourcesButtonLabel: {
|
|
48
|
+
defaultMessage: string;
|
|
49
|
+
description: string;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
cardSourcesHideButtonLabel: {
|
|
53
|
+
defaultMessage: string;
|
|
54
|
+
description: string;
|
|
55
|
+
id: string;
|
|
56
|
+
};
|
|
57
|
+
cardSourcesShowButtonLabel: {
|
|
58
|
+
defaultMessage: string;
|
|
59
|
+
description: string;
|
|
60
|
+
id: string;
|
|
61
|
+
};
|
|
42
62
|
fetchGenerateFromAdf: {
|
|
43
63
|
defaultMessage: string;
|
|
44
64
|
description: string;
|
|
@@ -59,6 +79,11 @@ export declare const aiSuggestionsMessages: {
|
|
|
59
79
|
description: string;
|
|
60
80
|
id: string;
|
|
61
81
|
};
|
|
82
|
+
iconButtonSuggestionsCountLabel: {
|
|
83
|
+
defaultMessage: string;
|
|
84
|
+
description: string;
|
|
85
|
+
id: string;
|
|
86
|
+
};
|
|
62
87
|
originalViewLabel: {
|
|
63
88
|
defaultMessage: string;
|
|
64
89
|
description: string;
|
|
@@ -157,6 +157,11 @@ type InsertSnippetAEP = InsertAEP<ACTION_SUBJECT_ID.SNIPPET, {
|
|
|
157
157
|
type FailedToInsertSnippetAEP = OperationalAEP<ACTION.FAILED_TO_INSERT, ACTION_SUBJECT.DOCUMENT, ACTION_SUBJECT_ID.SNIPPET, {
|
|
158
158
|
reason: 'emptyBody' | 'parseError';
|
|
159
159
|
snippetId: string;
|
|
160
|
+
} | {
|
|
161
|
+
copiedMediaFiles: number;
|
|
162
|
+
reason: 'partialMediaCopyFailure';
|
|
163
|
+
snippetId: string;
|
|
164
|
+
totalMediaFiles: number;
|
|
160
165
|
}>;
|
|
161
166
|
export type InsertEventPayload = InsertDividerAEP | InsertLineBreakAEP | InsertPanelAEP | InsertCodeBlockAEP | InsertTableAEP | InsertExpandAEP | InsertActionDecisionAEP | InsertEmojiAEP | InsertStatusAEP | InsertMediaSingleAEP | InsertMediaGroupAEP | InsertMediaInlineAEP | InsertLinkAEP | InsertLinkPreviewAEP | InsertMediaLinkAEP | InsertSmartLinkAEP | InsertLayoutAEP | InsertExtensionAEP | InsertNodeViaExtensionAPIAEP | InsertDateAEP | InsertPlaceholderTextAEP | InsertNativeEmbedAEP | FailedToInsertMediaPayload | InsertReferenceSyncedBlockPayload | InsertSourceSyncedBlockPayload | InsertSnippetAEP | FailedToInsertSnippetAEP;
|
|
162
167
|
export {};
|
|
@@ -12,29 +12,29 @@ export declare const tableResizeHandleWidth = 6;
|
|
|
12
12
|
export declare const tablePadding = 8;
|
|
13
13
|
export declare const tableControlsSpacing: number;
|
|
14
14
|
export declare const TableSharedCssClassName: {
|
|
15
|
+
readonly TABLE_CELL_NODEVIEW_CONTENT_DOM: 'pm-table-cell-nodeview-content-dom';
|
|
16
|
+
readonly TABLE_CELL_WRAPPER: 'pm-table-cell-content-wrap';
|
|
17
|
+
readonly TABLE_COLUMN_CONTROLS_DECORATIONS: 'pm-table-column-controls-decoration';
|
|
15
18
|
readonly TABLE_CONTAINER: 'pm-table-container';
|
|
19
|
+
readonly TABLE_HEADER_CELL_WRAPPER: 'pm-table-header-content-wrap';
|
|
20
|
+
readonly TABLE_LEFT_BORDER: 'pm-table-left-border';
|
|
21
|
+
readonly TABLE_LEFT_SHADOW: 'pm-table-with-left-shadow';
|
|
16
22
|
readonly TABLE_NODE_WRAPPER: 'pm-table-wrapper';
|
|
17
23
|
readonly TABLE_NODE_WRAPPER_NO_OVERFLOW: 'pm-table-wrapper-no-overflow';
|
|
18
|
-
readonly
|
|
24
|
+
readonly TABLE_RESIZER_CONTAINER: 'pm-table-resizer-container';
|
|
19
25
|
readonly TABLE_RIGHT_BORDER: 'pm-table-right-border';
|
|
20
|
-
readonly TABLE_LEFT_BORDER: 'pm-table-left-border';
|
|
21
|
-
readonly TABLE_LEFT_SHADOW: 'pm-table-with-left-shadow';
|
|
22
26
|
readonly TABLE_RIGHT_SHADOW: 'pm-table-with-right-shadow';
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
readonly TABLE_STICKY_SCROLLBAR_CONTAINER: 'pm-table-sticky-scrollbar-container';
|
|
26
|
-
readonly TABLE_STICKY_SENTINEL_TOP: 'pm-table-sticky-sentinel-top';
|
|
27
|
-
readonly TABLE_STICKY_SENTINEL_BOTTOM: 'pm-table-sticky-sentinel-bottom';
|
|
28
|
-
readonly TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: 'pm-table-sticky-scrollbar-sentinel-top';
|
|
29
|
-
readonly TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: 'pm-table-sticky-scrollbar-sentinel-bottom';
|
|
27
|
+
readonly TABLE_ROW_CONTROLS_WRAPPER: 'pm-table-row-controls-wrapper';
|
|
28
|
+
readonly TABLE_SCROLL_INLINE_SHADOW: 'pm-table-scroll-inline-shadow';
|
|
30
29
|
readonly TABLE_SHADOW_SENTINEL_LEFT: 'pm-table-shadow-sentinel-left';
|
|
31
30
|
readonly TABLE_SHADOW_SENTINEL_RIGHT: 'pm-table-shadow-sentinel-right';
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
31
|
+
readonly TABLE_STICKY_SCROLLBAR_CONTAINER: 'pm-table-sticky-scrollbar-container';
|
|
32
|
+
readonly TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM: 'pm-table-sticky-scrollbar-sentinel-bottom';
|
|
33
|
+
readonly TABLE_STICKY_SCROLLBAR_SENTINEL_TOP: 'pm-table-sticky-scrollbar-sentinel-top';
|
|
34
|
+
readonly TABLE_STICKY_SENTINEL_BOTTOM: 'pm-table-sticky-sentinel-bottom';
|
|
35
|
+
readonly TABLE_STICKY_SENTINEL_TOP: 'pm-table-sticky-sentinel-top';
|
|
36
|
+
readonly TABLE_STICKY_SHADOW: 'pm-table-sticky-shadow';
|
|
37
|
+
readonly TABLE_STICKY_WRAPPER: 'pm-table-sticky-wrapper';
|
|
38
38
|
};
|
|
39
39
|
declare const tableSharedStyle: () => SerializedStyles;
|
|
40
40
|
export declare const calcTableWidth: (layout: TableLayout, containerWidth?: number, addControllerPadding?: boolean) => number | "inherit";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "112.
|
|
3
|
+
"version": "112.21.1",
|
|
4
4
|
"description": "A package that contains common classes and components for editor and renderer",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@atlaskit/editor-toolbar": "^0.20.0",
|
|
52
52
|
"@atlaskit/editor-toolbar-model": "^0.4.0",
|
|
53
53
|
"@atlaskit/emoji": "^69.12.0",
|
|
54
|
-
"@atlaskit/icon": "^34.
|
|
54
|
+
"@atlaskit/icon": "^34.1.0",
|
|
55
55
|
"@atlaskit/icon-object": "^7.5.0",
|
|
56
56
|
"@atlaskit/link": "^3.4.0",
|
|
57
57
|
"@atlaskit/link-datasource": "^5.0.0",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@atlaskit/spinner": "^19.1.0",
|
|
80
80
|
"@atlaskit/task-decision": "^19.3.0",
|
|
81
81
|
"@atlaskit/textfield": "^8.3.0",
|
|
82
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
82
|
+
"@atlaskit/tmp-editor-statsig": "^62.1.0",
|
|
83
83
|
"@atlaskit/tokens": "^13.0.0",
|
|
84
84
|
"@atlaskit/tooltip": "^21.1.0",
|
|
85
85
|
"@atlaskit/width-detector": "^5.0.0",
|