@atlaskit/editor-core 189.4.9 → 189.4.12
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/composable-editor/editor-internal.js +3 -3
- package/dist/cjs/composable-editor/editor.js +202 -3
- package/dist/cjs/i18n/cs.js +1 -3
- package/dist/cjs/i18n/da.js +1 -3
- package/dist/cjs/i18n/de.js +1 -3
- package/dist/cjs/i18n/en.js +1 -3
- package/dist/cjs/i18n/en_GB.js +1 -3
- package/dist/cjs/i18n/en_ZZ.js +1 -3
- package/dist/cjs/i18n/es.js +1 -3
- package/dist/cjs/i18n/fi.js +1 -3
- package/dist/cjs/i18n/fr.js +1 -3
- package/dist/cjs/i18n/hu.js +1 -3
- package/dist/cjs/i18n/it.js +1 -3
- package/dist/cjs/i18n/ja.js +1 -3
- package/dist/cjs/i18n/ko.js +1 -3
- package/dist/cjs/i18n/nb.js +1 -3
- package/dist/cjs/i18n/nl.js +1 -3
- package/dist/cjs/i18n/pl.js +1 -3
- package/dist/cjs/i18n/pt_BR.js +1 -3
- package/dist/cjs/i18n/ru.js +1 -3
- package/dist/cjs/i18n/sv.js +1 -3
- package/dist/cjs/i18n/th.js +1 -3
- package/dist/cjs/i18n/tr.js +1 -3
- package/dist/cjs/i18n/uk.js +1 -3
- package/dist/cjs/i18n/vi.js +1 -3
- package/dist/cjs/i18n/zh.js +1 -3
- package/dist/cjs/i18n/zh_TW.js +1 -3
- package/dist/cjs/plugins/index.js +1 -15
- package/dist/cjs/presets/default.js +2 -2
- package/dist/cjs/presets/universal.js +2 -1
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +11 -3
- package/dist/cjs/ui/ConfigPanel/constants.js +13 -0
- package/dist/cjs/ui/ConfigPanel/utils.js +44 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +4 -4
- package/dist/es2019/composable-editor/editor.js +208 -4
- package/dist/es2019/i18n/cs.js +1 -3
- package/dist/es2019/i18n/da.js +1 -3
- package/dist/es2019/i18n/de.js +1 -3
- package/dist/es2019/i18n/en.js +1 -3
- package/dist/es2019/i18n/en_GB.js +1 -3
- package/dist/es2019/i18n/en_ZZ.js +1 -3
- package/dist/es2019/i18n/es.js +1 -3
- package/dist/es2019/i18n/fi.js +1 -3
- package/dist/es2019/i18n/fr.js +1 -3
- package/dist/es2019/i18n/hu.js +1 -3
- package/dist/es2019/i18n/it.js +1 -3
- package/dist/es2019/i18n/ja.js +1 -3
- package/dist/es2019/i18n/ko.js +1 -3
- package/dist/es2019/i18n/nb.js +1 -3
- package/dist/es2019/i18n/nl.js +1 -3
- package/dist/es2019/i18n/pl.js +1 -3
- package/dist/es2019/i18n/pt_BR.js +1 -3
- package/dist/es2019/i18n/ru.js +1 -3
- package/dist/es2019/i18n/sv.js +1 -3
- package/dist/es2019/i18n/th.js +1 -3
- package/dist/es2019/i18n/tr.js +1 -3
- package/dist/es2019/i18n/uk.js +1 -3
- package/dist/es2019/i18n/vi.js +1 -3
- package/dist/es2019/i18n/zh.js +1 -3
- package/dist/es2019/i18n/zh_TW.js +1 -3
- package/dist/es2019/plugins/index.js +1 -3
- package/dist/es2019/presets/default.js +2 -2
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +11 -2
- package/dist/es2019/ui/ConfigPanel/constants.js +7 -0
- package/dist/es2019/ui/ConfigPanel/utils.js +35 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +3 -3
- package/dist/esm/composable-editor/editor.js +203 -4
- package/dist/esm/i18n/cs.js +1 -3
- package/dist/esm/i18n/da.js +1 -3
- package/dist/esm/i18n/de.js +1 -3
- package/dist/esm/i18n/en.js +1 -3
- package/dist/esm/i18n/en_GB.js +1 -3
- package/dist/esm/i18n/en_ZZ.js +1 -3
- package/dist/esm/i18n/es.js +1 -3
- package/dist/esm/i18n/fi.js +1 -3
- package/dist/esm/i18n/fr.js +1 -3
- package/dist/esm/i18n/hu.js +1 -3
- package/dist/esm/i18n/it.js +1 -3
- package/dist/esm/i18n/ja.js +1 -3
- package/dist/esm/i18n/ko.js +1 -3
- package/dist/esm/i18n/nb.js +1 -3
- package/dist/esm/i18n/nl.js +1 -3
- package/dist/esm/i18n/pl.js +1 -3
- package/dist/esm/i18n/pt_BR.js +1 -3
- package/dist/esm/i18n/ru.js +1 -3
- package/dist/esm/i18n/sv.js +1 -3
- package/dist/esm/i18n/th.js +1 -3
- package/dist/esm/i18n/tr.js +1 -3
- package/dist/esm/i18n/uk.js +1 -3
- package/dist/esm/i18n/vi.js +1 -3
- package/dist/esm/i18n/zh.js +1 -3
- package/dist/esm/i18n/zh_TW.js +1 -3
- package/dist/esm/plugins/index.js +1 -3
- package/dist/esm/presets/default.js +2 -2
- package/dist/esm/presets/universal.js +2 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +11 -3
- package/dist/esm/ui/ConfigPanel/constants.js +7 -0
- package/dist/esm/ui/ConfigPanel/utils.js +42 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types/i18n/cs.d.ts +0 -2
- package/dist/types/i18n/da.d.ts +0 -2
- package/dist/types/i18n/de.d.ts +0 -2
- package/dist/types/i18n/en.d.ts +0 -2
- package/dist/types/i18n/en_GB.d.ts +0 -2
- package/dist/types/i18n/en_ZZ.d.ts +0 -2
- package/dist/types/i18n/es.d.ts +0 -2
- package/dist/types/i18n/fi.d.ts +0 -2
- package/dist/types/i18n/fr.d.ts +0 -2
- package/dist/types/i18n/hu.d.ts +0 -2
- package/dist/types/i18n/it.d.ts +0 -2
- package/dist/types/i18n/ja.d.ts +0 -2
- package/dist/types/i18n/ko.d.ts +0 -2
- package/dist/types/i18n/nb.d.ts +0 -2
- package/dist/types/i18n/nl.d.ts +0 -2
- package/dist/types/i18n/pl.d.ts +0 -2
- package/dist/types/i18n/pt_BR.d.ts +0 -2
- package/dist/types/i18n/ru.d.ts +0 -2
- package/dist/types/i18n/sv.d.ts +0 -2
- package/dist/types/i18n/th.d.ts +0 -2
- package/dist/types/i18n/tr.d.ts +0 -2
- package/dist/types/i18n/uk.d.ts +0 -2
- package/dist/types/i18n/vi.d.ts +0 -2
- package/dist/types/i18n/zh.d.ts +0 -2
- package/dist/types/i18n/zh_TW.d.ts +0 -2
- package/dist/types/plugins/index.d.ts +0 -2
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +3 -4
- package/dist/types/ui/ConfigPanel/constants.d.ts +2 -0
- package/dist/types/ui/ConfigPanel/utils.d.ts +2 -1
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -2
- package/dist/types-ts4.5/i18n/da.d.ts +0 -2
- package/dist/types-ts4.5/i18n/de.d.ts +0 -2
- package/dist/types-ts4.5/i18n/en.d.ts +0 -2
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -2
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -2
- package/dist/types-ts4.5/i18n/es.d.ts +0 -2
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -2
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -2
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -2
- package/dist/types-ts4.5/i18n/it.d.ts +0 -2
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -2
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -2
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -2
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -2
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -2
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -2
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -2
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -2
- package/dist/types-ts4.5/i18n/th.d.ts +0 -2
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -2
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -2
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -2
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -2
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -2
- package/dist/types-ts4.5/plugins/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +3 -4
- package/dist/types-ts4.5/ui/ConfigPanel/constants.d.ts +2 -0
- package/dist/types-ts4.5/ui/ConfigPanel/utils.d.ts +2 -1
- package/package.json +10 -6
- package/dist/cjs/plugins/clear-marks-on-change-to-empty-document/index.js +0 -35
- package/dist/cjs/plugins/code-bidi-warning/index.js +0 -22
- package/dist/cjs/plugins/code-bidi-warning/plugin-key.js +0 -8
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/main.js +0 -44
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -105
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -9
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/types.js +0 -5
- package/dist/es2019/plugins/clear-marks-on-change-to-empty-document/index.js +0 -26
- package/dist/es2019/plugins/code-bidi-warning/index.js +0 -15
- package/dist/es2019/plugins/code-bidi-warning/plugin-key.js +0 -2
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/main.js +0 -41
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -97
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -3
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/types.js +0 -1
- package/dist/esm/plugins/clear-marks-on-change-to-empty-document/index.js +0 -28
- package/dist/esm/plugins/code-bidi-warning/index.js +0 -16
- package/dist/esm/plugins/code-bidi-warning/plugin-key.js +0 -2
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/main.js +0 -38
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -98
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -3
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/types.js +0 -1
- package/dist/types/plugins/clear-marks-on-change-to-empty-document/index.d.ts +0 -7
- package/dist/types/plugins/code-bidi-warning/index.d.ts +0 -8
- package/dist/types/plugins/code-bidi-warning/plugin-key.d.ts +0 -2
- package/dist/types/plugins/code-bidi-warning/pm-plugins/main.d.ts +0 -5
- package/dist/types/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -8
- package/dist/types/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +0 -3
- package/dist/types/plugins/code-bidi-warning/pm-plugins/types.d.ts +0 -6
- package/dist/types-ts4.5/plugins/clear-marks-on-change-to-empty-document/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/code-bidi-warning/index.d.ts +0 -8
- package/dist/types-ts4.5/plugins/code-bidi-warning/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/main.d.ts +0 -5
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -8
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +0 -3
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/types.d.ts +0 -6
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { jsx } from '@emotion/react';
|
|
2
3
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
4
|
import type { CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
|
|
@@ -30,5 +31,5 @@ interface InternalProps {
|
|
|
30
31
|
* EditorInternalComponent is used to capture the common component
|
|
31
32
|
* from the `render` method of `Editor` and share it with `EditorNext`.
|
|
32
33
|
*/
|
|
33
|
-
export declare
|
|
34
|
+
export declare const EditorInternal: import("react").MemoExoticComponent<({ props, handleAnalyticsEvent, createAnalyticsEvent, handleSave, editorActions, providerFactory, onEditorCreated, onEditorDestroyed, preset, }: InternalProps) => jsx.JSX.Element>;
|
|
34
35
|
export {};
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -49,6 +48,5 @@ declare const _default: {
|
|
|
49
48
|
'fabric.editor.replaceAll': string;
|
|
50
49
|
'fabric.editor.replaceWith': string;
|
|
51
50
|
'fabric.editor.resultsCount': string;
|
|
52
|
-
'fabric.editor.taskPlaceholder': string;
|
|
53
51
|
};
|
|
54
52
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -29,7 +29,6 @@ declare const _default: {
|
|
|
29
29
|
'fabric.editor.configPanel.invalid': string;
|
|
30
30
|
'fabric.editor.configPanel.required': string;
|
|
31
31
|
'fabric.editor.configPanel.submit': string;
|
|
32
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
33
32
|
'fabric.editor.edit': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
@@ -50,6 +49,5 @@ declare const _default: {
|
|
|
50
49
|
'fabric.editor.replaceAll': string;
|
|
51
50
|
'fabric.editor.replaceWith': string;
|
|
52
51
|
'fabric.editor.resultsCount': string;
|
|
53
|
-
'fabric.editor.taskPlaceholder': string;
|
|
54
52
|
};
|
|
55
53
|
export default _default;
|
|
@@ -29,7 +29,6 @@ declare const _default: {
|
|
|
29
29
|
'fabric.editor.configPanel.invalid': string;
|
|
30
30
|
'fabric.editor.configPanel.required': string;
|
|
31
31
|
'fabric.editor.configPanel.submit': string;
|
|
32
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
33
32
|
'fabric.editor.edit': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
@@ -50,6 +49,5 @@ declare const _default: {
|
|
|
50
49
|
'fabric.editor.replaceAll': string;
|
|
51
50
|
'fabric.editor.replaceWith': string;
|
|
52
51
|
'fabric.editor.resultsCount': string;
|
|
53
|
-
'fabric.editor.taskPlaceholder': string;
|
|
54
52
|
};
|
|
55
53
|
export default _default;
|
|
@@ -29,7 +29,6 @@ declare const _default: {
|
|
|
29
29
|
'fabric.editor.configPanel.invalid': string;
|
|
30
30
|
'fabric.editor.configPanel.required': string;
|
|
31
31
|
'fabric.editor.configPanel.submit': string;
|
|
32
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
33
32
|
'fabric.editor.edit': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
@@ -50,6 +49,5 @@ declare const _default: {
|
|
|
50
49
|
'fabric.editor.replaceAll': string;
|
|
51
50
|
'fabric.editor.replaceWith': string;
|
|
52
51
|
'fabric.editor.resultsCount': string;
|
|
53
|
-
'fabric.editor.taskPlaceholder': string;
|
|
54
52
|
};
|
|
55
53
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -28,7 +28,6 @@ declare const _default: {
|
|
|
28
28
|
'fabric.editor.configPanel.invalid': string;
|
|
29
29
|
'fabric.editor.configPanel.required': string;
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
|
-
'fabric.editor.decisionPlaceholder': string;
|
|
32
31
|
'fabric.editor.edit': string;
|
|
33
32
|
'fabric.editor.editorAssistiveLabel': string;
|
|
34
33
|
'fabric.editor.editors': string;
|
|
@@ -48,6 +47,5 @@ declare const _default: {
|
|
|
48
47
|
'fabric.editor.replaceAll': string;
|
|
49
48
|
'fabric.editor.replaceWith': string;
|
|
50
49
|
'fabric.editor.resultsCount': string;
|
|
51
|
-
'fabric.editor.taskPlaceholder': string;
|
|
52
50
|
};
|
|
53
51
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-marks-on-change-to-empty-document';
|
|
2
1
|
export { default as collabEditPlugin } from './collab-edit';
|
|
3
2
|
export { default as extensionPlugin } from './extension';
|
|
4
3
|
export { default as jiraIssuePlugin } from './jira-issue';
|
|
@@ -16,4 +15,3 @@ export { default as undoRedoPlugin } from './undo-redo';
|
|
|
16
15
|
export { default as avatarGroupPlugin } from './avatar-group';
|
|
17
16
|
export { default as viewUpdateSubscriptionPlugin } from './view-update-subscription';
|
|
18
17
|
export { default as beforePrimaryToolbarPlugin } from './before-primaryToolbar';
|
|
19
|
-
export { default as codeBidiWarningPlugin } from './code-bidi-warning';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
-
import type { ExtensionManifest } from '@atlaskit/editor-common/extensions';
|
|
4
|
-
import {
|
|
5
|
-
import { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
|
|
3
|
+
import type { ExtensionManifest, FieldDefinition, Parameters, OnSaveCallback } from '@atlaskit/editor-common/extensions';
|
|
4
|
+
import type { FeatureFlags } from '@atlaskit/editor-common/types';
|
|
6
5
|
type Props = {
|
|
7
6
|
extensionManifest?: ExtensionManifest;
|
|
8
7
|
fields?: FieldDefinition[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Option, FieldDefinition } from '@atlaskit/editor-common/extensions';
|
|
1
|
+
import type { Option, FieldDefinition, Parameters } from '@atlaskit/editor-common/extensions';
|
|
2
2
|
import { ValidationError } from './types';
|
|
3
3
|
export declare const validate: <T>(field: Partial<FieldDefinition>, value: T) => ValidationError | undefined;
|
|
4
4
|
type ValidationProps = {
|
|
@@ -10,4 +10,5 @@ export declare const getOptionFromValue: (options: Option[], value: string | str
|
|
|
10
10
|
export declare const getSafeParentedName: (name: string, parentName?: string) => string;
|
|
11
11
|
export declare const isDuplicateField: (key: string) => boolean;
|
|
12
12
|
export declare const getNameFromDuplicateField: (key: string) => string;
|
|
13
|
+
export declare const getLoggedParameters: (macroKey: string, currentParams: Parameters, macroFields?: FieldDefinition[]) => {};
|
|
13
14
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "189.4.
|
|
3
|
+
"version": "189.4.12",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -49,10 +49,9 @@
|
|
|
49
49
|
"@atlaskit/avatar-group": "^9.4.0",
|
|
50
50
|
"@atlaskit/button": "^16.17.0",
|
|
51
51
|
"@atlaskit/checkbox": "^13.0.0",
|
|
52
|
-
"@atlaskit/code": "^15.1.0",
|
|
53
52
|
"@atlaskit/date": "^0.10.0",
|
|
54
53
|
"@atlaskit/datetime-picker": "^13.0.0",
|
|
55
|
-
"@atlaskit/editor-common": "^76.
|
|
54
|
+
"@atlaskit/editor-common": "^76.24.0",
|
|
56
55
|
"@atlaskit/editor-json-transformer": "^8.10.0",
|
|
57
56
|
"@atlaskit/editor-markdown-transformer": "^5.2.5",
|
|
58
57
|
"@atlaskit/editor-plugin-analytics": "^0.3.0",
|
|
@@ -62,7 +61,9 @@
|
|
|
62
61
|
"@atlaskit/editor-plugin-border": "^0.1.0",
|
|
63
62
|
"@atlaskit/editor-plugin-caption": "^0.2.0",
|
|
64
63
|
"@atlaskit/editor-plugin-card": "^0.14.0",
|
|
64
|
+
"@atlaskit/editor-plugin-clear-marks-on-empty-doc": "^0.1.0",
|
|
65
65
|
"@atlaskit/editor-plugin-clipboard": "^0.1.0",
|
|
66
|
+
"@atlaskit/editor-plugin-code-bidi-warning": "^0.1.0",
|
|
66
67
|
"@atlaskit/editor-plugin-code-block": "^0.1.0",
|
|
67
68
|
"@atlaskit/editor-plugin-composition": "^0.1.0",
|
|
68
69
|
"@atlaskit/editor-plugin-content-insertion": "^0.1.4",
|
|
@@ -168,12 +169,12 @@
|
|
|
168
169
|
"@af/integration-testing": "*",
|
|
169
170
|
"@af/visual-regression": "*",
|
|
170
171
|
"@atlaskit/analytics-listeners": "^8.7.0",
|
|
171
|
-
"@atlaskit/
|
|
172
|
+
"@atlaskit/code": "^15.1.0",
|
|
173
|
+
"@atlaskit/collab-provider": "9.17.5",
|
|
172
174
|
"@atlaskit/dropdown-menu": "^12.1.0",
|
|
173
175
|
"@atlaskit/editor-extension-dropbox": "^0.4.0",
|
|
174
176
|
"@atlaskit/editor-palette": "1.5.2",
|
|
175
177
|
"@atlaskit/flag": "^15.2.0",
|
|
176
|
-
"@atlaskit/icon-object": "^6.3.0",
|
|
177
178
|
"@atlaskit/inline-dialog": "^14.0.0",
|
|
178
179
|
"@atlaskit/link-analytics": "^8.3.0",
|
|
179
180
|
"@atlaskit/link-provider": "^1.6.0",
|
|
@@ -190,7 +191,7 @@
|
|
|
190
191
|
"@atlaskit/webdriver-runner": "*",
|
|
191
192
|
"@atlassian/adf-schema-json": "^1.0.7",
|
|
192
193
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
193
|
-
"@atlassian/editor-extension-link-create": "^0.
|
|
194
|
+
"@atlassian/editor-extension-link-create": "^0.10.0",
|
|
194
195
|
"@atlassian/feature-flags-test-utils": "^0.1.1",
|
|
195
196
|
"@atlassian/link-picker-plugins": "^24.0.0",
|
|
196
197
|
"@atlassian/search-provider": "2.4.8",
|
|
@@ -239,6 +240,9 @@
|
|
|
239
240
|
},
|
|
240
241
|
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1",
|
|
241
242
|
"platform-feature-flags": {
|
|
243
|
+
"platform.editor.less-editor-props-rerendering": {
|
|
244
|
+
"type": "boolean"
|
|
245
|
+
},
|
|
242
246
|
"platform.editor.custom-table-width": {
|
|
243
247
|
"type": "boolean"
|
|
244
248
|
},
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createPlugin = createPlugin;
|
|
7
|
-
exports.pluginKey = exports.default = void 0;
|
|
8
|
-
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
9
|
-
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
10
|
-
var _utils = require("@atlaskit/editor-common/utils");
|
|
11
|
-
var pluginKey = exports.pluginKey = new _state.PluginKey('clearMarksOnChangeToEmptyDocumentPlugin');
|
|
12
|
-
function createPlugin() {
|
|
13
|
-
return new _safePlugin.SafePlugin({
|
|
14
|
-
key: pluginKey,
|
|
15
|
-
appendTransaction: function appendTransaction(_transactions, oldState, newState) {
|
|
16
|
-
// ED-2973: When a user clears the editor's content, remove the current active marks
|
|
17
|
-
if (!(0, _utils.isEmptyDocument)(oldState.doc) && (0, _utils.isEmptyDocument)(newState.doc)) {
|
|
18
|
-
return newState.tr.setStoredMarks([]);
|
|
19
|
-
}
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
var clearMarksOnChangeToEmptyDocumentPlugin = function clearMarksOnChangeToEmptyDocumentPlugin() {
|
|
25
|
-
return {
|
|
26
|
-
name: 'clearMarksOnEmptyDoc',
|
|
27
|
-
pmPlugins: function pmPlugins() {
|
|
28
|
-
return [{
|
|
29
|
-
name: 'clearMarksOnChange',
|
|
30
|
-
plugin: createPlugin
|
|
31
|
-
}];
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
var _default = exports.default = clearMarksOnChangeToEmptyDocumentPlugin;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _main = require("./pm-plugins/main");
|
|
8
|
-
var codeBidiWarning = function codeBidiWarning(_ref) {
|
|
9
|
-
var config = _ref.config;
|
|
10
|
-
return {
|
|
11
|
-
name: 'codeBidiWarning',
|
|
12
|
-
pmPlugins: function pmPlugins() {
|
|
13
|
-
return [{
|
|
14
|
-
name: 'codeBidiWarning',
|
|
15
|
-
plugin: function plugin(options) {
|
|
16
|
-
return (0, _main.createPlugin)(options, config);
|
|
17
|
-
}
|
|
18
|
-
}];
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
var _default = exports.default = codeBidiWarning;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.codeBidiWarningPluginKey = void 0;
|
|
7
|
-
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
8
|
-
var codeBidiWarningPluginKey = exports.codeBidiWarningPluginKey = new _state.PluginKey('codeBidiWarningPlugin');
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.createPlugin = void 0;
|
|
7
|
-
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
8
|
-
var _messages = require("@atlaskit/editor-common/messages");
|
|
9
|
-
var _pluginKey = require("../plugin-key");
|
|
10
|
-
var _pluginFactory = require("./plugin-factory");
|
|
11
|
-
var createPlugin = exports.createPlugin = function createPlugin(_ref, _ref2) {
|
|
12
|
-
var dispatch = _ref.dispatch,
|
|
13
|
-
getIntl = _ref.getIntl;
|
|
14
|
-
var appearance = _ref2.appearance;
|
|
15
|
-
var intl = getIntl();
|
|
16
|
-
var codeBidiWarningLabel = intl.formatMessage(_messages.codeBidiWarningMessages.label);
|
|
17
|
-
return new _safePlugin.SafePlugin({
|
|
18
|
-
key: _pluginKey.codeBidiWarningPluginKey,
|
|
19
|
-
state: (0, _pluginFactory.createPluginState)(dispatch, function (state) {
|
|
20
|
-
// The appearance being mobile indicates we are in an editor being
|
|
21
|
-
// rendered by mobile bridge in a web view.
|
|
22
|
-
// The tooltip is likely to have unexpected behaviour there, with being cut
|
|
23
|
-
// off, so we disable it. This is also to keep the behaviour consistent with
|
|
24
|
-
// the rendering in the mobile Native Renderer.
|
|
25
|
-
var tooltipEnabled = appearance !== 'mobile';
|
|
26
|
-
return {
|
|
27
|
-
decorationSet: (0, _pluginFactory.createBidiWarningsDecorationSetFromDoc)({
|
|
28
|
-
doc: state.doc,
|
|
29
|
-
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
30
|
-
tooltipEnabled: tooltipEnabled
|
|
31
|
-
}),
|
|
32
|
-
codeBidiWarningLabel: codeBidiWarningLabel,
|
|
33
|
-
tooltipEnabled: tooltipEnabled
|
|
34
|
-
};
|
|
35
|
-
}),
|
|
36
|
-
props: {
|
|
37
|
-
decorations: function decorations(state) {
|
|
38
|
-
var _getPluginState = (0, _pluginFactory.getPluginState)(state),
|
|
39
|
-
decorationSet = _getPluginState.decorationSet;
|
|
40
|
-
return decorationSet;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
};
|