@atlaskit/editor-common 112.10.1 → 112.11.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-common
2
2
 
3
+ ## 112.11.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`15d5b8e4805ae`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/15d5b8e4805ae) -
8
+ EDITOR-4680: Create a second anchor to mount a popup onto for better card positioning.
9
+
10
+ ### Patch Changes
11
+
12
+ - [`3b007c601e102`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/3b007c601e102) -
13
+ EDITOR-6092 Remove 100 character limit on legacy paste actions for new editor AI paste actions
14
+ menu. Also redesigns the legacy paste actions to more closely resemble the legacy paste floating
15
+ toolbar when there are no AI actions present.
16
+ - Updated dependencies
17
+
3
18
  ## 112.10.1
4
19
 
5
20
  ### Patch Changes
@@ -61,6 +61,21 @@ var aiSuggestionsMessages = exports.aiSuggestionsMessages = (0, _reactIntlNext.d
61
61
  defaultMessage: 'Loading…',
62
62
  description: 'Label for the fetch suggestions button when loading'
63
63
  },
64
+ fetchGenerateFromDocument: {
65
+ id: 'fabric.editor.ai.suggestions.quickInsert.generateFromDocument.non-final',
66
+ defaultMessage: 'Suggested edits (generate)',
67
+ description: 'Quick insert: fetch AI suggestions by generating from the current document (ADF)'
68
+ },
69
+ fetchFromSavedContent: {
70
+ id: 'fabric.editor.ai.suggestions.quickInsert.fromSavedContent.non-final',
71
+ defaultMessage: 'Suggested edits (ERS)',
72
+ description: 'Quick insert: fetch AI suggestions using saved content (ERS)'
73
+ },
74
+ fetchGenerateFromAdf: {
75
+ id: 'fabric.editor.ai.suggestions.quickInsert.generateFromAdf.non-final',
76
+ defaultMessage: 'Suggested edits (generate from ADF)',
77
+ description: 'Quick insert: fetch AI suggestions by generating from document, same as page toolbar action'
78
+ },
64
79
  originalViewLabel: {
65
80
  id: 'fabric.editor.ai.suggestions.stagingArea.originalViewLabel.non-final',
66
81
  defaultMessage: 'Original • View only',
@@ -45,5 +45,10 @@ var pasteOptionsToolbarMessages = exports.pasteOptionsToolbarMessages = (0, _rea
45
45
  id: 'fabric.editor.pasteMenuActionsTitle',
46
46
  defaultMessage: 'Paste actions',
47
47
  description: 'Section title for actions in the paste options menu'
48
+ },
49
+ pasteMenuActionsPasteAs: {
50
+ id: 'fabric.editor.pasteMenuActionsPasteAs',
51
+ defaultMessage: 'Paste as',
52
+ description: 'Submenu title to surface pasting options to paste content as Markdown, Rich text or Plain text'
48
53
  }
49
54
  });
@@ -55,6 +55,21 @@ export const aiSuggestionsMessages = defineMessages({
55
55
  defaultMessage: 'Loading…',
56
56
  description: 'Label for the fetch suggestions button when loading'
57
57
  },
58
+ fetchGenerateFromDocument: {
59
+ id: 'fabric.editor.ai.suggestions.quickInsert.generateFromDocument.non-final',
60
+ defaultMessage: 'Suggested edits (generate)',
61
+ description: 'Quick insert: fetch AI suggestions by generating from the current document (ADF)'
62
+ },
63
+ fetchFromSavedContent: {
64
+ id: 'fabric.editor.ai.suggestions.quickInsert.fromSavedContent.non-final',
65
+ defaultMessage: 'Suggested edits (ERS)',
66
+ description: 'Quick insert: fetch AI suggestions using saved content (ERS)'
67
+ },
68
+ fetchGenerateFromAdf: {
69
+ id: 'fabric.editor.ai.suggestions.quickInsert.generateFromAdf.non-final',
70
+ defaultMessage: 'Suggested edits (generate from ADF)',
71
+ description: 'Quick insert: fetch AI suggestions by generating from document, same as page toolbar action'
72
+ },
58
73
  originalViewLabel: {
59
74
  id: 'fabric.editor.ai.suggestions.stagingArea.originalViewLabel.non-final',
60
75
  defaultMessage: 'Original • View only',
@@ -39,5 +39,10 @@ export const pasteOptionsToolbarMessages = defineMessages({
39
39
  id: 'fabric.editor.pasteMenuActionsTitle',
40
40
  defaultMessage: 'Paste actions',
41
41
  description: 'Section title for actions in the paste options menu'
42
+ },
43
+ pasteMenuActionsPasteAs: {
44
+ id: 'fabric.editor.pasteMenuActionsPasteAs',
45
+ defaultMessage: 'Paste as',
46
+ description: 'Submenu title to surface pasting options to paste content as Markdown, Rich text or Plain text'
42
47
  }
43
48
  });
@@ -55,6 +55,21 @@ export var aiSuggestionsMessages = defineMessages({
55
55
  defaultMessage: 'Loading…',
56
56
  description: 'Label for the fetch suggestions button when loading'
57
57
  },
58
+ fetchGenerateFromDocument: {
59
+ id: 'fabric.editor.ai.suggestions.quickInsert.generateFromDocument.non-final',
60
+ defaultMessage: 'Suggested edits (generate)',
61
+ description: 'Quick insert: fetch AI suggestions by generating from the current document (ADF)'
62
+ },
63
+ fetchFromSavedContent: {
64
+ id: 'fabric.editor.ai.suggestions.quickInsert.fromSavedContent.non-final',
65
+ defaultMessage: 'Suggested edits (ERS)',
66
+ description: 'Quick insert: fetch AI suggestions using saved content (ERS)'
67
+ },
68
+ fetchGenerateFromAdf: {
69
+ id: 'fabric.editor.ai.suggestions.quickInsert.generateFromAdf.non-final',
70
+ defaultMessage: 'Suggested edits (generate from ADF)',
71
+ description: 'Quick insert: fetch AI suggestions by generating from document, same as page toolbar action'
72
+ },
58
73
  originalViewLabel: {
59
74
  id: 'fabric.editor.ai.suggestions.stagingArea.originalViewLabel.non-final',
60
75
  defaultMessage: 'Original • View only',
@@ -39,5 +39,10 @@ export var pasteOptionsToolbarMessages = defineMessages({
39
39
  id: 'fabric.editor.pasteMenuActionsTitle',
40
40
  defaultMessage: 'Paste actions',
41
41
  description: 'Section title for actions in the paste options menu'
42
+ },
43
+ pasteMenuActionsPasteAs: {
44
+ id: 'fabric.editor.pasteMenuActionsPasteAs',
45
+ defaultMessage: 'Paste as',
46
+ description: 'Submenu title to surface pasting options to paste content as Markdown, Rich text or Plain text'
42
47
  }
43
48
  });
@@ -1,107 +1,122 @@
1
1
  export declare const aiSuggestionsMessages: {
2
- suggestionsToolbarButtonLabel: {
3
- id: string;
2
+ applyChangesButtonLabel: {
4
3
  defaultMessage: string;
5
4
  description: string;
6
- };
7
- suggestionsToolbarButtonLoadingLabel: {
8
5
  id: string;
6
+ };
7
+ cardAcceptButtonLabel: {
9
8
  defaultMessage: string;
10
9
  description: string;
11
- };
12
- suggestionsToolbarButtonReadyLabel: {
13
10
  id: string;
11
+ };
12
+ cardCloseButtonLabel: {
14
13
  defaultMessage: string;
15
14
  description: string;
16
- };
17
- suggestionsToolbarButtonErrorLabel: {
18
15
  id: string;
16
+ };
17
+ cardCollapseButtonLabel: {
19
18
  defaultMessage: string;
20
19
  description: string;
21
- };
22
- previewLabel: {
23
20
  id: string;
21
+ };
22
+ cardDiscardButtonLabel: {
24
23
  defaultMessage: string;
25
24
  description: string;
26
- };
27
- viewLabel: {
28
25
  id: string;
26
+ };
27
+ cardExpandButtonLabel: {
29
28
  defaultMessage: string;
30
29
  description: string;
31
- };
32
- titleLabel: {
33
30
  id: string;
31
+ };
32
+ cardPrivateLabel: {
34
33
  defaultMessage: string;
35
34
  description: string;
35
+ id: string;
36
36
  };
37
- reviewNote: {
37
+ cardRovoTitle: {
38
+ defaultMessage: string;
39
+ description: string;
38
40
  id: string;
41
+ };
42
+ fetchFromSavedContent: {
39
43
  defaultMessage: string;
40
44
  description: string;
45
+ id: string;
41
46
  };
42
- applyChangesButtonLabel: {
47
+ fetchGenerateFromAdf: {
48
+ defaultMessage: string;
49
+ description: string;
43
50
  id: string;
51
+ };
52
+ fetchGenerateFromDocument: {
44
53
  defaultMessage: string;
45
54
  description: string;
55
+ id: string;
46
56
  };
47
57
  fetchSuggestionsButtonLabel: {
48
- id: string;
49
58
  defaultMessage: string;
50
59
  description: string;
60
+ id: string;
51
61
  };
52
62
  fetchSuggestionsButtonLoadingLabel: {
53
- id: string;
54
63
  defaultMessage: string;
55
64
  description: string;
65
+ id: string;
56
66
  };
57
67
  originalViewLabel: {
58
- id: string;
59
68
  defaultMessage: string;
60
69
  description: string;
61
- };
62
- suggestedLabel: {
63
70
  id: string;
71
+ };
72
+ previewLabel: {
64
73
  defaultMessage: string;
65
74
  description: string;
66
- };
67
- suggestionsLabel: {
68
75
  id: string;
76
+ };
77
+ reviewNote: {
69
78
  defaultMessage: string;
70
79
  description: string;
71
- };
72
- cardExpandButtonLabel: {
73
80
  id: string;
81
+ };
82
+ suggestedLabel: {
74
83
  defaultMessage: string;
75
84
  description: string;
76
- };
77
- cardCollapseButtonLabel: {
78
85
  id: string;
86
+ };
87
+ suggestionsLabel: {
79
88
  defaultMessage: string;
80
89
  description: string;
81
- };
82
- cardCloseButtonLabel: {
83
90
  id: string;
91
+ };
92
+ suggestionsToolbarButtonErrorLabel: {
84
93
  defaultMessage: string;
85
94
  description: string;
86
- };
87
- cardRovoTitle: {
88
95
  id: string;
96
+ };
97
+ suggestionsToolbarButtonLabel: {
89
98
  defaultMessage: string;
90
99
  description: string;
91
- };
92
- cardPrivateLabel: {
93
100
  id: string;
101
+ };
102
+ suggestionsToolbarButtonLoadingLabel: {
94
103
  defaultMessage: string;
95
104
  description: string;
96
- };
97
- cardAcceptButtonLabel: {
98
105
  id: string;
106
+ };
107
+ suggestionsToolbarButtonReadyLabel: {
99
108
  defaultMessage: string;
100
109
  description: string;
110
+ id: string;
101
111
  };
102
- cardDiscardButtonLabel: {
112
+ titleLabel: {
113
+ defaultMessage: string;
114
+ description: string;
103
115
  id: string;
116
+ };
117
+ viewLabel: {
104
118
  defaultMessage: string;
105
119
  description: string;
120
+ id: string;
106
121
  };
107
122
  };
@@ -1,42 +1,47 @@
1
1
  export declare const pasteOptionsToolbarMessages: {
2
- pasteOptions: {
3
- id: string;
2
+ markdown: {
4
3
  defaultMessage: string;
5
4
  description: string;
6
- };
7
- plainText: {
8
5
  id: string;
6
+ };
7
+ markdownAction: {
9
8
  defaultMessage: string;
10
9
  description: string;
10
+ id: string;
11
11
  };
12
- markdown: {
12
+ pasteMenuActionsPasteAs: {
13
+ defaultMessage: string;
14
+ description: string;
13
15
  id: string;
16
+ };
17
+ pasteMenuActionsTitle: {
14
18
  defaultMessage: string;
15
19
  description: string;
20
+ id: string;
16
21
  };
17
- richText: {
22
+ pasteOptions: {
23
+ defaultMessage: string;
24
+ description: string;
18
25
  id: string;
26
+ };
27
+ plainText: {
19
28
  defaultMessage: string;
20
29
  description: string;
30
+ id: string;
21
31
  };
22
32
  plainTextAction: {
23
- id: string;
24
33
  defaultMessage: string;
25
34
  description: string;
26
- };
27
- markdownAction: {
28
35
  id: string;
36
+ };
37
+ richText: {
29
38
  defaultMessage: string;
30
39
  description: string;
40
+ id: string;
31
41
  };
32
42
  richTextAction: {
33
- id: string;
34
43
  defaultMessage: string;
35
44
  description: string;
36
- };
37
- pasteMenuActionsTitle: {
38
45
  id: string;
39
- defaultMessage: string;
40
- description: string;
41
46
  };
42
47
  };
@@ -1,107 +1,122 @@
1
1
  export declare const aiSuggestionsMessages: {
2
- suggestionsToolbarButtonLabel: {
3
- id: string;
2
+ applyChangesButtonLabel: {
4
3
  defaultMessage: string;
5
4
  description: string;
6
- };
7
- suggestionsToolbarButtonLoadingLabel: {
8
5
  id: string;
6
+ };
7
+ cardAcceptButtonLabel: {
9
8
  defaultMessage: string;
10
9
  description: string;
11
- };
12
- suggestionsToolbarButtonReadyLabel: {
13
10
  id: string;
11
+ };
12
+ cardCloseButtonLabel: {
14
13
  defaultMessage: string;
15
14
  description: string;
16
- };
17
- suggestionsToolbarButtonErrorLabel: {
18
15
  id: string;
16
+ };
17
+ cardCollapseButtonLabel: {
19
18
  defaultMessage: string;
20
19
  description: string;
21
- };
22
- previewLabel: {
23
20
  id: string;
21
+ };
22
+ cardDiscardButtonLabel: {
24
23
  defaultMessage: string;
25
24
  description: string;
26
- };
27
- viewLabel: {
28
25
  id: string;
26
+ };
27
+ cardExpandButtonLabel: {
29
28
  defaultMessage: string;
30
29
  description: string;
31
- };
32
- titleLabel: {
33
30
  id: string;
31
+ };
32
+ cardPrivateLabel: {
34
33
  defaultMessage: string;
35
34
  description: string;
35
+ id: string;
36
36
  };
37
- reviewNote: {
37
+ cardRovoTitle: {
38
+ defaultMessage: string;
39
+ description: string;
38
40
  id: string;
41
+ };
42
+ fetchFromSavedContent: {
39
43
  defaultMessage: string;
40
44
  description: string;
45
+ id: string;
41
46
  };
42
- applyChangesButtonLabel: {
47
+ fetchGenerateFromAdf: {
48
+ defaultMessage: string;
49
+ description: string;
43
50
  id: string;
51
+ };
52
+ fetchGenerateFromDocument: {
44
53
  defaultMessage: string;
45
54
  description: string;
55
+ id: string;
46
56
  };
47
57
  fetchSuggestionsButtonLabel: {
48
- id: string;
49
58
  defaultMessage: string;
50
59
  description: string;
60
+ id: string;
51
61
  };
52
62
  fetchSuggestionsButtonLoadingLabel: {
53
- id: string;
54
63
  defaultMessage: string;
55
64
  description: string;
65
+ id: string;
56
66
  };
57
67
  originalViewLabel: {
58
- id: string;
59
68
  defaultMessage: string;
60
69
  description: string;
61
- };
62
- suggestedLabel: {
63
70
  id: string;
71
+ };
72
+ previewLabel: {
64
73
  defaultMessage: string;
65
74
  description: string;
66
- };
67
- suggestionsLabel: {
68
75
  id: string;
76
+ };
77
+ reviewNote: {
69
78
  defaultMessage: string;
70
79
  description: string;
71
- };
72
- cardExpandButtonLabel: {
73
80
  id: string;
81
+ };
82
+ suggestedLabel: {
74
83
  defaultMessage: string;
75
84
  description: string;
76
- };
77
- cardCollapseButtonLabel: {
78
85
  id: string;
86
+ };
87
+ suggestionsLabel: {
79
88
  defaultMessage: string;
80
89
  description: string;
81
- };
82
- cardCloseButtonLabel: {
83
90
  id: string;
91
+ };
92
+ suggestionsToolbarButtonErrorLabel: {
84
93
  defaultMessage: string;
85
94
  description: string;
86
- };
87
- cardRovoTitle: {
88
95
  id: string;
96
+ };
97
+ suggestionsToolbarButtonLabel: {
89
98
  defaultMessage: string;
90
99
  description: string;
91
- };
92
- cardPrivateLabel: {
93
100
  id: string;
101
+ };
102
+ suggestionsToolbarButtonLoadingLabel: {
94
103
  defaultMessage: string;
95
104
  description: string;
96
- };
97
- cardAcceptButtonLabel: {
98
105
  id: string;
106
+ };
107
+ suggestionsToolbarButtonReadyLabel: {
99
108
  defaultMessage: string;
100
109
  description: string;
110
+ id: string;
101
111
  };
102
- cardDiscardButtonLabel: {
112
+ titleLabel: {
113
+ defaultMessage: string;
114
+ description: string;
103
115
  id: string;
116
+ };
117
+ viewLabel: {
104
118
  defaultMessage: string;
105
119
  description: string;
120
+ id: string;
106
121
  };
107
122
  };
@@ -1,42 +1,47 @@
1
1
  export declare const pasteOptionsToolbarMessages: {
2
- pasteOptions: {
3
- id: string;
2
+ markdown: {
4
3
  defaultMessage: string;
5
4
  description: string;
6
- };
7
- plainText: {
8
5
  id: string;
6
+ };
7
+ markdownAction: {
9
8
  defaultMessage: string;
10
9
  description: string;
10
+ id: string;
11
11
  };
12
- markdown: {
12
+ pasteMenuActionsPasteAs: {
13
+ defaultMessage: string;
14
+ description: string;
13
15
  id: string;
16
+ };
17
+ pasteMenuActionsTitle: {
14
18
  defaultMessage: string;
15
19
  description: string;
20
+ id: string;
16
21
  };
17
- richText: {
22
+ pasteOptions: {
23
+ defaultMessage: string;
24
+ description: string;
18
25
  id: string;
26
+ };
27
+ plainText: {
19
28
  defaultMessage: string;
20
29
  description: string;
30
+ id: string;
21
31
  };
22
32
  plainTextAction: {
23
- id: string;
24
33
  defaultMessage: string;
25
34
  description: string;
26
- };
27
- markdownAction: {
28
35
  id: string;
36
+ };
37
+ richText: {
29
38
  defaultMessage: string;
30
39
  description: string;
40
+ id: string;
31
41
  };
32
42
  richTextAction: {
33
- id: string;
34
43
  defaultMessage: string;
35
44
  description: string;
36
- };
37
- pasteMenuActionsTitle: {
38
45
  id: string;
39
- defaultMessage: string;
40
- description: string;
41
46
  };
42
47
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-common",
3
- "version": "112.10.1",
3
+ "version": "112.11.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/"
@@ -81,7 +81,7 @@
81
81
  "@atlaskit/status": "^3.1.0",
82
82
  "@atlaskit/task-decision": "^19.3.0",
83
83
  "@atlaskit/textfield": "^8.2.0",
84
- "@atlaskit/tmp-editor-statsig": "^47.0.0",
84
+ "@atlaskit/tmp-editor-statsig": "^48.0.0",
85
85
  "@atlaskit/tokens": "^11.3.0",
86
86
  "@atlaskit/tooltip": "^21.0.0",
87
87
  "@atlaskit/width-detector": "^5.0.0",