@atlaskit/editor-common 87.9.1 → 87.10.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.
- package/CHANGELOG.md +23 -0
- package/dist/cjs/element-browser/components/ElementList/EmptyState.js +2 -11
- package/dist/cjs/i18n/cs.js +6 -0
- package/dist/cjs/i18n/da.js +6 -0
- package/dist/cjs/i18n/de.js +6 -0
- package/dist/cjs/i18n/en.js +7 -0
- package/dist/cjs/i18n/en_GB.js +7 -0
- package/dist/cjs/i18n/en_ZZ.js +7 -0
- package/dist/cjs/i18n/es.js +13 -0
- package/dist/cjs/i18n/fi.js +6 -0
- package/dist/cjs/i18n/fr.js +6 -0
- package/dist/cjs/i18n/hu.js +6 -0
- package/dist/cjs/i18n/it.js +6 -0
- package/dist/cjs/i18n/ja.js +6 -0
- package/dist/cjs/i18n/ko.js +6 -0
- package/dist/cjs/i18n/nb.js +6 -0
- package/dist/cjs/i18n/nl.js +6 -0
- package/dist/cjs/i18n/pl.js +6 -0
- package/dist/cjs/i18n/pt_BR.js +6 -0
- package/dist/cjs/i18n/ru.js +6 -0
- package/dist/cjs/i18n/sv.js +6 -0
- package/dist/cjs/i18n/th.js +6 -0
- package/dist/cjs/i18n/tr.js +6 -0
- package/dist/cjs/i18n/uk.js +13 -0
- package/dist/cjs/i18n/vi.js +6 -0
- package/dist/cjs/i18n/zh.js +6 -0
- package/dist/cjs/i18n/zh_TW.js +13 -0
- package/dist/cjs/lazy-node-view/index.js +3 -10
- package/dist/cjs/lazy-node-view/node-view.js +5 -4
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +5 -13
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/WidthProvider/index.js +53 -23
- package/dist/es2019/element-browser/components/ElementList/EmptyState.js +2 -11
- package/dist/es2019/i18n/cs.js +6 -0
- package/dist/es2019/i18n/da.js +6 -0
- package/dist/es2019/i18n/de.js +6 -0
- package/dist/es2019/i18n/en.js +7 -0
- package/dist/es2019/i18n/en_GB.js +7 -0
- package/dist/es2019/i18n/en_ZZ.js +7 -0
- package/dist/es2019/i18n/es.js +13 -0
- package/dist/es2019/i18n/fi.js +6 -0
- package/dist/es2019/i18n/fr.js +6 -0
- package/dist/es2019/i18n/hu.js +6 -0
- package/dist/es2019/i18n/it.js +6 -0
- package/dist/es2019/i18n/ja.js +6 -0
- package/dist/es2019/i18n/ko.js +6 -0
- package/dist/es2019/i18n/nb.js +6 -0
- package/dist/es2019/i18n/nl.js +6 -0
- package/dist/es2019/i18n/pl.js +6 -0
- package/dist/es2019/i18n/pt_BR.js +6 -0
- package/dist/es2019/i18n/ru.js +6 -0
- package/dist/es2019/i18n/sv.js +6 -0
- package/dist/es2019/i18n/th.js +6 -0
- package/dist/es2019/i18n/tr.js +6 -0
- package/dist/es2019/i18n/uk.js +13 -0
- package/dist/es2019/i18n/vi.js +6 -0
- package/dist/es2019/i18n/zh.js +6 -0
- package/dist/es2019/i18n/zh_TW.js +13 -0
- package/dist/es2019/lazy-node-view/index.js +3 -10
- package/dist/es2019/lazy-node-view/node-view.js +6 -4
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +5 -13
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/WidthProvider/index.js +47 -21
- package/dist/esm/element-browser/components/ElementList/EmptyState.js +2 -11
- package/dist/esm/i18n/cs.js +6 -0
- package/dist/esm/i18n/da.js +6 -0
- package/dist/esm/i18n/de.js +6 -0
- package/dist/esm/i18n/en.js +7 -0
- package/dist/esm/i18n/en_GB.js +7 -0
- package/dist/esm/i18n/en_ZZ.js +7 -0
- package/dist/esm/i18n/es.js +13 -0
- package/dist/esm/i18n/fi.js +6 -0
- package/dist/esm/i18n/fr.js +6 -0
- package/dist/esm/i18n/hu.js +6 -0
- package/dist/esm/i18n/it.js +6 -0
- package/dist/esm/i18n/ja.js +6 -0
- package/dist/esm/i18n/ko.js +6 -0
- package/dist/esm/i18n/nb.js +6 -0
- package/dist/esm/i18n/nl.js +6 -0
- package/dist/esm/i18n/pl.js +6 -0
- package/dist/esm/i18n/pt_BR.js +6 -0
- package/dist/esm/i18n/ru.js +6 -0
- package/dist/esm/i18n/sv.js +6 -0
- package/dist/esm/i18n/th.js +6 -0
- package/dist/esm/i18n/tr.js +6 -0
- package/dist/esm/i18n/uk.js +13 -0
- package/dist/esm/i18n/vi.js +6 -0
- package/dist/esm/i18n/zh.js +6 -0
- package/dist/esm/i18n/zh_TW.js +13 -0
- package/dist/esm/lazy-node-view/index.js +3 -10
- package/dist/esm/lazy-node-view/node-view.js +5 -4
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +5 -13
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/WidthProvider/index.js +53 -24
- package/dist/types/i18n/cs.d.ts +6 -0
- package/dist/types/i18n/da.d.ts +6 -0
- package/dist/types/i18n/de.d.ts +6 -0
- package/dist/types/i18n/en.d.ts +7 -0
- package/dist/types/i18n/en_GB.d.ts +7 -0
- package/dist/types/i18n/en_ZZ.d.ts +7 -0
- package/dist/types/i18n/es.d.ts +13 -0
- package/dist/types/i18n/fi.d.ts +6 -0
- package/dist/types/i18n/fr.d.ts +6 -0
- package/dist/types/i18n/hu.d.ts +6 -0
- package/dist/types/i18n/it.d.ts +6 -0
- package/dist/types/i18n/ja.d.ts +6 -0
- package/dist/types/i18n/ko.d.ts +6 -0
- package/dist/types/i18n/nb.d.ts +6 -0
- package/dist/types/i18n/nl.d.ts +6 -0
- package/dist/types/i18n/pl.d.ts +6 -0
- package/dist/types/i18n/pt_BR.d.ts +6 -0
- package/dist/types/i18n/ru.d.ts +6 -0
- package/dist/types/i18n/sv.d.ts +6 -0
- package/dist/types/i18n/th.d.ts +6 -0
- package/dist/types/i18n/tr.d.ts +6 -0
- package/dist/types/i18n/uk.d.ts +13 -0
- package/dist/types/i18n/vi.d.ts +6 -0
- package/dist/types/i18n/zh.d.ts +6 -0
- package/dist/types/i18n/zh_TW.d.ts +13 -0
- package/dist/types/lazy-node-view/index.d.ts +2 -5
- package/dist/types/lazy-node-view/node-view.d.ts +6 -6
- package/dist/types/lazy-node-view/types.d.ts +0 -7
- package/dist/types/ui/WidthProvider/index.d.ts +13 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +6 -0
- package/dist/types-ts4.5/i18n/da.d.ts +6 -0
- package/dist/types-ts4.5/i18n/de.d.ts +6 -0
- package/dist/types-ts4.5/i18n/en.d.ts +7 -0
- package/dist/types-ts4.5/i18n/en_GB.d.ts +7 -0
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +7 -0
- package/dist/types-ts4.5/i18n/es.d.ts +13 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +6 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +6 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +6 -0
- package/dist/types-ts4.5/i18n/it.d.ts +6 -0
- package/dist/types-ts4.5/i18n/ja.d.ts +6 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +6 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +6 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +6 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +6 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +6 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +6 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +6 -0
- package/dist/types-ts4.5/i18n/th.d.ts +6 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +6 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +13 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +6 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +6 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +13 -0
- package/dist/types-ts4.5/lazy-node-view/index.d.ts +2 -5
- package/dist/types-ts4.5/lazy-node-view/node-view.d.ts +6 -6
- package/dist/types-ts4.5/lazy-node-view/types.d.ts +0 -7
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +13 -0
- package/package.json +11 -11
|
@@ -36,6 +36,8 @@ declare const _default: {
|
|
|
36
36
|
'fabric.editor.blockControlDragHandleUsageInfo': string;
|
|
37
37
|
'fabric.editor.blockControlMoveDown': string;
|
|
38
38
|
'fabric.editor.blockControlMoveUp': string;
|
|
39
|
+
'fabric.editor.blockControlMovedDown': string;
|
|
40
|
+
'fabric.editor.blockControlMovedUp': string;
|
|
39
41
|
'fabric.editor.blockDescription': string;
|
|
40
42
|
'fabric.editor.blockTitle': string;
|
|
41
43
|
'fabric.editor.blockquote': string;
|
|
@@ -264,6 +266,8 @@ declare const _default: {
|
|
|
264
266
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
265
267
|
'fabric.editor.insertColumn': string;
|
|
266
268
|
'fabric.editor.insertColumnDrag': string;
|
|
269
|
+
'fabric.editor.insertMediaFromUrl': string;
|
|
270
|
+
'fabric.editor.insertMediaFromUrlDescription': string;
|
|
267
271
|
'fabric.editor.insertMenu': string;
|
|
268
272
|
'fabric.editor.insertRow': string;
|
|
269
273
|
'fabric.editor.insertRowDrag': string;
|
|
@@ -290,6 +294,13 @@ declare const _default: {
|
|
|
290
294
|
'fabric.editor.media.DefaultMediaWidthDecreased': string;
|
|
291
295
|
'fabric.editor.media.DefaultMediaWidthIncreased': string;
|
|
292
296
|
'fabric.editor.media.MediaWidthIsMin': string;
|
|
297
|
+
'fabric.editor.media.insert.cancel': string;
|
|
298
|
+
'fabric.editor.media.insert.errorMessage': string;
|
|
299
|
+
'fabric.editor.media.insert.insert': string;
|
|
300
|
+
'fabric.editor.media.insert.loadPreview': string;
|
|
301
|
+
'fabric.editor.media.insert.mediaAlt': string;
|
|
302
|
+
'fabric.editor.media.insert.pasteLinkToUpload': string;
|
|
303
|
+
'fabric.editor.media.insert.warning': string;
|
|
293
304
|
'fabric.editor.media.pixelEntry.MediaWidthIsMax': string;
|
|
294
305
|
'fabric.editor.media.pixelEntry.inputHeightAriaLabel': string;
|
|
295
306
|
'fabric.editor.media.pixelEntry.inputHeightTooltip': string;
|
|
@@ -335,6 +346,7 @@ declare const _default: {
|
|
|
335
346
|
'fabric.editor.other': string;
|
|
336
347
|
'fabric.editor.outdent': string;
|
|
337
348
|
'fabric.editor.pageActionsLabel': string;
|
|
349
|
+
'fabric.editor.panel': string;
|
|
338
350
|
'fabric.editor.panel.backgroundColor': string;
|
|
339
351
|
'fabric.editor.panel.emoji': string;
|
|
340
352
|
'fabric.editor.panel.panelsGroup': string;
|
|
@@ -443,6 +455,7 @@ declare const _default: {
|
|
|
443
455
|
'fabric.editor.tooltip.defaultBlockNode': string;
|
|
444
456
|
'fabric.editor.tooltip.nestedExpand': string;
|
|
445
457
|
'fabric.editor.tooltip.taskList': string;
|
|
458
|
+
'fabric.editor.turnInto': string;
|
|
446
459
|
'fabric.editor.twoColumns': string;
|
|
447
460
|
'fabric.editor.typeAhead.popupLabel': string;
|
|
448
461
|
'fabric.editor.typeAhead.quickInsertInputLabel': string;
|
|
@@ -36,6 +36,8 @@ declare const _default: {
|
|
|
36
36
|
'fabric.editor.blockControlDragHandleUsageInfo': string;
|
|
37
37
|
'fabric.editor.blockControlMoveDown': string;
|
|
38
38
|
'fabric.editor.blockControlMoveUp': string;
|
|
39
|
+
'fabric.editor.blockControlMovedDown': string;
|
|
40
|
+
'fabric.editor.blockControlMovedUp': string;
|
|
39
41
|
'fabric.editor.blockDescription': string;
|
|
40
42
|
'fabric.editor.blockTitle': string;
|
|
41
43
|
'fabric.editor.blockquote': string;
|
|
@@ -264,6 +266,8 @@ declare const _default: {
|
|
|
264
266
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
265
267
|
'fabric.editor.insertColumn': string;
|
|
266
268
|
'fabric.editor.insertColumnDrag': string;
|
|
269
|
+
'fabric.editor.insertMediaFromUrl': string;
|
|
270
|
+
'fabric.editor.insertMediaFromUrlDescription': string;
|
|
267
271
|
'fabric.editor.insertMenu': string;
|
|
268
272
|
'fabric.editor.insertRow': string;
|
|
269
273
|
'fabric.editor.insertRowDrag': string;
|
|
@@ -335,6 +339,7 @@ declare const _default: {
|
|
|
335
339
|
'fabric.editor.other': string;
|
|
336
340
|
'fabric.editor.outdent': string;
|
|
337
341
|
'fabric.editor.pageActionsLabel': string;
|
|
342
|
+
'fabric.editor.panel': string;
|
|
338
343
|
'fabric.editor.panel.backgroundColor': string;
|
|
339
344
|
'fabric.editor.panel.emoji': string;
|
|
340
345
|
'fabric.editor.panel.panelsGroup': string;
|
|
@@ -443,6 +448,7 @@ declare const _default: {
|
|
|
443
448
|
'fabric.editor.tooltip.defaultBlockNode': string;
|
|
444
449
|
'fabric.editor.tooltip.nestedExpand': string;
|
|
445
450
|
'fabric.editor.tooltip.taskList': string;
|
|
451
|
+
'fabric.editor.turnInto': string;
|
|
446
452
|
'fabric.editor.twoColumns': string;
|
|
447
453
|
'fabric.editor.typeAhead.popupLabel': string;
|
|
448
454
|
'fabric.editor.typeAhead.quickInsertInputLabel': string;
|
|
@@ -36,6 +36,8 @@ declare const _default: {
|
|
|
36
36
|
'fabric.editor.blockControlDragHandleUsageInfo': string;
|
|
37
37
|
'fabric.editor.blockControlMoveDown': string;
|
|
38
38
|
'fabric.editor.blockControlMoveUp': string;
|
|
39
|
+
'fabric.editor.blockControlMovedDown': string;
|
|
40
|
+
'fabric.editor.blockControlMovedUp': string;
|
|
39
41
|
'fabric.editor.blockDescription': string;
|
|
40
42
|
'fabric.editor.blockTitle': string;
|
|
41
43
|
'fabric.editor.blockquote': string;
|
|
@@ -264,6 +266,8 @@ declare const _default: {
|
|
|
264
266
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
265
267
|
'fabric.editor.insertColumn': string;
|
|
266
268
|
'fabric.editor.insertColumnDrag': string;
|
|
269
|
+
'fabric.editor.insertMediaFromUrl': string;
|
|
270
|
+
'fabric.editor.insertMediaFromUrlDescription': string;
|
|
267
271
|
'fabric.editor.insertMenu': string;
|
|
268
272
|
'fabric.editor.insertRow': string;
|
|
269
273
|
'fabric.editor.insertRowDrag': string;
|
|
@@ -335,6 +339,7 @@ declare const _default: {
|
|
|
335
339
|
'fabric.editor.other': string;
|
|
336
340
|
'fabric.editor.outdent': string;
|
|
337
341
|
'fabric.editor.pageActionsLabel': string;
|
|
342
|
+
'fabric.editor.panel': string;
|
|
338
343
|
'fabric.editor.panel.backgroundColor': string;
|
|
339
344
|
'fabric.editor.panel.emoji': string;
|
|
340
345
|
'fabric.editor.panel.panelsGroup': string;
|
|
@@ -443,6 +448,7 @@ declare const _default: {
|
|
|
443
448
|
'fabric.editor.tooltip.defaultBlockNode': string;
|
|
444
449
|
'fabric.editor.tooltip.nestedExpand': string;
|
|
445
450
|
'fabric.editor.tooltip.taskList': string;
|
|
451
|
+
'fabric.editor.turnInto': string;
|
|
446
452
|
'fabric.editor.twoColumns': string;
|
|
447
453
|
'fabric.editor.typeAhead.popupLabel': string;
|
|
448
454
|
'fabric.editor.typeAhead.quickInsertInputLabel': string;
|
|
@@ -36,6 +36,8 @@ declare const _default: {
|
|
|
36
36
|
'fabric.editor.blockControlDragHandleUsageInfo': string;
|
|
37
37
|
'fabric.editor.blockControlMoveDown': string;
|
|
38
38
|
'fabric.editor.blockControlMoveUp': string;
|
|
39
|
+
'fabric.editor.blockControlMovedDown': string;
|
|
40
|
+
'fabric.editor.blockControlMovedUp': string;
|
|
39
41
|
'fabric.editor.blockDescription': string;
|
|
40
42
|
'fabric.editor.blockTitle': string;
|
|
41
43
|
'fabric.editor.blockquote': string;
|
|
@@ -264,6 +266,8 @@ declare const _default: {
|
|
|
264
266
|
'fabric.editor.inputQueryAssistiveTxt': string;
|
|
265
267
|
'fabric.editor.insertColumn': string;
|
|
266
268
|
'fabric.editor.insertColumnDrag': string;
|
|
269
|
+
'fabric.editor.insertMediaFromUrl': string;
|
|
270
|
+
'fabric.editor.insertMediaFromUrlDescription': string;
|
|
267
271
|
'fabric.editor.insertMenu': string;
|
|
268
272
|
'fabric.editor.insertRow': string;
|
|
269
273
|
'fabric.editor.insertRowDrag': string;
|
|
@@ -290,6 +294,13 @@ declare const _default: {
|
|
|
290
294
|
'fabric.editor.media.DefaultMediaWidthDecreased': string;
|
|
291
295
|
'fabric.editor.media.DefaultMediaWidthIncreased': string;
|
|
292
296
|
'fabric.editor.media.MediaWidthIsMin': string;
|
|
297
|
+
'fabric.editor.media.insert.cancel': string;
|
|
298
|
+
'fabric.editor.media.insert.errorMessage': string;
|
|
299
|
+
'fabric.editor.media.insert.insert': string;
|
|
300
|
+
'fabric.editor.media.insert.loadPreview': string;
|
|
301
|
+
'fabric.editor.media.insert.mediaAlt': string;
|
|
302
|
+
'fabric.editor.media.insert.pasteLinkToUpload': string;
|
|
303
|
+
'fabric.editor.media.insert.warning': string;
|
|
293
304
|
'fabric.editor.media.pixelEntry.MediaWidthIsMax': string;
|
|
294
305
|
'fabric.editor.media.pixelEntry.inputHeightAriaLabel': string;
|
|
295
306
|
'fabric.editor.media.pixelEntry.inputHeightTooltip': string;
|
|
@@ -335,6 +346,7 @@ declare const _default: {
|
|
|
335
346
|
'fabric.editor.other': string;
|
|
336
347
|
'fabric.editor.outdent': string;
|
|
337
348
|
'fabric.editor.pageActionsLabel': string;
|
|
349
|
+
'fabric.editor.panel': string;
|
|
338
350
|
'fabric.editor.panel.backgroundColor': string;
|
|
339
351
|
'fabric.editor.panel.emoji': string;
|
|
340
352
|
'fabric.editor.panel.panelsGroup': string;
|
|
@@ -443,6 +455,7 @@ declare const _default: {
|
|
|
443
455
|
'fabric.editor.tooltip.defaultBlockNode': string;
|
|
444
456
|
'fabric.editor.tooltip.nestedExpand': string;
|
|
445
457
|
'fabric.editor.tooltip.taskList': string;
|
|
458
|
+
'fabric.editor.turnInto': string;
|
|
446
459
|
'fabric.editor.twoColumns': string;
|
|
447
460
|
'fabric.editor.typeAhead.popupLabel': string;
|
|
448
461
|
'fabric.editor.typeAhead.quickInsertInputLabel': string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Decoration, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { DispatchAnalyticsEvent } from '../analytics';
|
|
4
|
-
import type {
|
|
4
|
+
import type { NodeViewConstructor } from './types';
|
|
5
5
|
export { convertToInlineCss } from './css-helper';
|
|
6
6
|
export type { NodeViewConstructor };
|
|
7
7
|
/**
|
|
@@ -20,9 +20,6 @@ export type LazyLoadingProps<NodeViewOptions> = {
|
|
|
20
20
|
loader: () => Promise<CreateReactNodeViewProps<NodeViewOptions>>;
|
|
21
21
|
getNodeViewOptions: () => NodeViewOptions;
|
|
22
22
|
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
23
|
-
lazyNodeViewOptions?: {
|
|
24
|
-
ignoreMutationDelegate?: (mutation: IgnoreMutationParam) => boolean;
|
|
25
|
-
};
|
|
26
23
|
};
|
|
27
24
|
/**
|
|
28
25
|
* 📢 Public: Any EditorPlugin can use this function
|
|
@@ -64,4 +61,4 @@ export type LazyLoadingProps<NodeViewOptions> = {
|
|
|
64
61
|
*
|
|
65
62
|
* // Then, use `lazyTableView` in ProseMirror editor setup to enhance 'table' nodes with lazy loading
|
|
66
63
|
*/
|
|
67
|
-
export declare const withLazyLoading: <Options>({ nodeName, loader, getNodeViewOptions, dispatchAnalyticsEvent,
|
|
64
|
+
export declare const withLazyLoading: <Options>({ nodeName, loader, getNodeViewOptions, dispatchAnalyticsEvent, }: LazyLoadingProps<Options>) => NodeViewConstructor;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { IgnoreMutationParam } from './types';
|
|
4
3
|
/**
|
|
5
4
|
* 🧱 Internal: Editor FE Platform
|
|
6
5
|
*
|
|
@@ -9,9 +8,10 @@ import type { IgnoreMutationParam } from './types';
|
|
|
9
8
|
export declare class LazyNodeView implements NodeView {
|
|
10
9
|
dom: Node;
|
|
11
10
|
contentDOM?: HTMLElement;
|
|
12
|
-
private
|
|
13
|
-
constructor(node: PMNode, view: EditorView, getPos: () => number | undefined
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
private node;
|
|
12
|
+
constructor(node: PMNode, view: EditorView, getPos: () => number | undefined);
|
|
13
|
+
ignoreMutation(mutation: MutationRecord | {
|
|
14
|
+
type: 'selection';
|
|
15
|
+
target: Element;
|
|
16
|
+
}): boolean;
|
|
17
17
|
}
|
|
@@ -1,12 +1,5 @@
|
|
|
1
1
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { Decoration, DecorationSource, EditorView, NodeView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
/**
|
|
4
|
-
* 🧱 Internal: Editor FE Platform
|
|
5
|
-
*/
|
|
6
|
-
export type IgnoreMutationParam = MutationRecord | {
|
|
7
|
-
type: 'selection';
|
|
8
|
-
target: Element;
|
|
9
|
-
};
|
|
10
3
|
/**
|
|
11
4
|
* 🧱 Internal: Editor FE Platform
|
|
12
5
|
*/
|
|
@@ -21,5 +21,18 @@ type WidthProviderProps = {
|
|
|
21
21
|
shouldCheckExistingValue?: boolean;
|
|
22
22
|
children?: React.ReactNode;
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* 🧱 Internal function: Editor FE Platform
|
|
26
|
+
*
|
|
27
|
+
* Returns the width of the document body.
|
|
28
|
+
*
|
|
29
|
+
* This function is memoized to avoid forcing a layout reflow multiple times.
|
|
30
|
+
* It uses `document.body.offsetWidth` as the source of the width, which can lead to
|
|
31
|
+
* a layout reflow if accessed repeatedly. To mitigate performance issues, the result
|
|
32
|
+
* is cached using `memoizeOne`.
|
|
33
|
+
*
|
|
34
|
+
* @returns {number} The width of the document body or 0 if the document is undefined.
|
|
35
|
+
*/
|
|
36
|
+
export declare const getBodyWidth: import("memoize-one").MemoizedFn<() => number>;
|
|
24
37
|
export declare const WidthProvider: ({ className, shouldCheckExistingValue, children, }: WidthProviderProps) => jsx.JSX.Element;
|
|
25
38
|
export { Consumer as WidthConsumer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-common",
|
|
3
|
-
"version": "87.
|
|
3
|
+
"version": "87.10.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/"
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@atlaskit/analytics-namespaced-context": "^6.11.0",
|
|
106
106
|
"@atlaskit/analytics-next": "^10.1.0",
|
|
107
107
|
"@atlaskit/atlassian-context": "^0.0.0",
|
|
108
|
-
"@atlaskit/button": "^
|
|
108
|
+
"@atlaskit/button": "^20.0.0",
|
|
109
109
|
"@atlaskit/code": "^15.5.0",
|
|
110
110
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
111
111
|
"@atlaskit/custom-steps": "^0.7.0",
|
|
@@ -116,9 +116,9 @@
|
|
|
116
116
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
117
117
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
118
118
|
"@atlaskit/emoji": "^67.7.0",
|
|
119
|
-
"@atlaskit/icon": "^22.
|
|
119
|
+
"@atlaskit/icon": "^22.13.0",
|
|
120
120
|
"@atlaskit/icon-object": "^6.5.0",
|
|
121
|
-
"@atlaskit/link-datasource": "^2.
|
|
121
|
+
"@atlaskit/link-datasource": "^2.11.0",
|
|
122
122
|
"@atlaskit/link-picker": "^1.42.0",
|
|
123
123
|
"@atlaskit/media-card": "^78.0.0",
|
|
124
124
|
"@atlaskit/media-client": "^27.3.0",
|
|
@@ -126,20 +126,20 @@
|
|
|
126
126
|
"@atlaskit/media-common": "^11.3.0",
|
|
127
127
|
"@atlaskit/media-file-preview": "^0.6.0",
|
|
128
128
|
"@atlaskit/media-picker": "^66.4.0",
|
|
129
|
-
"@atlaskit/media-ui": "^25.
|
|
130
|
-
"@atlaskit/media-viewer": "48.7.
|
|
129
|
+
"@atlaskit/media-ui": "^25.11.0",
|
|
130
|
+
"@atlaskit/media-viewer": "48.7.2",
|
|
131
131
|
"@atlaskit/mention": "^23.2.0",
|
|
132
132
|
"@atlaskit/menu": "^2.12.0",
|
|
133
133
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
134
134
|
"@atlaskit/primitives": "^12.0.0",
|
|
135
135
|
"@atlaskit/profilecard": "^19.17.0",
|
|
136
136
|
"@atlaskit/section-message": "^6.6.0",
|
|
137
|
-
"@atlaskit/smart-card": "^27.
|
|
137
|
+
"@atlaskit/smart-card": "^27.16.0",
|
|
138
138
|
"@atlaskit/smart-user-picker": "^6.10.0",
|
|
139
139
|
"@atlaskit/spinner": "^16.3.0",
|
|
140
140
|
"@atlaskit/task-decision": "^17.10.0",
|
|
141
141
|
"@atlaskit/textfield": "^6.5.0",
|
|
142
|
-
"@atlaskit/theme": "^
|
|
142
|
+
"@atlaskit/theme": "^13.0.0",
|
|
143
143
|
"@atlaskit/tokens": "^1.58.0",
|
|
144
144
|
"@atlaskit/tooltip": "^18.7.0",
|
|
145
145
|
"@atlaskit/ufo": "^0.3.0",
|
|
@@ -260,14 +260,14 @@
|
|
|
260
260
|
"editor_support_code_block_wrapping": {
|
|
261
261
|
"type": "boolean"
|
|
262
262
|
},
|
|
263
|
-
"platform_editor_migration_icon_and_typography": {
|
|
264
|
-
"type": "boolean"
|
|
265
|
-
},
|
|
266
263
|
"cc_page_experiences_live_search_wysiwyg": {
|
|
267
264
|
"type": "boolean"
|
|
268
265
|
},
|
|
269
266
|
"platform_editor_react_18_prosemirror_sel_resync": {
|
|
270
267
|
"type": "boolean"
|
|
268
|
+
},
|
|
269
|
+
"platform-fix-table-ssr-resizing": {
|
|
270
|
+
"type": "boolean"
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
273
|
}
|