@atlaskit/editor-common 117.1.1 → 117.2.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 (73) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/cjs/messages/syncBlock.js +5 -0
  3. package/dist/cjs/monitoring/error.js +1 -1
  4. package/dist/cjs/quick-insert/QuickInsertMenuItem.compiled.css +18 -0
  5. package/dist/cjs/quick-insert/QuickInsertMenuItem.js +63 -0
  6. package/dist/cjs/quick-insert/QuickInsertMenuRoot.js +13 -0
  7. package/dist/cjs/quick-insert/QuickInsertMenuSection.js +16 -0
  8. package/dist/cjs/quick-insert/keys.js +79 -1
  9. package/dist/cjs/quick-insert/messages.js +45 -0
  10. package/dist/cjs/quick-insert/rank.js +7 -2
  11. package/dist/cjs/type-ahead/MENU_FOOTER_SECTION_KEY_SUFFIX.js +8 -0
  12. package/dist/cjs/type-ahead/SECTION_OVERFLOW_ITEM_KEY_SUFFIX.js +8 -0
  13. package/dist/cjs/type-ahead/getMenuFooterSectionKey.js +11 -0
  14. package/dist/cjs/type-ahead/getSectionOverflowItemKey.js +11 -0
  15. package/dist/cjs/type-ahead/isMenuFooterSectionKey.js +11 -0
  16. package/dist/cjs/type-ahead/isSectionOverflowItemKey.js +11 -0
  17. package/dist/cjs/ui/DropList/index.js +1 -1
  18. package/dist/es2019/messages/syncBlock.js +5 -0
  19. package/dist/es2019/monitoring/error.js +1 -1
  20. package/dist/es2019/quick-insert/QuickInsertMenuItem.compiled.css +18 -0
  21. package/dist/es2019/quick-insert/QuickInsertMenuItem.js +51 -0
  22. package/dist/es2019/quick-insert/QuickInsertMenuRoot.js +5 -0
  23. package/dist/es2019/quick-insert/QuickInsertMenuSection.js +8 -0
  24. package/dist/es2019/quick-insert/keys.js +77 -1
  25. package/dist/es2019/quick-insert/messages.js +45 -0
  26. package/dist/es2019/quick-insert/rank.js +30 -4
  27. package/dist/es2019/type-ahead/MENU_FOOTER_SECTION_KEY_SUFFIX.js +2 -0
  28. package/dist/es2019/type-ahead/SECTION_OVERFLOW_ITEM_KEY_SUFFIX.js +2 -0
  29. package/dist/es2019/type-ahead/getMenuFooterSectionKey.js +4 -0
  30. package/dist/es2019/type-ahead/getSectionOverflowItemKey.js +4 -0
  31. package/dist/es2019/type-ahead/isMenuFooterSectionKey.js +4 -0
  32. package/dist/es2019/type-ahead/isSectionOverflowItemKey.js +4 -0
  33. package/dist/es2019/ui/DropList/index.js +1 -1
  34. package/dist/esm/messages/syncBlock.js +5 -0
  35. package/dist/esm/monitoring/error.js +1 -1
  36. package/dist/esm/quick-insert/QuickInsertMenuItem.compiled.css +18 -0
  37. package/dist/esm/quick-insert/QuickInsertMenuItem.js +54 -0
  38. package/dist/esm/quick-insert/QuickInsertMenuRoot.js +6 -0
  39. package/dist/esm/quick-insert/QuickInsertMenuSection.js +9 -0
  40. package/dist/esm/quick-insert/keys.js +78 -0
  41. package/dist/esm/quick-insert/messages.js +45 -0
  42. package/dist/esm/quick-insert/rank.js +7 -2
  43. package/dist/esm/type-ahead/MENU_FOOTER_SECTION_KEY_SUFFIX.js +2 -0
  44. package/dist/esm/type-ahead/SECTION_OVERFLOW_ITEM_KEY_SUFFIX.js +2 -0
  45. package/dist/esm/type-ahead/getMenuFooterSectionKey.js +6 -0
  46. package/dist/esm/type-ahead/getSectionOverflowItemKey.js +6 -0
  47. package/dist/esm/type-ahead/isMenuFooterSectionKey.js +6 -0
  48. package/dist/esm/type-ahead/isSectionOverflowItemKey.js +6 -0
  49. package/dist/esm/ui/DropList/index.js +1 -1
  50. package/dist/types/analytics/types/list-events.d.ts +1 -1
  51. package/dist/types/messages/syncBlock.d.ts +5 -0
  52. package/dist/types/quick-insert/QuickInsertContext.d.ts +0 -1
  53. package/dist/types/quick-insert/QuickInsertMenuItem.d.ts +21 -0
  54. package/dist/types/quick-insert/QuickInsertMenuRoot.d.ts +2 -0
  55. package/dist/types/quick-insert/QuickInsertMenuSection.d.ts +4 -0
  56. package/dist/types/quick-insert/keys.d.ts +76 -0
  57. package/dist/types/quick-insert/messages.d.ts +4 -87
  58. package/dist/types/quick-insert/rank.d.ts +28 -2
  59. package/dist/types/type-ahead/MENU_FOOTER_SECTION_KEY_SUFFIX.d.ts +2 -0
  60. package/dist/types/type-ahead/SECTION_OVERFLOW_ITEM_KEY_SUFFIX.d.ts +2 -0
  61. package/dist/types/type-ahead/getMenuFooterSectionKey.d.ts +2 -0
  62. package/dist/types/type-ahead/getSectionOverflowItemKey.d.ts +2 -0
  63. package/dist/types/type-ahead/isMenuFooterSectionKey.d.ts +2 -0
  64. package/dist/types/type-ahead/isSectionOverflowItemKey.d.ts +2 -0
  65. package/dist/types/types/quick-insert.d.ts +4 -0
  66. package/package.json +4 -4
  67. package/quick-insert/menu-item/package.json +10 -0
  68. package/quick-insert/menu-root/package.json +10 -0
  69. package/quick-insert/menu-section/package.json +10 -0
  70. package/type-ahead-get-menu-footer-section-key/package.json +10 -0
  71. package/type-ahead-get-section-overflow-item-key/package.json +10 -0
  72. package/type-ahead-is-menu-footer-section-key/package.json +10 -0
  73. package/type-ahead-is-section-overflow-item-key/package.json +10 -0
@@ -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.1",
3
+ "version": "117.2.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/"
@@ -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
+ }