@atlaskit/editor-common 107.17.0 → 107.18.1

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 (41) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/cjs/element-browser/components/ElementList/ElementList.js +9 -4
  3. package/dist/cjs/element-browser/components/StatelessElementBrowser.js +5 -2
  4. package/dist/cjs/element-browser/constants.js +3 -2
  5. package/dist/cjs/monitoring/error.js +1 -1
  6. package/dist/cjs/toolbar/context.js +32 -0
  7. package/dist/cjs/toolbar/index.js +299 -9
  8. package/dist/cjs/toolbar/keys.js +193 -0
  9. package/dist/cjs/toolbar/rank.js +36 -37
  10. package/dist/cjs/ui/DropList/index.js +1 -1
  11. package/dist/es2019/element-browser/components/ElementList/ElementList.js +9 -4
  12. package/dist/es2019/element-browser/components/StatelessElementBrowser.js +6 -3
  13. package/dist/es2019/element-browser/constants.js +2 -1
  14. package/dist/es2019/monitoring/error.js +1 -1
  15. package/dist/es2019/toolbar/context.js +25 -0
  16. package/dist/es2019/toolbar/index.js +3 -1
  17. package/dist/es2019/toolbar/keys.js +187 -0
  18. package/dist/es2019/toolbar/rank.js +77 -26
  19. package/dist/es2019/ui/DropList/index.js +1 -1
  20. package/dist/esm/element-browser/components/ElementList/ElementList.js +9 -4
  21. package/dist/esm/element-browser/components/StatelessElementBrowser.js +6 -3
  22. package/dist/esm/element-browser/constants.js +2 -1
  23. package/dist/esm/monitoring/error.js +1 -1
  24. package/dist/esm/toolbar/context.js +24 -0
  25. package/dist/esm/toolbar/index.js +3 -1
  26. package/dist/esm/toolbar/keys.js +187 -0
  27. package/dist/esm/toolbar/rank.js +34 -36
  28. package/dist/esm/ui/DropList/index.js +1 -1
  29. package/dist/types/element-browser/components/ElementList/ElementList.d.ts +2 -1
  30. package/dist/types/element-browser/constants.d.ts +1 -0
  31. package/dist/types/toolbar/context.d.ts +14 -0
  32. package/dist/types/toolbar/index.d.ts +3 -1
  33. package/dist/types/toolbar/keys.d.ts +173 -0
  34. package/dist/types/toolbar/rank.d.ts +72 -26
  35. package/dist/types-ts4.5/element-browser/components/ElementList/ElementList.d.ts +2 -1
  36. package/dist/types-ts4.5/element-browser/constants.d.ts +1 -0
  37. package/dist/types-ts4.5/toolbar/context.d.ts +14 -0
  38. package/dist/types-ts4.5/toolbar/index.d.ts +3 -1
  39. package/dist/types-ts4.5/toolbar/keys.d.ts +173 -0
  40. package/dist/types-ts4.5/toolbar/rank.d.ts +72 -26
  41. package/package.json +8 -9
@@ -0,0 +1,173 @@
1
+ export declare const TOOLBARS: {
2
+ readonly INLINE_TEXT_TOOLBAR: "inline-text-toolbar";
3
+ };
4
+ /**
5
+ * AI section
6
+ */
7
+ export declare const AI_SECTION: {
8
+ readonly key: "ai-section";
9
+ readonly type: "section";
10
+ };
11
+ export declare const ROVO_GROUP: {
12
+ readonly key: "rovo-group";
13
+ readonly type: "group";
14
+ };
15
+ export declare const IMPROVE_WRITING_GROUP: {
16
+ readonly key: "improve-writing-group";
17
+ readonly type: "group";
18
+ };
19
+ export declare const IMPROVE_WRITING_BUTTON: {
20
+ readonly key: "improve-writing-button";
21
+ readonly type: "button";
22
+ };
23
+ export declare const ROVO_HERO_BUTTON: {
24
+ readonly key: "rovo-hero-button";
25
+ readonly type: "button";
26
+ };
27
+ export declare const ROVO_MENU: {
28
+ readonly key: "rovo-menu";
29
+ readonly type: "menu";
30
+ };
31
+ export declare const ROVO_PROMPT_MENU_SECTION: {
32
+ readonly key: "rovo-prompt-menu-section";
33
+ readonly type: "menu-section";
34
+ };
35
+ export declare const MAKE_SHORTER_MENU_ITEM: {
36
+ readonly key: "make-shorter-menu-item";
37
+ readonly type: "menu-item";
38
+ };
39
+ export declare const MAKE_LONGER_MENU_ITEM: {
40
+ readonly key: "make-longer-menu-item";
41
+ readonly type: "menu-item";
42
+ };
43
+ export declare const CHANGE_TONE_NESTED_MENU: {
44
+ readonly key: "change-tone-nested-menu";
45
+ readonly type: "nested-menu";
46
+ };
47
+ export declare const SPELLING_AND_GRAMMAR_MENU_ITEM: {
48
+ readonly key: "spelling-and-grammar-menu-item";
49
+ readonly type: "menu-item";
50
+ };
51
+ export declare const SUMMARIZE_MENU_ITEM: {
52
+ readonly key: "summarize-menu-item";
53
+ readonly type: "menu-item";
54
+ };
55
+ export declare const CHANGE_TONE_MENU_SECTION: {
56
+ readonly key: "change-tone-default-menu-section";
57
+ readonly type: "menu-section";
58
+ };
59
+ export declare const MORE_PROFESSIONAL_MENU_ITEM: {
60
+ readonly key: "more-professional-menu-item";
61
+ readonly type: "menu-item";
62
+ };
63
+ export declare const MORE_CASUAL_MENU_ITEM: {
64
+ readonly key: "more-casual-menu-item";
65
+ readonly type: "menu-item";
66
+ };
67
+ export declare const MORE_EMPATHETIC_MENU_ITEM: {
68
+ readonly key: "more-empathetic-menu-item";
69
+ readonly type: "menu-item";
70
+ };
71
+ export declare const TRANSLATE_NESTED_MENU: {
72
+ readonly key: "translate-nested-menu";
73
+ readonly type: "nested-menu";
74
+ };
75
+ export declare const TRANSLATE_MENU_SECTION: {
76
+ readonly key: "translate-menu-section";
77
+ readonly type: "menu-section";
78
+ };
79
+ /**
80
+ * Text section
81
+ */
82
+ export declare const TEXT_SECTION: {
83
+ readonly key: "text-section";
84
+ readonly type: "section";
85
+ };
86
+ /**
87
+ * Text formatting group
88
+ */
89
+ export declare const TEXT_FORMATTING_GROUP: {
90
+ readonly key: "text-formatting-group";
91
+ readonly type: "group";
92
+ };
93
+ export declare const TEXT_FORMATTING_HERO_BUTTON: {
94
+ readonly key: "text-formatting-hero-button";
95
+ readonly type: "button";
96
+ };
97
+ export declare const TEXT_FORMATTING_MENU: {
98
+ readonly key: "text-formatting-menu";
99
+ readonly type: "menu";
100
+ };
101
+ export declare const BOLD_MENU_ITEM: {
102
+ readonly key: "bold-menu-item";
103
+ readonly type: "menu-item";
104
+ };
105
+ export declare const ITALIC_MENU_ITEM: {
106
+ readonly key: "italic-menu-item";
107
+ readonly type: "menu-item";
108
+ };
109
+ export declare const UNDERLINE_MENU_ITEM: {
110
+ readonly key: "underline-menu-item";
111
+ readonly type: "menu-item";
112
+ };
113
+ export declare const STRIKE_MENU_ITEM: {
114
+ readonly key: "strike-menu-item";
115
+ readonly type: "menu-item";
116
+ };
117
+ export declare const CODE_MENU_ITEM: {
118
+ readonly key: "code-menu-item";
119
+ readonly type: "menu-item";
120
+ };
121
+ export declare const SUBSCRIPT_MENU_ITEM: {
122
+ readonly key: "subscript-menu-item";
123
+ readonly type: "menu-item";
124
+ };
125
+ export declare const SUPERSCRIPT_MENU_ITEM: {
126
+ readonly key: "superscript-menu-item";
127
+ readonly type: "menu-item";
128
+ };
129
+ export declare const TEXT_FORMATTING_MENU_SECTION: {
130
+ readonly key: "text-formatting-menu-section";
131
+ readonly type: "menu-section";
132
+ };
133
+ export declare const CLEAR_FORMARTTING_MENU_SECTION: {
134
+ readonly key: "clear-formatting-menu-section";
135
+ readonly type: "menu-section";
136
+ };
137
+ export declare const CLEAR_FORMATTING_MENU_ITEM: {
138
+ readonly key: "clear-formatting-menu-item";
139
+ readonly type: "menu-item";
140
+ };
141
+ export declare const LINKING_SECTION: {
142
+ readonly key: "linking-section";
143
+ readonly type: "section";
144
+ };
145
+ /**
146
+ * Collab section
147
+ */
148
+ export declare const COLLAB_SECTION: {
149
+ readonly key: "collab-section";
150
+ readonly type: "section";
151
+ };
152
+ export declare const COMMENT_GROUP: {
153
+ readonly key: "comment-group";
154
+ readonly type: "group";
155
+ };
156
+ export declare const COMMENT_HERO_BUTTON: {
157
+ readonly key: "comment-hero-button";
158
+ readonly type: "button";
159
+ };
160
+ /**
161
+ * Apps section
162
+ */
163
+ export declare const APPS_SECTION: {
164
+ readonly key: "apps-section";
165
+ readonly type: "section";
166
+ };
167
+ /**
168
+ * Overflow section
169
+ */
170
+ export declare const OVERFLOW_SECTION: {
171
+ readonly key: "overflow-section";
172
+ readonly type: "section";
173
+ };
@@ -1,36 +1,82 @@
1
1
  export declare const TOOLBAR_RANK: {
2
- AI: number;
2
+ readonly "ai-section": 100;
3
+ readonly "text-section": 200;
4
+ readonly "linking-section": 300;
5
+ readonly "collab-section": 400;
6
+ readonly "apps-section": 500;
7
+ readonly "overflow-section": 600;
3
8
  };
9
+ /**
10
+ * AI section
11
+ */
4
12
  export declare const AI_SECTION_RANK: {
5
- ROVO: number;
6
- IMPROVE_WRITING: number;
13
+ "rovo-group": number;
14
+ "improve-writing-group": number;
7
15
  };
8
16
  export declare const ROVO_GROUP_RANK: {
9
- ROVO_BUTTON: number;
10
- ROVO_MENU: number;
17
+ "rovo-hero-button": number;
18
+ "rovo-menu": number;
11
19
  };
12
20
  export declare const IMPROVE_WRITING_GROUP_RANK: {
13
- IMPROVE_WRITING: number;
21
+ "improve-writing-button": number;
14
22
  };
15
23
  export declare const ROVO_MENU_RANK: {
16
- OPTIONS: number;
17
- };
18
- export declare const ROVO_MENU_SECTION_RANK: {
19
- MAKE_SHORTER: number;
20
- MAKE_LONGER: number;
21
- CHANGE_TONE: number;
22
- SPELLING_AND_GRAMMAR: number;
23
- TRANSLATE: number;
24
- SUMMARIZE: number;
25
- };
26
- export declare const ROVO_CHANGE_TONE_MENU_RANK: {
27
- OPTIONS: number;
28
- };
29
- export declare const ROVO_CHANGE_TONE_MENU_SECTION_RANK: {
30
- MORE_PROFESSIONAL: number;
31
- MORE_CASUAL: number;
32
- MORE_EMPATHETIC: number;
33
- };
34
- export declare const ROVO_TRANSLATE_MENU_RANK: {
35
- OPTIONS: number;
24
+ "rovo-prompt-menu-section": number;
25
+ };
26
+ export declare const ROVO_PROMPT_MENU_SECTION_RANK: {
27
+ "make-shorter-menu-item": number;
28
+ "make-longer-menu-item": number;
29
+ "change-tone-nested-menu": number;
30
+ "spelling-and-grammar-menu-item": number;
31
+ "translate-nested-menu": number;
32
+ "summarize-menu-item": number;
33
+ };
34
+ export declare const CHANGE_TONE_MENU_RANK: {
35
+ "change-tone-default-menu-section": number;
36
+ };
37
+ export declare const CHANGE_TONE_MENU_SECTION_RANK: {
38
+ "more-professional-menu-item": number;
39
+ "more-casual-menu-item": number;
40
+ "more-empathetic-menu-item": number;
41
+ };
42
+ export declare const TRANSLATE_MENU_RANK: {
43
+ "translate-menu-section": number;
44
+ };
45
+ /**
46
+ * Text section
47
+ */
48
+ export declare const TEXT_SECTION_RANK: {
49
+ "text-formatting-group": number;
50
+ };
51
+ /**
52
+ * Text formatting group
53
+ */
54
+ export declare const TEXT_FORMAT_GROUP_RANK: {
55
+ "text-formatting-hero-button": number;
56
+ "text-formatting-menu": number;
57
+ };
58
+ export declare const TEXT_FORMAT_MENU_RANK: {
59
+ "text-formatting-menu-section": number;
60
+ "clear-formatting-menu-section": number;
61
+ };
62
+ export declare const TEXT_FORMATTING_MENU_SECTION_RANK: {
63
+ "bold-menu-item": number;
64
+ "italic-menu-item": number;
65
+ "underline-menu-item": number;
66
+ "strike-menu-item": number;
67
+ "code-menu-item": number;
68
+ "subscript-menu-item": number;
69
+ "superscript-menu-item": number;
70
+ };
71
+ export declare const CLEAR_FORMARTTING_MENU_SECTION_RANK: {
72
+ "clear-formatting-menu-item": number;
73
+ };
74
+ /**
75
+ * Collab section
76
+ */
77
+ export declare const COLLAB_SECTION_RANK: {
78
+ "comment-group": number;
79
+ };
80
+ export declare const COMMENT_GROUP_RANK: {
81
+ "comment-hero-button": number;
36
82
  };
@@ -36,7 +36,8 @@ type ElementItemType = {
36
36
  focus: boolean;
37
37
  setFocusedItemIndex: (index: number) => void;
38
38
  index: number;
39
+ role?: string;
39
40
  };
40
- export declare function ElementItem({ inlineMode, selected, item, index, onInsertItem, focus, setFocusedItemIndex, }: ElementItemType): jsx.JSX.Element;
41
+ export declare function ElementItem({ inlineMode, selected, item, index, onInsertItem, focus, setFocusedItemIndex, role, }: ElementItemType): jsx.JSX.Element;
41
42
  declare const MemoizedElementListWithAnalytics: React.MemoExoticComponent<React.ForwardRefExoticComponent<Omit<Props & SelectedItemProps & WithAnalyticsEventsProps & import("@atlaskit/analytics-next").WithContextProps, "ref"> & React.RefAttributes<any>>>;
42
43
  export default MemoizedElementListWithAnalytics;
@@ -19,3 +19,4 @@ export declare const ELEMENT_LIST_PADDING = 2;
19
19
  export declare const ELEMENT_ITEM_HEIGHT = 60;
20
20
  export declare const ELEMENT_ITEM_PADDING = 10;
21
21
  export declare const ELEMENT_BROWSER_ID = "editor-element-browser";
22
+ export declare const ELEMENT_BROWSER_LIST_ID = "editor-element-browser-list";
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
+ type EditorToolbarContextType = {
4
+ editorView: EditorView | null;
5
+ };
6
+ /**
7
+ * Access editor specific config and state within a toolbar component
8
+ */
9
+ export declare const useEditorToolbar: () => EditorToolbarContextType;
10
+ type EditorToolbarProviderProps = {
11
+ children: React.ReactNode;
12
+ } & EditorToolbarContextType;
13
+ export declare const EditorToolbarProvider: ({ children, editorView }: EditorToolbarProviderProps) => React.JSX.Element;
14
+ export {};
@@ -1 +1,3 @@
1
- export { TOOLBAR_RANK, AI_SECTION_RANK, ROVO_GROUP_RANK, IMPROVE_WRITING_GROUP_RANK, ROVO_MENU_RANK, ROVO_MENU_SECTION_RANK, ROVO_CHANGE_TONE_MENU_RANK, ROVO_CHANGE_TONE_MENU_SECTION_RANK, ROVO_TRANSLATE_MENU_RANK, } from './rank';
1
+ export { TOOLBAR_RANK, AI_SECTION_RANK, ROVO_GROUP_RANK, IMPROVE_WRITING_GROUP_RANK, ROVO_MENU_RANK, ROVO_PROMPT_MENU_SECTION_RANK, CHANGE_TONE_MENU_RANK, CHANGE_TONE_MENU_SECTION_RANK, TRANSLATE_MENU_RANK, COLLAB_SECTION_RANK, COMMENT_GROUP_RANK, TEXT_SECTION_RANK, TEXT_FORMAT_GROUP_RANK, TEXT_FORMAT_MENU_RANK, TEXT_FORMATTING_MENU_SECTION_RANK, CLEAR_FORMARTTING_MENU_SECTION_RANK, } from './rank';
2
+ export { TOOLBARS, AI_SECTION, ROVO_GROUP, IMPROVE_WRITING_GROUP, IMPROVE_WRITING_BUTTON, ROVO_HERO_BUTTON, ROVO_MENU, ROVO_PROMPT_MENU_SECTION, MAKE_SHORTER_MENU_ITEM, MAKE_LONGER_MENU_ITEM, CHANGE_TONE_NESTED_MENU, SPELLING_AND_GRAMMAR_MENU_ITEM, SUMMARIZE_MENU_ITEM, CHANGE_TONE_MENU_SECTION, MORE_PROFESSIONAL_MENU_ITEM, MORE_CASUAL_MENU_ITEM, MORE_EMPATHETIC_MENU_ITEM, TRANSLATE_NESTED_MENU, TRANSLATE_MENU_SECTION, TEXT_SECTION, TEXT_FORMATTING_GROUP, TEXT_FORMATTING_HERO_BUTTON, TEXT_FORMATTING_MENU, TEXT_FORMATTING_MENU_SECTION, BOLD_MENU_ITEM, ITALIC_MENU_ITEM, UNDERLINE_MENU_ITEM, STRIKE_MENU_ITEM, CODE_MENU_ITEM, SUBSCRIPT_MENU_ITEM, SUPERSCRIPT_MENU_ITEM, CLEAR_FORMARTTING_MENU_SECTION, CLEAR_FORMATTING_MENU_ITEM, LINKING_SECTION, COLLAB_SECTION, COMMENT_GROUP, COMMENT_HERO_BUTTON, APPS_SECTION, OVERFLOW_SECTION, } from './keys';
3
+ export { useEditorToolbar, EditorToolbarProvider } from './context';
@@ -0,0 +1,173 @@
1
+ export declare const TOOLBARS: {
2
+ readonly INLINE_TEXT_TOOLBAR: "inline-text-toolbar";
3
+ };
4
+ /**
5
+ * AI section
6
+ */
7
+ export declare const AI_SECTION: {
8
+ readonly key: "ai-section";
9
+ readonly type: "section";
10
+ };
11
+ export declare const ROVO_GROUP: {
12
+ readonly key: "rovo-group";
13
+ readonly type: "group";
14
+ };
15
+ export declare const IMPROVE_WRITING_GROUP: {
16
+ readonly key: "improve-writing-group";
17
+ readonly type: "group";
18
+ };
19
+ export declare const IMPROVE_WRITING_BUTTON: {
20
+ readonly key: "improve-writing-button";
21
+ readonly type: "button";
22
+ };
23
+ export declare const ROVO_HERO_BUTTON: {
24
+ readonly key: "rovo-hero-button";
25
+ readonly type: "button";
26
+ };
27
+ export declare const ROVO_MENU: {
28
+ readonly key: "rovo-menu";
29
+ readonly type: "menu";
30
+ };
31
+ export declare const ROVO_PROMPT_MENU_SECTION: {
32
+ readonly key: "rovo-prompt-menu-section";
33
+ readonly type: "menu-section";
34
+ };
35
+ export declare const MAKE_SHORTER_MENU_ITEM: {
36
+ readonly key: "make-shorter-menu-item";
37
+ readonly type: "menu-item";
38
+ };
39
+ export declare const MAKE_LONGER_MENU_ITEM: {
40
+ readonly key: "make-longer-menu-item";
41
+ readonly type: "menu-item";
42
+ };
43
+ export declare const CHANGE_TONE_NESTED_MENU: {
44
+ readonly key: "change-tone-nested-menu";
45
+ readonly type: "nested-menu";
46
+ };
47
+ export declare const SPELLING_AND_GRAMMAR_MENU_ITEM: {
48
+ readonly key: "spelling-and-grammar-menu-item";
49
+ readonly type: "menu-item";
50
+ };
51
+ export declare const SUMMARIZE_MENU_ITEM: {
52
+ readonly key: "summarize-menu-item";
53
+ readonly type: "menu-item";
54
+ };
55
+ export declare const CHANGE_TONE_MENU_SECTION: {
56
+ readonly key: "change-tone-default-menu-section";
57
+ readonly type: "menu-section";
58
+ };
59
+ export declare const MORE_PROFESSIONAL_MENU_ITEM: {
60
+ readonly key: "more-professional-menu-item";
61
+ readonly type: "menu-item";
62
+ };
63
+ export declare const MORE_CASUAL_MENU_ITEM: {
64
+ readonly key: "more-casual-menu-item";
65
+ readonly type: "menu-item";
66
+ };
67
+ export declare const MORE_EMPATHETIC_MENU_ITEM: {
68
+ readonly key: "more-empathetic-menu-item";
69
+ readonly type: "menu-item";
70
+ };
71
+ export declare const TRANSLATE_NESTED_MENU: {
72
+ readonly key: "translate-nested-menu";
73
+ readonly type: "nested-menu";
74
+ };
75
+ export declare const TRANSLATE_MENU_SECTION: {
76
+ readonly key: "translate-menu-section";
77
+ readonly type: "menu-section";
78
+ };
79
+ /**
80
+ * Text section
81
+ */
82
+ export declare const TEXT_SECTION: {
83
+ readonly key: "text-section";
84
+ readonly type: "section";
85
+ };
86
+ /**
87
+ * Text formatting group
88
+ */
89
+ export declare const TEXT_FORMATTING_GROUP: {
90
+ readonly key: "text-formatting-group";
91
+ readonly type: "group";
92
+ };
93
+ export declare const TEXT_FORMATTING_HERO_BUTTON: {
94
+ readonly key: "text-formatting-hero-button";
95
+ readonly type: "button";
96
+ };
97
+ export declare const TEXT_FORMATTING_MENU: {
98
+ readonly key: "text-formatting-menu";
99
+ readonly type: "menu";
100
+ };
101
+ export declare const BOLD_MENU_ITEM: {
102
+ readonly key: "bold-menu-item";
103
+ readonly type: "menu-item";
104
+ };
105
+ export declare const ITALIC_MENU_ITEM: {
106
+ readonly key: "italic-menu-item";
107
+ readonly type: "menu-item";
108
+ };
109
+ export declare const UNDERLINE_MENU_ITEM: {
110
+ readonly key: "underline-menu-item";
111
+ readonly type: "menu-item";
112
+ };
113
+ export declare const STRIKE_MENU_ITEM: {
114
+ readonly key: "strike-menu-item";
115
+ readonly type: "menu-item";
116
+ };
117
+ export declare const CODE_MENU_ITEM: {
118
+ readonly key: "code-menu-item";
119
+ readonly type: "menu-item";
120
+ };
121
+ export declare const SUBSCRIPT_MENU_ITEM: {
122
+ readonly key: "subscript-menu-item";
123
+ readonly type: "menu-item";
124
+ };
125
+ export declare const SUPERSCRIPT_MENU_ITEM: {
126
+ readonly key: "superscript-menu-item";
127
+ readonly type: "menu-item";
128
+ };
129
+ export declare const TEXT_FORMATTING_MENU_SECTION: {
130
+ readonly key: "text-formatting-menu-section";
131
+ readonly type: "menu-section";
132
+ };
133
+ export declare const CLEAR_FORMARTTING_MENU_SECTION: {
134
+ readonly key: "clear-formatting-menu-section";
135
+ readonly type: "menu-section";
136
+ };
137
+ export declare const CLEAR_FORMATTING_MENU_ITEM: {
138
+ readonly key: "clear-formatting-menu-item";
139
+ readonly type: "menu-item";
140
+ };
141
+ export declare const LINKING_SECTION: {
142
+ readonly key: "linking-section";
143
+ readonly type: "section";
144
+ };
145
+ /**
146
+ * Collab section
147
+ */
148
+ export declare const COLLAB_SECTION: {
149
+ readonly key: "collab-section";
150
+ readonly type: "section";
151
+ };
152
+ export declare const COMMENT_GROUP: {
153
+ readonly key: "comment-group";
154
+ readonly type: "group";
155
+ };
156
+ export declare const COMMENT_HERO_BUTTON: {
157
+ readonly key: "comment-hero-button";
158
+ readonly type: "button";
159
+ };
160
+ /**
161
+ * Apps section
162
+ */
163
+ export declare const APPS_SECTION: {
164
+ readonly key: "apps-section";
165
+ readonly type: "section";
166
+ };
167
+ /**
168
+ * Overflow section
169
+ */
170
+ export declare const OVERFLOW_SECTION: {
171
+ readonly key: "overflow-section";
172
+ readonly type: "section";
173
+ };
@@ -1,36 +1,82 @@
1
1
  export declare const TOOLBAR_RANK: {
2
- AI: number;
2
+ readonly "ai-section": 100;
3
+ readonly "text-section": 200;
4
+ readonly "linking-section": 300;
5
+ readonly "collab-section": 400;
6
+ readonly "apps-section": 500;
7
+ readonly "overflow-section": 600;
3
8
  };
9
+ /**
10
+ * AI section
11
+ */
4
12
  export declare const AI_SECTION_RANK: {
5
- ROVO: number;
6
- IMPROVE_WRITING: number;
13
+ "rovo-group": number;
14
+ "improve-writing-group": number;
7
15
  };
8
16
  export declare const ROVO_GROUP_RANK: {
9
- ROVO_BUTTON: number;
10
- ROVO_MENU: number;
17
+ "rovo-hero-button": number;
18
+ "rovo-menu": number;
11
19
  };
12
20
  export declare const IMPROVE_WRITING_GROUP_RANK: {
13
- IMPROVE_WRITING: number;
21
+ "improve-writing-button": number;
14
22
  };
15
23
  export declare const ROVO_MENU_RANK: {
16
- OPTIONS: number;
17
- };
18
- export declare const ROVO_MENU_SECTION_RANK: {
19
- MAKE_SHORTER: number;
20
- MAKE_LONGER: number;
21
- CHANGE_TONE: number;
22
- SPELLING_AND_GRAMMAR: number;
23
- TRANSLATE: number;
24
- SUMMARIZE: number;
25
- };
26
- export declare const ROVO_CHANGE_TONE_MENU_RANK: {
27
- OPTIONS: number;
28
- };
29
- export declare const ROVO_CHANGE_TONE_MENU_SECTION_RANK: {
30
- MORE_PROFESSIONAL: number;
31
- MORE_CASUAL: number;
32
- MORE_EMPATHETIC: number;
33
- };
34
- export declare const ROVO_TRANSLATE_MENU_RANK: {
35
- OPTIONS: number;
24
+ "rovo-prompt-menu-section": number;
25
+ };
26
+ export declare const ROVO_PROMPT_MENU_SECTION_RANK: {
27
+ "make-shorter-menu-item": number;
28
+ "make-longer-menu-item": number;
29
+ "change-tone-nested-menu": number;
30
+ "spelling-and-grammar-menu-item": number;
31
+ "translate-nested-menu": number;
32
+ "summarize-menu-item": number;
33
+ };
34
+ export declare const CHANGE_TONE_MENU_RANK: {
35
+ "change-tone-default-menu-section": number;
36
+ };
37
+ export declare const CHANGE_TONE_MENU_SECTION_RANK: {
38
+ "more-professional-menu-item": number;
39
+ "more-casual-menu-item": number;
40
+ "more-empathetic-menu-item": number;
41
+ };
42
+ export declare const TRANSLATE_MENU_RANK: {
43
+ "translate-menu-section": number;
44
+ };
45
+ /**
46
+ * Text section
47
+ */
48
+ export declare const TEXT_SECTION_RANK: {
49
+ "text-formatting-group": number;
50
+ };
51
+ /**
52
+ * Text formatting group
53
+ */
54
+ export declare const TEXT_FORMAT_GROUP_RANK: {
55
+ "text-formatting-hero-button": number;
56
+ "text-formatting-menu": number;
57
+ };
58
+ export declare const TEXT_FORMAT_MENU_RANK: {
59
+ "text-formatting-menu-section": number;
60
+ "clear-formatting-menu-section": number;
61
+ };
62
+ export declare const TEXT_FORMATTING_MENU_SECTION_RANK: {
63
+ "bold-menu-item": number;
64
+ "italic-menu-item": number;
65
+ "underline-menu-item": number;
66
+ "strike-menu-item": number;
67
+ "code-menu-item": number;
68
+ "subscript-menu-item": number;
69
+ "superscript-menu-item": number;
70
+ };
71
+ export declare const CLEAR_FORMARTTING_MENU_SECTION_RANK: {
72
+ "clear-formatting-menu-item": number;
73
+ };
74
+ /**
75
+ * Collab section
76
+ */
77
+ export declare const COLLAB_SECTION_RANK: {
78
+ "comment-group": number;
79
+ };
80
+ export declare const COMMENT_GROUP_RANK: {
81
+ "comment-hero-button": number;
36
82
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "107.17.0",
3
+ "version": "107.18.1",
4
4
  "description": "A package that contains common classes and components for editor and renderer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -109,6 +109,7 @@
109
109
  "./intl-error-boundary": "./src/ui/IntlErrorBoundary/index.tsx",
110
110
  "./code-block": "./src/code-block/index.ts",
111
111
  "./table": "./src/table/index.ts",
112
+ "./toolbar": "./src/toolbar/index.ts",
112
113
  "./user-preferences": "./src/user-preferences/index.ts",
113
114
  "./use-plugin-state-effect": "./src/hooks/usePluginStateEffect.ts",
114
115
  "./use-shared-plugin-state-selector": "./src/hooks/useSharedPluginStateSelector/index.ts",
@@ -119,8 +120,7 @@
119
120
  "./ugc-tokens": "./src/ugc-tokens/index.ts",
120
121
  "./get-dom-ref-from-selection": "./src/utils/get-dom-ref-from-selection.ts",
121
122
  "./ncs-step-metrics": "./src/ncs-step-metrics/index.ts",
122
- "./toolbar-flag-check": "./src/toolbar-flag-check.ts",
123
- "./toolbar": "./src/toolbar/index.ts"
123
+ "./toolbar-flag-check": "./src/toolbar-flag-check.ts"
124
124
  },
125
125
  "dependencies": {
126
126
  "@atlaskit/activity-provider": "^2.5.0",
@@ -142,12 +142,12 @@
142
142
  "@atlaskit/editor-shared-styles": "^3.5.0",
143
143
  "@atlaskit/editor-tables": "^2.9.0",
144
144
  "@atlaskit/emoji": "^69.3.0",
145
- "@atlaskit/icon": "^27.9.0",
145
+ "@atlaskit/icon": "^27.10.0",
146
146
  "@atlaskit/icon-object": "^7.2.0",
147
147
  "@atlaskit/link": "^3.2.0",
148
148
  "@atlaskit/link-datasource": "^4.19.0",
149
149
  "@atlaskit/link-picker": "^3.9.0",
150
- "@atlaskit/media-card": "^79.4.0",
150
+ "@atlaskit/media-card": "^79.5.0",
151
151
  "@atlaskit/media-client": "^35.2.0",
152
152
  "@atlaskit/media-client-react": "^4.1.0",
153
153
  "@atlaskit/media-common": "^12.3.0",
@@ -163,7 +163,7 @@
163
163
  "@atlaskit/popper": "^7.1.0",
164
164
  "@atlaskit/primitives": "^14.11.0",
165
165
  "@atlaskit/profilecard": "^24.1.0",
166
- "@atlaskit/react-ufo": "^4.1.0",
166
+ "@atlaskit/react-ufo": "^4.2.0",
167
167
  "@atlaskit/section-message": "^8.5.0",
168
168
  "@atlaskit/smart-card": "^40.7.0",
169
169
  "@atlaskit/smart-user-picker": "^8.0.0",
@@ -172,7 +172,7 @@
172
172
  "@atlaskit/task-decision": "^19.2.0",
173
173
  "@atlaskit/textfield": "^8.0.0",
174
174
  "@atlaskit/theme": "^19.0.0",
175
- "@atlaskit/tmp-editor-statsig": "^9.24.0",
175
+ "@atlaskit/tmp-editor-statsig": "^9.25.0",
176
176
  "@atlaskit/tokens": "^6.0.0",
177
177
  "@atlaskit/tooltip": "^20.4.0",
178
178
  "@atlaskit/width-detector": "^5.0.0",
@@ -228,8 +228,7 @@
228
228
  "raf-stub": "^2.0.1",
229
229
  "react": "^18.2.0",
230
230
  "react-test-renderer": "^18.2.0",
231
- "sinon": "^2.2.0",
232
- "typescript": "~5.4.2"
231
+ "sinon": "^2.2.0"
233
232
  },
234
233
  "techstack": {
235
234
  "@atlassian/frontend": {