@atlaskit/editor-common 102.0.0 → 102.2.0
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 +37 -0
- package/dist/cjs/ai-messages/ai.js +5 -0
- package/dist/cjs/analytics/types/general-events.js +1 -1
- package/dist/cjs/collab/index.js +2 -1
- package/dist/cjs/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +26 -52
- package/dist/cjs/extensibility/MultiBodiedExtension/action-api.js +2 -0
- package/dist/cjs/insert/index.js +2 -0
- package/dist/cjs/keymaps/keymap.js +4 -2
- package/dist/cjs/lazy-node-view/index.js +1 -1
- package/dist/cjs/media-inline/inline-image-card.js +2 -0
- package/dist/cjs/messages/annotation.js +2 -0
- package/dist/cjs/messages/help-dialog.js +2 -0
- package/dist/cjs/messages/panel.js +5 -0
- package/dist/cjs/monitoring/environment.js +2 -0
- package/dist/cjs/monitoring/error.js +3 -1
- package/dist/cjs/node-width/index.js +0 -1
- package/dist/cjs/provider-factory/with-providers.js +7 -28
- package/dist/cjs/quick-insert/assets/datasource-assets-objects.js +1 -1
- package/dist/cjs/quick-insert/assets/datasource-jira-issue.js +1 -1
- package/dist/cjs/quick-insert/assets/feedback.js +1 -1
- package/dist/cjs/quick-insert/assets/quote.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +1 -1
- package/dist/cjs/react-node-view/index.js +1 -1
- package/dist/cjs/selection/gap-cursor/selection.js +1 -1
- package/dist/cjs/styles/shared/annotation.js +1 -1
- package/dist/cjs/ugc-tokens/editor-ugc-token-names.js +21 -21
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Layer/index.js +0 -1
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +1 -1
- package/dist/cjs/ui-menu/ToolbarButton/styles.js +2 -0
- package/dist/cjs/ui-react/with-react-editor-view-outer-listeners.js +13 -4
- package/dist/cjs/utils/calculate-toolbar-position.js +4 -0
- package/dist/cjs/utils/compareNodes.js +0 -1
- package/dist/cjs/utils/get-performance-options.js +0 -1
- package/dist/cjs/utils/is-text-input.js +0 -2
- package/dist/cjs/utils/table.js +2 -0
- package/dist/cjs/utils/validate-using-spec.js +2 -0
- package/dist/cjs/with-plugin-state/index.js +0 -1
- package/dist/es2019/ai-messages/ai.js +5 -0
- package/dist/es2019/analytics/types/general-events.js +1 -3
- package/dist/es2019/collab/index.js +2 -2
- package/dist/es2019/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +28 -54
- package/dist/es2019/extensibility/MultiBodiedExtension/action-api.js +2 -0
- package/dist/es2019/insert/index.js +2 -0
- package/dist/es2019/keymaps/keymap.js +4 -2
- package/dist/es2019/lazy-node-view/index.js +1 -1
- package/dist/es2019/media-inline/inline-image-card.js +2 -0
- package/dist/es2019/messages/annotation.js +2 -0
- package/dist/es2019/messages/help-dialog.js +2 -0
- package/dist/es2019/messages/panel.js +5 -0
- package/dist/es2019/monitoring/environment.js +2 -0
- package/dist/es2019/monitoring/error.js +3 -1
- package/dist/es2019/node-width/index.js +0 -1
- package/dist/es2019/provider-factory/with-providers.js +2 -21
- package/dist/es2019/quick-insert/assets/datasource-assets-objects.js +1 -1
- package/dist/es2019/quick-insert/assets/datasource-jira-issue.js +1 -1
- package/dist/es2019/quick-insert/assets/feedback.js +1 -1
- package/dist/es2019/quick-insert/assets/quote.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -1
- package/dist/es2019/react-node-view/index.js +1 -1
- package/dist/es2019/selection/gap-cursor/selection.js +1 -1
- package/dist/es2019/styles/shared/annotation.js +1 -1
- package/dist/es2019/ugc-tokens/editor-ugc-token-names.js +21 -21
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Layer/index.js +0 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +1 -1
- package/dist/es2019/ui-menu/ToolbarButton/styles.js +2 -0
- package/dist/es2019/ui-react/with-react-editor-view-outer-listeners.js +12 -3
- package/dist/es2019/utils/calculate-toolbar-position.js +4 -0
- package/dist/es2019/utils/compareNodes.js +0 -1
- package/dist/es2019/utils/get-performance-options.js +0 -1
- package/dist/es2019/utils/is-text-input.js +0 -2
- package/dist/es2019/utils/table.js +2 -0
- package/dist/es2019/utils/validate-using-spec.js +2 -0
- package/dist/es2019/with-plugin-state/index.js +0 -1
- package/dist/esm/ai-messages/ai.js +5 -0
- package/dist/esm/analytics/types/general-events.js +1 -3
- package/dist/esm/collab/index.js +2 -2
- package/dist/esm/element-browser/hooks/use-select-and-focus-on-arrow-navigation.js +27 -52
- package/dist/esm/extensibility/MultiBodiedExtension/action-api.js +2 -0
- package/dist/esm/insert/index.js +2 -0
- package/dist/esm/keymaps/keymap.js +4 -2
- package/dist/esm/lazy-node-view/index.js +1 -1
- package/dist/esm/media-inline/inline-image-card.js +2 -0
- package/dist/esm/messages/annotation.js +2 -0
- package/dist/esm/messages/help-dialog.js +2 -0
- package/dist/esm/messages/panel.js +5 -0
- package/dist/esm/monitoring/environment.js +2 -0
- package/dist/esm/monitoring/error.js +3 -1
- package/dist/esm/node-width/index.js +0 -1
- package/dist/esm/provider-factory/with-providers.js +7 -28
- package/dist/esm/quick-insert/assets/datasource-assets-objects.js +1 -1
- package/dist/esm/quick-insert/assets/datasource-jira-issue.js +1 -1
- package/dist/esm/quick-insert/assets/feedback.js +1 -1
- package/dist/esm/quick-insert/assets/quote.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -1
- package/dist/esm/react-node-view/index.js +1 -1
- package/dist/esm/selection/gap-cursor/selection.js +1 -1
- package/dist/esm/styles/shared/annotation.js +1 -1
- package/dist/esm/ugc-tokens/editor-ugc-token-names.js +21 -21
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Layer/index.js +0 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +1 -1
- package/dist/esm/ui-menu/ToolbarButton/styles.js +2 -0
- package/dist/esm/ui-react/with-react-editor-view-outer-listeners.js +13 -4
- package/dist/esm/utils/calculate-toolbar-position.js +4 -0
- package/dist/esm/utils/compareNodes.js +0 -1
- package/dist/esm/utils/get-performance-options.js +0 -1
- package/dist/esm/utils/is-text-input.js +0 -2
- package/dist/esm/utils/table.js +2 -0
- package/dist/esm/utils/validate-using-spec.js +2 -0
- package/dist/esm/with-plugin-state/index.js +0 -1
- package/dist/types/ai-messages/ai.d.ts +5 -0
- package/dist/types/collab/index.d.ts +12 -2
- package/dist/types/messages/panel.d.ts +5 -0
- package/dist/types/provider-factory/with-providers.d.ts +0 -1
- package/dist/types/types/annotation/index.d.ts +0 -3
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +6 -0
- package/dist/types-ts4.5/ai-messages/ai.d.ts +5 -0
- package/dist/types-ts4.5/collab/index.d.ts +12 -2
- package/dist/types-ts4.5/messages/panel.d.ts +5 -0
- package/dist/types-ts4.5/provider-factory/with-providers.d.ts +0 -1
- package/dist/types-ts4.5/types/annotation/index.d.ts +0 -3
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +6 -0
- package/package.json +1 -4
|
@@ -50,7 +50,7 @@ const colorPickerButtonStyle = css({
|
|
|
50
50
|
});
|
|
51
51
|
|
|
52
52
|
// Control the size of color picker buttons and preview
|
|
53
|
-
// TODO:
|
|
53
|
+
// TODO: DSP-4134 - Color picking UI
|
|
54
54
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
55
55
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
56
56
|
const colorPickerWrapper = () => css({
|
|
@@ -9,6 +9,8 @@ export default /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
9
9
|
// Ignored via go/ees005
|
|
10
10
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
11
11
|
}, props, {
|
|
12
|
+
// Ignored via go/ees007
|
|
13
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
12
14
|
// TODO: (from codemod) Buttons with "component", "css" or "style" prop can't be automatically migrated with codemods. Please migrate it manually.
|
|
13
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
14
16
|
style: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import React, { PureComponent, useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
+
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
3
4
|
import ReactEditorViewContext from './ReactEditorViewContext';
|
|
4
5
|
// Use this context to pass in the reference of the element that should be considered as the outside click target
|
|
5
6
|
// The outside click target is the element that should be clicked outside of to trigger the `handleClickOutside` event
|
|
@@ -48,9 +49,12 @@ class WithOutsideClick extends PureComponent {
|
|
|
48
49
|
}
|
|
49
50
|
componentDidMount() {
|
|
50
51
|
if (this.props.handleClickOutside) {
|
|
52
|
+
const options = this.props.captureClick && editorExperiment('platform_editor_controls', 'variant1') ? {
|
|
53
|
+
capture: true
|
|
54
|
+
} : false;
|
|
51
55
|
// Ignored via go/ees005
|
|
52
56
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
53
|
-
document.addEventListener('click', this.handleClick,
|
|
57
|
+
document.addEventListener('click', this.handleClick, options);
|
|
54
58
|
}
|
|
55
59
|
if (this.props.handleEscapeKeydown) {
|
|
56
60
|
var _this$props$editorRef;
|
|
@@ -66,9 +70,12 @@ class WithOutsideClick extends PureComponent {
|
|
|
66
70
|
}
|
|
67
71
|
componentWillUnmount() {
|
|
68
72
|
if (this.props.handleClickOutside) {
|
|
73
|
+
const options = this.props.captureClick && editorExperiment('platform_editor_controls', 'variant1') ? {
|
|
74
|
+
capture: true
|
|
75
|
+
} : false;
|
|
69
76
|
// Ignored via go/ees005
|
|
70
77
|
// eslint-disable-next-line @repo/internal/dom-events/no-unsafe-event-listeners
|
|
71
|
-
document.removeEventListener('click', this.handleClick,
|
|
78
|
+
document.removeEventListener('click', this.handleClick, options);
|
|
72
79
|
}
|
|
73
80
|
if (this.props.handleEscapeKeydown) {
|
|
74
81
|
var _this$props$editorRef2;
|
|
@@ -96,6 +103,7 @@ export default function withReactEditorViewOuterListeners(Component) {
|
|
|
96
103
|
handleEnterKeydown,
|
|
97
104
|
handleEscapeKeydown,
|
|
98
105
|
closeOnTab,
|
|
106
|
+
captureClick,
|
|
99
107
|
...props
|
|
100
108
|
}) => {
|
|
101
109
|
const isActiveProp = hasIsOpen(props) ? props.isOpen : true;
|
|
@@ -125,7 +133,8 @@ export default function withReactEditorViewOuterListeners(Component) {
|
|
|
125
133
|
handleClickOutside: handleClickOutside,
|
|
126
134
|
handleEnterKeydown: handleEnterKeydown,
|
|
127
135
|
handleEscapeKeydown: handleEscapeKeydown,
|
|
128
|
-
closeOnTab: closeOnTab
|
|
136
|
+
closeOnTab: closeOnTab,
|
|
137
|
+
captureClick: captureClick
|
|
129
138
|
}, /*#__PURE__*/React.createElement(Component
|
|
130
139
|
// Ignored via go/ees005
|
|
131
140
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
@@ -17,6 +17,8 @@ export const calculateToolbarPositionAboveSelection = toolbarTitle => (editorVie
|
|
|
17
17
|
return nextPos;
|
|
18
18
|
}
|
|
19
19
|
// scroll wrapper for full page, fall back to document body
|
|
20
|
+
// Ignored via go/ees007
|
|
21
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
20
22
|
// TODO: look into using getScrollGutterOptions()
|
|
21
23
|
const scrollWrapper = editorView.dom.closest('.fabric-editor-popup-scroll-parent') || document.body;
|
|
22
24
|
const wrapperBounds = scrollWrapper.getBoundingClientRect();
|
|
@@ -91,6 +93,8 @@ export const calculateToolbarPositionTrackHead = toolbarTitle => (editorView, ne
|
|
|
91
93
|
return nextPos;
|
|
92
94
|
}
|
|
93
95
|
// scroll wrapper for full page, fall back to document body
|
|
96
|
+
// Ignored via go/ees007
|
|
97
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
94
98
|
// TODO: look into using getScrollGutterOptions()
|
|
95
99
|
const scrollWrapper = editorView.dom.closest('.fabric-editor-popup-scroll-parent') || document.body;
|
|
96
100
|
const wrapperBounds = scrollWrapper.getBoundingClientRect();
|
|
@@ -152,7 +152,6 @@ function getMetaFromNode(node, options, normalizeTextParser) {
|
|
|
152
152
|
}
|
|
153
153
|
case 'mention':
|
|
154
154
|
{
|
|
155
|
-
// TODO: Check what should be the fallback when mention does not have a text
|
|
156
155
|
const text = firstChild.attrs.text || '';
|
|
157
156
|
return {
|
|
158
157
|
type: ContentType.MENTION,
|
|
@@ -8,7 +8,6 @@ const DEFAULT_SAMPLING_RATE = 100;
|
|
|
8
8
|
const DEFAULT_SLOW_THRESHOLD = 7;
|
|
9
9
|
export function getPerformanceOptions(view) {
|
|
10
10
|
var _nodeViewTracking$sam, _nodeViewTracking$slo;
|
|
11
|
-
// TODO: ED-15663
|
|
12
11
|
// Please, do not copy or use this kind of code below
|
|
13
12
|
// @ts-ignore
|
|
14
13
|
const fakePluginKey = {
|
|
@@ -33,6 +33,8 @@ export function getColumnWidths(node) {
|
|
|
33
33
|
return tableColumnWidths;
|
|
34
34
|
}
|
|
35
35
|
export function calcTableColumnWidths(node) {
|
|
36
|
+
// Ignored via go/ees007
|
|
37
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
36
38
|
// TODO: replaced with getColumnWidths, which correctly scans entire table for column widths
|
|
37
39
|
if (fg('platform_editor_table_row_span_fix')) {
|
|
38
40
|
const firstRow = node.firstChild;
|
|
@@ -42,6 +42,8 @@ export const validationErrorHandler = (entity, error, options, marks, validate,
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
// Ignored via go/ees007
|
|
46
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
45
47
|
// TODO: We can repair missing content like `panel` without a `paragraph`.
|
|
46
48
|
if (error.code === 'INVALID_CONTENT_LENGTH') {
|
|
47
49
|
if (error.meta && options.allowUnsupportedBlock && entity.content) {
|
|
@@ -6,6 +6,11 @@ export var aiMessages = defineMessages({
|
|
|
6
6
|
defaultMessage: 'Page title',
|
|
7
7
|
description: 'A fallback suggested title for the suggest title prompt'
|
|
8
8
|
},
|
|
9
|
+
eventHubfallbackSuggestedTitlePrefix: {
|
|
10
|
+
id: 'fabric.editor.ai.eventHub.fallbackSuggestedTitlePrefix',
|
|
11
|
+
defaultMessage: 'Page',
|
|
12
|
+
description: 'A fallback suggested title prefix for the suggest title prompt'
|
|
13
|
+
},
|
|
9
14
|
// Toolbar messages
|
|
10
15
|
aiToolbarTitle: {
|
|
11
16
|
id: 'fabric.editor.ai.toolbar.titleText',
|
|
@@ -20,6 +20,4 @@ export var BROWSER_FREEZE_INTERACTION_TYPE = /*#__PURE__*/function (BROWSER_FREE
|
|
|
20
20
|
BROWSER_FREEZE_INTERACTION_TYPE["CLICKING"] = "clicking";
|
|
21
21
|
BROWSER_FREEZE_INTERACTION_TYPE["PASTING"] = "pasting";
|
|
22
22
|
return BROWSER_FREEZE_INTERACTION_TYPE;
|
|
23
|
-
}({});
|
|
24
|
-
|
|
25
|
-
// TODO: https://product-fabric.atlassian.net/browse/AFP-1418
|
|
23
|
+
}({});
|
package/dist/esm/collab/index.js
CHANGED
|
@@ -119,6 +119,8 @@ export var PROVIDER_ERROR_CODE = /*#__PURE__*/function (PROVIDER_ERROR_CODE) {
|
|
|
119
119
|
|
|
120
120
|
// Collab Provider interface
|
|
121
121
|
|
|
122
|
+
// Ignored via go/ees007
|
|
123
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
122
124
|
// TODO: Deprecate redundant payload types
|
|
123
125
|
|
|
124
126
|
export var DisconnectReason = /*#__PURE__*/function (DisconnectReason) {
|
|
@@ -141,8 +143,6 @@ export var DisconnectReason = /*#__PURE__*/function (DisconnectReason) {
|
|
|
141
143
|
|
|
142
144
|
//Unions
|
|
143
145
|
|
|
144
|
-
// This will be extended in follow-up PRs
|
|
145
|
-
|
|
146
146
|
var telepointerColorStyle = function telepointerColorStyle(backgroundColor, textColor, index) {
|
|
147
147
|
var _getGlobalTheme = getGlobalTheme(),
|
|
148
148
|
colorMode = _getGlobalTheme.colorMode;
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import { useCallback, useEffect, useReducer, useRef } from 'react';
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
/**
|
|
8
8
|
* a custom hook that handles keyboard navigation for Arrow keys based on a
|
|
9
9
|
* given listSize, and a step (for up and down arrows).
|
|
@@ -78,27 +78,18 @@ var moveReducer = function moveReducer(state, action) {
|
|
|
78
78
|
selectedItemIndex: canFocusViewMore ? undefined : listSize
|
|
79
79
|
});
|
|
80
80
|
} else {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
});
|
|
94
|
-
} else {
|
|
95
|
-
return _objectSpread(_objectSpread({}, state), {}, {
|
|
96
|
-
focusOnSearch: false,
|
|
97
|
-
focusOnViewMore: false,
|
|
98
|
-
focusedItemIndex: 0,
|
|
99
|
-
selectedItemIndex: 0
|
|
100
|
-
});
|
|
101
|
-
}
|
|
81
|
+
var _action$payload$step;
|
|
82
|
+
var _newIndex = action.payload.positions ? action.payload.positions - ((_action$payload$step = action.payload.step) !== null && _action$payload$step !== void 0 ? _action$payload$step : 1) : 0;
|
|
83
|
+
var _safeIndex = ensureSafeIndex(_newIndex, state.listSize);
|
|
84
|
+
var isLastItemFocused = _newIndex > listSize;
|
|
85
|
+
var focusOnSearch = isLastItemFocused && !canFocusViewMore;
|
|
86
|
+
var focusOnViewMore = isLastItemFocused && !!canFocusViewMore;
|
|
87
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
88
|
+
focusOnSearch: focusOnSearch,
|
|
89
|
+
focusOnViewMore: focusOnViewMore,
|
|
90
|
+
focusedItemIndex: _safeIndex,
|
|
91
|
+
selectedItemIndex: _safeIndex
|
|
92
|
+
});
|
|
102
93
|
}
|
|
103
94
|
}
|
|
104
95
|
if (state.focusOnViewMore) {
|
|
@@ -321,45 +312,29 @@ function useSelectAndFocusOnArrowNavigation(listSize, step, canFocusViewMore, it
|
|
|
321
312
|
return setFocusOnSearch();
|
|
322
313
|
case 'ArrowRight':
|
|
323
314
|
{
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
return move(e, nextItem);
|
|
329
|
-
} else {
|
|
330
|
-
return move(e, +1);
|
|
331
|
-
}
|
|
315
|
+
var _skipForwardOffsetToS;
|
|
316
|
+
var itemIndex = focusOnSearch ? -1 : selectedItemIndex;
|
|
317
|
+
var nextItem = (_skipForwardOffsetToS = skipForwardOffsetToSafeItem(itemIndex, listSize, 1, itemIsDisabled)) !== null && _skipForwardOffsetToS !== void 0 ? _skipForwardOffsetToS : 1;
|
|
318
|
+
return move(e, nextItem);
|
|
332
319
|
}
|
|
333
320
|
case 'ArrowLeft':
|
|
334
321
|
{
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
return move(e, -_nextItem);
|
|
339
|
-
} else {
|
|
340
|
-
return move(e, -1);
|
|
341
|
-
}
|
|
322
|
+
var _skipBackwardOffsetTo;
|
|
323
|
+
var _nextItem = (_skipBackwardOffsetTo = skipBackwardOffsetToSafeItem(selectedItemIndex, 1, itemIsDisabled)) !== null && _skipBackwardOffsetTo !== void 0 ? _skipBackwardOffsetTo : 1;
|
|
324
|
+
return move(e, -_nextItem);
|
|
342
325
|
}
|
|
343
326
|
case 'ArrowDown':
|
|
344
327
|
{
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
return move(e, +_nextItem2, step);
|
|
350
|
-
} else {
|
|
351
|
-
return move(e, +step);
|
|
352
|
-
}
|
|
328
|
+
var _skipForwardOffsetToS2;
|
|
329
|
+
var _itemIndex = focusOnSearch ? -step : selectedItemIndex;
|
|
330
|
+
var _nextItem2 = (_skipForwardOffsetToS2 = skipForwardOffsetToSafeItem(_itemIndex, listSize, step, itemIsDisabled)) !== null && _skipForwardOffsetToS2 !== void 0 ? _skipForwardOffsetToS2 : step;
|
|
331
|
+
return move(e, +_nextItem2, step);
|
|
353
332
|
}
|
|
354
333
|
case 'ArrowUp':
|
|
355
334
|
{
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
return move(e, Math.min(-_nextItem3, -step), step);
|
|
360
|
-
} else {
|
|
361
|
-
return move(e, -step, step);
|
|
362
|
-
}
|
|
335
|
+
var _skipBackwardOffsetTo2;
|
|
336
|
+
var _nextItem3 = (_skipBackwardOffsetTo2 = skipBackwardOffsetToSafeItem(selectedItemIndex, step, itemIsDisabled)) !== null && _skipBackwardOffsetTo2 !== void 0 ? _skipBackwardOffsetTo2 : step;
|
|
337
|
+
return move(e, Math.min(-_nextItem3, -step), step);
|
|
363
338
|
}
|
|
364
339
|
}
|
|
365
340
|
}, [focusOnSearch, setFocusOnSearch, move, selectedItemIndex, itemIsDisabled, listSize, step]);
|
|
@@ -71,6 +71,8 @@ export var useMultiBodiedExtensionActions = function useMultiBodiedExtensionActi
|
|
|
71
71
|
},
|
|
72
72
|
removeChild: function removeChild(index) {
|
|
73
73
|
var pos = getPos();
|
|
74
|
+
// Ignored via go/ees007
|
|
75
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
74
76
|
// TODO: Add child index validation here, don't trust this data
|
|
75
77
|
if (typeof pos !== 'number' || typeof index !== 'number') {
|
|
76
78
|
throw new Error('Position or index not valid');
|
package/dist/esm/insert/index.js
CHANGED
|
@@ -72,6 +72,8 @@ var insertBeforeOrAfter = function insertBeforeOrAfter(tr, lookDirection, $paren
|
|
|
72
72
|
return tr.insert($proposedPosition[lookDirection](), content);
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
+
// Ignored via go/ees007
|
|
76
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
75
77
|
// FIXME: A more sustainable and configurable way to choose when to split
|
|
76
78
|
// Ignored via go/ees005
|
|
77
79
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -34,9 +34,11 @@ export function keymap(bindings) {
|
|
|
34
34
|
var isDeadKey = name === 'Dead';
|
|
35
35
|
if (isModKeyPressed && (isNonLatinKey || isDeadKey)) {
|
|
36
36
|
keyboardEvent = new KeyboardEvent(event.type, {
|
|
37
|
+
// Ignored via go/ees007
|
|
38
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
37
39
|
// FIXME: The event.keyCode is deprecated (see https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode),
|
|
38
|
-
//
|
|
39
|
-
//
|
|
40
|
+
// and could be removed in any time, but the w3c-keyname library doesn't provide a way to get
|
|
41
|
+
// a key by event.code.
|
|
40
42
|
key: base[event.keyCode],
|
|
41
43
|
code: event.code,
|
|
42
44
|
ctrlKey: event.ctrlKey,
|
|
@@ -177,7 +177,7 @@ export var withLazyLoading = function withLazyLoading(_ref) {
|
|
|
177
177
|
});
|
|
178
178
|
requestedNodes.set(nodeName, loaderPromise);
|
|
179
179
|
if (typeof ((_node$type = node.type) === null || _node$type === void 0 || (_node$type = _node$type.spec) === null || _node$type === void 0 ? void 0 : _node$type.toDOM) !== 'function') {
|
|
180
|
-
// TODO:
|
|
180
|
+
// TODO: ED-23982 - Analytics
|
|
181
181
|
// dispatchAnalyticsEvent({
|
|
182
182
|
// action: ACTION.LAZY_NODE_VIEW_ERROR,
|
|
183
183
|
// actionSubject: ACTION_SUBJECT.LAZY_NODE_VIEW,
|
|
@@ -26,6 +26,8 @@ export var InlineImageCard = function InlineImageCard(_ref) {
|
|
|
26
26
|
};
|
|
27
27
|
}, []);
|
|
28
28
|
|
|
29
|
+
// Ignored via go/ees007
|
|
30
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
29
31
|
// TODO do we need to handle nonCriticalError
|
|
30
32
|
var _useFilePreview = useFilePreview({
|
|
31
33
|
identifier: identifier,
|
|
@@ -5,6 +5,8 @@ export var annotationMessages = defineMessages({
|
|
|
5
5
|
defaultMessage: 'Comment',
|
|
6
6
|
description: 'Create/add an inline comment based on the users selection'
|
|
7
7
|
},
|
|
8
|
+
// Ignored via go/ees007
|
|
9
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
8
10
|
// TODO: Remove this message when the editor_inline_comments_on_inline_nodes FF is removed
|
|
9
11
|
createCommentInvalid: {
|
|
10
12
|
id: 'fabric.editor.createCommentInvalid',
|
|
@@ -85,6 +85,8 @@ export var helpDialogMessages = defineMessages({
|
|
|
85
85
|
defaultMessage: 'Close help dialog',
|
|
86
86
|
description: ''
|
|
87
87
|
},
|
|
88
|
+
// Ignored via go/ees007
|
|
89
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
88
90
|
// TODO: Move it inside quick insert plugin
|
|
89
91
|
quickInsert: {
|
|
90
92
|
id: 'fabric.editor.quickInsert',
|
|
@@ -30,6 +30,11 @@ export var panelMessages = defineMessages({
|
|
|
30
30
|
defaultMessage: 'Add emoji',
|
|
31
31
|
description: 'Select the panel icon'
|
|
32
32
|
},
|
|
33
|
+
custom: {
|
|
34
|
+
id: 'fabric.editor.panel.custom',
|
|
35
|
+
defaultMessage: 'Custom',
|
|
36
|
+
description: 'Custom panels where user has selected custom emoji and background color'
|
|
37
|
+
},
|
|
33
38
|
backgroundColor: {
|
|
34
39
|
id: 'fabric.editor.panel.backgroundColor',
|
|
35
40
|
defaultMessage: 'Background color',
|
|
@@ -3,6 +3,8 @@ var FEDRAMP_MODERATE = 'fedramp-moderate';
|
|
|
3
3
|
// To determine whether an instance is a FedRAMP instance
|
|
4
4
|
// Copied from platform/packages/uip/atl-context/src/services/is-fedramp/index.tsx
|
|
5
5
|
// We cannot import the same-named function from @atlassian/atl-context due to editor-common being a public package (and atl-context being private)
|
|
6
|
+
// Ignored via go/ees007
|
|
7
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
6
8
|
// TODO: Seek alternatives
|
|
7
9
|
export function isFedRamp() {
|
|
8
10
|
var _global$location;
|
|
@@ -7,9 +7,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
7
7
|
import { isFedRamp } from './environment';
|
|
8
8
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
9
9
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
10
|
-
var packageVersion = "102.
|
|
10
|
+
var packageVersion = "102.2.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
|
+
// Ignored via go/ees007
|
|
14
|
+
// eslint-disable-next-line @atlaskit/editor/enforce-todo-comment-format
|
|
13
15
|
// TODO: Sanitise the URL instead of just removing it
|
|
14
16
|
if (data.request) {
|
|
15
17
|
delete data.request.url;
|
|
@@ -35,7 +35,6 @@ export var getParentNodeWidth = function getParentNodeWidth(pos, state, containe
|
|
|
35
35
|
}
|
|
36
36
|
var parentWidth = calcBreakoutNodeWidth(layout, containerWidth, isFullWidthModeEnabled);
|
|
37
37
|
|
|
38
|
-
// TODO: ED-15663
|
|
39
38
|
// Please, do not copy or use this kind of code below
|
|
40
39
|
// @ts-ignore
|
|
41
40
|
var contextPanelPluginKey = {
|
|
@@ -10,7 +10,6 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
10
10
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
11
|
/* eslint-disable @repo/internal/react/no-class-components */
|
|
12
12
|
import { PureComponent } from 'react';
|
|
13
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
13
|
// Ignored via go/ees005
|
|
15
14
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
15
|
export var WithProviders = /*#__PURE__*/function (_PureComponent) {
|
|
@@ -43,12 +42,8 @@ export var WithProviders = /*#__PURE__*/function (_PureComponent) {
|
|
|
43
42
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
44
43
|
var _providers = {};
|
|
45
44
|
_this.props.providers.forEach(function (name) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
_providers[name] = providerPromise;
|
|
49
|
-
} else {
|
|
50
|
-
_providers[name] = undefined;
|
|
51
|
-
}
|
|
45
|
+
var providerPromise = props.providerFactory.subscribe(name, _this.handleProviderIfMounted);
|
|
46
|
+
_providers[name] = providerPromise;
|
|
52
47
|
});
|
|
53
48
|
_this.state = {
|
|
54
49
|
providers: _providers
|
|
@@ -61,31 +56,15 @@ export var WithProviders = /*#__PURE__*/function (_PureComponent) {
|
|
|
61
56
|
value: function componentDidMount() {
|
|
62
57
|
this.mounted = true;
|
|
63
58
|
}
|
|
64
|
-
|
|
65
|
-
// Ignored via go/ees005
|
|
66
|
-
// eslint-disable-next-line react/no-unsafe
|
|
67
|
-
}, {
|
|
68
|
-
key: "UNSAFE_componentWillMount",
|
|
69
|
-
value: function UNSAFE_componentWillMount() {
|
|
70
|
-
var _this2 = this;
|
|
71
|
-
if (!fg('platform_editor_react18_phase2_v2')) {
|
|
72
|
-
var _this$props = this.props,
|
|
73
|
-
providers = _this$props.providers,
|
|
74
|
-
providerFactory = _this$props.providerFactory;
|
|
75
|
-
providers.forEach(function (name) {
|
|
76
|
-
providerFactory.subscribe(name, _this2.handleProvider);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
59
|
}, {
|
|
81
60
|
key: "componentWillUnmount",
|
|
82
61
|
value: function componentWillUnmount() {
|
|
83
|
-
var
|
|
84
|
-
var _this$
|
|
85
|
-
providers = _this$
|
|
86
|
-
providerFactory = _this$
|
|
62
|
+
var _this2 = this;
|
|
63
|
+
var _this$props = this.props,
|
|
64
|
+
providers = _this$props.providers,
|
|
65
|
+
providerFactory = _this$props.providerFactory;
|
|
87
66
|
providers.forEach(function (name) {
|
|
88
|
-
providerFactory.unsubscribe(name,
|
|
67
|
+
providerFactory.unsubscribe(name, _this2.handleProvider);
|
|
89
68
|
});
|
|
90
69
|
}
|
|
91
70
|
}, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// TODO:
|
|
1
|
+
// TODO: DSP-4138 - migrate to @atlaskit/design-system
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
3
|
import React from 'react';
|
|
4
4
|
export default function IconDatasourceAssetsObjects() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// TODO:
|
|
1
|
+
// TODO: DSP-4138 - Migrate to @atlaskit/design-system
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
3
|
import React from 'react';
|
|
4
4
|
export default function IconDatasourceJiraIssue() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// TODO:
|
|
1
|
+
// TODO: DSP-4138 - Migrate to @atlaskit/design-system
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { useIconThemed } from '../use-icon-themed';
|
|
@@ -267,7 +267,7 @@ function getPortalChildren(_ref2) {
|
|
|
267
267
|
className: "".concat(inlineNodeViewClassname, "AddZeroWidthSpace")
|
|
268
268
|
}), ZERO_WIDTH_SPACE), jsx(Component, _extends({
|
|
269
269
|
view: nodeViewParams.view
|
|
270
|
-
// TODO:
|
|
270
|
+
// TODO: ED-13910 - Remove the boolean to fix the prosemirror view type
|
|
271
271
|
// Ignored via go/ees005
|
|
272
272
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
273
273
|
,
|
|
@@ -221,7 +221,7 @@ var ReactNodeView = /*#__PURE__*/function () {
|
|
|
221
221
|
|
|
222
222
|
// View should not process a re-render if this is false.
|
|
223
223
|
// We dont want to destroy the view, so we return true.
|
|
224
|
-
// TODO: ED-13910 Fix viewShouldUpdate readonly decoration array
|
|
224
|
+
// TODO: ED-13910 - Fix viewShouldUpdate readonly decoration array
|
|
225
225
|
if (!this.viewShouldUpdate(node, decorations)) {
|
|
226
226
|
this.node = node;
|
|
227
227
|
return true;
|
|
@@ -87,7 +87,7 @@ export var GapCursorSelection = /*#__PURE__*/function (_Selection) {
|
|
|
87
87
|
}
|
|
88
88
|
var pos = $pos.pos;
|
|
89
89
|
|
|
90
|
-
// TODO: Fix any, potential issue.
|
|
90
|
+
// TODO: ED-5048 - Fix any, potential issue.
|
|
91
91
|
// Ignored via go/ees005
|
|
92
92
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
93
93
|
var next = null;
|
|
@@ -61,7 +61,7 @@ export var AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
|
|
|
61
61
|
// emotion and token look up
|
|
62
62
|
background: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
|
|
63
63
|
borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, #B38600)"),
|
|
64
|
-
// TODO:
|
|
64
|
+
// TODO: DSP-4147 - Annotation shadow
|
|
65
65
|
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
|
66
66
|
cursor: 'pointer'
|
|
67
67
|
}),
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export var editorUGCTokens = {
|
|
2
|
-
'editor.font.heading.h1': 'normal 500 1.71429em/1.16667 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
3
|
-
'editor.font.heading.h2': 'normal 500 1.42857em/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
4
|
-
'editor.font.heading.h3': 'normal 600 1.14286em/1.25 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
5
|
-
'editor.font.heading.h4': 'normal 600 1em/1.14286 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
6
|
-
'editor.font.heading.h5': 'normal 600 0.857143em/1.33333 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
7
|
-
'editor.font.heading.h6': 'normal 700 0.785714em/1.45455 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
8
|
-
'editor.font.body': 'normal 400 1em/1.714 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
2
|
+
'editor.font.heading.h1': 'normal 500 1.71429em/1.16667 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
3
|
+
'editor.font.heading.h2': 'normal 500 1.42857em/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
4
|
+
'editor.font.heading.h3': 'normal 600 1.14286em/1.25 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
5
|
+
'editor.font.heading.h4': 'normal 600 1em/1.14286 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
6
|
+
'editor.font.heading.h5': 'normal 600 0.857143em/1.33333 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
7
|
+
'editor.font.heading.h6': 'normal 700 0.785714em/1.45455 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
8
|
+
'editor.font.body': 'normal 400 1em/1.714 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
9
9
|
'editor.font.weight.heading.h1.bold': '700',
|
|
10
10
|
'editor.font.weight.heading.h2.bold': '700',
|
|
11
11
|
'editor.font.weight.heading.h3.bold': '700',
|
|
@@ -14,13 +14,13 @@ export var editorUGCTokens = {
|
|
|
14
14
|
'editor.font.weight.heading.h6.bold': '700'
|
|
15
15
|
};
|
|
16
16
|
export var editorUGCTokensModernized = {
|
|
17
|
-
'editor.font.heading.h1': 'normal 600 1.71429em/1.16667 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
18
|
-
'editor.font.heading.h2': 'normal 600 1.42857em/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
19
|
-
'editor.font.heading.h3': 'normal 600 1.14286em/1.25 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
20
|
-
'editor.font.heading.h4': 'normal 600 1em/1.14286 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
21
|
-
'editor.font.heading.h5': 'normal 600 0.857143em/1.33333 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
22
|
-
'editor.font.heading.h6': 'normal 600 0.785714em/1.45455 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
23
|
-
'editor.font.body': 'normal 400 1em/1.714 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
17
|
+
'editor.font.heading.h1': 'normal 600 1.71429em/1.16667 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
18
|
+
'editor.font.heading.h2': 'normal 600 1.42857em/1.2 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
19
|
+
'editor.font.heading.h3': 'normal 600 1.14286em/1.25 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
20
|
+
'editor.font.heading.h4': 'normal 600 1em/1.14286 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
21
|
+
'editor.font.heading.h5': 'normal 600 0.857143em/1.33333 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
22
|
+
'editor.font.heading.h6': 'normal 600 0.785714em/1.45455 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
23
|
+
'editor.font.body': 'normal 400 1em/1.714 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
24
24
|
'editor.font.weight.heading.h1.bold': '700',
|
|
25
25
|
'editor.font.weight.heading.h2.bold': '700',
|
|
26
26
|
'editor.font.weight.heading.h3.bold': '700',
|
|
@@ -29,13 +29,13 @@ export var editorUGCTokensModernized = {
|
|
|
29
29
|
'editor.font.weight.heading.h6.bold': '700'
|
|
30
30
|
};
|
|
31
31
|
export var editorUGCTokensRefreshed = {
|
|
32
|
-
'editor.font.heading.h1': 'normal 600 1.71429em/1.16667 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
33
|
-
'editor.font.heading.h2': 'normal 600 1.42857em/1.2 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
34
|
-
'editor.font.heading.h3': 'normal 600 1.14286em/1.25 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
35
|
-
'editor.font.heading.h4': 'normal 600 1em/1.14286 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
36
|
-
'editor.font.heading.h5': 'normal 600 0.857143em/1.33333 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
37
|
-
'editor.font.heading.h6': 'normal 600 0.785714em/1.45455 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
38
|
-
'editor.font.body': 'normal 400 1em/1.714 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu,
|
|
32
|
+
'editor.font.heading.h1': 'normal 600 1.71429em/1.16667 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
33
|
+
'editor.font.heading.h2': 'normal 600 1.42857em/1.2 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
34
|
+
'editor.font.heading.h3': 'normal 600 1.14286em/1.25 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
35
|
+
'editor.font.heading.h4': 'normal 600 1em/1.14286 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
36
|
+
'editor.font.heading.h5': 'normal 600 0.857143em/1.33333 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
37
|
+
'editor.font.heading.h6': 'normal 600 0.785714em/1.45455 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
38
|
+
'editor.font.body': 'normal 400 1em/1.714 "Atlassian Sans", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Ubuntu, "Helvetica Neue", sans-serif',
|
|
39
39
|
'editor.font.weight.heading.h1.bold': '700',
|
|
40
40
|
'editor.font.weight.heading.h2.bold': '700',
|
|
41
41
|
'editor.font.weight.heading.h3.bold': '700',
|