@atlaskit/editor-common 76.12.0 → 76.12.2
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 +15 -0
- package/dist/cjs/i18n/cs.js +41 -1
- package/dist/cjs/i18n/da.js +41 -1
- package/dist/cjs/i18n/de.js +41 -1
- package/dist/cjs/i18n/en.js +44 -1
- package/dist/cjs/i18n/en_GB.js +44 -1
- package/dist/cjs/i18n/en_ZZ.js +44 -1
- package/dist/cjs/i18n/es.js +41 -1
- package/dist/cjs/i18n/fi.js +41 -1
- package/dist/cjs/i18n/fr.js +41 -1
- package/dist/cjs/i18n/hu.js +41 -1
- package/dist/cjs/i18n/it.js +41 -1
- package/dist/cjs/i18n/ja.js +41 -1
- package/dist/cjs/i18n/ko.js +41 -1
- package/dist/cjs/i18n/nb.js +41 -1
- package/dist/cjs/i18n/nl.js +41 -1
- package/dist/cjs/i18n/pl.js +41 -1
- package/dist/cjs/i18n/pt_BR.js +41 -1
- package/dist/cjs/i18n/ru.js +41 -1
- package/dist/cjs/i18n/sv.js +41 -1
- package/dist/cjs/i18n/th.js +41 -1
- package/dist/cjs/i18n/tr.js +41 -1
- package/dist/cjs/i18n/uk.js +41 -1
- package/dist/cjs/i18n/vi.js +41 -1
- package/dist/cjs/i18n/zh.js +41 -1
- package/dist/cjs/i18n/zh_TW.js +41 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/types/selection-toolbar.js +5 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/utils/calculate-toolbar-position.js +146 -0
- package/dist/cjs/utils/index.js +13 -0
- package/dist/es2019/i18n/cs.js +41 -1
- package/dist/es2019/i18n/da.js +41 -1
- package/dist/es2019/i18n/de.js +41 -1
- package/dist/es2019/i18n/en.js +44 -1
- package/dist/es2019/i18n/en_GB.js +44 -1
- package/dist/es2019/i18n/en_ZZ.js +44 -1
- package/dist/es2019/i18n/es.js +41 -1
- package/dist/es2019/i18n/fi.js +41 -1
- package/dist/es2019/i18n/fr.js +41 -1
- package/dist/es2019/i18n/hu.js +41 -1
- package/dist/es2019/i18n/it.js +41 -1
- package/dist/es2019/i18n/ja.js +41 -1
- package/dist/es2019/i18n/ko.js +41 -1
- package/dist/es2019/i18n/nb.js +41 -1
- package/dist/es2019/i18n/nl.js +41 -1
- package/dist/es2019/i18n/pl.js +41 -1
- package/dist/es2019/i18n/pt_BR.js +41 -1
- package/dist/es2019/i18n/ru.js +41 -1
- package/dist/es2019/i18n/sv.js +41 -1
- package/dist/es2019/i18n/th.js +41 -1
- package/dist/es2019/i18n/tr.js +41 -1
- package/dist/es2019/i18n/uk.js +41 -1
- package/dist/es2019/i18n/vi.js +41 -1
- package/dist/es2019/i18n/zh.js +41 -1
- package/dist/es2019/i18n/zh_TW.js +41 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/types/selection-toolbar.js +1 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/utils/calculate-toolbar-position.js +140 -0
- package/dist/es2019/utils/index.js +2 -1
- package/dist/esm/i18n/cs.js +41 -1
- package/dist/esm/i18n/da.js +41 -1
- package/dist/esm/i18n/de.js +41 -1
- package/dist/esm/i18n/en.js +44 -1
- package/dist/esm/i18n/en_GB.js +44 -1
- package/dist/esm/i18n/en_ZZ.js +44 -1
- package/dist/esm/i18n/es.js +41 -1
- package/dist/esm/i18n/fi.js +41 -1
- package/dist/esm/i18n/fr.js +41 -1
- package/dist/esm/i18n/hu.js +41 -1
- package/dist/esm/i18n/it.js +41 -1
- package/dist/esm/i18n/ja.js +41 -1
- package/dist/esm/i18n/ko.js +41 -1
- package/dist/esm/i18n/nb.js +41 -1
- package/dist/esm/i18n/nl.js +41 -1
- package/dist/esm/i18n/pl.js +41 -1
- package/dist/esm/i18n/pt_BR.js +41 -1
- package/dist/esm/i18n/ru.js +41 -1
- package/dist/esm/i18n/sv.js +41 -1
- package/dist/esm/i18n/th.js +41 -1
- package/dist/esm/i18n/tr.js +41 -1
- package/dist/esm/i18n/uk.js +41 -1
- package/dist/esm/i18n/vi.js +41 -1
- package/dist/esm/i18n/zh.js +41 -1
- package/dist/esm/i18n/zh_TW.js +41 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/types/selection-toolbar.js +1 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/utils/calculate-toolbar-position.js +140 -0
- package/dist/esm/utils/index.js +2 -1
- package/dist/types/analytics/types/events.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +41 -1
- package/dist/types/i18n/da.d.ts +41 -1
- package/dist/types/i18n/de.d.ts +41 -1
- package/dist/types/i18n/en.d.ts +44 -1
- package/dist/types/i18n/en_GB.d.ts +44 -1
- package/dist/types/i18n/en_ZZ.d.ts +44 -1
- package/dist/types/i18n/es.d.ts +41 -1
- package/dist/types/i18n/fi.d.ts +41 -1
- package/dist/types/i18n/fr.d.ts +41 -1
- package/dist/types/i18n/hu.d.ts +41 -1
- package/dist/types/i18n/it.d.ts +41 -1
- package/dist/types/i18n/ja.d.ts +41 -1
- package/dist/types/i18n/ko.d.ts +41 -1
- package/dist/types/i18n/nb.d.ts +41 -1
- package/dist/types/i18n/nl.d.ts +41 -1
- package/dist/types/i18n/pl.d.ts +41 -1
- package/dist/types/i18n/pt_BR.d.ts +41 -1
- package/dist/types/i18n/ru.d.ts +41 -1
- package/dist/types/i18n/sv.d.ts +41 -1
- package/dist/types/i18n/th.d.ts +41 -1
- package/dist/types/i18n/tr.d.ts +41 -1
- package/dist/types/i18n/uk.d.ts +41 -1
- package/dist/types/i18n/vi.d.ts +41 -1
- package/dist/types/i18n/zh.d.ts +41 -1
- package/dist/types/i18n/zh_TW.d.ts +41 -1
- package/dist/types/types/editor-plugin.d.ts +9 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/selection-toolbar.d.ts +19 -0
- package/dist/types/ui/MediaSingle/grid.d.ts +2 -2
- package/dist/types/utils/calculate-toolbar-position.d.ts +10 -0
- package/dist/types/utils/extension-handler.d.ts +1 -1
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types-ts4.5/analytics/types/events.d.ts +1 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +41 -1
- package/dist/types-ts4.5/i18n/da.d.ts +41 -1
- package/dist/types-ts4.5/i18n/de.d.ts +41 -1
- package/dist/types-ts4.5/i18n/en.d.ts +44 -1
- package/dist/types-ts4.5/i18n/en_GB.d.ts +44 -1
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +44 -1
- package/dist/types-ts4.5/i18n/es.d.ts +41 -1
- package/dist/types-ts4.5/i18n/fi.d.ts +41 -1
- package/dist/types-ts4.5/i18n/fr.d.ts +41 -1
- package/dist/types-ts4.5/i18n/hu.d.ts +41 -1
- package/dist/types-ts4.5/i18n/it.d.ts +41 -1
- package/dist/types-ts4.5/i18n/ja.d.ts +41 -1
- package/dist/types-ts4.5/i18n/ko.d.ts +41 -1
- package/dist/types-ts4.5/i18n/nb.d.ts +41 -1
- package/dist/types-ts4.5/i18n/nl.d.ts +41 -1
- package/dist/types-ts4.5/i18n/pl.d.ts +41 -1
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +41 -1
- package/dist/types-ts4.5/i18n/ru.d.ts +41 -1
- package/dist/types-ts4.5/i18n/sv.d.ts +41 -1
- package/dist/types-ts4.5/i18n/th.d.ts +41 -1
- package/dist/types-ts4.5/i18n/tr.d.ts +41 -1
- package/dist/types-ts4.5/i18n/uk.d.ts +41 -1
- package/dist/types-ts4.5/i18n/vi.d.ts +41 -1
- package/dist/types-ts4.5/i18n/zh.d.ts +41 -1
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +41 -1
- package/dist/types-ts4.5/types/editor-plugin.d.ts +9 -0
- package/dist/types-ts4.5/types/index.d.ts +1 -0
- package/dist/types-ts4.5/types/selection-toolbar.d.ts +19 -0
- package/dist/types-ts4.5/ui/MediaSingle/grid.d.ts +2 -2
- package/dist/types-ts4.5/utils/calculate-toolbar-position.d.ts +10 -0
- package/dist/types-ts4.5/utils/extension-handler.d.ts +1 -1
- package/dist/types-ts4.5/utils/index.d.ts +1 -0
- package/package.json +5 -4
|
@@ -8,13 +8,19 @@ declare const _default: {
|
|
|
8
8
|
'fabric.editor.action': string;
|
|
9
9
|
'fabric.editor.action.description': string;
|
|
10
10
|
'fabric.editor.addMediaFiles': string;
|
|
11
|
+
'fabric.editor.alignCenter': string;
|
|
11
12
|
'fabric.editor.alignImageCenter': string;
|
|
12
13
|
'fabric.editor.alignImageLeft': string;
|
|
13
14
|
'fabric.editor.alignImageRight': string;
|
|
15
|
+
'fabric.editor.alignLeft': string;
|
|
16
|
+
'fabric.editor.alignRight': string;
|
|
17
|
+
'fabric.editor.annotationToolbar': string;
|
|
14
18
|
'fabric.editor.blockCardUnavailable': string;
|
|
15
19
|
'fabric.editor.blockDescription': string;
|
|
16
20
|
'fabric.editor.blockTitle': string;
|
|
17
21
|
'fabric.editor.blockquote': string;
|
|
22
|
+
'fabric.editor.blockquote.description': string;
|
|
23
|
+
'fabric.editor.blockquote2': string;
|
|
18
24
|
'fabric.editor.bold': string;
|
|
19
25
|
'fabric.editor.bug': string;
|
|
20
26
|
'fabric.editor.cancelButton': string;
|
|
@@ -30,11 +36,17 @@ declare const _default: {
|
|
|
30
36
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
31
37
|
'fabric.editor.codeBlockWrapButton.unwrapCodeBlock': string;
|
|
32
38
|
'fabric.editor.codeBlockWrapButton.wrapCodeBlock': string;
|
|
39
|
+
'fabric.editor.codeblock': string;
|
|
40
|
+
'fabric.editor.codeblock.description': string;
|
|
33
41
|
'fabric.editor.collapseNode': string;
|
|
34
42
|
'fabric.editor.columns': string;
|
|
35
43
|
'fabric.editor.columns.description': string;
|
|
36
44
|
'fabric.editor.copiedToClipboard': string;
|
|
37
45
|
'fabric.editor.copyToClipboard': string;
|
|
46
|
+
'fabric.editor.createComment': string;
|
|
47
|
+
'fabric.editor.createCommentInvalid': string;
|
|
48
|
+
'fabric.editor.customPanel': string;
|
|
49
|
+
'fabric.editor.customPanel.description': string;
|
|
38
50
|
'fabric.editor.datasourceTitle': string;
|
|
39
51
|
'fabric.editor.date': string;
|
|
40
52
|
'fabric.editor.date.description': string;
|
|
@@ -61,6 +73,8 @@ declare const _default: {
|
|
|
61
73
|
'fabric.editor.emoji.description': string;
|
|
62
74
|
'fabric.editor.emptyLink': string;
|
|
63
75
|
'fabric.editor.epic': string;
|
|
76
|
+
'fabric.editor.errorPanel': string;
|
|
77
|
+
'fabric.editor.errorPanel.description': string;
|
|
64
78
|
'fabric.editor.expand': string;
|
|
65
79
|
'fabric.editor.expand.description': string;
|
|
66
80
|
'fabric.editor.expandDefaultTitle': string;
|
|
@@ -68,6 +82,18 @@ declare const _default: {
|
|
|
68
82
|
'fabric.editor.expandPlaceholder': string;
|
|
69
83
|
'fabric.editor.feedbackDialog': string;
|
|
70
84
|
'fabric.editor.feedbackDialog.description': string;
|
|
85
|
+
'fabric.editor.heading1': string;
|
|
86
|
+
'fabric.editor.heading1Description': string;
|
|
87
|
+
'fabric.editor.heading2': string;
|
|
88
|
+
'fabric.editor.heading2Description': string;
|
|
89
|
+
'fabric.editor.heading3': string;
|
|
90
|
+
'fabric.editor.heading3Description': string;
|
|
91
|
+
'fabric.editor.heading4': string;
|
|
92
|
+
'fabric.editor.heading4Description': string;
|
|
93
|
+
'fabric.editor.heading5': string;
|
|
94
|
+
'fabric.editor.heading5Description': string;
|
|
95
|
+
'fabric.editor.heading6': string;
|
|
96
|
+
'fabric.editor.heading6Description': string;
|
|
71
97
|
'fabric.editor.headingLink.hyperlinkIconBlogLabel': string;
|
|
72
98
|
'fabric.editor.headingLink.hyperlinkIconBugLabel': string;
|
|
73
99
|
'fabric.editor.headingLink.hyperlinkIconIssueLabel': string;
|
|
@@ -78,12 +104,15 @@ declare const _default: {
|
|
|
78
104
|
'fabric.editor.help.description': string;
|
|
79
105
|
'fabric.editor.horizontalRule': string;
|
|
80
106
|
'fabric.editor.horizontalRule.description': string;
|
|
81
|
-
'fabric.editor.hyperlink.
|
|
107
|
+
'fabric.editor.hyperlink.linkVisibleLabel': string;
|
|
82
108
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
83
109
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
110
|
+
'fabric.editor.hyperlink.textVisibleLabel': string;
|
|
84
111
|
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
85
112
|
'fabric.editor.image': string;
|
|
86
113
|
'fabric.editor.improvement': string;
|
|
114
|
+
'fabric.editor.infoPanel': string;
|
|
115
|
+
'fabric.editor.infoPanel.description': string;
|
|
87
116
|
'fabric.editor.inlineDescription': string;
|
|
88
117
|
'fabric.editor.inlineTitle': string;
|
|
89
118
|
'fabric.editor.insertMenu': string;
|
|
@@ -105,14 +134,19 @@ declare const _default: {
|
|
|
105
134
|
'fabric.editor.moreFormatting': string;
|
|
106
135
|
'fabric.editor.navigate.toolbar.editor': string;
|
|
107
136
|
'fabric.editor.navigate.toolbar.floating': string;
|
|
137
|
+
'fabric.editor.normal': string;
|
|
138
|
+
'fabric.editor.notePanel': string;
|
|
139
|
+
'fabric.editor.notePanel.description': string;
|
|
108
140
|
'fabric.editor.off': string;
|
|
109
141
|
'fabric.editor.on': string;
|
|
110
142
|
'fabric.editor.openLink': string;
|
|
111
143
|
'fabric.editor.orderedList': string;
|
|
112
144
|
'fabric.editor.orderedList.description': string;
|
|
145
|
+
'fabric.editor.other': string;
|
|
113
146
|
'fabric.editor.pageActionsLabel': string;
|
|
114
147
|
'fabric.editor.placeholderText': string;
|
|
115
148
|
'fabric.editor.placeholderText.description': string;
|
|
149
|
+
'fabric.editor.redo': string;
|
|
116
150
|
'fabric.editor.remove': string;
|
|
117
151
|
'fabric.editor.removeEmoji': string;
|
|
118
152
|
'fabric.editor.saveButton': string;
|
|
@@ -124,12 +158,15 @@ declare const _default: {
|
|
|
124
158
|
'fabric.editor.subTask': string;
|
|
125
159
|
'fabric.editor.subscript': string;
|
|
126
160
|
'fabric.editor.subscript.off.superscript.on': string;
|
|
161
|
+
'fabric.editor.successPanel': string;
|
|
162
|
+
'fabric.editor.successPanel.description': string;
|
|
127
163
|
'fabric.editor.superscript': string;
|
|
128
164
|
'fabric.editor.superscript.off.subscript.on': string;
|
|
129
165
|
'fabric.editor.table': string;
|
|
130
166
|
'fabric.editor.table.description': string;
|
|
131
167
|
'fabric.editor.task': string;
|
|
132
168
|
'fabric.editor.text.formatting.off': string;
|
|
169
|
+
'fabric.editor.textStyles': string;
|
|
133
170
|
'fabric.editor.time.ago': string;
|
|
134
171
|
'fabric.editor.time.updated': string;
|
|
135
172
|
'fabric.editor.time.viewed': string;
|
|
@@ -142,6 +179,7 @@ declare const _default: {
|
|
|
142
179
|
'fabric.editor.tooltip.taskList': string;
|
|
143
180
|
'fabric.editor.unableToOpenLink': string;
|
|
144
181
|
'fabric.editor.underline': string;
|
|
182
|
+
'fabric.editor.undo': string;
|
|
145
183
|
'fabric.editor.unlink': string;
|
|
146
184
|
'fabric.editor.unorderedList': string;
|
|
147
185
|
'fabric.editor.unorderedList.description': string;
|
|
@@ -153,6 +191,8 @@ declare const _default: {
|
|
|
153
191
|
'fabric.editor.urlTitle': string;
|
|
154
192
|
'fabric.editor.viewMore': string;
|
|
155
193
|
'fabric.editor.visit': string;
|
|
194
|
+
'fabric.editor.warningPanel': string;
|
|
195
|
+
'fabric.editor.warningPanel.description': string;
|
|
156
196
|
'fabric.editor.wrapLeft': string;
|
|
157
197
|
'fabric.editor.wrapRight': string;
|
|
158
198
|
'fabric.theme.blue': string;
|
|
@@ -8,13 +8,19 @@ declare const _default: {
|
|
|
8
8
|
'fabric.editor.action': string;
|
|
9
9
|
'fabric.editor.action.description': string;
|
|
10
10
|
'fabric.editor.addMediaFiles': string;
|
|
11
|
+
'fabric.editor.alignCenter': string;
|
|
11
12
|
'fabric.editor.alignImageCenter': string;
|
|
12
13
|
'fabric.editor.alignImageLeft': string;
|
|
13
14
|
'fabric.editor.alignImageRight': string;
|
|
15
|
+
'fabric.editor.alignLeft': string;
|
|
16
|
+
'fabric.editor.alignRight': string;
|
|
17
|
+
'fabric.editor.annotationToolbar': string;
|
|
14
18
|
'fabric.editor.blockCardUnavailable': string;
|
|
15
19
|
'fabric.editor.blockDescription': string;
|
|
16
20
|
'fabric.editor.blockTitle': string;
|
|
17
21
|
'fabric.editor.blockquote': string;
|
|
22
|
+
'fabric.editor.blockquote.description': string;
|
|
23
|
+
'fabric.editor.blockquote2': string;
|
|
18
24
|
'fabric.editor.bold': string;
|
|
19
25
|
'fabric.editor.bug': string;
|
|
20
26
|
'fabric.editor.cancelButton': string;
|
|
@@ -30,11 +36,17 @@ declare const _default: {
|
|
|
30
36
|
'fabric.editor.codeBlockCopyButton.copyToClipboard': string;
|
|
31
37
|
'fabric.editor.codeBlockWrapButton.unwrapCodeBlock': string;
|
|
32
38
|
'fabric.editor.codeBlockWrapButton.wrapCodeBlock': string;
|
|
39
|
+
'fabric.editor.codeblock': string;
|
|
40
|
+
'fabric.editor.codeblock.description': string;
|
|
33
41
|
'fabric.editor.collapseNode': string;
|
|
34
42
|
'fabric.editor.columns': string;
|
|
35
43
|
'fabric.editor.columns.description': string;
|
|
36
44
|
'fabric.editor.copiedToClipboard': string;
|
|
37
45
|
'fabric.editor.copyToClipboard': string;
|
|
46
|
+
'fabric.editor.createComment': string;
|
|
47
|
+
'fabric.editor.createCommentInvalid': string;
|
|
48
|
+
'fabric.editor.customPanel': string;
|
|
49
|
+
'fabric.editor.customPanel.description': string;
|
|
38
50
|
'fabric.editor.datasourceTitle': string;
|
|
39
51
|
'fabric.editor.date': string;
|
|
40
52
|
'fabric.editor.date.description': string;
|
|
@@ -61,6 +73,8 @@ declare const _default: {
|
|
|
61
73
|
'fabric.editor.emoji.description': string;
|
|
62
74
|
'fabric.editor.emptyLink': string;
|
|
63
75
|
'fabric.editor.epic': string;
|
|
76
|
+
'fabric.editor.errorPanel': string;
|
|
77
|
+
'fabric.editor.errorPanel.description': string;
|
|
64
78
|
'fabric.editor.expand': string;
|
|
65
79
|
'fabric.editor.expand.description': string;
|
|
66
80
|
'fabric.editor.expandDefaultTitle': string;
|
|
@@ -68,6 +82,18 @@ declare const _default: {
|
|
|
68
82
|
'fabric.editor.expandPlaceholder': string;
|
|
69
83
|
'fabric.editor.feedbackDialog': string;
|
|
70
84
|
'fabric.editor.feedbackDialog.description': string;
|
|
85
|
+
'fabric.editor.heading1': string;
|
|
86
|
+
'fabric.editor.heading1Description': string;
|
|
87
|
+
'fabric.editor.heading2': string;
|
|
88
|
+
'fabric.editor.heading2Description': string;
|
|
89
|
+
'fabric.editor.heading3': string;
|
|
90
|
+
'fabric.editor.heading3Description': string;
|
|
91
|
+
'fabric.editor.heading4': string;
|
|
92
|
+
'fabric.editor.heading4Description': string;
|
|
93
|
+
'fabric.editor.heading5': string;
|
|
94
|
+
'fabric.editor.heading5Description': string;
|
|
95
|
+
'fabric.editor.heading6': string;
|
|
96
|
+
'fabric.editor.heading6Description': string;
|
|
71
97
|
'fabric.editor.headingLink.hyperlinkIconBlogLabel': string;
|
|
72
98
|
'fabric.editor.headingLink.hyperlinkIconBugLabel': string;
|
|
73
99
|
'fabric.editor.headingLink.hyperlinkIconIssueLabel': string;
|
|
@@ -78,12 +104,15 @@ declare const _default: {
|
|
|
78
104
|
'fabric.editor.help.description': string;
|
|
79
105
|
'fabric.editor.horizontalRule': string;
|
|
80
106
|
'fabric.editor.horizontalRule.description': string;
|
|
81
|
-
'fabric.editor.hyperlink.
|
|
107
|
+
'fabric.editor.hyperlink.linkVisibleLabel': string;
|
|
82
108
|
'fabric.editor.hyperlink.searchLinkAriaDescription': string;
|
|
83
109
|
'fabric.editor.hyperlink.searchLinkResults': string;
|
|
110
|
+
'fabric.editor.hyperlink.textVisibleLabel': string;
|
|
84
111
|
'fabric.editor.hyperlinkToolbarPlaceholder': string;
|
|
85
112
|
'fabric.editor.image': string;
|
|
86
113
|
'fabric.editor.improvement': string;
|
|
114
|
+
'fabric.editor.infoPanel': string;
|
|
115
|
+
'fabric.editor.infoPanel.description': string;
|
|
87
116
|
'fabric.editor.inlineDescription': string;
|
|
88
117
|
'fabric.editor.inlineTitle': string;
|
|
89
118
|
'fabric.editor.insertMenu': string;
|
|
@@ -105,14 +134,19 @@ declare const _default: {
|
|
|
105
134
|
'fabric.editor.moreFormatting': string;
|
|
106
135
|
'fabric.editor.navigate.toolbar.editor': string;
|
|
107
136
|
'fabric.editor.navigate.toolbar.floating': string;
|
|
137
|
+
'fabric.editor.normal': string;
|
|
138
|
+
'fabric.editor.notePanel': string;
|
|
139
|
+
'fabric.editor.notePanel.description': string;
|
|
108
140
|
'fabric.editor.off': string;
|
|
109
141
|
'fabric.editor.on': string;
|
|
110
142
|
'fabric.editor.openLink': string;
|
|
111
143
|
'fabric.editor.orderedList': string;
|
|
112
144
|
'fabric.editor.orderedList.description': string;
|
|
145
|
+
'fabric.editor.other': string;
|
|
113
146
|
'fabric.editor.pageActionsLabel': string;
|
|
114
147
|
'fabric.editor.placeholderText': string;
|
|
115
148
|
'fabric.editor.placeholderText.description': string;
|
|
149
|
+
'fabric.editor.redo': string;
|
|
116
150
|
'fabric.editor.remove': string;
|
|
117
151
|
'fabric.editor.removeEmoji': string;
|
|
118
152
|
'fabric.editor.saveButton': string;
|
|
@@ -124,12 +158,15 @@ declare const _default: {
|
|
|
124
158
|
'fabric.editor.subTask': string;
|
|
125
159
|
'fabric.editor.subscript': string;
|
|
126
160
|
'fabric.editor.subscript.off.superscript.on': string;
|
|
161
|
+
'fabric.editor.successPanel': string;
|
|
162
|
+
'fabric.editor.successPanel.description': string;
|
|
127
163
|
'fabric.editor.superscript': string;
|
|
128
164
|
'fabric.editor.superscript.off.subscript.on': string;
|
|
129
165
|
'fabric.editor.table': string;
|
|
130
166
|
'fabric.editor.table.description': string;
|
|
131
167
|
'fabric.editor.task': string;
|
|
132
168
|
'fabric.editor.text.formatting.off': string;
|
|
169
|
+
'fabric.editor.textStyles': string;
|
|
133
170
|
'fabric.editor.time.ago': string;
|
|
134
171
|
'fabric.editor.time.updated': string;
|
|
135
172
|
'fabric.editor.time.viewed': string;
|
|
@@ -142,6 +179,7 @@ declare const _default: {
|
|
|
142
179
|
'fabric.editor.tooltip.taskList': string;
|
|
143
180
|
'fabric.editor.unableToOpenLink': string;
|
|
144
181
|
'fabric.editor.underline': string;
|
|
182
|
+
'fabric.editor.undo': string;
|
|
145
183
|
'fabric.editor.unlink': string;
|
|
146
184
|
'fabric.editor.unorderedList': string;
|
|
147
185
|
'fabric.editor.unorderedList.description': string;
|
|
@@ -153,6 +191,8 @@ declare const _default: {
|
|
|
153
191
|
'fabric.editor.urlTitle': string;
|
|
154
192
|
'fabric.editor.viewMore': string;
|
|
155
193
|
'fabric.editor.visit': string;
|
|
194
|
+
'fabric.editor.warningPanel': string;
|
|
195
|
+
'fabric.editor.warningPanel.description': string;
|
|
156
196
|
'fabric.editor.wrapLeft': string;
|
|
157
197
|
'fabric.editor.wrapRight': string;
|
|
158
198
|
'fabric.theme.blue': string;
|
|
@@ -4,6 +4,7 @@ import type { FloatingToolbarHandler } from './floating-toolbar';
|
|
|
4
4
|
import type { PMPlugin } from './plugin-factory';
|
|
5
5
|
import type { MarkConfig, NodeConfig } from './prosemirror-config';
|
|
6
6
|
import type { QuickInsertHandler } from './quick-insert';
|
|
7
|
+
import type { SelectionToolbarHandler } from './selection-toolbar';
|
|
7
8
|
import type { ToolbarUIComponentFactory } from './toolbar';
|
|
8
9
|
import type { TypeAheadHandler } from './type-ahead';
|
|
9
10
|
import type { ReactHookFactory, UIComponentFactory } from './ui-components';
|
|
@@ -18,6 +19,14 @@ export type PluginsOptions = {
|
|
|
18
19
|
* See: `FloatingToolbarConfig`
|
|
19
20
|
*/
|
|
20
21
|
floatingToolbar?: FloatingToolbarHandler;
|
|
22
|
+
/**
|
|
23
|
+
* The selection toolbar is a floating toolbar that is displayed for
|
|
24
|
+
* range selections when any plugins return a selection toolbar group with
|
|
25
|
+
* items.
|
|
26
|
+
* @private
|
|
27
|
+
* @deprecated Do not use this plugin option, it is for AI purposes only and will be removed soon.
|
|
28
|
+
*/
|
|
29
|
+
selectionToolbar?: SelectionToolbarHandler;
|
|
21
30
|
/**
|
|
22
31
|
* Handler returning a React component that is added to the context panel.
|
|
23
32
|
*
|
|
@@ -50,3 +50,4 @@ export type { LayoutPluginOptions } from './layout';
|
|
|
50
50
|
export type { LongPressSelectionPluginOptions } from './selection';
|
|
51
51
|
export type { QuickInsertPluginState, QuickInsertPluginStateKeys, QuickInsertOptions, QuickInsertPluginOptions, QuickInsertSearchOptions, QuickInsertSharedState, QuickInsertHandler, } from './quick-insert';
|
|
52
52
|
export type { Refs, RefsNode, DocBuilder } from './doc-builder';
|
|
53
|
+
export type { SelectionToolbarGroup, SelectionToolbarHandler, } from './selection-toolbar';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { IntlShape } from 'react-intl-next';
|
|
2
|
+
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
+
import type { ProviderFactory } from '../provider-factory';
|
|
4
|
+
import type { Command } from './command';
|
|
5
|
+
import type { FloatingToolbarItem } from './floating-toolbar';
|
|
6
|
+
export type SelectionToolbarGroup = {
|
|
7
|
+
/**
|
|
8
|
+
* by default these will be added in the order the plugin adds them
|
|
9
|
+
* To override this a rank can be provided
|
|
10
|
+
*/
|
|
11
|
+
rank?: number;
|
|
12
|
+
items: Array<FloatingToolbarItem<Command>>;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The selection toolbar is a floating toolbar that is displayed for
|
|
16
|
+
* range selections when any plugins return a selection toolbar group with
|
|
17
|
+
* items.
|
|
18
|
+
*/
|
|
19
|
+
export type SelectionToolbarHandler = (state: EditorState, intl: IntlShape, providerFactory: ProviderFactory) => SelectionToolbarGroup | undefined;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
1
|
+
import type { RichMediaLayout as MediaSingleLayout } from '@atlaskit/adf-schema';
|
|
2
2
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import { EditorContainerWidth } from '../../types';
|
|
3
|
+
import type { EditorContainerWidth } from '../../types';
|
|
4
4
|
export declare const layoutSupportsWidth: (layout: MediaSingleLayout) => boolean;
|
|
5
5
|
export declare function calcPxFromColumns(columns: number, lineLength: number, gridSize: number): number;
|
|
6
6
|
export declare function calcColumnsFromPx(width: number, lineLength: number, gridSize: number): number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
import type { PopupPosition as Position } from '../ui';
|
|
3
|
+
export declare const calculateToolbarPositionAboveSelection: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
|
|
4
|
+
export declare const calculateToolbarPositionTrackHead: (toolbarTitle: string) => (editorView: EditorView, nextPos: Position) => Position;
|
|
5
|
+
export type CoordsAtPos = {
|
|
6
|
+
top: number;
|
|
7
|
+
bottom: number;
|
|
8
|
+
left: number;
|
|
9
|
+
right: number;
|
|
10
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Extension, ExtensionHandler, Parameters } from '../extensions/types';
|
|
1
|
+
import type { Extension, ExtensionHandler, Parameters } from '../extensions/types';
|
|
2
2
|
export declare function getExtensionRenderer<T extends Parameters>(extensionHandler: Extension<T> | ExtensionHandler<T>): ExtensionHandler<T>;
|
|
@@ -84,3 +84,4 @@ export { dedupe } from './dedupe';
|
|
|
84
84
|
export { createWrapSelectionTransaction } from './create-wrap-selection-transaction';
|
|
85
85
|
export { wrapSelectionIn } from './wrap-selection-in';
|
|
86
86
|
export { toJSON, nodeToJSON } from './nodes';
|
|
87
|
+
export { calculateToolbarPositionAboveSelection, calculateToolbarPositionTrackHead, } from './calculate-toolbar-position';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.12.
|
|
3
|
+
"version": "76.12.2",
|
|
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/"
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
106
106
|
"@atlaskit/link-datasource": "^1.9.0",
|
|
107
107
|
"@atlaskit/link-picker": "^1.30.0",
|
|
108
|
-
"@atlaskit/media-card": "^77.
|
|
108
|
+
"@atlaskit/media-card": "^77.2.0",
|
|
109
109
|
"@atlaskit/media-client": "^24.0.0",
|
|
110
110
|
"@atlaskit/media-picker": "^66.2.0",
|
|
111
111
|
"@atlaskit/mention": "^22.1.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"@atlaskit/task-decision": "^17.9.0",
|
|
118
118
|
"@atlaskit/textfield": "^5.6.0",
|
|
119
119
|
"@atlaskit/theme": "^12.6.0",
|
|
120
|
-
"@atlaskit/tokens": "^1.
|
|
120
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
121
121
|
"@atlaskit/tooltip": "^17.8.0",
|
|
122
122
|
"@atlaskit/ufo": "^0.2.0",
|
|
123
123
|
"@atlaskit/width-detector": "^4.1.0",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"devDependencies": {
|
|
154
154
|
"@atlaskit/media-core": "^34.1.0",
|
|
155
155
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
156
|
-
"@atlaskit/smart-card": "^26.
|
|
156
|
+
"@atlaskit/smart-card": "^26.37.0",
|
|
157
157
|
"@atlaskit/util-data-test": "^17.8.0",
|
|
158
158
|
"@atlaskit/visual-regression": "*",
|
|
159
159
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
@@ -164,6 +164,7 @@
|
|
|
164
164
|
"@testing-library/react": "^12.1.5",
|
|
165
165
|
"@testing-library/react-hooks": "^8.0.1",
|
|
166
166
|
"@testing-library/user-event": "^14.4.3",
|
|
167
|
+
"@types/markdown-it": "^12.2.3",
|
|
167
168
|
"@types/raf-schd": "^4.0.1",
|
|
168
169
|
"@types/react-virtualized": "^9.18.12",
|
|
169
170
|
"enzyme": "^3.10.0",
|