@atlaskit/editor-core 189.6.26 → 190.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/cjs/create-editor/feature-flags-from-props.js +2 -5
- package/dist/cjs/i18n/cs.js +1 -0
- package/dist/cjs/i18n/da.js +1 -0
- package/dist/cjs/i18n/de.js +1 -0
- package/dist/cjs/i18n/es.js +1 -0
- package/dist/cjs/i18n/fi.js +1 -0
- package/dist/cjs/i18n/fr.js +1 -0
- package/dist/cjs/i18n/hu.js +1 -0
- package/dist/cjs/i18n/it.js +1 -0
- package/dist/cjs/i18n/ko.js +1 -0
- package/dist/cjs/i18n/nb.js +1 -0
- package/dist/cjs/i18n/nl.js +1 -0
- package/dist/cjs/i18n/pl.js +1 -0
- package/dist/cjs/i18n/pt_BR.js +1 -0
- package/dist/cjs/i18n/ru.js +1 -0
- package/dist/cjs/i18n/sv.js +1 -0
- package/dist/cjs/i18n/th.js +1 -0
- package/dist/cjs/i18n/tr.js +1 -0
- package/dist/cjs/i18n/uk.js +1 -0
- package/dist/cjs/i18n/vi.js +1 -0
- package/dist/cjs/i18n/zh.js +1 -0
- package/dist/cjs/i18n/zh_TW.js +1 -0
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/index.js +0 -6
- package/dist/cjs/plugins/annotation/pm-plugins/inline-comment.js +7 -2
- package/dist/cjs/plugins/annotation/pm-plugins/plugin-factory.js +43 -2
- package/dist/cjs/plugins/annotation/pm-plugins/reducer.js +10 -2
- package/dist/cjs/plugins/annotation/ui/InlineCommentView.js +4 -2
- package/dist/cjs/plugins/annotation/utils.js +17 -1
- package/dist/cjs/plugins/paste/handlers.js +1 -1
- package/dist/cjs/plugins/paste/pm-plugins/main.js +1 -1
- package/dist/cjs/presets/universal.js +1 -3
- package/dist/cjs/ui/Alignment/index.js +1 -0
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/create-editor/feature-flags-from-props.js +2 -5
- package/dist/es2019/i18n/cs.js +1 -0
- package/dist/es2019/i18n/da.js +1 -0
- package/dist/es2019/i18n/de.js +1 -0
- package/dist/es2019/i18n/es.js +1 -0
- package/dist/es2019/i18n/fi.js +1 -0
- package/dist/es2019/i18n/fr.js +1 -0
- package/dist/es2019/i18n/hu.js +1 -0
- package/dist/es2019/i18n/it.js +1 -0
- package/dist/es2019/i18n/ko.js +1 -0
- package/dist/es2019/i18n/nb.js +1 -0
- package/dist/es2019/i18n/nl.js +1 -0
- package/dist/es2019/i18n/pl.js +1 -0
- package/dist/es2019/i18n/pt_BR.js +1 -0
- package/dist/es2019/i18n/ru.js +1 -0
- package/dist/es2019/i18n/sv.js +1 -0
- package/dist/es2019/i18n/th.js +1 -0
- package/dist/es2019/i18n/tr.js +1 -0
- package/dist/es2019/i18n/uk.js +1 -0
- package/dist/es2019/i18n/vi.js +1 -0
- package/dist/es2019/i18n/zh.js +1 -0
- package/dist/es2019/i18n/zh_TW.js +1 -0
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/index.js +0 -7
- package/dist/es2019/plugins/annotation/pm-plugins/inline-comment.js +5 -2
- package/dist/es2019/plugins/annotation/pm-plugins/plugin-factory.js +50 -3
- package/dist/es2019/plugins/annotation/pm-plugins/reducer.js +15 -4
- package/dist/es2019/plugins/annotation/ui/InlineCommentView.js +4 -2
- package/dist/es2019/plugins/annotation/utils.js +10 -0
- package/dist/es2019/plugins/paste/handlers.js +1 -1
- package/dist/es2019/plugins/paste/pm-plugins/main.js +1 -1
- package/dist/es2019/presets/universal.js +1 -3
- package/dist/es2019/ui/Alignment/index.js +1 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/create-editor/feature-flags-from-props.js +2 -5
- package/dist/esm/i18n/cs.js +1 -0
- package/dist/esm/i18n/da.js +1 -0
- package/dist/esm/i18n/de.js +1 -0
- package/dist/esm/i18n/es.js +1 -0
- package/dist/esm/i18n/fi.js +1 -0
- package/dist/esm/i18n/fr.js +1 -0
- package/dist/esm/i18n/hu.js +1 -0
- package/dist/esm/i18n/it.js +1 -0
- package/dist/esm/i18n/ko.js +1 -0
- package/dist/esm/i18n/nb.js +1 -0
- package/dist/esm/i18n/nl.js +1 -0
- package/dist/esm/i18n/pl.js +1 -0
- package/dist/esm/i18n/pt_BR.js +1 -0
- package/dist/esm/i18n/ru.js +1 -0
- package/dist/esm/i18n/sv.js +1 -0
- package/dist/esm/i18n/th.js +1 -0
- package/dist/esm/i18n/tr.js +1 -0
- package/dist/esm/i18n/uk.js +1 -0
- package/dist/esm/i18n/vi.js +1 -0
- package/dist/esm/i18n/zh.js +1 -0
- package/dist/esm/i18n/zh_TW.js +1 -0
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/index.js +0 -6
- package/dist/esm/plugins/annotation/pm-plugins/inline-comment.js +7 -2
- package/dist/esm/plugins/annotation/pm-plugins/plugin-factory.js +44 -3
- package/dist/esm/plugins/annotation/pm-plugins/reducer.js +10 -2
- package/dist/esm/plugins/annotation/ui/InlineCommentView.js +4 -2
- package/dist/esm/plugins/annotation/utils.js +14 -0
- package/dist/esm/plugins/paste/handlers.js +1 -1
- package/dist/esm/plugins/paste/pm-plugins/main.js +1 -1
- package/dist/esm/presets/universal.js +1 -3
- package/dist/esm/ui/Alignment/index.js +1 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/i18n/cs.d.ts +1 -0
- package/dist/types/i18n/da.d.ts +1 -0
- package/dist/types/i18n/de.d.ts +1 -0
- package/dist/types/i18n/es.d.ts +1 -0
- package/dist/types/i18n/fi.d.ts +1 -0
- package/dist/types/i18n/fr.d.ts +1 -0
- package/dist/types/i18n/hu.d.ts +1 -0
- package/dist/types/i18n/it.d.ts +1 -0
- package/dist/types/i18n/ko.d.ts +1 -0
- package/dist/types/i18n/nb.d.ts +1 -0
- package/dist/types/i18n/nl.d.ts +1 -0
- package/dist/types/i18n/pl.d.ts +1 -0
- package/dist/types/i18n/pt_BR.d.ts +1 -0
- package/dist/types/i18n/ru.d.ts +1 -0
- package/dist/types/i18n/sv.d.ts +1 -0
- package/dist/types/i18n/th.d.ts +1 -0
- package/dist/types/i18n/tr.d.ts +1 -0
- package/dist/types/i18n/uk.d.ts +1 -0
- package/dist/types/i18n/vi.d.ts +1 -0
- package/dist/types/i18n/zh.d.ts +1 -0
- package/dist/types/i18n/zh_TW.d.ts +1 -0
- package/dist/types/plugins/annotation/pm-plugins/types.d.ts +1 -0
- package/dist/types/plugins/annotation/utils.d.ts +5 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +1 -0
- package/dist/types-ts4.5/i18n/da.d.ts +1 -0
- package/dist/types-ts4.5/i18n/de.d.ts +1 -0
- package/dist/types-ts4.5/i18n/es.d.ts +1 -0
- package/dist/types-ts4.5/i18n/fi.d.ts +1 -0
- package/dist/types-ts4.5/i18n/fr.d.ts +1 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +1 -0
- package/dist/types-ts4.5/i18n/it.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ko.d.ts +1 -0
- package/dist/types-ts4.5/i18n/nb.d.ts +1 -0
- package/dist/types-ts4.5/i18n/nl.d.ts +1 -0
- package/dist/types-ts4.5/i18n/pl.d.ts +1 -0
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +1 -0
- package/dist/types-ts4.5/i18n/ru.d.ts +1 -0
- package/dist/types-ts4.5/i18n/sv.d.ts +1 -0
- package/dist/types-ts4.5/i18n/th.d.ts +1 -0
- package/dist/types-ts4.5/i18n/tr.d.ts +1 -0
- package/dist/types-ts4.5/i18n/uk.d.ts +1 -0
- package/dist/types-ts4.5/i18n/vi.d.ts +1 -0
- package/dist/types-ts4.5/i18n/zh.d.ts +1 -0
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +1 -0
- package/dist/types-ts4.5/plugins/annotation/pm-plugins/types.d.ts +1 -0
- package/dist/types-ts4.5/plugins/annotation/utils.d.ts +5 -0
- package/package.json +6 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 190.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#59443](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59443) [`c9c6e1634058`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c9c6e1634058) - [ux] ED-20733: Decouple selected annotation logic from logic to close the inline comment view. This fixes the bug where the inline comment view can be unexpectedly opened from doc changes (through remote editors or non-selection altering changes such as expanding / collapsing expand blocks). Changes are behind platform.editor.annotation.decouple-inline-comment-closed_flmox.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#62137](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/62137) [`503cb77af9ce`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/503cb77af9ce) - [ux] Fix: Clicking on alignment button did not close the alignment popup.
|
|
12
|
+
|
|
13
|
+
## 190.0.0
|
|
14
|
+
|
|
15
|
+
### Major Changes
|
|
16
|
+
|
|
17
|
+
- [#59319](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59319) [`d2e34e936bf2`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/d2e34e936bf2) - [ED-15859] Clean up restartNumberedLists feature flag and set this feature as the default behaviour for ordered lists. Currently this feature is only rolled out in Confluence so this change will roll it out to all other products which adopt this version.
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies
|
|
22
|
+
|
|
3
23
|
## 189.6.26
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -32,7 +32,7 @@ function getSpellCheck(featureFlags) {
|
|
|
32
32
|
* which is used by both current and archv3 editors.
|
|
33
33
|
*/
|
|
34
34
|
function createFeatureFlagsFromProps(props) {
|
|
35
|
-
var _props$allowLayouts, _props$performanceTra, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$collabEdit, _props$collabEdit2
|
|
35
|
+
var _props$allowLayouts, _props$performanceTra, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$collabEdit, _props$collabEdit2;
|
|
36
36
|
var normalizedFeatureFlags = (0, _normalizeFeatureFlags.normalizeFeatureFlags)(props.featureFlags);
|
|
37
37
|
return _objectSpread(_objectSpread({}, normalizedFeatureFlags), {}, {
|
|
38
38
|
newInsertionBehaviour: props.allowNewInsertionBehaviour,
|
|
@@ -53,9 +53,6 @@ function createFeatureFlagsFromProps(props) {
|
|
|
53
53
|
ufo: Boolean(typeof ((_props$featureFlags11 = props.featureFlags) === null || _props$featureFlags11 === void 0 ? void 0 : _props$featureFlags11.ufo) === 'boolean' ? !!((_props$featureFlags12 = props.featureFlags) !== null && _props$featureFlags12 !== void 0 && _props$featureFlags12.ufo) : false),
|
|
54
54
|
twoLineEditorToolbar: Boolean(typeof ((_props$featureFlags13 = props.featureFlags) === null || _props$featureFlags13 === void 0 ? void 0 : _props$featureFlags13.twoLineEditorToolbar) === 'boolean' ? !!((_props$featureFlags14 = props.featureFlags) !== null && _props$featureFlags14 !== void 0 && _props$featureFlags14.twoLineEditorToolbar) : false),
|
|
55
55
|
useNativeCollabPlugin: Boolean(typeof ((_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.useNativePlugin) === 'boolean' ? !!((_props$collabEdit2 = props.collabEdit) !== null && _props$collabEdit2 !== void 0 && _props$collabEdit2.useNativePlugin) : false),
|
|
56
|
-
disableSpellcheckByBrowser: getSpellCheck(props.featureFlags)
|
|
57
|
-
// Including fallback to props.featureFlags so that mobile feature flags
|
|
58
|
-
// are included (they are not kebab cased)
|
|
59
|
-
restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$featureFlags15 = props.featureFlags) === null || _props$featureFlags15 === void 0 ? void 0 : _props$featureFlags15.restartNumberedLists) === true
|
|
56
|
+
disableSpellcheckByBrowser: getSpellCheck(props.featureFlags)
|
|
60
57
|
});
|
|
61
58
|
}
|
package/dist/cjs/i18n/cs.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': '„isMultiple“ a „style: radio“ nelze kombinovat',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Přidat pole',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Odebrat pole',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Potřebujete pomoc?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Neplatné pole',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Povinné pole',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Odeslat',
|
package/dist/cjs/i18n/da.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Kunne ikke kombinere isMultiple med stilen: alternativknap',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Tilføj felt',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Fjern felt',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Har du brug for hjælp?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Ugyldigt felt',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Påkrævet felt',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Send',
|
package/dist/cjs/i18n/de.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'isMultiple kann nicht mit Stil: radio kombiniert werden.',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Feld hinzufügen',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Feld entfernen',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Benötigen Sie Hilfe?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Ungültiges Feld',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Pflichtfeld',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Senden',
|
package/dist/cjs/i18n/es.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'No se puede combinar isMultiple con style: radio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Añadir campo',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Eliminar campo',
|
|
36
|
+
'fabric.editor.configPanel.help': '¿Necesitas ayuda?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Campo no válido',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Campo obligatorio',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Enviar',
|
package/dist/cjs/i18n/fi.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Ei voi yhdistää kohdetta isMultiple tyyliin: radio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Lisää kenttä',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Poista kenttä',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Tarvitsetko apua?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Virheellinen kenttä',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Pakollinen kenttä',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Lähetä',
|
package/dist/cjs/i18n/fr.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Impossible de combiner isMultiple avec style: radio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Ajouter un champ',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Supprimer le champ',
|
|
36
|
+
'fabric.editor.configPanel.help': "Besoin d'aide ?",
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Champ non valide',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Champ obligatoire',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Soumettre',
|
package/dist/cjs/i18n/hu.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Az isMultiple nem kombinálható a „radio” stílussal',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Mező hozzáadása',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Mező eltávolítása',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Segítségre van szükséged?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Érvénytelen mező',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Kötelező mező',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Küldés',
|
package/dist/cjs/i18n/it.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Impossibile combinare isMultiple con style: radio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Aggiungi campo',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Rimuovi campo',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Serve aiuto?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Campo non valido',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Campo obbligatorio',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Invia',
|
package/dist/cjs/i18n/ko.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'isMultiple과 스타일을 결합할 수 없음: 라디오',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': '필드 추가',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': '필드 제거',
|
|
36
|
+
'fabric.editor.configPanel.help': '도움이 필요하십니까?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': '유효하지 않은 필드',
|
|
37
38
|
'fabric.editor.configPanel.required': '필수 필드',
|
|
38
39
|
'fabric.editor.configPanel.submit': '제출',
|
package/dist/cjs/i18n/nb.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Kan ikke kombinere isMultiple med stil: radio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Legg til felt',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Fjern felt',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Trenger du hjelp?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Ugyldig felt',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Obligatorisk felt',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Send inn',
|
package/dist/cjs/i18n/nl.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Kan isMultiple niet combineren met stijl: radio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Veld toevoegen',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Veld verwijderen',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Hulp nodig?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Ongeldig veld',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Verplicht veld',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Verzenden',
|
package/dist/cjs/i18n/pl.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Nie można połączyć isMultiple ze stylem: radio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Dodaj pole',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Usuń pole',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Potrzebujesz pomocy?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Nieprawidłowe pole',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Pole wymagane',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Wyślij',
|
package/dist/cjs/i18n/pt_BR.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Não é possível combinar isMultiple com estilo: rádio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Adicionar campo',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Remover campo',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Precisa de ajuda?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Campo inválido',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Campo obrigatório',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Enviar',
|
package/dist/cjs/i18n/ru.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Невозможно использовать isMultiple с параметром style: radio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Добавить поле',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Удалить поле',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Нужна помощь?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Недопустимое поле',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Обязательное поле',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Отправить',
|
package/dist/cjs/i18n/sv.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Kan inte kombinera isMultiple med stilen radio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Lägg till fält',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Ta bort fält',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Behöver du hjälp?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Ogiltigt fält',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Obligatoriskt fält',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Skicka in',
|
package/dist/cjs/i18n/th.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'ไม่สามารถรวม isMultiple กับรูปแบบได้: radio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'เพิ่มฟิลด์',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'ลบฟิลด์ออก',
|
|
36
|
+
'fabric.editor.configPanel.help': 'ต้องการความช่วยเหลือใช่ไหม',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'ฟิลด์ไม่ถูกต้อง',
|
|
37
38
|
'fabric.editor.configPanel.required': 'ช่องที่ต้องกรอก',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'ส่ง',
|
package/dist/cjs/i18n/tr.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Stil radio olduğunda isMultiple kullanılamaz',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Alan ekle',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Alanı kaldır',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Yardıma mı ihtiyacınız var?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Geçersiz alan',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Gerekli alan',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Gönder',
|
package/dist/cjs/i18n/uk.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': "Не можна поєднати об'єкт isMultiple зі стилем radio",
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Додати поле',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Видалити поле',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Потрібна допомога?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Недопустиме значення поля',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Обов’язкове поле',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Надіслати',
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Không thể kết hợp isMultiple với kiểu: radio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': 'Thêm trường',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': 'Xóa trường',
|
|
36
|
+
'fabric.editor.configPanel.help': 'Bạn cần được trợ giúp?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': 'Trường không hợp lệ',
|
|
37
38
|
'fabric.editor.configPanel.required': 'Trường bắt buộc',
|
|
38
39
|
'fabric.editor.configPanel.submit': 'Gửi',
|
package/dist/cjs/i18n/zh.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': '无法组合 isMultiple 与样式:radio',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': '添加字段',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': '删除字段',
|
|
36
|
+
'fabric.editor.configPanel.help': '需要帮助?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': '无效字段',
|
|
37
38
|
'fabric.editor.configPanel.required': '必填字段',
|
|
38
39
|
'fabric.editor.configPanel.submit': '提交',
|
package/dist/cjs/i18n/zh_TW.js
CHANGED
|
@@ -33,6 +33,7 @@ var _default = exports.default = {
|
|
|
33
33
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': '無法結合 isMultiple 與 radio 風格',
|
|
34
34
|
'fabric.editor.configPanel.formType.addField': '新增欄位',
|
|
35
35
|
'fabric.editor.configPanel.formType.removeField': '移除欄位',
|
|
36
|
+
'fabric.editor.configPanel.help': '需要協助嗎?',
|
|
36
37
|
'fabric.editor.configPanel.invalid': '無效欄位',
|
|
37
38
|
'fabric.editor.configPanel.required': '必要欄位',
|
|
38
39
|
'fabric.editor.configPanel.submit': '提交',
|
|
@@ -97,12 +97,6 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
97
97
|
boundariesElement: popupsBoundariesElement,
|
|
98
98
|
scrollableElement: popupsScrollableElement,
|
|
99
99
|
isOpen: isOpen,
|
|
100
|
-
onOpenChange: function onOpenChange(_ref) {
|
|
101
|
-
var isOpen = _ref.isOpen;
|
|
102
|
-
_this2.setState({
|
|
103
|
-
isOpen: isOpen
|
|
104
|
-
});
|
|
105
|
-
},
|
|
106
100
|
handleClickOutside: function handleClickOutside(event) {
|
|
107
101
|
if (event instanceof MouseEvent) {
|
|
108
102
|
_this2.hide({
|
|
@@ -13,6 +13,7 @@ var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
|
13
13
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
14
14
|
var _adfSchema = require("@atlaskit/adf-schema");
|
|
15
15
|
var _nodeviews = require("../nodeviews");
|
|
16
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
16
17
|
var _commands = require("../commands");
|
|
17
18
|
var _utils = require("../utils");
|
|
18
19
|
var _pluginFactory = require("./plugin-factory");
|
|
@@ -84,6 +85,7 @@ var initialState = function initialState() {
|
|
|
84
85
|
isSelecting: false
|
|
85
86
|
},
|
|
86
87
|
disallowOnWhitespace: disallowOnWhitespace,
|
|
88
|
+
isInlineCommentViewClosed: false,
|
|
87
89
|
isVisible: true,
|
|
88
90
|
skipSelectionHandling: false
|
|
89
91
|
};
|
|
@@ -211,14 +213,17 @@ var inlineCommentPlugin = exports.inlineCommentPlugin = function inlineCommentPl
|
|
|
211
213
|
draftDecorationSet = _ref5.draftDecorationSet,
|
|
212
214
|
annotations = _ref5.annotations,
|
|
213
215
|
selectedAnnotations = _ref5.selectedAnnotations,
|
|
214
|
-
isVisible = _ref5.isVisible
|
|
216
|
+
isVisible = _ref5.isVisible,
|
|
217
|
+
isInlineCommentViewClosed = _ref5.isInlineCommentViewClosed;
|
|
215
218
|
var decorations = draftDecorationSet !== null && draftDecorationSet !== void 0 ? draftDecorationSet : _view.DecorationSet.empty;
|
|
216
219
|
var focusDecorations = [];
|
|
217
220
|
state.doc.descendants(function (node, pos) {
|
|
218
221
|
node.marks.filter(function (mark) {
|
|
219
222
|
return mark.type === state.schema.marks.annotation;
|
|
220
223
|
}).forEach(function (mark) {
|
|
221
|
-
var isSelected = !!(selectedAnnotations !== null && selectedAnnotations !== void 0 && selectedAnnotations.some(function (selectedAnnotation) {
|
|
224
|
+
var isSelected = (0, _platformFeatureFlags.getBooleanFF)('platform.editor.annotation.decouple-inline-comment-closed_flmox') ? !isInlineCommentViewClosed && !!(selectedAnnotations !== null && selectedAnnotations !== void 0 && selectedAnnotations.some(function (selectedAnnotation) {
|
|
225
|
+
return selectedAnnotation.id === mark.attrs.id;
|
|
226
|
+
})) : !!(selectedAnnotations !== null && selectedAnnotations !== void 0 && selectedAnnotations.some(function (selectedAnnotation) {
|
|
222
227
|
return selectedAnnotation.id === mark.attrs.id;
|
|
223
228
|
}));
|
|
224
229
|
var isUnresolved = !!annotations && annotations[mark.attrs.id] === false;
|
|
@@ -8,12 +8,13 @@ exports.createPluginState = exports.createCommand = void 0;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _pluginStateFactory = require("../../../utils/plugin-state-factory");
|
|
10
10
|
var _utils = require("../utils");
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
12
|
var _reducer = _interopRequireDefault(require("./reducer"));
|
|
12
13
|
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; }
|
|
13
14
|
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) { (0, _defineProperty2.default)(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; }
|
|
14
15
|
var handleDocChanged = function handleDocChanged(tr, prevPluginState) {
|
|
15
16
|
if (!tr.getMeta('replaceDocument')) {
|
|
16
|
-
return handleSelectionChanged(tr, prevPluginState);
|
|
17
|
+
return (0, _platformFeatureFlags.getBooleanFF)('platform.editor.annotation.decouple-inline-comment-closed_flmox') ? getSelectionChangedHandler(false)(tr, prevPluginState) : handleSelectionChanged(tr, prevPluginState);
|
|
17
18
|
}
|
|
18
19
|
return _objectSpread(_objectSpread({}, prevPluginState), {}, {
|
|
19
20
|
dirtyAnnotations: true
|
|
@@ -38,8 +39,48 @@ var handleSelectionChanged = function handleSelectionChanged(tr, pluginState) {
|
|
|
38
39
|
}
|
|
39
40
|
return pluginState;
|
|
40
41
|
};
|
|
42
|
+
var getSelectionChangedHandler = function getSelectionChangedHandler(reopenCommentView) {
|
|
43
|
+
return function (tr, pluginState) {
|
|
44
|
+
/**
|
|
45
|
+
* If feature flag is **OFF** we want to keep the old behavior. Note that
|
|
46
|
+
* reopenCommentView is not relevant here when using old behaviour.
|
|
47
|
+
*
|
|
48
|
+
* Feature flag is evaluated here rather than directly in onSelectionChanged where it is assigned
|
|
49
|
+
* to prevent the plugin from setting up the handler before the feature flag is evaluated.
|
|
50
|
+
*
|
|
51
|
+
* This comment / logic can be cleaned up once the feature flag is removed.
|
|
52
|
+
*/
|
|
53
|
+
if (!(0, _platformFeatureFlags.getBooleanFF)('platform.editor.annotation.decouple-inline-comment-closed_flmox')) {
|
|
54
|
+
return handleSelectionChanged(tr, pluginState);
|
|
55
|
+
}
|
|
56
|
+
if (pluginState.skipSelectionHandling) {
|
|
57
|
+
return _objectSpread(_objectSpread({}, pluginState), {}, {
|
|
58
|
+
skipSelectionHandling: false
|
|
59
|
+
}, reopenCommentView && {
|
|
60
|
+
isInlineCommentViewClosed: false
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
var selectedAnnotations = (0, _utils.findAnnotationsInSelection)(tr.selection, tr.doc);
|
|
64
|
+
if (selectedAnnotations.length === 0) {
|
|
65
|
+
return _objectSpread(_objectSpread({}, pluginState), {}, {
|
|
66
|
+
selectedAnnotations: selectedAnnotations,
|
|
67
|
+
isInlineCommentViewClosed: true
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
if ((0, _utils.isSelectedAnnotationsChanged)(selectedAnnotations, pluginState.selectedAnnotations)) {
|
|
71
|
+
return _objectSpread(_objectSpread({}, pluginState), {}, {
|
|
72
|
+
selectedAnnotations: selectedAnnotations
|
|
73
|
+
}, reopenCommentView && {
|
|
74
|
+
isInlineCommentViewClosed: false
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return _objectSpread(_objectSpread({}, pluginState), reopenCommentView && {
|
|
78
|
+
isInlineCommentViewClosed: false
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
};
|
|
41
82
|
var _pluginFactory = (0, _pluginStateFactory.pluginFactory)(_utils.inlineCommentPluginKey, _reducer.default, {
|
|
42
|
-
onSelectionChanged:
|
|
83
|
+
onSelectionChanged: getSelectionChangedHandler(true),
|
|
43
84
|
onDocChanged: handleDocChanged,
|
|
44
85
|
mapping: function mapping(tr, pluginState) {
|
|
45
86
|
var draftDecorationSet = pluginState.draftDecorationSet,
|
|
@@ -7,9 +7,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
var _types = require("./types");
|
|
11
10
|
var _view = require("@atlaskit/editor-prosemirror/view");
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
12
12
|
var _utils = require("../utils");
|
|
13
|
+
var _types = require("./types");
|
|
13
14
|
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; }
|
|
14
15
|
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) { (0, _defineProperty2.default)(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; }
|
|
15
16
|
var _default = exports.default = function _default(pluginState, action) {
|
|
@@ -31,7 +32,9 @@ var _default = exports.default = function _default(pluginState, action) {
|
|
|
31
32
|
annotations: {}
|
|
32
33
|
});
|
|
33
34
|
case _types.ACTIONS.CLOSE_COMPONENT:
|
|
34
|
-
return _objectSpread(_objectSpread({}, pluginState), {}, {
|
|
35
|
+
return (0, _platformFeatureFlags.getBooleanFF)('platform.editor.annotation.decouple-inline-comment-closed_flmox') ? _objectSpread(_objectSpread({}, pluginState), {}, {
|
|
36
|
+
isInlineCommentViewClosed: true
|
|
37
|
+
}) : _objectSpread(_objectSpread({}, pluginState), {}, {
|
|
35
38
|
selectedAnnotations: []
|
|
36
39
|
});
|
|
37
40
|
case _types.ACTIONS.ADD_INLINE_COMMENT:
|
|
@@ -39,6 +42,8 @@ var _default = exports.default = function _default(pluginState, action) {
|
|
|
39
42
|
return _objectSpread(_objectSpread({}, updatedPluginState), {}, {
|
|
40
43
|
selectedAnnotations: [].concat((0, _toConsumableArray2.default)(updatedPluginState.selectedAnnotations), (0, _toConsumableArray2.default)(action.data.selectedAnnotations)),
|
|
41
44
|
annotations: _objectSpread(_objectSpread({}, pluginState.annotations), action.data.inlineComments)
|
|
45
|
+
}, (0, _platformFeatureFlags.getBooleanFF)('platform.editor.annotation.decouple-inline-comment-closed_flmox') && {
|
|
46
|
+
isInlineCommentViewClosed: false
|
|
42
47
|
});
|
|
43
48
|
case _types.ACTIONS.INLINE_COMMENT_SET_VISIBLE:
|
|
44
49
|
var isVisible = action.data.isVisible;
|
|
@@ -52,6 +57,9 @@ var _default = exports.default = function _default(pluginState, action) {
|
|
|
52
57
|
return _objectSpread(_objectSpread({}, pluginState), {}, {
|
|
53
58
|
selectedAnnotations: (0, _toConsumableArray2.default)(action.data.selectedAnnotations),
|
|
54
59
|
skipSelectionHandling: true
|
|
60
|
+
}, (0, _platformFeatureFlags.getBooleanFF)('platform.editor.annotation.decouple-inline-comment-closed_flmox') && {
|
|
61
|
+
// if selecting annotation explicitly, reopen the comment view
|
|
62
|
+
isInlineCommentViewClosed: false
|
|
55
63
|
});
|
|
56
64
|
default:
|
|
57
65
|
return pluginState;
|
|
@@ -8,6 +8,7 @@ exports.InlineCommentView = InlineCommentView;
|
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _utils = require("@atlaskit/editor-prosemirror/utils");
|
|
11
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
12
|
var _AnnotationViewWrapper = require("./AnnotationViewWrapper");
|
|
12
13
|
var _types = require("../types");
|
|
13
14
|
var _utils2 = require("../utils");
|
|
@@ -44,7 +45,8 @@ function InlineCommentView(_ref) {
|
|
|
44
45
|
var _ref2 = inlineCommentState || {},
|
|
45
46
|
bookmark = _ref2.bookmark,
|
|
46
47
|
selectedAnnotations = _ref2.selectedAnnotations,
|
|
47
|
-
annotations = _ref2.annotations
|
|
48
|
+
annotations = _ref2.annotations,
|
|
49
|
+
isInlineCommentViewClosed = _ref2.isInlineCommentViewClosed;
|
|
48
50
|
var annotationsList = (0, _utils2.getAllAnnotations)(editorView.state.doc);
|
|
49
51
|
var selection = (0, _utils2.getSelectionPositions)(state, inlineCommentState);
|
|
50
52
|
var position = findPosForDOM(selection);
|
|
@@ -122,7 +124,7 @@ function InlineCommentView(_ref) {
|
|
|
122
124
|
};
|
|
123
125
|
dispatchAnalyticsEvent(payload);
|
|
124
126
|
};
|
|
125
|
-
if (!selectedAnnotations) {
|
|
127
|
+
if ((0, _platformFeatureFlags.getBooleanFF)('platform.editor.annotation.decouple-inline-comment-closed_flmox') && isInlineCommentViewClosed || !selectedAnnotations) {
|
|
126
128
|
return null;
|
|
127
129
|
}
|
|
128
130
|
return /*#__PURE__*/_react.default.createElement(_AnnotationViewWrapper.AnnotationViewWrapper, {
|
|
@@ -21,7 +21,9 @@ Object.defineProperty(exports, "hasAnnotationMark", {
|
|
|
21
21
|
});
|
|
22
22
|
exports.hasInvalidNodes = void 0;
|
|
23
23
|
exports.hasInvalidWhitespaceNode = hasInvalidWhitespaceNode;
|
|
24
|
-
exports.
|
|
24
|
+
exports.inlineCommentPluginKey = void 0;
|
|
25
|
+
exports.isSelectedAnnotationsChanged = isSelectedAnnotationsChanged;
|
|
26
|
+
exports.isSelectionValid = void 0;
|
|
25
27
|
exports.stripNonExistingAnnotations = stripNonExistingAnnotations;
|
|
26
28
|
exports.surroundingMarks = void 0;
|
|
27
29
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
@@ -353,4 +355,18 @@ function stripNonExistingAnnotationsFromNode(node, state) {
|
|
|
353
355
|
});
|
|
354
356
|
}
|
|
355
357
|
return node;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/**
|
|
361
|
+
* Compares two sets of annotationInfos to see if the annotations have changed
|
|
362
|
+
* This function assumes annotations will have unique id's for simplicity
|
|
363
|
+
*/
|
|
364
|
+
function isSelectedAnnotationsChanged(oldSelectedAnnotations, newSelectedAnnotations) {
|
|
365
|
+
return newSelectedAnnotations.length !== oldSelectedAnnotations.length ||
|
|
366
|
+
// assuming annotations have unique id's for simplicity
|
|
367
|
+
newSelectedAnnotations.some(function (annotation) {
|
|
368
|
+
return !oldSelectedAnnotations.find(function (pluginStateAnnotation) {
|
|
369
|
+
return annotation.id === pluginStateAnnotation.id && annotation.type === pluginStateAnnotation.type;
|
|
370
|
+
});
|
|
371
|
+
});
|
|
356
372
|
}
|
|
@@ -179,7 +179,7 @@ function handlePasteNonNestableBlockNodesIntoList(slice) {
|
|
|
179
179
|
var sliceContainsBlockNodesOtherThanThoseAllowedInListItem = false;
|
|
180
180
|
slice.content.forEach(function (child) {
|
|
181
181
|
var _listItem$spec$conten;
|
|
182
|
-
if (child.isBlock && !((_listItem$spec$conten = listItem.spec.content) !== null && _listItem$spec$conten !== void 0 && _listItem$spec$conten.includes(child.type.name))) {
|
|
182
|
+
if (!listItem || child.isBlock && !((_listItem$spec$conten = listItem.spec.content) !== null && _listItem$spec$conten !== void 0 && _listItem$spec$conten.includes(child.type.name))) {
|
|
183
183
|
sliceContainsBlockNodesOtherThanThoseAllowedInListItem = true;
|
|
184
184
|
}
|
|
185
185
|
});
|
|
@@ -410,7 +410,7 @@ function createPlugin(schema, dispatchAnalyticsEvent, dispatch, featureFlags, pl
|
|
|
410
410
|
if ((0, _analytics2.handlePastePanelOrDecisionIntoListWithAnalytics)(editorAnalyticsAPI)(view, event, slice, pluginInjectionApi === null || pluginInjectionApi === void 0 || (_pluginInjectionApi$l = pluginInjectionApi.list) === null || _pluginInjectionApi$l === void 0 ? void 0 : _pluginInjectionApi$l.actions.findRootParentListNode)(state, dispatch)) {
|
|
411
411
|
return true;
|
|
412
412
|
}
|
|
413
|
-
if (
|
|
413
|
+
if ((0, _analytics2.handlePasteNonNestableBlockNodesIntoListWithAnalytics)(editorAnalyticsAPI)(view, event, slice)(state, dispatch)) {
|
|
414
414
|
return true;
|
|
415
415
|
}
|
|
416
416
|
return (0, _analytics2.handleRichTextWithAnalytics)(view, event, slice, pluginInjectionApi)(state, dispatch);
|
|
@@ -95,9 +95,7 @@ function createUniversalPreset(appearance, props, featureFlags, prevAppearance,
|
|
|
95
95
|
return builder.add([plugin, props.allowTextColor]);
|
|
96
96
|
}
|
|
97
97
|
return builder;
|
|
98
|
-
}).add(
|
|
99
|
-
restartNumberedLists: featureFlags === null || featureFlags === void 0 ? void 0 : featureFlags.restartNumberedLists
|
|
100
|
-
}]).maybeAdd(_editorPluginRule.rulePlugin, function (plugin, builder) {
|
|
98
|
+
}).add(_editorPluginList.listPlugin).maybeAdd(_editorPluginRule.rulePlugin, function (plugin, builder) {
|
|
101
99
|
if (props.allowRule) {
|
|
102
100
|
return builder.add(plugin);
|
|
103
101
|
}
|
|
@@ -47,6 +47,7 @@ var Alignment = /*#__PURE__*/function (_PureComponent) {
|
|
|
47
47
|
className = _this$props.className,
|
|
48
48
|
intl = _this$props.intl;
|
|
49
49
|
return (0, _react.jsx)("div", {
|
|
50
|
+
"data-testid": "alignment-buttons",
|
|
50
51
|
css: _styles.alignmentWrapper,
|
|
51
52
|
className: className
|
|
52
53
|
}, alignmentOptions.map(function (alignment) {
|
|
@@ -21,7 +21,7 @@ function getSpellCheck(featureFlags) {
|
|
|
21
21
|
* which is used by both current and archv3 editors.
|
|
22
22
|
*/
|
|
23
23
|
export function createFeatureFlagsFromProps(props) {
|
|
24
|
-
var _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$collabEdit, _props$collabEdit2
|
|
24
|
+
var _props$allowLayouts, _props$performanceTra, _props$performanceTra2, _props$allowExtension, _props$featureFlags, _props$featureFlags2, _props$featureFlags3, _props$featureFlags4, _props$featureFlags5, _props$featureFlags6, _props$featureFlags7, _props$featureFlags8, _props$featureFlags9, _props$featureFlags10, _props$featureFlags11, _props$featureFlags12, _props$featureFlags13, _props$featureFlags14, _props$collabEdit, _props$collabEdit2;
|
|
25
25
|
const normalizedFeatureFlags = normalizeFeatureFlags(props.featureFlags);
|
|
26
26
|
return {
|
|
27
27
|
...normalizedFeatureFlags,
|
|
@@ -43,9 +43,6 @@ export function createFeatureFlagsFromProps(props) {
|
|
|
43
43
|
ufo: Boolean(typeof ((_props$featureFlags11 = props.featureFlags) === null || _props$featureFlags11 === void 0 ? void 0 : _props$featureFlags11.ufo) === 'boolean' ? !!((_props$featureFlags12 = props.featureFlags) !== null && _props$featureFlags12 !== void 0 && _props$featureFlags12.ufo) : false),
|
|
44
44
|
twoLineEditorToolbar: Boolean(typeof ((_props$featureFlags13 = props.featureFlags) === null || _props$featureFlags13 === void 0 ? void 0 : _props$featureFlags13.twoLineEditorToolbar) === 'boolean' ? !!((_props$featureFlags14 = props.featureFlags) !== null && _props$featureFlags14 !== void 0 && _props$featureFlags14.twoLineEditorToolbar) : false),
|
|
45
45
|
useNativeCollabPlugin: Boolean(typeof ((_props$collabEdit = props.collabEdit) === null || _props$collabEdit === void 0 ? void 0 : _props$collabEdit.useNativePlugin) === 'boolean' ? !!((_props$collabEdit2 = props.collabEdit) !== null && _props$collabEdit2 !== void 0 && _props$collabEdit2.useNativePlugin) : false),
|
|
46
|
-
disableSpellcheckByBrowser: getSpellCheck(props.featureFlags)
|
|
47
|
-
// Including fallback to props.featureFlags so that mobile feature flags
|
|
48
|
-
// are included (they are not kebab cased)
|
|
49
|
-
restartNumberedLists: normalizedFeatureFlags.restartNumberedLists === true || ((_props$featureFlags15 = props.featureFlags) === null || _props$featureFlags15 === void 0 ? void 0 : _props$featureFlags15.restartNumberedLists) === true
|
|
46
|
+
disableSpellcheckByBrowser: getSpellCheck(props.featureFlags)
|
|
50
47
|
};
|
|
51
48
|
}
|
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -27,6 +27,7 @@ export default {
|
|
|
27
27
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': '„isMultiple“ a „style: radio“ nelze kombinovat',
|
|
28
28
|
'fabric.editor.configPanel.formType.addField': 'Přidat pole',
|
|
29
29
|
'fabric.editor.configPanel.formType.removeField': 'Odebrat pole',
|
|
30
|
+
'fabric.editor.configPanel.help': 'Potřebujete pomoc?',
|
|
30
31
|
'fabric.editor.configPanel.invalid': 'Neplatné pole',
|
|
31
32
|
'fabric.editor.configPanel.required': 'Povinné pole',
|
|
32
33
|
'fabric.editor.configPanel.submit': 'Odeslat',
|
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -27,6 +27,7 @@ export default {
|
|
|
27
27
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Kunne ikke kombinere isMultiple med stilen: alternativknap',
|
|
28
28
|
'fabric.editor.configPanel.formType.addField': 'Tilføj felt',
|
|
29
29
|
'fabric.editor.configPanel.formType.removeField': 'Fjern felt',
|
|
30
|
+
'fabric.editor.configPanel.help': 'Har du brug for hjælp?',
|
|
30
31
|
'fabric.editor.configPanel.invalid': 'Ugyldigt felt',
|
|
31
32
|
'fabric.editor.configPanel.required': 'Påkrævet felt',
|
|
32
33
|
'fabric.editor.configPanel.submit': 'Send',
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -27,6 +27,7 @@ export default {
|
|
|
27
27
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'isMultiple kann nicht mit Stil: radio kombiniert werden.',
|
|
28
28
|
'fabric.editor.configPanel.formType.addField': 'Feld hinzufügen',
|
|
29
29
|
'fabric.editor.configPanel.formType.removeField': 'Feld entfernen',
|
|
30
|
+
'fabric.editor.configPanel.help': 'Benötigen Sie Hilfe?',
|
|
30
31
|
'fabric.editor.configPanel.invalid': 'Ungültiges Feld',
|
|
31
32
|
'fabric.editor.configPanel.required': 'Pflichtfeld',
|
|
32
33
|
'fabric.editor.configPanel.submit': 'Senden',
|
package/dist/es2019/i18n/es.js
CHANGED
|
@@ -27,6 +27,7 @@ export default {
|
|
|
27
27
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'No se puede combinar isMultiple con style: radio',
|
|
28
28
|
'fabric.editor.configPanel.formType.addField': 'Añadir campo',
|
|
29
29
|
'fabric.editor.configPanel.formType.removeField': 'Eliminar campo',
|
|
30
|
+
'fabric.editor.configPanel.help': '¿Necesitas ayuda?',
|
|
30
31
|
'fabric.editor.configPanel.invalid': 'Campo no válido',
|
|
31
32
|
'fabric.editor.configPanel.required': 'Campo obligatorio',
|
|
32
33
|
'fabric.editor.configPanel.submit': 'Enviar',
|
package/dist/es2019/i18n/fi.js
CHANGED
|
@@ -27,6 +27,7 @@ export default {
|
|
|
27
27
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Ei voi yhdistää kohdetta isMultiple tyyliin: radio',
|
|
28
28
|
'fabric.editor.configPanel.formType.addField': 'Lisää kenttä',
|
|
29
29
|
'fabric.editor.configPanel.formType.removeField': 'Poista kenttä',
|
|
30
|
+
'fabric.editor.configPanel.help': 'Tarvitsetko apua?',
|
|
30
31
|
'fabric.editor.configPanel.invalid': 'Virheellinen kenttä',
|
|
31
32
|
'fabric.editor.configPanel.required': 'Pakollinen kenttä',
|
|
32
33
|
'fabric.editor.configPanel.submit': 'Lähetä',
|
package/dist/es2019/i18n/fr.js
CHANGED
|
@@ -27,6 +27,7 @@ export default {
|
|
|
27
27
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Impossible de combiner isMultiple avec style: radio',
|
|
28
28
|
'fabric.editor.configPanel.formType.addField': 'Ajouter un champ',
|
|
29
29
|
'fabric.editor.configPanel.formType.removeField': 'Supprimer le champ',
|
|
30
|
+
'fabric.editor.configPanel.help': "Besoin d'aide ?",
|
|
30
31
|
'fabric.editor.configPanel.invalid': 'Champ non valide',
|
|
31
32
|
'fabric.editor.configPanel.required': 'Champ obligatoire',
|
|
32
33
|
'fabric.editor.configPanel.submit': 'Soumettre',
|
package/dist/es2019/i18n/hu.js
CHANGED
|
@@ -27,6 +27,7 @@ export default {
|
|
|
27
27
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Az isMultiple nem kombinálható a „radio” stílussal',
|
|
28
28
|
'fabric.editor.configPanel.formType.addField': 'Mező hozzáadása',
|
|
29
29
|
'fabric.editor.configPanel.formType.removeField': 'Mező eltávolítása',
|
|
30
|
+
'fabric.editor.configPanel.help': 'Segítségre van szükséged?',
|
|
30
31
|
'fabric.editor.configPanel.invalid': 'Érvénytelen mező',
|
|
31
32
|
'fabric.editor.configPanel.required': 'Kötelező mező',
|
|
32
33
|
'fabric.editor.configPanel.submit': 'Küldés',
|
package/dist/es2019/i18n/it.js
CHANGED
|
@@ -27,6 +27,7 @@ export default {
|
|
|
27
27
|
'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': 'Impossibile combinare isMultiple con style: radio',
|
|
28
28
|
'fabric.editor.configPanel.formType.addField': 'Aggiungi campo',
|
|
29
29
|
'fabric.editor.configPanel.formType.removeField': 'Rimuovi campo',
|
|
30
|
+
'fabric.editor.configPanel.help': 'Serve aiuto?',
|
|
30
31
|
'fabric.editor.configPanel.invalid': 'Campo non valido',
|
|
31
32
|
'fabric.editor.configPanel.required': 'Campo obbligatorio',
|
|
32
33
|
'fabric.editor.configPanel.submit': 'Invia',
|