@atlaskit/editor-common 107.2.1 → 107.2.3
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 +20 -0
- package/dist/cjs/analytics/types/enums.js +1 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/react-node-view/getInlineNodeViewProducer.js +1 -1
- package/dist/cjs/styles/shared/code-block.js +3 -4
- package/dist/cjs/ugc-tokens/get-editor-ugc-token.js +1 -6
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -2
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/react-node-view/getInlineNodeViewProducer.js +1 -1
- package/dist/es2019/styles/shared/code-block.js +0 -5
- package/dist/es2019/ugc-tokens/get-editor-ugc-token.js +2 -7
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -2
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/react-node-view/getInlineNodeViewProducer.js +1 -1
- package/dist/esm/styles/shared/code-block.js +3 -4
- package/dist/esm/ugc-tokens/get-editor-ugc-token.js +2 -7
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui-menu/ToolbarArrowKeyNavigationProvider/index.js +1 -2
- package/dist/types/analytics/types/enums.d.ts +1 -0
- package/dist/types/analytics/types/offline-editing-event.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/enums.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/offline-editing-event.d.ts +1 -1
- package/package.json +7 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 107.2.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#175286](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175286)
|
|
8
|
+
[`0e6d71c300392`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0e6d71c300392) -
|
|
9
|
+
[EDITOR-971] - ff cleanup on platform_editor_fix_code_block_bg_color_in_macro
|
|
10
|
+
|
|
11
|
+
## 107.2.2
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#175895](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175895)
|
|
16
|
+
[`6165a5dc5b6b1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6165a5dc5b6b1) -
|
|
17
|
+
Remove deprecated path for react version of mentions
|
|
18
|
+
- [#175899](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/175899)
|
|
19
|
+
[`a28d5dc386dbf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a28d5dc386dbf) -
|
|
20
|
+
Clean up platform_editor_fix_floating_toolbar_focus
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 107.2.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -92,6 +92,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
92
92
|
ACTION["MEDIA_LINK_TRANSFORMED"] = "mediaLinkTransformed";
|
|
93
93
|
ACTION["NODE_CONTENT_SANITIZED"] = "nodeContentSanitized";
|
|
94
94
|
ACTION["OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR"] = "offlineStorageTooManyRetriesError";
|
|
95
|
+
ACTION["OFFLINE_STORAGE_FAILED_STEPS"] = "offlineStorageFailedSteps";
|
|
95
96
|
ACTION["OFFLINE_STORAGE_STEPS_DATABASE_ERROR"] = "offlineStorageStepsDatabaseError";
|
|
96
97
|
ACTION["OFFLINE_STORAGE_RESYNC_ONLINE"] = "offlineStorageResyncOnline";
|
|
97
98
|
ACTION["OFFLINE_STORAGE_BROADCAST_CHANNEL_FIRST_UPDATE"] = "offlineStorageBroadcastChannelFirstUpdate";
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
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); }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "107.2.
|
|
19
|
+
var packageVersion = "107.2.2";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -31,7 +31,7 @@ var canRenderFallback = function canRenderFallback(node) {
|
|
|
31
31
|
|
|
32
32
|
// list of inline nodes with toDOM fallback implementations that can be virtualized. As
|
|
33
33
|
// additional nodes are converted they should be added here
|
|
34
|
-
var virtualizedNodeAllowlist = ['status', '
|
|
34
|
+
var virtualizedNodeAllowlist = ['status', 'emoji', 'inlineCard'];
|
|
35
35
|
function createNodeView(_ref) {
|
|
36
36
|
var nodeViewParams = _ref.nodeViewParams,
|
|
37
37
|
pmPluginFactoryParams = _ref.pmPluginFactoryParams,
|
|
@@ -8,8 +8,7 @@ exports.codeBlockSharedStyles = exports.codeBlockInListSafariFix = exports.CodeB
|
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
|
-
var
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
11
|
+
var _templateObject, _templateObject2;
|
|
13
12
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Should be safe to autofix, but ignoring for now */
|
|
14
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
14
|
var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
|
|
@@ -24,10 +23,10 @@ var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
|
|
|
24
23
|
CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: 'code-content__line-number--wrapped'
|
|
25
24
|
};
|
|
26
25
|
var codeBlockSharedStyles = exports.codeBlockSharedStyles = function codeBlockSharedStyles() {
|
|
27
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t
|
|
26
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t.code-block-gutter-pseudo-element::before {\n\t\t\tcontent: attr(data-label);\n\t\t}\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t/* This is a fix of marker of list item with code block.\n\t\t The list item marker in Chrome is aligned by the baseline of the text,\n\t\t that's why we need to add a text (content: \"1\") to the line number gutter to align\n\t\t the list item marker with the text.\n\t\t Without it, the list item marker will be aligned by the bottom of the code block. */\n\t\t.", "::before {\n\t\t\tcontent: '1';\n\t\t\tvisibility: hidden;\n\t\t\tfont-size: ", ";\n\t\t\tline-height: 1.5rem;\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", "var(--ds-border-radius, 3px)", _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.akEditorCodeFontFamily, _editorSharedStyles.akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, #091E420F)", "var(--ds-border-radius, 3px)", (0, _editorSharedStyles.overflowShadow)({
|
|
28
27
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
29
28
|
}), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, #091E420F)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, #172B4D)", "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, (0, _editorSharedStyles.relativeFontSizeToBase16)(14), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
|
|
30
29
|
};
|
|
31
30
|
|
|
32
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
33
|
-
var codeBlockInListSafariFix = exports.codeBlockInListSafariFix = (0, _react.css)(
|
|
32
|
+
var codeBlockInListSafariFix = exports.codeBlockInListSafariFix = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t::before {\n\t\tcontent: ' ';\n\t\tline-height: ", ";\n\t}\n\n\t> p:first-child,\n\t> .code-block:first-child,\n\t> .ProseMirror-gapcursor:first-child + .code-block {\n\t\tmargin-top: -", "em !important;\n\t}\n"])), _editorSharedStyles.akEditorLineHeight, _editorSharedStyles.akEditorLineHeight);
|
|
@@ -9,12 +9,7 @@ var _editorUgcTokenNames = require("./editor-ugc-token-names");
|
|
|
9
9
|
function editorUGCToken(path) {
|
|
10
10
|
var tokens;
|
|
11
11
|
if ((0, _platformFeatureFlags.fg)('platform_editor_typography_ugc')) {
|
|
12
|
-
|
|
13
|
-
if ((0, _platformFeatureFlags.fg)('platform-dst-jira-web-fonts') || (0, _platformFeatureFlags.fg)('confluence_typography_refreshed') || (0, _platformFeatureFlags.fg)('atlas_editor_typography_refreshed')) {
|
|
14
|
-
tokens = _editorUgcTokenNames.editorUGCTokensRefreshed;
|
|
15
|
-
} else {
|
|
16
|
-
tokens = _editorUgcTokenNames.editorUGCTokensModernized;
|
|
17
|
-
}
|
|
12
|
+
tokens = _editorUgcTokenNames.editorUGCTokensRefreshed;
|
|
18
13
|
} else {
|
|
19
14
|
tokens = _editorUgcTokenNames.editorUGCTokens;
|
|
20
15
|
}
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
23
23
|
* @jsx jsx
|
|
24
24
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
25
25
|
var packageName = "@atlaskit/editor-common";
|
|
26
|
-
var packageVersion = "107.2.
|
|
26
|
+
var packageVersion = "107.2.2";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -7,7 +7,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.ToolbarArrowKeyNavigationProvider = exports.KeyDownHandlerContext = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
10
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
12
11
|
var _elementBrowser = require("../../element-browser");
|
|
13
12
|
var _messages = require("../../messages");
|
|
@@ -222,7 +221,7 @@ var ToolbarArrowKeyNavigationProvider = exports.ToolbarArrowKeyNavigationProvide
|
|
|
222
221
|
// Since here we programmatically focus the first button in the toolbar (as suppose to keyboard navigation), browser does not always force focus-visible to true
|
|
223
222
|
// which is why the first button in the toolbar is not shown with focus ring
|
|
224
223
|
// The workaround is add a new classname so we add back focus ring when the button is focused
|
|
225
|
-
if (((_filteredFocusableEle8 = filteredFocusableElements[0]) === null || _filteredFocusableEle8 === void 0 ? void 0 : _filteredFocusableEle8.tagName) === 'BUTTON'
|
|
224
|
+
if (((_filteredFocusableEle8 = filteredFocusableElements[0]) === null || _filteredFocusableEle8 === void 0 ? void 0 : _filteredFocusableEle8.tagName) === 'BUTTON') {
|
|
226
225
|
filteredFocusableElements[0].classList.add('first-floating-toolbar-button');
|
|
227
226
|
}
|
|
228
227
|
(_filteredFocusableEle9 = filteredFocusableElements[0]) === null || _filteredFocusableEle9 === void 0 || _filteredFocusableEle9.scrollIntoView({
|
|
@@ -86,6 +86,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
86
86
|
ACTION["MEDIA_LINK_TRANSFORMED"] = "mediaLinkTransformed";
|
|
87
87
|
ACTION["NODE_CONTENT_SANITIZED"] = "nodeContentSanitized";
|
|
88
88
|
ACTION["OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR"] = "offlineStorageTooManyRetriesError";
|
|
89
|
+
ACTION["OFFLINE_STORAGE_FAILED_STEPS"] = "offlineStorageFailedSteps";
|
|
89
90
|
ACTION["OFFLINE_STORAGE_STEPS_DATABASE_ERROR"] = "offlineStorageStepsDatabaseError";
|
|
90
91
|
ACTION["OFFLINE_STORAGE_RESYNC_ONLINE"] = "offlineStorageResyncOnline";
|
|
91
92
|
ACTION["OFFLINE_STORAGE_BROADCAST_CHANNEL_FIRST_UPDATE"] = "offlineStorageBroadcastChannelFirstUpdate";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isFedRamp } from './environment';
|
|
2
2
|
const SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
3
3
|
const packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
4
|
-
const packageVersion = "107.2.
|
|
4
|
+
const packageVersion = "107.2.2";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -23,7 +23,7 @@ const canRenderFallback = node => {
|
|
|
23
23
|
|
|
24
24
|
// list of inline nodes with toDOM fallback implementations that can be virtualized. As
|
|
25
25
|
// additional nodes are converted they should be added here
|
|
26
|
-
const virtualizedNodeAllowlist = ['status', '
|
|
26
|
+
const virtualizedNodeAllowlist = ['status', 'emoji', 'inlineCard'];
|
|
27
27
|
function createNodeView({
|
|
28
28
|
nodeViewParams,
|
|
29
29
|
pmPluginFactoryParams,
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { akEditorCodeFontFamily, akEditorLineHeight, akEditorTableCellMinWidth, blockNodesVerticalMargin, overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
export const CodeBlockSharedCssClassName = {
|
|
7
6
|
CODEBLOCK_CONTAINER: 'code-block',
|
|
8
7
|
CODEBLOCK_START: 'code-block--start',
|
|
@@ -49,10 +48,6 @@ export const codeBlockSharedStyles = () => css`
|
|
|
49
48
|
cursor: pointer;
|
|
50
49
|
clear: both;
|
|
51
50
|
|
|
52
|
-
${fg('platform_editor_fix_code_block_bg_color_in_macro') ? css`` : css`
|
|
53
|
-
--ds--code--bg-color: transparent;
|
|
54
|
-
`}
|
|
55
|
-
|
|
56
51
|
.code-block-gutter-pseudo-element::before {
|
|
57
52
|
content: attr(data-label);
|
|
58
53
|
}
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
-
import { editorUGCTokens,
|
|
2
|
+
import { editorUGCTokens, editorUGCTokensRefreshed } from './editor-ugc-token-names';
|
|
3
3
|
function editorUGCToken(path) {
|
|
4
4
|
let tokens;
|
|
5
5
|
if (fg('platform_editor_typography_ugc')) {
|
|
6
|
-
|
|
7
|
-
if (fg('platform-dst-jira-web-fonts') || fg('confluence_typography_refreshed') || fg('atlas_editor_typography_refreshed')) {
|
|
8
|
-
tokens = editorUGCTokensRefreshed;
|
|
9
|
-
} else {
|
|
10
|
-
tokens = editorUGCTokensModernized;
|
|
11
|
-
}
|
|
6
|
+
tokens = editorUGCTokensRefreshed;
|
|
12
7
|
} else {
|
|
13
8
|
tokens = editorUGCTokens;
|
|
14
9
|
}
|
|
@@ -13,7 +13,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
14
|
import Layer from '../Layer';
|
|
15
15
|
const packageName = "@atlaskit/editor-common";
|
|
16
|
-
const packageVersion = "107.2.
|
|
16
|
+
const packageVersion = "107.2.2";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -7,7 +7,6 @@ import React, { useCallback, useLayoutEffect, useMemo, useRef } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
11
|
import { ELEMENT_BROWSER_ID } from '../../element-browser';
|
|
13
12
|
import { fullPageMessages } from '../../messages';
|
|
@@ -214,7 +213,7 @@ export const ToolbarArrowKeyNavigationProvider = ({
|
|
|
214
213
|
// Since here we programmatically focus the first button in the toolbar (as suppose to keyboard navigation), browser does not always force focus-visible to true
|
|
215
214
|
// which is why the first button in the toolbar is not shown with focus ring
|
|
216
215
|
// The workaround is add a new classname so we add back focus ring when the button is focused
|
|
217
|
-
if (((_filteredFocusableEle8 = filteredFocusableElements[0]) === null || _filteredFocusableEle8 === void 0 ? void 0 : _filteredFocusableEle8.tagName) === 'BUTTON'
|
|
216
|
+
if (((_filteredFocusableEle8 = filteredFocusableElements[0]) === null || _filteredFocusableEle8 === void 0 ? void 0 : _filteredFocusableEle8.tagName) === 'BUTTON') {
|
|
218
217
|
filteredFocusableElements[0].classList.add('first-floating-toolbar-button');
|
|
219
218
|
}
|
|
220
219
|
(_filteredFocusableEle9 = filteredFocusableElements[0]) === null || _filteredFocusableEle9 === void 0 ? void 0 : _filteredFocusableEle9.scrollIntoView({
|
|
@@ -86,6 +86,7 @@ export var ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
86
86
|
ACTION["MEDIA_LINK_TRANSFORMED"] = "mediaLinkTransformed";
|
|
87
87
|
ACTION["NODE_CONTENT_SANITIZED"] = "nodeContentSanitized";
|
|
88
88
|
ACTION["OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR"] = "offlineStorageTooManyRetriesError";
|
|
89
|
+
ACTION["OFFLINE_STORAGE_FAILED_STEPS"] = "offlineStorageFailedSteps";
|
|
89
90
|
ACTION["OFFLINE_STORAGE_STEPS_DATABASE_ERROR"] = "offlineStorageStepsDatabaseError";
|
|
90
91
|
ACTION["OFFLINE_STORAGE_RESYNC_ONLINE"] = "offlineStorageResyncOnline";
|
|
91
92
|
ACTION["OFFLINE_STORAGE_BROADCAST_CHANNEL_FIRST_UPDATE"] = "offlineStorageBroadcastChannelFirstUpdate";
|
|
@@ -7,7 +7,7 @@ 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 = "107.2.
|
|
10
|
+
var packageVersion = "107.2.2";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -26,7 +26,7 @@ var canRenderFallback = function canRenderFallback(node) {
|
|
|
26
26
|
|
|
27
27
|
// list of inline nodes with toDOM fallback implementations that can be virtualized. As
|
|
28
28
|
// additional nodes are converted they should be added here
|
|
29
|
-
var virtualizedNodeAllowlist = ['status', '
|
|
29
|
+
var virtualizedNodeAllowlist = ['status', 'emoji', 'inlineCard'];
|
|
30
30
|
function createNodeView(_ref) {
|
|
31
31
|
var nodeViewParams = _ref.nodeViewParams,
|
|
32
32
|
pmPluginFactoryParams = _ref.pmPluginFactoryParams,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2
|
|
2
|
+
var _templateObject, _templateObject2;
|
|
3
3
|
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Should be safe to autofix, but ignoring for now */
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { akEditorCodeFontFamily, akEditorLineHeight, akEditorTableCellMinWidth, blockNodesVerticalMargin, overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
export var CodeBlockSharedCssClassName = {
|
|
9
8
|
CODEBLOCK_CONTAINER: 'code-block',
|
|
10
9
|
CODEBLOCK_START: 'code-block--start',
|
|
@@ -17,10 +16,10 @@ export var CodeBlockSharedCssClassName = {
|
|
|
17
16
|
CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: 'code-content__line-number--wrapped'
|
|
18
17
|
};
|
|
19
18
|
export var codeBlockSharedStyles = function codeBlockSharedStyles() {
|
|
20
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t
|
|
19
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t.code-block-gutter-pseudo-element::before {\n\t\t\tcontent: attr(data-label);\n\t\t}\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t/* This is a fix of marker of list item with code block.\n\t\t The list item marker in Chrome is aligned by the baseline of the text,\n\t\t that's why we need to add a text (content: \"1\") to the line number gutter to align\n\t\t the list item marker with the text.\n\t\t Without it, the list item marker will be aligned by the bottom of the code block. */\n\t\t.", "::before {\n\t\t\tcontent: '1';\n\t\t\tvisibility: hidden;\n\t\t\tfont-size: ", ";\n\t\t\tline-height: 1.5rem;\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, akEditorCodeFontFamily, akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, #091E420F)", "var(--ds-border-radius, 3px)", overflowShadow({
|
|
21
20
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
22
21
|
}), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, #091E420F)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, #172B4D)", "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, relativeFontSizeToBase16(14), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
|
|
23
22
|
};
|
|
24
23
|
|
|
25
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
26
|
-
export var codeBlockInListSafariFix = css(
|
|
25
|
+
export var codeBlockInListSafariFix = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t::before {\n\t\tcontent: ' ';\n\t\tline-height: ", ";\n\t}\n\n\t> p:first-child,\n\t> .code-block:first-child,\n\t> .ProseMirror-gapcursor:first-child + .code-block {\n\t\tmargin-top: -", "em !important;\n\t}\n"])), akEditorLineHeight, akEditorLineHeight);
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
2
|
-
import { editorUGCTokens,
|
|
2
|
+
import { editorUGCTokens, editorUGCTokensRefreshed } from './editor-ugc-token-names';
|
|
3
3
|
function editorUGCToken(path) {
|
|
4
4
|
var tokens;
|
|
5
5
|
if (fg('platform_editor_typography_ugc')) {
|
|
6
|
-
|
|
7
|
-
if (fg('platform-dst-jira-web-fonts') || fg('confluence_typography_refreshed') || fg('atlas_editor_typography_refreshed')) {
|
|
8
|
-
tokens = editorUGCTokensRefreshed;
|
|
9
|
-
} else {
|
|
10
|
-
tokens = editorUGCTokensModernized;
|
|
11
|
-
}
|
|
6
|
+
tokens = editorUGCTokensRefreshed;
|
|
12
7
|
} else {
|
|
13
8
|
tokens = editorUGCTokens;
|
|
14
9
|
}
|
|
@@ -20,7 +20,7 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
20
20
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
21
21
|
import Layer from '../Layer';
|
|
22
22
|
var packageName = "@atlaskit/editor-common";
|
|
23
|
-
var packageVersion = "107.2.
|
|
23
|
+
var packageVersion = "107.2.2";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -7,7 +7,6 @@ import React, { useCallback, useLayoutEffect, useMemo, useRef } from 'react';
|
|
|
7
7
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
12
11
|
import { ELEMENT_BROWSER_ID } from '../../element-browser';
|
|
13
12
|
import { fullPageMessages } from '../../messages';
|
|
@@ -214,7 +213,7 @@ export var ToolbarArrowKeyNavigationProvider = function ToolbarArrowKeyNavigatio
|
|
|
214
213
|
// Since here we programmatically focus the first button in the toolbar (as suppose to keyboard navigation), browser does not always force focus-visible to true
|
|
215
214
|
// which is why the first button in the toolbar is not shown with focus ring
|
|
216
215
|
// The workaround is add a new classname so we add back focus ring when the button is focused
|
|
217
|
-
if (((_filteredFocusableEle8 = filteredFocusableElements[0]) === null || _filteredFocusableEle8 === void 0 ? void 0 : _filteredFocusableEle8.tagName) === 'BUTTON'
|
|
216
|
+
if (((_filteredFocusableEle8 = filteredFocusableElements[0]) === null || _filteredFocusableEle8 === void 0 ? void 0 : _filteredFocusableEle8.tagName) === 'BUTTON') {
|
|
218
217
|
filteredFocusableElements[0].classList.add('first-floating-toolbar-button');
|
|
219
218
|
}
|
|
220
219
|
(_filteredFocusableEle9 = filteredFocusableElements[0]) === null || _filteredFocusableEle9 === void 0 || _filteredFocusableEle9.scrollIntoView({
|
|
@@ -85,6 +85,7 @@ export declare enum ACTION {
|
|
|
85
85
|
MEDIA_LINK_TRANSFORMED = "mediaLinkTransformed",
|
|
86
86
|
NODE_CONTENT_SANITIZED = "nodeContentSanitized",
|
|
87
87
|
OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR = "offlineStorageTooManyRetriesError",
|
|
88
|
+
OFFLINE_STORAGE_FAILED_STEPS = "offlineStorageFailedSteps",
|
|
88
89
|
OFFLINE_STORAGE_STEPS_DATABASE_ERROR = "offlineStorageStepsDatabaseError",
|
|
89
90
|
OFFLINE_STORAGE_RESYNC_ONLINE = "offlineStorageResyncOnline",
|
|
90
91
|
OFFLINE_STORAGE_BROADCAST_CHANNEL_FIRST_UPDATE = "offlineStorageBroadcastChannelFirstUpdate",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import type { TrackAEP } from './utils';
|
|
3
|
-
type OfflineEditingAEP = TrackAEP<ACTION.OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR | ACTION.OFFLINE_STORAGE_STEPS_DATABASE_ERROR | ACTION.OFFLINE_STORAGE_RESYNC_ONLINE | ACTION.OFFLINE_STORAGE_BROADCAST_CHANNEL_FIRST_UPDATE, ACTION_SUBJECT.OFFLINE_EDITING, ACTION_SUBJECT_ID.OFFLINE_EDITING, {
|
|
3
|
+
type OfflineEditingAEP = TrackAEP<ACTION.OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR | ACTION.OFFLINE_STORAGE_STEPS_DATABASE_ERROR | ACTION.OFFLINE_STORAGE_RESYNC_ONLINE | ACTION.OFFLINE_STORAGE_BROADCAST_CHANNEL_FIRST_UPDATE | ACTION.OFFLINE_STORAGE_FAILED_STEPS, ACTION_SUBJECT.OFFLINE_EDITING, ACTION_SUBJECT_ID.OFFLINE_EDITING, {
|
|
4
4
|
errorMessage?: string;
|
|
5
5
|
version?: number;
|
|
6
6
|
stepsCount?: number;
|
|
@@ -85,6 +85,7 @@ export declare enum ACTION {
|
|
|
85
85
|
MEDIA_LINK_TRANSFORMED = "mediaLinkTransformed",
|
|
86
86
|
NODE_CONTENT_SANITIZED = "nodeContentSanitized",
|
|
87
87
|
OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR = "offlineStorageTooManyRetriesError",
|
|
88
|
+
OFFLINE_STORAGE_FAILED_STEPS = "offlineStorageFailedSteps",
|
|
88
89
|
OFFLINE_STORAGE_STEPS_DATABASE_ERROR = "offlineStorageStepsDatabaseError",
|
|
89
90
|
OFFLINE_STORAGE_RESYNC_ONLINE = "offlineStorageResyncOnline",
|
|
90
91
|
OFFLINE_STORAGE_BROADCAST_CHANNEL_FIRST_UPDATE = "offlineStorageBroadcastChannelFirstUpdate",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
2
|
import type { TrackAEP } from './utils';
|
|
3
|
-
type OfflineEditingAEP = TrackAEP<ACTION.OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR | ACTION.OFFLINE_STORAGE_STEPS_DATABASE_ERROR | ACTION.OFFLINE_STORAGE_RESYNC_ONLINE | ACTION.OFFLINE_STORAGE_BROADCAST_CHANNEL_FIRST_UPDATE, ACTION_SUBJECT.OFFLINE_EDITING, ACTION_SUBJECT_ID.OFFLINE_EDITING, {
|
|
3
|
+
type OfflineEditingAEP = TrackAEP<ACTION.OFFLINE_STORAGE_TOO_MANY_RETRIES_ERROR | ACTION.OFFLINE_STORAGE_STEPS_DATABASE_ERROR | ACTION.OFFLINE_STORAGE_RESYNC_ONLINE | ACTION.OFFLINE_STORAGE_BROADCAST_CHANNEL_FIRST_UPDATE | ACTION.OFFLINE_STORAGE_FAILED_STEPS, ACTION_SUBJECT.OFFLINE_EDITING, ACTION_SUBJECT_ID.OFFLINE_EDITING, {
|
|
4
4
|
errorMessage?: string;
|
|
5
5
|
version?: number;
|
|
6
6
|
stepsCount?: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "107.2.
|
|
3
|
+
"version": "107.2.3",
|
|
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/"
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
142
142
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
143
143
|
"@atlaskit/emoji": "^69.3.0",
|
|
144
|
-
"@atlaskit/icon": "^27.
|
|
144
|
+
"@atlaskit/icon": "^27.2.0",
|
|
145
145
|
"@atlaskit/icon-object": "^7.1.0",
|
|
146
146
|
"@atlaskit/link": "^3.2.0",
|
|
147
147
|
"@atlaskit/link-datasource": "^4.11.0",
|
|
@@ -152,25 +152,25 @@
|
|
|
152
152
|
"@atlaskit/media-common": "^12.2.0",
|
|
153
153
|
"@atlaskit/media-file-preview": "^0.11.0",
|
|
154
154
|
"@atlaskit/media-picker": "^70.0.0",
|
|
155
|
-
"@atlaskit/media-ui": "^28.
|
|
155
|
+
"@atlaskit/media-ui": "^28.5.0",
|
|
156
156
|
"@atlaskit/media-viewer": "^52.3.0",
|
|
157
157
|
"@atlaskit/mention": "^24.2.0",
|
|
158
158
|
"@atlaskit/menu": "^8.0.0",
|
|
159
159
|
"@atlaskit/onboarding": "^14.2.0",
|
|
160
160
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
161
161
|
"@atlaskit/platform-feature-flags-react": "^0.2.0",
|
|
162
|
-
"@atlaskit/popper": "^7.
|
|
162
|
+
"@atlaskit/popper": "^7.1.0",
|
|
163
163
|
"@atlaskit/primitives": "^14.9.0",
|
|
164
164
|
"@atlaskit/profilecard": "^23.21.0",
|
|
165
|
-
"@atlaskit/react-ufo": "^3.
|
|
165
|
+
"@atlaskit/react-ufo": "^3.14.0",
|
|
166
166
|
"@atlaskit/section-message": "^8.2.0",
|
|
167
|
-
"@atlaskit/smart-card": "^38.
|
|
167
|
+
"@atlaskit/smart-card": "^38.16.0",
|
|
168
168
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
169
169
|
"@atlaskit/spinner": "^18.0.0",
|
|
170
170
|
"@atlaskit/task-decision": "^19.2.0",
|
|
171
171
|
"@atlaskit/textfield": "^8.0.0",
|
|
172
172
|
"@atlaskit/theme": "^18.0.0",
|
|
173
|
-
"@atlaskit/tmp-editor-statsig": "^8.
|
|
173
|
+
"@atlaskit/tmp-editor-statsig": "^8.3.0",
|
|
174
174
|
"@atlaskit/tokens": "^5.4.0",
|
|
175
175
|
"@atlaskit/tooltip": "^20.3.0",
|
|
176
176
|
"@atlaskit/width-detector": "^5.0.0",
|
|
@@ -308,9 +308,6 @@
|
|
|
308
308
|
"platform-dst-jira-web-fonts": {
|
|
309
309
|
"type": "boolean"
|
|
310
310
|
},
|
|
311
|
-
"confluence_typography_refreshed": {
|
|
312
|
-
"type": "boolean"
|
|
313
|
-
},
|
|
314
311
|
"atlas_editor_typography_refreshed": {
|
|
315
312
|
"type": "boolean"
|
|
316
313
|
},
|
|
@@ -344,9 +341,6 @@
|
|
|
344
341
|
"platform_editor_bordered_panel_nested_in_table": {
|
|
345
342
|
"type": "boolean"
|
|
346
343
|
},
|
|
347
|
-
"platform_editor_fix_code_block_bg_color_in_macro": {
|
|
348
|
-
"type": "boolean"
|
|
349
|
-
},
|
|
350
344
|
"confluence_preload_extension_providers": {
|
|
351
345
|
"type": "boolean"
|
|
352
346
|
},
|
|
@@ -368,9 +362,6 @@
|
|
|
368
362
|
"should-render-to-parent-should-be-true-editor": {
|
|
369
363
|
"type": "boolean"
|
|
370
364
|
},
|
|
371
|
-
"platform_editor_fix_floating_toolbar_focus": {
|
|
372
|
-
"type": "boolean"
|
|
373
|
-
},
|
|
374
365
|
"confluence_connect_macro_preset_height": {
|
|
375
366
|
"type": "boolean"
|
|
376
367
|
},
|