@atlaskit/editor-toolbar 0.0.7 → 0.0.8

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 (37) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/afm-dev-agents/tsconfig.json +54 -0
  3. package/dist/cjs/index.js +77 -0
  4. package/dist/cjs/ui/ToolbarDropdownMenu.js +3 -2
  5. package/dist/cjs/ui/ToolbarNestedDropdownMenu.js +3 -2
  6. package/dist/cjs/ui/icons/AILengthenIcon.js +1 -1
  7. package/dist/cjs/ui/icons/AISummarizeIcon.js +13 -0
  8. package/dist/es2019/index.js +11 -0
  9. package/dist/es2019/ui/ToolbarDropdownMenu.js +3 -2
  10. package/dist/es2019/ui/ToolbarNestedDropdownMenu.js +3 -2
  11. package/dist/es2019/ui/icons/AILengthenIcon.js +1 -1
  12. package/dist/es2019/ui/icons/AISummarizeIcon.js +2 -0
  13. package/dist/esm/index.js +11 -0
  14. package/dist/esm/ui/ToolbarDropdownMenu.js +3 -2
  15. package/dist/esm/ui/ToolbarNestedDropdownMenu.js +3 -2
  16. package/dist/esm/ui/icons/AILengthenIcon.js +1 -1
  17. package/dist/esm/ui/icons/AISummarizeIcon.js +2 -0
  18. package/dist/types/index.d.ts +11 -0
  19. package/dist/types/ui/ToolbarColorSwatch.d.ts +1 -1
  20. package/dist/types/ui/ToolbarDropdownMenu.d.ts +2 -1
  21. package/dist/types/ui/ToolbarNestedDropdownMenu.d.ts +2 -1
  22. package/dist/types/ui/icons/AILengthenIcon.d.ts +1 -1
  23. package/dist/types/ui/icons/AISummarizeIcon.d.ts +1 -0
  24. package/dist/types-ts4.5/index.d.ts +11 -0
  25. package/dist/types-ts4.5/ui/ToolbarColorSwatch.d.ts +1 -1
  26. package/dist/types-ts4.5/ui/ToolbarDropdownMenu.d.ts +2 -1
  27. package/dist/types-ts4.5/ui/ToolbarNestedDropdownMenu.d.ts +2 -1
  28. package/dist/types-ts4.5/ui/icons/AILengthenIcon.d.ts +1 -1
  29. package/dist/types-ts4.5/ui/icons/AISummarizeIcon.d.ts +1 -0
  30. package/examples/toolbar/examples/ExampleManuallyComposedToolbar.tsx +2 -2
  31. package/package.json +1 -1
  32. package/src/index.ts +11 -0
  33. package/src/ui/ToolbarColorSwatch.tsx +1 -4
  34. package/src/ui/ToolbarDropdownMenu.tsx +3 -1
  35. package/src/ui/ToolbarNestedDropdownMenu.tsx +3 -1
  36. package/src/ui/icons/AILengthenIcon.tsx +1 -1
  37. package/src/ui/icons/AISummarizeIcon.tsx +2 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/editor-toolbar
2
2
 
3
+ ## 0.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#195460](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/195460)
8
+ [`dd320dee34d9f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/dd320dee34d9f) -
9
+ [ux] ED-28684 register ai components to the new toolbar behind platform_editor_toolbar_aifc
10
+ experiment
11
+
3
12
  ## 0.0.7
4
13
 
5
14
  ### Patch Changes
@@ -0,0 +1,54 @@
1
+ {
2
+ "extends": "../../../../tsconfig.entry-points.dev-agents.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "target": "es5",
6
+ "outDir": "../../../../../dev-agents/tsDist/@atlaskit__editor-toolbar/app",
7
+ "rootDir": "../",
8
+ "composite": true
9
+ },
10
+ "include": [
11
+ "../src/**/*.ts",
12
+ "../src/**/*.tsx"
13
+ ],
14
+ "exclude": [
15
+ "../src/**/__tests__/*",
16
+ "../src/**/*.test.*",
17
+ "../src/**/test.*"
18
+ ],
19
+ "references": [
20
+ {
21
+ "path": "../../../design-system/badge/afm-dev-agents/tsconfig.json"
22
+ },
23
+ {
24
+ "path": "../../../design-system/button/afm-dev-agents/tsconfig.json"
25
+ },
26
+ {
27
+ "path": "../../../design-system/css/afm-dev-agents/tsconfig.json"
28
+ },
29
+ {
30
+ "path": "../../../design-system/dropdown-menu/afm-dev-agents/tsconfig.json"
31
+ },
32
+ {
33
+ "path": "../../../design-system/icon/afm-dev-agents/tsconfig.json"
34
+ },
35
+ {
36
+ "path": "../../../design-system/icon-lab/afm-dev-agents/tsconfig.json"
37
+ },
38
+ {
39
+ "path": "../../../design-system/logo/afm-dev-agents/tsconfig.json"
40
+ },
41
+ {
42
+ "path": "../../../design-system/popup/afm-dev-agents/tsconfig.json"
43
+ },
44
+ {
45
+ "path": "../../../design-system/primitives/afm-dev-agents/tsconfig.json"
46
+ },
47
+ {
48
+ "path": "../../../design-system/tokens/afm-dev-agents/tsconfig.json"
49
+ },
50
+ {
51
+ "path": "../../../design-system/tooltip/afm-dev-agents/tsconfig.json"
52
+ }
53
+ ]
54
+ }
package/dist/cjs/index.js CHANGED
@@ -9,6 +9,24 @@ Object.defineProperty(exports, "AIAdjustLengthIcon", {
9
9
  return _AIAdjustLengthIcon.AIAdjustLengthIcon;
10
10
  }
11
11
  });
12
+ Object.defineProperty(exports, "AIBriefcaseIcon", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _AIProfessionalIcon.AIBriefcaseIcon;
16
+ }
17
+ });
18
+ Object.defineProperty(exports, "AICasualIcon", {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return _AICasualIcon.AICasualIcon;
22
+ }
23
+ });
24
+ Object.defineProperty(exports, "AIChangeToneIcon", {
25
+ enumerable: true,
26
+ get: function get() {
27
+ return _AIChangeToneIcon.AIChangeToneIcon;
28
+ }
29
+ });
12
30
  Object.defineProperty(exports, "AIChatIcon", {
13
31
  enumerable: true,
14
32
  get: function get() {
@@ -21,6 +39,42 @@ Object.defineProperty(exports, "AICommandIcon", {
21
39
  return _AICommandIcon.AICommandIcon;
22
40
  }
23
41
  });
42
+ Object.defineProperty(exports, "AIHeartIcon", {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return _AIHeartIcon.AIHeartIcon;
46
+ }
47
+ });
48
+ Object.defineProperty(exports, "AILengthenIcon", {
49
+ enumerable: true,
50
+ get: function get() {
51
+ return _AILengthenIcon.AILengthenIcon;
52
+ }
53
+ });
54
+ Object.defineProperty(exports, "AIShortenIcon", {
55
+ enumerable: true,
56
+ get: function get() {
57
+ return _AIShortenIcon.AIShortenIcon;
58
+ }
59
+ });
60
+ Object.defineProperty(exports, "AISpellcheckIcon", {
61
+ enumerable: true,
62
+ get: function get() {
63
+ return _AISpellcheckIcon.AISpellcheckIcon;
64
+ }
65
+ });
66
+ Object.defineProperty(exports, "AISummarizeIcon", {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return _AISummarizeIcon.AISummarizeIcon;
70
+ }
71
+ });
72
+ Object.defineProperty(exports, "AITranslateIcon", {
73
+ enumerable: true,
74
+ get: function get() {
75
+ return _AITranslateIcon.AITranslateIcon;
76
+ }
77
+ });
24
78
  Object.defineProperty(exports, "AddIcon", {
25
79
  enumerable: true,
26
80
  get: function get() {
@@ -111,6 +165,12 @@ Object.defineProperty(exports, "MoreItemsIcon", {
111
165
  return _MoreItemsIcon.MoreItemsIcon;
112
166
  }
113
167
  });
168
+ Object.defineProperty(exports, "NestedDropdownRightIcon", {
169
+ enumerable: true,
170
+ get: function get() {
171
+ return _NestedDropdownRightIcon.NestedDropdownRightIcon;
172
+ }
173
+ });
114
174
  Object.defineProperty(exports, "PinIcon", {
115
175
  enumerable: true,
116
176
  get: function get() {
@@ -183,6 +243,12 @@ Object.defineProperty(exports, "ToolbarKeyboardShortcutHint", {
183
243
  return _ToolbarKeyboardShortcutHint.ToolbarKeyboardShortcutHint;
184
244
  }
185
245
  });
246
+ Object.defineProperty(exports, "ToolbarNestedDropdownMenu", {
247
+ enumerable: true,
248
+ get: function get() {
249
+ return _ToolbarNestedDropdownMenu.ToolbarNestedDropdownMenu;
250
+ }
251
+ });
186
252
  Object.defineProperty(exports, "ToolbarSection", {
187
253
  enumerable: true,
188
254
  get: function get() {
@@ -204,8 +270,19 @@ var _ToolbarDropdownItemSection = require("./ui/ToolbarDropdownItemSection");
204
270
  var _ToolbarKeyboardShortcutHint = require("./ui/ToolbarKeyboardShortcutHint");
205
271
  var _ToolbarSection = require("./ui/ToolbarSection");
206
272
  var _ToolbarTooltip = require("./ui/ToolbarTooltip");
273
+ var _ToolbarNestedDropdownMenu = require("./ui/ToolbarNestedDropdownMenu");
207
274
  var _AIAdjustLengthIcon = require("./ui/icons/AIAdjustLengthIcon");
208
275
  var _AIChatIcon = require("./ui/icons/AIChatIcon");
276
+ var _AIProfessionalIcon = require("./ui/icons/AIProfessionalIcon");
277
+ var _AICasualIcon = require("./ui/icons/AICasualIcon");
278
+ var _AIHeartIcon = require("./ui/icons/AIHeartIcon");
279
+ var _AIShortenIcon = require("./ui/icons/AIShortenIcon");
280
+ var _AISpellcheckIcon = require("./ui/icons/AISpellcheckIcon");
281
+ var _AIChangeToneIcon = require("./ui/icons/AIChangeToneIcon");
282
+ var _AILengthenIcon = require("./ui/icons/AILengthenIcon");
283
+ var _AISummarizeIcon = require("./ui/icons/AISummarizeIcon");
284
+ var _AITranslateIcon = require("./ui/icons/AITranslateIcon");
285
+ var _NestedDropdownRightIcon = require("./ui/icons/NestedDropdownRightIcon");
209
286
  var _AICommandIcon = require("./ui/icons/AICommandIcon");
210
287
  var _AddIcon = require("./ui/icons/AddIcon");
211
288
  var _AppsIcon = require("./ui/icons/AppsIcon");
@@ -12,7 +12,8 @@ var ToolbarDropdownMenu = exports.ToolbarDropdownMenu = function ToolbarDropdown
12
12
  var iconBefore = _ref.iconBefore,
13
13
  groupLocation = _ref.groupLocation,
14
14
  children = _ref.children,
15
- isDisabled = _ref.isDisabled;
15
+ isDisabled = _ref.isDisabled,
16
+ testId = _ref.testId;
16
17
  return /*#__PURE__*/_react.default.createElement(_dropdownMenu.default, {
17
18
  trigger: function trigger(triggerProps) {
18
19
  return /*#__PURE__*/_react.default.createElement(_ToolbarButton.ToolbarButton, {
@@ -24,7 +25,7 @@ var ToolbarDropdownMenu = exports.ToolbarDropdownMenu = function ToolbarDropdown
24
25
  onBlur: triggerProps.onBlur,
25
26
  onClick: triggerProps.onClick,
26
27
  onFocus: triggerProps.onFocus,
27
- testId: triggerProps.testId,
28
+ testId: testId,
28
29
  iconBefore: iconBefore,
29
30
  groupLocation: groupLocation,
30
31
  isDisabled: isDisabled
@@ -13,7 +13,8 @@ var ToolbarNestedDropdownMenu = exports.ToolbarNestedDropdownMenu = function Too
13
13
  text = _ref.text,
14
14
  elemAfter = _ref.elemAfter,
15
15
  children = _ref.children,
16
- isDisabled = _ref.isDisabled;
16
+ isDisabled = _ref.isDisabled,
17
+ testId = _ref.testId;
17
18
  return /*#__PURE__*/_react.default.createElement(_dropdownMenu.default, {
18
19
  placement: "right-start",
19
20
  trigger: function trigger(triggerProps) {
@@ -22,7 +23,7 @@ var ToolbarNestedDropdownMenu = exports.ToolbarNestedDropdownMenu = function Too
22
23
  elemAfter: elemAfter,
23
24
  isSelected: triggerProps.isSelected,
24
25
  onClick: triggerProps.onClick,
25
- testId: triggerProps.testId,
26
+ testId: testId,
26
27
  triggerRef: triggerProps.triggerRef,
27
28
  hasNestedDropdownMenu: true,
28
29
  isDisabled: isDisabled
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- Object.defineProperty(exports, "AILenghtenIcon", {
7
+ Object.defineProperty(exports, "AILengthenIcon", {
8
8
  enumerable: true,
9
9
  get: function get() {
10
10
  return _textLengthen.default;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ Object.defineProperty(exports, "AISummarizeIcon", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _aiGenerativeTextSummary.default;
11
+ }
12
+ });
13
+ var _aiGenerativeTextSummary = _interopRequireDefault(require("@atlaskit/icon/core/ai-generative-text-summary"));
@@ -8,8 +8,19 @@ export { ToolbarDropdownItemSection } from './ui/ToolbarDropdownItemSection';
8
8
  export { ToolbarKeyboardShortcutHint } from './ui/ToolbarKeyboardShortcutHint';
9
9
  export { ToolbarSection } from './ui/ToolbarSection';
10
10
  export { ToolbarTooltip } from './ui/ToolbarTooltip';
11
+ export { ToolbarNestedDropdownMenu } from './ui/ToolbarNestedDropdownMenu';
11
12
  export { AIAdjustLengthIcon } from './ui/icons/AIAdjustLengthIcon';
12
13
  export { AIChatIcon } from './ui/icons/AIChatIcon';
14
+ export { AIBriefcaseIcon } from './ui/icons/AIProfessionalIcon';
15
+ export { AICasualIcon } from './ui/icons/AICasualIcon';
16
+ export { AIHeartIcon } from './ui/icons/AIHeartIcon';
17
+ export { AIShortenIcon } from './ui/icons/AIShortenIcon';
18
+ export { AISpellcheckIcon } from './ui/icons/AISpellcheckIcon';
19
+ export { AIChangeToneIcon } from './ui/icons/AIChangeToneIcon';
20
+ export { AILengthenIcon } from './ui/icons/AILengthenIcon';
21
+ export { AISummarizeIcon } from './ui/icons/AISummarizeIcon';
22
+ export { AITranslateIcon } from './ui/icons/AITranslateIcon';
23
+ export { NestedDropdownRightIcon } from './ui/icons/NestedDropdownRightIcon';
13
24
  export { AICommandIcon } from './ui/icons/AICommandIcon';
14
25
  export { AddIcon } from './ui/icons/AddIcon';
15
26
  export { AppsIcon } from './ui/icons/AppsIcon';
@@ -5,7 +5,8 @@ export const ToolbarDropdownMenu = ({
5
5
  iconBefore,
6
6
  groupLocation,
7
7
  children,
8
- isDisabled
8
+ isDisabled,
9
+ testId
9
10
  }) => {
10
11
  return /*#__PURE__*/React.createElement(DropdownMenu, {
11
12
  trigger: triggerProps => /*#__PURE__*/React.createElement(ToolbarButton, {
@@ -17,7 +18,7 @@ export const ToolbarDropdownMenu = ({
17
18
  onBlur: triggerProps.onBlur,
18
19
  onClick: triggerProps.onClick,
19
20
  onFocus: triggerProps.onFocus,
20
- testId: triggerProps.testId,
21
+ testId: testId,
21
22
  iconBefore: iconBefore,
22
23
  groupLocation: groupLocation,
23
24
  isDisabled: isDisabled
@@ -6,7 +6,8 @@ export const ToolbarNestedDropdownMenu = ({
6
6
  text,
7
7
  elemAfter,
8
8
  children,
9
- isDisabled
9
+ isDisabled,
10
+ testId
10
11
  }) => {
11
12
  return /*#__PURE__*/React.createElement(DropdownMenu, {
12
13
  placement: "right-start",
@@ -15,7 +16,7 @@ export const ToolbarNestedDropdownMenu = ({
15
16
  elemAfter: elemAfter,
16
17
  isSelected: triggerProps.isSelected,
17
18
  onClick: triggerProps.onClick,
18
- testId: triggerProps.testId,
19
+ testId: testId,
19
20
  triggerRef: triggerProps.triggerRef,
20
21
  hasNestedDropdownMenu: true,
21
22
  isDisabled: isDisabled
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { default as AILenghtenIcon } from '@atlaskit/icon-lab/core/text-lengthen';
2
+ export { default as AILengthenIcon } from '@atlaskit/icon-lab/core/text-lengthen';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { default as AISummarizeIcon } from '@atlaskit/icon/core/ai-generative-text-summary';
package/dist/esm/index.js CHANGED
@@ -8,8 +8,19 @@ export { ToolbarDropdownItemSection } from './ui/ToolbarDropdownItemSection';
8
8
  export { ToolbarKeyboardShortcutHint } from './ui/ToolbarKeyboardShortcutHint';
9
9
  export { ToolbarSection } from './ui/ToolbarSection';
10
10
  export { ToolbarTooltip } from './ui/ToolbarTooltip';
11
+ export { ToolbarNestedDropdownMenu } from './ui/ToolbarNestedDropdownMenu';
11
12
  export { AIAdjustLengthIcon } from './ui/icons/AIAdjustLengthIcon';
12
13
  export { AIChatIcon } from './ui/icons/AIChatIcon';
14
+ export { AIBriefcaseIcon } from './ui/icons/AIProfessionalIcon';
15
+ export { AICasualIcon } from './ui/icons/AICasualIcon';
16
+ export { AIHeartIcon } from './ui/icons/AIHeartIcon';
17
+ export { AIShortenIcon } from './ui/icons/AIShortenIcon';
18
+ export { AISpellcheckIcon } from './ui/icons/AISpellcheckIcon';
19
+ export { AIChangeToneIcon } from './ui/icons/AIChangeToneIcon';
20
+ export { AILengthenIcon } from './ui/icons/AILengthenIcon';
21
+ export { AISummarizeIcon } from './ui/icons/AISummarizeIcon';
22
+ export { AITranslateIcon } from './ui/icons/AITranslateIcon';
23
+ export { NestedDropdownRightIcon } from './ui/icons/NestedDropdownRightIcon';
13
24
  export { AICommandIcon } from './ui/icons/AICommandIcon';
14
25
  export { AddIcon } from './ui/icons/AddIcon';
15
26
  export { AppsIcon } from './ui/icons/AppsIcon';
@@ -5,7 +5,8 @@ export var ToolbarDropdownMenu = function ToolbarDropdownMenu(_ref) {
5
5
  var iconBefore = _ref.iconBefore,
6
6
  groupLocation = _ref.groupLocation,
7
7
  children = _ref.children,
8
- isDisabled = _ref.isDisabled;
8
+ isDisabled = _ref.isDisabled,
9
+ testId = _ref.testId;
9
10
  return /*#__PURE__*/React.createElement(DropdownMenu, {
10
11
  trigger: function trigger(triggerProps) {
11
12
  return /*#__PURE__*/React.createElement(ToolbarButton, {
@@ -17,7 +18,7 @@ export var ToolbarDropdownMenu = function ToolbarDropdownMenu(_ref) {
17
18
  onBlur: triggerProps.onBlur,
18
19
  onClick: triggerProps.onClick,
19
20
  onFocus: triggerProps.onFocus,
20
- testId: triggerProps.testId,
21
+ testId: testId,
21
22
  iconBefore: iconBefore,
22
23
  groupLocation: groupLocation,
23
24
  isDisabled: isDisabled
@@ -6,7 +6,8 @@ export var ToolbarNestedDropdownMenu = function ToolbarNestedDropdownMenu(_ref)
6
6
  text = _ref.text,
7
7
  elemAfter = _ref.elemAfter,
8
8
  children = _ref.children,
9
- isDisabled = _ref.isDisabled;
9
+ isDisabled = _ref.isDisabled,
10
+ testId = _ref.testId;
10
11
  return /*#__PURE__*/React.createElement(DropdownMenu, {
11
12
  placement: "right-start",
12
13
  trigger: function trigger(triggerProps) {
@@ -15,7 +16,7 @@ export var ToolbarNestedDropdownMenu = function ToolbarNestedDropdownMenu(_ref)
15
16
  elemAfter: elemAfter,
16
17
  isSelected: triggerProps.isSelected,
17
18
  onClick: triggerProps.onClick,
18
- testId: triggerProps.testId,
19
+ testId: testId,
19
20
  triggerRef: triggerProps.triggerRef,
20
21
  hasNestedDropdownMenu: true,
21
22
  isDisabled: isDisabled
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { default as AILenghtenIcon } from '@atlaskit/icon-lab/core/text-lengthen';
2
+ export { default as AILengthenIcon } from '@atlaskit/icon-lab/core/text-lengthen';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { default as AISummarizeIcon } from '@atlaskit/icon/core/ai-generative-text-summary';
@@ -7,8 +7,19 @@ export { ToolbarDropdownItemSection } from './ui/ToolbarDropdownItemSection';
7
7
  export { ToolbarKeyboardShortcutHint } from './ui/ToolbarKeyboardShortcutHint';
8
8
  export { ToolbarSection } from './ui/ToolbarSection';
9
9
  export { ToolbarTooltip } from './ui/ToolbarTooltip';
10
+ export { ToolbarNestedDropdownMenu } from './ui/ToolbarNestedDropdownMenu';
10
11
  export { AIAdjustLengthIcon } from './ui/icons/AIAdjustLengthIcon';
11
12
  export { AIChatIcon } from './ui/icons/AIChatIcon';
13
+ export { AIBriefcaseIcon } from './ui/icons/AIProfessionalIcon';
14
+ export { AICasualIcon } from './ui/icons/AICasualIcon';
15
+ export { AIHeartIcon } from './ui/icons/AIHeartIcon';
16
+ export { AIShortenIcon } from './ui/icons/AIShortenIcon';
17
+ export { AISpellcheckIcon } from './ui/icons/AISpellcheckIcon';
18
+ export { AIChangeToneIcon } from './ui/icons/AIChangeToneIcon';
19
+ export { AILengthenIcon } from './ui/icons/AILengthenIcon';
20
+ export { AISummarizeIcon } from './ui/icons/AISummarizeIcon';
21
+ export { AITranslateIcon } from './ui/icons/AITranslateIcon';
22
+ export { NestedDropdownRightIcon } from './ui/icons/NestedDropdownRightIcon';
12
23
  export { AICommandIcon } from './ui/icons/AICommandIcon';
13
24
  export { AddIcon } from './ui/icons/AddIcon';
14
25
  export { AppsIcon } from './ui/icons/AppsIcon';
@@ -3,5 +3,5 @@ type ToolbarColorSwatchProps = {
3
3
  children?: ReactNode;
4
4
  highlightColor?: string;
5
5
  };
6
- export declare const ToolbarColorSwatch: ({ children, highlightColor, }: ToolbarColorSwatchProps) => React.JSX.Element;
6
+ export declare const ToolbarColorSwatch: ({ children, highlightColor }: ToolbarColorSwatchProps) => React.JSX.Element;
7
7
  export {};
@@ -5,6 +5,7 @@ type ToolbarDropdownMenuProps = {
5
5
  children?: ReactNode;
6
6
  groupLocation?: ToolbarButtonGroupLocation;
7
7
  isDisabled?: boolean;
8
+ testId?: string;
8
9
  };
9
- export declare const ToolbarDropdownMenu: ({ iconBefore, groupLocation, children, isDisabled, }: ToolbarDropdownMenuProps) => React.JSX.Element;
10
+ export declare const ToolbarDropdownMenu: ({ iconBefore, groupLocation, children, isDisabled, testId, }: ToolbarDropdownMenuProps) => React.JSX.Element;
10
11
  export {};
@@ -5,6 +5,7 @@ type ToolbarNestedDropdownMenuProps = {
5
5
  text?: string;
6
6
  children?: ReactNode;
7
7
  isDisabled?: boolean;
8
+ testId?: string;
8
9
  };
9
- export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfter, children, isDisabled, }: ToolbarNestedDropdownMenuProps) => React.JSX.Element;
10
+ export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfter, children, isDisabled, testId, }: ToolbarNestedDropdownMenuProps) => React.JSX.Element;
10
11
  export {};
@@ -1 +1 @@
1
- export { default as AILenghtenIcon } from '@atlaskit/icon-lab/core/text-lengthen';
1
+ export { default as AILengthenIcon } from '@atlaskit/icon-lab/core/text-lengthen';
@@ -0,0 +1 @@
1
+ export { default as AISummarizeIcon } from '@atlaskit/icon/core/ai-generative-text-summary';
@@ -7,8 +7,19 @@ export { ToolbarDropdownItemSection } from './ui/ToolbarDropdownItemSection';
7
7
  export { ToolbarKeyboardShortcutHint } from './ui/ToolbarKeyboardShortcutHint';
8
8
  export { ToolbarSection } from './ui/ToolbarSection';
9
9
  export { ToolbarTooltip } from './ui/ToolbarTooltip';
10
+ export { ToolbarNestedDropdownMenu } from './ui/ToolbarNestedDropdownMenu';
10
11
  export { AIAdjustLengthIcon } from './ui/icons/AIAdjustLengthIcon';
11
12
  export { AIChatIcon } from './ui/icons/AIChatIcon';
13
+ export { AIBriefcaseIcon } from './ui/icons/AIProfessionalIcon';
14
+ export { AICasualIcon } from './ui/icons/AICasualIcon';
15
+ export { AIHeartIcon } from './ui/icons/AIHeartIcon';
16
+ export { AIShortenIcon } from './ui/icons/AIShortenIcon';
17
+ export { AISpellcheckIcon } from './ui/icons/AISpellcheckIcon';
18
+ export { AIChangeToneIcon } from './ui/icons/AIChangeToneIcon';
19
+ export { AILengthenIcon } from './ui/icons/AILengthenIcon';
20
+ export { AISummarizeIcon } from './ui/icons/AISummarizeIcon';
21
+ export { AITranslateIcon } from './ui/icons/AITranslateIcon';
22
+ export { NestedDropdownRightIcon } from './ui/icons/NestedDropdownRightIcon';
12
23
  export { AICommandIcon } from './ui/icons/AICommandIcon';
13
24
  export { AddIcon } from './ui/icons/AddIcon';
14
25
  export { AppsIcon } from './ui/icons/AppsIcon';
@@ -3,5 +3,5 @@ type ToolbarColorSwatchProps = {
3
3
  children?: ReactNode;
4
4
  highlightColor?: string;
5
5
  };
6
- export declare const ToolbarColorSwatch: ({ children, highlightColor, }: ToolbarColorSwatchProps) => React.JSX.Element;
6
+ export declare const ToolbarColorSwatch: ({ children, highlightColor }: ToolbarColorSwatchProps) => React.JSX.Element;
7
7
  export {};
@@ -5,6 +5,7 @@ type ToolbarDropdownMenuProps = {
5
5
  children?: ReactNode;
6
6
  groupLocation?: ToolbarButtonGroupLocation;
7
7
  isDisabled?: boolean;
8
+ testId?: string;
8
9
  };
9
- export declare const ToolbarDropdownMenu: ({ iconBefore, groupLocation, children, isDisabled, }: ToolbarDropdownMenuProps) => React.JSX.Element;
10
+ export declare const ToolbarDropdownMenu: ({ iconBefore, groupLocation, children, isDisabled, testId, }: ToolbarDropdownMenuProps) => React.JSX.Element;
10
11
  export {};
@@ -5,6 +5,7 @@ type ToolbarNestedDropdownMenuProps = {
5
5
  text?: string;
6
6
  children?: ReactNode;
7
7
  isDisabled?: boolean;
8
+ testId?: string;
8
9
  };
9
- export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfter, children, isDisabled, }: ToolbarNestedDropdownMenuProps) => React.JSX.Element;
10
+ export declare const ToolbarNestedDropdownMenu: ({ elemBefore, text, elemAfter, children, isDisabled, testId, }: ToolbarNestedDropdownMenuProps) => React.JSX.Element;
10
11
  export {};
@@ -1 +1 @@
1
- export { default as AILenghtenIcon } from '@atlaskit/icon-lab/core/text-lengthen';
1
+ export { default as AILengthenIcon } from '@atlaskit/icon-lab/core/text-lengthen';
@@ -0,0 +1 @@
1
+ export { default as AISummarizeIcon } from '@atlaskit/icon/core/ai-generative-text-summary';
@@ -12,7 +12,7 @@ import { AIChangeToneIcon } from '../../../src/ui/icons/AIChangeToneIcon';
12
12
  import { AIChatIcon } from '../../../src/ui/icons/AIChatIcon';
13
13
  import { AICommandIcon } from '../../../src/ui/icons/AICommandIcon';
14
14
  import { AIHeartIcon } from '../../../src/ui/icons/AIHeartIcon';
15
- import { AILenghtenIcon } from '../../../src/ui/icons/AILengthenIcon';
15
+ import { AILengthenIcon } from '../../../src/ui/icons/AILengthenIcon';
16
16
  import { AIBriefcaseIcon } from '../../../src/ui/icons/AIProfessionalIcon';
17
17
  import { AIShortenIcon } from '../../../src/ui/icons/AIShortenIcon';
18
18
  import { AISpellcheckIcon } from '../../../src/ui/icons/AISpellcheckIcon';
@@ -165,7 +165,7 @@ export const ExampleManuallyComposedToolbar = () => {
165
165
  Make shorter
166
166
  </ToolbarDropdownItem>
167
167
  <ToolbarDropdownItem
168
- elemBefore={<AILenghtenIcon label="Make longer" />}
168
+ elemBefore={<AILengthenIcon label="Make longer" />}
169
169
  onClick={onClick('Make longer')}
170
170
  >
171
171
  Make longer
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org/"
5
5
  },
6
- "version": "0.0.7",
6
+ "version": "0.0.8",
7
7
  "description": "Common UI for Toolbars across the platform",
8
8
  "atlassian": {
9
9
  "team": "Editor: Jenga",
package/src/index.ts CHANGED
@@ -8,9 +8,20 @@ export { ToolbarDropdownItemSection } from './ui/ToolbarDropdownItemSection';
8
8
  export { ToolbarKeyboardShortcutHint } from './ui/ToolbarKeyboardShortcutHint';
9
9
  export { ToolbarSection } from './ui/ToolbarSection';
10
10
  export { ToolbarTooltip } from './ui/ToolbarTooltip';
11
+ export { ToolbarNestedDropdownMenu } from './ui/ToolbarNestedDropdownMenu';
11
12
 
12
13
  export { AIAdjustLengthIcon } from './ui/icons/AIAdjustLengthIcon';
13
14
  export { AIChatIcon } from './ui/icons/AIChatIcon';
15
+ export { AIBriefcaseIcon } from './ui/icons/AIProfessionalIcon';
16
+ export { AICasualIcon } from './ui/icons/AICasualIcon';
17
+ export { AIHeartIcon } from './ui/icons/AIHeartIcon';
18
+ export { AIShortenIcon } from './ui/icons/AIShortenIcon';
19
+ export { AISpellcheckIcon } from './ui/icons/AISpellcheckIcon';
20
+ export { AIChangeToneIcon } from './ui/icons/AIChangeToneIcon';
21
+ export { AILengthenIcon } from './ui/icons/AILengthenIcon';
22
+ export { AISummarizeIcon } from './ui/icons/AISummarizeIcon';
23
+ export { AITranslateIcon } from './ui/icons/AITranslateIcon';
24
+ export { NestedDropdownRightIcon } from './ui/icons/NestedDropdownRightIcon';
14
25
  export { AICommandIcon } from './ui/icons/AICommandIcon';
15
26
  export { AddIcon } from './ui/icons/AddIcon';
16
27
  export { AppsIcon } from './ui/icons/AppsIcon';
@@ -23,10 +23,7 @@ const styles = cssMap({
23
23
  },
24
24
  });
25
25
 
26
- export const ToolbarColorSwatch = ({
27
- children,
28
- highlightColor,
29
- }: ToolbarColorSwatchProps) => {
26
+ export const ToolbarColorSwatch = ({ children, highlightColor }: ToolbarColorSwatchProps) => {
30
27
  return (
31
28
  <Box
32
29
  xcss={styles.colorSwatch}
@@ -11,6 +11,7 @@ type ToolbarDropdownMenuProps = {
11
11
  children?: ReactNode;
12
12
  groupLocation?: ToolbarButtonGroupLocation;
13
13
  isDisabled?: boolean;
14
+ testId?: string;
14
15
  };
15
16
 
16
17
  export const ToolbarDropdownMenu = ({
@@ -18,6 +19,7 @@ export const ToolbarDropdownMenu = ({
18
19
  groupLocation,
19
20
  children,
20
21
  isDisabled,
22
+ testId,
21
23
  }: ToolbarDropdownMenuProps) => {
22
24
  return (
23
25
  <DropdownMenu<HTMLButtonElement>
@@ -31,7 +33,7 @@ export const ToolbarDropdownMenu = ({
31
33
  onBlur={triggerProps.onBlur}
32
34
  onClick={triggerProps.onClick}
33
35
  onFocus={triggerProps.onFocus}
34
- testId={triggerProps.testId}
36
+ testId={testId}
35
37
  iconBefore={iconBefore}
36
38
  groupLocation={groupLocation}
37
39
  isDisabled={isDisabled}
@@ -10,6 +10,7 @@ type ToolbarNestedDropdownMenuProps = {
10
10
  text?: string;
11
11
  children?: ReactNode;
12
12
  isDisabled?: boolean;
13
+ testId?: string;
13
14
  };
14
15
 
15
16
  export const ToolbarNestedDropdownMenu = ({
@@ -18,6 +19,7 @@ export const ToolbarNestedDropdownMenu = ({
18
19
  elemAfter,
19
20
  children,
20
21
  isDisabled,
22
+ testId,
21
23
  }: ToolbarNestedDropdownMenuProps) => {
22
24
  return (
23
25
  <DropdownMenu<HTMLButtonElement>
@@ -28,7 +30,7 @@ export const ToolbarNestedDropdownMenu = ({
28
30
  elemAfter={elemAfter}
29
31
  isSelected={triggerProps.isSelected}
30
32
  onClick={triggerProps.onClick}
31
- testId={triggerProps.testId}
33
+ testId={testId}
32
34
  triggerRef={triggerProps.triggerRef}
33
35
  hasNestedDropdownMenu={true}
34
36
  isDisabled={isDisabled}
@@ -1,2 +1,2 @@
1
1
  /* eslint-disable @atlaskit/editor/no-re-export */
2
- export { default as AILenghtenIcon } from '@atlaskit/icon-lab/core/text-lengthen';
2
+ export { default as AILengthenIcon } from '@atlaskit/icon-lab/core/text-lengthen';
@@ -0,0 +1,2 @@
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ export { default as AISummarizeIcon } from '@atlaskit/icon/core/ai-generative-text-summary';