@atlaskit/editor-common 86.5.1 → 86.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/cjs/analytics/types/link-events.js +5 -0
  3. package/dist/cjs/icons/shared/table.js +2 -1
  4. package/dist/cjs/monitoring/error.js +1 -1
  5. package/dist/cjs/quick-insert/assets/action.js +2 -1
  6. package/dist/cjs/quick-insert/assets/code.js +2 -1
  7. package/dist/cjs/quick-insert/assets/date.js +2 -1
  8. package/dist/cjs/quick-insert/assets/decision.js +2 -1
  9. package/dist/cjs/quick-insert/assets/divider.js +2 -1
  10. package/dist/cjs/quick-insert/assets/emoji.js +2 -1
  11. package/dist/cjs/quick-insert/assets/expand.js +2 -1
  12. package/dist/cjs/quick-insert/assets/fallback.js +2 -1
  13. package/dist/cjs/quick-insert/assets/feedback.js +2 -1
  14. package/dist/cjs/quick-insert/assets/heading1.js +2 -1
  15. package/dist/cjs/quick-insert/assets/heading2.js +2 -1
  16. package/dist/cjs/quick-insert/assets/heading3.js +2 -1
  17. package/dist/cjs/quick-insert/assets/heading4.js +2 -1
  18. package/dist/cjs/quick-insert/assets/heading5.js +2 -1
  19. package/dist/cjs/quick-insert/assets/heading6.js +2 -1
  20. package/dist/cjs/quick-insert/assets/images.js +2 -1
  21. package/dist/cjs/quick-insert/assets/layout.js +2 -1
  22. package/dist/cjs/quick-insert/assets/link.js +2 -1
  23. package/dist/cjs/quick-insert/assets/list-number.js +2 -1
  24. package/dist/cjs/quick-insert/assets/list.js +2 -1
  25. package/dist/cjs/quick-insert/assets/mention.js +2 -1
  26. package/dist/cjs/quick-insert/assets/panel-error.js +2 -1
  27. package/dist/cjs/quick-insert/assets/panel-note.js +2 -1
  28. package/dist/cjs/quick-insert/assets/panel-success.js +2 -1
  29. package/dist/cjs/quick-insert/assets/panel-warning.js +2 -1
  30. package/dist/cjs/quick-insert/assets/panel.js +2 -1
  31. package/dist/cjs/quick-insert/assets/quote.js +2 -1
  32. package/dist/cjs/quick-insert/assets/status.js +2 -1
  33. package/dist/cjs/ui/DropList/index.js +1 -1
  34. package/dist/cjs/utils/browser.js +3 -0
  35. package/dist/es2019/analytics/types/link-events.js +1 -0
  36. package/dist/es2019/icons/shared/table.js +2 -1
  37. package/dist/es2019/monitoring/error.js +1 -1
  38. package/dist/es2019/quick-insert/assets/action.js +2 -1
  39. package/dist/es2019/quick-insert/assets/code.js +2 -1
  40. package/dist/es2019/quick-insert/assets/date.js +2 -1
  41. package/dist/es2019/quick-insert/assets/decision.js +2 -1
  42. package/dist/es2019/quick-insert/assets/divider.js +2 -1
  43. package/dist/es2019/quick-insert/assets/emoji.js +2 -1
  44. package/dist/es2019/quick-insert/assets/expand.js +2 -1
  45. package/dist/es2019/quick-insert/assets/fallback.js +2 -1
  46. package/dist/es2019/quick-insert/assets/feedback.js +2 -1
  47. package/dist/es2019/quick-insert/assets/heading1.js +2 -1
  48. package/dist/es2019/quick-insert/assets/heading2.js +2 -1
  49. package/dist/es2019/quick-insert/assets/heading3.js +2 -1
  50. package/dist/es2019/quick-insert/assets/heading4.js +2 -1
  51. package/dist/es2019/quick-insert/assets/heading5.js +2 -1
  52. package/dist/es2019/quick-insert/assets/heading6.js +2 -1
  53. package/dist/es2019/quick-insert/assets/images.js +2 -1
  54. package/dist/es2019/quick-insert/assets/layout.js +2 -1
  55. package/dist/es2019/quick-insert/assets/link.js +2 -1
  56. package/dist/es2019/quick-insert/assets/list-number.js +2 -1
  57. package/dist/es2019/quick-insert/assets/list.js +2 -1
  58. package/dist/es2019/quick-insert/assets/mention.js +2 -1
  59. package/dist/es2019/quick-insert/assets/panel-error.js +2 -1
  60. package/dist/es2019/quick-insert/assets/panel-note.js +2 -1
  61. package/dist/es2019/quick-insert/assets/panel-success.js +2 -1
  62. package/dist/es2019/quick-insert/assets/panel-warning.js +2 -1
  63. package/dist/es2019/quick-insert/assets/panel.js +2 -1
  64. package/dist/es2019/quick-insert/assets/quote.js +2 -1
  65. package/dist/es2019/quick-insert/assets/status.js +2 -1
  66. package/dist/es2019/ui/DropList/index.js +1 -1
  67. package/dist/es2019/utils/browser.js +3 -0
  68. package/dist/esm/analytics/types/link-events.js +1 -0
  69. package/dist/esm/icons/shared/table.js +2 -1
  70. package/dist/esm/monitoring/error.js +1 -1
  71. package/dist/esm/quick-insert/assets/action.js +2 -1
  72. package/dist/esm/quick-insert/assets/code.js +2 -1
  73. package/dist/esm/quick-insert/assets/date.js +2 -1
  74. package/dist/esm/quick-insert/assets/decision.js +2 -1
  75. package/dist/esm/quick-insert/assets/divider.js +2 -1
  76. package/dist/esm/quick-insert/assets/emoji.js +2 -1
  77. package/dist/esm/quick-insert/assets/expand.js +2 -1
  78. package/dist/esm/quick-insert/assets/fallback.js +2 -1
  79. package/dist/esm/quick-insert/assets/feedback.js +2 -1
  80. package/dist/esm/quick-insert/assets/heading1.js +2 -1
  81. package/dist/esm/quick-insert/assets/heading2.js +2 -1
  82. package/dist/esm/quick-insert/assets/heading3.js +2 -1
  83. package/dist/esm/quick-insert/assets/heading4.js +2 -1
  84. package/dist/esm/quick-insert/assets/heading5.js +2 -1
  85. package/dist/esm/quick-insert/assets/heading6.js +2 -1
  86. package/dist/esm/quick-insert/assets/images.js +2 -1
  87. package/dist/esm/quick-insert/assets/layout.js +2 -1
  88. package/dist/esm/quick-insert/assets/link.js +2 -1
  89. package/dist/esm/quick-insert/assets/list-number.js +2 -1
  90. package/dist/esm/quick-insert/assets/list.js +2 -1
  91. package/dist/esm/quick-insert/assets/mention.js +2 -1
  92. package/dist/esm/quick-insert/assets/panel-error.js +2 -1
  93. package/dist/esm/quick-insert/assets/panel-note.js +2 -1
  94. package/dist/esm/quick-insert/assets/panel-success.js +2 -1
  95. package/dist/esm/quick-insert/assets/panel-warning.js +2 -1
  96. package/dist/esm/quick-insert/assets/panel.js +2 -1
  97. package/dist/esm/quick-insert/assets/quote.js +2 -1
  98. package/dist/esm/quick-insert/assets/status.js +2 -1
  99. package/dist/esm/ui/DropList/index.js +1 -1
  100. package/dist/esm/utils/browser.js +3 -0
  101. package/dist/types/analytics/types/events.d.ts +2 -1
  102. package/dist/types/analytics/types/link-events.d.ts +7 -0
  103. package/dist/types/types/feature-flags.d.ts +9 -0
  104. package/dist/types/types/hyperlink.d.ts +7 -0
  105. package/dist/types-ts4.5/analytics/types/events.d.ts +2 -1
  106. package/dist/types-ts4.5/analytics/types/link-events.d.ts +7 -0
  107. package/dist/types-ts4.5/types/feature-flags.d.ts +9 -0
  108. package/dist/types-ts4.5/types/hyperlink.d.ts +7 -0
  109. package/package.json +7 -7
@@ -13,7 +13,8 @@ export default function IconListOrdered() {
13
13
  focusable: "false",
14
14
  "aria-hidden": true,
15
15
  width: 40,
16
- height: 40
16
+ height: 40,
17
+ viewBox: "0 0 40 40"
17
18
  }, /*#__PURE__*/React.createElement("g", {
18
19
  fill: "none",
19
20
  fillRule: "evenodd"
@@ -16,7 +16,8 @@ export default function IconList() {
16
16
  focusable: "false",
17
17
  "aria-hidden": true,
18
18
  width: 40,
19
- height: 40
19
+ height: 40,
20
+ viewBox: "0 0 40 40"
20
21
  }, /*#__PURE__*/React.createElement("g", {
21
22
  fill: "none",
22
23
  fillRule: "evenodd"
@@ -8,7 +8,8 @@ export default function IconMention() {
8
8
  focusable: "false",
9
9
  "aria-hidden": true,
10
10
  width: 40,
11
- height: 40
11
+ height: 40,
12
+ viewBox: "0 0 40 40"
12
13
  }, /*#__PURE__*/React.createElement("g", {
13
14
  fill: "none",
14
15
  fillRule: "evenodd"
@@ -8,7 +8,8 @@ export default function IconPanelError() {
8
8
  focusable: "false",
9
9
  "aria-hidden": true,
10
10
  width: 40,
11
- height: 40
11
+ height: 40,
12
+ viewBox: "0 0 40 40"
12
13
  }, /*#__PURE__*/React.createElement("g", {
13
14
  fill: "none",
14
15
  fillRule: "evenodd"
@@ -8,7 +8,8 @@ export default function IconPanelNote() {
8
8
  focusable: "false",
9
9
  "aria-hidden": true,
10
10
  width: 40,
11
- height: 40
11
+ height: 40,
12
+ viewBox: "0 0 40 40"
12
13
  }, /*#__PURE__*/React.createElement("g", {
13
14
  fill: "none",
14
15
  fillRule: "evenodd"
@@ -8,7 +8,8 @@ export default function IconPanelSuccess() {
8
8
  focusable: "false",
9
9
  "aria-hidden": true,
10
10
  width: 40,
11
- height: 40
11
+ height: 40,
12
+ viewBox: "0 0 40 40"
12
13
  }, /*#__PURE__*/React.createElement("g", {
13
14
  fill: "none",
14
15
  fillRule: "evenodd"
@@ -8,7 +8,8 @@ export default function IconPanelWarning() {
8
8
  focusable: "false",
9
9
  "aria-hidden": true,
10
10
  width: 40,
11
- height: 40
11
+ height: 40,
12
+ viewBox: "0 0 40 40"
12
13
  }, /*#__PURE__*/React.createElement("g", {
13
14
  fill: "none",
14
15
  fillRule: "evenodd"
@@ -8,7 +8,8 @@ export default function IconPanel() {
8
8
  focusable: "false",
9
9
  "aria-hidden": true,
10
10
  width: 40,
11
- height: 40
11
+ height: 40,
12
+ viewBox: "0 0 40 40"
12
13
  }, /*#__PURE__*/React.createElement("g", {
13
14
  fill: "none",
14
15
  fillRule: "evenodd"
@@ -10,7 +10,8 @@ export default function IconQuote() {
10
10
  focusable: "false",
11
11
  "aria-hidden": true,
12
12
  width: 40,
13
- height: 40
13
+ height: 40,
14
+ viewBox: "0 0 40 40"
14
15
  }, /*#__PURE__*/React.createElement("g", {
15
16
  fill: "none",
16
17
  fillRule: "evenodd"
@@ -8,7 +8,8 @@ export default function IconStatus() {
8
8
  focusable: "false",
9
9
  "aria-hidden": true,
10
10
  width: 40,
11
- height: 40
11
+ height: 40,
12
+ viewBox: "0 0 40 40"
12
13
  }, /*#__PURE__*/React.createElement("g", {
13
14
  fill: "none",
14
15
  fillRule: "evenodd"
@@ -12,7 +12,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
12
12
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
13
13
  import Layer from '../Layer';
14
14
  const packageName = "@atlaskit/editor-common";
15
- const packageVersion = "86.5.1";
15
+ const packageVersion = "86.7.0";
16
16
  const halfFocusRing = 1;
17
17
  const dropOffset = '0, 8';
18
18
  class DropList extends Component {
@@ -1,5 +1,6 @@
1
1
  const result = {
2
2
  mac: false,
3
+ windows: false,
3
4
  ie: false,
4
5
  ie_version: 0,
5
6
  gecko: false,
@@ -15,10 +16,12 @@ const result = {
15
16
  supportsResizeObserver: false
16
17
  };
17
18
  if (typeof navigator !== 'undefined') {
19
+ var _userAgentData;
18
20
  const ieEdge = /Edge\/(\d+)/.exec(navigator.userAgent);
19
21
  const ieUpTo10 = /MSIE \d/.test(navigator.userAgent);
20
22
  const ie11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
21
23
  result.mac = /Mac/.test(navigator.platform);
24
+ result.windows = ((_userAgentData = navigator.userAgentData) === null || _userAgentData === void 0 ? void 0 : _userAgentData.platform) === 'Windows' || /Windows|Win\d+/i.test(navigator.userAgent);
22
25
  let ie = result.ie = !!(ieUpTo10 || ie11up || ieEdge);
23
26
  result.ie_version = ieUpTo10 ? document.documentMode || 6 : ie11up ? +ie11up[1] : ieEdge ? +ieEdge[1] : null;
24
27
  result.gecko = !ie && /gecko\/\d/i.test(navigator.userAgent);
@@ -0,0 +1 @@
1
+ export {};
@@ -16,7 +16,8 @@ export default function IconTable() {
16
16
  focusable: "false",
17
17
  "aria-hidden": true,
18
18
  width: 40,
19
- height: 40
19
+ height: 40,
20
+ viewBox: "0 0 40 40"
20
21
  }, /*#__PURE__*/React.createElement("g", {
21
22
  fill: "none",
22
23
  fillRule: "evenodd"
@@ -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 = "86.5.1";
10
+ var packageVersion = "86.7.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -7,7 +7,8 @@ export default function IconAction() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -8,7 +8,8 @@ export default function IconCode() {
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
10
  height: 40,
11
- fillRule: "evenodd"
11
+ fillRule: "evenodd",
12
+ viewBox: "0 0 40 40"
12
13
  }, /*#__PURE__*/React.createElement("path", {
13
14
  fill: iconThemed({
14
15
  light: '#fff',
@@ -8,7 +8,8 @@ export default function IconDate() {
8
8
  focusable: "false",
9
9
  "aria-hidden": true,
10
10
  width: 40,
11
- height: 40
11
+ height: 40,
12
+ viewBox: "0 0 40 40"
12
13
  }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
13
14
  x1: "100.699%",
14
15
  y1: "50%",
@@ -7,7 +7,8 @@ export default function IconDecision() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconDivider() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconEmoji() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconExpand() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -8,7 +8,8 @@ export default function IconFallback() {
8
8
  focusable: "false",
9
9
  "aria-hidden": true,
10
10
  width: 40,
11
- height: 40
11
+ height: 40,
12
+ viewBox: "0 0 40 40"
12
13
  }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
13
14
  x1: "-26.046%",
14
15
  y1: "100%",
@@ -6,7 +6,8 @@ export default function IconFeedback() {
6
6
  focusable: "false",
7
7
  "aria-hidden": true,
8
8
  width: 40,
9
- height: 40
9
+ height: 40,
10
+ viewBox: "0 0 40 40"
10
11
  }, /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
11
12
  x1: "46.01%",
12
13
  y1: "100%",
@@ -7,7 +7,8 @@ export default function IconHeading1() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconHeading2() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconHeading3() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconHeading4() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconHeading5() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconHeading6() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconImages() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("defs", null), /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconLayout() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconLink() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -12,7 +12,8 @@ export default function IconListOrdered() {
12
12
  focusable: "false",
13
13
  "aria-hidden": true,
14
14
  width: 40,
15
- height: 40
15
+ height: 40,
16
+ viewBox: "0 0 40 40"
16
17
  }, /*#__PURE__*/React.createElement("g", {
17
18
  fill: "none",
18
19
  fillRule: "evenodd"
@@ -15,7 +15,8 @@ export default function IconList() {
15
15
  focusable: "false",
16
16
  "aria-hidden": true,
17
17
  width: 40,
18
- height: 40
18
+ height: 40,
19
+ viewBox: "0 0 40 40"
19
20
  }, /*#__PURE__*/React.createElement("g", {
20
21
  fill: "none",
21
22
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconMention() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconPanelError() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconPanelNote() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconPanelSuccess() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconPanelWarning() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconPanel() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -9,7 +9,8 @@ export default function IconQuote() {
9
9
  focusable: "false",
10
10
  "aria-hidden": true,
11
11
  width: 40,
12
- height: 40
12
+ height: 40,
13
+ viewBox: "0 0 40 40"
13
14
  }, /*#__PURE__*/React.createElement("g", {
14
15
  fill: "none",
15
16
  fillRule: "evenodd"
@@ -7,7 +7,8 @@ export default function IconStatus() {
7
7
  focusable: "false",
8
8
  "aria-hidden": true,
9
9
  width: 40,
10
- height: 40
10
+ height: 40,
11
+ viewBox: "0 0 40 40"
11
12
  }, /*#__PURE__*/React.createElement("g", {
12
13
  fill: "none",
13
14
  fillRule: "evenodd"
@@ -20,7 +20,7 @@ import { createAndFireEvent, withAnalyticsContext, withAnalyticsEvents } from '@
20
20
  import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
21
21
  import Layer from '../Layer';
22
22
  var packageName = "@atlaskit/editor-common";
23
- var packageVersion = "86.5.1";
23
+ var packageVersion = "86.7.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  var DropList = /*#__PURE__*/function (_Component) {
@@ -1,5 +1,6 @@
1
1
  var result = {
2
2
  mac: false,
3
+ windows: false,
3
4
  ie: false,
4
5
  ie_version: 0,
5
6
  gecko: false,
@@ -15,10 +16,12 @@ var result = {
15
16
  supportsResizeObserver: false
16
17
  };
17
18
  if (typeof navigator !== 'undefined') {
19
+ var _userAgentData;
18
20
  var ieEdge = /Edge\/(\d+)/.exec(navigator.userAgent);
19
21
  var ieUpTo10 = /MSIE \d/.test(navigator.userAgent);
20
22
  var ie11up = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);
21
23
  result.mac = /Mac/.test(navigator.platform);
24
+ result.windows = ((_userAgentData = navigator.userAgentData) === null || _userAgentData === void 0 ? void 0 : _userAgentData.platform) === 'Windows' || /Windows|Win\d+/i.test(navigator.userAgent);
22
25
  var ie = result.ie = !!(ieUpTo10 || ie11up || ieEdge);
23
26
  result.ie_version = ieUpTo10 ? document.documentMode || 6 : ie11up ? +ie11up[1] : ieEdge ? +ieEdge[1] : null;
24
27
  result.gecko = !ie && /gecko\/\d/i.test(navigator.userAgent);
@@ -20,6 +20,7 @@ import type { GeneralEventPayload } from './general-events';
20
20
  import type { HighlightActionsEventPayload } from './highlight-actions-menu-events';
21
21
  import type { HighlightEventPayload } from './highlight-events';
22
22
  import type { InsertEventPayload } from './insert-events';
23
+ import type { VisitedLinkAEP } from './link-events';
23
24
  import type { CreateLinkInlineDialogEventPayload, EditLinkToolbarAEP, OpenSettingsToolbarAEP, UnlinkToolbarAEP } from './link-tool-bar-events';
24
25
  import type { ListEventPayload } from './list-events';
25
26
  import type { LoomEventPayload } from './loom-events';
@@ -42,7 +43,7 @@ export type SimplifiedNode = {
42
43
  marks?: string[];
43
44
  content?: SimplifiedNode[];
44
45
  };
45
- 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 | ContextMenuEventPayload | ViewEventPayload;
46
+ 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 | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload;
46
47
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
47
48
  previousColor: string;
48
49
  newColor: string;
@@ -0,0 +1,7 @@
1
+ import type { ACTION, ACTION_SUBJECT } from './enums';
2
+ import { type MODE, type PLATFORMS } from './general-events';
3
+ import { type TrackAEP } from './utils';
4
+ export type VisitedLinkAEP = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.LINK, undefined, {
5
+ platform: PLATFORMS;
6
+ mode: MODE;
7
+ }, undefined>;
@@ -318,6 +318,15 @@ export type FeatureFlags = {
318
318
 
319
319
  */
320
320
  commentsOnMediaAutoscrollInEditor?: boolean;
321
+ /**
322
+ * @description
323
+ * Enables more elements in view in quick insert typeahead
324
+ *
325
+ * @see https://product-fabric.atlassian.net/browse/ED-24231
326
+ * @default false
327
+
328
+ */
329
+ moreElementsInQuickInsertView?: boolean;
321
330
  };
322
331
  export type FeatureFlagKey = keyof FeatureFlags;
323
332
  export type GetEditorFeatureFlags = () => FeatureFlags;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import type { LinkPickerProps } from '@atlaskit/link-picker';
2
3
  import type { INPUT_METHOD } from '../analytics';
3
4
  import type { CardOptions } from '../card';
@@ -24,6 +25,10 @@ export interface LinkingOptions {
24
25
  */
25
26
  smartLinks?: CardOptions;
26
27
  }
28
+ type OnClickCallback = ({ event, url, }: {
29
+ event: React.MouseEvent<HTMLAnchorElement>;
30
+ url?: string;
31
+ }) => void;
27
32
  /**
28
33
  * Configuration for the Hyperlink plugin
29
34
  */
@@ -33,4 +38,6 @@ export interface HyperlinkPluginOptions {
33
38
  editorAppearance?: EditorAppearance;
34
39
  lpLinkPicker?: boolean;
35
40
  disableFloatingToolbar?: boolean;
41
+ onClickCallback?: OnClickCallback;
36
42
  }
43
+ export {};
@@ -20,6 +20,7 @@ import type { GeneralEventPayload } from './general-events';
20
20
  import type { HighlightActionsEventPayload } from './highlight-actions-menu-events';
21
21
  import type { HighlightEventPayload } from './highlight-events';
22
22
  import type { InsertEventPayload } from './insert-events';
23
+ import type { VisitedLinkAEP } from './link-events';
23
24
  import type { CreateLinkInlineDialogEventPayload, EditLinkToolbarAEP, OpenSettingsToolbarAEP, UnlinkToolbarAEP } from './link-tool-bar-events';
24
25
  import type { ListEventPayload } from './list-events';
25
26
  import type { LoomEventPayload } from './loom-events';
@@ -42,7 +43,7 @@ export type SimplifiedNode = {
42
43
  marks?: string[];
43
44
  content?: SimplifiedNode[];
44
45
  };
45
- 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 | ContextMenuEventPayload | ViewEventPayload;
46
+ 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 | ContextMenuEventPayload | VisitedLinkAEP | ViewEventPayload;
46
47
  type CustomPanelEventPayload = TrackAEP<ACTION.CHANGED_BACKGROUND_COLOR | ACTION.CHANGED_ICON | ACTION.REMOVE_ICON, ACTION_SUBJECT.PANEL, ACTION_SUBJECT_ID.PANEL, {
47
48
  previousColor: string;
48
49
  newColor: string;
@@ -0,0 +1,7 @@
1
+ import type { ACTION, ACTION_SUBJECT } from './enums';
2
+ import { type MODE, type PLATFORMS } from './general-events';
3
+ import { type TrackAEP } from './utils';
4
+ export type VisitedLinkAEP = TrackAEP<ACTION.VISITED, ACTION_SUBJECT.LINK, undefined, {
5
+ platform: PLATFORMS;
6
+ mode: MODE;
7
+ }, undefined>;
@@ -318,6 +318,15 @@ export type FeatureFlags = {
318
318
 
319
319
  */
320
320
  commentsOnMediaAutoscrollInEditor?: boolean;
321
+ /**
322
+ * @description
323
+ * Enables more elements in view in quick insert typeahead
324
+ *
325
+ * @see https://product-fabric.atlassian.net/browse/ED-24231
326
+ * @default false
327
+
328
+ */
329
+ moreElementsInQuickInsertView?: boolean;
321
330
  };
322
331
  export type FeatureFlagKey = keyof FeatureFlags;
323
332
  export type GetEditorFeatureFlags = () => FeatureFlags;