@atlaskit/editor-common 100.1.1 → 100.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (168) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/UNSAFE_do_not_use_editor_context/package.json +3 -1
  3. package/afm-cc/tsconfig.json +3 -0
  4. package/afm-jira/tsconfig.json +3 -0
  5. package/afm-post-office/tsconfig.json +3 -0
  6. package/analytics/package.json +3 -1
  7. package/annotation/package.json +3 -1
  8. package/browser/package.json +3 -1
  9. package/card/package.json +3 -1
  10. package/clipboard/package.json +3 -1
  11. package/code-block/package.json +3 -1
  12. package/collab/package.json +3 -1
  13. package/commands/package.json +3 -1
  14. package/constants/package.json +3 -1
  15. package/copy-button/package.json +3 -1
  16. package/core-utils/package.json +3 -1
  17. package/count-nodes/package.json +3 -1
  18. package/dist/cjs/monitoring/error.js +1 -1
  19. package/dist/cjs/styles/shared/expand.js +4 -0
  20. package/dist/cjs/styles/shared/plugins.js +24 -0
  21. package/dist/cjs/type-ahead/messages.js +5 -0
  22. package/dist/cjs/ui/DropList/index.js +1 -1
  23. package/dist/cjs/ui/Shortcut/index.compiled.css +10 -0
  24. package/dist/cjs/ui/Shortcut/index.js +24 -0
  25. package/dist/cjs/ui/Toolbar/ButtonGroup.compiled.css +6 -0
  26. package/dist/cjs/ui/Toolbar/ButtonGroup.js +26 -0
  27. package/dist/cjs/ui/Toolbar/DropdownTriggerWrapper.compiled.css +3 -0
  28. package/dist/cjs/ui/Toolbar/DropdownTriggerWrapper.js +23 -0
  29. package/dist/cjs/ui/Toolbar/DropdownWrapper.compiled.css +7 -0
  30. package/dist/cjs/ui/Toolbar/DropdownWrapper.js +21 -0
  31. package/dist/cjs/ui/Toolbar/ExpandIcon.compiled.css +2 -0
  32. package/dist/cjs/ui/Toolbar/ExpandIcon.js +25 -0
  33. package/dist/cjs/ui/Toolbar/Separator.compiled.css +9 -0
  34. package/dist/cjs/ui/Toolbar/Separator.js +19 -0
  35. package/dist/cjs/ui/index.js +42 -0
  36. package/dist/cjs/ui-menu/DropdownMenu/index.js +1 -1
  37. package/dist/es2019/monitoring/error.js +1 -1
  38. package/dist/es2019/styles/shared/expand.js +4 -0
  39. package/dist/es2019/styles/shared/plugins.js +24 -0
  40. package/dist/es2019/type-ahead/messages.js +5 -0
  41. package/dist/es2019/ui/DropList/index.js +1 -1
  42. package/dist/es2019/ui/Shortcut/index.compiled.css +10 -0
  43. package/dist/es2019/ui/Shortcut/index.js +15 -0
  44. package/dist/es2019/ui/Toolbar/ButtonGroup.compiled.css +6 -0
  45. package/dist/es2019/ui/Toolbar/ButtonGroup.js +20 -0
  46. package/dist/es2019/ui/Toolbar/DropdownTriggerWrapper.compiled.css +3 -0
  47. package/dist/es2019/ui/Toolbar/DropdownTriggerWrapper.js +17 -0
  48. package/dist/es2019/ui/Toolbar/DropdownWrapper.compiled.css +7 -0
  49. package/dist/es2019/ui/Toolbar/DropdownWrapper.js +15 -0
  50. package/dist/es2019/ui/Toolbar/ExpandIcon.compiled.css +2 -0
  51. package/dist/es2019/ui/Toolbar/ExpandIcon.js +15 -0
  52. package/dist/es2019/ui/Toolbar/Separator.compiled.css +9 -0
  53. package/dist/es2019/ui/Toolbar/Separator.js +10 -0
  54. package/dist/es2019/ui/index.js +6 -0
  55. package/dist/es2019/ui-menu/DropdownMenu/index.js +3 -1
  56. package/dist/esm/monitoring/error.js +1 -1
  57. package/dist/esm/styles/shared/expand.js +4 -0
  58. package/dist/esm/styles/shared/plugins.js +24 -0
  59. package/dist/esm/type-ahead/messages.js +5 -0
  60. package/dist/esm/ui/DropList/index.js +1 -1
  61. package/dist/esm/ui/Shortcut/index.compiled.css +10 -0
  62. package/dist/esm/ui/Shortcut/index.js +17 -0
  63. package/dist/esm/ui/Toolbar/ButtonGroup.compiled.css +6 -0
  64. package/dist/esm/ui/Toolbar/ButtonGroup.js +19 -0
  65. package/dist/esm/ui/Toolbar/DropdownTriggerWrapper.compiled.css +3 -0
  66. package/dist/esm/ui/Toolbar/DropdownTriggerWrapper.js +16 -0
  67. package/dist/esm/ui/Toolbar/DropdownWrapper.compiled.css +7 -0
  68. package/dist/esm/ui/Toolbar/DropdownWrapper.js +14 -0
  69. package/dist/esm/ui/Toolbar/ExpandIcon.compiled.css +2 -0
  70. package/dist/esm/ui/Toolbar/ExpandIcon.js +15 -0
  71. package/dist/esm/ui/Toolbar/Separator.compiled.css +9 -0
  72. package/dist/esm/ui/Toolbar/Separator.js +10 -0
  73. package/dist/esm/ui/index.js +6 -0
  74. package/dist/esm/ui-menu/DropdownMenu/index.js +3 -1
  75. package/dist/types/analytics/types/ai-inline-suggestion-events.d.ts +1 -0
  76. package/dist/types/styles/shared/expand.d.ts +4 -0
  77. package/dist/types/styles/shared/plugins.d.ts +24 -0
  78. package/dist/types/type-ahead/messages.d.ts +5 -0
  79. package/dist/types/ui/Shortcut/index.d.ts +8 -0
  80. package/dist/types/ui/Toolbar/ButtonGroup.d.ts +8 -0
  81. package/dist/types/ui/Toolbar/DropdownTriggerWrapper.d.ts +8 -0
  82. package/dist/types/ui/Toolbar/DropdownWrapper.d.ts +8 -0
  83. package/dist/types/ui/Toolbar/ExpandIcon.d.ts +2 -0
  84. package/dist/types/ui/Toolbar/Separator.d.ts +2 -0
  85. package/dist/types/ui/index.d.ts +6 -0
  86. package/dist/types/ui-menu/DropdownMenu/index.d.ts +0 -4
  87. package/dist/types-ts4.5/analytics/types/ai-inline-suggestion-events.d.ts +1 -0
  88. package/dist/types-ts4.5/styles/shared/expand.d.ts +4 -0
  89. package/dist/types-ts4.5/styles/shared/plugins.d.ts +24 -0
  90. package/dist/types-ts4.5/type-ahead/messages.d.ts +5 -0
  91. package/dist/types-ts4.5/ui/Shortcut/index.d.ts +8 -0
  92. package/dist/types-ts4.5/ui/Toolbar/ButtonGroup.d.ts +8 -0
  93. package/dist/types-ts4.5/ui/Toolbar/DropdownTriggerWrapper.d.ts +8 -0
  94. package/dist/types-ts4.5/ui/Toolbar/DropdownWrapper.d.ts +8 -0
  95. package/dist/types-ts4.5/ui/Toolbar/ExpandIcon.d.ts +2 -0
  96. package/dist/types-ts4.5/ui/Toolbar/Separator.d.ts +2 -0
  97. package/dist/types-ts4.5/ui/index.d.ts +6 -0
  98. package/dist/types-ts4.5/ui-menu/DropdownMenu/index.d.ts +0 -4
  99. package/doc-utils/package.json +3 -1
  100. package/editor-analytics/package.json +3 -1
  101. package/element-browser/package.json +3 -1
  102. package/emoji/package.json +3 -1
  103. package/error-boundary/package.json +3 -1
  104. package/error-reporter/package.json +3 -1
  105. package/event-dispatcher/package.json +3 -1
  106. package/expand/package.json +3 -1
  107. package/extensibility/package.json +3 -1
  108. package/extensions/package.json +3 -1
  109. package/floating-toolbar/package.json +3 -1
  110. package/guideline/package.json +3 -1
  111. package/hooks/package.json +3 -1
  112. package/icons/package.json +3 -1
  113. package/indentation/package.json +3 -1
  114. package/insert/package.json +3 -1
  115. package/intl-error-boundary/package.json +3 -1
  116. package/is-performance-api-available/package.json +3 -1
  117. package/keymaps/package.json +3 -1
  118. package/lazy-node-view/package.json +3 -1
  119. package/legacy-rank-plugins/package.json +3 -1
  120. package/link/package.json +3 -1
  121. package/lists/package.json +3 -1
  122. package/mark/package.json +3 -1
  123. package/media/package.json +3 -1
  124. package/media-inline/package.json +3 -1
  125. package/media-single/package.json +3 -1
  126. package/median/package.json +3 -1
  127. package/mention/package.json +3 -1
  128. package/messages/package.json +3 -1
  129. package/monitoring/package.json +3 -1
  130. package/nesting/package.json +3 -1
  131. package/node-width/package.json +3 -1
  132. package/normalize-feature-flags/package.json +3 -1
  133. package/package.json +13 -8
  134. package/panel/package.json +3 -1
  135. package/paste/package.json +3 -1
  136. package/performance/measure-render/package.json +3 -1
  137. package/performance/measure-tti/package.json +3 -1
  138. package/performance/navigation/package.json +3 -1
  139. package/performance-measures/package.json +3 -1
  140. package/portal/package.json +3 -1
  141. package/preset/package.json +3 -1
  142. package/process-raw-value/package.json +3 -1
  143. package/prosemirror-dom-metadata/package.json +3 -1
  144. package/provider-factory/package.json +3 -1
  145. package/provider-helpers/package.json +3 -1
  146. package/quick-insert/package.json +3 -1
  147. package/react-node-view/package.json +3 -1
  148. package/resizer/package.json +3 -1
  149. package/safe-plugin/package.json +3 -1
  150. package/selection/package.json +3 -1
  151. package/selection-based-node-view/package.json +3 -1
  152. package/styles/package.json +3 -1
  153. package/table/package.json +3 -1
  154. package/transforms/package.json +3 -1
  155. package/type-ahead/package.json +3 -1
  156. package/types/package.json +3 -1
  157. package/ui/package.json +3 -1
  158. package/ui-color/package.json +3 -1
  159. package/ui-menu/package.json +3 -1
  160. package/ui-react/package.json +3 -1
  161. package/use-component-render-tracking/package.json +3 -1
  162. package/use-plugin-state-effect/package.json +3 -1
  163. package/use-shared-plugin-state-selector/package.json +3 -1
  164. package/utils/analytics/package.json +3 -1
  165. package/utils/package.json +3 -1
  166. package/validator/package.json +3 -1
  167. package/whitespace/package.json +3 -1
  168. package/with-plugin-state/package.json +3 -1
@@ -1,5 +1,9 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
+ /**
4
+ * @private
5
+ * @deprecated use `import { ToolbarButtonGroup } from '@atlaskit/editor-common/ui';` instead
6
+ */
3
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, -- Ignored via go/DSP-18766
4
8
  export const buttonGroupStyleBeforeVisualRefresh = css({
5
9
  display: 'inline-flex',
@@ -17,6 +21,10 @@ export const buttonGroupStyleBeforeVisualRefresh = css({
17
21
  }
18
22
  });
19
23
 
24
+ /**
25
+ * @private
26
+ * @deprecated use `import { ToolbarButtonGroup } from '@atlaskit/editor-common/ui';` instead
27
+ */
20
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
21
29
  export const buttonGroupStyle = css({
22
30
  display: 'inline-flex',
@@ -39,6 +47,10 @@ export const buttonGroupStyle = css({
39
47
  }
40
48
  });
41
49
 
50
+ /**
51
+ * @private
52
+ * @deprecated use `import { ToolbarSeparator } from '@atlaskit/editor-common/ui';` instead
53
+ */
42
54
  // If you make change here, change in above file as well.
43
55
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
44
56
  export const separatorStyles = css({
@@ -50,6 +62,10 @@ export const separatorStyles = css({
50
62
  userSelect: 'none'
51
63
  });
52
64
 
65
+ /**
66
+ * @private
67
+ * @deprecated use `import { ToolbarDropdownWrapper } from '@atlaskit/editor-common/ui';` instead
68
+ */
53
69
  // If you make change here, change in above file as well.
54
70
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
55
71
  export const wrapperStyle = css({
@@ -74,6 +90,10 @@ export const wrapperStyle = css({
74
90
  }
75
91
  });
76
92
 
93
+ /**
94
+ * @private
95
+ * @deprecated use `import { ToolbarDropdownTriggerWrapper } from '@atlaskit/editor-common/ui';` instead
96
+ */
77
97
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
78
98
  export const triggerWrapperStyles = css({
79
99
  display: 'flex',
@@ -86,6 +106,10 @@ export const triggerWrapperStyles = css({
86
106
  }
87
107
  });
88
108
 
109
+ /**
110
+ * @private
111
+ * @deprecated use `import { ToolbarDropdownTriggerWrapper } from '@atlaskit/editor-common/ui';` instead
112
+ */
89
113
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
90
114
  export const triggerWrapperStylesWithPadding = css({
91
115
  display: 'flex',
@@ -15,6 +15,11 @@ export const typeAheadListMessages = defineMessages({
15
15
  defaultMessage: 'Begin typing to search or filter shortcut options',
16
16
  description: 'assisitve text for typeahed input field'
17
17
  },
18
+ quickInsertInputPlaceholderLabel: {
19
+ id: 'fabric.editor.typeAhead.quickInsertInputPlaceholderLabel',
20
+ defaultMessage: 'Search',
21
+ description: 'placeholder for typeahed input field'
22
+ },
18
23
  emojiPopupLabel: {
19
24
  id: 'fabric.editor.typeahead.emojiPopupLabel',
20
25
  defaultMessage: 'Emoji shortcuts',
@@ -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 = "100.1.1";
16
+ const packageVersion = "100.2.0";
17
17
  const halfFocusRing = 1;
18
18
  const dropOffset = '0, 8';
19
19
  // Ignored via go/ees005
@@ -0,0 +1,10 @@
1
+
2
+ ._2rko1sit{border-radius:var(--ds-border-radius,3px)}._19bv1b66{padding-left:var(--ds-space-050,4px)}
3
+ ._1wpzesu3{align-self:flex-end}
4
+ ._1wyb1qpa{font-size:.729375rem}
5
+ ._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
6
+ ._ca0q1b66{padding-top:var(--ds-space-050,4px)}
7
+ ._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
8
+ ._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
9
+ ._u5f31b66{padding-right:var(--ds-space-050,4px)}
10
+ @media (max-width:0px){._1ggkglyw{display:none}}
@@ -0,0 +1,15 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ const shortcutStyle = null;
6
+
7
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
8
+ const shortcutStyleUnbounded = null;
9
+ export function Shortcut({
10
+ children
11
+ }) {
12
+ return /*#__PURE__*/React.createElement("div", {
13
+ className: ax(["_2rko1sit _1wpzesu3 _ca0q1b66 _n3td1b66 _19bv1b66 _u5f31b66 _syaz1gjq _bfhkm7j4 _1ggkglyw", "_1wyb1qpa"])
14
+ }, children);
15
+ }
@@ -0,0 +1,6 @@
1
+
2
+ ._1p8dglyw button:not(#local-media-upload-button):not([disabled]):after{border:none}
3
+ ._89rs1b66 div[role=group]{gap:var(--ds-space-050,4px)}
4
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._11ko1txw>div{display:flex}
5
+ ._1e0c116y{display:inline-flex}
6
+ ._4cvr1h6o{align-items:center}
@@ -0,0 +1,20 @@
1
+ /* ButtonGroup.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./ButtonGroup.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
6
+ const buttonGroupStyle = null;
7
+
8
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
9
+ const buttonGroupStyleUnbounded = null;
10
+ const buttonGroupStyleBeforeVisualRefresh = null;
11
+
12
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
13
+ const buttonGroupStyleBeforeVisualRefreshUnbounded = null;
14
+ export function ToolbarButtonGroup({
15
+ children
16
+ }) {
17
+ return /*#__PURE__*/React.createElement("span", {
18
+ className: ax([fg('platform-visual-refresh-icons') ? "_zulp1b66 _1e0c116y _4cvr1h6o" : "_1e0c116y _4cvr1h6o", fg('platform-visual-refresh-icons') ? "_11ko1txw _1p8dglyw _89rs1b66" : "_11ko1txw _1p8dglyw"])
19
+ }, children);
20
+ }
@@ -0,0 +1,3 @@
1
+
2
+ ._1fvdglyw button:not([disabled]):after{border:none}._1e0c1txw{display:flex}
3
+ ._u5f3v77o{padding-right:var(--ds-space-025,2px)}
@@ -0,0 +1,17 @@
1
+ /* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./DropdownTriggerWrapper.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
6
+ const triggerWrapperStylesWithPadding = null;
7
+ const triggerWrapperStyles = null;
8
+
9
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
10
+ const triggerWrapperStylesUnbounded = null;
11
+ export function ToolbarDropdownTriggerWrapper({
12
+ children
13
+ }) {
14
+ return /*#__PURE__*/React.createElement("div", {
15
+ className: ax([fg('platform-visual-refresh-icons') ? "_1e0c1txw _u5f3v77o" : "_1e0c1txw", "_1fvdglyw"])
16
+ }, children);
17
+ }
@@ -0,0 +1,7 @@
1
+
2
+ ._1fvdglyw button:not([disabled]):after{border:none}._18u0idpf{margin-left:0}
3
+ ._1e0c1txw{display:flex}
4
+ ._1ul91wug{min-width:auto}
5
+ ._1ylx1txw >div>div{display:flex}
6
+ ._4cvr1h6o{align-items:center}
7
+ ._p7r11txw >div, ._1xdi1txw >span{display:flex}
@@ -0,0 +1,15 @@
1
+ /* DropdownWrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./DropdownWrapper.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ const wrapperStyle = null;
6
+
7
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
8
+ const wrapperStylesUnbounded = null;
9
+ export function ToolbarDropdownWrapper({
10
+ children
11
+ }) {
12
+ return /*#__PURE__*/React.createElement("span", {
13
+ className: ax(["_1e0c1txw _4cvr1h6o _18u0idpf _1ul91wug", "_p7r11txw _1xdi1txw _1ylx1txw _1fvdglyw"])
14
+ }, children);
15
+ }
@@ -0,0 +1,2 @@
1
+ ._1e0c1txw{display:flex}
2
+ ._4cvr1h6o{align-items:center}
@@ -0,0 +1,15 @@
1
+ /* ExpandIcon.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./ExpandIcon.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
6
+ const expandIconContainerStyle = null;
7
+ export function ToolbarExpandIcon() {
8
+ return /*#__PURE__*/React.createElement("span", {
9
+ className: ax(["_1e0c1txw _4cvr1h6o"])
10
+ }, /*#__PURE__*/React.createElement(ChevronDownIcon, {
11
+ label: "",
12
+ color: "currentColor",
13
+ LEGACY_margin: "0 0 0 -8px"
14
+ }));
15
+ }
@@ -0,0 +1,9 @@
1
+ ._18u0u2gc{margin-left:var(--ds-space-100,8px)}
2
+ ._19pkze3t{margin-top:var(--ds-space-0,0)}
3
+ ._1bsbt94y{width:1px}
4
+ ._1e0c1o8l{display:inline-block}
5
+ ._2hwxu2gc{margin-right:var(--ds-space-100,8px)}
6
+ ._4t3i1tcg{height:24px}
7
+ ._bfhk15ej{background-color:var(--ds-background-neutral-hovered,#091e4224)}
8
+ ._otyrze3t{margin-bottom:var(--ds-space-0,0)}
9
+ ._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
@@ -0,0 +1,10 @@
1
+ /* Separator.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./Separator.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ const separatorStyles = null;
6
+ export function ToolbarSeparator() {
7
+ return /*#__PURE__*/React.createElement("span", {
8
+ className: ax(["_1e0c1o8l _1bsbt94y _4t3i1tcg _19pkze3t _otyrze3t _18u0u2gc _2hwxu2gc _uiztglyw _bfhk15ej"])
9
+ });
10
+ }
@@ -33,6 +33,12 @@ export { wrapperStyle } from './ResizerLegacy/styled';
33
33
  export { panelTextInput } from './PanelTextInput/styles';
34
34
  export { default as PanelTextInput } from './PanelTextInput';
35
35
  export { default as Announcer } from './Announcer/announcer';
36
+ export { Shortcut } from './Shortcut';
36
37
  export { EDIT_AREA_ID } from './Toolbar';
38
+ export { ToolbarButtonGroup } from './Toolbar/ButtonGroup';
39
+ export { ToolbarDropdownTriggerWrapper } from './Toolbar/DropdownTriggerWrapper';
40
+ export { ToolbarDropdownWrapper } from './Toolbar/DropdownWrapper';
41
+ export { ToolbarExpandIcon } from './Toolbar/ExpandIcon';
42
+ export { ToolbarSeparator } from './Toolbar/Separator';
37
43
  export { default as DropList } from './DropList';
38
44
  export { sharedMultiBodiedExtensionStyles } from './MultiBodiedExtension';
@@ -5,7 +5,9 @@ import _extends from "@babel/runtime/helpers/extends";
5
5
  * @jsxRuntime classic
6
6
  * @jsx jsx
7
7
  */
8
+
8
9
  import React, { PureComponent, useContext } from 'react';
10
+
9
11
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
12
  import { css, jsx } from '@emotion/react';
11
13
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
@@ -40,7 +42,7 @@ const buttonStyles = (isActive, submenuActive) => {
40
42
  > span:hover,
41
43
  > span:active {
42
44
  background: ${"var(--ds-background-selected, #6c798f)"};
43
- color: ${"var(--ds-text, #fff)"};
45
+ color: ${"var(--ds-text-selected, #0C66E4)"};
44
46
  }
45
47
  :focus > span[aria-disabled='false'] {
46
48
  ${focusedMenuItemStyle};
@@ -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 = "100.1.1";
10
+ var packageVersion = "100.2.0";
11
11
  var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
12
12
  // Remove URL as it has UGC
13
13
  // TODO: Sanitise the URL instead of just removing it
@@ -5,6 +5,10 @@ export var expandIconWrapperStyle = css({
5
5
  marginLeft: "var(--ds-space-negative-100, -8px)"
6
6
  });
7
7
 
8
+ /**
9
+ * @private
10
+ * @deprecated use `import { ToolbarExpandIcon } from '@atlaskit/editor-common/ui';` instead
11
+ */
8
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
9
13
  export var expandIconContainerStyle = css({
10
14
  display: 'flex',
@@ -1,5 +1,9 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import { css } from '@emotion/react';
3
+ /**
4
+ * @private
5
+ * @deprecated use `import { ToolbarButtonGroup } from '@atlaskit/editor-common/ui';` instead
6
+ */
3
7
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, -- Ignored via go/DSP-18766
4
8
  export var buttonGroupStyleBeforeVisualRefresh = css({
5
9
  display: 'inline-flex',
@@ -17,6 +21,10 @@ export var buttonGroupStyleBeforeVisualRefresh = css({
17
21
  }
18
22
  });
19
23
 
24
+ /**
25
+ * @private
26
+ * @deprecated use `import { ToolbarButtonGroup } from '@atlaskit/editor-common/ui';` instead
27
+ */
20
28
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
21
29
  export var buttonGroupStyle = css({
22
30
  display: 'inline-flex',
@@ -39,6 +47,10 @@ export var buttonGroupStyle = css({
39
47
  }
40
48
  });
41
49
 
50
+ /**
51
+ * @private
52
+ * @deprecated use `import { ToolbarSeparator } from '@atlaskit/editor-common/ui';` instead
53
+ */
42
54
  // If you make change here, change in above file as well.
43
55
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
44
56
  export var separatorStyles = css({
@@ -50,6 +62,10 @@ export var separatorStyles = css({
50
62
  userSelect: 'none'
51
63
  });
52
64
 
65
+ /**
66
+ * @private
67
+ * @deprecated use `import { ToolbarDropdownWrapper } from '@atlaskit/editor-common/ui';` instead
68
+ */
53
69
  // If you make change here, change in above file as well.
54
70
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
55
71
  export var wrapperStyle = css({
@@ -74,6 +90,10 @@ export var wrapperStyle = css({
74
90
  }
75
91
  });
76
92
 
93
+ /**
94
+ * @private
95
+ * @deprecated use `import { ToolbarDropdownTriggerWrapper } from '@atlaskit/editor-common/ui';` instead
96
+ */
77
97
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
78
98
  export var triggerWrapperStyles = css({
79
99
  display: 'flex',
@@ -86,6 +106,10 @@ export var triggerWrapperStyles = css({
86
106
  }
87
107
  });
88
108
 
109
+ /**
110
+ * @private
111
+ * @deprecated use `import { ToolbarDropdownTriggerWrapper } from '@atlaskit/editor-common/ui';` instead
112
+ */
89
113
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
90
114
  export var triggerWrapperStylesWithPadding = css({
91
115
  display: 'flex',
@@ -15,6 +15,11 @@ export var typeAheadListMessages = defineMessages({
15
15
  defaultMessage: 'Begin typing to search or filter shortcut options',
16
16
  description: 'assisitve text for typeahed input field'
17
17
  },
18
+ quickInsertInputPlaceholderLabel: {
19
+ id: 'fabric.editor.typeAhead.quickInsertInputPlaceholderLabel',
20
+ defaultMessage: 'Search',
21
+ description: 'placeholder for typeahed input field'
22
+ },
18
23
  emojiPopupLabel: {
19
24
  id: 'fabric.editor.typeahead.emojiPopupLabel',
20
25
  defaultMessage: 'Emoji shortcuts',
@@ -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 = "100.1.1";
23
+ var packageVersion = "100.2.0";
24
24
  var halfFocusRing = 1;
25
25
  var dropOffset = '0, 8';
26
26
  // Ignored via go/ees005
@@ -0,0 +1,10 @@
1
+
2
+ ._2rko1sit{border-radius:var(--ds-border-radius,3px)}._19bv1b66{padding-left:var(--ds-space-050,4px)}
3
+ ._1wpzesu3{align-self:flex-end}
4
+ ._1wybyofp{font-size:var(--_1l2t8t0)}
5
+ ._bfhkm7j4{background-color:var(--ds-background-neutral,#091e420f)}
6
+ ._ca0q1b66{padding-top:var(--ds-space-050,4px)}
7
+ ._n3td1b66{padding-bottom:var(--ds-space-050,4px)}
8
+ ._syaz1gjq{color:var(--ds-text-subtle,#44546f)}
9
+ ._u5f31b66{padding-right:var(--ds-space-050,4px)}
10
+ @media (max-width:0px){._1ggkglyw{display:none}}
@@ -0,0 +1,17 @@
1
+ /* index.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./index.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ var shortcutStyle = null;
6
+
7
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
8
+ var shortcutStyleUnbounded = null;
9
+ export function Shortcut(_ref) {
10
+ var children = _ref.children;
11
+ return /*#__PURE__*/React.createElement("div", {
12
+ className: ax(["_2rko1sit _1wpzesu3 _ca0q1b66 _n3td1b66 _19bv1b66 _u5f31b66 _syaz1gjq _bfhkm7j4 _1ggkglyw", "_1wybyofp"]),
13
+ style: {
14
+ "--_1l2t8t0": ix("".concat(11.67 / 16, "rem"))
15
+ }
16
+ }, children);
17
+ }
@@ -0,0 +1,6 @@
1
+
2
+ ._1p8dglyw button:not(#local-media-upload-button):not([disabled]):after{border:none}
3
+ ._89rs1b66 div[role=group]{gap:var(--ds-space-050,4px)}
4
+ ._zulp1b66{gap:var(--ds-space-050,4px)}._11ko1txw>div{display:flex}
5
+ ._1e0c116y{display:inline-flex}
6
+ ._4cvr1h6o{align-items:center}
@@ -0,0 +1,19 @@
1
+ /* ButtonGroup.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./ButtonGroup.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
6
+ var buttonGroupStyle = null;
7
+
8
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
9
+ var buttonGroupStyleUnbounded = null;
10
+ var buttonGroupStyleBeforeVisualRefresh = null;
11
+
12
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
13
+ var buttonGroupStyleBeforeVisualRefreshUnbounded = null;
14
+ export function ToolbarButtonGroup(_ref) {
15
+ var children = _ref.children;
16
+ return /*#__PURE__*/React.createElement("span", {
17
+ className: ax([fg('platform-visual-refresh-icons') ? "_zulp1b66 _1e0c116y _4cvr1h6o" : "_1e0c116y _4cvr1h6o", fg('platform-visual-refresh-icons') ? "_11ko1txw _1p8dglyw _89rs1b66" : "_11ko1txw _1p8dglyw"])
18
+ }, children);
19
+ }
@@ -0,0 +1,3 @@
1
+
2
+ ._1fvdglyw button:not([disabled]):after{border:none}._1e0c1txw{display:flex}
3
+ ._u5f3v77o{padding-right:var(--ds-space-025,2px)}
@@ -0,0 +1,16 @@
1
+ /* DropdownTriggerWrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./DropdownTriggerWrapper.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ import { fg } from '@atlaskit/platform-feature-flags';
6
+ var triggerWrapperStylesWithPadding = null;
7
+ var triggerWrapperStyles = null;
8
+
9
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
10
+ var triggerWrapperStylesUnbounded = null;
11
+ export function ToolbarDropdownTriggerWrapper(_ref) {
12
+ var children = _ref.children;
13
+ return /*#__PURE__*/React.createElement("div", {
14
+ className: ax([fg('platform-visual-refresh-icons') ? "_1e0c1txw _u5f3v77o" : "_1e0c1txw", "_1fvdglyw"])
15
+ }, children);
16
+ }
@@ -0,0 +1,7 @@
1
+
2
+ ._1fvdglyw button:not([disabled]):after{border:none}._18u0idpf{margin-left:0}
3
+ ._1e0c1txw{display:flex}
4
+ ._1ul91wug{min-width:auto}
5
+ ._1ylx1txw >div>div{display:flex}
6
+ ._4cvr1h6o{align-items:center}
7
+ ._p7r11txw >div, ._1xdi1txw >span{display:flex}
@@ -0,0 +1,14 @@
1
+ /* DropdownWrapper.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./DropdownWrapper.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React from 'react';
5
+ var wrapperStyle = null;
6
+
7
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- This rule thinks this isn't a `css()` call due to the name mapping
8
+ var wrapperStylesUnbounded = null;
9
+ export function ToolbarDropdownWrapper(_ref) {
10
+ var children = _ref.children;
11
+ return /*#__PURE__*/React.createElement("span", {
12
+ className: ax(["_1e0c1txw _4cvr1h6o _18u0idpf _1ul91wug", "_p7r11txw _1xdi1txw _1ylx1txw _1fvdglyw"])
13
+ }, children);
14
+ }
@@ -0,0 +1,2 @@
1
+ ._1e0c1txw{display:flex}
2
+ ._4cvr1h6o{align-items:center}
@@ -0,0 +1,15 @@
1
+ /* ExpandIcon.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./ExpandIcon.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
6
+ var expandIconContainerStyle = null;
7
+ export function ToolbarExpandIcon() {
8
+ return /*#__PURE__*/React.createElement("span", {
9
+ className: ax(["_1e0c1txw _4cvr1h6o"])
10
+ }, /*#__PURE__*/React.createElement(ChevronDownIcon, {
11
+ label: "",
12
+ color: "currentColor",
13
+ LEGACY_margin: "0 0 0 -8px"
14
+ }));
15
+ }
@@ -0,0 +1,9 @@
1
+ ._18u0u2gc{margin-left:var(--ds-space-100,8px)}
2
+ ._19pkze3t{margin-top:var(--ds-space-0,0)}
3
+ ._1bsbt94y{width:1px}
4
+ ._1e0c1o8l{display:inline-block}
5
+ ._2hwxu2gc{margin-right:var(--ds-space-100,8px)}
6
+ ._4t3i1tcg{height:24px}
7
+ ._bfhk15ej{background-color:var(--ds-background-neutral-hovered,#091e4224)}
8
+ ._otyrze3t{margin-bottom:var(--ds-space-0,0)}
9
+ ._uiztglyw{-webkit-user-select:none;-ms-user-select:none;user-select:none}
@@ -0,0 +1,10 @@
1
+ /* Separator.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./Separator.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
5
+ var separatorStyles = null;
6
+ export function ToolbarSeparator() {
7
+ return /*#__PURE__*/React.createElement("span", {
8
+ className: ax(["_1e0c1o8l _1bsbt94y _4t3i1tcg _19pkze3t _otyrze3t _18u0u2gc _2hwxu2gc _uiztglyw _bfhk15ej"])
9
+ });
10
+ }
@@ -33,6 +33,12 @@ export { wrapperStyle } from './ResizerLegacy/styled';
33
33
  export { panelTextInput } from './PanelTextInput/styles';
34
34
  export { default as PanelTextInput } from './PanelTextInput';
35
35
  export { default as Announcer } from './Announcer/announcer';
36
+ export { Shortcut } from './Shortcut';
36
37
  export { EDIT_AREA_ID } from './Toolbar';
38
+ export { ToolbarButtonGroup } from './Toolbar/ButtonGroup';
39
+ export { ToolbarDropdownTriggerWrapper } from './Toolbar/DropdownTriggerWrapper';
40
+ export { ToolbarDropdownWrapper } from './Toolbar/DropdownWrapper';
41
+ export { ToolbarExpandIcon } from './Toolbar/ExpandIcon';
42
+ export { ToolbarSeparator } from './Toolbar/Separator';
37
43
  export { default as DropList } from './DropList';
38
44
  export { sharedMultiBodiedExtensionStyles } from './MultiBodiedExtension';
@@ -20,7 +20,9 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
20
20
  * @jsxRuntime classic
21
21
  * @jsx jsx
22
22
  */
23
+
23
24
  import React, { PureComponent, useContext } from 'react';
25
+
24
26
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
25
27
  import { css, jsx } from '@emotion/react';
26
28
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
@@ -50,7 +52,7 @@ var buttonStyles = function buttonStyles(isActive, submenuActive) {
50
52
  * Hack for item to imitate old dropdown-menu selected styles
51
53
  */
52
54
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
53
- return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t> span,\n\t\t\t> span:hover,\n\t\t\t> span:active {\n\t\t\t\tbackground: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-background-selected, #6c798f)", "var(--ds-text, #fff)", focusedMenuItemStyle);
55
+ return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t\t\t> span,\n\t\t\t> span:hover,\n\t\t\t> span:active {\n\t\t\t\tbackground: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-background-selected, #6c798f)", "var(--ds-text-selected, #0C66E4)", focusedMenuItemStyle);
54
56
  } else {
55
57
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
56
58
  return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\t\t\t> span:hover[aria-disabled='false'] {\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\t", "\n\t\t\t> span[aria-disabled='true'] {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-text, #172B4D)", "var(--ds-background-neutral-subtle-hovered, rgb(244, 245, 247))", !submenuActive && "\n\t\t\t\t\t> span:active[aria-disabled='false'] {\n\t\t\t\t\t\tbackground-color: ".concat("var(--ds-background-neutral-subtle-pressed, rgb(179, 212, 255))", ";\n\t\t\t\t\t}"), "var(--ds-text-disabled, #091E424F)", focusedMenuItemStyle); // The default focus-visible style is removed to ensure consistency across browsers
@@ -14,6 +14,7 @@ type BaseLineSuggestionPayload = {
14
14
  locale: string;
15
15
  suggestionType?: string;
16
16
  matchedFormat?: string;
17
+ inlineSuggestionSessionId?: string | null;
17
18
  };
18
19
  type InsertSuggestionAEP = TrackAEP<ACTION.SUGGESTION_INSERTED, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.AI_INLINE_SUGGESTION, SuggestionPayload, undefined>;
19
20
  type DismissSuggestionAEP = TrackAEP<ACTION.SUGGESTION_DISMISSED, ACTION_SUBJECT.EDITOR_PLUGIN_AI, ACTION_SUBJECT_ID.AI_INLINE_SUGGESTION, SuggestionPayload, undefined>;
@@ -1,4 +1,8 @@
1
1
  export declare const expandIconWrapperStyle: import("@emotion/react").SerializedStyles;
2
+ /**
3
+ * @private
4
+ * @deprecated use `import { ToolbarExpandIcon } from '@atlaskit/editor-common/ui';` instead
5
+ */
2
6
  export declare const expandIconContainerStyle: import("@emotion/react").SerializedStyles;
3
7
  export declare const expandClassNames: {
4
8
  prefix: string;
@@ -1,7 +1,31 @@
1
+ /**
2
+ * @private
3
+ * @deprecated use `import { ToolbarButtonGroup } from '@atlaskit/editor-common/ui';` instead
4
+ */
1
5
  export declare const buttonGroupStyleBeforeVisualRefresh: import("@emotion/react").SerializedStyles;
6
+ /**
7
+ * @private
8
+ * @deprecated use `import { ToolbarButtonGroup } from '@atlaskit/editor-common/ui';` instead
9
+ */
2
10
  export declare const buttonGroupStyle: import("@emotion/react").SerializedStyles;
11
+ /**
12
+ * @private
13
+ * @deprecated use `import { ToolbarSeparator } from '@atlaskit/editor-common/ui';` instead
14
+ */
3
15
  export declare const separatorStyles: import("@emotion/react").SerializedStyles;
16
+ /**
17
+ * @private
18
+ * @deprecated use `import { ToolbarDropdownWrapper } from '@atlaskit/editor-common/ui';` instead
19
+ */
4
20
  export declare const wrapperStyle: import("@emotion/react").SerializedStyles;
21
+ /**
22
+ * @private
23
+ * @deprecated use `import { ToolbarDropdownTriggerWrapper } from '@atlaskit/editor-common/ui';` instead
24
+ */
5
25
  export declare const triggerWrapperStyles: import("@emotion/react").SerializedStyles;
26
+ /**
27
+ * @private
28
+ * @deprecated use `import { ToolbarDropdownTriggerWrapper } from '@atlaskit/editor-common/ui';` instead
29
+ */
6
30
  export declare const triggerWrapperStylesWithPadding: import("@emotion/react").SerializedStyles;
7
31
  export declare const disableBlueBorderStyles: import("@emotion/react").SerializedStyles;
@@ -14,6 +14,11 @@ export declare const typeAheadListMessages: {
14
14
  defaultMessage: string;
15
15
  description: string;
16
16
  };
17
+ quickInsertInputPlaceholderLabel: {
18
+ id: string;
19
+ defaultMessage: string;
20
+ description: string;
21
+ };
17
22
  emojiPopupLabel: {
18
23
  id: string;
19
24
  defaultMessage: string;