@atlaskit/editor-common 102.13.7 → 102.13.9
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 +18 -0
- package/dist/cjs/analytics/types/enums.js +2 -0
- package/dist/cjs/analytics/types/telepointer-events.js +5 -0
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/styles/shared/headings.js +12 -12
- package/dist/cjs/styles/shared/paragraph.js +1 -1
- package/dist/cjs/styles/shared/table.js +1 -1
- package/dist/cjs/ugc-tokens/get-editor-ugc-token.js +13 -13
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/analytics/types/enums.js +2 -0
- package/dist/es2019/analytics/types/telepointer-events.js +1 -0
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/styles/shared/headings.js +12 -12
- package/dist/es2019/styles/shared/paragraph.js +1 -1
- package/dist/es2019/styles/shared/table.js +3 -2
- package/dist/es2019/ugc-tokens/get-editor-ugc-token.js +13 -13
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/analytics/types/enums.js +2 -0
- package/dist/esm/analytics/types/telepointer-events.js +1 -0
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/styles/shared/headings.js +12 -12
- package/dist/esm/styles/shared/paragraph.js +1 -1
- package/dist/esm/styles/shared/table.js +1 -1
- package/dist/esm/ugc-tokens/get-editor-ugc-token.js +13 -13
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/analytics/index.d.ts +1 -0
- package/dist/types/analytics/types/enums.d.ts +2 -0
- package/dist/types/analytics/types/events.d.ts +2 -1
- package/dist/types/analytics/types/insert-events.d.ts +1 -1
- package/dist/types/analytics/types/telepointer-events.d.ts +5 -0
- package/dist/types/types/feature-flags.d.ts +0 -8
- package/dist/types/ugc-tokens/get-editor-ugc-token.d.ts +1 -1
- package/dist/types-ts4.5/analytics/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/enums.d.ts +2 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
- package/dist/types-ts4.5/analytics/types/insert-events.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/telepointer-events.d.ts +5 -0
- package/dist/types-ts4.5/types/feature-flags.d.ts +0 -8
- package/dist/types-ts4.5/ugc-tokens/get-editor-ugc-token.d.ts +1 -1
- package/package.json +12 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 102.13.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#132083](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/132083)
|
|
8
|
+
[`fd96380b3ebf5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fd96380b3ebf5) -
|
|
9
|
+
[ux] ED-27218: Made editorUGCToken depends on fg instead of typo theme
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 102.13.8
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#132166](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/132166)
|
|
17
|
+
[`e1c6dcf47a8a2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/e1c6dcf47a8a2) -
|
|
18
|
+
ED-24538 Clean up platform_editor_basic_text_transformations
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 102.13.7
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -269,6 +269,7 @@ var ACTION_SUBJECT = exports.ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJ
|
|
|
269
269
|
ACTION_SUBJECT["TABLE"] = "table";
|
|
270
270
|
ACTION_SUBJECT["TABLES_PLUGIN"] = "tablesPlugin";
|
|
271
271
|
ACTION_SUBJECT["TEAM_MENTION_TYPEAHEAD"] = "teamMentionTypeahead";
|
|
272
|
+
ACTION_SUBJECT["TELEPOINTER"] = "telepointer";
|
|
272
273
|
ACTION_SUBJECT["TEXT"] = "text";
|
|
273
274
|
ACTION_SUBJECT["TOOLBAR"] = "toolbar";
|
|
274
275
|
ACTION_SUBJECT["TYPEAHEAD"] = "typeAhead";
|
|
@@ -429,6 +430,7 @@ var ACTION_SUBJECT_ID = exports.ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTIO
|
|
|
429
430
|
ACTION_SUBJECT_ID["STATUS"] = "status";
|
|
430
431
|
ACTION_SUBJECT_ID["SYMBOL"] = "symbol";
|
|
431
432
|
ACTION_SUBJECT_ID["TABLE"] = "table";
|
|
433
|
+
ACTION_SUBJECT_ID["TELEPOINTER"] = "telepointer";
|
|
432
434
|
ACTION_SUBJECT_ID["TEXT"] = "text";
|
|
433
435
|
ACTION_SUBJECT_ID["TYPEAHEAD_EMOJI"] = "emojiTypeAhead";
|
|
434
436
|
ACTION_SUBJECT_ID["TYPEAHEAD_LINK"] = "linkTypeAhead";
|
|
@@ -84,7 +84,7 @@ var sidebarHeading = (0, _react2.css)({
|
|
|
84
84
|
alignItems: 'center',
|
|
85
85
|
paddingLeft: "var(--ds-space-150, 12px)",
|
|
86
86
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
87
|
-
font: (0, _getEditorUgcToken.default)('editor.font.heading.h1'
|
|
87
|
+
font: (0, _getEditorUgcToken.default)('editor.font.heading.h1')
|
|
88
88
|
});
|
|
89
89
|
var mobileMainContent = (0, _react2.css)({
|
|
90
90
|
flex: '1 1 auto',
|
|
@@ -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 = "102.13.
|
|
20
|
+
var packageVersion = "102.13.9";
|
|
21
21
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
22
22
|
// Remove URL as it has UGC
|
|
23
23
|
// Ignored via go/ees007
|
|
@@ -51,51 +51,51 @@ var headingsSharedStyles = exports.headingsSharedStyles = function headingsShare
|
|
|
51
51
|
if ((0, _platformFeatureFlags.fg)('platform_editor_typography_ugc')) {
|
|
52
52
|
return (0, _react.css)(_objectSpread({
|
|
53
53
|
'& h1': {
|
|
54
|
-
font: (0, _getEditorUgcToken.default)('editor.font.heading.h1'
|
|
54
|
+
font: (0, _getEditorUgcToken.default)('editor.font.heading.h1'),
|
|
55
55
|
marginBottom: 0,
|
|
56
56
|
marginTop: '1.45833em',
|
|
57
57
|
'& strong': {
|
|
58
|
-
fontWeight: (0, _getEditorUgcToken.default)('editor.font.weight.heading.h1.bold'
|
|
58
|
+
fontWeight: (0, _getEditorUgcToken.default)('editor.font.weight.heading.h1.bold')
|
|
59
59
|
},
|
|
60
60
|
'&::before': {}
|
|
61
61
|
},
|
|
62
62
|
'& h2': {
|
|
63
|
-
font: (0, _getEditorUgcToken.default)('editor.font.heading.h2'
|
|
63
|
+
font: (0, _getEditorUgcToken.default)('editor.font.heading.h2'),
|
|
64
64
|
marginTop: '1.4em',
|
|
65
65
|
marginBottom: 0,
|
|
66
66
|
'& strong': {
|
|
67
|
-
fontWeight: (0, _getEditorUgcToken.default)('editor.font.weight.heading.h1.bold'
|
|
67
|
+
fontWeight: (0, _getEditorUgcToken.default)('editor.font.weight.heading.h1.bold')
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
'& h3': {
|
|
71
|
-
font: (0, _getEditorUgcToken.default)('editor.font.heading.h3'
|
|
71
|
+
font: (0, _getEditorUgcToken.default)('editor.font.heading.h3'),
|
|
72
72
|
marginTop: '1.31249em',
|
|
73
73
|
marginBottom: 0,
|
|
74
74
|
'& strong': {
|
|
75
|
-
fontWeight: (0, _getEditorUgcToken.default)('editor.font.weight.heading.h1.bold'
|
|
75
|
+
fontWeight: (0, _getEditorUgcToken.default)('editor.font.weight.heading.h1.bold')
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
'& h4': {
|
|
79
|
-
font: (0, _getEditorUgcToken.default)('editor.font.heading.h4'
|
|
79
|
+
font: (0, _getEditorUgcToken.default)('editor.font.heading.h4'),
|
|
80
80
|
marginTop: '1.25em',
|
|
81
81
|
'& strong': {
|
|
82
|
-
fontWeight: (0, _getEditorUgcToken.default)('editor.font.weight.heading.h1.bold'
|
|
82
|
+
fontWeight: (0, _getEditorUgcToken.default)('editor.font.weight.heading.h1.bold')
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
'& h5': {
|
|
86
|
-
font: (0, _getEditorUgcToken.default)('editor.font.heading.h5'
|
|
86
|
+
font: (0, _getEditorUgcToken.default)('editor.font.heading.h5'),
|
|
87
87
|
marginTop: '1.45833em',
|
|
88
88
|
textTransform: 'none',
|
|
89
89
|
'& strong': {
|
|
90
|
-
fontWeight: (0, _getEditorUgcToken.default)('editor.font.weight.heading.h1.bold'
|
|
90
|
+
fontWeight: (0, _getEditorUgcToken.default)('editor.font.weight.heading.h1.bold')
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
'& h6': {
|
|
94
|
-
font: (0, _getEditorUgcToken.default)('editor.font.heading.h6'
|
|
94
|
+
font: (0, _getEditorUgcToken.default)('editor.font.heading.h6'),
|
|
95
95
|
marginTop: '1.59091em',
|
|
96
96
|
textTransform: 'none',
|
|
97
97
|
'& strong': {
|
|
98
|
-
fontWeight: (0, _getEditorUgcToken.default)('editor.font.weight.heading.h1.bold'
|
|
98
|
+
fontWeight: (0, _getEditorUgcToken.default)('editor.font.weight.heading.h1.bold')
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}, headingWithAlignmentStyles()));
|
|
@@ -20,7 +20,7 @@ var paragraphSharedStyles = exports.paragraphSharedStyles = function paragraphSh
|
|
|
20
20
|
return (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? (0, _react.css)({
|
|
21
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
22
22
|
'& p': {
|
|
23
|
-
font: (0, _getEditorUgcToken.default)('editor.font.body'
|
|
23
|
+
font: (0, _getEditorUgcToken.default)('editor.font.body'),
|
|
24
24
|
marginTop: _editorSharedStyles.blockNodesVerticalMargin,
|
|
25
25
|
marginBottom: 0
|
|
26
26
|
}
|
|
@@ -58,7 +58,7 @@ var firstNodeWithNotMarginTop = function firstNodeWithNotMarginTop() {
|
|
|
58
58
|
|
|
59
59
|
// 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
|
|
60
60
|
var tableSharedStyle = exports.tableSharedStyle = function tableSharedStyle() {
|
|
61
|
-
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/* 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", " {\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", "\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)", 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)", (0, _platformFeatureFlags.fg)('platform_editor_renderer_table_header_styles') ? "> tbody > tr > th, > tbody > tr > td" : 'th, td', 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)",
|
|
61
|
+
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/* 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", " {\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)", 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)", (0, _platformFeatureFlags.fg)('platform_editor_renderer_table_header_styles') ? "> tbody > tr > th, > tbody > tr > td" : 'th, td', 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)({
|
|
62
62
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
63
63
|
}), "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)({
|
|
64
64
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
@@ -4,20 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
7
8
|
var _editorUgcTokenNames = require("./editor-ugc-token-names");
|
|
8
|
-
function editorUGCToken(path
|
|
9
|
-
var
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
break;
|
|
9
|
+
function editorUGCToken(path) {
|
|
10
|
+
var tokens;
|
|
11
|
+
if ((0, _platformFeatureFlags.fg)('platform_editor_typography_ugc')) {
|
|
12
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
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
|
+
}
|
|
18
|
+
} else {
|
|
19
|
+
tokens = _editorUgcTokenNames.editorUGCTokens;
|
|
20
20
|
}
|
|
21
|
-
return
|
|
21
|
+
return tokens[path];
|
|
22
22
|
}
|
|
23
23
|
var _default = exports.default = editorUGCToken;
|
|
@@ -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 = "102.13.
|
|
26
|
+
var packageVersion = "102.13.9";
|
|
27
27
|
var halfFocusRing = 1;
|
|
28
28
|
var dropOffset = '0, 8';
|
|
29
29
|
// Ignored via go/ees005
|
|
@@ -263,6 +263,7 @@ export let ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
263
263
|
ACTION_SUBJECT["TABLE"] = "table";
|
|
264
264
|
ACTION_SUBJECT["TABLES_PLUGIN"] = "tablesPlugin";
|
|
265
265
|
ACTION_SUBJECT["TEAM_MENTION_TYPEAHEAD"] = "teamMentionTypeahead";
|
|
266
|
+
ACTION_SUBJECT["TELEPOINTER"] = "telepointer";
|
|
266
267
|
ACTION_SUBJECT["TEXT"] = "text";
|
|
267
268
|
ACTION_SUBJECT["TOOLBAR"] = "toolbar";
|
|
268
269
|
ACTION_SUBJECT["TYPEAHEAD"] = "typeAhead";
|
|
@@ -423,6 +424,7 @@ export let ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
423
424
|
ACTION_SUBJECT_ID["STATUS"] = "status";
|
|
424
425
|
ACTION_SUBJECT_ID["SYMBOL"] = "symbol";
|
|
425
426
|
ACTION_SUBJECT_ID["TABLE"] = "table";
|
|
427
|
+
ACTION_SUBJECT_ID["TELEPOINTER"] = "telepointer";
|
|
426
428
|
ACTION_SUBJECT_ID["TEXT"] = "text";
|
|
427
429
|
ACTION_SUBJECT_ID["TYPEAHEAD_EMOJI"] = "emojiTypeAhead";
|
|
428
430
|
ACTION_SUBJECT_ID["TYPEAHEAD_LINK"] = "linkTypeAhead";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -72,7 +72,7 @@ const sidebarHeading = css({
|
|
|
72
72
|
alignItems: 'center',
|
|
73
73
|
paddingLeft: "var(--ds-space-150, 12px)",
|
|
74
74
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
75
|
-
font: editorUGCToken('editor.font.heading.h1'
|
|
75
|
+
font: editorUGCToken('editor.font.heading.h1')
|
|
76
76
|
});
|
|
77
77
|
const mobileMainContent = css({
|
|
78
78
|
flex: '1 1 auto',
|
|
@@ -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 = "102.13.
|
|
4
|
+
const packageVersion = "102.13.9";
|
|
5
5
|
const sanitiseSentryEvents = (data, _hint) => {
|
|
6
6
|
// Remove URL as it has UGC
|
|
7
7
|
// Ignored via go/ees007
|
|
@@ -44,51 +44,51 @@ export const headingsSharedStyles = typographyTheme => {
|
|
|
44
44
|
if (fg('platform_editor_typography_ugc')) {
|
|
45
45
|
return css({
|
|
46
46
|
'& h1': {
|
|
47
|
-
font: editorUGCToken('editor.font.heading.h1'
|
|
47
|
+
font: editorUGCToken('editor.font.heading.h1'),
|
|
48
48
|
marginBottom: 0,
|
|
49
49
|
marginTop: '1.45833em',
|
|
50
50
|
'& strong': {
|
|
51
|
-
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold'
|
|
51
|
+
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold')
|
|
52
52
|
},
|
|
53
53
|
'&::before': {}
|
|
54
54
|
},
|
|
55
55
|
'& h2': {
|
|
56
|
-
font: editorUGCToken('editor.font.heading.h2'
|
|
56
|
+
font: editorUGCToken('editor.font.heading.h2'),
|
|
57
57
|
marginTop: '1.4em',
|
|
58
58
|
marginBottom: 0,
|
|
59
59
|
'& strong': {
|
|
60
|
-
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold'
|
|
60
|
+
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold')
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
63
|
'& h3': {
|
|
64
|
-
font: editorUGCToken('editor.font.heading.h3'
|
|
64
|
+
font: editorUGCToken('editor.font.heading.h3'),
|
|
65
65
|
marginTop: '1.31249em',
|
|
66
66
|
marginBottom: 0,
|
|
67
67
|
'& strong': {
|
|
68
|
-
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold'
|
|
68
|
+
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold')
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
'& h4': {
|
|
72
|
-
font: editorUGCToken('editor.font.heading.h4'
|
|
72
|
+
font: editorUGCToken('editor.font.heading.h4'),
|
|
73
73
|
marginTop: '1.25em',
|
|
74
74
|
'& strong': {
|
|
75
|
-
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold'
|
|
75
|
+
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold')
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
'& h5': {
|
|
79
|
-
font: editorUGCToken('editor.font.heading.h5'
|
|
79
|
+
font: editorUGCToken('editor.font.heading.h5'),
|
|
80
80
|
marginTop: '1.45833em',
|
|
81
81
|
textTransform: 'none',
|
|
82
82
|
'& strong': {
|
|
83
|
-
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold'
|
|
83
|
+
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold')
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
86
|
'& h6': {
|
|
87
|
-
font: editorUGCToken('editor.font.heading.h6'
|
|
87
|
+
font: editorUGCToken('editor.font.heading.h6'),
|
|
88
88
|
marginTop: '1.59091em',
|
|
89
89
|
textTransform: 'none',
|
|
90
90
|
'& strong': {
|
|
91
|
-
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold'
|
|
91
|
+
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold')
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
...headingWithAlignmentStyles()
|
|
@@ -13,7 +13,7 @@ export const paragraphSharedStyles = typographyTheme => {
|
|
|
13
13
|
return fg('platform_editor_typography_ugc') ? css({
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
15
|
'& p': {
|
|
16
|
-
font: editorUGCToken('editor.font.body'
|
|
16
|
+
font: editorUGCToken('editor.font.body'),
|
|
17
17
|
marginTop: blockNodesVerticalMargin,
|
|
18
18
|
marginBottom: 0
|
|
19
19
|
}
|
|
@@ -154,10 +154,11 @@ const tableSharedStyle = () => css`
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
// Ensures nested tables are compatible with parent table background color - uses specificity to ensure tables nested by extensions are not affected
|
|
158
158
|
> tbody > tr > td {
|
|
159
159
|
background-color: ${"var(--ds-surface, #FFFFFF)"};
|
|
160
|
-
}
|
|
160
|
+
}
|
|
161
|
+
|
|
161
162
|
th {
|
|
162
163
|
background-color: ${`var(--ds-background-accent-gray-subtlest, ${akEditorTableToolbar})`};
|
|
163
164
|
text-align: left;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
2
|
import { editorUGCTokens, editorUGCTokensModernized, editorUGCTokensRefreshed } from './editor-ugc-token-names';
|
|
2
|
-
function editorUGCToken(path
|
|
3
|
-
let
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
break;
|
|
3
|
+
function editorUGCToken(path) {
|
|
4
|
+
let tokens;
|
|
5
|
+
if (fg('platform_editor_typography_ugc')) {
|
|
6
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
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
|
+
}
|
|
12
|
+
} else {
|
|
13
|
+
tokens = editorUGCTokens;
|
|
14
14
|
}
|
|
15
|
-
return
|
|
15
|
+
return tokens[path];
|
|
16
16
|
}
|
|
17
17
|
export default editorUGCToken;
|
|
@@ -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 = "102.13.
|
|
16
|
+
const packageVersion = "102.13.9";
|
|
17
17
|
const halfFocusRing = 1;
|
|
18
18
|
const dropOffset = '0, 8';
|
|
19
19
|
// Ignored via go/ees005
|
|
@@ -263,6 +263,7 @@ export var ACTION_SUBJECT = /*#__PURE__*/function (ACTION_SUBJECT) {
|
|
|
263
263
|
ACTION_SUBJECT["TABLE"] = "table";
|
|
264
264
|
ACTION_SUBJECT["TABLES_PLUGIN"] = "tablesPlugin";
|
|
265
265
|
ACTION_SUBJECT["TEAM_MENTION_TYPEAHEAD"] = "teamMentionTypeahead";
|
|
266
|
+
ACTION_SUBJECT["TELEPOINTER"] = "telepointer";
|
|
266
267
|
ACTION_SUBJECT["TEXT"] = "text";
|
|
267
268
|
ACTION_SUBJECT["TOOLBAR"] = "toolbar";
|
|
268
269
|
ACTION_SUBJECT["TYPEAHEAD"] = "typeAhead";
|
|
@@ -423,6 +424,7 @@ export var ACTION_SUBJECT_ID = /*#__PURE__*/function (ACTION_SUBJECT_ID) {
|
|
|
423
424
|
ACTION_SUBJECT_ID["STATUS"] = "status";
|
|
424
425
|
ACTION_SUBJECT_ID["SYMBOL"] = "symbol";
|
|
425
426
|
ACTION_SUBJECT_ID["TABLE"] = "table";
|
|
427
|
+
ACTION_SUBJECT_ID["TELEPOINTER"] = "telepointer";
|
|
426
428
|
ACTION_SUBJECT_ID["TEXT"] = "text";
|
|
427
429
|
ACTION_SUBJECT_ID["TYPEAHEAD_EMOJI"] = "emojiTypeAhead";
|
|
428
430
|
ACTION_SUBJECT_ID["TYPEAHEAD_LINK"] = "linkTypeAhead";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -73,7 +73,7 @@ var sidebarHeading = css({
|
|
|
73
73
|
alignItems: 'center',
|
|
74
74
|
paddingLeft: "var(--ds-space-150, 12px)",
|
|
75
75
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
76
|
-
font: editorUGCToken('editor.font.heading.h1'
|
|
76
|
+
font: editorUGCToken('editor.font.heading.h1')
|
|
77
77
|
});
|
|
78
78
|
var mobileMainContent = css({
|
|
79
79
|
flex: '1 1 auto',
|
|
@@ -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 = "102.13.
|
|
10
|
+
var packageVersion = "102.13.9";
|
|
11
11
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
12
12
|
// Remove URL as it has UGC
|
|
13
13
|
// Ignored via go/ees007
|
|
@@ -50,51 +50,51 @@ export var headingsSharedStyles = function headingsSharedStyles(typographyTheme)
|
|
|
50
50
|
if (fg('platform_editor_typography_ugc')) {
|
|
51
51
|
return css(_objectSpread({
|
|
52
52
|
'& h1': {
|
|
53
|
-
font: editorUGCToken('editor.font.heading.h1'
|
|
53
|
+
font: editorUGCToken('editor.font.heading.h1'),
|
|
54
54
|
marginBottom: 0,
|
|
55
55
|
marginTop: '1.45833em',
|
|
56
56
|
'& strong': {
|
|
57
|
-
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold'
|
|
57
|
+
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold')
|
|
58
58
|
},
|
|
59
59
|
'&::before': {}
|
|
60
60
|
},
|
|
61
61
|
'& h2': {
|
|
62
|
-
font: editorUGCToken('editor.font.heading.h2'
|
|
62
|
+
font: editorUGCToken('editor.font.heading.h2'),
|
|
63
63
|
marginTop: '1.4em',
|
|
64
64
|
marginBottom: 0,
|
|
65
65
|
'& strong': {
|
|
66
|
-
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold'
|
|
66
|
+
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold')
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
'& h3': {
|
|
70
|
-
font: editorUGCToken('editor.font.heading.h3'
|
|
70
|
+
font: editorUGCToken('editor.font.heading.h3'),
|
|
71
71
|
marginTop: '1.31249em',
|
|
72
72
|
marginBottom: 0,
|
|
73
73
|
'& strong': {
|
|
74
|
-
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold'
|
|
74
|
+
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold')
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
'& h4': {
|
|
78
|
-
font: editorUGCToken('editor.font.heading.h4'
|
|
78
|
+
font: editorUGCToken('editor.font.heading.h4'),
|
|
79
79
|
marginTop: '1.25em',
|
|
80
80
|
'& strong': {
|
|
81
|
-
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold'
|
|
81
|
+
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold')
|
|
82
82
|
}
|
|
83
83
|
},
|
|
84
84
|
'& h5': {
|
|
85
|
-
font: editorUGCToken('editor.font.heading.h5'
|
|
85
|
+
font: editorUGCToken('editor.font.heading.h5'),
|
|
86
86
|
marginTop: '1.45833em',
|
|
87
87
|
textTransform: 'none',
|
|
88
88
|
'& strong': {
|
|
89
|
-
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold'
|
|
89
|
+
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold')
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
'& h6': {
|
|
93
|
-
font: editorUGCToken('editor.font.heading.h6'
|
|
93
|
+
font: editorUGCToken('editor.font.heading.h6'),
|
|
94
94
|
marginTop: '1.59091em',
|
|
95
95
|
textTransform: 'none',
|
|
96
96
|
'& strong': {
|
|
97
|
-
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold'
|
|
97
|
+
fontWeight: editorUGCToken('editor.font.weight.heading.h1.bold')
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
}, headingWithAlignmentStyles()));
|
|
@@ -13,7 +13,7 @@ export var paragraphSharedStyles = function paragraphSharedStyles(typographyThem
|
|
|
13
13
|
return fg('platform_editor_typography_ugc') ? css({
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
15
|
'& p': {
|
|
16
|
-
font: editorUGCToken('editor.font.body'
|
|
16
|
+
font: editorUGCToken('editor.font.body'),
|
|
17
17
|
marginTop: blockNodesVerticalMargin,
|
|
18
18
|
marginBottom: 0
|
|
19
19
|
}
|
|
@@ -52,7 +52,7 @@ var firstNodeWithNotMarginTop = function firstNodeWithNotMarginTop() {
|
|
|
52
52
|
|
|
53
53
|
// 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
|
|
54
54
|
var tableSharedStyle = function tableSharedStyle() {
|
|
55
|
-
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\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/* 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", " {\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", "\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"])), tableCellBackgroundStyleOverride(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", fg('platform_editor_renderer_table_header_styles') ? "> tbody > tr > th, > tbody > tr > td" : 'th, td', tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)",
|
|
55
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\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/* 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", " {\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"])), tableCellBackgroundStyleOverride(), TableSharedCssClassName.TABLE_CONTAINER, "var(--ds-space-200, 16px)", TableSharedCssClassName.TABLE_CONTAINER, akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_RESIZER_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, "var(--ds-space-300, 24px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-background-neutral-subtle, white)", fg('platform_editor_renderer_table_header_styles') ? "> tbody > tr > th, > tbody > tr > td" : 'th, td', tableCellMinWidth, "var(--ds-font-weight-regular, 400)", "var(--ds-background-accent-gray-subtler, ".concat(akEditorTableBorder, ")"), "var(--ds-space-100, 8px)", browser.gecko || browser.ie || browser.mac && browser.chrome ? 'background-clip: padding-box;' : '', firstNodeWithNotMarginTop(), "var(--ds-space-150, 12px)", "var(--ds-surface, #FFFFFF)", "var(--ds-background-accent-gray-subtlest, ".concat(akEditorTableToolbar, ")"), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, rgb(235, 237, 240))", akEditorSelectedNodeClassName, "var(--ds-border, transparent)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, overflowShadow({
|
|
56
56
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
57
57
|
}), "var(--ds-background-neutral, rgb(235, 237, 240))", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, rgb(226, 229, 233))", overflowShadow({
|
|
58
58
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import { fg } from '@atlaskit/platform-feature-flags';
|
|
1
2
|
import { editorUGCTokens, editorUGCTokensModernized, editorUGCTokensRefreshed } from './editor-ugc-token-names';
|
|
2
|
-
function editorUGCToken(path
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
break;
|
|
3
|
+
function editorUGCToken(path) {
|
|
4
|
+
var tokens;
|
|
5
|
+
if (fg('platform_editor_typography_ugc')) {
|
|
6
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
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
|
+
}
|
|
12
|
+
} else {
|
|
13
|
+
tokens = editorUGCTokens;
|
|
14
14
|
}
|
|
15
|
-
return
|
|
15
|
+
return tokens[path];
|
|
16
16
|
}
|
|
17
17
|
export default editorUGCToken;
|
|
@@ -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 = "102.13.
|
|
23
|
+
var packageVersion = "102.13.9";
|
|
24
24
|
var halfFocusRing = 1;
|
|
25
25
|
var dropOffset = '0, 8';
|
|
26
26
|
// Ignored via go/ees005
|
|
@@ -48,3 +48,4 @@ export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
|
|
|
48
48
|
export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/ai-unified-events';
|
|
49
49
|
export type { ActiveSessionEventPayload, ActiveSessionEventAttributes, } from './types/activity-session-events';
|
|
50
50
|
export { type AIInlineSuggestionPayload, AI_SUGGESTION_TRIGGERED_FROM, } from './types/ai-inline-suggestion-events';
|
|
51
|
+
export { type TelepointerClickPayload } from './types/telepointer-events';
|
|
@@ -277,6 +277,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
277
277
|
TABLE = "table",
|
|
278
278
|
TABLES_PLUGIN = "tablesPlugin",
|
|
279
279
|
TEAM_MENTION_TYPEAHEAD = "teamMentionTypeahead",
|
|
280
|
+
TELEPOINTER = "telepointer",
|
|
280
281
|
TEXT = "text",
|
|
281
282
|
TOOLBAR = "toolbar",
|
|
282
283
|
TYPEAHEAD = "typeAhead",
|
|
@@ -436,6 +437,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
436
437
|
STATUS = "status",
|
|
437
438
|
SYMBOL = "symbol",
|
|
438
439
|
TABLE = "table",
|
|
440
|
+
TELEPOINTER = "telepointer",
|
|
439
441
|
TEXT = "text",
|
|
440
442
|
TYPEAHEAD_EMOJI = "emojiTypeAhead",
|
|
441
443
|
TYPEAHEAD_LINK = "linkTypeAhead",
|
|
@@ -43,6 +43,7 @@ import type { SelectionEventPayload } from './selection-events';
|
|
|
43
43
|
import type { SelectionExtensionEventPayload } from './selection-extension-events';
|
|
44
44
|
import type { SubstituteEventPayload } from './substitute-events';
|
|
45
45
|
import type { TableEventPayload } from './table-events';
|
|
46
|
+
import type { TelepointerClickPayload } from './telepointer-events';
|
|
46
47
|
import type { TypeAheadPayload } from './type-ahead';
|
|
47
48
|
import type { MediaUploadEventPayload } from './upload-media-events';
|
|
48
49
|
import type { OperationalAEP, OperationalExposureAEP, TrackAEP } from './utils';
|
|
@@ -55,7 +56,7 @@ export type SimplifiedNode = {
|
|
|
55
56
|
marks?: string[];
|
|
56
57
|
content?: SimplifiedNode[];
|
|
57
58
|
};
|
|
58
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload;
|
|
59
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload;
|
|
59
60
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
60
61
|
previousColor: string;
|
|
61
62
|
newColor: string;
|
|
@@ -50,7 +50,7 @@ type InsertTableAEP = InsertAEP<ACTION_SUBJECT_ID.TABLE, {
|
|
|
50
50
|
localId?: string;
|
|
51
51
|
}, undefined>;
|
|
52
52
|
type InsertExpandAEP = InsertAEP<ACTION_SUBJECT_ID.EXPAND | ACTION_SUBJECT_ID.NESTED_EXPAND, {
|
|
53
|
-
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU
|
|
53
|
+
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU;
|
|
54
54
|
}, undefined>;
|
|
55
55
|
type InsertActionDecisionAEP = InsertAEP<ACTION_SUBJECT_ID.DECISION | ACTION_SUBJECT_ID.ACTION, {
|
|
56
56
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
|
+
import type { TrackAEP } from './utils';
|
|
3
|
+
type TelepointerClickAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.TELEPOINTER, ACTION_SUBJECT_ID.TELEPOINTER, undefined, undefined>;
|
|
4
|
+
export type TelepointerClickPayload = TelepointerClickAEP;
|
|
5
|
+
export {};
|
|
@@ -240,14 +240,6 @@ export type FeatureFlags = {
|
|
|
240
240
|
|
|
241
241
|
*/
|
|
242
242
|
moreElementsInQuickInsertView?: boolean;
|
|
243
|
-
/**
|
|
244
|
-
* @description
|
|
245
|
-
* Enables basic text transformations options in floating toolbar
|
|
246
|
-
*
|
|
247
|
-
* @see https://product-fabric.atlassian.net/browse/ED-24447
|
|
248
|
-
* @default false
|
|
249
|
-
*/
|
|
250
|
-
basicTextTransformations?: boolean;
|
|
251
243
|
/**
|
|
252
244
|
* @description
|
|
253
245
|
* Enables nesting nested expands in expands
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type EditorUGCTokens } from './editor-ugc-token-names';
|
|
2
|
-
declare function editorUGCToken<T extends keyof EditorUGCTokens>(path: T
|
|
2
|
+
declare function editorUGCToken<T extends keyof EditorUGCTokens>(path: T): EditorUGCTokens[T];
|
|
3
3
|
export default editorUGCToken;
|
|
@@ -48,3 +48,4 @@ export type { AIDefinitionsEventPayload } from './types/ai-definitions-events';
|
|
|
48
48
|
export type { AIUnifiedEventPayload, AIUnifiedCommonAttributes } from './types/ai-unified-events';
|
|
49
49
|
export type { ActiveSessionEventPayload, ActiveSessionEventAttributes, } from './types/activity-session-events';
|
|
50
50
|
export { type AIInlineSuggestionPayload, AI_SUGGESTION_TRIGGERED_FROM, } from './types/ai-inline-suggestion-events';
|
|
51
|
+
export { type TelepointerClickPayload } from './types/telepointer-events';
|
|
@@ -277,6 +277,7 @@ export declare enum ACTION_SUBJECT {
|
|
|
277
277
|
TABLE = "table",
|
|
278
278
|
TABLES_PLUGIN = "tablesPlugin",
|
|
279
279
|
TEAM_MENTION_TYPEAHEAD = "teamMentionTypeahead",
|
|
280
|
+
TELEPOINTER = "telepointer",
|
|
280
281
|
TEXT = "text",
|
|
281
282
|
TOOLBAR = "toolbar",
|
|
282
283
|
TYPEAHEAD = "typeAhead",
|
|
@@ -436,6 +437,7 @@ export declare enum ACTION_SUBJECT_ID {
|
|
|
436
437
|
STATUS = "status",
|
|
437
438
|
SYMBOL = "symbol",
|
|
438
439
|
TABLE = "table",
|
|
440
|
+
TELEPOINTER = "telepointer",
|
|
439
441
|
TEXT = "text",
|
|
440
442
|
TYPEAHEAD_EMOJI = "emojiTypeAhead",
|
|
441
443
|
TYPEAHEAD_LINK = "linkTypeAhead",
|
|
@@ -43,6 +43,7 @@ import type { SelectionEventPayload } from './selection-events';
|
|
|
43
43
|
import type { SelectionExtensionEventPayload } from './selection-extension-events';
|
|
44
44
|
import type { SubstituteEventPayload } from './substitute-events';
|
|
45
45
|
import type { TableEventPayload } from './table-events';
|
|
46
|
+
import type { TelepointerClickPayload } from './telepointer-events';
|
|
46
47
|
import type { TypeAheadPayload } from './type-ahead';
|
|
47
48
|
import type { MediaUploadEventPayload } from './upload-media-events';
|
|
48
49
|
import type { OperationalAEP, OperationalExposureAEP, TrackAEP } from './utils';
|
|
@@ -55,7 +56,7 @@ export type SimplifiedNode = {
|
|
|
55
56
|
marks?: string[];
|
|
56
57
|
content?: SimplifiedNode[];
|
|
57
58
|
};
|
|
58
|
-
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload;
|
|
59
|
+
export type AnalyticsEventPayload<T = void> = AvatarEventPayload | GeneralEventPayload<T> | FormatEventPayload | SubstituteEventPayload | InsertEventPayload | NodeEventPayload | MoveContentEventPayload | MediaEventPayload | TableEventPayload | PasteEventPayload | CutCopyEventPayload | ErrorEventPayload | ExperimentalEventPayload | FindReplaceEventPayload | DateEventPayload | SelectionEventPayload | ListEventPayload | ConfigPanelEventPayload | ElementBrowserEventPayload | CreateLinkInlineDialogEventPayload | HighlightActionsEventPayload | UnsupportedContentPayload | ExtensionEventPayload | TransactionEventPayload | TypeAheadPayload | UnlinkToolbarAEP | EditLinkToolbarAEP | OpenSettingsToolbarAEP | CustomPanelEventPayload | FeatureExposureAEP | NewCollabSyncUpErrorAEP | UnsupportedContentTooltipPayload | ReferentialityEventPayload | LoomEventPayload | MBEEventPayload | HighlightEventPayload | DatasourceClickedPayload | ElementEventPayload | VisitedLinkAEP | ViewEventPayload | MediaUploadEventPayload | MentionEventPayload | EngagementPlatformEventPayload | NestedTableActionsEventPayload | AICommandPaletteEventPayload | AIDefinitionsEventPayload | AIEventPayload | AIProactiveEventPayload | AIUnifiedEventPayload | BreakoutEventPayload | ActiveSessionEventPayload | AIInlineSuggestionPayload | SelectionExtensionEventPayload | TelepointerClickPayload;
|
|
59
60
|
type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
|
|
60
61
|
previousColor: string;
|
|
61
62
|
newColor: string;
|
|
@@ -50,7 +50,7 @@ type InsertTableAEP = InsertAEP<ACTION_SUBJECT_ID.TABLE, {
|
|
|
50
50
|
localId?: string;
|
|
51
51
|
}, undefined>;
|
|
52
52
|
type InsertExpandAEP = InsertAEP<ACTION_SUBJECT_ID.EXPAND | ACTION_SUBJECT_ID.NESTED_EXPAND, {
|
|
53
|
-
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU
|
|
53
|
+
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.INSERT_MENU;
|
|
54
54
|
}, undefined>;
|
|
55
55
|
type InsertActionDecisionAEP = InsertAEP<ACTION_SUBJECT_ID.DECISION | ACTION_SUBJECT_ID.ACTION, {
|
|
56
56
|
inputMethod: INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR | INPUT_METHOD.INSERT_MENU | INPUT_METHOD.FORMATTING | INPUT_METHOD.KEYBOARD;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID } from './enums';
|
|
2
|
+
import type { TrackAEP } from './utils';
|
|
3
|
+
type TelepointerClickAEP = TrackAEP<ACTION.CLICKED, ACTION_SUBJECT.TELEPOINTER, ACTION_SUBJECT_ID.TELEPOINTER, undefined, undefined>;
|
|
4
|
+
export type TelepointerClickPayload = TelepointerClickAEP;
|
|
5
|
+
export {};
|
|
@@ -240,14 +240,6 @@ export type FeatureFlags = {
|
|
|
240
240
|
|
|
241
241
|
*/
|
|
242
242
|
moreElementsInQuickInsertView?: boolean;
|
|
243
|
-
/**
|
|
244
|
-
* @description
|
|
245
|
-
* Enables basic text transformations options in floating toolbar
|
|
246
|
-
*
|
|
247
|
-
* @see https://product-fabric.atlassian.net/browse/ED-24447
|
|
248
|
-
* @default false
|
|
249
|
-
*/
|
|
250
|
-
basicTextTransformations?: boolean;
|
|
251
243
|
/**
|
|
252
244
|
* @description
|
|
253
245
|
* Enables nesting nested expands in expands
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type EditorUGCTokens } from './editor-ugc-token-names';
|
|
2
|
-
declare function editorUGCToken<T extends keyof EditorUGCTokens>(path: T
|
|
2
|
+
declare function editorUGCToken<T extends keyof EditorUGCTokens>(path: T): EditorUGCTokens[T];
|
|
3
3
|
export default editorUGCToken;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "102.13.
|
|
3
|
+
"version": "102.13.9",
|
|
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/"
|
|
@@ -135,7 +135,7 @@
|
|
|
135
135
|
"@atlaskit/editor-shared-styles": "^3.4.0",
|
|
136
136
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
137
137
|
"@atlaskit/emoji": "^69.0.0",
|
|
138
|
-
"@atlaskit/icon": "^25.
|
|
138
|
+
"@atlaskit/icon": "^25.2.0",
|
|
139
139
|
"@atlaskit/icon-object": "^7.0.0",
|
|
140
140
|
"@atlaskit/link-datasource": "^4.1.0",
|
|
141
141
|
"@atlaskit/link-picker": "^3.1.0",
|
|
@@ -155,7 +155,7 @@
|
|
|
155
155
|
"@atlaskit/primitives": "^14.2.0",
|
|
156
156
|
"@atlaskit/profilecard": "^23.6.0",
|
|
157
157
|
"@atlaskit/section-message": "^8.2.0",
|
|
158
|
-
"@atlaskit/smart-card": "^36.
|
|
158
|
+
"@atlaskit/smart-card": "^36.2.0",
|
|
159
159
|
"@atlaskit/smart-user-picker": "^8.0.0",
|
|
160
160
|
"@atlaskit/spinner": "^18.0.0",
|
|
161
161
|
"@atlaskit/task-decision": "^19.1.0",
|
|
@@ -271,9 +271,6 @@
|
|
|
271
271
|
"platform_editor_use_nested_table_pm_nodes": {
|
|
272
272
|
"type": "boolean"
|
|
273
273
|
},
|
|
274
|
-
"platform_editor_nested_tables_renderer_styles": {
|
|
275
|
-
"type": "boolean"
|
|
276
|
-
},
|
|
277
274
|
"platform_editor_legacy_content_macro": {
|
|
278
275
|
"type": "boolean"
|
|
279
276
|
},
|
|
@@ -321,6 +318,15 @@
|
|
|
321
318
|
},
|
|
322
319
|
"confluence-issue-terminology-refresh": {
|
|
323
320
|
"type": "boolean"
|
|
321
|
+
},
|
|
322
|
+
"platform-dst-jira-web-fonts": {
|
|
323
|
+
"type": "boolean"
|
|
324
|
+
},
|
|
325
|
+
"confluence_typography_refreshed": {
|
|
326
|
+
"type": "boolean"
|
|
327
|
+
},
|
|
328
|
+
"atlas_editor_typography_refreshed": {
|
|
329
|
+
"type": "boolean"
|
|
324
330
|
}
|
|
325
331
|
}
|
|
326
332
|
}
|