@atlaskit/editor-core 189.4.9 → 189.4.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/cjs/composable-editor/editor-internal.js +3 -3
- package/dist/cjs/composable-editor/editor.js +202 -3
- package/dist/cjs/i18n/cs.js +1 -3
- package/dist/cjs/i18n/da.js +1 -3
- package/dist/cjs/i18n/de.js +1 -3
- package/dist/cjs/i18n/en.js +1 -3
- package/dist/cjs/i18n/en_GB.js +1 -3
- package/dist/cjs/i18n/en_ZZ.js +1 -3
- package/dist/cjs/i18n/es.js +1 -3
- package/dist/cjs/i18n/fi.js +1 -3
- package/dist/cjs/i18n/fr.js +1 -3
- package/dist/cjs/i18n/hu.js +1 -3
- package/dist/cjs/i18n/it.js +1 -3
- package/dist/cjs/i18n/ja.js +1 -3
- package/dist/cjs/i18n/ko.js +1 -3
- package/dist/cjs/i18n/nb.js +1 -3
- package/dist/cjs/i18n/nl.js +1 -3
- package/dist/cjs/i18n/pl.js +1 -3
- package/dist/cjs/i18n/pt_BR.js +1 -3
- package/dist/cjs/i18n/ru.js +1 -3
- package/dist/cjs/i18n/sv.js +1 -3
- package/dist/cjs/i18n/th.js +1 -3
- package/dist/cjs/i18n/tr.js +1 -3
- package/dist/cjs/i18n/uk.js +1 -3
- package/dist/cjs/i18n/vi.js +1 -3
- package/dist/cjs/i18n/zh.js +1 -3
- package/dist/cjs/i18n/zh_TW.js +1 -3
- package/dist/cjs/plugins/index.js +1 -15
- package/dist/cjs/presets/default.js +2 -2
- package/dist/cjs/presets/universal.js +2 -1
- package/dist/cjs/ui/ConfigPanel/ConfigPanel.js +11 -3
- package/dist/cjs/ui/ConfigPanel/constants.js +13 -0
- package/dist/cjs/ui/ConfigPanel/utils.js +44 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/composable-editor/editor-internal.js +4 -4
- package/dist/es2019/composable-editor/editor.js +208 -4
- package/dist/es2019/i18n/cs.js +1 -3
- package/dist/es2019/i18n/da.js +1 -3
- package/dist/es2019/i18n/de.js +1 -3
- package/dist/es2019/i18n/en.js +1 -3
- package/dist/es2019/i18n/en_GB.js +1 -3
- package/dist/es2019/i18n/en_ZZ.js +1 -3
- package/dist/es2019/i18n/es.js +1 -3
- package/dist/es2019/i18n/fi.js +1 -3
- package/dist/es2019/i18n/fr.js +1 -3
- package/dist/es2019/i18n/hu.js +1 -3
- package/dist/es2019/i18n/it.js +1 -3
- package/dist/es2019/i18n/ja.js +1 -3
- package/dist/es2019/i18n/ko.js +1 -3
- package/dist/es2019/i18n/nb.js +1 -3
- package/dist/es2019/i18n/nl.js +1 -3
- package/dist/es2019/i18n/pl.js +1 -3
- package/dist/es2019/i18n/pt_BR.js +1 -3
- package/dist/es2019/i18n/ru.js +1 -3
- package/dist/es2019/i18n/sv.js +1 -3
- package/dist/es2019/i18n/th.js +1 -3
- package/dist/es2019/i18n/tr.js +1 -3
- package/dist/es2019/i18n/uk.js +1 -3
- package/dist/es2019/i18n/vi.js +1 -3
- package/dist/es2019/i18n/zh.js +1 -3
- package/dist/es2019/i18n/zh_TW.js +1 -3
- package/dist/es2019/plugins/index.js +1 -3
- package/dist/es2019/presets/default.js +2 -2
- package/dist/es2019/presets/universal.js +2 -1
- package/dist/es2019/ui/ConfigPanel/ConfigPanel.js +11 -2
- package/dist/es2019/ui/ConfigPanel/constants.js +7 -0
- package/dist/es2019/ui/ConfigPanel/utils.js +35 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/composable-editor/editor-internal.js +3 -3
- package/dist/esm/composable-editor/editor.js +203 -4
- package/dist/esm/i18n/cs.js +1 -3
- package/dist/esm/i18n/da.js +1 -3
- package/dist/esm/i18n/de.js +1 -3
- package/dist/esm/i18n/en.js +1 -3
- package/dist/esm/i18n/en_GB.js +1 -3
- package/dist/esm/i18n/en_ZZ.js +1 -3
- package/dist/esm/i18n/es.js +1 -3
- package/dist/esm/i18n/fi.js +1 -3
- package/dist/esm/i18n/fr.js +1 -3
- package/dist/esm/i18n/hu.js +1 -3
- package/dist/esm/i18n/it.js +1 -3
- package/dist/esm/i18n/ja.js +1 -3
- package/dist/esm/i18n/ko.js +1 -3
- package/dist/esm/i18n/nb.js +1 -3
- package/dist/esm/i18n/nl.js +1 -3
- package/dist/esm/i18n/pl.js +1 -3
- package/dist/esm/i18n/pt_BR.js +1 -3
- package/dist/esm/i18n/ru.js +1 -3
- package/dist/esm/i18n/sv.js +1 -3
- package/dist/esm/i18n/th.js +1 -3
- package/dist/esm/i18n/tr.js +1 -3
- package/dist/esm/i18n/uk.js +1 -3
- package/dist/esm/i18n/vi.js +1 -3
- package/dist/esm/i18n/zh.js +1 -3
- package/dist/esm/i18n/zh_TW.js +1 -3
- package/dist/esm/plugins/index.js +1 -3
- package/dist/esm/presets/default.js +2 -2
- package/dist/esm/presets/universal.js +2 -1
- package/dist/esm/ui/ConfigPanel/ConfigPanel.js +11 -3
- package/dist/esm/ui/ConfigPanel/constants.js +7 -0
- package/dist/esm/ui/ConfigPanel/utils.js +42 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types/i18n/cs.d.ts +0 -2
- package/dist/types/i18n/da.d.ts +0 -2
- package/dist/types/i18n/de.d.ts +0 -2
- package/dist/types/i18n/en.d.ts +0 -2
- package/dist/types/i18n/en_GB.d.ts +0 -2
- package/dist/types/i18n/en_ZZ.d.ts +0 -2
- package/dist/types/i18n/es.d.ts +0 -2
- package/dist/types/i18n/fi.d.ts +0 -2
- package/dist/types/i18n/fr.d.ts +0 -2
- package/dist/types/i18n/hu.d.ts +0 -2
- package/dist/types/i18n/it.d.ts +0 -2
- package/dist/types/i18n/ja.d.ts +0 -2
- package/dist/types/i18n/ko.d.ts +0 -2
- package/dist/types/i18n/nb.d.ts +0 -2
- package/dist/types/i18n/nl.d.ts +0 -2
- package/dist/types/i18n/pl.d.ts +0 -2
- package/dist/types/i18n/pt_BR.d.ts +0 -2
- package/dist/types/i18n/ru.d.ts +0 -2
- package/dist/types/i18n/sv.d.ts +0 -2
- package/dist/types/i18n/th.d.ts +0 -2
- package/dist/types/i18n/tr.d.ts +0 -2
- package/dist/types/i18n/uk.d.ts +0 -2
- package/dist/types/i18n/vi.d.ts +0 -2
- package/dist/types/i18n/zh.d.ts +0 -2
- package/dist/types/i18n/zh_TW.d.ts +0 -2
- package/dist/types/plugins/index.d.ts +0 -2
- package/dist/types/ui/ConfigPanel/ConfigPanel.d.ts +3 -4
- package/dist/types/ui/ConfigPanel/constants.d.ts +2 -0
- package/dist/types/ui/ConfigPanel/utils.d.ts +2 -1
- package/dist/types-ts4.5/composable-editor/editor-internal.d.ts +2 -1
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -2
- package/dist/types-ts4.5/i18n/da.d.ts +0 -2
- package/dist/types-ts4.5/i18n/de.d.ts +0 -2
- package/dist/types-ts4.5/i18n/en.d.ts +0 -2
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -2
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -2
- package/dist/types-ts4.5/i18n/es.d.ts +0 -2
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -2
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -2
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -2
- package/dist/types-ts4.5/i18n/it.d.ts +0 -2
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -2
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -2
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -2
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -2
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -2
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -2
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -2
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -2
- package/dist/types-ts4.5/i18n/th.d.ts +0 -2
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -2
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -2
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -2
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -2
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -2
- package/dist/types-ts4.5/plugins/index.d.ts +0 -2
- package/dist/types-ts4.5/ui/ConfigPanel/ConfigPanel.d.ts +3 -4
- package/dist/types-ts4.5/ui/ConfigPanel/constants.d.ts +2 -0
- package/dist/types-ts4.5/ui/ConfigPanel/utils.d.ts +2 -1
- package/package.json +10 -6
- package/dist/cjs/plugins/clear-marks-on-change-to-empty-document/index.js +0 -35
- package/dist/cjs/plugins/code-bidi-warning/index.js +0 -22
- package/dist/cjs/plugins/code-bidi-warning/plugin-key.js +0 -8
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/main.js +0 -44
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -105
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -9
- package/dist/cjs/plugins/code-bidi-warning/pm-plugins/types.js +0 -5
- package/dist/es2019/plugins/clear-marks-on-change-to-empty-document/index.js +0 -26
- package/dist/es2019/plugins/code-bidi-warning/index.js +0 -15
- package/dist/es2019/plugins/code-bidi-warning/plugin-key.js +0 -2
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/main.js +0 -41
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -97
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -3
- package/dist/es2019/plugins/code-bidi-warning/pm-plugins/types.js +0 -1
- package/dist/esm/plugins/clear-marks-on-change-to-empty-document/index.js +0 -28
- package/dist/esm/plugins/code-bidi-warning/index.js +0 -16
- package/dist/esm/plugins/code-bidi-warning/plugin-key.js +0 -2
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/main.js +0 -38
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/plugin-factory.js +0 -98
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/reducer.js +0 -3
- package/dist/esm/plugins/code-bidi-warning/pm-plugins/types.js +0 -1
- package/dist/types/plugins/clear-marks-on-change-to-empty-document/index.d.ts +0 -7
- package/dist/types/plugins/code-bidi-warning/index.d.ts +0 -8
- package/dist/types/plugins/code-bidi-warning/plugin-key.d.ts +0 -2
- package/dist/types/plugins/code-bidi-warning/pm-plugins/main.d.ts +0 -5
- package/dist/types/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -8
- package/dist/types/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +0 -3
- package/dist/types/plugins/code-bidi-warning/pm-plugins/types.d.ts +0 -6
- package/dist/types-ts4.5/plugins/clear-marks-on-change-to-empty-document/index.d.ts +0 -7
- package/dist/types-ts4.5/plugins/code-bidi-warning/index.d.ts +0 -8
- package/dist/types-ts4.5/plugins/code-bidi-warning/plugin-key.d.ts +0 -2
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/main.d.ts +0 -5
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/plugin-factory.d.ts +0 -8
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/reducer.d.ts +0 -3
- package/dist/types-ts4.5/plugins/code-bidi-warning/pm-plugins/types.d.ts +0 -6
|
@@ -31,7 +31,6 @@ export default {
|
|
|
31
31
|
'fabric.editor.configPanel.invalid': 'Invalid field',
|
|
32
32
|
'fabric.editor.configPanel.required': 'Required field',
|
|
33
33
|
'fabric.editor.configPanel.submit': 'Submit',
|
|
34
|
-
'fabric.editor.decisionPlaceholder': 'Add a decision…',
|
|
35
34
|
'fabric.editor.edit': 'Edit',
|
|
36
35
|
'fabric.editor.editorAssistiveLabel': 'Main content area, start typing to enter text.',
|
|
37
36
|
'fabric.editor.editors': 'Editors',
|
|
@@ -51,6 +50,5 @@ export default {
|
|
|
51
50
|
'fabric.editor.replace': 'Replace',
|
|
52
51
|
'fabric.editor.replaceAll': 'Replace all',
|
|
53
52
|
'fabric.editor.replaceWith': 'Replace with',
|
|
54
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition} of {totalResultsCount}'
|
|
55
|
-
'fabric.editor.taskPlaceholder': "Type your action, use '@' to assign to someone."
|
|
53
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition} of {totalResultsCount}'
|
|
56
54
|
};
|
package/dist/es2019/i18n/es.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Campo no válido',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Campo obligatorio',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Enviar',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Añadir una decisión...',
|
|
34
33
|
'fabric.editor.edit': 'Editar',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Área de contenido principal, empieza a escribir para introducir texto.',
|
|
36
35
|
'fabric.editor.editors': 'Editores',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Reemplazar',
|
|
50
49
|
'fabric.editor.replaceAll': 'Reemplazar todo',
|
|
51
50
|
'fabric.editor.replaceWith': 'Reemplazar por',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition} de {totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': 'Escribe la acción y usa "@" para asignársela a alguien.'
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition} de {totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/fi.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Virheellinen kenttä',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Pakollinen kenttä',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Lähetä',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Lisää päätös...',
|
|
34
33
|
'fabric.editor.edit': 'Muokkaa',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Pääsisältöalue, aloita kirjoittaminen, jos haluat syöttää tekstiä.',
|
|
36
35
|
'fabric.editor.editors': 'Muokkaajat',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Korvaa',
|
|
50
49
|
'fabric.editor.replaceAll': 'Korvaa kaikki',
|
|
51
50
|
'fabric.editor.replaceWith': 'Korvaa kohteella',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': "Kirjoita toimintasi, käytä '@'-merkkiä määrätäksesi sen jollekin henkilölle."
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/fr.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Champ non valide',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Champ obligatoire',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Soumettre',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Ajoutez une décision…',
|
|
34
33
|
'fabric.editor.edit': 'Modifier',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Zone de contenu principale, commencez à taper pour saisir du texte.',
|
|
36
35
|
'fabric.editor.editors': 'Éditeurs',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Remplacer',
|
|
50
49
|
'fabric.editor.replaceAll': 'Remplacer tout',
|
|
51
50
|
'fabric.editor.replaceWith': 'Remplacer par',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition} sur {totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': "Saisissez votre action, utilisez « @ » pour l'assigner à quelqu'un."
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition} sur {totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/hu.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Érvénytelen mező',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Kötelező mező',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Küldés',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Döntés hozzáadása...',
|
|
34
33
|
'fabric.editor.edit': 'Szerkesztés',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Fő tartalmi terület, kezdj el gépelni a szöveg beviteléhez.',
|
|
36
35
|
'fabric.editor.editors': 'Szerkesztők',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Csere',
|
|
50
49
|
'fabric.editor.replaceAll': 'Az összes cseréje',
|
|
51
50
|
'fabric.editor.replaceWith': 'Csere erre:',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': 'Írja be a műveletet. Az „@” jellel hozzárendelheti valakihez.'
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/it.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Campo non valido',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Campo obbligatorio',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Invia',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Aggiungi una decisione…',
|
|
34
33
|
'fabric.editor.edit': 'Modifica',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Area del contenuto principale; inizia a digitare per inserire il testo.',
|
|
36
35
|
'fabric.editor.editors': 'Editor',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Sostituisci',
|
|
50
49
|
'fabric.editor.replaceAll': 'Sostituisci tutto',
|
|
51
50
|
'fabric.editor.replaceWith': 'Sostituisci con',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition} di {totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': 'Digita la tua azione e usa “@” per assegnarla a qualcuno.'
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition} di {totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/ja.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': '無効なフィールド',
|
|
31
31
|
'fabric.editor.configPanel.required': '必須フィールド',
|
|
32
32
|
'fabric.editor.configPanel.submit': '送信',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': '決定事項を追加…',
|
|
34
33
|
'fabric.editor.edit': '編集',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'メイン コンテンツ領域。入力を開始してテキストを入力します。',
|
|
36
35
|
'fabric.editor.editors': '編集者',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': '置換',
|
|
50
49
|
'fabric.editor.replaceAll': 'すべて置換',
|
|
51
50
|
'fabric.editor.replaceWith': '次で置換',
|
|
52
|
-
'fabric.editor.resultsCount': '{totalResultsCount} 件中 {selectedMatchPosition} 件'
|
|
53
|
-
'fabric.editor.taskPlaceholder': 'アクションを入力し、「@」を使用して担当者を割り当てます。'
|
|
51
|
+
'fabric.editor.resultsCount': '{totalResultsCount} 件中 {selectedMatchPosition} 件'
|
|
54
52
|
};
|
package/dist/es2019/i18n/ko.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': '유효하지 않은 필드',
|
|
31
31
|
'fabric.editor.configPanel.required': '필수 필드',
|
|
32
32
|
'fabric.editor.configPanel.submit': '제출',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': '결정 추가...',
|
|
34
33
|
'fabric.editor.edit': '편집',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': '주 콘텐츠 영역입니다. 텍스트를 입력하세요.',
|
|
36
35
|
'fabric.editor.editors': '편집기',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': '바꾸기',
|
|
50
49
|
'fabric.editor.replaceAll': '모두 바꾸기',
|
|
51
50
|
'fabric.editor.replaceWith': '다음으로 바꾸기',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': "작업을 입력하고 '@'를 사용하여 할당합니다."
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/nb.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Ugyldig felt',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Obligatorisk felt',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Send inn',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Legg til en beslutning …',
|
|
34
33
|
'fabric.editor.edit': 'Rediger',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Hovedinnholdsområde, begynn å skrive for å angi tekst.',
|
|
36
35
|
'fabric.editor.editors': 'Brukere med redigeringstilgang',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Erstatt',
|
|
50
49
|
'fabric.editor.replaceAll': 'Erstatt alle',
|
|
51
50
|
'fabric.editor.replaceWith': 'Erstatt med',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition} av {totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': 'Skriv inn handlingen. Bruk @ for å tilordne den til noen.'
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition} av {totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/nl.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Ongeldig veld',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Verplicht veld',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Verzenden',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Beslissing toevoegen...',
|
|
34
33
|
'fabric.editor.edit': 'Bewerken',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Hoofdveld content, begin met typen om tekst in te voeren.',
|
|
36
35
|
'fabric.editor.editors': 'Editors',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Vervangen',
|
|
50
49
|
'fabric.editor.replaceAll': 'Alles vervangen',
|
|
51
50
|
'fabric.editor.replaceWith': 'Vervangen met',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition} van {totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': "Geef je actie in en gebruik een '@' om de actie aan iemand toe te wijzen."
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition} van {totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/pl.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Nieprawidłowe pole',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Pole wymagane',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Wyślij',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Dodaj decyzję…',
|
|
34
33
|
'fabric.editor.edit': 'Edytuj',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Główny obszar zawartości. Zacznij pisać, aby wprowadzić tekst.',
|
|
36
35
|
'fabric.editor.editors': 'Edytujący',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Zastąp',
|
|
50
49
|
'fabric.editor.replaceAll': 'Zastąp wszystko',
|
|
51
50
|
'fabric.editor.replaceWith': 'Zastąp tym',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition} z {totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': 'Wprowadź swoją akcję, użyj „@”, aby przypisać ją do użytkownika.'
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition} z {totalResultsCount}'
|
|
54
52
|
};
|
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Campo inválido',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Campo obrigatório',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Enviar',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Adicionar uma decisão...',
|
|
34
33
|
'fabric.editor.edit': 'Editar',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Área de conteúdo principal, comece a digitar para inserir texto.',
|
|
36
35
|
'fabric.editor.editors': 'Editores',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Substituir',
|
|
50
49
|
'fabric.editor.replaceAll': 'Substituir tudo',
|
|
51
50
|
'fabric.editor.replaceWith': 'Substituir por',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition} de {totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': 'Digite sua ação e use "@" para atribuí-la a alguém.'
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition} de {totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/ru.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Недопустимое поле',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Обязательное поле',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Отправить',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Добавить решение…',
|
|
34
33
|
'fabric.editor.edit': 'Изменить',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Область основного содержимого. Начните печатать, чтобы ввести текст.',
|
|
36
35
|
'fabric.editor.editors': 'Редакторы',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Заменить',
|
|
50
49
|
'fabric.editor.replaceAll': 'Заменить все',
|
|
51
50
|
'fabric.editor.replaceWith': 'Заменить на',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition} из {totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': 'Укажите задание и назначьте исполнителя с помощью значка «@».'
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition} из {totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/sv.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Ogiltigt fält',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Obligatoriskt fält',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Skicka in',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Lägg till ett beslut ...',
|
|
34
33
|
'fabric.editor.edit': 'Redigera',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Huvudsakligt innehållsområde, börja skriva för att ange text.',
|
|
36
35
|
'fabric.editor.editors': 'Redigerare',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Ersätt',
|
|
50
49
|
'fabric.editor.replaceAll': 'Ersätt alla',
|
|
51
50
|
'fabric.editor.replaceWith': 'Ersätt med',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition} av {totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': 'Skriv din åtgärd och använd @ för att tilldela någon.'
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition} av {totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/th.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'ฟิลด์ไม่ถูกต้อง',
|
|
31
31
|
'fabric.editor.configPanel.required': 'ช่องที่ต้องกรอก',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'ส่ง',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'เพิ่มการตัดสินใจ…',
|
|
34
33
|
'fabric.editor.edit': 'แก้ไข',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'พื้นที่เนื้อหาหลัก เริ่มพิมพ์เพื่อป้อนข้อความ',
|
|
36
35
|
'fabric.editor.editors': 'บรรณาธิการ',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'แทนที่',
|
|
50
49
|
'fabric.editor.replaceAll': 'แทนที่ทั้งหมด',
|
|
51
50
|
'fabric.editor.replaceWith': 'แทนที่ด้วย',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition} จาก {totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': "พิมพ์ข้อความของคุณ ใช้ '@' เพื่อมอบหมายให้ผู้ใช้ที่คุณเลือก"
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition} จาก {totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/tr.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Geçersiz alan',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Gerekli alan',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Gönder',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Karar ekle…',
|
|
34
33
|
'fabric.editor.edit': 'Düzenle',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Ana içerik alanı, metin girmek için yazmaya başlayın.',
|
|
36
35
|
'fabric.editor.editors': 'Düzenleyiciler',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Değiştir',
|
|
50
49
|
'fabric.editor.replaceAll': 'Tümünü değiştir',
|
|
51
50
|
'fabric.editor.replaceWith': 'Yeni değer',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': "Yapılacak eylemi yazın, birine atamak için '@' kullanın."
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/uk.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Недопустиме значення поля',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Обов’язкове поле',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Надіслати',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Додати рішення...',
|
|
34
33
|
'fabric.editor.edit': 'Редагувати',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Основна область вмісту: почніть вводити текст.',
|
|
36
35
|
'fabric.editor.editors': 'Редактори',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Замінити',
|
|
50
49
|
'fabric.editor.replaceAll': 'Замінити всі',
|
|
51
50
|
'fabric.editor.replaceWith': 'Замінити на',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition} з {totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': 'Вкажіть задачу. Призначте її комусь за допомогою символу «@».'
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition} з {totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/vi.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': 'Trường không hợp lệ',
|
|
31
31
|
'fabric.editor.configPanel.required': 'Trường bắt buộc',
|
|
32
32
|
'fabric.editor.configPanel.submit': 'Gửi',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': 'Thêm quyết định…',
|
|
34
33
|
'fabric.editor.edit': 'Chỉnh sửa',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': 'Vùng nội dung chính, bắt đầu gõ để nhập văn bản.',
|
|
36
35
|
'fabric.editor.editors': 'Người chỉnh sửa',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': 'Thay thế',
|
|
50
49
|
'fabric.editor.replaceAll': 'Thay thế tất cả',
|
|
51
50
|
'fabric.editor.replaceWith': 'Thay thế bằng',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': "Nhập thao tác của bạn, sử dụng '@' để chỉ định cho người nào đó."
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
54
52
|
};
|
package/dist/es2019/i18n/zh.js
CHANGED
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': '无效字段',
|
|
31
31
|
'fabric.editor.configPanel.required': '必填字段',
|
|
32
32
|
'fabric.editor.configPanel.submit': '提交',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': '添加决定...',
|
|
34
33
|
'fabric.editor.edit': '编辑',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': '主内容区域,开始键入以输入文本。',
|
|
36
35
|
'fabric.editor.editors': '编辑者',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': '替换',
|
|
50
49
|
'fabric.editor.replaceAll': '全部替换',
|
|
51
50
|
'fabric.editor.replaceWith': '替换为',
|
|
52
|
-
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
53
|
-
'fabric.editor.taskPlaceholder': '输入您的操作,使用“@”进行分配。'
|
|
51
|
+
'fabric.editor.resultsCount': '{selectedMatchPosition}/{totalResultsCount}'
|
|
54
52
|
};
|
|
@@ -30,7 +30,6 @@ export default {
|
|
|
30
30
|
'fabric.editor.configPanel.invalid': '無效欄位',
|
|
31
31
|
'fabric.editor.configPanel.required': '必要欄位',
|
|
32
32
|
'fabric.editor.configPanel.submit': '提交',
|
|
33
|
-
'fabric.editor.decisionPlaceholder': '新增決定…',
|
|
34
33
|
'fabric.editor.edit': '編輯',
|
|
35
34
|
'fabric.editor.editorAssistiveLabel': '主要內容區域,打字即可輸入文字。',
|
|
36
35
|
'fabric.editor.editors': '編輯者',
|
|
@@ -49,6 +48,5 @@ export default {
|
|
|
49
48
|
'fabric.editor.replace': '取代',
|
|
50
49
|
'fabric.editor.replaceAll': '全部取代',
|
|
51
50
|
'fabric.editor.replaceWith': '取代為',
|
|
52
|
-
'fabric.editor.resultsCount': '第 {selectedMatchPosition} 個,共 {totalResultsCount} 個'
|
|
53
|
-
'fabric.editor.taskPlaceholder': '輸入動作,使用「@」以指派給他人。'
|
|
51
|
+
'fabric.editor.resultsCount': '第 {selectedMatchPosition} 個,共 {totalResultsCount} 個'
|
|
54
52
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export { default as clearMarksOnChangeToEmptyDocumentPlugin } from './clear-marks-on-change-to-empty-document';
|
|
2
1
|
export { default as collabEditPlugin } from './collab-edit';
|
|
3
2
|
export { default as extensionPlugin } from './extension';
|
|
4
3
|
export { default as jiraIssuePlugin } from './jira-issue';
|
|
@@ -15,5 +14,4 @@ export { default as mobileSelectionPlugin } from './mobile-selection';
|
|
|
15
14
|
export { default as undoRedoPlugin } from './undo-redo';
|
|
16
15
|
export { default as avatarGroupPlugin } from './avatar-group';
|
|
17
16
|
export { default as viewUpdateSubscriptionPlugin } from './view-update-subscription';
|
|
18
|
-
export { default as beforePrimaryToolbarPlugin } from './before-primaryToolbar';
|
|
19
|
-
export { default as codeBidiWarningPlugin } from './code-bidi-warning';
|
|
17
|
+
export { default as beforePrimaryToolbarPlugin } from './before-primaryToolbar';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import pastePlugin from '../plugins/paste';
|
|
4
4
|
import { blockTypePlugin } from '@atlaskit/editor-plugin-block-type';
|
|
5
|
-
import
|
|
5
|
+
import { clearMarksOnEmptyDocPlugin } from '@atlaskit/editor-plugin-clear-marks-on-empty-doc';
|
|
6
6
|
import { hyperlinkPlugin } from '@atlaskit/editor-plugin-hyperlink';
|
|
7
7
|
import { textFormattingPlugin } from '@atlaskit/editor-plugin-text-formatting';
|
|
8
8
|
import { betterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history';
|
|
@@ -55,7 +55,7 @@ export function createDefaultPreset(options) {
|
|
|
55
55
|
return builder.add(p);
|
|
56
56
|
}
|
|
57
57
|
return builder;
|
|
58
|
-
}).add([blockTypePlugin, options.blockType]).add(
|
|
58
|
+
}).add([blockTypePlugin, options.blockType]).add(clearMarksOnEmptyDocPlugin).maybeAdd(annotationPlugin, (p, builder) => {
|
|
59
59
|
if (options.annotationProviders) {
|
|
60
60
|
return builder.add([p, options.annotationProviders]);
|
|
61
61
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, jiraIssuePlugin, alignmentPlugin, customAutoformatPlugin, feedbackDialogPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin
|
|
1
|
+
import { breakoutPlugin, collabEditPlugin, dataConsumerMarkPlugin, extensionPlugin, jiraIssuePlugin, alignmentPlugin, customAutoformatPlugin, feedbackDialogPlugin, mobileDimensionsPlugin, findReplacePlugin, mobileSelectionPlugin, annotationPlugin, avatarGroupPlugin, viewUpdateSubscriptionPlugin, beforePrimaryToolbarPlugin } from '../plugins';
|
|
2
|
+
import { codeBidiWarningPlugin } from '@atlaskit/editor-plugin-code-bidi-warning';
|
|
2
3
|
import { tasksAndDecisionsPlugin } from '@atlaskit/editor-plugin-tasks-and-decisions';
|
|
3
4
|
import { panelPlugin } from '@atlaskit/editor-plugin-panel';
|
|
4
5
|
import { textColorPlugin } from '@atlaskit/editor-plugin-text-color';
|
|
@@ -21,6 +21,8 @@ import WithPluginState from '../WithPluginState';
|
|
|
21
21
|
import FormContent from './FormContent';
|
|
22
22
|
import { messages } from './messages';
|
|
23
23
|
import { FormErrorBoundary } from './FormErrorBoundary';
|
|
24
|
+
import { getLoggedParameters } from './utils';
|
|
25
|
+
import { ALLOWED_LOGGED_MACRO_PARAMS } from './constants';
|
|
24
26
|
function ConfigForm({
|
|
25
27
|
canSave,
|
|
26
28
|
errorMessage,
|
|
@@ -276,8 +278,12 @@ class ConfigPanel extends React.Component {
|
|
|
276
278
|
componentWillUnmount() {
|
|
277
279
|
const {
|
|
278
280
|
createAnalyticsEvent,
|
|
279
|
-
extensionManifest
|
|
281
|
+
extensionManifest,
|
|
282
|
+
fields
|
|
280
283
|
} = this.props;
|
|
284
|
+
const {
|
|
285
|
+
currentParameters
|
|
286
|
+
} = this.state;
|
|
281
287
|
fireAnalyticsEvent(createAnalyticsEvent)({
|
|
282
288
|
payload: {
|
|
283
289
|
action: ACTION.CLOSED,
|
|
@@ -285,7 +291,10 @@ class ConfigPanel extends React.Component {
|
|
|
285
291
|
eventType: EVENT_TYPE.UI,
|
|
286
292
|
attributes: {
|
|
287
293
|
extensionKey: extensionManifest === null || extensionManifest === void 0 ? void 0 : extensionManifest.key,
|
|
288
|
-
extensionType: extensionManifest === null || extensionManifest === void 0 ? void 0 : extensionManifest.type
|
|
294
|
+
extensionType: extensionManifest === null || extensionManifest === void 0 ? void 0 : extensionManifest.type,
|
|
295
|
+
...(extensionManifest !== null && extensionManifest !== void 0 && extensionManifest.key && ALLOWED_LOGGED_MACRO_PARAMS[extensionManifest.key] ? {
|
|
296
|
+
parameters: getLoggedParameters(extensionManifest.key, currentParameters, fields)
|
|
297
|
+
} : {})
|
|
289
298
|
}
|
|
290
299
|
}
|
|
291
300
|
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// Allowlist of { macroKey: parameterName[] } for analytics logging
|
|
2
|
+
export const ALLOWED_LOGGED_MACRO_PARAMS = {
|
|
3
|
+
children: ['all', 'first', 'depth', 'style', 'excerptType', 'sort', 'reverse'],
|
|
4
|
+
'recently-updated': ['width', 'types', 'max', 'theme', 'showProfilePic', 'hideHeading'],
|
|
5
|
+
excerpt: ['hidden']
|
|
6
|
+
};
|
|
7
|
+
export const ALLOWED_PARAM_TYPES = ['enum', 'number', 'boolean'];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ValidationError } from './types';
|
|
2
|
+
import { ALLOWED_LOGGED_MACRO_PARAMS, ALLOWED_PARAM_TYPES } from './constants';
|
|
2
3
|
export const validate = (field, value) => {
|
|
3
4
|
return validateRequired(field, value);
|
|
4
5
|
};
|
|
@@ -36,4 +37,37 @@ export const getSafeParentedName = (name, parentName) => {
|
|
|
36
37
|
};
|
|
37
38
|
const duplicateFieldRegex = /:[0-9]+$/;
|
|
38
39
|
export const isDuplicateField = key => duplicateFieldRegex.test(key);
|
|
39
|
-
export const getNameFromDuplicateField = key => key.replace(duplicateFieldRegex, '');
|
|
40
|
+
export const getNameFromDuplicateField = key => key.replace(duplicateFieldRegex, '');
|
|
41
|
+
|
|
42
|
+
// An overly cautious parser for sanitizing configuration parameters of UGC
|
|
43
|
+
const parseParamType = (paramValue, paramField) => {
|
|
44
|
+
if (paramValue && paramField) {
|
|
45
|
+
if (paramField.type === 'string') {
|
|
46
|
+
if (paramField.name === 'types') {
|
|
47
|
+
// Parse types field as an array of valid content types
|
|
48
|
+
const contentTypes = ['page', 'blogpost', 'comment', 'attachment'];
|
|
49
|
+
return paramValue && paramValue.split(',').map(type => type.trim()).filter(type => contentTypes.includes(type));
|
|
50
|
+
}
|
|
51
|
+
if (paramField.name === 'width') {
|
|
52
|
+
return parseFloat(paramValue);
|
|
53
|
+
}
|
|
54
|
+
// Strings are very risky - return empty string in case anything slips through
|
|
55
|
+
return '';
|
|
56
|
+
}
|
|
57
|
+
if (ALLOWED_PARAM_TYPES.includes(paramField.type)) {
|
|
58
|
+
// The param types defined here are already parsed and safe to log
|
|
59
|
+
return paramValue;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
// Safety net
|
|
63
|
+
return null;
|
|
64
|
+
};
|
|
65
|
+
export const getLoggedParameters = (macroKey, currentParams, macroFields) => {
|
|
66
|
+
// Get the parameters only defined in the allowlist of logged macro/parameter keys
|
|
67
|
+
return Object.keys(currentParams).filter(paramKey => ALLOWED_LOGGED_MACRO_PARAMS[macroKey].includes(paramKey)).reduce((obj, param) => {
|
|
68
|
+
return {
|
|
69
|
+
...obj,
|
|
70
|
+
[param]: parseParamType(currentParams[param], macroFields === null || macroFields === void 0 ? void 0 : macroFields.find(field => field.name === param))
|
|
71
|
+
};
|
|
72
|
+
}, {});
|
|
73
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "189.4.
|
|
2
|
+
export const version = "189.4.12";
|
|
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
4
|
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; }
|
|
5
5
|
/** @jsx jsx */
|
|
6
|
-
import { Fragment, useCallback } from 'react';
|
|
6
|
+
import { memo, Fragment, useCallback } from 'react';
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { ACTION, ACTION_SUBJECT } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
import { PortalProviderWithThemeProviders, PortalRenderer } from '@atlaskit/editor-common/portal-provider';
|
|
@@ -21,7 +21,7 @@ import { getBaseFontSize } from './utils/getBaseFontSize';
|
|
|
21
21
|
* EditorInternalComponent is used to capture the common component
|
|
22
22
|
* from the `render` method of `Editor` and share it with `EditorNext`.
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export var EditorInternal = /*#__PURE__*/memo(function (_ref) {
|
|
25
25
|
var _props$performanceTra, _props$performanceTra2;
|
|
26
26
|
var props = _ref.props,
|
|
27
27
|
handleAnalyticsEvent = _ref.handleAnalyticsEvent,
|
|
@@ -128,7 +128,7 @@ export function EditorInternal(_ref) {
|
|
|
128
128
|
}));
|
|
129
129
|
}
|
|
130
130
|
}))))));
|
|
131
|
-
}
|
|
131
|
+
});
|
|
132
132
|
function ReactEditorViewContextWrapper(props) {
|
|
133
133
|
var setInternalEditorAPI = useSetPresetContext();
|
|
134
134
|
var setExternalEditorAPI = props.setEditorApi;
|