@atlaskit/editor-toolbar 1.10.14 → 1.10.15

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 (271) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/add-icon/package.json +1 -8
  3. package/ai-adjust-length-icon/package.json +1 -8
  4. package/ai-casual-icon/package.json +1 -8
  5. package/ai-change-tone-icon/package.json +1 -8
  6. package/ai-chat-icon/package.json +1 -8
  7. package/ai-command-icon/package.json +1 -8
  8. package/ai-heart-icon/package.json +1 -8
  9. package/ai-lengthen-icon/package.json +1 -8
  10. package/ai-professional-icon/package.json +1 -8
  11. package/ai-shorten-icon/package.json +1 -8
  12. package/ai-spellcheck-icon/package.json +1 -8
  13. package/ai-summarize-icon/package.json +1 -8
  14. package/ai-translate-icon/package.json +1 -8
  15. package/align-text-center-icon/package.json +1 -8
  16. package/align-text-left-icon/package.json +1 -8
  17. package/align-text-right-icon/package.json +1 -8
  18. package/app-icon/package.json +1 -8
  19. package/apps-icon/package.json +1 -8
  20. package/bold-icon/package.json +1 -8
  21. package/clear-formatting-icon/package.json +1 -8
  22. package/code-icon/package.json +1 -8
  23. package/color-palette/package.json +1 -8
  24. package/comment-icon/package.json +1 -8
  25. package/define-icon/package.json +1 -8
  26. package/emoji-icon/package.json +1 -8
  27. package/heading-five-icon/package.json +1 -8
  28. package/heading-four-icon/package.json +1 -8
  29. package/heading-one-icon/package.json +1 -8
  30. package/heading-six-icon/package.json +1 -8
  31. package/heading-three-icon/package.json +1 -8
  32. package/heading-two-icon/package.json +1 -8
  33. package/history-icon/package.json +1 -8
  34. package/image-icon/package.json +1 -8
  35. package/indent-icon/package.json +1 -8
  36. package/italic-icon/package.json +1 -8
  37. package/layout-icon/package.json +1 -8
  38. package/link-icon/package.json +1 -8
  39. package/list-bulleted-icon/package.json +1 -8
  40. package/list-numbered-icon/package.json +1 -8
  41. package/loom-icon/package.json +1 -8
  42. package/mention-icon/package.json +1 -8
  43. package/more-items-icon/package.json +1 -8
  44. package/nested-dropdown-right-icon/package.json +1 -8
  45. package/outdent-icon/package.json +1 -8
  46. package/package.json +2 -2
  47. package/pin-icon/package.json +1 -8
  48. package/pinned-icon/package.json +1 -8
  49. package/plus-icon/package.json +1 -8
  50. package/quote-icon/package.json +1 -8
  51. package/redo-icon/package.json +1 -8
  52. package/responsive-container/package.json +1 -8
  53. package/show/package.json +1 -8
  54. package/show-more-horizontal/package.json +1 -8
  55. package/strike-through-icon/package.json +1 -8
  56. package/subscript-icon/package.json +1 -8
  57. package/superscript-icon/package.json +1 -8
  58. package/sync-blocks-icon/package.json +1 -8
  59. package/table-icon/package.json +1 -8
  60. package/task-icon/package.json +1 -8
  61. package/text-color-icon/package.json +1 -8
  62. package/text-icon/package.json +1 -8
  63. package/text-normal-icon/package.json +1 -8
  64. package/text-small-icon/package.json +1 -8
  65. package/toolbar/package.json +1 -8
  66. package/toolbar-button/package.json +1 -8
  67. package/toolbar-button-group/package.json +1 -8
  68. package/toolbar-color-swatch/package.json +1 -8
  69. package/toolbar-dropdown-item/package.json +1 -8
  70. package/toolbar-dropdown-item-section/package.json +1 -8
  71. package/toolbar-dropdown-menu/package.json +1 -8
  72. package/toolbar-dropdown-menu-context/package.json +1 -8
  73. package/toolbar-keyboard-navigation-provider/package.json +1 -8
  74. package/toolbar-keyboard-shortcut-hint/package.json +1 -8
  75. package/toolbar-menu-container/package.json +1 -8
  76. package/toolbar-nested-dropdown-menu/package.json +1 -8
  77. package/toolbar-section/package.json +1 -8
  78. package/toolbar-tooltip/package.json +1 -8
  79. package/types/package.json +1 -8
  80. package/ui-context/package.json +1 -8
  81. package/underline-icon/package.json +1 -8
  82. package/undo-icon/package.json +1 -8
  83. package/work-item-icon/package.json +1 -8
  84. package/work-items-icon/package.json +1 -8
  85. package/dist/types-ts4.5/entry-points/add-icon.d.ts +0 -1
  86. package/dist/types-ts4.5/entry-points/ai-adjust-length-icon.d.ts +0 -1
  87. package/dist/types-ts4.5/entry-points/ai-casual-icon.d.ts +0 -1
  88. package/dist/types-ts4.5/entry-points/ai-change-tone-icon.d.ts +0 -1
  89. package/dist/types-ts4.5/entry-points/ai-chat-icon.d.ts +0 -1
  90. package/dist/types-ts4.5/entry-points/ai-command-icon.d.ts +0 -1
  91. package/dist/types-ts4.5/entry-points/ai-heart-icon.d.ts +0 -1
  92. package/dist/types-ts4.5/entry-points/ai-lengthen-icon.d.ts +0 -1
  93. package/dist/types-ts4.5/entry-points/ai-professional-icon.d.ts +0 -1
  94. package/dist/types-ts4.5/entry-points/ai-shorten-icon.d.ts +0 -1
  95. package/dist/types-ts4.5/entry-points/ai-spellcheck-icon.d.ts +0 -1
  96. package/dist/types-ts4.5/entry-points/ai-summarize-icon.d.ts +0 -1
  97. package/dist/types-ts4.5/entry-points/ai-translate-icon.d.ts +0 -1
  98. package/dist/types-ts4.5/entry-points/align-text-center-icon.d.ts +0 -1
  99. package/dist/types-ts4.5/entry-points/align-text-left-icon.d.ts +0 -1
  100. package/dist/types-ts4.5/entry-points/align-text-right-icon.d.ts +0 -1
  101. package/dist/types-ts4.5/entry-points/app-icon.d.ts +0 -1
  102. package/dist/types-ts4.5/entry-points/apps-icon.d.ts +0 -1
  103. package/dist/types-ts4.5/entry-points/bold-icon.d.ts +0 -1
  104. package/dist/types-ts4.5/entry-points/clear-formatting-icon.d.ts +0 -1
  105. package/dist/types-ts4.5/entry-points/code-icon.d.ts +0 -1
  106. package/dist/types-ts4.5/entry-points/color-palette.d.ts +0 -1
  107. package/dist/types-ts4.5/entry-points/comment-icon.d.ts +0 -1
  108. package/dist/types-ts4.5/entry-points/define-icon.d.ts +0 -1
  109. package/dist/types-ts4.5/entry-points/emoji-icon.d.ts +0 -1
  110. package/dist/types-ts4.5/entry-points/heading-five-icon.d.ts +0 -1
  111. package/dist/types-ts4.5/entry-points/heading-four-icon.d.ts +0 -1
  112. package/dist/types-ts4.5/entry-points/heading-one-icon.d.ts +0 -1
  113. package/dist/types-ts4.5/entry-points/heading-six-icon.d.ts +0 -1
  114. package/dist/types-ts4.5/entry-points/heading-three-icon.d.ts +0 -1
  115. package/dist/types-ts4.5/entry-points/heading-two-icon.d.ts +0 -1
  116. package/dist/types-ts4.5/entry-points/history-icon.d.ts +0 -1
  117. package/dist/types-ts4.5/entry-points/image-icon.d.ts +0 -1
  118. package/dist/types-ts4.5/entry-points/indent-icon.d.ts +0 -1
  119. package/dist/types-ts4.5/entry-points/italic-icon.d.ts +0 -1
  120. package/dist/types-ts4.5/entry-points/layout-icon.d.ts +0 -1
  121. package/dist/types-ts4.5/entry-points/link-icon.d.ts +0 -1
  122. package/dist/types-ts4.5/entry-points/list-bulleted-icon.d.ts +0 -1
  123. package/dist/types-ts4.5/entry-points/list-numbered-icon.d.ts +0 -1
  124. package/dist/types-ts4.5/entry-points/loom-icon.d.ts +0 -1
  125. package/dist/types-ts4.5/entry-points/mention-icon.d.ts +0 -1
  126. package/dist/types-ts4.5/entry-points/more-items-icon.d.ts +0 -1
  127. package/dist/types-ts4.5/entry-points/nested-dropdown-right-icon.d.ts +0 -1
  128. package/dist/types-ts4.5/entry-points/outdent-icon.d.ts +0 -1
  129. package/dist/types-ts4.5/entry-points/pin-icon.d.ts +0 -1
  130. package/dist/types-ts4.5/entry-points/pinned-icon.d.ts +0 -1
  131. package/dist/types-ts4.5/entry-points/plus-icon.d.ts +0 -1
  132. package/dist/types-ts4.5/entry-points/quote-icon.d.ts +0 -1
  133. package/dist/types-ts4.5/entry-points/redo-icon.d.ts +0 -1
  134. package/dist/types-ts4.5/entry-points/responsive-container.d.ts +0 -2
  135. package/dist/types-ts4.5/entry-points/show-more-horizontal.d.ts +0 -1
  136. package/dist/types-ts4.5/entry-points/show.d.ts +0 -2
  137. package/dist/types-ts4.5/entry-points/strike-through-icon.d.ts +0 -1
  138. package/dist/types-ts4.5/entry-points/subscript-icon.d.ts +0 -1
  139. package/dist/types-ts4.5/entry-points/superscript-icon.d.ts +0 -1
  140. package/dist/types-ts4.5/entry-points/sync-blocks-icon.d.ts +0 -1
  141. package/dist/types-ts4.5/entry-points/table-icon.d.ts +0 -1
  142. package/dist/types-ts4.5/entry-points/task-icon.d.ts +0 -1
  143. package/dist/types-ts4.5/entry-points/text-color-icon.d.ts +0 -1
  144. package/dist/types-ts4.5/entry-points/text-icon.d.ts +0 -1
  145. package/dist/types-ts4.5/entry-points/text-normal-icon.d.ts +0 -1
  146. package/dist/types-ts4.5/entry-points/text-small-icon.d.ts +0 -1
  147. package/dist/types-ts4.5/entry-points/toolbar-button-group.d.ts +0 -1
  148. package/dist/types-ts4.5/entry-points/toolbar-button.d.ts +0 -1
  149. package/dist/types-ts4.5/entry-points/toolbar-color-swatch.d.ts +0 -1
  150. package/dist/types-ts4.5/entry-points/toolbar-dropdown-item-section.d.ts +0 -1
  151. package/dist/types-ts4.5/entry-points/toolbar-dropdown-item.d.ts +0 -2
  152. package/dist/types-ts4.5/entry-points/toolbar-dropdown-menu-context.d.ts +0 -1
  153. package/dist/types-ts4.5/entry-points/toolbar-dropdown-menu.d.ts +0 -1
  154. package/dist/types-ts4.5/entry-points/toolbar-keyboard-navigation-provider.d.ts +0 -1
  155. package/dist/types-ts4.5/entry-points/toolbar-keyboard-shortcut-hint.d.ts +0 -1
  156. package/dist/types-ts4.5/entry-points/toolbar-menu-container.d.ts +0 -1
  157. package/dist/types-ts4.5/entry-points/toolbar-nested-dropdown-menu.d.ts +0 -1
  158. package/dist/types-ts4.5/entry-points/toolbar-section.d.ts +0 -1
  159. package/dist/types-ts4.5/entry-points/toolbar-tooltip.d.ts +0 -1
  160. package/dist/types-ts4.5/entry-points/toolbar.d.ts +0 -1
  161. package/dist/types-ts4.5/entry-points/types.d.ts +0 -1
  162. package/dist/types-ts4.5/entry-points/ui-context.d.ts +0 -2
  163. package/dist/types-ts4.5/entry-points/underline-icon.d.ts +0 -1
  164. package/dist/types-ts4.5/entry-points/undo-icon.d.ts +0 -1
  165. package/dist/types-ts4.5/entry-points/work-item-icon.d.ts +0 -1
  166. package/dist/types-ts4.5/entry-points/work-items-icon.d.ts +0 -1
  167. package/dist/types-ts4.5/hooks/ui-context.d.ts +0 -49
  168. package/dist/types-ts4.5/index.d.ts +0 -98
  169. package/dist/types-ts4.5/types.d.ts +0 -14
  170. package/dist/types-ts4.5/ui/ColorPalette/Color.d.ts +0 -11
  171. package/dist/types-ts4.5/ui/ColorPalette/getColorMessage.d.ts +0 -8
  172. package/dist/types-ts4.5/ui/ColorPalette/index.d.ts +0 -15
  173. package/dist/types-ts4.5/ui/ColorPalette/types.d.ts +0 -89
  174. package/dist/types-ts4.5/ui/ColorPalette/utils.d.ts +0 -40
  175. package/dist/types-ts4.5/ui/ResponsiveContainer.d.ts +0 -73
  176. package/dist/types-ts4.5/ui/Show.d.ts +0 -30
  177. package/dist/types-ts4.5/ui/Toolbar.d.ts +0 -26
  178. package/dist/types-ts4.5/ui/ToolbarButton.d.ts +0 -20
  179. package/dist/types-ts4.5/ui/ToolbarButtonGroup.d.ts +0 -6
  180. package/dist/types-ts4.5/ui/ToolbarColorSwatch.d.ts +0 -8
  181. package/dist/types-ts4.5/ui/ToolbarDropdownItem.d.ts +0 -43
  182. package/dist/types-ts4.5/ui/ToolbarDropdownItemSection.d.ts +0 -10
  183. package/dist/types-ts4.5/ui/ToolbarDropdownMenu.d.ts +0 -26
  184. package/dist/types-ts4.5/ui/ToolbarDropdownMenuContext.d.ts +0 -15
  185. package/dist/types-ts4.5/ui/ToolbarKeyboardNavigationProvider.d.ts +0 -7
  186. package/dist/types-ts4.5/ui/ToolbarKeyboardShortcutHint.d.ts +0 -7
  187. package/dist/types-ts4.5/ui/ToolbarMenuContainer.d.ts +0 -16
  188. package/dist/types-ts4.5/ui/ToolbarNestedDropdownMenu.d.ts +0 -27
  189. package/dist/types-ts4.5/ui/ToolbarSection.d.ts +0 -19
  190. package/dist/types-ts4.5/ui/ToolbarTooltip.d.ts +0 -11
  191. package/dist/types-ts4.5/ui/ViewEventEmitter.d.ts +0 -12
  192. package/dist/types-ts4.5/ui/icons/AIAdjustLengthIcon.d.ts +0 -1
  193. package/dist/types-ts4.5/ui/icons/AICasualIcon.d.ts +0 -1
  194. package/dist/types-ts4.5/ui/icons/AIChangeToneIcon.d.ts +0 -1
  195. package/dist/types-ts4.5/ui/icons/AIChatIcon.d.ts +0 -10
  196. package/dist/types-ts4.5/ui/icons/AICommandIcon.d.ts +0 -1
  197. package/dist/types-ts4.5/ui/icons/AIHeartIcon.d.ts +0 -1
  198. package/dist/types-ts4.5/ui/icons/AILengthenIcon.d.ts +0 -1
  199. package/dist/types-ts4.5/ui/icons/AIProfessionalIcon.d.ts +0 -1
  200. package/dist/types-ts4.5/ui/icons/AIShortenIcon.d.ts +0 -1
  201. package/dist/types-ts4.5/ui/icons/AISpellcheckIcon.d.ts +0 -1
  202. package/dist/types-ts4.5/ui/icons/AISummarizeIcon.d.ts +0 -1
  203. package/dist/types-ts4.5/ui/icons/AITranslateIcon.d.ts +0 -1
  204. package/dist/types-ts4.5/ui/icons/AddIcon.d.ts +0 -1
  205. package/dist/types-ts4.5/ui/icons/AlignTextCenterIcon.d.ts +0 -1
  206. package/dist/types-ts4.5/ui/icons/AlignTextLeftIcon.d.ts +0 -1
  207. package/dist/types-ts4.5/ui/icons/AlignTextRightIcon.d.ts +0 -1
  208. package/dist/types-ts4.5/ui/icons/AppIcon.d.ts +0 -1
  209. package/dist/types-ts4.5/ui/icons/AppsIcon.d.ts +0 -1
  210. package/dist/types-ts4.5/ui/icons/ArrowDownIcon.d.ts +0 -1
  211. package/dist/types-ts4.5/ui/icons/ArrowUpIcon.d.ts +0 -1
  212. package/dist/types-ts4.5/ui/icons/BoldIcon.d.ts +0 -1
  213. package/dist/types-ts4.5/ui/icons/ClearFormattingIcon.d.ts +0 -1
  214. package/dist/types-ts4.5/ui/icons/CodeIcon.d.ts +0 -1
  215. package/dist/types-ts4.5/ui/icons/CommentIcon.d.ts +0 -1
  216. package/dist/types-ts4.5/ui/icons/CrossIcon.d.ts +0 -1
  217. package/dist/types-ts4.5/ui/icons/DefineIcon.d.ts +0 -1
  218. package/dist/types-ts4.5/ui/icons/DeleteIcon.d.ts +0 -1
  219. package/dist/types-ts4.5/ui/icons/EmojiIcon.d.ts +0 -1
  220. package/dist/types-ts4.5/ui/icons/HeadingFiveIcon.d.ts +0 -1
  221. package/dist/types-ts4.5/ui/icons/HeadingFourIcon.d.ts +0 -1
  222. package/dist/types-ts4.5/ui/icons/HeadingOneIcon.d.ts +0 -1
  223. package/dist/types-ts4.5/ui/icons/HeadingSixIcon.d.ts +0 -1
  224. package/dist/types-ts4.5/ui/icons/HeadingThreeIcon.d.ts +0 -1
  225. package/dist/types-ts4.5/ui/icons/HeadingTwoIcon.d.ts +0 -1
  226. package/dist/types-ts4.5/ui/icons/HistoryIcon.d.ts +0 -1
  227. package/dist/types-ts4.5/ui/icons/ImageIcon.d.ts +0 -1
  228. package/dist/types-ts4.5/ui/icons/IndentIcon.d.ts +0 -1
  229. package/dist/types-ts4.5/ui/icons/ItalicIcon.d.ts +0 -1
  230. package/dist/types-ts4.5/ui/icons/LayoutIcon.d.ts +0 -1
  231. package/dist/types-ts4.5/ui/icons/LinkIcon.d.ts +0 -1
  232. package/dist/types-ts4.5/ui/icons/ListBulletedIcon.d.ts +0 -1
  233. package/dist/types-ts4.5/ui/icons/ListNumberedIcon.d.ts +0 -1
  234. package/dist/types-ts4.5/ui/icons/LoomIcon.d.ts +0 -1
  235. package/dist/types-ts4.5/ui/icons/MentionIcon.d.ts +0 -1
  236. package/dist/types-ts4.5/ui/icons/MoreItemsIcon.d.ts +0 -2
  237. package/dist/types-ts4.5/ui/icons/NestedDropdownRightIcon.d.ts +0 -2
  238. package/dist/types-ts4.5/ui/icons/OutdentIcon.d.ts +0 -1
  239. package/dist/types-ts4.5/ui/icons/PaintBucketIcon.d.ts +0 -1
  240. package/dist/types-ts4.5/ui/icons/PinIcon.d.ts +0 -1
  241. package/dist/types-ts4.5/ui/icons/PinnedIcon.d.ts +0 -1
  242. package/dist/types-ts4.5/ui/icons/PlusIcon.d.ts +0 -1
  243. package/dist/types-ts4.5/ui/icons/QuoteIcon.d.ts +0 -1
  244. package/dist/types-ts4.5/ui/icons/RedoIcon.d.ts +0 -1
  245. package/dist/types-ts4.5/ui/icons/ShowMoreHorizontal.d.ts +0 -2
  246. package/dist/types-ts4.5/ui/icons/SortAscendingIcon.d.ts +0 -1
  247. package/dist/types-ts4.5/ui/icons/SortDescendingIcon.d.ts +0 -1
  248. package/dist/types-ts4.5/ui/icons/StrikeThroughIcon.d.ts +0 -1
  249. package/dist/types-ts4.5/ui/icons/SubscriptIcon.d.ts +0 -1
  250. package/dist/types-ts4.5/ui/icons/SuperscriptIcon.d.ts +0 -1
  251. package/dist/types-ts4.5/ui/icons/SyncBlocksIcon.d.ts +0 -1
  252. package/dist/types-ts4.5/ui/icons/TableCellMergeIcon.d.ts +0 -1
  253. package/dist/types-ts4.5/ui/icons/TableCellSplitIcon.d.ts +0 -1
  254. package/dist/types-ts4.5/ui/icons/TableColumnAddLeftIcon.d.ts +0 -1
  255. package/dist/types-ts4.5/ui/icons/TableColumnAddRightIcon.d.ts +0 -1
  256. package/dist/types-ts4.5/ui/icons/TableColumnMoveRightIcon.d.ts +0 -1
  257. package/dist/types-ts4.5/ui/icons/TableColumnsDistributeIcon.d.ts +0 -1
  258. package/dist/types-ts4.5/ui/icons/TableIcon.d.ts +0 -1
  259. package/dist/types-ts4.5/ui/icons/TableRowAddAboveIcon.d.ts +0 -1
  260. package/dist/types-ts4.5/ui/icons/TableRowAddBelowIcon.d.ts +0 -1
  261. package/dist/types-ts4.5/ui/icons/TableRowMoveDownIcon.d.ts +0 -1
  262. package/dist/types-ts4.5/ui/icons/TableRowMoveUpIcon.d.ts +0 -1
  263. package/dist/types-ts4.5/ui/icons/TaskIcon.d.ts +0 -1
  264. package/dist/types-ts4.5/ui/icons/TextColorIcon.d.ts +0 -9
  265. package/dist/types-ts4.5/ui/icons/TextIcon.d.ts +0 -1
  266. package/dist/types-ts4.5/ui/icons/TextNormalIcon.d.ts +0 -1
  267. package/dist/types-ts4.5/ui/icons/TextSmallIcon.d.ts +0 -1
  268. package/dist/types-ts4.5/ui/icons/UnderlineIcon.d.ts +0 -1
  269. package/dist/types-ts4.5/ui/icons/UndoIcon.d.ts +0 -1
  270. package/dist/types-ts4.5/ui/icons/WorkItemIcon.d.ts +0 -1
  271. package/dist/types-ts4.5/ui/icons/WorkItemsIcon.d.ts +0 -1
@@ -1,73 +0,0 @@
1
- import React from 'react';
2
- import type { ReactNode } from 'react';
3
- /**
4
- * Breakpoint preset names for ResponsiveContainer.
5
- * Each preset defines a specific set of breakpoints optimized for different use cases.
6
- */
7
- export type BreakpointPreset = 'fullpage' | 'reduced' | 'jira-issue' | 'jsm-comment' | 'confluence-comment';
8
- export type ResponsiveContainerProps = {
9
- /**
10
- * Selects the breakpoint preset for the responsive container.
11
- *
12
- * Available presets:
13
- * - 'fullpage': (410, 476, 768, 1024) - Editor full-page experiences (updated to 410, 476, 1126, 1232 when platform_editor_ai_improve_formatting_toolbar is enabled)
14
- * - 'reduced': (210, 408, 575, 1024) - Default compact toolbars, constrained layouts
15
- * - 'jira-issue': (280, 420, 650, 1024) - Jira issue view and similar contexts
16
- * - 'jsm-comment': (365, 500, 630, 1024) - JSM comment editor with canned responses button
17
- * - 'confluence-comment': (210, 408, 648, 1024) - Confluence comment editor and inline contexts
18
- *
19
- * @default 'fullpage'
20
- */
21
- breakpointPreset: BreakpointPreset;
22
- children: ReactNode;
23
- };
24
- /**
25
- * A responsive container that enables container query-based responsive design using CSS container queries.
26
- * This component establishes a containment context named 'toolbar-container' that child components can
27
- * reference for responsive behavior based on the container's width rather than the viewport width.
28
- *
29
- * The container defines breakpoints at:
30
- * - sm: 410px
31
- * - md: 476px
32
- * - lg: 768px
33
- * - xl: 1024px
34
- *
35
- * @example
36
- * Basic usage with Show component for responsive visibility:
37
- * ```tsx
38
- * <ResponsiveContainer>
39
- * <Show above="md">
40
- * <Button>Only visible when container is wider than 476px</Button>
41
- * </Show>
42
- * <Show below="sm">
43
- * <Icon>Only visible when container is narrower than 410px</Icon>
44
- * </Show>
45
- * </ResponsiveContainer>
46
- * ```
47
- *
48
- * @example
49
- * Combining multiple Show components for different breakpoints:
50
- * ```tsx
51
- * <ResponsiveContainer>
52
- * <Show above="lg">
53
- * <FullToolbar />
54
- * </Show>
55
- * <Show below="lg" above="md">
56
- * <CompactToolbar />
57
- * </Show>
58
- * <Show below="md">
59
- * <MinimalToolbar />
60
- * </Show>
61
- * </ResponsiveContainer>
62
- * ```
63
- *
64
- * @param breakpointPreset - Selects the breakpoint preset for the responsive container
65
- * @returns A Box component with container query styles applied
66
- */
67
- export declare const ResponsiveContainer: ({ children, breakpointPreset, }: ResponsiveContainerProps) => React.JSX.Element;
68
- /**
69
- * A wrapper that supports responsiveness with media queries. It needs to used together with Show component
70
- */
71
- export declare const ResponsiveWrapper: ({ children }: {
72
- children: ReactNode;
73
- }) => React.JSX.Element;
@@ -1,30 +0,0 @@
1
- import React from 'react';
2
- import type { ReactNode } from 'react';
3
- export type Breakpoint = 'sm' | 'md' | 'lg' | 'xl';
4
- type AboveProp = {
5
- above: Breakpoint;
6
- below?: never;
7
- only?: never;
8
- };
9
- type BelowProp = {
10
- above?: never;
11
- below: Breakpoint;
12
- only?: never;
13
- };
14
- type OnlyProp = {
15
- above?: never;
16
- below?: never;
17
- only: Breakpoint;
18
- };
19
- type ShowProps = {
20
- children: ReactNode;
21
- } & (AboveProp | BelowProp | OnlyProp);
22
- /**
23
- * Conditionally renders children based on responsive breakpoints.
24
- * Use either `above` or `below` prop to control visibility.
25
- *
26
- * *note:* This component must be an ancestor of a ResponsiveContainer component to work correctly
27
- * as it relies on CSS container queries.
28
- */
29
- export declare const Show: ({ children, above, below, only }: ShowProps) => React.JSX.Element;
30
- export {};
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import type { ReactNode } from 'react';
3
- import type { ResponsiveContainerProps } from './ResponsiveContainer';
4
- import type { ViewEventEmitterProps } from './ViewEventEmitter';
5
- type ToolbarProps = {
6
- children?: ReactNode;
7
- /**
8
- * aria-label for the toolbar (No localisation needed as it won't be read by screen readers).
9
- *
10
- * use case: query select the toolbar to position floating toolbar
11
- */
12
- label: string;
13
- testId?: string;
14
- } & ViewEventEmitterProps;
15
- /**
16
- * A simple component representing a toolbar with box shadows - used to represent a secondary/floating toolbar
17
- *
18
- * @note: Responsiveness support replies on container query with container editor-area and media query
19
- */
20
- export declare const Toolbar: ({ children, label, actionSubjectId, testId, }: ToolbarProps) => React.JSX.Element;
21
- type PrimaryToolbarProps = ToolbarProps & ResponsiveContainerProps;
22
- /**
23
- * A simple component representing a toolbar without box shadows - used to represent a primary toolbar
24
- */
25
- export declare const PrimaryToolbar: ({ children, label, breakpointPreset, }: PrimaryToolbarProps) => React.JSX.Element;
26
- export {};
@@ -1,20 +0,0 @@
1
- import React from 'react';
2
- import type { ReactNode } from 'react';
3
- import type { TriggerProps } from '@atlaskit/popup';
4
- type ToolbarButtonProps = Partial<TriggerProps> & {
5
- ariaKeyshortcuts?: string;
6
- children?: ReactNode;
7
- iconBefore: React.ReactNode;
8
- id?: string;
9
- ignoreInteractionDisabled?: boolean;
10
- interactionName?: string;
11
- isDisabled?: boolean;
12
- isSelected?: boolean;
13
- label?: string;
14
- onBlur?: (event: React.FocusEvent<HTMLButtonElement>) => void;
15
- onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
16
- onFocus?: (event: React.FocusEvent<HTMLButtonElement>) => void;
17
- testId?: string;
18
- };
19
- export declare const ToolbarButton: React.ForwardRefExoticComponent<Omit<ToolbarButtonProps, 'ref'> & React.RefAttributes<HTMLButtonElement>>;
20
- export {};
@@ -1,6 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- type ToolbarButtonGroupProps = {
3
- children?: ReactNode;
4
- };
5
- export declare const ToolbarButtonGroup: ({ children }: ToolbarButtonGroupProps) => JSX.Element;
6
- export {};
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { ReactNode } from 'react';
3
- type ToolbarColorSwatchProps = {
4
- children?: ReactNode;
5
- highlightColor?: string;
6
- };
7
- export declare const ToolbarColorSwatch: ({ children, highlightColor, }: ToolbarColorSwatchProps) => React.JSX.Element;
8
- export {};
@@ -1,43 +0,0 @@
1
- import React from 'react';
2
- import type { ReactNode, Ref } from 'react';
3
- import type { CustomItemComponentProps } from '@atlaskit/menu/types';
4
- import type { DataAttributes } from '../types';
5
- type TextStyle = 'normal' | 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
6
- export type ToolbarDropdownItemInteractionProps = {
7
- onBlur?: React.FocusEventHandler;
8
- onFocus?: React.FocusEventHandler;
9
- onMouseEnter?: React.MouseEventHandler;
10
- onMouseLeave?: React.MouseEventHandler;
11
- };
12
- export type ToolbarDropdownItemRole = 'menuitem' | 'menuitemcheckbox' | 'menuitemradio';
13
- export type CustomDropdownMenuItemButtonProps = CustomItemComponentProps & ToolbarDropdownItemInteractionProps & {
14
- 'aria-disabled'?: boolean;
15
- 'aria-haspopup'?: boolean;
16
- 'aria-keyshortcuts'?: string;
17
- 'aria-pressed'?: boolean;
18
- 'data-extension-item-key'?: string;
19
- itemRole?: ToolbarDropdownItemRole;
20
- title?: string;
21
- };
22
- type ToolbarDropdownItemProps = ToolbarDropdownItemInteractionProps & {
23
- ariaKeyshortcuts?: string;
24
- children?: React.ReactNode;
25
- elemAfter?: ReactNode;
26
- elemAfterText?: ReactNode;
27
- elemBefore?: ReactNode;
28
- hasNestedDropdownMenu?: boolean;
29
- href?: string;
30
- isDisabled?: boolean;
31
- isSelected?: boolean;
32
- onClick?: (e: React.MouseEvent | React.KeyboardEvent) => void;
33
- rel?: string;
34
- role?: ToolbarDropdownItemRole;
35
- shouldTitleWrap?: boolean;
36
- target?: string;
37
- testId?: string;
38
- textStyle?: TextStyle;
39
- title?: string;
40
- triggerRef?: Ref<HTMLButtonElement>;
41
- } & DataAttributes;
42
- export declare const ToolbarDropdownItem: ({ onClick, onBlur, onFocus, onMouseEnter, onMouseLeave, elemBefore, elemAfter, elemAfterText, isSelected, children, isDisabled, hasNestedDropdownMenu, triggerRef, title, shouldTitleWrap, testId, ariaKeyshortcuts, href, target, rel, role, ...dataAttributes }: ToolbarDropdownItemProps) => React.JSX.Element;
43
- export {};
@@ -1,10 +0,0 @@
1
- import React from 'react';
2
- import type { ReactNode } from 'react';
3
- type ToolbarDropdownItemSectionProps = {
4
- children?: ReactNode;
5
- hasSeparator?: boolean;
6
- testId?: string;
7
- title?: string;
8
- };
9
- export declare const ToolbarDropdownItemSection: ({ children, hasSeparator, title, testId, }: ToolbarDropdownItemSectionProps) => React.JSX.Element;
10
- export {};
@@ -1,26 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import type { ReactNode } from 'react';
7
- type ToolbarDropdownMenuProps = {
8
- children?: ReactNode;
9
- /**
10
- * Enforces a max height of 320px for menus - when menu is larger a scroll is introduced
11
- */
12
- enableMaxHeight?: boolean;
13
- /**
14
- * Whether to add margin around sections to align with 4px block padding existing in current editor dropdown
15
- */
16
- hasSectionMargin?: boolean;
17
- iconBefore: React.ReactNode;
18
- id?: string;
19
- isDisabled?: boolean;
20
- label?: string;
21
- onClick?: (event: React.MouseEvent<HTMLButtonElement>, isOpen: boolean) => void;
22
- testId?: string;
23
- tooltipComponent?: React.ReactNode;
24
- };
25
- export declare const ToolbarDropdownMenu: ({ iconBefore, children, isDisabled, id, testId, label, hasSectionMargin, enableMaxHeight, onClick, tooltipComponent, }: ToolbarDropdownMenuProps) => JSX.Element;
26
- export {};
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import type { KeyboardEvent, MouseEvent } from 'react';
3
- interface ToolbarDropdownMenuContextValue {
4
- closeMenu: (event: Event | MouseEvent | KeyboardEvent | null) => void;
5
- isOpen: boolean;
6
- openMenu: (event: Event | MouseEvent | KeyboardEvent | null) => void;
7
- }
8
- export declare const useToolbarDropdownMenu: () => ToolbarDropdownMenuContextValue | undefined;
9
- interface ToolbarDropdownMenuProviderProps {
10
- children: React.ReactNode;
11
- isOpen?: boolean;
12
- setIsOpen?: (isOpen: boolean) => void;
13
- }
14
- export declare const ToolbarDropdownMenuProvider: ({ children, isOpen, setIsOpen, }: ToolbarDropdownMenuProviderProps) => React.JSX.Element;
15
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { ToolbarKeyboardNavigationProviderConfig } from '../types';
3
- type ToolbarKeyboardNavigationProviderProps = ToolbarKeyboardNavigationProviderConfig & {
4
- children: React.ReactNode;
5
- };
6
- export declare const ToolbarKeyboardNavigationProvider: ({ children, childComponentSelector, dom, isShortcutToFocusToolbar, handleFocus, handleEscape, ariaLabel, ariaControls, }: ToolbarKeyboardNavigationProviderProps) => React.JSX.Element;
7
- export {};
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- type ToolbarKeyboardShortcutHintProps = {
3
- isDisabled?: boolean;
4
- shortcut: string;
5
- };
6
- export declare const ToolbarKeyboardShortcutHint: ({ shortcut, isDisabled, }: ToolbarKeyboardShortcutHintProps) => React.JSX.Element;
7
- export {};
@@ -1,16 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import React from 'react';
6
- import type { ReactNode } from 'react';
7
- type ToolbarMenuContainerProps = {
8
- children?: ReactNode;
9
- };
10
- /**
11
- * Shared visual shell for popup-hosted editor toolbar menus.
12
- *
13
- * This intentionally does not provide a trigger or popup positioning; callers own those concerns.
14
- */
15
- export declare const ToolbarMenuContainer: React.ForwardRefExoticComponent<ToolbarMenuContainerProps & React.RefAttributes<HTMLDivElement>>;
16
- export {};
@@ -1,27 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { KeyboardEvent, MouseEvent, ReactNode } from 'react';
6
- type ToolbarNestedDropdownMenuProps = {
7
- children?: ReactNode;
8
- 'data-extension-item-key'?: string;
9
- dropdownTestId?: string;
10
- elemAfter: ReactNode;
11
- elemAfterText?: ReactNode;
12
- elemBefore: ReactNode;
13
- /**
14
- * Enforeces a max height of 320px for menus - when menu is larger a scroll is introduced
15
- */
16
- enableMaxHeight?: boolean;
17
- isDisabled?: boolean;
18
- onClick?: (e: MouseEvent | KeyboardEvent) => void;
19
- shouldFitContainer?: boolean;
20
- shouldIgnoreCloseEvent?: (event: Event | MouseEvent | KeyboardEvent) => boolean;
21
- shouldTitleWrap?: boolean;
22
- testId?: string;
23
- text?: string;
24
- tooltipContent?: ReactNode;
25
- };
26
- export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfterText, elemAfter, children, isDisabled, testId, dropdownTestId, enableMaxHeight, onClick, shouldFitContainer, shouldIgnoreCloseEvent, shouldTitleWrap, tooltipContent, "data-extension-item-key": dataExtensionItemKey, }: ToolbarNestedDropdownMenuProps) => JSX.Element;
27
- export {};
@@ -1,19 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { ReactNode } from 'react';
6
- export declare enum SeparatorPosition {
7
- START = "start",
8
- END = "end"
9
- }
10
- type ToolbarSectionProps = {
11
- children?: ReactNode;
12
- /**
13
- * Whether to add a separator at the start or end of the section
14
- */
15
- hasSeparator?: SeparatorPosition | boolean;
16
- testId?: string;
17
- };
18
- export declare const ToolbarSection: ({ children, testId, hasSeparator, }: ToolbarSectionProps) => JSX.Element;
19
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { PositionType } from '@atlaskit/tooltip';
3
- type ToolbarTooltipProps = {
4
- children?: React.ReactNode;
5
- content: React.ReactNode;
6
- delay?: number;
7
- position?: PositionType;
8
- shortcut?: string[];
9
- };
10
- export declare const ToolbarTooltip: ({ content, shortcut, children, position, delay, }: ToolbarTooltipProps) => React.JSX.Element;
11
- export {};
@@ -1,12 +0,0 @@
1
- export declare const ACTION_SUBJECT: {
2
- TOOLBAR: string;
3
- TOOLBAR_DROPDOWN_MENU: string;
4
- };
5
- export type ViewEventEmitterProps = {
6
- actionSubject?: string;
7
- /**
8
- * Name of dropdown to identify in analytic events
9
- */
10
- actionSubjectId?: string;
11
- };
12
- export declare const ViewEventEmitter: ({ actionSubjectId, actionSubject }: ViewEventEmitterProps) => null;
@@ -1 +0,0 @@
1
- export { default as AIAdjustLengthIcon } from '@atlaskit/icon-lab/core/text-adjust-length';
@@ -1 +0,0 @@
1
- export { default as AICasualIcon } from '@atlaskit/icon/core/emoji-casual';
@@ -1 +0,0 @@
1
- export { default as AIChangeToneIcon } from '@atlaskit/icon-lab/core/ai-generative-chapters';
@@ -1,10 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- interface AIChatIconProps {
6
- label: string;
7
- testId?: string;
8
- }
9
- export declare const AIChatIcon: ({ label, testId }: AIChatIconProps) => JSX.Element;
10
- export {};
@@ -1 +0,0 @@
1
- export { default as AICommandIcon } from '@atlaskit/icon/core/magic-wand';
@@ -1 +0,0 @@
1
- export { default as AIHeartIcon } from '@atlaskit/icon/core/heart';
@@ -1 +0,0 @@
1
- export { default as AILengthenIcon } from '@atlaskit/icon-lab/core/text-lengthen';
@@ -1 +0,0 @@
1
- export { default as AIBriefcaseIcon } from '@atlaskit/icon/core/briefcase';
@@ -1 +0,0 @@
1
- export { default as AIShortenIcon } from '@atlaskit/icon/core/text-shorten';
@@ -1 +0,0 @@
1
- export { default as AISpellcheckIcon } from '@atlaskit/icon/core/text-spellcheck';
@@ -1 +0,0 @@
1
- export { default as AISummarizeIcon } from '@atlaskit/icon/core/ai-generative-text-summary';
@@ -1 +0,0 @@
1
- export { default as AITranslateIcon } from '@atlaskit/icon/core/translate';
@@ -1 +0,0 @@
1
- export { default as AddIcon } from '@atlaskit/icon/core/add';
@@ -1 +0,0 @@
1
- export { default as AlignTextCenterIcon } from '@atlaskit/icon/core/align-text-center';
@@ -1 +0,0 @@
1
- export { default as AlignTextLeftIcon } from '@atlaskit/icon/core/align-text-left';
@@ -1 +0,0 @@
1
- export { default as AlignTextRightIcon } from '@atlaskit/icon/core/align-text-right';
@@ -1 +0,0 @@
1
- export { default as AppIcon } from '@atlaskit/icon/core/app';
@@ -1 +0,0 @@
1
- export { default as AppsIcon } from '@atlaskit/icon/core/apps';
@@ -1 +0,0 @@
1
- export { default as ArrowDownIcon } from '@atlaskit/icon/core/arrow-down';
@@ -1 +0,0 @@
1
- export { default as ArrowUpIcon } from '@atlaskit/icon/core/arrow-up';
@@ -1 +0,0 @@
1
- export { default as BoldIcon } from '@atlaskit/icon/core/text-bold';
@@ -1 +0,0 @@
1
- export { default as ClearFormattingIcon } from '@atlaskit/icon/core/table-cell-clear';
@@ -1 +0,0 @@
1
- export { default as CodeIcon } from '@atlaskit/icon/core/angle-brackets';
@@ -1 +0,0 @@
1
- export { default as CommentIcon } from '@atlaskit/icon/core/comment';
@@ -1 +0,0 @@
1
- export { default as CrossIcon } from '@atlaskit/icon/core/cross';
@@ -1 +0,0 @@
1
- export { default as DefineIcon } from '@atlaskit/icon/core/information-circle';
@@ -1 +0,0 @@
1
- export { default as DeleteIcon } from '@atlaskit/icon/core/delete';
@@ -1 +0,0 @@
1
- export { default as EmojiIcon } from '@atlaskit/icon/core/emoji';
@@ -1 +0,0 @@
1
- export { default as HeadingFiveIcon } from '@atlaskit/icon-lab/core/text-heading-five';
@@ -1 +0,0 @@
1
- export { default as HeadingFourIcon } from '@atlaskit/icon-lab/core/text-heading-four';
@@ -1 +0,0 @@
1
- export { default as HeadingOneIcon } from '@atlaskit/icon-lab/core/text-heading-one';
@@ -1 +0,0 @@
1
- export { default as HeadingSixIcon } from '@atlaskit/icon-lab/core/text-heading-six';
@@ -1 +0,0 @@
1
- export { default as HeadingThreeIcon } from '@atlaskit/icon-lab/core/text-heading-three';
@@ -1 +0,0 @@
1
- export { default as HeadingTwoIcon } from '@atlaskit/icon-lab/core/text-heading-two';
@@ -1 +0,0 @@
1
- export { default as HistoryIcon } from '@atlaskit/icon-lab/core/history';
@@ -1 +0,0 @@
1
- export { default as ImageIcon } from '@atlaskit/icon/core/image';
@@ -1 +0,0 @@
1
- export { default as IndentIcon } from '@atlaskit/icon/core/text-indent-right';
@@ -1 +0,0 @@
1
- export { default as ItalicIcon } from '@atlaskit/icon/core/text-italic';
@@ -1 +0,0 @@
1
- export { default as LayoutIcon } from '@atlaskit/icon/core/layout-two-columns';
@@ -1 +0,0 @@
1
- export { default as LinkIcon } from '@atlaskit/icon/core/link';
@@ -1 +0,0 @@
1
- export { default as ListBulletedIcon } from '@atlaskit/icon/core/list-bulleted';
@@ -1 +0,0 @@
1
- export { default as ListNumberedIcon } from '@atlaskit/icon/core/list-numbered';
@@ -1 +0,0 @@
1
- export { default as LoomIcon } from '@atlaskit/icon/core/video';
@@ -1 +0,0 @@
1
- export { default as MentionIcon } from '@atlaskit/icon/core/mention';
@@ -1,2 +0,0 @@
1
- import type { IconComponent } from '../../types';
2
- export declare const MoreItemsIcon: IconComponent;
@@ -1,2 +0,0 @@
1
- import type { IconComponent } from '../../types';
2
- export declare const NestedDropdownRightIcon: IconComponent;
@@ -1 +0,0 @@
1
- export { default as OutdentIcon } from '@atlaskit/icon/core/text-indent-left';
@@ -1 +0,0 @@
1
- export { default as PaintBucketIcon } from '@atlaskit/icon/core/paint-bucket';
@@ -1 +0,0 @@
1
- export { default as PinIcon } from '@atlaskit/icon/core/pin';
@@ -1 +0,0 @@
1
- export { default as PinnedIcon } from '@atlaskit/icon/core/pin-filled';
@@ -1 +0,0 @@
1
- export { default as PlusIcon } from '@atlaskit/icon/core/plus-square';
@@ -1 +0,0 @@
1
- export { default as QuoteIcon } from '@atlaskit/icon/core/quotation-mark';
@@ -1 +0,0 @@
1
- export { default as RedoIcon } from '@atlaskit/icon/core/redo';
@@ -1,2 +0,0 @@
1
- import type { IconComponent } from '../../types';
2
- export declare const ShowMoreHorizontalIcon: IconComponent;
@@ -1 +0,0 @@
1
- export { default as SortAscendingIcon } from '@atlaskit/icon/core/sort-ascending';
@@ -1 +0,0 @@
1
- export { default as SortDescendingIcon } from '@atlaskit/icon/core/sort-descending';
@@ -1 +0,0 @@
1
- export { default as StrikeThroughIcon } from '@atlaskit/icon/core/text-strikethrough';
@@ -1 +0,0 @@
1
- export { default as SubscriptIcon } from '@atlaskit/icon-lab/core/text-subscript';
@@ -1 +0,0 @@
1
- export { default as SuperscriptIcon } from '@atlaskit/icon-lab/core/text-superscript';
@@ -1 +0,0 @@
1
- export { default as SyncBlocksIcon } from '@atlaskit/icon-lab/core/block-synced';
@@ -1 +0,0 @@
1
- export { default as TableCellMergeIcon } from '@atlaskit/icon/core/table-cell-merge';
@@ -1 +0,0 @@
1
- export { default as TableCellSplitIcon } from '@atlaskit/icon/core/table-cell-split';
@@ -1 +0,0 @@
1
- export { default as TableColumnAddLeftIcon } from '@atlaskit/icon/core/table-column-add-left';
@@ -1 +0,0 @@
1
- export { default as TableColumnAddRightIcon } from '@atlaskit/icon/core/table-column-add-right';
@@ -1 +0,0 @@
1
- export { default as TableColumnMoveRightIcon } from '@atlaskit/icon/core/table-column-move-right';
@@ -1 +0,0 @@
1
- export { default as TableColumnsDistributeIcon } from '@atlaskit/icon/core/table-columns-distribute';