@atlaskit/editor-common 76.34.0 → 76.36.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 +53 -1
- package/dist/cjs/collab/index.js +27 -2
- package/dist/cjs/core-utils/document-logger.js +171 -0
- package/dist/cjs/core-utils/index.js +8 -1
- package/dist/cjs/extensibility/Extension/Extension/index.js +151 -0
- package/dist/cjs/extensibility/Extension/Extension/styles.js +17 -0
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +50 -0
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +12 -0
- package/dist/cjs/extensibility/Extension/Lozenge.js +95 -0
- package/dist/cjs/extensibility/Extension/styles.js +30 -0
- package/dist/cjs/extensibility/Extension.js +79 -0
- package/dist/cjs/extensibility/ExtensionComponent.js +252 -0
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +21 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +264 -0
- package/dist/cjs/extensibility/extensionNodeView.js +91 -0
- package/dist/cjs/extensibility/index.js +42 -0
- package/dist/cjs/extensibility/types.js +5 -0
- package/dist/cjs/i18n/cs.js +5 -2
- package/dist/cjs/i18n/da.js +5 -2
- package/dist/cjs/i18n/de.js +5 -2
- package/dist/cjs/i18n/en.js +7 -1
- package/dist/cjs/i18n/en_GB.js +8 -2
- package/dist/cjs/i18n/en_ZZ.js +8 -2
- package/dist/cjs/i18n/es.js +5 -2
- package/dist/cjs/i18n/fi.js +5 -2
- package/dist/cjs/i18n/fr.js +5 -2
- package/dist/cjs/i18n/hu.js +5 -2
- package/dist/cjs/i18n/it.js +5 -2
- package/dist/cjs/i18n/ja.js +1 -2
- package/dist/cjs/i18n/ko.js +5 -2
- package/dist/cjs/i18n/nb.js +1 -2
- package/dist/cjs/i18n/nl.js +5 -2
- package/dist/cjs/i18n/pl.js +5 -2
- package/dist/cjs/i18n/pt_BR.js +5 -2
- package/dist/cjs/i18n/ru.js +5 -2
- package/dist/cjs/i18n/sv.js +5 -2
- package/dist/cjs/i18n/th.js +5 -2
- package/dist/cjs/i18n/tr.js +5 -2
- package/dist/cjs/i18n/uk.js +5 -2
- package/dist/cjs/i18n/vi.js +5 -2
- package/dist/cjs/i18n/zh.js +5 -2
- package/dist/cjs/i18n/zh_TW.js +5 -2
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/index.js +1 -2
- package/dist/cjs/monitoring/error.js +3 -2
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/es2019/collab/index.js +54 -1
- package/dist/es2019/core-utils/document-logger.js +161 -0
- package/dist/es2019/core-utils/index.js +2 -1
- package/dist/es2019/extensibility/Extension/Extension/index.js +155 -0
- package/dist/es2019/extensibility/Extension/Extension/styles.js +42 -0
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +26 -0
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +26 -0
- package/dist/es2019/extensibility/Extension/Lozenge.js +71 -0
- package/dist/es2019/extensibility/Extension/styles.js +62 -0
- package/dist/es2019/extensibility/Extension.js +52 -0
- package/dist/es2019/extensibility/ExtensionComponent.js +204 -0
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +13 -0
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +283 -0
- package/dist/es2019/extensibility/extensionNodeView.js +62 -0
- package/dist/es2019/extensibility/index.js +4 -0
- package/dist/es2019/extensibility/types.js +1 -0
- package/dist/es2019/i18n/cs.js +5 -2
- package/dist/es2019/i18n/da.js +5 -2
- package/dist/es2019/i18n/de.js +5 -2
- package/dist/es2019/i18n/en.js +7 -1
- package/dist/es2019/i18n/en_GB.js +8 -2
- package/dist/es2019/i18n/en_ZZ.js +8 -2
- package/dist/es2019/i18n/es.js +5 -2
- package/dist/es2019/i18n/fi.js +5 -2
- package/dist/es2019/i18n/fr.js +5 -2
- package/dist/es2019/i18n/hu.js +5 -2
- package/dist/es2019/i18n/it.js +5 -2
- package/dist/es2019/i18n/ja.js +1 -2
- package/dist/es2019/i18n/ko.js +5 -2
- package/dist/es2019/i18n/nb.js +1 -2
- package/dist/es2019/i18n/nl.js +5 -2
- package/dist/es2019/i18n/pl.js +5 -2
- package/dist/es2019/i18n/pt_BR.js +5 -2
- package/dist/es2019/i18n/ru.js +5 -2
- package/dist/es2019/i18n/sv.js +5 -2
- package/dist/es2019/i18n/th.js +5 -2
- package/dist/es2019/i18n/tr.js +5 -2
- package/dist/es2019/i18n/uk.js +5 -2
- package/dist/es2019/i18n/vi.js +5 -2
- package/dist/es2019/i18n/zh.js +5 -2
- package/dist/es2019/i18n/zh_TW.js +5 -2
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -1
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/index.js +1 -4
- package/dist/es2019/monitoring/error.js +3 -2
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/esm/collab/index.js +23 -1
- package/dist/esm/core-utils/document-logger.js +165 -0
- package/dist/esm/core-utils/index.js +2 -1
- package/dist/esm/extensibility/Extension/Extension/index.js +146 -0
- package/dist/esm/extensibility/Extension/Extension/styles.js +10 -0
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +43 -0
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +5 -0
- package/dist/esm/extensibility/Extension/Lozenge.js +90 -0
- package/dist/esm/extensibility/Extension/styles.js +11 -0
- package/dist/esm/extensibility/Extension.js +69 -0
- package/dist/esm/extensibility/ExtensionComponent.js +243 -0
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +14 -0
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +257 -0
- package/dist/esm/extensibility/extensionNodeView.js +83 -0
- package/dist/esm/extensibility/index.js +4 -0
- package/dist/esm/extensibility/types.js +1 -0
- package/dist/esm/i18n/cs.js +5 -2
- package/dist/esm/i18n/da.js +5 -2
- package/dist/esm/i18n/de.js +5 -2
- package/dist/esm/i18n/en.js +7 -1
- package/dist/esm/i18n/en_GB.js +8 -2
- package/dist/esm/i18n/en_ZZ.js +8 -2
- package/dist/esm/i18n/es.js +5 -2
- package/dist/esm/i18n/fi.js +5 -2
- package/dist/esm/i18n/fr.js +5 -2
- package/dist/esm/i18n/hu.js +5 -2
- package/dist/esm/i18n/it.js +5 -2
- package/dist/esm/i18n/ja.js +1 -2
- package/dist/esm/i18n/ko.js +5 -2
- package/dist/esm/i18n/nb.js +1 -2
- package/dist/esm/i18n/nl.js +5 -2
- package/dist/esm/i18n/pl.js +5 -2
- package/dist/esm/i18n/pt_BR.js +5 -2
- package/dist/esm/i18n/ru.js +5 -2
- package/dist/esm/i18n/sv.js +5 -2
- package/dist/esm/i18n/th.js +5 -2
- package/dist/esm/i18n/tr.js +5 -2
- package/dist/esm/i18n/uk.js +5 -2
- package/dist/esm/i18n/vi.js +5 -2
- package/dist/esm/i18n/zh.js +5 -2
- package/dist/esm/i18n/zh_TW.js +5 -2
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -1
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/index.js +1 -2
- package/dist/esm/monitoring/error.js +3 -2
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/types/collab/index.d.ts +7 -0
- package/dist/types/core-utils/document-logger.d.ts +6 -0
- package/dist/types/core-utils/index.d.ts +1 -0
- package/dist/types/extensibility/Extension/Extension/index.d.ts +108 -0
- package/dist/types/extensibility/Extension/Extension/styles.d.ts +5 -0
- package/dist/types/extensibility/Extension/InlineExtension/index.d.ts +12 -0
- package/dist/types/extensibility/Extension/InlineExtension/styles.d.ts +1 -0
- package/dist/types/extensibility/Extension/Lozenge.d.ts +14 -0
- package/dist/types/extensibility/Extension/styles.d.ts +7 -0
- package/dist/types/extensibility/Extension.d.ts +29 -0
- package/dist/types/extensibility/ExtensionComponent.d.ts +53 -0
- package/dist/types/extensibility/ExtensionNodeWrapper.d.ts +14 -0
- package/dist/types/extensibility/MultiBodiedExtension/index.d.ts +26 -0
- package/dist/types/extensibility/extensionNodeView.d.ts +31 -0
- package/dist/types/extensibility/index.d.ts +4 -0
- package/dist/types/extensibility/types.d.ts +6 -0
- package/dist/types/i18n/cs.d.ts +5 -2
- package/dist/types/i18n/da.d.ts +5 -2
- package/dist/types/i18n/de.d.ts +5 -2
- package/dist/types/i18n/en.d.ts +7 -1
- package/dist/types/i18n/en_GB.d.ts +7 -1
- package/dist/types/i18n/en_ZZ.d.ts +7 -1
- package/dist/types/i18n/es.d.ts +5 -2
- package/dist/types/i18n/fi.d.ts +5 -2
- package/dist/types/i18n/fr.d.ts +5 -2
- package/dist/types/i18n/hu.d.ts +5 -2
- package/dist/types/i18n/it.d.ts +5 -2
- package/dist/types/i18n/ja.d.ts +1 -2
- package/dist/types/i18n/ko.d.ts +5 -2
- package/dist/types/i18n/nb.d.ts +1 -2
- package/dist/types/i18n/nl.d.ts +5 -2
- package/dist/types/i18n/pl.d.ts +5 -2
- package/dist/types/i18n/pt_BR.d.ts +5 -2
- package/dist/types/i18n/ru.d.ts +5 -2
- package/dist/types/i18n/sv.d.ts +5 -2
- package/dist/types/i18n/th.d.ts +5 -2
- package/dist/types/i18n/tr.d.ts +5 -2
- package/dist/types/i18n/uk.d.ts +5 -2
- package/dist/types/i18n/vi.d.ts +5 -2
- package/dist/types/i18n/zh.d.ts +5 -2
- package/dist/types/i18n/zh_TW.d.ts +5 -2
- package/dist/types/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +7 -7
- package/dist/types/types/floating-toolbar.d.ts +1 -1
- package/dist/types/types/hyperlink.d.ts +1 -0
- package/dist/types/types/index.d.ts +1 -1
- package/dist/types/types/next-editor-plugin.d.ts +0 -1
- package/dist/types/ui/DropList/index.d.ts +1 -1
- package/dist/types/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types/ui/with-outer-listeners.d.ts +2 -2
- package/dist/types/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/dist/types/ui-menu/ToolbarButton/index.d.ts +1 -1
- package/dist/types/ui-react/with-react-editor-view-outer-listeners.d.ts +2 -2
- package/dist/types-ts4.5/collab/index.d.ts +7 -0
- package/dist/types-ts4.5/core-utils/document-logger.d.ts +6 -0
- package/dist/types-ts4.5/core-utils/index.d.ts +1 -0
- package/dist/types-ts4.5/extensibility/Extension/Extension/index.d.ts +108 -0
- package/dist/types-ts4.5/extensibility/Extension/Extension/styles.d.ts +5 -0
- package/dist/types-ts4.5/extensibility/Extension/InlineExtension/index.d.ts +12 -0
- package/dist/types-ts4.5/extensibility/Extension/InlineExtension/styles.d.ts +1 -0
- package/dist/types-ts4.5/extensibility/Extension/Lozenge.d.ts +14 -0
- package/dist/types-ts4.5/extensibility/Extension/styles.d.ts +7 -0
- package/dist/types-ts4.5/extensibility/Extension.d.ts +29 -0
- package/dist/types-ts4.5/extensibility/ExtensionComponent.d.ts +53 -0
- package/dist/types-ts4.5/extensibility/ExtensionNodeWrapper.d.ts +14 -0
- package/dist/types-ts4.5/extensibility/MultiBodiedExtension/index.d.ts +26 -0
- package/dist/types-ts4.5/extensibility/extensionNodeView.d.ts +31 -0
- package/dist/types-ts4.5/extensibility/index.d.ts +4 -0
- package/dist/types-ts4.5/extensibility/types.d.ts +8 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +5 -2
- package/dist/types-ts4.5/i18n/da.d.ts +5 -2
- package/dist/types-ts4.5/i18n/de.d.ts +5 -2
- package/dist/types-ts4.5/i18n/en.d.ts +7 -1
- package/dist/types-ts4.5/i18n/en_GB.d.ts +7 -1
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +7 -1
- package/dist/types-ts4.5/i18n/es.d.ts +5 -2
- package/dist/types-ts4.5/i18n/fi.d.ts +5 -2
- package/dist/types-ts4.5/i18n/fr.d.ts +5 -2
- package/dist/types-ts4.5/i18n/hu.d.ts +5 -2
- package/dist/types-ts4.5/i18n/it.d.ts +5 -2
- package/dist/types-ts4.5/i18n/ja.d.ts +1 -2
- package/dist/types-ts4.5/i18n/ko.d.ts +5 -2
- package/dist/types-ts4.5/i18n/nb.d.ts +1 -2
- package/dist/types-ts4.5/i18n/nl.d.ts +5 -2
- package/dist/types-ts4.5/i18n/pl.d.ts +5 -2
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +5 -2
- package/dist/types-ts4.5/i18n/ru.d.ts +5 -2
- package/dist/types-ts4.5/i18n/sv.d.ts +5 -2
- package/dist/types-ts4.5/i18n/th.d.ts +5 -2
- package/dist/types-ts4.5/i18n/tr.d.ts +5 -2
- package/dist/types-ts4.5/i18n/uk.d.ts +5 -2
- package/dist/types-ts4.5/i18n/vi.d.ts +5 -2
- package/dist/types-ts4.5/i18n/zh.d.ts +5 -2
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +5 -2
- package/dist/types-ts4.5/link/LinkPicker/HyperlinkAddToolbar/index.d.ts +7 -7
- package/dist/types-ts4.5/types/floating-toolbar.d.ts +1 -1
- package/dist/types-ts4.5/types/hyperlink.d.ts +1 -0
- package/dist/types-ts4.5/types/index.d.ts +1 -1
- package/dist/types-ts4.5/types/next-editor-plugin.d.ts +0 -3
- package/dist/types-ts4.5/ui/DropList/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/OverflowShadow/index.d.ts +1 -1
- package/dist/types-ts4.5/ui/with-outer-listeners.d.ts +2 -2
- package/dist/types-ts4.5/ui-menu/ColorPickerButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-menu/ToolbarButton/index.d.ts +1 -1
- package/dist/types-ts4.5/ui-react/with-react-editor-view-outer-listeners.d.ts +2 -2
- package/extensibility/package.json +15 -0
- package/package.json +8 -7
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
'fabric.editor.action': string;
|
|
9
9
|
'fabric.editor.action.description': string;
|
|
10
|
+
'fabric.editor.addColumn': string;
|
|
10
11
|
'fabric.editor.addMediaFiles': string;
|
|
12
|
+
'fabric.editor.addRow': string;
|
|
11
13
|
'fabric.editor.alignCenter': string;
|
|
12
14
|
'fabric.editor.alignImageCenter': string;
|
|
13
15
|
'fabric.editor.alignImageLeft': string;
|
|
@@ -15,6 +17,7 @@ declare const _default: {
|
|
|
15
17
|
'fabric.editor.alignLeft': string;
|
|
16
18
|
'fabric.editor.alignRight': string;
|
|
17
19
|
'fabric.editor.annotationToolbar': string;
|
|
20
|
+
'fabric.editor.backgroundColor': string;
|
|
18
21
|
'fabric.editor.blockCardUnavailable': string;
|
|
19
22
|
'fabric.editor.blockDescription': string;
|
|
20
23
|
'fabric.editor.blockTitle': string;
|
|
@@ -136,7 +139,6 @@ declare const _default: {
|
|
|
136
139
|
'fabric.editor.infoPanel': string;
|
|
137
140
|
'fabric.editor.infoPanel.description': string;
|
|
138
141
|
'fabric.editor.inlineDescription': string;
|
|
139
|
-
'fabric.editor.inlineOverlay': string;
|
|
140
142
|
'fabric.editor.inlineTitle': string;
|
|
141
143
|
'fabric.editor.insertColumn': string;
|
|
142
144
|
'fabric.editor.insertColumnDrag': string;
|
|
@@ -209,7 +211,8 @@ declare const _default: {
|
|
|
209
211
|
'fabric.editor.table': string;
|
|
210
212
|
'fabric.editor.table.description': string;
|
|
211
213
|
'fabric.editor.tableOptions': string;
|
|
212
|
-
'fabric.editor.
|
|
214
|
+
'fabric.editor.tableResizeDecreaseScreenReaderInformation': string;
|
|
215
|
+
'fabric.editor.tableResizeIncreaseScreenReaderInformation': string;
|
|
213
216
|
'fabric.editor.tables.adjustColumn': string;
|
|
214
217
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
215
218
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
'fabric.editor.action': string;
|
|
9
9
|
'fabric.editor.action.description': string;
|
|
10
|
+
'fabric.editor.addColumn': string;
|
|
10
11
|
'fabric.editor.addMediaFiles': string;
|
|
12
|
+
'fabric.editor.addRow': string;
|
|
11
13
|
'fabric.editor.alignCenter': string;
|
|
12
14
|
'fabric.editor.alignImageCenter': string;
|
|
13
15
|
'fabric.editor.alignImageLeft': string;
|
|
@@ -15,6 +17,7 @@ declare const _default: {
|
|
|
15
17
|
'fabric.editor.alignLeft': string;
|
|
16
18
|
'fabric.editor.alignRight': string;
|
|
17
19
|
'fabric.editor.annotationToolbar': string;
|
|
20
|
+
'fabric.editor.backgroundColor': string;
|
|
18
21
|
'fabric.editor.blockCardUnavailable': string;
|
|
19
22
|
'fabric.editor.blockDescription': string;
|
|
20
23
|
'fabric.editor.blockTitle': string;
|
|
@@ -136,7 +139,6 @@ declare const _default: {
|
|
|
136
139
|
'fabric.editor.infoPanel': string;
|
|
137
140
|
'fabric.editor.infoPanel.description': string;
|
|
138
141
|
'fabric.editor.inlineDescription': string;
|
|
139
|
-
'fabric.editor.inlineOverlay': string;
|
|
140
142
|
'fabric.editor.inlineTitle': string;
|
|
141
143
|
'fabric.editor.insertColumn': string;
|
|
142
144
|
'fabric.editor.insertColumnDrag': string;
|
|
@@ -209,7 +211,8 @@ declare const _default: {
|
|
|
209
211
|
'fabric.editor.table': string;
|
|
210
212
|
'fabric.editor.table.description': string;
|
|
211
213
|
'fabric.editor.tableOptions': string;
|
|
212
|
-
'fabric.editor.
|
|
214
|
+
'fabric.editor.tableResizeDecreaseScreenReaderInformation': string;
|
|
215
|
+
'fabric.editor.tableResizeIncreaseScreenReaderInformation': string;
|
|
213
216
|
'fabric.editor.tables.adjustColumn': string;
|
|
214
217
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
215
218
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
@@ -7,7 +7,9 @@
|
|
|
7
7
|
declare const _default: {
|
|
8
8
|
'fabric.editor.action': string;
|
|
9
9
|
'fabric.editor.action.description': string;
|
|
10
|
+
'fabric.editor.addColumn': string;
|
|
10
11
|
'fabric.editor.addMediaFiles': string;
|
|
12
|
+
'fabric.editor.addRow': string;
|
|
11
13
|
'fabric.editor.alignCenter': string;
|
|
12
14
|
'fabric.editor.alignImageCenter': string;
|
|
13
15
|
'fabric.editor.alignImageLeft': string;
|
|
@@ -15,6 +17,7 @@ declare const _default: {
|
|
|
15
17
|
'fabric.editor.alignLeft': string;
|
|
16
18
|
'fabric.editor.alignRight': string;
|
|
17
19
|
'fabric.editor.annotationToolbar': string;
|
|
20
|
+
'fabric.editor.backgroundColor': string;
|
|
18
21
|
'fabric.editor.blockCardUnavailable': string;
|
|
19
22
|
'fabric.editor.blockDescription': string;
|
|
20
23
|
'fabric.editor.blockTitle': string;
|
|
@@ -136,7 +139,6 @@ declare const _default: {
|
|
|
136
139
|
'fabric.editor.infoPanel': string;
|
|
137
140
|
'fabric.editor.infoPanel.description': string;
|
|
138
141
|
'fabric.editor.inlineDescription': string;
|
|
139
|
-
'fabric.editor.inlineOverlay': string;
|
|
140
142
|
'fabric.editor.inlineTitle': string;
|
|
141
143
|
'fabric.editor.insertColumn': string;
|
|
142
144
|
'fabric.editor.insertColumnDrag': string;
|
|
@@ -209,7 +211,8 @@ declare const _default: {
|
|
|
209
211
|
'fabric.editor.table': string;
|
|
210
212
|
'fabric.editor.table.description': string;
|
|
211
213
|
'fabric.editor.tableOptions': string;
|
|
212
|
-
'fabric.editor.
|
|
214
|
+
'fabric.editor.tableResizeDecreaseScreenReaderInformation': string;
|
|
215
|
+
'fabric.editor.tableResizeIncreaseScreenReaderInformation': string;
|
|
213
216
|
'fabric.editor.tables.adjustColumn': string;
|
|
214
217
|
'fabric.editor.tables.confirmDeleteLinkedModalMessage': string;
|
|
215
218
|
'fabric.editor.tables.confirmDeleteLinkedModalOKButton': string;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
-
import { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
2
|
+
import type { UIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
3
|
+
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
4
4
|
import type { HyperlinkState } from '../../../link';
|
|
5
|
-
import { ProviderFactory } from '../../../provider-factory';
|
|
6
|
-
import type { Command,
|
|
7
|
-
import { EditorLinkPickerProps } from '../EditorLinkPicker';
|
|
5
|
+
import type { ProviderFactory } from '../../../provider-factory';
|
|
6
|
+
import type { Command, LinkInputType, LinkPickerOptions } from '../../../types';
|
|
7
|
+
import type { EditorLinkPickerProps } from '../EditorLinkPicker';
|
|
8
8
|
export interface HyperlinkAddToolbarProps extends Pick<EditorLinkPickerProps, 'onCancel' | 'invokeMethod' | 'onClose'> {
|
|
9
9
|
view: EditorView;
|
|
10
10
|
providerFactory: ProviderFactory;
|
|
11
11
|
onSubmit: (href: string, title: string | undefined, displayText: string | undefined, inputMethod: LinkInputType, analytic?: UIAnalyticsEvent | null | undefined) => void;
|
|
12
|
-
|
|
12
|
+
lpLinkPicker: boolean;
|
|
13
13
|
linkPickerOptions?: LinkPickerOptions;
|
|
14
14
|
displayText?: string;
|
|
15
15
|
displayUrl?: string;
|
|
16
16
|
onEscapeCallback?: Command;
|
|
17
17
|
onClickAwayCallback?: Command;
|
|
18
18
|
}
|
|
19
|
-
export declare function HyperlinkAddToolbar({ linkPickerOptions, onSubmit, displayText, displayUrl, providerFactory, view, onCancel, invokeMethod,
|
|
19
|
+
export declare function HyperlinkAddToolbar({ linkPickerOptions, onSubmit, displayText, displayUrl, providerFactory, view, onCancel, invokeMethod, lpLinkPicker, onClose, onEscapeCallback, onClickAwayCallback, hyperlinkPluginState, }: HyperlinkAddToolbarProps & {
|
|
20
20
|
hyperlinkPluginState: HyperlinkState | undefined;
|
|
21
21
|
}): JSX.Element;
|
|
@@ -143,7 +143,7 @@ export type FloatingToolbarCustom<T extends {}> = {
|
|
|
143
143
|
*/
|
|
144
144
|
disableArrowNavigation?: boolean;
|
|
145
145
|
fallback: Array<FloatingToolbarFallbackItem<T>>;
|
|
146
|
-
render: (view?: EditorView, idx?: number, dispatchAnalyticsEvent?: DispatchAnalyticsEvent) => React.ComponentClass | React.
|
|
146
|
+
render: (view?: EditorView, idx?: number, dispatchAnalyticsEvent?: DispatchAnalyticsEvent) => React.ComponentClass | React.FC | React.ReactElement<any> | null;
|
|
147
147
|
hidden?: boolean;
|
|
148
148
|
};
|
|
149
149
|
type FloatingToolbarSelectBase<T extends {}, V = SelectOption> = {
|
|
@@ -28,7 +28,7 @@ export type { EditorReactContext } from './editor-react-context';
|
|
|
28
28
|
export type { PMPluginFactoryParams, PMPluginFactory, PMPlugin, } from './plugin-factory';
|
|
29
29
|
export type { NodeConfig, MarkConfig, NodeViewConfig, } from './prosemirror-config';
|
|
30
30
|
export type { PluginsOptions, EditorPlugin, getPosHandler, getPosHandlerNode, } from './editor-plugin';
|
|
31
|
-
export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions,
|
|
31
|
+
export type { NextEditorPlugin, AllEditorPresetPluginTypes, PluginDependenciesAPI, ExtractPluginNameFromAllBuilderPlugins, SafePresetCheck, DefaultEditorPlugin, OptionalPlugin, PluginInjectionAPI, CreatePluginDependenciesAPI, NextEditorPluginMetadata, ExtractInjectionAPI, ExtractPluginActions, PluginInjectionAPIWithDependencies, PublicPluginAPI, NextEditorPluginFunctionOptionalConfigDefinition, ExtractNextEditorPlugins, } from './next-editor-plugin';
|
|
32
32
|
export type { ExtractPublicEditorAPI } from './editor-public-api';
|
|
33
33
|
export type { EditorCommand, EditorCommandWithMetadata, } from './editor-command';
|
|
34
34
|
export type IconProps = {
|
|
@@ -46,9 +46,6 @@ export type PluginInjectionAPI<Name extends string, Metadata extends NextEditorP
|
|
|
46
46
|
...ExtractPluginDependenciesFromMetadata<Metadata>
|
|
47
47
|
]>;
|
|
48
48
|
};
|
|
49
|
-
export type PluginInjectionAPIWithDependency<Plugin extends NextEditorPlugin<any, any>> = PublicPluginAPI<[
|
|
50
|
-
Plugin
|
|
51
|
-
]>;
|
|
52
49
|
export type PluginInjectionAPIWithDependencies<Plugins extends NextEditorPlugin<any, any>[]> = PublicPluginAPI<Plugins>;
|
|
53
50
|
export type NextEditorPluginFunctionOptionalConfigDefinition<Name extends string, Metadata extends NextEditorPluginMetadata, Configuration = undefined> = (props: {
|
|
54
51
|
config: Configuration;
|
|
@@ -17,5 +17,5 @@ export type OpenChangedEvent = {
|
|
|
17
17
|
isOpen: boolean;
|
|
18
18
|
event: MouseEvent | KeyboardEvent;
|
|
19
19
|
};
|
|
20
|
-
declare const _default: import("react").ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "
|
|
20
|
+
declare const _default: import("react").ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "position" | "key" | "id" | "children" | "testId" | "analyticsContext" | "shouldFitContainer" | "onPositioned" | "isOpen" | "trigger" | "onOpenChange"> & import("react").RefAttributes<any>>;
|
|
21
21
|
export default _default;
|
|
@@ -16,7 +16,7 @@ export interface OverflowShadowOptions {
|
|
|
16
16
|
overflowSelector: string;
|
|
17
17
|
useShadowObserver?: boolean;
|
|
18
18
|
}
|
|
19
|
-
export default function overflowShadow<P>(Component: React.ComponentType<P & OverflowShadowProps> | React.
|
|
19
|
+
export default function overflowShadow<P>(Component: React.ComponentType<P & OverflowShadowProps> | React.FunctionComponent<P & OverflowShadowProps>, options: OverflowShadowOptions): {
|
|
20
20
|
new (props: P | Readonly<P>): {
|
|
21
21
|
overflowContainer?: HTMLElement | null | undefined;
|
|
22
22
|
container?: HTMLElement | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentClass,
|
|
1
|
+
import type { ComponentClass, FunctionComponent } from 'react';
|
|
2
2
|
type SimpleEventHandler<T> = (event: T) => void;
|
|
3
3
|
export interface WithOutsideClickProps {
|
|
4
4
|
handleClickOutside?: SimpleEventHandler<MouseEvent>;
|
|
5
5
|
handleEscapeKeydown?: SimpleEventHandler<KeyboardEvent>;
|
|
6
6
|
}
|
|
7
|
-
export default function withOuterListeners<P>(Component: ComponentClass<P> |
|
|
7
|
+
export default function withOuterListeners<P>(Component: ComponentClass<P> | FunctionComponent<P>): ComponentClass<P & WithOutsideClickProps>;
|
|
8
8
|
export {};
|
|
@@ -26,5 +26,5 @@ type Props = WithAnalyticsEventsProps & {
|
|
|
26
26
|
skipFocusButtonAfterPick?: boolean;
|
|
27
27
|
absoluteOffset?: PopupPosition;
|
|
28
28
|
};
|
|
29
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "
|
|
29
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<Omit<Props, keyof WithAnalyticsEventsProps> & React.RefAttributes<any> & import("@atlaskit/analytics-next").WithContextProps, "size" | "currentColor" | "onChange" | "title" | "key" | "placement" | "alignX" | "absoluteOffset" | "analyticsContext" | "cols" | "hexToPaletteColor" | "paletteColorTooltipMessages" | "colorPalette" | "mountPoint" | "setDisableParentScroll" | "skipFocusButtonAfterPick"> & React.RefAttributes<any>>;
|
|
30
30
|
export default _default;
|
|
@@ -42,7 +42,7 @@ declare const ToolbarButton: React.ForwardRefExoticComponent<{
|
|
|
42
42
|
onItemClick?: ((item: MenuItem) => void) | undefined;
|
|
43
43
|
onKeyDown?: ((event: React.KeyboardEvent<HTMLElement>) => void) | undefined;
|
|
44
44
|
selected?: boolean | undefined;
|
|
45
|
-
spacing?: "
|
|
45
|
+
spacing?: "none" | "default" | "compact" | undefined;
|
|
46
46
|
target?: string | undefined;
|
|
47
47
|
title?: React.ReactNode;
|
|
48
48
|
titlePosition?: PositionType | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentClass,
|
|
1
|
+
import type { ComponentClass, FunctionComponent } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
type SimpleEventHandler<T> = (event: T) => void;
|
|
4
4
|
export interface WithOutsideClickProps {
|
|
@@ -8,5 +8,5 @@ export interface WithOutsideClickProps {
|
|
|
8
8
|
targetRef?: any;
|
|
9
9
|
closeOnTab?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export default function withReactEditorViewOuterListeners<P extends {}>(Component: ComponentClass<P> |
|
|
11
|
+
export default function withReactEditorViewOuterListeners<P extends {}>(Component: ComponentClass<P> | FunctionComponent<P>): React.FC<P & WithOutsideClickProps>;
|
|
12
12
|
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atlaskit/editor-common/extensibility",
|
|
3
|
+
"main": "../dist/cjs/extensibility/index.js",
|
|
4
|
+
"module": "../dist/esm/extensibility/index.js",
|
|
5
|
+
"module:es2019": "../dist/es2019/extensibility/index.js",
|
|
6
|
+
"sideEffects": false,
|
|
7
|
+
"types": "../dist/types/extensibility/index.d.ts",
|
|
8
|
+
"typesVersions": {
|
|
9
|
+
">=4.5 <4.9": {
|
|
10
|
+
"*": [
|
|
11
|
+
"../dist/types-ts4.5/extensibility/index.d.ts"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "76.
|
|
3
|
+
"version": "76.36.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/"
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"af:exports": {
|
|
33
33
|
"./event-dispatcher": "./src/event-dispatcher/index.ts",
|
|
34
34
|
"./extensions": "./src/extensions.ts",
|
|
35
|
+
"./extensibility": "./src/extensibility/index.ts",
|
|
35
36
|
"./normalize-feature-flags": "./src/normalize-feature-flags.ts",
|
|
36
37
|
"./messages": "./src/messages/index.ts",
|
|
37
38
|
"./provider-factory": "./src/provider-factory.ts",
|
|
@@ -90,16 +91,16 @@
|
|
|
90
91
|
},
|
|
91
92
|
"dependencies": {
|
|
92
93
|
"@atlaskit/activity-provider": "^2.4.0",
|
|
93
|
-
"@atlaskit/adf-schema": "^35.
|
|
94
|
+
"@atlaskit/adf-schema": "^35.3.0",
|
|
94
95
|
"@atlaskit/adf-utils": "^19.0.0",
|
|
95
|
-
"@atlaskit/analytics-listeners": "^8.
|
|
96
|
-
"@atlaskit/analytics-namespaced-context": "^6.
|
|
96
|
+
"@atlaskit/analytics-listeners": "^8.9.0",
|
|
97
|
+
"@atlaskit/analytics-namespaced-context": "^6.9.0",
|
|
97
98
|
"@atlaskit/analytics-next": "^9.1.0",
|
|
98
99
|
"@atlaskit/analytics-next-stable-react-context": "1.0.1",
|
|
99
100
|
"@atlaskit/button": "^17.2.0",
|
|
100
101
|
"@atlaskit/code": "^15.1.0",
|
|
101
102
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
102
|
-
"@atlaskit/custom-steps": "^0.0.
|
|
103
|
+
"@atlaskit/custom-steps": "^0.0.11",
|
|
103
104
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
104
105
|
"@atlaskit/editor-palette": "1.5.2",
|
|
105
106
|
"@atlaskit/editor-prosemirror": "1.1.0",
|
|
@@ -110,7 +111,7 @@
|
|
|
110
111
|
"@atlaskit/icon-object": "^6.3.0",
|
|
111
112
|
"@atlaskit/in-product-testing": "^0.2.0",
|
|
112
113
|
"@atlaskit/link-datasource": "^1.19.0",
|
|
113
|
-
"@atlaskit/link-picker": "^1.
|
|
114
|
+
"@atlaskit/link-picker": "^1.32.0",
|
|
114
115
|
"@atlaskit/media-card": "^77.6.0",
|
|
115
116
|
"@atlaskit/media-client": "^26.1.0",
|
|
116
117
|
"@atlaskit/media-picker": "^66.2.0",
|
|
@@ -118,7 +119,7 @@
|
|
|
118
119
|
"@atlaskit/menu": "^2.1.0",
|
|
119
120
|
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
120
121
|
"@atlaskit/profilecard": "^19.7.0",
|
|
121
|
-
"@atlaskit/smart-card": "^26.
|
|
122
|
+
"@atlaskit/smart-card": "^26.44.0",
|
|
122
123
|
"@atlaskit/smart-user-picker": "^6.4.0",
|
|
123
124
|
"@atlaskit/spinner": "^16.0.0",
|
|
124
125
|
"@atlaskit/task-decision": "^17.9.0",
|