@atlaskit/editor-common 91.1.1 → 91.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 +21 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/blockquote.js +0 -1
- package/dist/cjs/styles/shared/code-block.js +1 -1
- package/dist/cjs/types/index.js +6 -0
- package/dist/cjs/types/toolbar.js +17 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/blockquote.js +0 -1
- package/dist/es2019/styles/shared/code-block.js +1 -0
- package/dist/es2019/types/index.js +1 -1
- package/dist/es2019/types/toolbar.js +18 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/blockquote.js +0 -1
- package/dist/esm/styles/shared/code-block.js +1 -1
- package/dist/esm/types/index.js +1 -1
- package/dist/esm/types/toolbar.js +18 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/toolbar.d.ts +15 -0
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/dist/types-ts4.5/types/toolbar.d.ts +15 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 91.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#146455](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/146455)
|
|
8
|
+
[`b692485729f1c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b692485729f1c) -
|
|
9
|
+
improve comment editor toolbar responsiveness
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 91.1.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#145623](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/145623)
|
|
20
|
+
[`f7a9eb3237204`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/f7a9eb3237204) -
|
|
21
|
+
[ux] [ED-24821] This change prevents codeblocks from stretching up when they are nested with
|
|
22
|
+
floating images inside blockquotes or panels.
|
|
23
|
+
|
|
3
24
|
## 91.1.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -17,7 +17,7 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return
|
|
|
17
17
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
18
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
19
19
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
20
|
-
var packageVersion = "91.
|
|
20
|
+
var packageVersion = "91.2.0";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -15,7 +15,6 @@ var blockquoteSharedStyles = exports.blockquoteSharedStyles = (0, _react.css)({
|
|
|
15
15
|
boxSizing: 'border-box',
|
|
16
16
|
color: 'inherit',
|
|
17
17
|
width: '100%',
|
|
18
|
-
clear: 'both',
|
|
19
18
|
display: 'inline-block',
|
|
20
19
|
paddingLeft: "var(--ds-space-200, 16px)",
|
|
21
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -29,7 +29,7 @@ var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
|
|
|
29
29
|
CODEBLOCK_LINE_NUMBER_GUTTER_FG: 'line-number-gutter--fg'
|
|
30
30
|
};
|
|
31
31
|
var codeBlockSharedStyles = exports.codeBlockSharedStyles = function codeBlockSharedStyles() {
|
|
32
|
-
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\n\t\t--ds--code--bg-color: transparent;\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\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\t// relative position set so number gutter remains absolute on horizontal scroll.\n\t\t\tposition: relative;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\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: 0px ", ";\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.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\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\twhite-space: pre;\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\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_FG_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, transparent)", "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, ".concat(_colors.N20, ")"), "var(--ds-border-radius, 3px)", (0, _editorSharedStyles.overflowShadow)({
|
|
32
|
+
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--ds--code--bg-color: transparent;\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\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\t// relative position set so number gutter remains absolute on horizontal scroll.\n\t\t\tposition: relative;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\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: 0px ", ";\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.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\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\twhite-space: pre;\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\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_FG_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, transparent)", "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, ".concat(_colors.N20, ")"), "var(--ds-border-radius, 3px)", (0, _editorSharedStyles.overflowShadow)({
|
|
33
33
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
34
34
|
}), "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_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, ".concat(_colors.N30, ")"), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, ".concat(_colors.N400, ")"), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER_FG, "var(--ds-background-neutral, ".concat(_colors.N30, ")"), "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, ".concat(_colors.N800, ")"), "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-text, ".concat(_colors.N800, ")"), "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
|
|
35
35
|
};
|
package/dist/cjs/types/index.js
CHANGED
|
@@ -40,6 +40,12 @@ Object.defineProperty(exports, "ToolbarWidthsFullPageNext", {
|
|
|
40
40
|
return _toolbar.ToolbarWidthsFullPageNext;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
+
Object.defineProperty(exports, "ToolbarWidthsNext", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _toolbar.ToolbarWidthsNext;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
43
49
|
var _annotation = require("./annotation");
|
|
44
50
|
var _toolbar = require("./toolbar");
|
|
45
51
|
var SortOrder = exports.SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.ToolbarWidthsFullPageNext = exports.ToolbarWidthsFullPage = exports.ToolbarWidths = exports.ToolbarSize = void 0;
|
|
6
|
+
exports.ToolbarWidthsNext = exports.ToolbarWidthsFullPageNext = exports.ToolbarWidthsFullPage = exports.ToolbarWidths = exports.ToolbarSize = void 0;
|
|
7
7
|
var ToolbarSize = exports.ToolbarSize = /*#__PURE__*/function (ToolbarSize) {
|
|
8
8
|
ToolbarSize[ToolbarSize["XXL"] = 6] = "XXL";
|
|
9
9
|
ToolbarSize[ToolbarSize["XL"] = 5] = "XL";
|
|
@@ -13,6 +13,10 @@ var ToolbarSize = exports.ToolbarSize = /*#__PURE__*/function (ToolbarSize) {
|
|
|
13
13
|
ToolbarSize[ToolbarSize["XXXS"] = 1] = "XXXS";
|
|
14
14
|
return ToolbarSize;
|
|
15
15
|
}({});
|
|
16
|
+
/** @deprecated
|
|
17
|
+
* To be removed as part of ED-25129 in favour of ToolbarWidthsNext along with references
|
|
18
|
+
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
19
|
+
*/
|
|
16
20
|
var ToolbarWidths = exports.ToolbarWidths = /*#__PURE__*/function (ToolbarWidths) {
|
|
17
21
|
ToolbarWidths[ToolbarWidths["XXL"] = 610] = "XXL";
|
|
18
22
|
ToolbarWidths[ToolbarWidths["XL"] = 540] = "XL";
|
|
@@ -21,6 +25,18 @@ var ToolbarWidths = exports.ToolbarWidths = /*#__PURE__*/function (ToolbarWidths
|
|
|
21
25
|
ToolbarWidths[ToolbarWidths["S"] = 410] = "S";
|
|
22
26
|
return ToolbarWidths;
|
|
23
27
|
}({});
|
|
28
|
+
var ToolbarWidthsNext = exports.ToolbarWidthsNext = /*#__PURE__*/function (ToolbarWidthsNext) {
|
|
29
|
+
ToolbarWidthsNext[ToolbarWidthsNext["XXL"] = 768] = "XXL";
|
|
30
|
+
ToolbarWidthsNext[ToolbarWidthsNext["XL"] = 576] = "XL";
|
|
31
|
+
ToolbarWidthsNext[ToolbarWidthsNext["L"] = 460] = "L";
|
|
32
|
+
ToolbarWidthsNext[ToolbarWidthsNext["M"] = 450] = "M";
|
|
33
|
+
ToolbarWidthsNext[ToolbarWidthsNext["S"] = 410] = "S";
|
|
34
|
+
return ToolbarWidthsNext;
|
|
35
|
+
}({});
|
|
36
|
+
/** @deprecated
|
|
37
|
+
* To be removed as part of ED-25129 in favour of ToolbarWidthsFullPageNext along with references
|
|
38
|
+
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
39
|
+
*/
|
|
24
40
|
var ToolbarWidthsFullPage = exports.ToolbarWidthsFullPage = /*#__PURE__*/function (ToolbarWidthsFullPage) {
|
|
25
41
|
ToolbarWidthsFullPage[ToolbarWidthsFullPage["XXL"] = 650] = "XXL";
|
|
26
42
|
ToolbarWidthsFullPage[ToolbarWidthsFullPage["XL"] = 580] = "XL";
|
|
@@ -25,7 +25,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
25
25
|
* @jsx jsx
|
|
26
26
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
27
27
|
var packageName = "@atlaskit/editor-common";
|
|
28
|
-
var packageVersion = "91.
|
|
28
|
+
var packageVersion = "91.2.0";
|
|
29
29
|
var halfFocusRing = 1;
|
|
30
30
|
var dropOffset = '0, 8';
|
|
31
31
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -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 = "91.
|
|
4
|
+
const packageVersion = "91.2.0";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -8,7 +8,6 @@ export const blockquoteSharedStyles = css({
|
|
|
8
8
|
boxSizing: 'border-box',
|
|
9
9
|
color: 'inherit',
|
|
10
10
|
width: '100%',
|
|
11
|
-
clear: 'both',
|
|
12
11
|
display: 'inline-block',
|
|
13
12
|
paddingLeft: "var(--ds-space-200, 16px)",
|
|
14
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -5,7 +5,7 @@ export let SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
|
5
5
|
return SortOrder;
|
|
6
6
|
}({});
|
|
7
7
|
export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation';
|
|
8
|
-
export { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext } from './toolbar';
|
|
8
|
+
export { ToolbarSize, ToolbarWidths, ToolbarWidthsNext, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext } from './toolbar';
|
|
9
9
|
|
|
10
10
|
// DEPREACTED
|
|
11
11
|
|
|
@@ -7,6 +7,11 @@ export let ToolbarSize = /*#__PURE__*/function (ToolbarSize) {
|
|
|
7
7
|
ToolbarSize[ToolbarSize["XXXS"] = 1] = "XXXS";
|
|
8
8
|
return ToolbarSize;
|
|
9
9
|
}({});
|
|
10
|
+
|
|
11
|
+
/** @deprecated
|
|
12
|
+
* To be removed as part of ED-25129 in favour of ToolbarWidthsNext along with references
|
|
13
|
+
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
14
|
+
*/
|
|
10
15
|
export let ToolbarWidths = /*#__PURE__*/function (ToolbarWidths) {
|
|
11
16
|
ToolbarWidths[ToolbarWidths["XXL"] = 610] = "XXL";
|
|
12
17
|
ToolbarWidths[ToolbarWidths["XL"] = 540] = "XL";
|
|
@@ -15,6 +20,19 @@ export let ToolbarWidths = /*#__PURE__*/function (ToolbarWidths) {
|
|
|
15
20
|
ToolbarWidths[ToolbarWidths["S"] = 410] = "S";
|
|
16
21
|
return ToolbarWidths;
|
|
17
22
|
}({});
|
|
23
|
+
export let ToolbarWidthsNext = /*#__PURE__*/function (ToolbarWidthsNext) {
|
|
24
|
+
ToolbarWidthsNext[ToolbarWidthsNext["XXL"] = 768] = "XXL";
|
|
25
|
+
ToolbarWidthsNext[ToolbarWidthsNext["XL"] = 576] = "XL";
|
|
26
|
+
ToolbarWidthsNext[ToolbarWidthsNext["L"] = 460] = "L";
|
|
27
|
+
ToolbarWidthsNext[ToolbarWidthsNext["M"] = 450] = "M";
|
|
28
|
+
ToolbarWidthsNext[ToolbarWidthsNext["S"] = 410] = "S";
|
|
29
|
+
return ToolbarWidthsNext;
|
|
30
|
+
}({});
|
|
31
|
+
|
|
32
|
+
/** @deprecated
|
|
33
|
+
* To be removed as part of ED-25129 in favour of ToolbarWidthsFullPageNext along with references
|
|
34
|
+
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
35
|
+
*/
|
|
18
36
|
export let ToolbarWidthsFullPage = /*#__PURE__*/function (ToolbarWidthsFullPage) {
|
|
19
37
|
ToolbarWidthsFullPage[ToolbarWidthsFullPage["XXL"] = 650] = "XXL";
|
|
20
38
|
ToolbarWidthsFullPage[ToolbarWidthsFullPage["XL"] = 580] = "XL";
|
|
@@ -14,7 +14,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
14
14
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
15
15
|
import Layer from '../Layer';
|
|
16
16
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "91.
|
|
17
|
+
const packageVersion = "91.2.0";
|
|
18
18
|
const halfFocusRing = 1;
|
|
19
19
|
const dropOffset = '0, 8';
|
|
20
20
|
class DropList extends Component {
|
|
@@ -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 = "91.
|
|
10
|
+
var packageVersion = "91.2.0";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// TODO: Sanitise the URL instead of just removing it
|
|
@@ -8,7 +8,6 @@ export var blockquoteSharedStyles = css({
|
|
|
8
8
|
boxSizing: 'border-box',
|
|
9
9
|
color: 'inherit',
|
|
10
10
|
width: '100%',
|
|
11
|
-
clear: 'both',
|
|
12
11
|
display: 'inline-block',
|
|
13
12
|
paddingLeft: "var(--ds-space-200, 16px)",
|
|
14
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
@@ -22,7 +22,7 @@ export var CodeBlockSharedCssClassName = {
|
|
|
22
22
|
CODEBLOCK_LINE_NUMBER_GUTTER_FG: 'line-number-gutter--fg'
|
|
23
23
|
};
|
|
24
24
|
export var codeBlockSharedStyles = function codeBlockSharedStyles() {
|
|
25
|
-
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\n\t\t--ds--code--bg-color: transparent;\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\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\t// relative position set so number gutter remains absolute on horizontal scroll.\n\t\t\tposition: relative;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\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: 0px ", ";\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.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\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\twhite-space: pre;\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\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_FG_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, transparent)", "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, akEditorCodeFontFamily, akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, ".concat(N20, ")"), "var(--ds-border-radius, 3px)", overflowShadow({
|
|
25
|
+
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--ds--code--bg-color: transparent;\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\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\t// relative position set so number gutter remains absolute on horizontal scroll.\n\t\t\tposition: relative;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\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: 0px ", ";\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.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\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\twhite-space: pre;\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\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_FG_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, transparent)", "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, akEditorCodeFontFamily, akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, ".concat(N20, ")"), "var(--ds-border-radius, 3px)", overflowShadow({
|
|
26
26
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
27
27
|
}), "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_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, ".concat(N30, ")"), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, ".concat(N400, ")"), relativeFontSizeToBase16(fontSize()), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER_FG, "var(--ds-background-neutral, ".concat(N30, ")"), "var(--ds-space-100, 8px)", relativeFontSizeToBase16(fontSize()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, ".concat(N800, ")"), "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(fontSize()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-text, ".concat(N800, ")"), "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(fontSize()), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, relativeFontSizeToBase16(fontSize()), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
|
|
28
28
|
};
|
package/dist/esm/types/index.js
CHANGED
|
@@ -5,7 +5,7 @@ export var SortOrder = /*#__PURE__*/function (SortOrder) {
|
|
|
5
5
|
return SortOrder;
|
|
6
6
|
}({});
|
|
7
7
|
export { AnnotationUpdateEmitter, AnnotationUpdateEvent } from './annotation';
|
|
8
|
-
export { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext } from './toolbar';
|
|
8
|
+
export { ToolbarSize, ToolbarWidths, ToolbarWidthsNext, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext } from './toolbar';
|
|
9
9
|
|
|
10
10
|
// DEPREACTED
|
|
11
11
|
|
|
@@ -7,6 +7,11 @@ export var ToolbarSize = /*#__PURE__*/function (ToolbarSize) {
|
|
|
7
7
|
ToolbarSize[ToolbarSize["XXXS"] = 1] = "XXXS";
|
|
8
8
|
return ToolbarSize;
|
|
9
9
|
}({});
|
|
10
|
+
|
|
11
|
+
/** @deprecated
|
|
12
|
+
* To be removed as part of ED-25129 in favour of ToolbarWidthsNext along with references
|
|
13
|
+
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
14
|
+
*/
|
|
10
15
|
export var ToolbarWidths = /*#__PURE__*/function (ToolbarWidths) {
|
|
11
16
|
ToolbarWidths[ToolbarWidths["XXL"] = 610] = "XXL";
|
|
12
17
|
ToolbarWidths[ToolbarWidths["XL"] = 540] = "XL";
|
|
@@ -15,6 +20,19 @@ export var ToolbarWidths = /*#__PURE__*/function (ToolbarWidths) {
|
|
|
15
20
|
ToolbarWidths[ToolbarWidths["S"] = 410] = "S";
|
|
16
21
|
return ToolbarWidths;
|
|
17
22
|
}({});
|
|
23
|
+
export var ToolbarWidthsNext = /*#__PURE__*/function (ToolbarWidthsNext) {
|
|
24
|
+
ToolbarWidthsNext[ToolbarWidthsNext["XXL"] = 768] = "XXL";
|
|
25
|
+
ToolbarWidthsNext[ToolbarWidthsNext["XL"] = 576] = "XL";
|
|
26
|
+
ToolbarWidthsNext[ToolbarWidthsNext["L"] = 460] = "L";
|
|
27
|
+
ToolbarWidthsNext[ToolbarWidthsNext["M"] = 450] = "M";
|
|
28
|
+
ToolbarWidthsNext[ToolbarWidthsNext["S"] = 410] = "S";
|
|
29
|
+
return ToolbarWidthsNext;
|
|
30
|
+
}({});
|
|
31
|
+
|
|
32
|
+
/** @deprecated
|
|
33
|
+
* To be removed as part of ED-25129 in favour of ToolbarWidthsFullPageNext along with references
|
|
34
|
+
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
35
|
+
*/
|
|
18
36
|
export var ToolbarWidthsFullPage = /*#__PURE__*/function (ToolbarWidthsFullPage) {
|
|
19
37
|
ToolbarWidthsFullPage[ToolbarWidthsFullPage["XXL"] = 650] = "XXL";
|
|
20
38
|
ToolbarWidthsFullPage[ToolbarWidthsFullPage["XL"] = 580] = "XL";
|
|
@@ -22,7 +22,7 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
22
22
|
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
23
23
|
import Layer from '../Layer';
|
|
24
24
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "91.
|
|
25
|
+
var packageVersion = "91.2.0";
|
|
26
26
|
var halfFocusRing = 1;
|
|
27
27
|
var dropOffset = '0, 8';
|
|
28
28
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -17,7 +17,7 @@ export type { MarkOptions, NodeOptions } from './copy-button';
|
|
|
17
17
|
export type { ContextPanelHandler } from './context-panel';
|
|
18
18
|
export type { EditorAppearance } from './editor-appearance';
|
|
19
19
|
export type { ToolbarUiComponentFactoryParams, ToolbarUIComponentFactory } from './toolbar';
|
|
20
|
-
export { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext, } from './toolbar';
|
|
20
|
+
export { ToolbarSize, ToolbarWidths, ToolbarWidthsNext, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext, } from './toolbar';
|
|
21
21
|
export type { UiComponentFactoryParams, UIComponentFactory, ReactHookFactory, } from './ui-components';
|
|
22
22
|
export type { EditorReactContext } from './editor-react-context';
|
|
23
23
|
export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin } from './plugin-factory';
|
|
@@ -8,6 +8,10 @@ export declare enum ToolbarSize {
|
|
|
8
8
|
S = 2,
|
|
9
9
|
XXXS = 1
|
|
10
10
|
}
|
|
11
|
+
/** @deprecated
|
|
12
|
+
* To be removed as part of ED-25129 in favour of ToolbarWidthsNext along with references
|
|
13
|
+
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
14
|
+
*/
|
|
11
15
|
export declare enum ToolbarWidths {
|
|
12
16
|
XXL = 610,
|
|
13
17
|
XL = 540,
|
|
@@ -15,6 +19,17 @@ export declare enum ToolbarWidths {
|
|
|
15
19
|
M = 450,
|
|
16
20
|
S = 410
|
|
17
21
|
}
|
|
22
|
+
export declare enum ToolbarWidthsNext {
|
|
23
|
+
XXL = 768,
|
|
24
|
+
XL = 576,
|
|
25
|
+
L = 460,
|
|
26
|
+
M = 450,
|
|
27
|
+
S = 410
|
|
28
|
+
}
|
|
29
|
+
/** @deprecated
|
|
30
|
+
* To be removed as part of ED-25129 in favour of ToolbarWidthsFullPageNext along with references
|
|
31
|
+
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
32
|
+
*/
|
|
18
33
|
export declare enum ToolbarWidthsFullPage {
|
|
19
34
|
XXL = 650,
|
|
20
35
|
XL = 580,
|
|
@@ -17,7 +17,7 @@ export type { MarkOptions, NodeOptions } from './copy-button';
|
|
|
17
17
|
export type { ContextPanelHandler } from './context-panel';
|
|
18
18
|
export type { EditorAppearance } from './editor-appearance';
|
|
19
19
|
export type { ToolbarUiComponentFactoryParams, ToolbarUIComponentFactory } from './toolbar';
|
|
20
|
-
export { ToolbarSize, ToolbarWidths, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext, } from './toolbar';
|
|
20
|
+
export { ToolbarSize, ToolbarWidths, ToolbarWidthsNext, ToolbarWidthsFullPage, ToolbarWidthsFullPageNext, } from './toolbar';
|
|
21
21
|
export type { UiComponentFactoryParams, UIComponentFactory, ReactHookFactory, } from './ui-components';
|
|
22
22
|
export type { EditorReactContext } from './editor-react-context';
|
|
23
23
|
export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin } from './plugin-factory';
|
|
@@ -8,6 +8,10 @@ export declare enum ToolbarSize {
|
|
|
8
8
|
S = 2,
|
|
9
9
|
XXXS = 1
|
|
10
10
|
}
|
|
11
|
+
/** @deprecated
|
|
12
|
+
* To be removed as part of ED-25129 in favour of ToolbarWidthsNext along with references
|
|
13
|
+
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
14
|
+
*/
|
|
11
15
|
export declare enum ToolbarWidths {
|
|
12
16
|
XXL = 610,
|
|
13
17
|
XL = 540,
|
|
@@ -15,6 +19,17 @@ export declare enum ToolbarWidths {
|
|
|
15
19
|
M = 450,
|
|
16
20
|
S = 410
|
|
17
21
|
}
|
|
22
|
+
export declare enum ToolbarWidthsNext {
|
|
23
|
+
XXL = 768,
|
|
24
|
+
XL = 576,
|
|
25
|
+
L = 460,
|
|
26
|
+
M = 450,
|
|
27
|
+
S = 410
|
|
28
|
+
}
|
|
29
|
+
/** @deprecated
|
|
30
|
+
* To be removed as part of ED-25129 in favour of ToolbarWidthsFullPageNext along with references
|
|
31
|
+
* to platform_editor_toolbar_responsive_fixes feature gate
|
|
32
|
+
*/
|
|
18
33
|
export declare enum ToolbarWidthsFullPage {
|
|
19
34
|
XXL = 650,
|
|
20
35
|
XL = 580,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "91.
|
|
3
|
+
"version": "91.2.0",
|
|
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/"
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"@atlaskit/editor-shared-styles": "^3.0.0",
|
|
126
126
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
127
127
|
"@atlaskit/emoji": "^67.8.0",
|
|
128
|
-
"@atlaskit/icon": "^22.
|
|
128
|
+
"@atlaskit/icon": "^22.19.0",
|
|
129
129
|
"@atlaskit/icon-object": "^6.5.0",
|
|
130
130
|
"@atlaskit/link-datasource": "^3.1.0",
|
|
131
131
|
"@atlaskit/link-picker": "^1.46.0",
|