@atlaskit/editor-core 188.13.5 → 189.0.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 +16 -0
- package/dist/cjs/i18n/cs.js +0 -6
- package/dist/cjs/i18n/da.js +0 -6
- package/dist/cjs/i18n/de.js +0 -6
- package/dist/cjs/i18n/en.js +0 -6
- package/dist/cjs/i18n/en_GB.js +0 -6
- package/dist/cjs/i18n/en_ZZ.js +0 -6
- package/dist/cjs/i18n/es.js +0 -6
- package/dist/cjs/i18n/fi.js +0 -6
- package/dist/cjs/i18n/fr.js +0 -6
- package/dist/cjs/i18n/hu.js +0 -6
- package/dist/cjs/i18n/it.js +0 -6
- package/dist/cjs/i18n/ja.js +0 -6
- package/dist/cjs/i18n/ko.js +0 -6
- package/dist/cjs/i18n/nb.js +0 -6
- package/dist/cjs/i18n/nl.js +0 -6
- package/dist/cjs/i18n/pl.js +0 -6
- package/dist/cjs/i18n/pt_BR.js +0 -6
- package/dist/cjs/i18n/ru.js +0 -6
- package/dist/cjs/i18n/sv.js +0 -6
- package/dist/cjs/i18n/th.js +0 -6
- package/dist/cjs/i18n/tr.js +0 -6
- package/dist/cjs/i18n/uk.js +0 -6
- package/dist/cjs/i18n/vi.js +0 -6
- package/dist/cjs/i18n/zh.js +0 -6
- package/dist/cjs/i18n/zh_TW.js +0 -6
- package/dist/cjs/labs/next/presets/default.js +2 -2
- package/dist/cjs/plugins/expand/commands.js +84 -72
- package/dist/cjs/plugins/expand/index.js +10 -5
- package/dist/cjs/plugins/expand/nodeviews/index.js +8 -5
- package/dist/cjs/plugins/expand/pm-plugins/keymap.js +2 -1
- package/dist/cjs/plugins/expand/toolbar.js +6 -2
- package/dist/cjs/plugins/feedback-dialog/index.js +7 -4
- package/dist/cjs/plugins/index.js +0 -7
- package/dist/cjs/plugins/insert-block/ui/ToolbarInsertBlock/index.js +37 -32
- package/dist/cjs/plugins/tasks-and-decisions/commands.js +95 -89
- package/dist/cjs/plugins/tasks-and-decisions/index.js +10 -5
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/input-rules.js +41 -38
- package/dist/cjs/plugins/tasks-and-decisions/pm-plugins/keymaps.js +1 -1
- package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +9 -6
- package/dist/cjs/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +9 -6
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/i18n/cs.js +0 -6
- package/dist/es2019/i18n/da.js +0 -6
- package/dist/es2019/i18n/de.js +0 -6
- package/dist/es2019/i18n/en.js +0 -6
- package/dist/es2019/i18n/en_GB.js +0 -6
- package/dist/es2019/i18n/en_ZZ.js +0 -6
- package/dist/es2019/i18n/es.js +0 -6
- package/dist/es2019/i18n/fi.js +0 -6
- package/dist/es2019/i18n/fr.js +0 -6
- package/dist/es2019/i18n/hu.js +0 -6
- package/dist/es2019/i18n/it.js +0 -6
- package/dist/es2019/i18n/ja.js +0 -6
- package/dist/es2019/i18n/ko.js +0 -6
- package/dist/es2019/i18n/nb.js +0 -6
- package/dist/es2019/i18n/nl.js +0 -6
- package/dist/es2019/i18n/pl.js +0 -6
- package/dist/es2019/i18n/pt_BR.js +0 -6
- package/dist/es2019/i18n/ru.js +0 -6
- package/dist/es2019/i18n/sv.js +0 -6
- package/dist/es2019/i18n/th.js +0 -6
- package/dist/es2019/i18n/tr.js +0 -6
- package/dist/es2019/i18n/uk.js +0 -6
- package/dist/es2019/i18n/vi.js +0 -6
- package/dist/es2019/i18n/zh.js +0 -6
- package/dist/es2019/i18n/zh_TW.js +0 -6
- package/dist/es2019/labs/next/presets/default.js +1 -1
- package/dist/es2019/plugins/expand/commands.js +17 -9
- package/dist/es2019/plugins/expand/index.js +11 -6
- package/dist/es2019/plugins/expand/nodeviews/index.js +8 -5
- package/dist/es2019/plugins/expand/pm-plugins/keymap.js +2 -1
- package/dist/es2019/plugins/expand/toolbar.js +7 -2
- package/dist/es2019/plugins/feedback-dialog/index.js +7 -4
- package/dist/es2019/plugins/index.js +0 -1
- package/dist/es2019/plugins/insert-block/ui/ToolbarInsertBlock/index.js +14 -10
- package/dist/es2019/plugins/tasks-and-decisions/commands.js +7 -7
- package/dist/es2019/plugins/tasks-and-decisions/index.js +12 -5
- package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/input-rules.js +8 -8
- package/dist/es2019/plugins/tasks-and-decisions/pm-plugins/keymaps.js +1 -1
- package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +4 -2
- package/dist/es2019/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +4 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/i18n/cs.js +0 -6
- package/dist/esm/i18n/da.js +0 -6
- package/dist/esm/i18n/de.js +0 -6
- package/dist/esm/i18n/en.js +0 -6
- package/dist/esm/i18n/en_GB.js +0 -6
- package/dist/esm/i18n/en_ZZ.js +0 -6
- package/dist/esm/i18n/es.js +0 -6
- package/dist/esm/i18n/fi.js +0 -6
- package/dist/esm/i18n/fr.js +0 -6
- package/dist/esm/i18n/hu.js +0 -6
- package/dist/esm/i18n/it.js +0 -6
- package/dist/esm/i18n/ja.js +0 -6
- package/dist/esm/i18n/ko.js +0 -6
- package/dist/esm/i18n/nb.js +0 -6
- package/dist/esm/i18n/nl.js +0 -6
- package/dist/esm/i18n/pl.js +0 -6
- package/dist/esm/i18n/pt_BR.js +0 -6
- package/dist/esm/i18n/ru.js +0 -6
- package/dist/esm/i18n/sv.js +0 -6
- package/dist/esm/i18n/th.js +0 -6
- package/dist/esm/i18n/tr.js +0 -6
- package/dist/esm/i18n/uk.js +0 -6
- package/dist/esm/i18n/vi.js +0 -6
- package/dist/esm/i18n/zh.js +0 -6
- package/dist/esm/i18n/zh_TW.js +0 -6
- package/dist/esm/labs/next/presets/default.js +1 -1
- package/dist/esm/plugins/expand/commands.js +84 -72
- package/dist/esm/plugins/expand/index.js +11 -6
- package/dist/esm/plugins/expand/nodeviews/index.js +8 -5
- package/dist/esm/plugins/expand/pm-plugins/keymap.js +2 -1
- package/dist/esm/plugins/expand/toolbar.js +6 -2
- package/dist/esm/plugins/feedback-dialog/index.js +7 -4
- package/dist/esm/plugins/index.js +0 -1
- package/dist/esm/plugins/insert-block/ui/ToolbarInsertBlock/index.js +37 -32
- package/dist/esm/plugins/tasks-and-decisions/commands.js +95 -89
- package/dist/esm/plugins/tasks-and-decisions/index.js +10 -5
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/input-rules.js +40 -36
- package/dist/esm/plugins/tasks-and-decisions/pm-plugins/keymaps.js +1 -1
- package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarDecision/index.js +9 -6
- package/dist/esm/plugins/tasks-and-decisions/ui/ToolbarTask/index.js +9 -6
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/i18n/cs.d.ts +0 -6
- package/dist/types/i18n/da.d.ts +0 -6
- package/dist/types/i18n/de.d.ts +0 -6
- package/dist/types/i18n/en.d.ts +0 -6
- package/dist/types/i18n/en_GB.d.ts +0 -6
- package/dist/types/i18n/en_ZZ.d.ts +0 -6
- package/dist/types/i18n/es.d.ts +0 -6
- package/dist/types/i18n/fi.d.ts +0 -6
- package/dist/types/i18n/fr.d.ts +0 -6
- package/dist/types/i18n/hu.d.ts +0 -6
- package/dist/types/i18n/it.d.ts +0 -6
- package/dist/types/i18n/ja.d.ts +0 -6
- package/dist/types/i18n/ko.d.ts +0 -6
- package/dist/types/i18n/nb.d.ts +0 -6
- package/dist/types/i18n/nl.d.ts +0 -6
- package/dist/types/i18n/pl.d.ts +0 -6
- package/dist/types/i18n/pt_BR.d.ts +0 -6
- package/dist/types/i18n/ru.d.ts +0 -6
- package/dist/types/i18n/sv.d.ts +0 -6
- package/dist/types/i18n/th.d.ts +0 -6
- package/dist/types/i18n/tr.d.ts +0 -6
- package/dist/types/i18n/uk.d.ts +0 -6
- package/dist/types/i18n/vi.d.ts +0 -6
- package/dist/types/i18n/zh.d.ts +0 -6
- package/dist/types/i18n/zh_TW.d.ts +0 -6
- package/dist/types/labs/next/presets/default.d.ts +4 -4
- package/dist/types/plugins/code-block/index.d.ts +2 -2
- package/dist/types/plugins/expand/commands.d.ts +6 -5
- package/dist/types/plugins/expand/index.d.ts +12 -5
- package/dist/types/plugins/expand/toolbar.d.ts +3 -3
- package/dist/types/plugins/feedback-dialog/index.d.ts +5 -2
- package/dist/types/plugins/index.d.ts +0 -1
- package/dist/types/plugins/insert-block/types.d.ts +13 -11
- package/dist/types/plugins/tasks-and-decisions/commands.d.ts +5 -4
- package/dist/types/plugins/tasks-and-decisions/pm-plugins/input-rules.d.ts +2 -1
- package/dist/types/plugins/tasks-and-decisions/ui/ToolbarDecision/index.d.ts +3 -0
- package/dist/types/plugins/tasks-and-decisions/ui/ToolbarTask/index.d.ts +3 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -6
- package/dist/types-ts4.5/i18n/da.d.ts +0 -6
- package/dist/types-ts4.5/i18n/de.d.ts +0 -6
- package/dist/types-ts4.5/i18n/en.d.ts +0 -6
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -6
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -6
- package/dist/types-ts4.5/i18n/es.d.ts +0 -6
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -6
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -6
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -6
- package/dist/types-ts4.5/i18n/it.d.ts +0 -6
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -6
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -6
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -6
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -6
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -6
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -6
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -6
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -6
- package/dist/types-ts4.5/i18n/th.d.ts +0 -6
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -6
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -6
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -6
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -6
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -6
- package/dist/types-ts4.5/labs/next/presets/default.d.ts +4 -4
- package/dist/types-ts4.5/plugins/code-block/index.d.ts +2 -2
- package/dist/types-ts4.5/plugins/expand/commands.d.ts +6 -5
- package/dist/types-ts4.5/plugins/expand/index.d.ts +12 -5
- package/dist/types-ts4.5/plugins/expand/toolbar.d.ts +3 -3
- package/dist/types-ts4.5/plugins/feedback-dialog/index.d.ts +7 -2
- package/dist/types-ts4.5/plugins/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +13 -11
- package/dist/types-ts4.5/plugins/tasks-and-decisions/commands.d.ts +5 -4
- package/dist/types-ts4.5/plugins/tasks-and-decisions/pm-plugins/input-rules.d.ts +2 -1
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/ToolbarDecision/index.d.ts +3 -0
- package/dist/types-ts4.5/plugins/tasks-and-decisions/ui/ToolbarTask/index.d.ts +3 -0
- package/package.json +3 -2
- package/dist/cjs/plugins/submit-editor/index.js +0 -64
- package/dist/es2019/plugins/submit-editor/index.js +0 -53
- package/dist/esm/plugins/submit-editor/index.js +0 -56
- package/dist/types/plugins/submit-editor/index.d.ts +0 -14
- package/dist/types-ts4.5/plugins/submit-editor/index.d.ts +0 -16
|
@@ -30,7 +30,6 @@ declare const _default: {
|
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
31
|
'fabric.editor.decisionPlaceholder': string;
|
|
32
32
|
'fabric.editor.edit': string;
|
|
33
|
-
'fabric.editor.editDateText': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
36
35
|
'fabric.editor.error': string;
|
|
@@ -46,13 +45,8 @@ declare const _default: {
|
|
|
46
45
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
47
46
|
'fabric.editor.indent': string;
|
|
48
47
|
'fabric.editor.info': string;
|
|
49
|
-
'fabric.editor.invalidDateError': string;
|
|
50
|
-
'fabric.editor.inviteItem.title': string;
|
|
51
48
|
'fabric.editor.leftSidebar': string;
|
|
52
49
|
'fabric.editor.matchCase': string;
|
|
53
|
-
'fabric.editor.mentionNode.label': string;
|
|
54
|
-
'fabric.editor.mentionsAddLabel': string;
|
|
55
|
-
'fabric.editor.mentionsIconLabel': string;
|
|
56
50
|
'fabric.editor.noResultsFound': string;
|
|
57
51
|
'fabric.editor.note': string;
|
|
58
52
|
'fabric.editor.outdent': string;
|
|
@@ -30,7 +30,6 @@ declare const _default: {
|
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
31
|
'fabric.editor.decisionPlaceholder': string;
|
|
32
32
|
'fabric.editor.edit': string;
|
|
33
|
-
'fabric.editor.editDateText': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
36
35
|
'fabric.editor.error': string;
|
|
@@ -46,13 +45,8 @@ declare const _default: {
|
|
|
46
45
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
47
46
|
'fabric.editor.indent': string;
|
|
48
47
|
'fabric.editor.info': string;
|
|
49
|
-
'fabric.editor.invalidDateError': string;
|
|
50
|
-
'fabric.editor.inviteItem.title': string;
|
|
51
48
|
'fabric.editor.leftSidebar': string;
|
|
52
49
|
'fabric.editor.matchCase': string;
|
|
53
|
-
'fabric.editor.mentionNode.label': string;
|
|
54
|
-
'fabric.editor.mentionsAddLabel': string;
|
|
55
|
-
'fabric.editor.mentionsIconLabel': string;
|
|
56
50
|
'fabric.editor.noResultsFound': string;
|
|
57
51
|
'fabric.editor.note': string;
|
|
58
52
|
'fabric.editor.outdent': string;
|
|
@@ -30,7 +30,6 @@ declare const _default: {
|
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
31
|
'fabric.editor.decisionPlaceholder': string;
|
|
32
32
|
'fabric.editor.edit': string;
|
|
33
|
-
'fabric.editor.editDateText': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
36
35
|
'fabric.editor.error': string;
|
|
@@ -46,13 +45,8 @@ declare const _default: {
|
|
|
46
45
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
47
46
|
'fabric.editor.indent': string;
|
|
48
47
|
'fabric.editor.info': string;
|
|
49
|
-
'fabric.editor.invalidDateError': string;
|
|
50
|
-
'fabric.editor.inviteItem.title': string;
|
|
51
48
|
'fabric.editor.leftSidebar': string;
|
|
52
49
|
'fabric.editor.matchCase': string;
|
|
53
|
-
'fabric.editor.mentionNode.label': string;
|
|
54
|
-
'fabric.editor.mentionsAddLabel': string;
|
|
55
|
-
'fabric.editor.mentionsIconLabel': string;
|
|
56
50
|
'fabric.editor.noResultsFound': string;
|
|
57
51
|
'fabric.editor.note': string;
|
|
58
52
|
'fabric.editor.outdent': string;
|
|
@@ -30,7 +30,6 @@ declare const _default: {
|
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
31
|
'fabric.editor.decisionPlaceholder': string;
|
|
32
32
|
'fabric.editor.edit': string;
|
|
33
|
-
'fabric.editor.editDateText': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
36
35
|
'fabric.editor.error': string;
|
|
@@ -46,13 +45,8 @@ declare const _default: {
|
|
|
46
45
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
47
46
|
'fabric.editor.indent': string;
|
|
48
47
|
'fabric.editor.info': string;
|
|
49
|
-
'fabric.editor.invalidDateError': string;
|
|
50
|
-
'fabric.editor.inviteItem.title': string;
|
|
51
48
|
'fabric.editor.leftSidebar': string;
|
|
52
49
|
'fabric.editor.matchCase': string;
|
|
53
|
-
'fabric.editor.mentionNode.label': string;
|
|
54
|
-
'fabric.editor.mentionsAddLabel': string;
|
|
55
|
-
'fabric.editor.mentionsIconLabel': string;
|
|
56
50
|
'fabric.editor.noResultsFound': string;
|
|
57
51
|
'fabric.editor.note': string;
|
|
58
52
|
'fabric.editor.outdent': string;
|
|
@@ -30,7 +30,6 @@ declare const _default: {
|
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
31
|
'fabric.editor.decisionPlaceholder': string;
|
|
32
32
|
'fabric.editor.edit': string;
|
|
33
|
-
'fabric.editor.editDateText': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
36
35
|
'fabric.editor.error': string;
|
|
@@ -46,13 +45,8 @@ declare const _default: {
|
|
|
46
45
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
47
46
|
'fabric.editor.indent': string;
|
|
48
47
|
'fabric.editor.info': string;
|
|
49
|
-
'fabric.editor.invalidDateError': string;
|
|
50
|
-
'fabric.editor.inviteItem.title': string;
|
|
51
48
|
'fabric.editor.leftSidebar': string;
|
|
52
49
|
'fabric.editor.matchCase': string;
|
|
53
|
-
'fabric.editor.mentionNode.label': string;
|
|
54
|
-
'fabric.editor.mentionsAddLabel': string;
|
|
55
|
-
'fabric.editor.mentionsIconLabel': string;
|
|
56
50
|
'fabric.editor.noResultsFound': string;
|
|
57
51
|
'fabric.editor.note': string;
|
|
58
52
|
'fabric.editor.outdent': string;
|
|
@@ -30,7 +30,6 @@ declare const _default: {
|
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
31
|
'fabric.editor.decisionPlaceholder': string;
|
|
32
32
|
'fabric.editor.edit': string;
|
|
33
|
-
'fabric.editor.editDateText': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
36
35
|
'fabric.editor.error': string;
|
|
@@ -46,13 +45,8 @@ declare const _default: {
|
|
|
46
45
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
47
46
|
'fabric.editor.indent': string;
|
|
48
47
|
'fabric.editor.info': string;
|
|
49
|
-
'fabric.editor.invalidDateError': string;
|
|
50
|
-
'fabric.editor.inviteItem.title': string;
|
|
51
48
|
'fabric.editor.leftSidebar': string;
|
|
52
49
|
'fabric.editor.matchCase': string;
|
|
53
|
-
'fabric.editor.mentionNode.label': string;
|
|
54
|
-
'fabric.editor.mentionsAddLabel': string;
|
|
55
|
-
'fabric.editor.mentionsIconLabel': string;
|
|
56
50
|
'fabric.editor.noResultsFound': string;
|
|
57
51
|
'fabric.editor.note': string;
|
|
58
52
|
'fabric.editor.outdent': string;
|
|
@@ -30,7 +30,6 @@ declare const _default: {
|
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
31
|
'fabric.editor.decisionPlaceholder': string;
|
|
32
32
|
'fabric.editor.edit': string;
|
|
33
|
-
'fabric.editor.editDateText': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
36
35
|
'fabric.editor.error': string;
|
|
@@ -46,13 +45,8 @@ declare const _default: {
|
|
|
46
45
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
47
46
|
'fabric.editor.indent': string;
|
|
48
47
|
'fabric.editor.info': string;
|
|
49
|
-
'fabric.editor.invalidDateError': string;
|
|
50
|
-
'fabric.editor.inviteItem.title': string;
|
|
51
48
|
'fabric.editor.leftSidebar': string;
|
|
52
49
|
'fabric.editor.matchCase': string;
|
|
53
|
-
'fabric.editor.mentionNode.label': string;
|
|
54
|
-
'fabric.editor.mentionsAddLabel': string;
|
|
55
|
-
'fabric.editor.mentionsIconLabel': string;
|
|
56
50
|
'fabric.editor.noResultsFound': string;
|
|
57
51
|
'fabric.editor.note': string;
|
|
58
52
|
'fabric.editor.outdent': string;
|
|
@@ -30,7 +30,6 @@ declare const _default: {
|
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
31
|
'fabric.editor.decisionPlaceholder': string;
|
|
32
32
|
'fabric.editor.edit': string;
|
|
33
|
-
'fabric.editor.editDateText': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
36
35
|
'fabric.editor.error': string;
|
|
@@ -46,13 +45,8 @@ declare const _default: {
|
|
|
46
45
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
47
46
|
'fabric.editor.indent': string;
|
|
48
47
|
'fabric.editor.info': string;
|
|
49
|
-
'fabric.editor.invalidDateError': string;
|
|
50
|
-
'fabric.editor.inviteItem.title': string;
|
|
51
48
|
'fabric.editor.leftSidebar': string;
|
|
52
49
|
'fabric.editor.matchCase': string;
|
|
53
|
-
'fabric.editor.mentionNode.label': string;
|
|
54
|
-
'fabric.editor.mentionsAddLabel': string;
|
|
55
|
-
'fabric.editor.mentionsIconLabel': string;
|
|
56
50
|
'fabric.editor.noResultsFound': string;
|
|
57
51
|
'fabric.editor.note': string;
|
|
58
52
|
'fabric.editor.outdent': string;
|
|
@@ -30,7 +30,6 @@ declare const _default: {
|
|
|
30
30
|
'fabric.editor.configPanel.submit': string;
|
|
31
31
|
'fabric.editor.decisionPlaceholder': string;
|
|
32
32
|
'fabric.editor.edit': string;
|
|
33
|
-
'fabric.editor.editDateText': string;
|
|
34
33
|
'fabric.editor.editorAssistiveLabel': string;
|
|
35
34
|
'fabric.editor.editors': string;
|
|
36
35
|
'fabric.editor.error': string;
|
|
@@ -46,13 +45,8 @@ declare const _default: {
|
|
|
46
45
|
'fabric.editor.headingLink.toolbarHelpTitle': string;
|
|
47
46
|
'fabric.editor.indent': string;
|
|
48
47
|
'fabric.editor.info': string;
|
|
49
|
-
'fabric.editor.invalidDateError': string;
|
|
50
|
-
'fabric.editor.inviteItem.title': string;
|
|
51
48
|
'fabric.editor.leftSidebar': string;
|
|
52
49
|
'fabric.editor.matchCase': string;
|
|
53
|
-
'fabric.editor.mentionNode.label': string;
|
|
54
|
-
'fabric.editor.mentionsAddLabel': string;
|
|
55
|
-
'fabric.editor.mentionsIconLabel': string;
|
|
56
50
|
'fabric.editor.noResultsFound': string;
|
|
57
51
|
'fabric.editor.note': string;
|
|
58
52
|
'fabric.editor.outdent': string;
|
|
@@ -192,7 +192,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
192
192
|
}, undefined>,
|
|
193
193
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"fakeTextCursor", {}, undefined>,
|
|
194
194
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"submitEditor", {
|
|
195
|
-
pluginConfiguration:
|
|
195
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-submit-editor").SubmitEditorPluginOptions | undefined;
|
|
196
196
|
dependencies: [
|
|
197
197
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
198
198
|
pluginConfiguration: import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined;
|
|
@@ -353,7 +353,7 @@ export declare function createDefaultPreset(options: EditorPresetProps & Default
|
|
|
353
353
|
};
|
|
354
354
|
}, import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined>>
|
|
355
355
|
];
|
|
356
|
-
},
|
|
356
|
+
}, import("@atlaskit/editor-plugin-submit-editor").SubmitEditorPluginOptions | undefined>,
|
|
357
357
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
358
358
|
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
359
359
|
}, undefined>,
|
|
@@ -763,7 +763,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
763
763
|
}, undefined>,
|
|
764
764
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"fakeTextCursor", {}, undefined>,
|
|
765
765
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"submitEditor", {
|
|
766
|
-
pluginConfiguration:
|
|
766
|
+
pluginConfiguration: import("@atlaskit/editor-plugin-submit-editor").SubmitEditorPluginOptions | undefined;
|
|
767
767
|
dependencies: [
|
|
768
768
|
import("@atlaskit/editor-common/types").OptionalPlugin<import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"media", {
|
|
769
769
|
pluginConfiguration: import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined;
|
|
@@ -924,7 +924,7 @@ export declare function useDefaultPreset(props: EditorPresetProps & DefaultPrese
|
|
|
924
924
|
};
|
|
925
925
|
}, import("@atlaskit/editor-plugin-media/types").MediaOptions | undefined>>
|
|
926
926
|
];
|
|
927
|
-
},
|
|
927
|
+
}, import("@atlaskit/editor-plugin-submit-editor").SubmitEditorPluginOptions | undefined>,
|
|
928
928
|
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
929
929
|
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
930
930
|
}, undefined>,
|
|
@@ -4,7 +4,7 @@ import type { CodeBlockOptions } from './types';
|
|
|
4
4
|
import type { decorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
5
5
|
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
6
6
|
import type { compositionPlugin } from '@atlaskit/editor-plugin-composition';
|
|
7
|
-
|
|
7
|
+
export type CodeBlockPlugin = NextEditorPlugin<'codeBlock', {
|
|
8
8
|
pluginConfiguration: CodeBlockOptions;
|
|
9
9
|
dependencies: [
|
|
10
10
|
typeof decorationsPlugin,
|
|
@@ -15,5 +15,5 @@ declare const codeBlockPlugin: NextEditorPlugin<'codeBlock', {
|
|
|
15
15
|
insertCodeBlock: (inputMethod: INPUT_METHOD) => Command;
|
|
16
16
|
};
|
|
17
17
|
}>;
|
|
18
|
+
declare const codeBlockPlugin: CodeBlockPlugin;
|
|
18
19
|
export default codeBlockPlugin;
|
|
19
|
-
export type CodeBlockPlugin = typeof codeBlockPlugin;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import type { Node as PMNode, NodeType } from '@atlaskit/editor-prosemirror/model';
|
|
3
|
-
import type { Command } from '
|
|
3
|
+
import type { Command } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
4
5
|
export declare const setExpandRef: (ref?: HTMLDivElement | null) => Command;
|
|
5
|
-
export declare const deleteExpandAtPos: (expandNodePos: number, expandNode: PMNode) => Command;
|
|
6
|
-
export declare const deleteExpand: () => Command;
|
|
6
|
+
export declare const deleteExpandAtPos: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (expandNodePos: number, expandNode: PMNode) => Command;
|
|
7
|
+
export declare const deleteExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
7
8
|
export declare const updateExpandTitle: (title: string, pos: number, nodeType: NodeType) => Command;
|
|
8
|
-
export declare const toggleExpandExpanded: (pos: number, nodeType: NodeType) => Command;
|
|
9
|
+
export declare const toggleExpandExpanded: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (pos: number, nodeType: NodeType) => Command;
|
|
9
10
|
export declare const createExpandNode: (state: EditorState) => PMNode | null;
|
|
10
|
-
export declare const insertExpand: Command;
|
|
11
|
+
export declare const insertExpand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => Command;
|
|
11
12
|
export declare const focusTitle: (pos: number) => Command;
|
|
12
13
|
export declare const setSelectionInsideExpand: (expandPos: number) => Command;
|
|
@@ -1,20 +1,27 @@
|
|
|
1
1
|
import type { NextEditorPlugin, EditorProps } from '../../types';
|
|
2
|
-
import
|
|
2
|
+
import { insertExpand } from './commands';
|
|
3
|
+
import type { LongPressSelectionPluginOptions, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
4
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
5
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
4
|
-
import type {
|
|
6
|
+
import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
|
|
5
7
|
import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
6
8
|
interface ExpandPluginOptions extends LongPressSelectionPluginOptions {
|
|
7
9
|
allowInsertion?: boolean;
|
|
8
10
|
appearance?: EditorProps['appearance'];
|
|
9
11
|
}
|
|
10
|
-
|
|
12
|
+
export type ExpandPlugin = NextEditorPlugin<'expand', {
|
|
11
13
|
pluginConfiguration: ExpandPluginOptions | undefined;
|
|
12
14
|
dependencies: [
|
|
13
15
|
FeatureFlagsPlugin,
|
|
14
|
-
|
|
15
|
-
SelectionPlugin
|
|
16
|
+
DecorationsPlugin,
|
|
17
|
+
SelectionPlugin,
|
|
18
|
+
OptionalPlugin<AnalyticsPlugin>
|
|
16
19
|
];
|
|
20
|
+
actions: {
|
|
21
|
+
insertExpand: ReturnType<typeof insertExpand>;
|
|
22
|
+
};
|
|
17
23
|
}>;
|
|
24
|
+
declare const expandPlugin: ExpandPlugin;
|
|
18
25
|
interface ExpandEditorProps {
|
|
19
26
|
allowExpand?: EditorProps['allowExpand'];
|
|
20
27
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { FloatingToolbarHandler } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type {
|
|
3
|
-
export declare const getToolbarConfig: (
|
|
1
|
+
import type { FloatingToolbarHandler, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { ExpandPlugin } from '.';
|
|
3
|
+
export declare const getToolbarConfig: (api: ExtractInjectionAPI<ExpandPlugin> | undefined) => FloatingToolbarHandler;
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import type { FeedbackInfo } from '../../types';
|
|
2
|
-
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
+
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
3
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
4
|
export declare const openFeedbackDialog: (feedbackInfo?: FeedbackInfo) => Promise<unknown>;
|
|
4
|
-
|
|
5
|
+
export type FeedbackDialogPlugin = NextEditorPlugin<'feedbackDialog', {
|
|
5
6
|
pluginConfiguration: FeedbackInfo;
|
|
7
|
+
dependencies: [
|
|
8
|
+
OptionalPlugin<AnalyticsPlugin>
|
|
9
|
+
];
|
|
6
10
|
}>;
|
|
11
|
+
declare const feedbackDialog: FeedbackDialogPlugin;
|
|
7
12
|
export default feedbackDialog;
|
|
@@ -12,7 +12,6 @@ export { default as maxContentSizePlugin } from './max-content-size';
|
|
|
12
12
|
export { default as panelPlugin } from './panel';
|
|
13
13
|
export { default as pastePlugin } from './paste';
|
|
14
14
|
export { default as placeholderTextPlugin } from './placeholder-text';
|
|
15
|
-
export { default as submitEditorPlugin } from './submit-editor';
|
|
16
15
|
export { default as tasksAndDecisionsPlugin } from './tasks-and-decisions';
|
|
17
16
|
export { default as textColorPlugin } from './text-color';
|
|
18
17
|
export { default as breakoutPlugin } from './breakout';
|
|
@@ -2,36 +2,38 @@ import type { OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
|
2
2
|
import type { ImageUploadPlugin } from '@atlaskit/editor-plugin-image-upload';
|
|
3
3
|
import type { EmojiPlugin } from '@atlaskit/editor-plugin-emoji';
|
|
4
4
|
import type { DatePlugin } from '@atlaskit/editor-plugin-date';
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
5
|
+
import type { TablePlugin } from '@atlaskit/editor-plugin-table';
|
|
6
|
+
import type { HyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
7
7
|
import type { FeatureFlagsPlugin } from '@atlaskit/editor-plugin-feature-flags';
|
|
8
|
-
import type {
|
|
8
|
+
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
9
9
|
import type { QuickInsertPlugin } from '@atlaskit/editor-plugin-quick-insert';
|
|
10
10
|
import type { BlockTypePlugin } from '@atlaskit/editor-plugin-block-type';
|
|
11
|
-
import type
|
|
12
|
-
import type
|
|
11
|
+
import type { CodeBlockPlugin } from '../code-block';
|
|
12
|
+
import type { PanelPlugin } from '../panel';
|
|
13
13
|
import type { LayoutPlugin } from '../layout';
|
|
14
14
|
import type { RulePlugin } from '@atlaskit/editor-plugin-rule';
|
|
15
15
|
import type { MediaPlugin } from '@atlaskit/editor-plugin-media';
|
|
16
16
|
import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
|
|
17
17
|
import type { MentionsPlugin } from '@atlaskit/editor-plugin-mentions';
|
|
18
18
|
import type { StatusPlugin } from '@atlaskit/editor-plugin-status';
|
|
19
|
+
import type { ExpandPlugin } from '../expand';
|
|
19
20
|
export type InsertBlockPluginDependencies = [
|
|
20
21
|
FeatureFlagsPlugin,
|
|
21
22
|
TypeAheadPlugin,
|
|
22
|
-
OptionalPlugin<
|
|
23
|
-
OptionalPlugin<
|
|
23
|
+
OptionalPlugin<TablePlugin>,
|
|
24
|
+
OptionalPlugin<HyperlinkPlugin>,
|
|
24
25
|
OptionalPlugin<DatePlugin>,
|
|
25
26
|
OptionalPlugin<BlockTypePlugin>,
|
|
26
|
-
OptionalPlugin<
|
|
27
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
27
28
|
OptionalPlugin<ImageUploadPlugin>,
|
|
28
29
|
OptionalPlugin<EmojiPlugin>,
|
|
29
30
|
OptionalPlugin<QuickInsertPlugin>,
|
|
30
31
|
OptionalPlugin<RulePlugin>,
|
|
31
|
-
OptionalPlugin<
|
|
32
|
-
OptionalPlugin<
|
|
32
|
+
OptionalPlugin<CodeBlockPlugin>,
|
|
33
|
+
OptionalPlugin<PanelPlugin>,
|
|
33
34
|
OptionalPlugin<MediaPlugin>,
|
|
34
35
|
OptionalPlugin<MentionsPlugin>,
|
|
35
36
|
OptionalPlugin<StatusPlugin>,
|
|
36
|
-
OptionalPlugin<LayoutPlugin
|
|
37
|
+
OptionalPlugin<LayoutPlugin>,
|
|
38
|
+
OptionalPlugin<ExpandPlugin>
|
|
37
39
|
];
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import type { NodeType, ResolvedPos, Schema } from '@atlaskit/editor-prosemirror/model';
|
|
2
2
|
import type { EditorState, Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import type { Command } from '../../types';
|
|
4
|
-
import {
|
|
4
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
6
|
import type { TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
|
|
6
7
|
import type { AddItemAttrs, AddItemTransactionCreator, TaskDecisionInputMethod, TaskDecisionListType } from './types';
|
|
7
8
|
export declare const getListTypes: (listType: TaskDecisionListType, schema: Schema) => {
|
|
8
9
|
list: NodeType;
|
|
9
10
|
item: NodeType;
|
|
10
11
|
};
|
|
11
|
-
export declare const insertTaskDecisionAction: (state: EditorState, listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction;
|
|
12
|
-
export declare const insertTaskDecisionCommand: (listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string) => Command;
|
|
13
|
-
export declare const insertTaskDecisionWithAnalytics: (state: EditorState, listType: TaskDecisionListType, inputMethod: TaskDecisionInputMethod, addAndCreateList: AddItemTransactionCreator, addToList?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction | null;
|
|
12
|
+
export declare const insertTaskDecisionAction: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (state: EditorState, listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction;
|
|
13
|
+
export declare const insertTaskDecisionCommand: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (listType: TaskDecisionListType, inputMethod?: INPUT_METHOD.FORMATTING | INPUT_METHOD.QUICK_INSERT | TOOLBAR_MENU_TYPE, addItem?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string) => Command;
|
|
14
|
+
export declare const insertTaskDecisionWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (state: EditorState, listType: TaskDecisionListType, inputMethod: TaskDecisionInputMethod, addAndCreateList: AddItemTransactionCreator, addToList?: AddItemTransactionCreator, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction | null;
|
|
14
15
|
export declare const isSupportedSourceNode: (schema: Schema, selection: Selection) => boolean;
|
|
15
16
|
export declare const changeInDepth: (before: ResolvedPos, after: ResolvedPos) => number;
|
|
16
17
|
export declare const createListAtSelection: (tr: Transaction, list: any, item: any, schema: Schema, state: EditorState, listLocalId?: string, itemLocalId?: string, itemAttrs?: AddItemAttrs) => Transaction | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { FeatureFlags } from '../../../types/feature-flags';
|
|
2
2
|
import type { Schema } from '@atlaskit/editor-prosemirror/model';
|
|
3
3
|
import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
|
-
|
|
4
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
5
|
+
export declare const inputRulePlugin: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (schema: Schema, featureFlags: FeatureFlags) => SafePlugin;
|
|
5
6
|
export default inputRulePlugin;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React, { PureComponent } from 'react';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { TaskAndDecisionsPlugin } from '../../types';
|
|
4
6
|
export interface Props {
|
|
5
7
|
editorView?: EditorView;
|
|
6
8
|
isDisabled?: boolean;
|
|
7
9
|
isReducedSpacing?: boolean;
|
|
10
|
+
editorAPI: ExtractInjectionAPI<TaskAndDecisionsPlugin> | undefined;
|
|
8
11
|
}
|
|
9
12
|
export interface State {
|
|
10
13
|
disabled: boolean;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React, { PureComponent } from 'react';
|
|
2
2
|
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
3
|
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
+
import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
5
|
+
import type { TaskAndDecisionsPlugin } from '../../types';
|
|
4
6
|
export interface Props {
|
|
5
7
|
editorView?: EditorView;
|
|
6
8
|
isDisabled?: boolean;
|
|
7
9
|
isReducedSpacing?: boolean;
|
|
10
|
+
editorAPI: ExtractInjectionAPI<TaskAndDecisionsPlugin> | undefined;
|
|
8
11
|
}
|
|
9
12
|
export interface State {
|
|
10
13
|
disabled: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "189.0.0",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -95,6 +95,7 @@
|
|
|
95
95
|
"@atlaskit/editor-plugin-selection": "^0.1.0",
|
|
96
96
|
"@atlaskit/editor-plugin-selection-toolbar": "^0.1.0",
|
|
97
97
|
"@atlaskit/editor-plugin-status": "^0.1.0",
|
|
98
|
+
"@atlaskit/editor-plugin-submit-editor": "^0.1.0",
|
|
98
99
|
"@atlaskit/editor-plugin-table": "^5.3.0",
|
|
99
100
|
"@atlaskit/editor-plugin-text-formatting": "^0.4.0",
|
|
100
101
|
"@atlaskit/editor-plugin-type-ahead": "^0.7.0",
|
|
@@ -163,7 +164,7 @@
|
|
|
163
164
|
"@atlaskit/inline-dialog": "^13.6.0",
|
|
164
165
|
"@atlaskit/link-analytics": "^8.3.0",
|
|
165
166
|
"@atlaskit/link-provider": "^1.6.0",
|
|
166
|
-
"@atlaskit/link-test-helpers": "^6.
|
|
167
|
+
"@atlaskit/link-test-helpers": "^6.2.0",
|
|
167
168
|
"@atlaskit/media-core": "^34.1.0",
|
|
168
169
|
"@atlaskit/media-integration-test-helpers": "^3.0.0",
|
|
169
170
|
"@atlaskit/media-test-helpers": "^33.0.0",
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.createPlugin = createPlugin;
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
var _keymap2 = require("@atlaskit/editor-prosemirror/keymap");
|
|
11
|
-
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
12
|
-
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
13
|
-
var _consts = require("../analytics/consts");
|
|
14
|
-
function createPlugin(eventDispatch, api, onSave) {
|
|
15
|
-
if (!onSave) {
|
|
16
|
-
return;
|
|
17
|
-
}
|
|
18
|
-
return (0, _keymap2.keymap)((0, _defineProperty2.default)({}, "".concat(_keymaps.submit.common), function _(state, _dispatch, editorView) {
|
|
19
|
-
var _api$media;
|
|
20
|
-
var mediaState = api === null || api === void 0 || (_api$media = api.media) === null || _api$media === void 0 || (_api$media = _api$media.sharedState) === null || _api$media === void 0 ? void 0 : _api$media.currentState();
|
|
21
|
-
if (mediaState && mediaState.waitForMediaUpload && !mediaState.allUploadsFinished) {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
if (!editorView) {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
eventDispatch(_consts.analyticsEventKey, analyticsPayload(state));
|
|
28
|
-
onSave(editorView);
|
|
29
|
-
return true;
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
var analyticsPayload = function analyticsPayload(state) {
|
|
33
|
-
return {
|
|
34
|
-
payload: {
|
|
35
|
-
action: _analytics.ACTION.STOPPED,
|
|
36
|
-
actionSubject: _analytics.ACTION_SUBJECT.EDITOR,
|
|
37
|
-
actionSubjectId: _analytics.ACTION_SUBJECT_ID.SAVE,
|
|
38
|
-
attributes: {
|
|
39
|
-
inputMethod: _analytics.INPUT_METHOD.SHORTCUT,
|
|
40
|
-
documentSize: state.doc.nodeSize
|
|
41
|
-
// TODO add individual node counts - tables, headings, lists, mediaSingles, mediaGroups, mediaCards, panels, extensions, decisions, action, codeBlocks
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
eventType: _analytics.EVENT_TYPE.UI
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
var submitEditorPlugin = function submitEditorPlugin(_ref) {
|
|
49
|
-
var onSave = _ref.config,
|
|
50
|
-
api = _ref.api;
|
|
51
|
-
return {
|
|
52
|
-
name: 'submitEditor',
|
|
53
|
-
pmPlugins: function pmPlugins() {
|
|
54
|
-
return [{
|
|
55
|
-
name: 'submitEditor',
|
|
56
|
-
plugin: function plugin(_ref2) {
|
|
57
|
-
var dispatch = _ref2.dispatch;
|
|
58
|
-
return createPlugin(dispatch, api, onSave);
|
|
59
|
-
}
|
|
60
|
-
}];
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
var _default = exports.default = submitEditorPlugin;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
2
|
-
import { submit } from '@atlaskit/editor-common/keymaps';
|
|
3
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import { analyticsEventKey } from '../analytics/consts';
|
|
5
|
-
export function createPlugin(eventDispatch, api, onSave) {
|
|
6
|
-
if (!onSave) {
|
|
7
|
-
return;
|
|
8
|
-
}
|
|
9
|
-
return keymap({
|
|
10
|
-
[`${submit.common}`]: (state, _dispatch, editorView) => {
|
|
11
|
-
var _api$media, _api$media$sharedStat;
|
|
12
|
-
const mediaState = api === null || api === void 0 ? void 0 : (_api$media = api.media) === null || _api$media === void 0 ? void 0 : (_api$media$sharedStat = _api$media.sharedState) === null || _api$media$sharedStat === void 0 ? void 0 : _api$media$sharedStat.currentState();
|
|
13
|
-
if (mediaState && mediaState.waitForMediaUpload && !mediaState.allUploadsFinished) {
|
|
14
|
-
return true;
|
|
15
|
-
}
|
|
16
|
-
if (!editorView) {
|
|
17
|
-
return false;
|
|
18
|
-
}
|
|
19
|
-
eventDispatch(analyticsEventKey, analyticsPayload(state));
|
|
20
|
-
onSave(editorView);
|
|
21
|
-
return true;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
const analyticsPayload = state => ({
|
|
26
|
-
payload: {
|
|
27
|
-
action: ACTION.STOPPED,
|
|
28
|
-
actionSubject: ACTION_SUBJECT.EDITOR,
|
|
29
|
-
actionSubjectId: ACTION_SUBJECT_ID.SAVE,
|
|
30
|
-
attributes: {
|
|
31
|
-
inputMethod: INPUT_METHOD.SHORTCUT,
|
|
32
|
-
documentSize: state.doc.nodeSize
|
|
33
|
-
// TODO add individual node counts - tables, headings, lists, mediaSingles, mediaGroups, mediaCards, panels, extensions, decisions, action, codeBlocks
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
eventType: EVENT_TYPE.UI
|
|
37
|
-
}
|
|
38
|
-
});
|
|
39
|
-
const submitEditorPlugin = ({
|
|
40
|
-
config: onSave,
|
|
41
|
-
api
|
|
42
|
-
}) => ({
|
|
43
|
-
name: 'submitEditor',
|
|
44
|
-
pmPlugins() {
|
|
45
|
-
return [{
|
|
46
|
-
name: 'submitEditor',
|
|
47
|
-
plugin: ({
|
|
48
|
-
dispatch
|
|
49
|
-
}) => createPlugin(dispatch, api, onSave)
|
|
50
|
-
}];
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
export default submitEditorPlugin;
|