@atlaskit/editor-common 117.1.0 → 117.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/messages/avatar-group.js +5 -0
  3. package/dist/cjs/messages/syncBlock.js +5 -0
  4. package/dist/cjs/monitoring/error.js +1 -1
  5. package/dist/cjs/quick-insert/QuickInsertMenuItem.compiled.css +18 -0
  6. package/dist/cjs/quick-insert/QuickInsertMenuItem.js +63 -0
  7. package/dist/cjs/quick-insert/QuickInsertMenuRoot.js +13 -0
  8. package/dist/cjs/quick-insert/QuickInsertMenuSection.js +16 -0
  9. package/dist/cjs/quick-insert/keys.js +79 -1
  10. package/dist/cjs/quick-insert/messages.js +45 -0
  11. package/dist/cjs/quick-insert/rank.js +7 -2
  12. package/dist/cjs/type-ahead/MENU_FOOTER_SECTION_KEY_SUFFIX.js +8 -0
  13. package/dist/cjs/type-ahead/SECTION_OVERFLOW_ITEM_KEY_SUFFIX.js +8 -0
  14. package/dist/cjs/type-ahead/getMenuFooterSectionKey.js +11 -0
  15. package/dist/cjs/type-ahead/getSectionOverflowItemKey.js +11 -0
  16. package/dist/cjs/type-ahead/isMenuFooterSectionKey.js +11 -0
  17. package/dist/cjs/type-ahead/isSectionOverflowItemKey.js +11 -0
  18. package/dist/cjs/ui/DropList/index.js +1 -1
  19. package/dist/es2019/messages/avatar-group.js +5 -0
  20. package/dist/es2019/messages/syncBlock.js +5 -0
  21. package/dist/es2019/monitoring/error.js +1 -1
  22. package/dist/es2019/quick-insert/QuickInsertMenuItem.compiled.css +18 -0
  23. package/dist/es2019/quick-insert/QuickInsertMenuItem.js +51 -0
  24. package/dist/es2019/quick-insert/QuickInsertMenuRoot.js +5 -0
  25. package/dist/es2019/quick-insert/QuickInsertMenuSection.js +8 -0
  26. package/dist/es2019/quick-insert/keys.js +77 -1
  27. package/dist/es2019/quick-insert/messages.js +45 -0
  28. package/dist/es2019/quick-insert/rank.js +30 -4
  29. package/dist/es2019/type-ahead/MENU_FOOTER_SECTION_KEY_SUFFIX.js +2 -0
  30. package/dist/es2019/type-ahead/SECTION_OVERFLOW_ITEM_KEY_SUFFIX.js +2 -0
  31. package/dist/es2019/type-ahead/getMenuFooterSectionKey.js +4 -0
  32. package/dist/es2019/type-ahead/getSectionOverflowItemKey.js +4 -0
  33. package/dist/es2019/type-ahead/isMenuFooterSectionKey.js +4 -0
  34. package/dist/es2019/type-ahead/isSectionOverflowItemKey.js +4 -0
  35. package/dist/es2019/ui/DropList/index.js +1 -1
  36. package/dist/esm/messages/avatar-group.js +5 -0
  37. package/dist/esm/messages/syncBlock.js +5 -0
  38. package/dist/esm/monitoring/error.js +1 -1
  39. package/dist/esm/quick-insert/QuickInsertMenuItem.compiled.css +18 -0
  40. package/dist/esm/quick-insert/QuickInsertMenuItem.js +54 -0
  41. package/dist/esm/quick-insert/QuickInsertMenuRoot.js +6 -0
  42. package/dist/esm/quick-insert/QuickInsertMenuSection.js +9 -0
  43. package/dist/esm/quick-insert/keys.js +78 -0
  44. package/dist/esm/quick-insert/messages.js +45 -0
  45. package/dist/esm/quick-insert/rank.js +7 -2
  46. package/dist/esm/type-ahead/MENU_FOOTER_SECTION_KEY_SUFFIX.js +2 -0
  47. package/dist/esm/type-ahead/SECTION_OVERFLOW_ITEM_KEY_SUFFIX.js +2 -0
  48. package/dist/esm/type-ahead/getMenuFooterSectionKey.js +6 -0
  49. package/dist/esm/type-ahead/getSectionOverflowItemKey.js +6 -0
  50. package/dist/esm/type-ahead/isMenuFooterSectionKey.js +6 -0
  51. package/dist/esm/type-ahead/isSectionOverflowItemKey.js +6 -0
  52. package/dist/esm/ui/DropList/index.js +1 -1
  53. package/dist/types/analytics/types/list-events.d.ts +1 -1
  54. package/dist/types/collab/index.d.ts +2 -0
  55. package/dist/types/messages/avatar-group.d.ts +7 -2
  56. package/dist/types/messages/syncBlock.d.ts +5 -0
  57. package/dist/types/quick-insert/QuickInsertContext.d.ts +0 -1
  58. package/dist/types/quick-insert/QuickInsertMenuItem.d.ts +21 -0
  59. package/dist/types/quick-insert/QuickInsertMenuRoot.d.ts +2 -0
  60. package/dist/types/quick-insert/QuickInsertMenuSection.d.ts +4 -0
  61. package/dist/types/quick-insert/keys.d.ts +76 -0
  62. package/dist/types/quick-insert/messages.d.ts +4 -87
  63. package/dist/types/quick-insert/rank.d.ts +28 -2
  64. package/dist/types/type-ahead/MENU_FOOTER_SECTION_KEY_SUFFIX.d.ts +2 -0
  65. package/dist/types/type-ahead/SECTION_OVERFLOW_ITEM_KEY_SUFFIX.d.ts +2 -0
  66. package/dist/types/type-ahead/getMenuFooterSectionKey.d.ts +2 -0
  67. package/dist/types/type-ahead/getSectionOverflowItemKey.d.ts +2 -0
  68. package/dist/types/type-ahead/isMenuFooterSectionKey.d.ts +2 -0
  69. package/dist/types/type-ahead/isSectionOverflowItemKey.d.ts +2 -0
  70. package/dist/types/types/quick-insert.d.ts +4 -0
  71. package/package.json +4 -4
  72. package/quick-insert/menu-item/package.json +10 -0
  73. package/quick-insert/menu-root/package.json +10 -0
  74. package/quick-insert/menu-section/package.json +10 -0
  75. package/type-ahead-get-menu-footer-section-key/package.json +10 -0
  76. package/type-ahead-get-section-overflow-item-key/package.json +10 -0
  77. package/type-ahead-is-menu-footer-section-key/package.json +10 -0
  78. package/type-ahead-is-section-overflow-item-key/package.json +10 -0
@@ -38,7 +38,83 @@ export declare const OTHER_SECTION: {
38
38
  readonly key: 'quick-insert-other-section';
39
39
  readonly type: 'menu-section';
40
40
  };
41
+ export declare const VIEW_ALL_ELEMENTS_MENU_ITEM: {
42
+ readonly key: 'quick-insert-view-all-elements-menu-item';
43
+ readonly type: 'menu-item';
44
+ };
41
45
  export declare const TABLE_MENU_ITEM: {
42
46
  readonly key: 'quick-insert-table-menu-item';
43
47
  readonly type: 'menu-item';
44
48
  };
49
+ export declare const INFO_PANEL_MENU_ITEM: {
50
+ readonly key: 'quick-insert-info-panel-menu-item';
51
+ readonly type: 'menu-item';
52
+ };
53
+ export declare const NOTE_PANEL_MENU_ITEM: {
54
+ readonly key: 'quick-insert-note-panel-menu-item';
55
+ readonly type: 'menu-item';
56
+ };
57
+ export declare const SUCCESS_PANEL_MENU_ITEM: {
58
+ readonly key: 'quick-insert-success-panel-menu-item';
59
+ readonly type: 'menu-item';
60
+ };
61
+ export declare const WARNING_PANEL_MENU_ITEM: {
62
+ readonly key: 'quick-insert-warning-panel-menu-item';
63
+ readonly type: 'menu-item';
64
+ };
65
+ export declare const ERROR_PANEL_MENU_ITEM: {
66
+ readonly key: 'quick-insert-error-panel-menu-item';
67
+ readonly type: 'menu-item';
68
+ };
69
+ export declare const CUSTOM_PANEL_MENU_ITEM: {
70
+ readonly key: 'quick-insert-custom-panel-menu-item';
71
+ readonly type: 'menu-item';
72
+ };
73
+ export declare const MEDIA_INSERT_MENU_ITEM: {
74
+ readonly key: 'quick-insert-media-insert-menu-item';
75
+ readonly type: 'menu-item';
76
+ };
77
+ export declare const EMOJI_MENU_ITEM: {
78
+ readonly key: 'quick-insert-emoji-menu-item';
79
+ readonly type: 'menu-item';
80
+ };
81
+ export declare const HYPERLINK_MENU_ITEM: {
82
+ readonly key: 'quick-insert-hyperlink-menu-item';
83
+ readonly type: 'menu-item';
84
+ };
85
+ export declare const LOOM_MENU_ITEM: {
86
+ readonly key: 'quick-insert-loom-menu-item';
87
+ readonly type: 'menu-item';
88
+ };
89
+ export declare const UNORDERED_LIST_MENU_ITEM: {
90
+ readonly key: 'quick-insert-unordered-list-menu-item';
91
+ readonly type: 'menu-item';
92
+ };
93
+ export declare const ORDERED_LIST_MENU_ITEM: {
94
+ readonly key: 'quick-insert-ordered-list-menu-item';
95
+ readonly type: 'menu-item';
96
+ };
97
+ export declare const STATUS_MENU_ITEM: {
98
+ readonly key: 'quick-insert-status-menu-item';
99
+ readonly type: 'menu-item';
100
+ };
101
+ export declare const DATE_MENU_ITEM: {
102
+ readonly key: 'quick-insert-date-menu-item';
103
+ readonly type: 'menu-item';
104
+ };
105
+ export declare const ASK_ROVO_MENU_ITEM: {
106
+ readonly key: 'quick-insert-ask-rovo-menu-item';
107
+ readonly type: 'menu-item';
108
+ };
109
+ export declare const JIRA_WORK_ITEMS_MENU_ITEM: {
110
+ readonly key: 'quick-insert-jira-work-items-menu-item';
111
+ readonly type: 'menu-item';
112
+ };
113
+ export declare const ASSETS_MENU_ITEM: {
114
+ readonly key: 'quick-insert-assets-menu-item';
115
+ readonly type: 'menu-item';
116
+ };
117
+ export declare const getBlockTemplateMenuItem: (id: string) => {
118
+ readonly key: string;
119
+ readonly type: 'menu-item';
120
+ };
@@ -1,87 +1,4 @@
1
- export declare const messages: {
2
- help: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- insert: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- close: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- all: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- formatting: {
23
- id: string;
24
- defaultMessage: string;
25
- description: string;
26
- };
27
- 'confluence-content': {
28
- id: string;
29
- defaultMessage: string;
30
- description: string;
31
- };
32
- media: {
33
- id: string;
34
- defaultMessage: string;
35
- description: string;
36
- };
37
- visuals: {
38
- id: string;
39
- defaultMessage: string;
40
- description: string;
41
- };
42
- navigation: {
43
- id: string;
44
- defaultMessage: string;
45
- description: string;
46
- };
47
- 'external-content': {
48
- id: string;
49
- defaultMessage: string;
50
- description: string;
51
- };
52
- communication: {
53
- id: string;
54
- defaultMessage: string;
55
- description: string;
56
- };
57
- reporting: {
58
- id: string;
59
- defaultMessage: string;
60
- description: string;
61
- };
62
- admin: {
63
- id: string;
64
- defaultMessage: string;
65
- description: string;
66
- };
67
- development: {
68
- id: string;
69
- defaultMessage: string;
70
- description: string;
71
- };
72
- AI: {
73
- id: string;
74
- defaultMessage: string;
75
- description: string;
76
- };
77
- featuredWhiteboardDescription: {
78
- id: string;
79
- defaultMessage: string;
80
- description: string;
81
- };
82
- browse: {
83
- id: string;
84
- defaultMessage: string;
85
- description: string;
86
- };
87
- };
1
+ import { type MessageDescriptor } from 'react-intl';
2
+ type Messages<Keys extends string> = Record<Keys, MessageDescriptor>;
3
+ export declare const messages: Messages<'admin' | 'AI' | 'all' | 'browse' | 'categoryBlockTemplates' | 'categoryDataAndCharts' | 'categoryEmbed' | 'categoryMedia' | 'categoryOther' | 'categoryRecommended' | 'categoryRovo' | 'categoryStructure' | 'categoryTextFormatting' | 'close' | 'communication' | 'confluence-content' | 'development' | 'external-content' | 'featuredWhiteboardDescription' | 'formatting' | 'help' | 'insert' | 'media' | 'navigation' | 'reporting' | 'visuals'>;
4
+ export {};
@@ -9,6 +9,32 @@ export declare const QUICK_INSERT_MENU_RANK: {
9
9
  readonly 'quick-insert-structure-section': 1;
10
10
  readonly 'quick-insert-text-formatting-section': 4;
11
11
  };
12
- export declare const QUICK_INSERT_STRUCTURE_SECTION_RANK: {
13
- readonly 'quick-insert-table-menu-item': 600;
12
+ export declare const STRUCTURE_SECTION_RANK: {
13
+ readonly 'quick-insert-custom-panel-menu-item': 1400;
14
+ readonly 'quick-insert-date-menu-item': 400;
15
+ readonly 'quick-insert-error-panel-menu-item': 1300;
16
+ readonly 'quick-insert-info-panel-menu-item': 900;
17
+ readonly 'quick-insert-note-panel-menu-item': 1000;
18
+ readonly 'quick-insert-status-menu-item': 300;
19
+ readonly 'quick-insert-success-panel-menu-item': 1100;
20
+ readonly 'quick-insert-table-menu-item': 200;
21
+ readonly 'quick-insert-warning-panel-menu-item': 1200;
14
22
  };
23
+ export declare const MEDIA_SECTION_RANK: {
24
+ readonly 'quick-insert-emoji-menu-item': 300;
25
+ readonly 'quick-insert-hyperlink-menu-item': 200;
26
+ readonly 'quick-insert-loom-menu-item': 400;
27
+ readonly 'quick-insert-media-insert-menu-item': 100;
28
+ };
29
+ export declare const TEXT_FORMATTING_SECTION_RANK: {
30
+ readonly 'quick-insert-ordered-list-menu-item': 1200;
31
+ readonly 'quick-insert-unordered-list-menu-item': 1100;
32
+ };
33
+ export declare const ROVO_SECTION_RANK: {
34
+ readonly 'quick-insert-ask-rovo-menu-item': 100;
35
+ };
36
+ export declare const DATA_AND_CHARTS_SECTION_RANK: {
37
+ readonly 'quick-insert-assets-menu-item': 500;
38
+ readonly 'quick-insert-jira-work-items-menu-item': 300;
39
+ };
40
+ export declare const CATEGORY_VIEW_MORE_RANK: number;
@@ -0,0 +1,2 @@
1
+ /** Identifies reserved type-ahead sections whose item is rendered as the persistent menu footer. */
2
+ export declare const MENU_FOOTER_SECTION_KEY_SUFFIX = "--system-menu-footer";
@@ -0,0 +1,2 @@
1
+ /** Identifies system items that reveal the remaining items in a type-ahead section. */
2
+ export declare const SECTION_OVERFLOW_ITEM_KEY_SUFFIX = "--system-section-overflow";
@@ -0,0 +1,2 @@
1
+ /** Returns the reserved section key for a type-ahead menu's persistent footer item. */
2
+ export declare const getMenuFooterSectionKey: (menuKey: string) => string;
@@ -0,0 +1,2 @@
1
+ /** Returns the reserved key for the item that reveals the remainder of a type-ahead section. */
2
+ export declare const getSectionOverflowItemKey: (sectionKey: string) => string;
@@ -0,0 +1,2 @@
1
+ /** Identifies reserved type-ahead sections whose item is rendered as a persistent footer. */
2
+ export declare const isMenuFooterSectionKey: (key: string) => boolean;
@@ -0,0 +1,2 @@
1
+ /** Identifies items reserved for revealing the remainder of a type-ahead section. */
2
+ export declare const isSectionOverflowItemKey: (key: string) => boolean;
@@ -35,7 +35,9 @@ export type QuickInsertSearchOptions = {
35
35
  };
36
36
  export type QuickInsertPluginState = {
37
37
  emptyStateHandler?: EmptyStateHandler;
38
+ /** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-62138 Internal documentation for deprecation (no external access)} Tracked by EDITOR-8422. Use `isElementBrowserOpen` instead. */
38
39
  isElementBrowserModalOpen: boolean;
40
+ isElementBrowserOpen: boolean;
39
41
  lazyDefaultItems: () => QuickInsertItem[];
40
42
  providedItems?: QuickInsertItem[];
41
43
  provider?: QuickInsertProvider;
@@ -65,7 +67,9 @@ export interface QuickInsertPluginOptions {
65
67
  }
66
68
  export type QuickInsertSharedState = {
67
69
  emptyStateHandler?: EmptyStateHandler;
70
+ /** @deprecated {@link https://hello.atlassian.net/browse/ENGHEALTH-62138 Internal documentation for deprecation (no external access)} Tracked by EDITOR-8422. Use `isElementBrowserOpen` instead. */
68
71
  isElementBrowserModalOpen: boolean;
72
+ isElementBrowserOpen: boolean;
69
73
  lazyDefaultItems: () => QuickInsertItem[];
70
74
  providedItems?: QuickInsertItem[];
71
75
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "117.1.0",
3
+ "version": "117.2.0",
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/"
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/editor-toolbar-model": "^1.2.0",
52
52
  "@atlaskit/emoji": "^71.15.0",
53
53
  "@atlaskit/feature-gate-js-client": "^6.0.0",
54
- "@atlaskit/icon": "^37.2.0",
54
+ "@atlaskit/icon": "^37.3.0",
55
55
  "@atlaskit/link": "^5.0.0",
56
56
  "@atlaskit/link-datasource": "^6.4.0",
57
57
  "@atlaskit/link-picker": "^6.4.0",
@@ -72,7 +72,7 @@
72
72
  "@atlaskit/platform-feature-flags-react": "^1.1.0",
73
73
  "@atlaskit/popper": "^9.0.0",
74
74
  "@atlaskit/primitives": "^22.2.0",
75
- "@atlaskit/profilecard": "^26.14.0",
75
+ "@atlaskit/profilecard": "^26.15.0",
76
76
  "@atlaskit/prosemirror-history": "^1.1.0",
77
77
  "@atlaskit/react-compiler-gating": "^0.2.0",
78
78
  "@atlaskit/react-ufo": "^7.3.0",
@@ -81,7 +81,7 @@
81
81
  "@atlaskit/smart-user-picker": "^11.3.0",
82
82
  "@atlaskit/spinner": "^20.1.0",
83
83
  "@atlaskit/task-decision": "^21.8.0",
84
- "@atlaskit/teams-app-config": "^2.1.0",
84
+ "@atlaskit/teams-app-config": "^2.2.0",
85
85
  "@atlaskit/textfield": "^10.0.0",
86
86
  "@atlaskit/tmp-editor-statsig": "^139.0.0",
87
87
  "@atlaskit/tokens": "^16.3.0",
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/quick-insert/menu-item",
3
+ "main": "../../dist/cjs/quick-insert/QuickInsertMenuItem.js",
4
+ "module": "../../dist/esm/quick-insert/QuickInsertMenuItem.js",
5
+ "module:es2019": "../../dist/es2019/quick-insert/QuickInsertMenuItem.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/quick-insert/QuickInsertMenuItem.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/quick-insert/menu-root",
3
+ "main": "../../dist/cjs/quick-insert/QuickInsertMenuRoot.js",
4
+ "module": "../../dist/esm/quick-insert/QuickInsertMenuRoot.js",
5
+ "module:es2019": "../../dist/es2019/quick-insert/QuickInsertMenuRoot.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/quick-insert/QuickInsertMenuRoot.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/quick-insert/menu-section",
3
+ "main": "../../dist/cjs/quick-insert/QuickInsertMenuSection.js",
4
+ "module": "../../dist/esm/quick-insert/QuickInsertMenuSection.js",
5
+ "module:es2019": "../../dist/es2019/quick-insert/QuickInsertMenuSection.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../../dist/types/quick-insert/QuickInsertMenuSection.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/type-ahead-get-menu-footer-section-key",
3
+ "main": "../dist/cjs/type-ahead/getMenuFooterSectionKey.js",
4
+ "module": "../dist/esm/type-ahead/getMenuFooterSectionKey.js",
5
+ "module:es2019": "../dist/es2019/type-ahead/getMenuFooterSectionKey.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/type-ahead/getMenuFooterSectionKey.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/type-ahead-get-section-overflow-item-key",
3
+ "main": "../dist/cjs/type-ahead/getSectionOverflowItemKey.js",
4
+ "module": "../dist/esm/type-ahead/getSectionOverflowItemKey.js",
5
+ "module:es2019": "../dist/es2019/type-ahead/getSectionOverflowItemKey.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/type-ahead/getSectionOverflowItemKey.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/type-ahead-is-menu-footer-section-key",
3
+ "main": "../dist/cjs/type-ahead/isMenuFooterSectionKey.js",
4
+ "module": "../dist/esm/type-ahead/isMenuFooterSectionKey.js",
5
+ "module:es2019": "../dist/es2019/type-ahead/isMenuFooterSectionKey.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/type-ahead/isMenuFooterSectionKey.d.ts"
10
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@atlaskit/editor-common/type-ahead-is-section-overflow-item-key",
3
+ "main": "../dist/cjs/type-ahead/isSectionOverflowItemKey.js",
4
+ "module": "../dist/esm/type-ahead/isSectionOverflowItemKey.js",
5
+ "module:es2019": "../dist/es2019/type-ahead/isSectionOverflowItemKey.js",
6
+ "sideEffects": [
7
+ "**/*.compiled.css"
8
+ ],
9
+ "types": "../dist/types/type-ahead/isSectionOverflowItemKey.d.ts"
10
+ }