@atlaskit/editor-common 109.3.0 → 109.4.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/analytics/types/enums.js +1 -0
- package/dist/cjs/analytics/types/width-events.js +5 -0
- package/dist/cjs/element-browser/components/ViewMore.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/table.js +1 -1
- package/dist/cjs/transforms/index.js +63 -1
- package/dist/cjs/transforms/list-transforms.js +306 -0
- package/dist/cjs/transforms/list-types.js +5 -0
- package/dist/cjs/transforms/list-utils.js +36 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Shortcut/index.js +1 -1
- package/dist/cjs/ui/Toolbar/ButtonGroup.js +1 -1
- package/dist/cjs/ui/Toolbar/DropdownTriggerWrapper.js +1 -1
- package/dist/cjs/ui/Toolbar/DropdownWrapper.compiled.css +2 -1
- package/dist/cjs/ui/Toolbar/DropdownWrapper.js +1 -1
- package/dist/cjs/ui/Toolbar/ExpandIcon.js +1 -1
- package/dist/cjs/ui/Toolbar/Separator.js +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -0
- package/dist/es2019/analytics/types/width-events.js +1 -0
- package/dist/es2019/element-browser/components/ViewMore.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/table.js +2 -1
- package/dist/es2019/transforms/index.js +3 -1
- package/dist/es2019/transforms/list-transforms.js +309 -0
- package/dist/es2019/transforms/list-types.js +1 -0
- package/dist/es2019/transforms/list-utils.js +30 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Shortcut/index.js +1 -1
- package/dist/es2019/ui/Toolbar/ButtonGroup.js +1 -1
- package/dist/es2019/ui/Toolbar/DropdownTriggerWrapper.js +1 -1
- package/dist/es2019/ui/Toolbar/DropdownWrapper.compiled.css +2 -1
- package/dist/es2019/ui/Toolbar/DropdownWrapper.js +1 -1
- package/dist/es2019/ui/Toolbar/ExpandIcon.js +1 -1
- package/dist/es2019/ui/Toolbar/Separator.js +1 -1
- package/dist/esm/analytics/types/enums.js +1 -0
- package/dist/esm/analytics/types/width-events.js +1 -0
- package/dist/esm/element-browser/components/ViewMore.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/table.js +1 -1
- package/dist/esm/transforms/index.js +3 -1
- package/dist/esm/transforms/list-transforms.js +300 -0
- package/dist/esm/transforms/list-types.js +1 -0
- package/dist/esm/transforms/list-utils.js +29 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Shortcut/index.js +1 -1
- package/dist/esm/ui/Toolbar/ButtonGroup.js +1 -1
- package/dist/esm/ui/Toolbar/DropdownTriggerWrapper.js +1 -1
- package/dist/esm/ui/Toolbar/DropdownWrapper.compiled.css +2 -1
- package/dist/esm/ui/Toolbar/DropdownWrapper.js +1 -1
- package/dist/esm/ui/Toolbar/ExpandIcon.js +1 -1
- package/dist/esm/ui/Toolbar/Separator.js +1 -1
- package/dist/types/analytics/types/enums.d.ts +2 -1
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types/analytics/types/width-events.d.ts +5 -0
- package/dist/types/transforms/index.d.ts +3 -0
- package/dist/types/transforms/list-transforms.d.ts +36 -0
- package/dist/types/transforms/list-types.d.ts +10 -0
- package/dist/types/transforms/list-utils.d.ts +9 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/width-events.d.ts +5 -0
- package/dist/types-ts4.5/transforms/index.d.ts +3 -0
- package/dist/types-ts4.5/transforms/list-transforms.d.ts +36 -0
- package/dist/types-ts4.5/transforms/list-types.d.ts +10 -0
- package/dist/types-ts4.5/transforms/list-utils.d.ts +9 -0
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 109.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`cebd8f9171426`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cebd8f9171426) -
|
|
8
|
+
[ux] ED-29159 Implement transform task inside lists - handle logic
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- [`17a448dee00a6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/17a448dee00a6) -
|
|
13
|
+
FD-86538 clean up fg platform_editor_renderer_table_header_styles
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 109.3.1
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`cef73d344aa16`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cef73d344aa16) -
|
|
21
|
+
EDITOR-1391 add analytics event for initial editor width
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 109.3.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
|
@@ -196,6 +196,7 @@ var ACTION = exports.ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
196
196
|
ACTION["SUGGESTION_INSERTED"] = "suggestionInserted";
|
|
197
197
|
ACTION["SUGGESTION_DISMISSED"] = "suggestionDismissed";
|
|
198
198
|
ACTION["SUGGESTION_VIEWED"] = "suggestionViewed";
|
|
199
|
+
ACTION["INITIAL_EDITOR_WIDTH"] = "initialEditorWidth";
|
|
199
200
|
return ACTION;
|
|
200
201
|
}({});
|
|
201
202
|
var INPUT_METHOD = exports.INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
@@ -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 = "109.
|
|
19
|
+
var packageVersion = "109.3.1";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
|
@@ -59,7 +59,7 @@ var firstNodeWithNotMarginTop = function firstNodeWithNotMarginTop() {
|
|
|
59
59
|
|
|
60
60
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- Appears safe to auto-fix, but leaving it up to the team to remediate as the readability only gets worse with autofixing
|
|
61
61
|
var tableSharedStyle = exports.tableSharedStyle = function tableSharedStyle() {
|
|
62
|
-
return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* support panel nested in table */\n\t", "\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\t\t\t
|
|
62
|
+
return (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t", "\n\t.", " {\n\t\tposition: relative;\n\t\tmargin: 0 auto ", ";\n\t\tbox-sizing: border-box;\n\n\t\t/**\n * Fix block top alignment inside table cells.\n */\n\t\t.decisionItemView-content-wrap:first-of-type > div {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.", "[data-number-column='true'] {\n\t\tpadding-left: ", "px;\n\t\tclear: both;\n\t}\n\n\t.", " {\n\t\twill-change: width, margin-left;\n\t}\n\n\t.", " table {\n\t\twill-change: width;\n\t}\n\n\t.", " > table {\n\t\tmargin: ", " 0 0 0;\n\t}\n\n\t.", " > table,\n\t.", " > table {\n\t\tmargin: ", " ", " 0 0;\n\t}\n\n\t/* support panel nested in table */\n\t", "\n\n\t/* avoid applying styles to nested tables (possible via extensions) */\n\t.", " > table,\n\t.", " > table,\n\t.", " > table {\n\t\tborder-collapse: collapse;\n\t\tborder: ", "px solid\n\t\t\t", ";\n\t\ttable-layout: fixed;\n\t\tfont-size: 1em;\n\t\twidth: 100%;\n\n\t\t&[data-autosize='true'] {\n\t\t\ttable-layout: auto;\n\t\t}\n\n\t\t& {\n\t\t\t* {\n\t\t\t\tbox-sizing: border-box;\n\t\t\t}\n\t\t\thr {\n\t\t\t\tbox-sizing: content-box;\n\t\t\t}\n\n\t\t\ttbody {\n\t\t\t\tborder-bottom: none;\n\t\t\t}\n\t\t\tth td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\n\t\t\t> tbody > tr > th, > tbody > tr > td {\n\t\t\t\tmin-width: ", "px;\n\t\t\t\tfont-weight: ", ";\n\t\t\t\tvertical-align: top;\n\t\t\t\tborder: 1px solid ", ";\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-bottom-width: 0;\n\n\t\t\t\tpadding: ", ";\n\t\t\t\t/* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n\t\t\t\t", "\n\n\t\t\t\t", "\n\n\t\t\t\tth p:not(:first-of-type),\n\t\t\t\ttd p:not(:first-of-type) {\n\t\t\t\t\tmargin-top: ", ";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t/* Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected */\n\t\t\t> tbody > tr > td {\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\n\t\t\tth {\n\t\t\t\tbackground-color: ", ";\n\t\t\t\ttext-align: left;\n\n\t\t\t\t/* only apply this styling to codeblocks in default background headercells */\n\t\t\t\t/* TODO this needs to be overhauled as it relies on unsafe selectors */\n\t\t\t\t&:not([style]):not(.danger) {\n\t\t\t\t\t.", ":not(.danger) {\n\t\t\t\t\t\tbackground-color: ", ";\n\n\t\t\t\t\t\t:not(.", ") {\n\t\t\t\t\t\t\tbox-shadow: 0px 0px 0px 1px ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-image: ", ";\n\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t\tbackground-color: ", ";\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t/* this is only relevant to the element taken care of by renderer */\n\t\t\t\t\t\t> [data-ds--code--code-block] {\n\t\t\t\t\t\t\tbackground-image: ", "!important;\n\n\t\t\t\t\t\t\tbackground-color: ", "!important;\n\n\t\t\t\t\t\t\t/* selector lives inside @atlaskit/code */\n\t\t\t\t\t\t\t--ds--code--line-number-bg-color: ", ";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n"])), (0, _tableCell.tableCellBackgroundStyleOverride)(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", (0, _platformFeatureFlags.fg)('platform_editor_bordered_panel_nested_in_table') ? ".".concat(TableSharedCssClassName.TABLE_NODE_WRAPPER, " .ak-editor-panel {\n\t\t\tborder: ", "var(--ds-border-width, 1px)", " solid ", "var(--ds-border, #d9dbea)", ";\n\t\t}") : '', TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, ".concat(_editorSharedStyles.akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", _browser.browser.gecko || _browser.browser.ie || _browser.browser.mac && _browser.browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", "var(--ds-surface, #FFFFFF)", "var(--ds-background-accent-gray-subtlest, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"), _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border, transparent)", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, (0, _editorSharedStyles.overflowShadow)({
|
|
63
63
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
64
64
|
}), "var(--ds-background-neutral, rgb(235, 237, 240))", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, rgb(226, 229, 233))", (0, _editorSharedStyles.overflowShadow)({
|
|
65
65
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
Object.defineProperty(exports, "convertBlockToInlineContent", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function get() {
|
|
9
|
+
return _listUtils.convertBlockToInlineContent;
|
|
10
|
+
}
|
|
11
|
+
});
|
|
6
12
|
Object.defineProperty(exports, "findCodeBlock", {
|
|
7
13
|
enumerable: true,
|
|
8
14
|
get: function get() {
|
|
@@ -15,6 +21,30 @@ Object.defineProperty(exports, "findExpand", {
|
|
|
15
21
|
return _expand.findExpand;
|
|
16
22
|
}
|
|
17
23
|
});
|
|
24
|
+
Object.defineProperty(exports, "getFormattedNode", {
|
|
25
|
+
enumerable: true,
|
|
26
|
+
get: function get() {
|
|
27
|
+
return _listTransforms.getFormattedNode;
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
Object.defineProperty(exports, "getSupportedListTypesSet", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function get() {
|
|
33
|
+
return _listUtils.getSupportedListTypesSet;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(exports, "isBulletOrOrderedList", {
|
|
37
|
+
enumerable: true,
|
|
38
|
+
get: function get() {
|
|
39
|
+
return _listUtils.isBulletOrOrderedList;
|
|
40
|
+
}
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "isTaskList", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function get() {
|
|
45
|
+
return _listUtils.isTaskList;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
18
48
|
Object.defineProperty(exports, "removeLayoutFromFirstChild", {
|
|
19
49
|
enumerable: true,
|
|
20
50
|
get: function get() {
|
|
@@ -27,6 +57,24 @@ Object.defineProperty(exports, "removeLayoutFromLastChild", {
|
|
|
27
57
|
return _layout.removeLayoutFromLastChild;
|
|
28
58
|
}
|
|
29
59
|
});
|
|
60
|
+
Object.defineProperty(exports, "transformBetweenListTypes", {
|
|
61
|
+
enumerable: true,
|
|
62
|
+
get: function get() {
|
|
63
|
+
return _listTransforms.transformBetweenListTypes;
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
Object.defineProperty(exports, "transformListRecursively", {
|
|
67
|
+
enumerable: true,
|
|
68
|
+
get: function get() {
|
|
69
|
+
return _listTransforms.transformListRecursively;
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
Object.defineProperty(exports, "transformListStructure", {
|
|
73
|
+
enumerable: true,
|
|
74
|
+
get: function get() {
|
|
75
|
+
return _listTransforms.transformListStructure;
|
|
76
|
+
}
|
|
77
|
+
});
|
|
30
78
|
Object.defineProperty(exports, "transformSingleColumnLayout", {
|
|
31
79
|
enumerable: true,
|
|
32
80
|
get: function get() {
|
|
@@ -105,6 +153,18 @@ Object.defineProperty(exports, "transformSliceToRemoveOpenNestedExpand", {
|
|
|
105
153
|
return _expand.transformSliceToRemoveOpenNestedExpand;
|
|
106
154
|
}
|
|
107
155
|
});
|
|
156
|
+
Object.defineProperty(exports, "transformTaskListToBlockNodes", {
|
|
157
|
+
enumerable: true,
|
|
158
|
+
get: function get() {
|
|
159
|
+
return _listTransforms.transformTaskListToBlockNodes;
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(exports, "transformToTaskList", {
|
|
163
|
+
enumerable: true,
|
|
164
|
+
get: function get() {
|
|
165
|
+
return _listTransforms.transformToTaskList;
|
|
166
|
+
}
|
|
167
|
+
});
|
|
108
168
|
Object.defineProperty(exports, "unwrapContentFromLayout", {
|
|
109
169
|
enumerable: true,
|
|
110
170
|
get: function get() {
|
|
@@ -115,4 +175,6 @@ var _layout = require("./layout");
|
|
|
115
175
|
var _expand = require("./expand");
|
|
116
176
|
var _extension = require("./extension");
|
|
117
177
|
var _codeBlock = require("./code-block");
|
|
118
|
-
var _decisionList = require("./decision-list");
|
|
178
|
+
var _decisionList = require("./decision-list");
|
|
179
|
+
var _listTransforms = require("./list-transforms");
|
|
180
|
+
var _listUtils = require("./list-utils");
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.transformToTaskList = exports.transformTaskListToBlockNodes = exports.transformListStructure = exports.transformListRecursively = exports.transformBetweenListTypes = exports.getFormattedNode = void 0;
|
|
8
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _model = require("@atlaskit/editor-prosemirror/model");
|
|
11
|
+
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
12
|
+
var _listUtils = require("./list-utils");
|
|
13
|
+
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; }
|
|
14
|
+
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) { (0, _defineProperty2.default)(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; }
|
|
15
|
+
var _transformListRecursively = exports.transformListRecursively = function transformListRecursively(props) {
|
|
16
|
+
var transformedItems = [];
|
|
17
|
+
var listNode = props.listNode,
|
|
18
|
+
isSourceBulletOrOrdered = props.isSourceBulletOrOrdered,
|
|
19
|
+
isTargetBulletOrOrdered = props.isTargetBulletOrOrdered,
|
|
20
|
+
isSourceTask = props.isSourceTask,
|
|
21
|
+
isTargetTask = props.isTargetTask,
|
|
22
|
+
supportedListTypes = props.supportedListTypes,
|
|
23
|
+
schema = props.schema,
|
|
24
|
+
targetNodeType = props.targetNodeType;
|
|
25
|
+
var _schema$nodes = schema.nodes,
|
|
26
|
+
taskList = _schema$nodes.taskList,
|
|
27
|
+
listItem = _schema$nodes.listItem,
|
|
28
|
+
taskItem = _schema$nodes.taskItem,
|
|
29
|
+
paragraph = _schema$nodes.paragraph;
|
|
30
|
+
listNode.forEach(function (child) {
|
|
31
|
+
if (isSourceBulletOrOrdered && isTargetTask) {
|
|
32
|
+
// Convert bullet/ordered => task
|
|
33
|
+
if (child.type === listItem) {
|
|
34
|
+
var inlineContent = [];
|
|
35
|
+
var nestedTaskLists = [];
|
|
36
|
+
child.forEach(function (grandChild) {
|
|
37
|
+
if (supportedListTypes.has(grandChild.type) && grandChild.type !== taskList) {
|
|
38
|
+
nestedTaskLists.push(_transformListRecursively(_objectSpread(_objectSpread({}, props), {}, {
|
|
39
|
+
listNode: grandChild
|
|
40
|
+
})));
|
|
41
|
+
} else {
|
|
42
|
+
inlineContent.push.apply(inlineContent, (0, _toConsumableArray2.default)((0, _listUtils.convertBlockToInlineContent)(grandChild, schema)));
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
transformedItems.push(taskItem.create(null, inlineContent.length > 0 ? inlineContent : null));
|
|
46
|
+
transformedItems.push.apply(transformedItems, nestedTaskLists);
|
|
47
|
+
}
|
|
48
|
+
} else if (isSourceTask && isTargetBulletOrOrdered) {
|
|
49
|
+
// Convert task => bullet/ordered
|
|
50
|
+
if (child.type === taskItem) {
|
|
51
|
+
var _inlineContent = (0, _toConsumableArray2.default)(child.content.content);
|
|
52
|
+
var paragraphNode = paragraph.create(null, _inlineContent.length > 0 ? _inlineContent : null);
|
|
53
|
+
transformedItems.push(listItem.create(null, [paragraphNode]));
|
|
54
|
+
} else if (child.type === taskList) {
|
|
55
|
+
var transformedNestedList = _transformListRecursively(_objectSpread(_objectSpread({}, props), {}, {
|
|
56
|
+
listNode: child
|
|
57
|
+
}));
|
|
58
|
+
var lastItem = transformedItems[transformedItems.length - 1];
|
|
59
|
+
if ((lastItem === null || lastItem === void 0 ? void 0 : lastItem.type) === listItem) {
|
|
60
|
+
// Attach nested list to previous item
|
|
61
|
+
var updatedContent = [].concat((0, _toConsumableArray2.default)(lastItem.content.content), [transformedNestedList]);
|
|
62
|
+
transformedItems[transformedItems.length - 1] = listItem.create(lastItem.attrs, updatedContent);
|
|
63
|
+
} else {
|
|
64
|
+
// No previous item, flatten nested items
|
|
65
|
+
transformedItems.push.apply(transformedItems, (0, _toConsumableArray2.default)(transformedNestedList.content.content));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
} else if (isSourceBulletOrOrdered && isTargetBulletOrOrdered) {
|
|
69
|
+
if (child.type === listItem) {
|
|
70
|
+
var convertedNestedLists = [];
|
|
71
|
+
child.forEach(function (grandChild) {
|
|
72
|
+
if (supportedListTypes.has(grandChild.type) && grandChild.type !== targetNodeType) {
|
|
73
|
+
var convertedNode = _transformListRecursively(_objectSpread(_objectSpread({}, props), {}, {
|
|
74
|
+
listNode: grandChild
|
|
75
|
+
}));
|
|
76
|
+
convertedNestedLists.push(convertedNode);
|
|
77
|
+
} else {
|
|
78
|
+
convertedNestedLists.push(grandChild);
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
transformedItems.push(listItem.create(null, convertedNestedLists));
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
return targetNodeType.create(null, transformedItems);
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Transform list structure between different list types
|
|
90
|
+
*/
|
|
91
|
+
var transformListStructure = exports.transformListStructure = function transformListStructure(context) {
|
|
92
|
+
var tr = context.tr,
|
|
93
|
+
sourceNode = context.sourceNode,
|
|
94
|
+
sourcePos = context.sourcePos,
|
|
95
|
+
targetNodeType = context.targetNodeType;
|
|
96
|
+
var nodes = tr.doc.type.schema.nodes;
|
|
97
|
+
try {
|
|
98
|
+
var listNode = {
|
|
99
|
+
node: sourceNode,
|
|
100
|
+
pos: sourcePos
|
|
101
|
+
};
|
|
102
|
+
var sourceList = listNode.node,
|
|
103
|
+
listPos = listNode.pos;
|
|
104
|
+
// const { taskList, listItem, taskItem, paragraph } = nodes;
|
|
105
|
+
|
|
106
|
+
var isSourceBulletOrOrdered = (0, _listUtils.isBulletOrOrderedList)(sourceList.type);
|
|
107
|
+
var isTargetTask = (0, _listUtils.isTaskList)(targetNodeType);
|
|
108
|
+
var isSourceTask = (0, _listUtils.isTaskList)(sourceList.type);
|
|
109
|
+
var isTargetBulletOrOrdered = (0, _listUtils.isBulletOrOrderedList)(targetNodeType);
|
|
110
|
+
var supportedListTypes = (0, _listUtils.getSupportedListTypesSet)(nodes);
|
|
111
|
+
var newList = _transformListRecursively({
|
|
112
|
+
isSourceBulletOrOrdered: isSourceBulletOrOrdered,
|
|
113
|
+
isSourceTask: isSourceTask,
|
|
114
|
+
isTargetBulletOrOrdered: isTargetBulletOrOrdered,
|
|
115
|
+
isTargetTask: isTargetTask,
|
|
116
|
+
listNode: sourceList,
|
|
117
|
+
schema: tr.doc.type.schema,
|
|
118
|
+
supportedListTypes: supportedListTypes,
|
|
119
|
+
targetNodeType: targetNodeType
|
|
120
|
+
});
|
|
121
|
+
tr.replaceWith(listPos, listPos + sourceList.nodeSize, newList);
|
|
122
|
+
return tr;
|
|
123
|
+
} catch (_unused) {
|
|
124
|
+
return tr;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Transform between different list types
|
|
130
|
+
*/
|
|
131
|
+
var transformBetweenListTypes = exports.transformBetweenListTypes = function transformBetweenListTypes(context) {
|
|
132
|
+
var tr = context.tr,
|
|
133
|
+
sourceNode = context.sourceNode,
|
|
134
|
+
sourcePos = context.sourcePos,
|
|
135
|
+
targetNodeType = context.targetNodeType;
|
|
136
|
+
var nodes = tr.doc.type.schema.nodes;
|
|
137
|
+
var sourceListType = sourceNode.type;
|
|
138
|
+
var isSourceBulletOrOrdered = (0, _listUtils.isBulletOrOrderedList)(sourceListType);
|
|
139
|
+
var isTargetTask = (0, _listUtils.isTaskList)(targetNodeType);
|
|
140
|
+
var isSourceTask = (0, _listUtils.isTaskList)(sourceListType);
|
|
141
|
+
var isTargetBulletOrOrdered = (0, _listUtils.isBulletOrOrderedList)(targetNodeType);
|
|
142
|
+
|
|
143
|
+
// Check if we need structure transformation
|
|
144
|
+
var needsStructureTransform = isSourceBulletOrOrdered && isTargetTask || isSourceTask && isTargetBulletOrOrdered;
|
|
145
|
+
try {
|
|
146
|
+
if (!needsStructureTransform) {
|
|
147
|
+
// Simple type change for same structure lists (bullet <-> ordered)
|
|
148
|
+
// Apply to the main list
|
|
149
|
+
tr.setNodeMarkup(sourcePos, targetNodeType);
|
|
150
|
+
|
|
151
|
+
// Apply to nested lists
|
|
152
|
+
var listStart = sourcePos;
|
|
153
|
+
var listEnd = sourcePos + sourceNode.nodeSize;
|
|
154
|
+
var supportedListTypesSet = (0, _listUtils.getSupportedListTypesSet)(nodes);
|
|
155
|
+
tr.doc.nodesBetween(listStart, listEnd, function (node, pos, parent) {
|
|
156
|
+
// Only process nested lists (not the root list we already handled)
|
|
157
|
+
if (supportedListTypesSet.has(node.type) && pos !== sourcePos) {
|
|
158
|
+
var isNestedList = parent && (supportedListTypesSet.has(parent.type) || parent.type === nodes.listItem);
|
|
159
|
+
if (isNestedList) {
|
|
160
|
+
var shouldTransformNode = node.type === sourceListType || (0, _listUtils.isBulletOrOrderedList)(node.type) && isTargetBulletOrOrdered;
|
|
161
|
+
if (shouldTransformNode) {
|
|
162
|
+
tr.setNodeMarkup(pos, targetNodeType);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
return true; // Continue traversing
|
|
167
|
+
});
|
|
168
|
+
return tr;
|
|
169
|
+
} else {
|
|
170
|
+
return transformListStructure(context);
|
|
171
|
+
}
|
|
172
|
+
} catch (_unused2) {
|
|
173
|
+
return null;
|
|
174
|
+
}
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Transform selection to task list
|
|
179
|
+
* Handles the special structure where taskItem contains text directly (no paragraph wrapper)
|
|
180
|
+
*/
|
|
181
|
+
var transformToTaskList = exports.transformToTaskList = function transformToTaskList(tr, range, targetNodeType, targetAttrs, nodes) {
|
|
182
|
+
try {
|
|
183
|
+
var taskItem = nodes.taskItem;
|
|
184
|
+
var listItems = [];
|
|
185
|
+
|
|
186
|
+
// Process each block in the range
|
|
187
|
+
tr.doc.nodesBetween(range.start, range.end, function (node) {
|
|
188
|
+
if (node.isBlock) {
|
|
189
|
+
// For block nodes like paragraphs, directly use their inline content
|
|
190
|
+
var inlineContent = (0, _toConsumableArray2.default)(node.content.content);
|
|
191
|
+
if (inlineContent.length > 0) {
|
|
192
|
+
// Create task item with inline content directly
|
|
193
|
+
var listItem = taskItem.create(targetAttrs, inlineContent);
|
|
194
|
+
listItems.push(listItem);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return false; // Don't traverse into children
|
|
198
|
+
});
|
|
199
|
+
if (listItems.length === 0) {
|
|
200
|
+
return null;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// Create the new task list
|
|
204
|
+
var newList = targetNodeType.create(targetAttrs, listItems);
|
|
205
|
+
|
|
206
|
+
// Replace the range with the new list
|
|
207
|
+
tr.replaceWith(range.start, range.end, newList);
|
|
208
|
+
return tr;
|
|
209
|
+
} catch (_unused3) {
|
|
210
|
+
return null;
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
var transformTaskListToBlockNodes = exports.transformTaskListToBlockNodes = function transformTaskListToBlockNodes(context) {
|
|
214
|
+
var tr = context.tr,
|
|
215
|
+
targetNodeType = context.targetNodeType,
|
|
216
|
+
targetAttrs = context.targetAttrs,
|
|
217
|
+
sourceNode = context.sourceNode,
|
|
218
|
+
sourcePos = context.sourcePos;
|
|
219
|
+
var selection = tr.selection;
|
|
220
|
+
var schema = selection.$from.doc.type.schema;
|
|
221
|
+
var taskItemsResult = (0, _utils.findChildrenByType)(sourceNode, schema.nodes.taskItem);
|
|
222
|
+
var taskItems = taskItemsResult.map(function (item) {
|
|
223
|
+
return item.node;
|
|
224
|
+
});
|
|
225
|
+
var taskItemFragments = taskItems.map(function (taskItem) {
|
|
226
|
+
return taskItem.content;
|
|
227
|
+
});
|
|
228
|
+
var targetNodes = [];
|
|
229
|
+
|
|
230
|
+
// Convert fragments to headings if target is heading
|
|
231
|
+
if (targetNodeType === schema.nodes.heading && targetAttrs) {
|
|
232
|
+
// convert the fragments to headings
|
|
233
|
+
var targetHeadingLevel = targetAttrs.level;
|
|
234
|
+
targetNodes = taskItemFragments.map(function (fragment) {
|
|
235
|
+
return schema.nodes.heading.createChecked({
|
|
236
|
+
level: targetHeadingLevel
|
|
237
|
+
}, fragment.content);
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
// Convert fragments to paragraphs if target is paragraphs
|
|
242
|
+
if (targetNodeType === schema.nodes.paragraph) {
|
|
243
|
+
// convert the fragments to paragraphs
|
|
244
|
+
targetNodes = taskItemFragments.map(function (fragment) {
|
|
245
|
+
return schema.nodes.paragraph.createChecked({}, fragment.content);
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
// Convert fragments to code block if target is code block
|
|
250
|
+
if (targetNodeType === schema.nodes.codeBlock) {
|
|
251
|
+
// convert the fragments to one code block
|
|
252
|
+
var codeBlockContent = taskItemFragments.map(function (fragment) {
|
|
253
|
+
return fragment.textBetween(0, fragment.size, '\n');
|
|
254
|
+
}).join('\n');
|
|
255
|
+
targetNodes = [schema.nodes.codeBlock.createChecked({}, schema.text(codeBlockContent))];
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
// Replace the task list node with the new content in the transaction
|
|
259
|
+
var slice = new _model.Slice(_model.Fragment.fromArray(targetNodes), 0, 0);
|
|
260
|
+
var rangeStart = sourcePos !== null ? sourcePos : selection.from;
|
|
261
|
+
tr.replaceRange(rangeStart, rangeStart + sourceNode.nodeSize, slice);
|
|
262
|
+
return tr;
|
|
263
|
+
};
|
|
264
|
+
var getFormattedNode = exports.getFormattedNode = function getFormattedNode(tr) {
|
|
265
|
+
var selection = tr.selection;
|
|
266
|
+
var nodes = tr.doc.type.schema.nodes;
|
|
267
|
+
|
|
268
|
+
// Find the node to format from the current selection
|
|
269
|
+
var nodeToFormat;
|
|
270
|
+
var nodePos = selection.from;
|
|
271
|
+
|
|
272
|
+
// Try to find the current node from selection
|
|
273
|
+
var selectedNode = (0, _utils.findSelectedNodeOfType)([nodes.paragraph, nodes.heading, nodes.blockquote, nodes.panel, nodes.expand, nodes.codeBlock, nodes.bulletList, nodes.orderedList, nodes.taskList, nodes.layoutSection])(selection);
|
|
274
|
+
if (selectedNode) {
|
|
275
|
+
nodeToFormat = selectedNode.node;
|
|
276
|
+
nodePos = selectedNode.pos;
|
|
277
|
+
} else {
|
|
278
|
+
// Try to find parent node (including list parents)
|
|
279
|
+
var parentNode = (0, _utils.findParentNodeOfType)([nodes.blockquote, nodes.panel, nodes.expand, nodes.codeBlock, nodes.listItem, nodes.taskItem, nodes.layoutSection])(selection);
|
|
280
|
+
if (parentNode) {
|
|
281
|
+
nodeToFormat = parentNode.node;
|
|
282
|
+
nodePos = parentNode.pos;
|
|
283
|
+
var paragraphOrHeadingNode = (0, _utils.findParentNodeOfType)([nodes.paragraph, nodes.heading])(selection);
|
|
284
|
+
// Special case: if we found a listItem, check if we need the parent list instead
|
|
285
|
+
if (parentNode.node.type === nodes.listItem || parentNode.node.type === nodes.taskItem) {
|
|
286
|
+
var listParent = (0, _utils.findParentNodeOfType)([nodes.bulletList, nodes.orderedList, nodes.taskList])(selection);
|
|
287
|
+
if (listParent) {
|
|
288
|
+
// For list transformations, we want the list parent, not the listItem
|
|
289
|
+
nodeToFormat = listParent.node;
|
|
290
|
+
nodePos = listParent.pos;
|
|
291
|
+
}
|
|
292
|
+
} else if (parentNode.node.type !== nodes.blockquote && paragraphOrHeadingNode) {
|
|
293
|
+
nodeToFormat = paragraphOrHeadingNode.node;
|
|
294
|
+
nodePos = paragraphOrHeadingNode.pos;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
if (!nodeToFormat) {
|
|
299
|
+
nodeToFormat = selection.$from.node();
|
|
300
|
+
nodePos = selection.$from.pos;
|
|
301
|
+
}
|
|
302
|
+
return {
|
|
303
|
+
node: nodeToFormat,
|
|
304
|
+
pos: nodePos
|
|
305
|
+
};
|
|
306
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.isTaskList = exports.isBulletOrOrderedList = exports.getSupportedListTypesSet = exports.getSupportedListTypes = exports.convertBlockToInlineContent = void 0;
|
|
8
|
+
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
|
+
// List type utilities
|
|
10
|
+
var isBulletOrOrderedList = exports.isBulletOrOrderedList = function isBulletOrOrderedList(nodeType) {
|
|
11
|
+
return nodeType.name === 'bulletList' || nodeType.name === 'orderedList';
|
|
12
|
+
};
|
|
13
|
+
var isTaskList = exports.isTaskList = function isTaskList(nodeType) {
|
|
14
|
+
return nodeType.name === 'taskList';
|
|
15
|
+
};
|
|
16
|
+
var getSupportedListTypes = exports.getSupportedListTypes = function getSupportedListTypes(nodes) {
|
|
17
|
+
return [nodes.bulletList, nodes.orderedList, nodes.taskList].filter(Boolean);
|
|
18
|
+
};
|
|
19
|
+
var getSupportedListTypesSet = exports.getSupportedListTypesSet = function getSupportedListTypesSet(nodes) {
|
|
20
|
+
return new Set(getSupportedListTypes(nodes));
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Convert a block node to inline content suitable for task items
|
|
25
|
+
*/
|
|
26
|
+
var convertBlockToInlineContent = exports.convertBlockToInlineContent = function convertBlockToInlineContent(node, schema) {
|
|
27
|
+
var paragraph = schema.nodes.paragraph;
|
|
28
|
+
if (node.type === paragraph) {
|
|
29
|
+
return (0, _toConsumableArray2.default)(node.content.content);
|
|
30
|
+
}
|
|
31
|
+
if (node.isBlock) {
|
|
32
|
+
var textContent = node.textContent;
|
|
33
|
+
return textContent ? [schema.text(textContent)] : [];
|
|
34
|
+
}
|
|
35
|
+
return [node];
|
|
36
|
+
};
|
|
@@ -24,7 +24,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
24
24
|
* @jsx jsx
|
|
25
25
|
*/ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
26
26
|
var packageName = "@atlaskit/editor-common";
|
|
27
|
-
var packageVersion = "109.
|
|
27
|
+
var packageVersion = "109.3.1";
|
|
28
28
|
var halfFocusRing = 1;
|
|
29
29
|
var dropOffset = '0, 8';
|
|
30
30
|
var fadeIn = (0, _react2.keyframes)({
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
._1fvdglyw button:not([disabled]):after{border:none}._18u0idpf{margin-left:0}
|
|
3
3
|
._1e0c1txw{display:flex}
|
|
4
4
|
._1ul91wug{min-width:auto}
|
|
5
|
+
._1xdi1txw >span{display:flex}
|
|
5
6
|
._1ylx1txw >div>div{display:flex}
|
|
6
7
|
._4cvr1h6o{align-items:center}
|
|
7
|
-
._p7r11txw >div
|
|
8
|
+
._p7r11txw >div{display:flex}
|
|
@@ -190,6 +190,7 @@ export let ACTION = /*#__PURE__*/function (ACTION) {
|
|
|
190
190
|
ACTION["SUGGESTION_INSERTED"] = "suggestionInserted";
|
|
191
191
|
ACTION["SUGGESTION_DISMISSED"] = "suggestionDismissed";
|
|
192
192
|
ACTION["SUGGESTION_VIEWED"] = "suggestionViewed";
|
|
193
|
+
ACTION["INITIAL_EDITOR_WIDTH"] = "initialEditorWidth";
|
|
193
194
|
return ACTION;
|
|
194
195
|
}({});
|
|
195
196
|
export let INPUT_METHOD = /*#__PURE__*/function (INPUT_METHOD) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -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 = "109.
|
|
4
|
+
const packageVersion = "109.3.1";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -140,7 +140,8 @@ const tableSharedStyle = () => css`
|
|
|
140
140
|
background-color: ${"var(--ds-background-neutral-subtle, white)"};
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
|
|
143
|
+
|
|
144
|
+
> tbody > tr > th, > tbody > tr > td {
|
|
144
145
|
min-width: ${tableCellMinWidth}px;
|
|
145
146
|
font-weight: ${"var(--ds-font-weight-regular, 400)"};
|
|
146
147
|
vertical-align: top;
|
|
@@ -5,4 +5,6 @@ export { unwrapContentFromLayout, removeLayoutFromFirstChild, removeLayoutFromLa
|
|
|
5
5
|
export { findExpand, transformSliceToRemoveOpenExpand, transformSliceToRemoveOpenNestedExpand, transformSliceNestedExpandToExpand, transformSliceExpandToNestedExpand } from './expand';
|
|
6
6
|
export { transformSliceToRemoveOpenBodiedExtension, transformSliceToRemoveOpenMultiBodiedExtension, transformSliceToRemoveLegacyContentMacro, transformSliceToRemoveMacroId } from './extension';
|
|
7
7
|
export { transformSliceToJoinAdjacentCodeBlocks, transformSingleLineCodeBlockToCodeMark, findCodeBlock } from './code-block';
|
|
8
|
-
export { transformSliceToDecisionList } from './decision-list';
|
|
8
|
+
export { transformSliceToDecisionList } from './decision-list';
|
|
9
|
+
export { transformListStructure, transformBetweenListTypes, transformListRecursively, transformToTaskList, transformTaskListToBlockNodes, getFormattedNode } from './list-transforms';
|
|
10
|
+
export { isBulletOrOrderedList, isTaskList, getSupportedListTypesSet, convertBlockToInlineContent } from './list-utils';
|