@atlaskit/editor-core 188.13.5 → 188.13.6
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 +6 -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/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/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/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/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/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/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/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/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/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/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 +1 -1
package/dist/es2019/i18n/fr.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Soumettre',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'Ajoutez une décision…',
|
|
34
34
|
'fabric.editor.edit': 'Modifier',
|
|
35
|
-
'fabric.editor.editDateText': 'Modifier la date',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Zone de contenu principale, commencez à taper pour saisir du texte.',
|
|
37
36
|
'fabric.editor.editors': 'Éditeurs',
|
|
38
37
|
'fabric.editor.error': 'Erreur',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': "Ouvrir la boîte de dialogue d'aide",
|
|
49
48
|
'fabric.editor.indent': 'Retrait positif',
|
|
50
49
|
'fabric.editor.info': 'Informations',
|
|
51
|
-
'fabric.editor.invalidDateError': 'Saisissez une date valide',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {Inviter un coéquipier à rejoindre {productName}} trusted {Inviter un coéquipier à rejoindre {productName}} other {Ajouter un coéquipier à {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'Barre latérale de gauche',
|
|
54
51
|
'fabric.editor.matchCase': 'Respecter la casse',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'Utilisateur mentionné',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'icône-ajout',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'Mention',
|
|
58
52
|
'fabric.editor.noResultsFound': 'Aucun résultat',
|
|
59
53
|
'fabric.editor.note': 'Note',
|
|
60
54
|
'fabric.editor.outdent': 'Retrait négatif',
|
package/dist/es2019/i18n/hu.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Küldés',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'Döntés hozzáadása...',
|
|
34
34
|
'fabric.editor.edit': 'Szerkesztés',
|
|
35
|
-
'fabric.editor.editDateText': 'Dátum szerkesztése',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Fő tartalmi terület, kezdj el gépelni a szöveg beviteléhez.',
|
|
37
36
|
'fabric.editor.editors': 'Szerkesztők',
|
|
38
37
|
'fabric.editor.error': 'Hiba',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Súgópanel megnyitása',
|
|
49
48
|
'fabric.editor.indent': 'Behúzás',
|
|
50
49
|
'fabric.editor.info': 'Információ',
|
|
51
|
-
'fabric.editor.invalidDateError': 'Adj meg egy érvényes dátumot',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {Csapattag meghívása a(z) {productName} termékbe} trusted {Csapattag meghívása a(z) {productName} termékbe} other {Csapattag hozzáadása a(z) {productName} termékhez}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'Bal oldali oldalsáv',
|
|
54
51
|
'fabric.editor.matchCase': 'Kis- és nagybetűk megkülönböztetése',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'Felhasználó felcímkézve',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'Hozzáadás ikon',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'Említés',
|
|
58
52
|
'fabric.editor.noResultsFound': 'Nincs találat',
|
|
59
53
|
'fabric.editor.note': 'Megjegyzés',
|
|
60
54
|
'fabric.editor.outdent': 'Kihúzás',
|
package/dist/es2019/i18n/it.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Invia',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'Aggiungi una decisione…',
|
|
34
34
|
'fabric.editor.edit': 'Modifica',
|
|
35
|
-
'fabric.editor.editDateText': 'Modifica data',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Area del contenuto principale; inizia a digitare per inserire il testo.',
|
|
37
36
|
'fabric.editor.editors': 'Editor',
|
|
38
37
|
'fabric.editor.error': 'Errore',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Apri finestra della guida',
|
|
49
48
|
'fabric.editor.indent': 'Rientro',
|
|
50
49
|
'fabric.editor.info': 'Info',
|
|
51
|
-
'fabric.editor.invalidDateError': 'Inserisci una data valida',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {Invita un collega in {productName}} trusted {Invita un collega in {productName}} other {Aggiunti un collega a {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'Barra laterale sinistra',
|
|
54
51
|
'fabric.editor.matchCase': 'Maiuscole/Minuscole',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'Utente taggato',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'icona aggiungi',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'Menziona',
|
|
58
52
|
'fabric.editor.noResultsFound': 'Nessun risultato',
|
|
59
53
|
'fabric.editor.note': 'Nota',
|
|
60
54
|
'fabric.editor.outdent': 'Rientro negativo',
|
package/dist/es2019/i18n/ja.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': '送信',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': '決定事項を追加…',
|
|
34
34
|
'fabric.editor.edit': '編集',
|
|
35
|
-
'fabric.editor.editDateText': '日付を編集',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'メイン コンテンツ領域。入力を開始してテキストを入力します。',
|
|
37
36
|
'fabric.editor.editors': '編集者',
|
|
38
37
|
'fabric.editor.error': 'エラー',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'ヘルプ ダイアログを開く',
|
|
49
48
|
'fabric.editor.indent': 'インデント',
|
|
50
49
|
'fabric.editor.info': '情報',
|
|
51
|
-
'fabric.editor.invalidDateError': '有効な日付を入力してください',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {チームメイトを {productName} に招待} trusted {チームメイトを {productName} に招待} other {チームメイトを {productName} に追加}}',
|
|
53
50
|
'fabric.editor.leftSidebar': '左サイドバー',
|
|
54
51
|
'fabric.editor.matchCase': '大文字/小文字を区別',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'タグ付けされたユーザー',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': '追加アイコン',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'メンション',
|
|
58
52
|
'fabric.editor.noResultsFound': '該当する結果がありません',
|
|
59
53
|
'fabric.editor.note': 'メモ',
|
|
60
54
|
'fabric.editor.outdent': 'インデント解除',
|
package/dist/es2019/i18n/ko.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': '제출',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': '결정 추가...',
|
|
34
34
|
'fabric.editor.edit': '편집',
|
|
35
|
-
'fabric.editor.editDateText': '날짜 편집',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': '주 콘텐츠 영역입니다. 텍스트를 입력하세요.',
|
|
37
36
|
'fabric.editor.editors': '편집기',
|
|
38
37
|
'fabric.editor.error': '오류',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': '도움말 대화 상자 열기',
|
|
49
48
|
'fabric.editor.indent': '들여쓰기',
|
|
50
49
|
'fabric.editor.info': '정보',
|
|
51
|
-
'fabric.editor.invalidDateError': '올바른 날짜를 입력하세요',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {팀원을 {productName}에 초대} trusted {팀원을 {productName}에 초대} other {팀원을 {productName}에 추가}}',
|
|
53
50
|
'fabric.editor.leftSidebar': '왼쪽 사이드바',
|
|
54
51
|
'fabric.editor.matchCase': '대/소문자 구분',
|
|
55
|
-
'fabric.editor.mentionNode.label': '태그된 사용자',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': '아이콘 추가',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': '멘션',
|
|
58
52
|
'fabric.editor.noResultsFound': '결과 없음',
|
|
59
53
|
'fabric.editor.note': '메모',
|
|
60
54
|
'fabric.editor.outdent': '내어쓰기',
|
package/dist/es2019/i18n/nb.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Send inn',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'Legg til en beslutning …',
|
|
34
34
|
'fabric.editor.edit': 'Rediger',
|
|
35
|
-
'fabric.editor.editDateText': 'Rediger dato',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Hovedinnholdsområde, begynn å skrive for å angi tekst.',
|
|
37
36
|
'fabric.editor.editors': 'Brukere med redigeringstilgang',
|
|
38
37
|
'fabric.editor.error': 'Feil',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Åpne dialogboks for hjelp',
|
|
49
48
|
'fabric.editor.indent': 'Innrykk',
|
|
50
49
|
'fabric.editor.info': 'Informasjon',
|
|
51
|
-
'fabric.editor.invalidDateError': 'Oppgi en gyldig dato',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {Inviter teammedlemmer til {productName}} trusted {Inviter teammedlemmer til {productName}} other {Legg til teammedlem i {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'Sidelinje til venstre',
|
|
54
51
|
'fabric.editor.matchCase': 'Match store/små bokstaver',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'Merket bruker',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'legg til-ikon',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'Nevn',
|
|
58
52
|
'fabric.editor.noResultsFound': 'Ingen resultater',
|
|
59
53
|
'fabric.editor.note': 'Merknad',
|
|
60
54
|
'fabric.editor.outdent': 'Reduser innrykk',
|
package/dist/es2019/i18n/nl.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Verzenden',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'Beslissing toevoegen...',
|
|
34
34
|
'fabric.editor.edit': 'Bewerken',
|
|
35
|
-
'fabric.editor.editDateText': 'Bewerkingsdatum',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Hoofdveld content, begin met typen om tekst in te voeren.',
|
|
37
36
|
'fabric.editor.editors': 'Editors',
|
|
38
37
|
'fabric.editor.error': 'Fout',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Open helpdialoogvenster',
|
|
49
48
|
'fabric.editor.indent': 'Inspringen',
|
|
50
49
|
'fabric.editor.info': 'Informatie',
|
|
51
|
-
'fabric.editor.invalidDateError': 'Voer een geldige datum in',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {Nodig teamgenoten uit voor {productName}} trusted {Nodig teamgenoten uit voor {productName}} other {Voeg teamgenoten toe aan {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'Zijbalk aan linkerkant',
|
|
54
51
|
'fabric.editor.matchCase': 'Overeenkomende zaak',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'Getagde gebruiker',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'pictogram toevoegen',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'Vermelding',
|
|
58
52
|
'fabric.editor.noResultsFound': 'Geen resultaten',
|
|
59
53
|
'fabric.editor.note': 'Notitie',
|
|
60
54
|
'fabric.editor.outdent': 'Inspringen verkleinen',
|
package/dist/es2019/i18n/pl.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Wyślij',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'Dodaj decyzję…',
|
|
34
34
|
'fabric.editor.edit': 'Edytuj',
|
|
35
|
-
'fabric.editor.editDateText': 'Data edycji',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Główny obszar zawartości. Zacznij pisać, aby wprowadzić tekst.',
|
|
37
36
|
'fabric.editor.editors': 'Edytujący',
|
|
38
37
|
'fabric.editor.error': 'Błąd',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Otwórz okno dialogowe pomocy',
|
|
49
48
|
'fabric.editor.indent': 'Zwiększ wcięcie',
|
|
50
49
|
'fabric.editor.info': 'Informacje',
|
|
51
|
-
'fabric.editor.invalidDateError': 'Wprowadź prawidłową datę',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {Zaproś członka zespołu do produktu {productName}} trusted {Zaproś członka zespołu do produktu {productName}} other {Dodaj członka zespołu do produktu {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'Lewy pasek boczny',
|
|
54
51
|
'fabric.editor.matchCase': 'Uwzględniaj wielkość liter',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'Oznaczony użytkownik',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'Ikona dodawania',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'Wzmianka',
|
|
58
52
|
'fabric.editor.noResultsFound': 'Brak wyników',
|
|
59
53
|
'fabric.editor.note': 'Uwaga',
|
|
60
54
|
'fabric.editor.outdent': 'Zmniejsz wcięcie',
|
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Enviar',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'Adicionar uma decisão...',
|
|
34
34
|
'fabric.editor.edit': 'Editar',
|
|
35
|
-
'fabric.editor.editDateText': 'Editar data',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Área de conteúdo principal, comece a digitar para inserir texto.',
|
|
37
36
|
'fabric.editor.editors': 'Editores',
|
|
38
37
|
'fabric.editor.error': 'Erro',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Abrir diálogo de ajuda',
|
|
49
48
|
'fabric.editor.indent': 'Recuo',
|
|
50
49
|
'fabric.editor.info': 'Informações',
|
|
51
|
-
'fabric.editor.invalidDateError': 'Informe uma data válida',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {Convidar colega de equipe para {productName}} trusted {Convidar colega de equipe para {productName}} other {Adicionar colega de equipe para {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'Barra lateral esquerda',
|
|
54
51
|
'fabric.editor.matchCase': 'Diferenciar maiúsculas de minúsculas',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'Usuário marcado',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'ícone de adicionar',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'Menção',
|
|
58
52
|
'fabric.editor.noResultsFound': 'Sem resultados',
|
|
59
53
|
'fabric.editor.note': 'Observação',
|
|
60
54
|
'fabric.editor.outdent': 'Recuo para a esquerda',
|
package/dist/es2019/i18n/ru.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Отправить',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'Добавить решение…',
|
|
34
34
|
'fabric.editor.edit': 'Изменить',
|
|
35
|
-
'fabric.editor.editDateText': 'Редактировать дату',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Область основного содержимого. Начните печатать, чтобы ввести текст.',
|
|
37
36
|
'fabric.editor.editors': 'Редакторы',
|
|
38
37
|
'fabric.editor.error': 'Ошибка',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Открыть справку',
|
|
49
48
|
'fabric.editor.indent': 'Сделать отступ',
|
|
50
49
|
'fabric.editor.info': 'Информация',
|
|
51
|
-
'fabric.editor.invalidDateError': 'Введите действительную дату',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {Пригласить коллегу начать работу с {productName}} trusted {Пригласить коллегу начать работу с {productName}} other {Добавить коллегу для работы с {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'Левая боковая панель',
|
|
54
51
|
'fabric.editor.matchCase': 'С учетом регистра',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'Упомянут пользователь',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'добавить-значок',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'Упоминание',
|
|
58
52
|
'fabric.editor.noResultsFound': 'Ничего не найдено',
|
|
59
53
|
'fabric.editor.note': 'Примечание',
|
|
60
54
|
'fabric.editor.outdent': 'Убрать отступ',
|
package/dist/es2019/i18n/sv.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Skicka in',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'Lägg till ett beslut ...',
|
|
34
34
|
'fabric.editor.edit': 'Redigera',
|
|
35
|
-
'fabric.editor.editDateText': 'Redigeringsdatum',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Huvudsakligt innehållsområde, börja skriva för att ange text.',
|
|
37
36
|
'fabric.editor.editors': 'Redigerare',
|
|
38
37
|
'fabric.editor.error': 'Fel',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Öppna hjälpdialogruta',
|
|
49
48
|
'fabric.editor.indent': 'Indrag',
|
|
50
49
|
'fabric.editor.info': 'Info',
|
|
51
|
-
'fabric.editor.invalidDateError': 'Ange ett giltigt datum',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {Bjud in teammedlem till {productName}} trusted {Bjud in teammedlem till {productName}} other {Lägg till teammedlem i {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'Vänster sidopanel',
|
|
54
51
|
'fabric.editor.matchCase': 'Matcha skiftläge',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'Taggade användaren',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'lägg till-ikon',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'Omnämnande',
|
|
58
52
|
'fabric.editor.noResultsFound': 'Inga resultat',
|
|
59
53
|
'fabric.editor.note': 'Anteckning',
|
|
60
54
|
'fabric.editor.outdent': 'Utdrag',
|
package/dist/es2019/i18n/th.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'ส่ง',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'เพิ่มการตัดสินใจ…',
|
|
34
34
|
'fabric.editor.edit': 'แก้ไข',
|
|
35
|
-
'fabric.editor.editDateText': 'แก้ไขวันที่',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'พื้นที่เนื้อหาหลัก เริ่มพิมพ์เพื่อป้อนข้อความ',
|
|
37
36
|
'fabric.editor.editors': 'บรรณาธิการ',
|
|
38
37
|
'fabric.editor.error': 'ข้อผิดพลาด',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'เปิดกรอบโต้ตอบความช่วยเหลือ',
|
|
49
48
|
'fabric.editor.indent': 'ย่อหน้าเข้า',
|
|
50
49
|
'fabric.editor.info': 'ข้อมูล',
|
|
51
|
-
'fabric.editor.invalidDateError': 'ป้อนวันที่ที่ถูกต้อง',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {เชิญเพื่อนร่วมทีมให้ไปยัง {productName}} trusted {เชิญเพื่อนร่วมทีมให้ไปยัง {productName}} other {เพิ่มเพื่อนร่วมทีมไปยัง {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'แถบด้านซ้าย',
|
|
54
51
|
'fabric.editor.matchCase': 'รายการที่ตรงกัน',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'แท็กผู้ใช้',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'ไอคอนเพื่อเพิ่มการอ้างถึง',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'กล่าวถึง',
|
|
58
52
|
'fabric.editor.noResultsFound': 'ไม่พบผลลัพธ์',
|
|
59
53
|
'fabric.editor.note': 'บันทึก',
|
|
60
54
|
'fabric.editor.outdent': 'ย่อหน้าออก',
|
package/dist/es2019/i18n/tr.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Gönder',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'Karar ekle…',
|
|
34
34
|
'fabric.editor.edit': 'Düzenle',
|
|
35
|
-
'fabric.editor.editDateText': 'Tarihi Düzenle',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Ana içerik alanı, metin girmek için yazmaya başlayın.',
|
|
37
36
|
'fabric.editor.editors': 'Düzenleyiciler',
|
|
38
37
|
'fabric.editor.error': 'Hata',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Yardım iletişim kutusunu aç',
|
|
49
48
|
'fabric.editor.indent': 'Girintile',
|
|
50
49
|
'fabric.editor.info': 'Bilgi',
|
|
51
|
-
'fabric.editor.invalidDateError': 'Geçerli bir tarih girin',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {Takım arkadaşınızı {productName} ürününe davet edin} trusted {Takım arkadaşınızı {productName} ürününe davet edin} other {Takım arkadaşınızı {productName} ürününe ekleyin}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'Sol kenar çubuğu',
|
|
54
51
|
'fabric.editor.matchCase': 'Büyük/küçük harf eşleştir',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'Şu kullanıcı etiketlendi:',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'ekle-simgesi',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'Bahsetme',
|
|
58
52
|
'fabric.editor.noResultsFound': 'Sonuç yok',
|
|
59
53
|
'fabric.editor.note': 'Not',
|
|
60
54
|
'fabric.editor.outdent': 'Girintiyi azalt',
|
package/dist/es2019/i18n/uk.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Надіслати',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'Додати рішення...',
|
|
34
34
|
'fabric.editor.edit': 'Редагувати',
|
|
35
|
-
'fabric.editor.editDateText': 'Змінення дати',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Основна область вмісту: почніть вводити текст.',
|
|
37
36
|
'fabric.editor.editors': 'Редактори',
|
|
38
37
|
'fabric.editor.error': 'Помилка',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Відкрити довідку',
|
|
49
48
|
'fabric.editor.indent': 'Відступ вправо',
|
|
50
49
|
'fabric.editor.info': 'Інформація',
|
|
51
|
-
'fabric.editor.invalidDateError': 'Введіть дійсну дату',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {Запрошення учасника команди до {productName}} trusted {Запрошення учасника команди до {productName}} other {Додавання учасника команди до {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'Бічна панель ліворуч',
|
|
54
51
|
'fabric.editor.matchCase': 'Враховувати регістр',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'Згаданий за допомогою тегу користувач',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'додати-значок',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'Згадка',
|
|
58
52
|
'fabric.editor.noResultsFound': 'Немає результатів',
|
|
59
53
|
'fabric.editor.note': 'Примітка',
|
|
60
54
|
'fabric.editor.outdent': 'Відступ вліво',
|
package/dist/es2019/i18n/vi.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Gửi',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': 'Thêm quyết định…',
|
|
34
34
|
'fabric.editor.edit': 'Chỉnh sửa',
|
|
35
|
-
'fabric.editor.editDateText': 'Sửa ngày',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Vùng nội dung chính, bắt đầu gõ để nhập văn bản.',
|
|
37
36
|
'fabric.editor.editors': 'Người chỉnh sửa',
|
|
38
37
|
'fabric.editor.error': 'Lỗi',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': 'Mở hộp thoại trợ giúp',
|
|
49
48
|
'fabric.editor.indent': 'Thụt lề',
|
|
50
49
|
'fabric.editor.info': 'Thông tin',
|
|
51
|
-
'fabric.editor.invalidDateError': 'Nhập ngày hợp lệ',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {Mời thành viên cùng nhóm vào {productName}} trusted {Mời thành viên cùng nhóm vào {productName}} other {Thêm thành viên cùng nhóm vào {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': 'Thanh bên trái',
|
|
54
51
|
'fabric.editor.matchCase': 'Khớp cách viết hoa',
|
|
55
|
-
'fabric.editor.mentionNode.label': 'Người dùng được gắn thẻ',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': 'biểu tượng thêm',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': 'Đề cập',
|
|
58
52
|
'fabric.editor.noResultsFound': 'Không có kết quả',
|
|
59
53
|
'fabric.editor.note': 'Lưu ý',
|
|
60
54
|
'fabric.editor.outdent': 'Nhô lề',
|
package/dist/es2019/i18n/zh.js
CHANGED
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': '提交',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': '添加决定...',
|
|
34
34
|
'fabric.editor.edit': '编辑',
|
|
35
|
-
'fabric.editor.editDateText': '编辑日期',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': '主内容区域,开始键入以输入文本。',
|
|
37
36
|
'fabric.editor.editors': '编辑者',
|
|
38
37
|
'fabric.editor.error': '错误',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': '打开帮助对话框',
|
|
49
48
|
'fabric.editor.indent': '增大缩进',
|
|
50
49
|
'fabric.editor.info': '信息',
|
|
51
|
-
'fabric.editor.invalidDateError': '输入有效日期',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {邀请团队成员加入 {productName}} trusted {邀请团队成员加入 {productName}} other {将团队成员添加至 {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': '左侧栏',
|
|
54
51
|
'fabric.editor.matchCase': '匹配大小写',
|
|
55
|
-
'fabric.editor.mentionNode.label': '已标记用户',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': '“添加”图标',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': '提及',
|
|
58
52
|
'fabric.editor.noResultsFound': '无结果',
|
|
59
53
|
'fabric.editor.note': '说明',
|
|
60
54
|
'fabric.editor.outdent': '减小缩进',
|
|
@@ -32,7 +32,6 @@ export default {
|
|
|
32
32
|
'fabric.editor.configPanel.submit': '提交',
|
|
33
33
|
'fabric.editor.decisionPlaceholder': '新增決定…',
|
|
34
34
|
'fabric.editor.edit': '編輯',
|
|
35
|
-
'fabric.editor.editDateText': '編輯日期',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': '主要內容區域,打字即可輸入文字。',
|
|
37
36
|
'fabric.editor.editors': '編輯者',
|
|
38
37
|
'fabric.editor.error': '錯誤',
|
|
@@ -48,13 +47,8 @@ export default {
|
|
|
48
47
|
'fabric.editor.headingLink.toolbarHelpTitle': '開啟說明對話方塊',
|
|
49
48
|
'fabric.editor.indent': '增加縮排',
|
|
50
49
|
'fabric.editor.info': '資訊',
|
|
51
|
-
'fabric.editor.invalidDateError': '請輸入有效的日期',
|
|
52
|
-
'fabric.editor.inviteItem.title': '{userRole, select, admin {邀請團隊成員加入 {productName}} trusted {邀請團隊成員加入 {productName}} other {將團隊成員新增至 {productName}}}',
|
|
53
50
|
'fabric.editor.leftSidebar': '左側資訊看板',
|
|
54
51
|
'fabric.editor.matchCase': '大小寫須相符',
|
|
55
|
-
'fabric.editor.mentionNode.label': '已標記使用者',
|
|
56
|
-
'fabric.editor.mentionsAddLabel': '新增圖示',
|
|
57
|
-
'fabric.editor.mentionsIconLabel': '提及',
|
|
58
52
|
'fabric.editor.noResultsFound': '沒有結果',
|
|
59
53
|
'fabric.editor.note': '附註',
|
|
60
54
|
'fabric.editor.outdent': '減少縮排',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
2
2
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
3
|
-
import {
|
|
3
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD, EVENT_TYPE, PLATFORMS, MODE } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import { GapCursorSelection, Side } from '@atlaskit/editor-common/selection';
|
|
5
5
|
import { findExpand } from './utils';
|
|
6
6
|
import { createCommand } from './pm-plugins/plugin-factory';
|
|
@@ -12,7 +12,7 @@ export const setExpandRef = ref => createCommand({
|
|
|
12
12
|
ref
|
|
13
13
|
}
|
|
14
14
|
}, tr => tr.setMeta('addToHistory', false));
|
|
15
|
-
export const deleteExpandAtPos = (expandNodePos, expandNode) => (state, dispatch) => {
|
|
15
|
+
export const deleteExpandAtPos = editorAnalyticsAPI => (expandNodePos, expandNode) => (state, dispatch) => {
|
|
16
16
|
if (!expandNode || isNaN(expandNodePos)) {
|
|
17
17
|
return false;
|
|
18
18
|
}
|
|
@@ -25,16 +25,21 @@ export const deleteExpandAtPos = (expandNodePos, expandNode) => (state, dispatch
|
|
|
25
25
|
eventType: EVENT_TYPE.TRACK
|
|
26
26
|
};
|
|
27
27
|
if (expandNode && dispatch) {
|
|
28
|
-
|
|
28
|
+
const {
|
|
29
|
+
tr
|
|
30
|
+
} = state;
|
|
31
|
+
tr.delete(expandNodePos, expandNodePos + expandNode.nodeSize);
|
|
32
|
+
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 ? void 0 : editorAnalyticsAPI.attachAnalyticsEvent(payload)(tr);
|
|
33
|
+
dispatch(tr);
|
|
29
34
|
}
|
|
30
35
|
return true;
|
|
31
36
|
};
|
|
32
|
-
export const deleteExpand =
|
|
37
|
+
export const deleteExpand = editorAnalyticsAPI => (state, dispatch) => {
|
|
33
38
|
const expandNode = findExpand(state);
|
|
34
39
|
if (!expandNode) {
|
|
35
40
|
return false;
|
|
36
41
|
}
|
|
37
|
-
return deleteExpandAtPos(expandNode.pos, expandNode.node)(state, dispatch);
|
|
42
|
+
return deleteExpandAtPos(editorAnalyticsAPI)(expandNode.pos, expandNode.node)(state, dispatch);
|
|
38
43
|
};
|
|
39
44
|
export const updateExpandTitle = (title, pos, nodeType) => (state, dispatch) => {
|
|
40
45
|
const node = state.doc.nodeAt(pos);
|
|
@@ -50,7 +55,7 @@ export const updateExpandTitle = (title, pos, nodeType) => (state, dispatch) =>
|
|
|
50
55
|
}
|
|
51
56
|
return true;
|
|
52
57
|
};
|
|
53
|
-
export const toggleExpandExpanded = (pos, nodeType) => (state, dispatch) => {
|
|
58
|
+
export const toggleExpandExpanded = editorAnalyticsAPI => (pos, nodeType) => (state, dispatch) => {
|
|
54
59
|
const node = state.doc.nodeAt(pos);
|
|
55
60
|
if (node && node.type === nodeType && dispatch) {
|
|
56
61
|
const {
|
|
@@ -84,7 +89,9 @@ export const toggleExpandExpanded = (pos, nodeType) => (state, dispatch) => {
|
|
|
84
89
|
|
|
85
90
|
// `isRemote` meta prevents this step from being
|
|
86
91
|
// sync'd between sessions in collab edit
|
|
87
|
-
|
|
92
|
+
tr.setMeta('isRemote', true);
|
|
93
|
+
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 ? void 0 : editorAnalyticsAPI.attachAnalyticsEvent(payload)(tr);
|
|
94
|
+
dispatch(tr);
|
|
88
95
|
}
|
|
89
96
|
return true;
|
|
90
97
|
};
|
|
@@ -98,7 +105,7 @@ export const createExpandNode = state => {
|
|
|
98
105
|
const expandType = findTable(state.selection) ? nestedExpand : expand;
|
|
99
106
|
return expandType.createAndFill({});
|
|
100
107
|
};
|
|
101
|
-
export const insertExpand = (state, dispatch) => {
|
|
108
|
+
export const insertExpand = editorAnalyticsAPI => (state, dispatch) => {
|
|
102
109
|
const expandNode = createExpandNode(state);
|
|
103
110
|
if (!expandNode) {
|
|
104
111
|
return false;
|
|
@@ -117,7 +124,8 @@ export const insertExpand = (state, dispatch) => {
|
|
|
117
124
|
eventType: EVENT_TYPE.TRACK
|
|
118
125
|
};
|
|
119
126
|
if (dispatch && expandNode) {
|
|
120
|
-
|
|
127
|
+
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 ? void 0 : editorAnalyticsAPI.attachAnalyticsEvent(payload)(tr);
|
|
128
|
+
dispatch(tr);
|
|
121
129
|
}
|
|
122
130
|
return true;
|
|
123
131
|
};
|
|
@@ -3,16 +3,16 @@ import { expand, nestedExpand } from '@atlaskit/adf-schema';
|
|
|
3
3
|
import { createPlugin } from './pm-plugins/main';
|
|
4
4
|
import { expandKeymap } from './pm-plugins/keymap';
|
|
5
5
|
import { IconExpand } from '@atlaskit/editor-common/quick-insert';
|
|
6
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID,
|
|
6
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import { getToolbarConfig } from './toolbar';
|
|
8
|
-
import { createExpandNode } from './commands';
|
|
8
|
+
import { createExpandNode, insertExpand } from './commands';
|
|
9
9
|
import { messages } from '../insert-block/ui/ToolbarInsertBlock/messages';
|
|
10
10
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
11
11
|
const expandPlugin = ({
|
|
12
12
|
config: options = {},
|
|
13
13
|
api
|
|
14
14
|
}) => {
|
|
15
|
-
var _api$featureFlags;
|
|
15
|
+
var _api$featureFlags, _api$analytics;
|
|
16
16
|
const featureFlags = (api === null || api === void 0 ? void 0 : (_api$featureFlags = api.featureFlags) === null || _api$featureFlags === void 0 ? void 0 : _api$featureFlags.sharedState.currentState()) || {};
|
|
17
17
|
return {
|
|
18
18
|
name: 'expand',
|
|
@@ -25,6 +25,9 @@ const expandPlugin = ({
|
|
|
25
25
|
node: nestedExpand
|
|
26
26
|
}];
|
|
27
27
|
},
|
|
28
|
+
actions: {
|
|
29
|
+
insertExpand: insertExpand(api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions)
|
|
30
|
+
},
|
|
28
31
|
pmPlugins() {
|
|
29
32
|
return [{
|
|
30
33
|
name: 'expand',
|
|
@@ -40,7 +43,7 @@ const expandPlugin = ({
|
|
|
40
43
|
}];
|
|
41
44
|
},
|
|
42
45
|
pluginsOptions: {
|
|
43
|
-
floatingToolbar: getToolbarConfig(api
|
|
46
|
+
floatingToolbar: getToolbarConfig(api),
|
|
44
47
|
quickInsert: ({
|
|
45
48
|
formatMessage
|
|
46
49
|
}) => {
|
|
@@ -55,6 +58,7 @@ const expandPlugin = ({
|
|
|
55
58
|
priority: 600,
|
|
56
59
|
icon: () => /*#__PURE__*/React.createElement(IconExpand, null),
|
|
57
60
|
action(insert, state) {
|
|
61
|
+
var _api$analytics2;
|
|
58
62
|
const node = createExpandNode(state);
|
|
59
63
|
if (!node) {
|
|
60
64
|
return false;
|
|
@@ -63,7 +67,7 @@ const expandPlugin = ({
|
|
|
63
67
|
state,
|
|
64
68
|
type: node.type
|
|
65
69
|
});
|
|
66
|
-
|
|
70
|
+
api === null || api === void 0 ? void 0 : (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 ? void 0 : _api$analytics2.actions.attachAnalyticsEvent({
|
|
67
71
|
action: ACTION.INSERTED,
|
|
68
72
|
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
69
73
|
actionSubjectId: node.type === state.schema.nodes.nestedExpand ? ACTION_SUBJECT_ID.NESTED_EXPAND : ACTION_SUBJECT_ID.EXPAND,
|
|
@@ -71,7 +75,8 @@ const expandPlugin = ({
|
|
|
71
75
|
inputMethod: INPUT_METHOD.QUICK_INSERT
|
|
72
76
|
},
|
|
73
77
|
eventType: EVENT_TYPE.TRACK
|
|
74
|
-
});
|
|
78
|
+
})(tr);
|
|
79
|
+
return tr;
|
|
75
80
|
}
|
|
76
81
|
}];
|
|
77
82
|
}
|
|
@@ -96,6 +96,7 @@ export class ExpandNodeView {
|
|
|
96
96
|
dispatch
|
|
97
97
|
} = this.view;
|
|
98
98
|
if (closestElement(target, `.${expandClassNames.icon}`)) {
|
|
99
|
+
var _this$api, _this$api$analytics;
|
|
99
100
|
if (!this.isAllowInteractiveExpandEnabled()) {
|
|
100
101
|
return;
|
|
101
102
|
}
|
|
@@ -106,7 +107,7 @@ export class ExpandNodeView {
|
|
|
106
107
|
if (this.view.dom instanceof HTMLElement) {
|
|
107
108
|
this.view.dom.blur();
|
|
108
109
|
}
|
|
109
|
-
toggleExpandExpanded(pos, this.node.type)(state, dispatch);
|
|
110
|
+
toggleExpandExpanded((_this$api = this.api) === null || _this$api === void 0 ? void 0 : (_this$api$analytics = _this$api.analytics) === null || _this$api$analytics === void 0 ? void 0 : _this$api$analytics.actions)(pos, this.node.type)(state, dispatch);
|
|
110
111
|
return;
|
|
111
112
|
}
|
|
112
113
|
if (target === this.input) {
|
|
@@ -176,7 +177,8 @@ export class ExpandNodeView {
|
|
|
176
177
|
} = this.view;
|
|
177
178
|
const expandNode = this.node;
|
|
178
179
|
if (expandNode && isEmptyNode(state.schema)(expandNode)) {
|
|
179
|
-
|
|
180
|
+
var _this$api2, _this$api2$analytics;
|
|
181
|
+
deleteExpandAtPos((_this$api2 = this.api) === null || _this$api2 === void 0 ? void 0 : (_this$api2$analytics = _this$api2.analytics) === null || _this$api2$analytics === void 0 ? void 0 : _this$api2$analytics.actions)(pos, expandNode)(state, this.view.dispatch);
|
|
180
182
|
}
|
|
181
183
|
});
|
|
182
184
|
_defineProperty(this, "toggleExpand", () => {
|
|
@@ -185,11 +187,12 @@ export class ExpandNodeView {
|
|
|
185
187
|
return;
|
|
186
188
|
}
|
|
187
189
|
if (this.isAllowInteractiveExpandEnabled()) {
|
|
190
|
+
var _this$api3, _this$api3$analytics;
|
|
188
191
|
const {
|
|
189
192
|
state,
|
|
190
193
|
dispatch
|
|
191
194
|
} = this.view;
|
|
192
|
-
toggleExpandExpanded(pos, this.node.type)(state, dispatch);
|
|
195
|
+
toggleExpandExpanded((_this$api3 = this.api) === null || _this$api3 === void 0 ? void 0 : (_this$api3$analytics = _this$api3.analytics) === null || _this$api3$analytics === void 0 ? void 0 : _this$api3$analytics.actions)(pos, this.node.type)(state, dispatch);
|
|
193
196
|
}
|
|
194
197
|
});
|
|
195
198
|
_defineProperty(this, "moveToOutsideOfTitle", event => {
|
|
@@ -311,14 +314,14 @@ export class ExpandNodeView {
|
|
|
311
314
|
selectionEnd
|
|
312
315
|
} = this.input;
|
|
313
316
|
if (selectionStart === selectionEnd && selectionStart === 0) {
|
|
314
|
-
var _this$
|
|
317
|
+
var _this$api4, _this$api4$selection;
|
|
315
318
|
event.preventDefault();
|
|
316
319
|
const {
|
|
317
320
|
state,
|
|
318
321
|
dispatch
|
|
319
322
|
} = this.view;
|
|
320
323
|
this.view.focus();
|
|
321
|
-
const selectionSharedState = ((_this$
|
|
324
|
+
const selectionSharedState = ((_this$api4 = this.api) === null || _this$api4 === void 0 ? void 0 : (_this$api4$selection = _this$api4.selection) === null || _this$api4$selection === void 0 ? void 0 : _this$api4$selection.sharedState.currentState()) || {};
|
|
322
325
|
// selectionRelativeToNode is undefined when user clicked to select node, then hit left to get focus in title
|
|
323
326
|
// This is a special case where we want to bypass node selection and jump straight to gap cursor
|
|
324
327
|
if ((selectionSharedState === null || selectionSharedState === void 0 ? void 0 : selectionSharedState.selectionRelativeToNode) === undefined) {
|
|
@@ -188,7 +188,8 @@ export function expandKeymap(api) {
|
|
|
188
188
|
}
|
|
189
189
|
const textSel = Selection.findFrom(state.doc.resolve(expandNode.pos), 1, true);
|
|
190
190
|
if (textSel && selection.$from.pos === textSel.$from.pos && isEmptyNode(state.schema)(expandNode.node) && dispatch) {
|
|
191
|
-
|
|
191
|
+
var _api$analytics;
|
|
192
|
+
return deleteExpand(api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions)(state, dispatch);
|
|
192
193
|
}
|
|
193
194
|
return false;
|
|
194
195
|
}, list);
|
|
@@ -2,9 +2,14 @@ import RemoveIcon from '@atlaskit/icon/glyph/editor/remove';
|
|
|
2
2
|
import commonMessages from '../../messages';
|
|
3
3
|
import { deleteExpand } from './commands';
|
|
4
4
|
import { getPluginState } from './pm-plugins/plugin-factory';
|
|
5
|
-
export const getToolbarConfig =
|
|
5
|
+
export const getToolbarConfig = api => (state, {
|
|
6
6
|
formatMessage
|
|
7
7
|
}) => {
|
|
8
|
+
var _api$decorations$acti, _api$decorations, _api$analytics;
|
|
9
|
+
const {
|
|
10
|
+
hoverDecoration
|
|
11
|
+
} = (_api$decorations$acti = api === null || api === void 0 ? void 0 : (_api$decorations = api.decorations) === null || _api$decorations === void 0 ? void 0 : _api$decorations.actions) !== null && _api$decorations$acti !== void 0 ? _api$decorations$acti : {};
|
|
12
|
+
const editorAnalyticsAPI = api === null || api === void 0 ? void 0 : (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
8
13
|
const {
|
|
9
14
|
expandRef
|
|
10
15
|
} = getPluginState(state);
|
|
@@ -33,7 +38,7 @@ export const getToolbarConfig = hoverDecoration => (state, {
|
|
|
33
38
|
appearance: 'danger',
|
|
34
39
|
focusEditoronEnter: true,
|
|
35
40
|
icon: RemoveIcon,
|
|
36
|
-
onClick: deleteExpand(),
|
|
41
|
+
onClick: deleteExpand(editorAnalyticsAPI),
|
|
37
42
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
|
|
38
43
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
|
|
39
44
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
|