@atlaskit/editor-common 103.22.1 → 103.22.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/analytics/index.js +6 -0
  3. package/dist/cjs/analytics/linking-utils.js +11 -4
  4. package/dist/cjs/monitoring/error.js +1 -1
  5. package/dist/cjs/styles/shared/code-block.js +4 -3
  6. package/dist/cjs/ui/DropList/index.js +1 -1
  7. package/dist/cjs/ui/MediaSingle/index.js +1 -1
  8. package/dist/cjs/ui/MediaSingle/styled.js +1 -1
  9. package/dist/cjs/ui/Mention/index.js +1 -1
  10. package/dist/es2019/analytics/index.js +1 -1
  11. package/dist/es2019/analytics/linking-utils.js +10 -3
  12. package/dist/es2019/monitoring/error.js +1 -1
  13. package/dist/es2019/styles/shared/code-block.js +4 -1
  14. package/dist/es2019/ui/DropList/index.js +1 -1
  15. package/dist/es2019/ui/MediaSingle/index.js +1 -1
  16. package/dist/es2019/ui/MediaSingle/styled.js +1 -1
  17. package/dist/es2019/ui/Mention/index.js +1 -1
  18. package/dist/esm/analytics/index.js +1 -1
  19. package/dist/esm/analytics/linking-utils.js +10 -3
  20. package/dist/esm/monitoring/error.js +1 -1
  21. package/dist/esm/styles/shared/code-block.js +4 -3
  22. package/dist/esm/ui/DropList/index.js +1 -1
  23. package/dist/esm/ui/MediaSingle/index.js +1 -1
  24. package/dist/esm/ui/MediaSingle/styled.js +1 -1
  25. package/dist/esm/ui/Mention/index.js +1 -1
  26. package/dist/types/analytics/index.d.ts +1 -1
  27. package/dist/types/analytics/linking-utils.d.ts +1 -0
  28. package/dist/types/analytics/types/node-events.d.ts +1 -1
  29. package/dist/types-ts4.5/analytics/index.d.ts +1 -1
  30. package/dist/types-ts4.5/analytics/linking-utils.d.ts +1 -0
  31. package/dist/types-ts4.5/analytics/types/node-events.d.ts +1 -1
  32. package/package.json +13 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 103.22.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#149530](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/149530)
8
+ [`a432884180253`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a432884180253) -
9
+ Sends SmartLink Visited event with additional input methods depending on the way the link was
10
+ opened.
11
+ - Updated dependencies
12
+
13
+ ## 103.22.2
14
+
15
+ ### Patch Changes
16
+
17
+ - [#148616](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148616)
18
+ [`88c51b91d61b9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/88c51b91d61b9) -
19
+ [CONFCLOUD-71644] Fix: code block doesn't have the correct backaground color in page include macro
20
+ - Updated dependencies
21
+
3
22
  ## 103.22.1
4
23
 
5
24
  ### Patch Changes
@@ -291,6 +291,12 @@ Object.defineProperty(exports, "buildVisitedLinkPayload", {
291
291
  return _linkingUtils.buildVisitedLinkPayload;
292
292
  }
293
293
  });
294
+ Object.defineProperty(exports, "buildVisitedNonHyperLinkPayload", {
295
+ enumerable: true,
296
+ get: function get() {
297
+ return _linkingUtils.buildVisitedNonHyperLinkPayload;
298
+ }
299
+ });
294
300
  Object.defineProperty(exports, "editorAnalyticsChannel", {
295
301
  enumerable: true,
296
302
  get: function get() {
@@ -3,7 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.unlinkPayload = exports.buildVisitedLinkPayload = exports.buildOpenedSettingsPayload = exports.buildEditLinkPayload = void 0;
6
+ exports.unlinkPayload = exports.buildVisitedNonHyperLinkPayload = exports.buildVisitedLinkPayload = exports.buildOpenedSettingsPayload = exports.buildEditLinkPayload = void 0;
7
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
7
8
  var _enums = require("./types/enums");
8
9
  var buildEditLinkPayload = exports.buildEditLinkPayload = function buildEditLinkPayload(type) {
9
10
  return {
@@ -38,7 +39,10 @@ var mapLinkTypeToCardAppearance = function mapLinkTypeToCardAppearance(type) {
38
39
  }
39
40
  };
40
41
  var buildVisitedLinkPayload = exports.buildVisitedLinkPayload = function buildVisitedLinkPayload(type) {
41
- return type === _enums.ACTION_SUBJECT_ID.HYPERLINK ? {
42
+ return type === _enums.ACTION_SUBJECT_ID.HYPERLINK ? buildVisitedHyperLinkPayload() : buildVisitedNonHyperLinkPayload(type, _enums.INPUT_METHOD.TOOLBAR);
43
+ };
44
+ var buildVisitedHyperLinkPayload = function buildVisitedHyperLinkPayload() {
45
+ return {
42
46
  action: _enums.ACTION.VISITED,
43
47
  actionSubject: _enums.ACTION_SUBJECT.HYPERLINK,
44
48
  actionSubjectId: undefined,
@@ -46,12 +50,15 @@ var buildVisitedLinkPayload = exports.buildVisitedLinkPayload = function buildVi
46
50
  inputMethod: _enums.INPUT_METHOD.TOOLBAR
47
51
  },
48
52
  eventType: _enums.EVENT_TYPE.TRACK
49
- } : {
53
+ };
54
+ };
55
+ var buildVisitedNonHyperLinkPayload = exports.buildVisitedNonHyperLinkPayload = function buildVisitedNonHyperLinkPayload(type, inputMethod) {
56
+ return {
50
57
  action: _enums.ACTION.VISITED,
51
58
  actionSubject: _enums.ACTION_SUBJECT.SMART_LINK,
52
59
  actionSubjectId: type,
53
60
  attributes: {
54
- inputMethod: _enums.INPUT_METHOD.TOOLBAR
61
+ inputMethod: (0, _platformFeatureFlags.fg)('platform_editor_controls_patch_analytics') ? inputMethod : _enums.INPUT_METHOD.TOOLBAR
55
62
  },
56
63
  eventType: _enums.EVENT_TYPE.TRACK
57
64
  };
@@ -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 = "103.22.1";
20
+ var packageVersion = "103.22.3";
21
21
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
22
22
  // Remove URL as it has UGC
23
23
  // Ignored via go/ees007
@@ -8,7 +8,8 @@ exports.codeBlockSharedStyles = exports.codeBlockInListSafariFix = exports.CodeB
8
8
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
9
  var _react = require("@emotion/react");
10
10
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
11
- var _templateObject, _templateObject2;
11
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
12
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
12
13
  /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Should be safe to autofix, but ignoring for now */
13
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
14
15
  var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
@@ -23,10 +24,10 @@ var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
23
24
  CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: 'code-content__line-number--wrapped'
24
25
  };
25
26
  var codeBlockSharedStyles = exports.codeBlockSharedStyles = function codeBlockSharedStyles() {
26
- return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t--ds--code--bg-color: transparent;\n\n\t\t.code-block-gutter-pseudo-element::before {\n\t\t\tcontent: attr(data-label);\n\t\t}\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t// This is a fix of marker of list item with code block.\n\t\t// The list item marker in Chrome is aligned by the baseline of the text,\n\t\t// that's why we need to add a text (content: \"1\") to the line number gutter to align\n\t\t// the list item marker with the text.\n\t\t// Without it, the list item marker will be aligned by the bottom of the code block.\n\t\t.", "::before {\n\t\t\tcontent: '1';\n\t\t\tvisibility: hidden;\n\t\t\tfont-size: ", ";\n\t\t\tline-height: 1.5rem;\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", "var(--ds-border-radius, 3px)", _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.akEditorCodeFontFamily, _editorSharedStyles.akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, #091E420F)", "var(--ds-border-radius, 3px)", (0, _editorSharedStyles.overflowShadow)({
27
+ return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t", "\n\n\t\t.code-block-gutter-pseudo-element::before {\n\t\t\tcontent: attr(data-label);\n\t\t}\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t// This is a fix of marker of list item with code block.\n\t\t// The list item marker in Chrome is aligned by the baseline of the text,\n\t\t// that's why we need to add a text (content: \"1\") to the line number gutter to align\n\t\t// the list item marker with the text.\n\t\t// Without it, the list item marker will be aligned by the bottom of the code block.\n\t\t.", "::before {\n\t\t\tcontent: '1';\n\t\t\tvisibility: hidden;\n\t\t\tfont-size: ", ";\n\t\t\tline-height: 1.5rem;\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", "var(--ds-border-radius, 3px)", _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.akEditorCodeFontFamily, _editorSharedStyles.akEditorTableCellMinWidth, (0, _platformFeatureFlags.fg)('platform_editor_fix_code_block_bg_color_in_macro') ? (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)([""]))) : (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t\t--ds--code--bg-color: transparent;\n\t\t\t\t"]))), CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, #091E420F)", "var(--ds-border-radius, 3px)", (0, _editorSharedStyles.overflowShadow)({
27
28
  leftCoverWidth: "var(--ds-space-300, 24px)"
28
29
  }), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, #091E420F)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, #172B4D)", "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, (0, _editorSharedStyles.relativeFontSizeToBase16)(14), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
29
30
  };
30
31
 
31
32
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
32
- var codeBlockInListSafariFix = exports.codeBlockInListSafariFix = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t::before {\n\t\tcontent: ' ';\n\t\tline-height: ", ";\n\t}\n\n\t> p:first-child,\n\t> .code-block:first-child,\n\t> .ProseMirror-gapcursor:first-child + .code-block {\n\t\tmargin-top: -", "em !important;\n\t}\n"])), _editorSharedStyles.akEditorLineHeight, _editorSharedStyles.akEditorLineHeight);
33
+ var codeBlockInListSafariFix = exports.codeBlockInListSafariFix = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\t::before {\n\t\tcontent: ' ';\n\t\tline-height: ", ";\n\t}\n\n\t> p:first-child,\n\t> .code-block:first-child,\n\t> .ProseMirror-gapcursor:first-child + .code-block {\n\t\tmargin-top: -", "em !important;\n\t}\n"])), _editorSharedStyles.akEditorLineHeight, _editorSharedStyles.akEditorLineHeight);
@@ -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 = "103.22.1";
26
+ var packageVersion = "103.22.3";
27
27
  var halfFocusRing = 1;
28
28
  var dropOffset = '0, 8';
29
29
  // Ignored via go/ees005
@@ -110,7 +110,7 @@ function MediaSingle(_ref) {
110
110
  isInsideOfInlineExtension: isInsideOfInlineExtension
111
111
  })
112
112
  // eslint-disable-next-line react/jsx-props-no-spreading
113
- }, (0, _platformFeatureFlags.fg)('platform_fix_media_image_resizing') ? {} : {
113
+ }, (0, _platformFeatureFlags.fg)('platform_fix_media_image_resizing') || (0, _platformFeatureFlags.fg)('platform_editor_fix_image_size_diff_during_ssr') ? {} : {
114
114
  'data-layout': layout
115
115
  }, {
116
116
  "data-width": mediaSingleWidth,
@@ -202,7 +202,7 @@ var MediaSingleDimensionHelper = exports.MediaSingleDimensionHelper = function M
202
202
  '@container view-page-content (min-width: 1px)': {
203
203
  maxWidth: '100cqw'
204
204
  }
205
- }) : '', (0, _isSsr.isSSR)() && (0, _platformFeatureFlags.fg)('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(calculatedWidth, calculatedMaxWidth) : calculatedMaxWidth, isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && _utils.nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsive when resizing table cell */"max-width: 100%;" : _utils.nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
205
+ }) : '', (0, _isSsr.isSSR)() && (0, _platformFeatureFlags.fg)('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(parseInt(calculatedWidth.replace('px', '')), parseInt(calculatedMaxWidth.replace('px', ''))) + 'px' : calculatedMaxWidth, isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && _utils.nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsive when resizing table cell */"max-width: 100%;" : _utils.nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
206
206
  };
207
207
  var RenderFallbackContainer = function RenderFallbackContainer(_ref2) {
208
208
  var hasFallbackContainer = _ref2.hasFallbackContainer,
@@ -34,7 +34,7 @@ var Mention = exports.default = /*#__PURE__*/function (_PureComponent) {
34
34
  localId = _this$props.localId;
35
35
  var mentionProvider = providers.mentionProvider,
36
36
  profilecardProvider = providers.profilecardProvider;
37
- if ((0, _platformFeatureFlags.fg)('platform_editor_react18_mention_with_provider_fix')) {
37
+ if ((0, _platformFeatureFlags.fg)('platform_editor_react18_mention_with_provider_fix') || (0, _platformFeatureFlags.fg)('platform_editor_react18_mention_with_provider_jira')) {
38
38
  return /*#__PURE__*/_react.default.createElement(_mentionWithProviders.MentionWithProviders, {
39
39
  id: id,
40
40
  text: text,
@@ -18,5 +18,5 @@ export { TOOLBAR_ACTION_SUBJECT_ID } from './types/toolbar-button';
18
18
  export { SELECTION_POSITION, SELECTION_TYPE } from './types/utils';
19
19
  export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
20
20
  export { getAnalyticsEventsFromTransaction } from './utils';
21
- export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload } from './linking-utils';
21
+ export { buildEditLinkPayload, buildVisitedLinkPayload, buildVisitedNonHyperLinkPayload, buildOpenedSettingsPayload, unlinkPayload } from './linking-utils';
22
22
  export { AI_SUGGESTION_TRIGGERED_FROM } from './types/ai-inline-suggestion-events';
@@ -1,3 +1,4 @@
1
+ import { fg } from '@atlaskit/platform-feature-flags';
1
2
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types/enums';
2
3
  export const buildEditLinkPayload = type => {
3
4
  return {
@@ -32,7 +33,10 @@ const mapLinkTypeToCardAppearance = type => {
32
33
  }
33
34
  };
34
35
  export const buildVisitedLinkPayload = type => {
35
- return type === ACTION_SUBJECT_ID.HYPERLINK ? {
36
+ return type === ACTION_SUBJECT_ID.HYPERLINK ? buildVisitedHyperLinkPayload() : buildVisitedNonHyperLinkPayload(type, INPUT_METHOD.TOOLBAR);
37
+ };
38
+ const buildVisitedHyperLinkPayload = () => {
39
+ return {
36
40
  action: ACTION.VISITED,
37
41
  actionSubject: ACTION_SUBJECT.HYPERLINK,
38
42
  actionSubjectId: undefined,
@@ -40,12 +44,15 @@ export const buildVisitedLinkPayload = type => {
40
44
  inputMethod: INPUT_METHOD.TOOLBAR
41
45
  },
42
46
  eventType: EVENT_TYPE.TRACK
43
- } : {
47
+ };
48
+ };
49
+ export const buildVisitedNonHyperLinkPayload = (type, inputMethod) => {
50
+ return {
44
51
  action: ACTION.VISITED,
45
52
  actionSubject: ACTION_SUBJECT.SMART_LINK,
46
53
  actionSubjectId: type,
47
54
  attributes: {
48
- inputMethod: INPUT_METHOD.TOOLBAR
55
+ inputMethod: fg('platform_editor_controls_patch_analytics') ? inputMethod : INPUT_METHOD.TOOLBAR
49
56
  },
50
57
  eventType: EVENT_TYPE.TRACK
51
58
  };
@@ -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 = "103.22.1";
4
+ const packageVersion = "103.22.3";
5
5
  const sanitiseSentryEvents = (data, _hint) => {
6
6
  // Remove URL as it has UGC
7
7
  // Ignored via go/ees007
@@ -2,6 +2,7 @@
2
2
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
3
  import { css } from '@emotion/react';
4
4
  import { akEditorCodeFontFamily, akEditorLineHeight, akEditorTableCellMinWidth, blockNodesVerticalMargin, overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
5
6
  export const CodeBlockSharedCssClassName = {
6
7
  CODEBLOCK_CONTAINER: 'code-block',
7
8
  CODEBLOCK_START: 'code-block--start',
@@ -48,7 +49,9 @@ export const codeBlockSharedStyles = () => css`
48
49
  cursor: pointer;
49
50
  clear: both;
50
51
 
51
- --ds--code--bg-color: transparent;
52
+ ${fg('platform_editor_fix_code_block_bg_color_in_macro') ? css`` : css`
53
+ --ds--code--bg-color: transparent;
54
+ `}
52
55
 
53
56
  .code-block-gutter-pseudo-element::before {
54
57
  content: attr(data-label);
@@ -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 = "103.22.1";
16
+ const packageVersion = "103.22.3";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -95,7 +95,7 @@ export default function MediaSingle({
95
95
  isInsideOfInlineExtension
96
96
  })
97
97
  // eslint-disable-next-line react/jsx-props-no-spreading
98
- }, fg('platform_fix_media_image_resizing') ? {} : {
98
+ }, fg('platform_fix_media_image_resizing') || fg('platform_editor_fix_image_size_diff_during_ssr') ? {} : {
99
99
  'data-layout': layout
100
100
  }, {
101
101
  "data-width": mediaSingleWidth,
@@ -193,7 +193,7 @@ export const MediaSingleDimensionHelper = ({
193
193
  }
194
194
  }) : ''}
195
195
  /* If container doesn't exists, it will fallback to this */
196
- max-width: ${isSSR() && fg('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(calculatedWidth, calculatedMaxWidth) : calculatedMaxWidth};
196
+ max-width: ${isSSR() && fg('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(parseInt(calculatedWidth.replace('px', '')), parseInt(calculatedMaxWidth.replace('px', ''))) + 'px' : calculatedMaxWidth};
197
197
  ${isExtendedResizeExperienceOn && `&[class*='is-resizing'] {
198
198
  .new-file-experience-wrapper {
199
199
  box-shadow: none !important;
@@ -19,7 +19,7 @@ export default class Mention extends PureComponent {
19
19
  mentionProvider,
20
20
  profilecardProvider
21
21
  } = providers;
22
- if (fg('platform_editor_react18_mention_with_provider_fix')) {
22
+ if (fg('platform_editor_react18_mention_with_provider_fix') || fg('platform_editor_react18_mention_with_provider_jira')) {
23
23
  return /*#__PURE__*/React.createElement(MentionWithProviders, {
24
24
  id: id,
25
25
  text: text,
@@ -18,5 +18,5 @@ export { TOOLBAR_ACTION_SUBJECT_ID } from './types/toolbar-button';
18
18
  export { SELECTION_POSITION, SELECTION_TYPE } from './types/utils';
19
19
  export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
20
20
  export { getAnalyticsEventsFromTransaction } from './utils';
21
- export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload } from './linking-utils';
21
+ export { buildEditLinkPayload, buildVisitedLinkPayload, buildVisitedNonHyperLinkPayload, buildOpenedSettingsPayload, unlinkPayload } from './linking-utils';
22
22
  export { AI_SUGGESTION_TRIGGERED_FROM } from './types/ai-inline-suggestion-events';
@@ -1,3 +1,4 @@
1
+ import { fg } from '@atlaskit/platform-feature-flags';
1
2
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from './types/enums';
2
3
  export var buildEditLinkPayload = function buildEditLinkPayload(type) {
3
4
  return {
@@ -32,7 +33,10 @@ var mapLinkTypeToCardAppearance = function mapLinkTypeToCardAppearance(type) {
32
33
  }
33
34
  };
34
35
  export var buildVisitedLinkPayload = function buildVisitedLinkPayload(type) {
35
- return type === ACTION_SUBJECT_ID.HYPERLINK ? {
36
+ return type === ACTION_SUBJECT_ID.HYPERLINK ? buildVisitedHyperLinkPayload() : buildVisitedNonHyperLinkPayload(type, INPUT_METHOD.TOOLBAR);
37
+ };
38
+ var buildVisitedHyperLinkPayload = function buildVisitedHyperLinkPayload() {
39
+ return {
36
40
  action: ACTION.VISITED,
37
41
  actionSubject: ACTION_SUBJECT.HYPERLINK,
38
42
  actionSubjectId: undefined,
@@ -40,12 +44,15 @@ export var buildVisitedLinkPayload = function buildVisitedLinkPayload(type) {
40
44
  inputMethod: INPUT_METHOD.TOOLBAR
41
45
  },
42
46
  eventType: EVENT_TYPE.TRACK
43
- } : {
47
+ };
48
+ };
49
+ export var buildVisitedNonHyperLinkPayload = function buildVisitedNonHyperLinkPayload(type, inputMethod) {
50
+ return {
44
51
  action: ACTION.VISITED,
45
52
  actionSubject: ACTION_SUBJECT.SMART_LINK,
46
53
  actionSubjectId: type,
47
54
  attributes: {
48
- inputMethod: INPUT_METHOD.TOOLBAR
55
+ inputMethod: fg('platform_editor_controls_patch_analytics') ? inputMethod : INPUT_METHOD.TOOLBAR
49
56
  },
50
57
  eventType: EVENT_TYPE.TRACK
51
58
  };
@@ -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 = "103.22.1";
10
+ var packageVersion = "103.22.3";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // Ignored via go/ees007
@@ -1,9 +1,10 @@
1
1
  import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2;
2
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
3
3
  /* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Should be safe to autofix, but ignoring for now */
4
4
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
5
5
  import { css } from '@emotion/react';
6
6
  import { akEditorCodeFontFamily, akEditorLineHeight, akEditorTableCellMinWidth, blockNodesVerticalMargin, overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
7
+ import { fg } from '@atlaskit/platform-feature-flags';
7
8
  export var CodeBlockSharedCssClassName = {
8
9
  CODEBLOCK_CONTAINER: 'code-block',
9
10
  CODEBLOCK_START: 'code-block--start',
@@ -16,10 +17,10 @@ export var CodeBlockSharedCssClassName = {
16
17
  CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: 'code-content__line-number--wrapped'
17
18
  };
18
19
  export var codeBlockSharedStyles = function codeBlockSharedStyles() {
19
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t--ds--code--bg-color: transparent;\n\n\t\t.code-block-gutter-pseudo-element::before {\n\t\t\tcontent: attr(data-label);\n\t\t}\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t// This is a fix of marker of list item with code block.\n\t\t// The list item marker in Chrome is aligned by the baseline of the text,\n\t\t// that's why we need to add a text (content: \"1\") to the line number gutter to align\n\t\t// the list item marker with the text.\n\t\t// Without it, the list item marker will be aligned by the bottom of the code block.\n\t\t.", "::before {\n\t\t\tcontent: '1';\n\t\t\tvisibility: hidden;\n\t\t\tfont-size: ", ";\n\t\t\tline-height: 1.5rem;\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, akEditorCodeFontFamily, akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, #091E420F)", "var(--ds-border-radius, 3px)", overflowShadow({
20
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t", "\n\n\t\t.code-block-gutter-pseudo-element::before {\n\t\t\tcontent: attr(data-label);\n\t\t}\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t// This is a fix of marker of list item with code block.\n\t\t// The list item marker in Chrome is aligned by the baseline of the text,\n\t\t// that's why we need to add a text (content: \"1\") to the line number gutter to align\n\t\t// the list item marker with the text.\n\t\t// Without it, the list item marker will be aligned by the bottom of the code block.\n\t\t.", "::before {\n\t\t\tcontent: '1';\n\t\t\tvisibility: hidden;\n\t\t\tfont-size: ", ";\n\t\t\tline-height: 1.5rem;\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, akEditorCodeFontFamily, akEditorTableCellMinWidth, fg('platform_editor_fix_code_block_bg_color_in_macro') ? css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral([""]))) : css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n\t\t\t\t\t--ds--code--bg-color: transparent;\n\t\t\t\t"]))), CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, #091E420F)", "var(--ds-border-radius, 3px)", overflowShadow({
20
21
  leftCoverWidth: "var(--ds-space-300, 24px)"
21
22
  }), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, #091E420F)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, #172B4D)", "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, relativeFontSizeToBase16(14), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
22
23
  };
23
24
 
24
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
25
- export var codeBlockInListSafariFix = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t::before {\n\t\tcontent: ' ';\n\t\tline-height: ", ";\n\t}\n\n\t> p:first-child,\n\t> .code-block:first-child,\n\t> .ProseMirror-gapcursor:first-child + .code-block {\n\t\tmargin-top: -", "em !important;\n\t}\n"])), akEditorLineHeight, akEditorLineHeight);
26
+ export var codeBlockInListSafariFix = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n\t::before {\n\t\tcontent: ' ';\n\t\tline-height: ", ";\n\t}\n\n\t> p:first-child,\n\t> .code-block:first-child,\n\t> .ProseMirror-gapcursor:first-child + .code-block {\n\t\tmargin-top: -", "em !important;\n\t}\n"])), akEditorLineHeight, akEditorLineHeight);
@@ -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 = "103.22.1";
23
+ var packageVersion = "103.22.3";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -102,7 +102,7 @@ export default function MediaSingle(_ref) {
102
102
  isInsideOfInlineExtension: isInsideOfInlineExtension
103
103
  })
104
104
  // eslint-disable-next-line react/jsx-props-no-spreading
105
- }, fg('platform_fix_media_image_resizing') ? {} : {
105
+ }, fg('platform_fix_media_image_resizing') || fg('platform_editor_fix_image_size_diff_during_ssr') ? {} : {
106
106
  'data-layout': layout
107
107
  }, {
108
108
  "data-width": mediaSingleWidth,
@@ -192,7 +192,7 @@ export var MediaSingleDimensionHelper = function MediaSingleDimensionHelper(_ref
192
192
  '@container view-page-content (min-width: 1px)': {
193
193
  maxWidth: '100cqw'
194
194
  }
195
- }) : '', isSSR() && fg('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(calculatedWidth, calculatedMaxWidth) : calculatedMaxWidth, isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsive when resizing table cell */"max-width: 100%;" : nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
195
+ }) : '', isSSR() && fg('platform_editor_fix_image_size_diff_during_ssr') ? Math.max(parseInt(calculatedWidth.replace('px', '')), parseInt(calculatedMaxWidth.replace('px', ''))) + 'px' : calculatedMaxWidth, isExtendedResizeExperienceOn && "&[class*='is-resizing'] {\n .new-file-experience-wrapper {\n box-shadow: none !important;\n }\n\n ".concat(!isNestedNode && nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", "\n }"), float(layout), calcMargin(layout), isNestedNode ? /* Make nested node appear responsive when resizing table cell */"max-width: 100%;" : nonWrappedLayouts.includes(layout) && "margin-left: 50%;\n transform: translateX(-50%);", isImageAligned(layout));
196
196
  };
197
197
  var RenderFallbackContainer = function RenderFallbackContainer(_ref2) {
198
198
  var hasFallbackContainer = _ref2.hasFallbackContainer,
@@ -25,7 +25,7 @@ var Mention = /*#__PURE__*/function (_PureComponent) {
25
25
  localId = _this$props.localId;
26
26
  var mentionProvider = providers.mentionProvider,
27
27
  profilecardProvider = providers.profilecardProvider;
28
- if (fg('platform_editor_react18_mention_with_provider_fix')) {
28
+ if (fg('platform_editor_react18_mention_with_provider_fix') || fg('platform_editor_react18_mention_with_provider_jira')) {
29
29
  return /*#__PURE__*/React.createElement(MentionWithProviders, {
30
30
  id: id,
31
31
  text: text,
@@ -39,7 +39,7 @@ export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './types
39
39
  export type { EditorAnalyticsAPI } from './api';
40
40
  export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
41
41
  export { getAnalyticsEventsFromTransaction } from './utils';
42
- export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
42
+ export { buildEditLinkPayload, buildVisitedLinkPayload, buildVisitedNonHyperLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
43
43
  export type { LinkType } from './linking-utils';
44
44
  export type { RequestToEditAEP } from './types/general-events';
45
45
  export type { AIEventPayload, AIMarkdownConversionErrorCaughtAttributes } from './types/ai-events';
@@ -3,6 +3,7 @@ import type { AnalyticsEventPayload } from './types/events';
3
3
  export declare const buildEditLinkPayload: (type: LinkType) => AnalyticsEventPayload;
4
4
  export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK;
5
5
  export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload;
6
+ export declare const buildVisitedNonHyperLinkPayload: (type: LinkType, inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.BUTTON | INPUT_METHOD.DOUBLE_CLICK | INPUT_METHOD.FLOATING_TB) => AnalyticsEventPayload;
6
7
  export declare const buildOpenedSettingsPayload: (type: LinkType) => AnalyticsEventPayload;
7
8
  export declare const unlinkPayload: (type: LinkType) => {
8
9
  action: ACTION;
@@ -28,7 +28,7 @@ type ChangeSmartLinkAEP = ChangeTypeAEP<ACTION_SUBJECT.SMART_LINK, undefined, {
28
28
  previousType: SMART_LINK_TYPE;
29
29
  }, undefined>;
30
30
  type VisitedSmartLink = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.SMART_LINK, ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE, {
31
- inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.CARD;
31
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.BUTTON | INPUT_METHOD.CARD | INPUT_METHOD.DOUBLE_CLICK;
32
32
  }, undefined>;
33
33
  type VisitedHyperlink = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.HYPERLINK, undefined, {
34
34
  inputMethod: INPUT_METHOD.TOOLBAR;
@@ -39,7 +39,7 @@ export type { ViewInlineCommentsButtonEventAEP, ViewEventPayload } from './types
39
39
  export type { EditorAnalyticsAPI } from './api';
40
40
  export { editorAnalyticsChannel, fireAnalyticsEvent } from './fire-analytics-event';
41
41
  export { getAnalyticsEventsFromTransaction } from './utils';
42
- export { buildEditLinkPayload, buildVisitedLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
42
+ export { buildEditLinkPayload, buildVisitedLinkPayload, buildVisitedNonHyperLinkPayload, buildOpenedSettingsPayload, unlinkPayload, } from './linking-utils';
43
43
  export type { LinkType } from './linking-utils';
44
44
  export type { RequestToEditAEP } from './types/general-events';
45
45
  export type { AIEventPayload, AIMarkdownConversionErrorCaughtAttributes } from './types/ai-events';
@@ -3,6 +3,7 @@ import type { AnalyticsEventPayload } from './types/events';
3
3
  export declare const buildEditLinkPayload: (type: LinkType) => AnalyticsEventPayload;
4
4
  export type LinkType = ACTION_SUBJECT_ID.CARD_INLINE | ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.EMBEDS | ACTION_SUBJECT_ID.HYPERLINK;
5
5
  export declare const buildVisitedLinkPayload: (type: LinkType) => AnalyticsEventPayload;
6
+ export declare const buildVisitedNonHyperLinkPayload: (type: LinkType, inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.BUTTON | INPUT_METHOD.DOUBLE_CLICK | INPUT_METHOD.FLOATING_TB) => AnalyticsEventPayload;
6
7
  export declare const buildOpenedSettingsPayload: (type: LinkType) => AnalyticsEventPayload;
7
8
  export declare const unlinkPayload: (type: LinkType) => {
8
9
  action: ACTION;
@@ -28,7 +28,7 @@ type ChangeSmartLinkAEP = ChangeTypeAEP<ACTION_SUBJECT.SMART_LINK, undefined, {
28
28
  previousType: SMART_LINK_TYPE;
29
29
  }, undefined>;
30
30
  type VisitedSmartLink = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.SMART_LINK, ACTION_SUBJECT_ID.CARD_BLOCK | ACTION_SUBJECT_ID.CARD_INLINE, {
31
- inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.CARD;
31
+ inputMethod: INPUT_METHOD.TOOLBAR | INPUT_METHOD.FLOATING_TB | INPUT_METHOD.BUTTON | INPUT_METHOD.CARD | INPUT_METHOD.DOUBLE_CLICK;
32
32
  }, undefined>;
33
33
  type VisitedHyperlink = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.HYPERLINK, undefined, {
34
34
  inputMethod: INPUT_METHOD.TOOLBAR;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "103.22.1",
3
+ "version": "103.22.3",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -140,7 +140,7 @@
140
140
  "@atlaskit/emoji": "^69.1.0",
141
141
  "@atlaskit/icon": "^25.6.0",
142
142
  "@atlaskit/icon-object": "^7.1.0",
143
- "@atlaskit/link-datasource": "^4.8.0",
143
+ "@atlaskit/link-datasource": "^4.9.0",
144
144
  "@atlaskit/link-picker": "^3.2.0",
145
145
  "@atlaskit/media-card": "^79.2.0",
146
146
  "@atlaskit/media-client": "^32.0.0",
@@ -155,11 +155,11 @@
155
155
  "@atlaskit/onboarding": "^14.0.0",
156
156
  "@atlaskit/platform-feature-flags": "^1.1.0",
157
157
  "@atlaskit/popper": "^7.0.0",
158
- "@atlaskit/primitives": "^14.6.0",
158
+ "@atlaskit/primitives": "^14.7.0",
159
159
  "@atlaskit/profilecard": "^23.10.0",
160
160
  "@atlaskit/react-ufo": "^3.9.0",
161
161
  "@atlaskit/section-message": "^8.2.0",
162
- "@atlaskit/smart-card": "^36.13.0",
162
+ "@atlaskit/smart-card": "^36.14.0",
163
163
  "@atlaskit/smart-user-picker": "^8.0.0",
164
164
  "@atlaskit/spinner": "^18.0.0",
165
165
  "@atlaskit/task-decision": "^19.2.0",
@@ -261,6 +261,9 @@
261
261
  "platform_editor_react18_mention_with_provider_fix": {
262
262
  "type": "boolean"
263
263
  },
264
+ "platform_editor_react18_mention_with_provider_jira": {
265
+ "type": "boolean"
266
+ },
264
267
  "platform_editor_react18_phase2_v2": {
265
268
  "type": "boolean"
266
269
  },
@@ -365,6 +368,12 @@
365
368
  },
366
369
  "platform_exclude_media_single_from_vc": {
367
370
  "type": "boolean"
371
+ },
372
+ "platform_editor_fix_code_block_bg_color_in_macro": {
373
+ "type": "boolean"
374
+ },
375
+ "platform_editor_controls_patch_analytics": {
376
+ "type": "boolean"
368
377
  }
369
378
  }
370
379
  }