@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/esm/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/esm/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/esm/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',
|
package/dist/esm/i18n/pt_BR.js
CHANGED
|
@@ -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/esm/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/esm/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/esm/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/esm/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/esm/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/esm/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/esm/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': '减小缩进',
|
package/dist/esm/i18n/zh_TW.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': '減少縮排',
|
|
@@ -3,7 +3,7 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { Selection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { findTable } from '@atlaskit/editor-tables/utils';
|
|
6
|
-
import {
|
|
6
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, INPUT_METHOD, EVENT_TYPE, PLATFORMS, MODE } from '@atlaskit/editor-common/analytics';
|
|
7
7
|
import { GapCursorSelection, Side } from '@atlaskit/editor-common/selection';
|
|
8
8
|
import { findExpand } from './utils';
|
|
9
9
|
import { createCommand } from './pm-plugins/plugin-factory';
|
|
@@ -19,32 +19,37 @@ export var setExpandRef = function setExpandRef(ref) {
|
|
|
19
19
|
return tr.setMeta('addToHistory', false);
|
|
20
20
|
});
|
|
21
21
|
};
|
|
22
|
-
export var deleteExpandAtPos = function deleteExpandAtPos(
|
|
23
|
-
return function (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
export var deleteExpandAtPos = function deleteExpandAtPos(editorAnalyticsAPI) {
|
|
23
|
+
return function (expandNodePos, expandNode) {
|
|
24
|
+
return function (state, dispatch) {
|
|
25
|
+
if (!expandNode || isNaN(expandNodePos)) {
|
|
26
|
+
return false;
|
|
27
|
+
}
|
|
28
|
+
var payload = {
|
|
29
|
+
action: ACTION.DELETED,
|
|
30
|
+
actionSubject: expandNode.type === state.schema.nodes.expand ? ACTION_SUBJECT.EXPAND : ACTION_SUBJECT.NESTED_EXPAND,
|
|
31
|
+
attributes: {
|
|
32
|
+
inputMethod: INPUT_METHOD.TOOLBAR
|
|
33
|
+
},
|
|
34
|
+
eventType: EVENT_TYPE.TRACK
|
|
35
|
+
};
|
|
36
|
+
if (expandNode && dispatch) {
|
|
37
|
+
var tr = state.tr;
|
|
38
|
+
tr.delete(expandNodePos, expandNodePos + expandNode.nodeSize);
|
|
39
|
+
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent(payload)(tr);
|
|
40
|
+
dispatch(tr);
|
|
41
|
+
}
|
|
42
|
+
return true;
|
|
34
43
|
};
|
|
35
|
-
if (expandNode && dispatch) {
|
|
36
|
-
dispatch(addAnalytics(state, state.tr.delete(expandNodePos, expandNodePos + expandNode.nodeSize), payload));
|
|
37
|
-
}
|
|
38
|
-
return true;
|
|
39
44
|
};
|
|
40
45
|
};
|
|
41
|
-
export var deleteExpand = function deleteExpand() {
|
|
46
|
+
export var deleteExpand = function deleteExpand(editorAnalyticsAPI) {
|
|
42
47
|
return function (state, dispatch) {
|
|
43
48
|
var expandNode = findExpand(state);
|
|
44
49
|
if (!expandNode) {
|
|
45
50
|
return false;
|
|
46
51
|
}
|
|
47
|
-
return deleteExpandAtPos(expandNode.pos, expandNode.node)(state, dispatch);
|
|
52
|
+
return deleteExpandAtPos(editorAnalyticsAPI)(expandNode.pos, expandNode.node)(state, dispatch);
|
|
48
53
|
};
|
|
49
54
|
};
|
|
50
55
|
export var updateExpandTitle = function updateExpandTitle(title, pos, nodeType) {
|
|
@@ -60,41 +65,45 @@ export var updateExpandTitle = function updateExpandTitle(title, pos, nodeType)
|
|
|
60
65
|
return true;
|
|
61
66
|
};
|
|
62
67
|
};
|
|
63
|
-
export var toggleExpandExpanded = function toggleExpandExpanded(
|
|
64
|
-
return function (
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
68
|
+
export var toggleExpandExpanded = function toggleExpandExpanded(editorAnalyticsAPI) {
|
|
69
|
+
return function (pos, nodeType) {
|
|
70
|
+
return function (state, dispatch) {
|
|
71
|
+
var node = state.doc.nodeAt(pos);
|
|
72
|
+
if (node && node.type === nodeType && dispatch) {
|
|
73
|
+
var tr = state.tr;
|
|
74
|
+
var isExpandedNext = !node.attrs.__expanded;
|
|
75
|
+
tr.setNodeMarkup(pos, node.type, _objectSpread(_objectSpread({}, node.attrs), {}, {
|
|
76
|
+
__expanded: isExpandedNext
|
|
77
|
+
}), node.marks);
|
|
72
78
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
+
// If we're going to collapse the expand and our cursor is currently inside
|
|
80
|
+
// Move to a right gap cursor, if the toolbar is interacted (or an API),
|
|
81
|
+
// it will insert below rather than inside (which will be invisible).
|
|
82
|
+
if (isExpandedNext === false && findExpand(state)) {
|
|
83
|
+
tr.setSelection(new GapCursorSelection(tr.doc.resolve(pos + node.nodeSize), Side.RIGHT));
|
|
84
|
+
}
|
|
79
85
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
// log when people open/close expands
|
|
87
|
+
// TODO: ED-8523 make platform/mode global attributes?
|
|
88
|
+
var payload = {
|
|
89
|
+
action: ACTION.TOGGLE_EXPAND,
|
|
90
|
+
actionSubject: nodeType === state.schema.nodes.expand ? ACTION_SUBJECT.EXPAND : ACTION_SUBJECT.NESTED_EXPAND,
|
|
91
|
+
attributes: {
|
|
92
|
+
platform: PLATFORMS.WEB,
|
|
93
|
+
mode: MODE.EDITOR,
|
|
94
|
+
expanded: isExpandedNext
|
|
95
|
+
},
|
|
96
|
+
eventType: EVENT_TYPE.TRACK
|
|
97
|
+
};
|
|
92
98
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
99
|
+
// `isRemote` meta prevents this step from being
|
|
100
|
+
// sync'd between sessions in collab edit
|
|
101
|
+
tr.setMeta('isRemote', true);
|
|
102
|
+
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent(payload)(tr);
|
|
103
|
+
dispatch(tr);
|
|
104
|
+
}
|
|
105
|
+
return true;
|
|
106
|
+
};
|
|
98
107
|
};
|
|
99
108
|
};
|
|
100
109
|
|
|
@@ -106,28 +115,31 @@ export var createExpandNode = function createExpandNode(state) {
|
|
|
106
115
|
var expandType = findTable(state.selection) ? nestedExpand : expand;
|
|
107
116
|
return expandType.createAndFill({});
|
|
108
117
|
};
|
|
109
|
-
export var insertExpand = function insertExpand(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
state:
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
118
|
+
export var insertExpand = function insertExpand(editorAnalyticsAPI) {
|
|
119
|
+
return function (state, dispatch) {
|
|
120
|
+
var expandNode = createExpandNode(state);
|
|
121
|
+
if (!expandNode) {
|
|
122
|
+
return false;
|
|
123
|
+
}
|
|
124
|
+
var tr = state.selection.empty ? safeInsert(expandNode)(state.tr).scrollIntoView() : createWrapSelectionTransaction({
|
|
125
|
+
state: state,
|
|
126
|
+
type: expandNode.type
|
|
127
|
+
});
|
|
128
|
+
var payload = {
|
|
129
|
+
action: ACTION.INSERTED,
|
|
130
|
+
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
131
|
+
actionSubjectId: (expandNode === null || expandNode === void 0 ? void 0 : expandNode.type) === state.schema.nodes.expand ? ACTION_SUBJECT_ID.EXPAND : ACTION_SUBJECT_ID.NESTED_EXPAND,
|
|
132
|
+
attributes: {
|
|
133
|
+
inputMethod: INPUT_METHOD.INSERT_MENU
|
|
134
|
+
},
|
|
135
|
+
eventType: EVENT_TYPE.TRACK
|
|
136
|
+
};
|
|
137
|
+
if (dispatch && expandNode) {
|
|
138
|
+
editorAnalyticsAPI === null || editorAnalyticsAPI === void 0 || editorAnalyticsAPI.attachAnalyticsEvent(payload)(tr);
|
|
139
|
+
dispatch(tr);
|
|
140
|
+
}
|
|
141
|
+
return true;
|
|
126
142
|
};
|
|
127
|
-
if (dispatch && expandNode) {
|
|
128
|
-
dispatch(addAnalytics(state, tr, payload));
|
|
129
|
-
}
|
|
130
|
-
return true;
|
|
131
143
|
};
|
|
132
144
|
export var focusTitle = function focusTitle(pos) {
|
|
133
145
|
return function (state, dispatch, editorView) {
|
|
@@ -4,13 +4,13 @@ import { expand, nestedExpand } from '@atlaskit/adf-schema';
|
|
|
4
4
|
import { createPlugin } from './pm-plugins/main';
|
|
5
5
|
import { expandKeymap } from './pm-plugins/keymap';
|
|
6
6
|
import { IconExpand } from '@atlaskit/editor-common/quick-insert';
|
|
7
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID,
|
|
7
|
+
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import { getToolbarConfig } from './toolbar';
|
|
9
|
-
import { createExpandNode } from './commands';
|
|
9
|
+
import { createExpandNode, insertExpand } from './commands';
|
|
10
10
|
import { messages } from '../insert-block/ui/ToolbarInsertBlock/messages';
|
|
11
11
|
import { createWrapSelectionTransaction } from '@atlaskit/editor-common/utils';
|
|
12
12
|
var expandPlugin = function expandPlugin(_ref) {
|
|
13
|
-
var _api$featureFlags;
|
|
13
|
+
var _api$featureFlags, _api$analytics;
|
|
14
14
|
var _ref$config = _ref.config,
|
|
15
15
|
options = _ref$config === void 0 ? {} : _ref$config,
|
|
16
16
|
api = _ref.api;
|
|
@@ -26,6 +26,9 @@ var expandPlugin = function expandPlugin(_ref) {
|
|
|
26
26
|
node: nestedExpand
|
|
27
27
|
}];
|
|
28
28
|
},
|
|
29
|
+
actions: {
|
|
30
|
+
insertExpand: insertExpand(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions)
|
|
31
|
+
},
|
|
29
32
|
pmPlugins: function pmPlugins() {
|
|
30
33
|
return [{
|
|
31
34
|
name: 'expand',
|
|
@@ -42,7 +45,7 @@ var expandPlugin = function expandPlugin(_ref) {
|
|
|
42
45
|
}];
|
|
43
46
|
},
|
|
44
47
|
pluginsOptions: {
|
|
45
|
-
floatingToolbar: getToolbarConfig(api
|
|
48
|
+
floatingToolbar: getToolbarConfig(api),
|
|
46
49
|
quickInsert: function quickInsert(_ref3) {
|
|
47
50
|
var formatMessage = _ref3.formatMessage;
|
|
48
51
|
if (options && options.allowInsertion !== true) {
|
|
@@ -58,6 +61,7 @@ var expandPlugin = function expandPlugin(_ref) {
|
|
|
58
61
|
return /*#__PURE__*/React.createElement(IconExpand, null);
|
|
59
62
|
},
|
|
60
63
|
action: function action(insert, state) {
|
|
64
|
+
var _api$analytics2;
|
|
61
65
|
var node = createExpandNode(state);
|
|
62
66
|
if (!node) {
|
|
63
67
|
return false;
|
|
@@ -66,7 +70,7 @@ var expandPlugin = function expandPlugin(_ref) {
|
|
|
66
70
|
state: state,
|
|
67
71
|
type: node.type
|
|
68
72
|
});
|
|
69
|
-
|
|
73
|
+
api === null || api === void 0 || (_api$analytics2 = api.analytics) === null || _api$analytics2 === void 0 || _api$analytics2.actions.attachAnalyticsEvent({
|
|
70
74
|
action: ACTION.INSERTED,
|
|
71
75
|
actionSubject: ACTION_SUBJECT.DOCUMENT,
|
|
72
76
|
actionSubjectId: node.type === state.schema.nodes.nestedExpand ? ACTION_SUBJECT_ID.NESTED_EXPAND : ACTION_SUBJECT_ID.EXPAND,
|
|
@@ -74,7 +78,8 @@ var expandPlugin = function expandPlugin(_ref) {
|
|
|
74
78
|
inputMethod: INPUT_METHOD.QUICK_INSERT
|
|
75
79
|
},
|
|
76
80
|
eventType: EVENT_TYPE.TRACK
|
|
77
|
-
});
|
|
81
|
+
})(tr);
|
|
82
|
+
return tr;
|
|
78
83
|
}
|
|
79
84
|
}];
|
|
80
85
|
}
|
|
@@ -100,6 +100,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
100
100
|
state = _this$view2.state,
|
|
101
101
|
dispatch = _this$view2.dispatch;
|
|
102
102
|
if (closestElement(target, ".".concat(expandClassNames.icon))) {
|
|
103
|
+
var _this$api;
|
|
103
104
|
if (!_this.isAllowInteractiveExpandEnabled()) {
|
|
104
105
|
return;
|
|
105
106
|
}
|
|
@@ -110,7 +111,7 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
110
111
|
if (_this.view.dom instanceof HTMLElement) {
|
|
111
112
|
_this.view.dom.blur();
|
|
112
113
|
}
|
|
113
|
-
toggleExpandExpanded(pos, _this.node.type)(state, dispatch);
|
|
114
|
+
toggleExpandExpanded((_this$api = _this.api) === null || _this$api === void 0 || (_this$api = _this$api.analytics) === null || _this$api === void 0 ? void 0 : _this$api.actions)(pos, _this.node.type)(state, dispatch);
|
|
114
115
|
return;
|
|
115
116
|
}
|
|
116
117
|
if (target === _this.input) {
|
|
@@ -176,7 +177,8 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
176
177
|
var state = _this.view.state;
|
|
177
178
|
var expandNode = _this.node;
|
|
178
179
|
if (expandNode && isEmptyNode(state.schema)(expandNode)) {
|
|
179
|
-
|
|
180
|
+
var _this$api2;
|
|
181
|
+
deleteExpandAtPos((_this$api2 = _this.api) === null || _this$api2 === void 0 || (_this$api2 = _this$api2.analytics) === null || _this$api2 === void 0 ? void 0 : _this$api2.actions)(pos, expandNode)(state, _this.view.dispatch);
|
|
180
182
|
}
|
|
181
183
|
});
|
|
182
184
|
_defineProperty(this, "toggleExpand", function () {
|
|
@@ -185,10 +187,11 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
185
187
|
return;
|
|
186
188
|
}
|
|
187
189
|
if (_this.isAllowInteractiveExpandEnabled()) {
|
|
190
|
+
var _this$api3;
|
|
188
191
|
var _this$view4 = _this.view,
|
|
189
192
|
state = _this$view4.state,
|
|
190
193
|
dispatch = _this$view4.dispatch;
|
|
191
|
-
toggleExpandExpanded(pos, _this.node.type)(state, dispatch);
|
|
194
|
+
toggleExpandExpanded((_this$api3 = _this.api) === null || _this$api3 === void 0 || (_this$api3 = _this$api3.analytics) === null || _this$api3 === void 0 ? void 0 : _this$api3.actions)(pos, _this.node.type)(state, dispatch);
|
|
192
195
|
}
|
|
193
196
|
});
|
|
194
197
|
_defineProperty(this, "moveToOutsideOfTitle", function (event) {
|
|
@@ -302,13 +305,13 @@ export var ExpandNodeView = /*#__PURE__*/function () {
|
|
|
302
305
|
selectionStart = _this$input5.selectionStart,
|
|
303
306
|
selectionEnd = _this$input5.selectionEnd;
|
|
304
307
|
if (selectionStart === selectionEnd && selectionStart === 0) {
|
|
305
|
-
var _this$
|
|
308
|
+
var _this$api4;
|
|
306
309
|
event.preventDefault();
|
|
307
310
|
var _this$view9 = _this.view,
|
|
308
311
|
state = _this$view9.state,
|
|
309
312
|
dispatch = _this$view9.dispatch;
|
|
310
313
|
_this.view.focus();
|
|
311
|
-
var selectionSharedState = ((_this$
|
|
314
|
+
var selectionSharedState = ((_this$api4 = _this.api) === null || _this$api4 === void 0 || (_this$api4 = _this$api4.selection) === null || _this$api4 === void 0 ? void 0 : _this$api4.sharedState.currentState()) || {};
|
|
312
315
|
// selectionRelativeToNode is undefined when user clicked to select node, then hit left to get focus in title
|
|
313
316
|
// This is a special case where we want to bypass node selection and jump straight to gap cursor
|
|
314
317
|
if ((selectionSharedState === null || selectionSharedState === void 0 ? void 0 : selectionSharedState.selectionRelativeToNode) === undefined) {
|
|
@@ -156,7 +156,8 @@ export function expandKeymap(api) {
|
|
|
156
156
|
}
|
|
157
157
|
var textSel = Selection.findFrom(state.doc.resolve(expandNode.pos), 1, true);
|
|
158
158
|
if (textSel && selection.$from.pos === textSel.$from.pos && isEmptyNode(state.schema)(expandNode.node) && dispatch) {
|
|
159
|
-
|
|
159
|
+
var _api$analytics;
|
|
160
|
+
return deleteExpand(api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions)(state, dispatch);
|
|
160
161
|
}
|
|
161
162
|
return false;
|
|
162
163
|
}, list);
|
|
@@ -2,9 +2,13 @@ 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 var getToolbarConfig = function getToolbarConfig(
|
|
5
|
+
export var getToolbarConfig = function getToolbarConfig(api) {
|
|
6
6
|
return function (state, _ref) {
|
|
7
|
+
var _api$decorations$acti, _api$decorations, _api$analytics;
|
|
7
8
|
var formatMessage = _ref.formatMessage;
|
|
9
|
+
var _ref2 = (_api$decorations$acti = api === null || api === 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 : {},
|
|
10
|
+
hoverDecoration = _ref2.hoverDecoration;
|
|
11
|
+
var editorAnalyticsAPI = api === null || api === void 0 || (_api$analytics = api.analytics) === null || _api$analytics === void 0 ? void 0 : _api$analytics.actions;
|
|
8
12
|
var _getPluginState = getPluginState(state),
|
|
9
13
|
expandRef = _getPluginState.expandRef;
|
|
10
14
|
if (expandRef) {
|
|
@@ -33,7 +37,7 @@ export var getToolbarConfig = function getToolbarConfig(hoverDecoration) {
|
|
|
33
37
|
appearance: 'danger',
|
|
34
38
|
focusEditoronEnter: true,
|
|
35
39
|
icon: RemoveIcon,
|
|
36
|
-
onClick: deleteExpand(),
|
|
40
|
+
onClick: deleteExpand(editorAnalyticsAPI),
|
|
37
41
|
onMouseEnter: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
|
|
38
42
|
onMouseLeave: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], false),
|
|
39
43
|
onFocus: hoverDecoration === null || hoverDecoration === void 0 ? void 0 : hoverDecoration([nestedExpand, expand], true),
|