@atlaskit/renderer 114.13.0 → 115.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/cjs/i18n/cs.js +1 -2
- package/dist/cjs/i18n/da.js +1 -2
- package/dist/cjs/i18n/de.js +1 -2
- package/dist/cjs/i18n/en.js +1 -2
- package/dist/cjs/i18n/en_GB.js +1 -2
- package/dist/cjs/i18n/en_ZZ.js +1 -2
- package/dist/cjs/i18n/es.js +1 -2
- package/dist/cjs/i18n/fi.js +1 -2
- package/dist/cjs/i18n/fr.js +1 -2
- package/dist/cjs/i18n/hr.js +25 -0
- package/dist/cjs/i18n/hu.js +1 -2
- package/dist/cjs/i18n/it.js +1 -2
- package/dist/cjs/i18n/ja.js +1 -2
- package/dist/cjs/i18n/ko.js +1 -2
- package/dist/cjs/i18n/nb.js +1 -2
- package/dist/cjs/i18n/nl.js +1 -2
- package/dist/cjs/i18n/pl.js +1 -2
- package/dist/cjs/i18n/pt_BR.js +1 -2
- package/dist/cjs/i18n/ru.js +1 -2
- package/dist/cjs/i18n/sk.js +12 -3
- package/dist/cjs/i18n/sv.js +1 -2
- package/dist/cjs/i18n/th.js +1 -2
- package/dist/cjs/i18n/tr.js +1 -2
- package/dist/cjs/i18n/uk.js +1 -2
- package/dist/cjs/i18n/vi.js +1 -2
- package/dist/cjs/i18n/zh.js +1 -2
- package/dist/cjs/i18n/zh_TW.js +1 -2
- package/dist/cjs/react/nodes/panel.js +7 -1
- package/dist/cjs/react/nodes/table.js +17 -1
- package/dist/cjs/react/nodes/tableNew.js +24 -4
- package/dist/cjs/ui/Renderer/RendererStyleContainer.js +13 -1
- package/dist/cjs/ui/Renderer/index.js +9 -16
- package/dist/cjs/ui/Renderer/useMemoFromPropsDerivative.js +57 -0
- package/dist/es2019/i18n/cs.js +1 -2
- package/dist/es2019/i18n/da.js +1 -2
- package/dist/es2019/i18n/de.js +1 -2
- package/dist/es2019/i18n/en.js +1 -2
- package/dist/es2019/i18n/en_GB.js +1 -2
- package/dist/es2019/i18n/en_ZZ.js +1 -2
- package/dist/es2019/i18n/es.js +1 -2
- package/dist/es2019/i18n/fi.js +1 -2
- package/dist/es2019/i18n/fr.js +1 -2
- package/dist/es2019/i18n/hr.js +19 -0
- package/dist/es2019/i18n/hu.js +1 -2
- package/dist/es2019/i18n/it.js +1 -2
- package/dist/es2019/i18n/ja.js +1 -2
- package/dist/es2019/i18n/ko.js +1 -2
- package/dist/es2019/i18n/nb.js +1 -2
- package/dist/es2019/i18n/nl.js +1 -2
- package/dist/es2019/i18n/pl.js +1 -2
- package/dist/es2019/i18n/pt_BR.js +1 -2
- package/dist/es2019/i18n/ru.js +1 -2
- package/dist/es2019/i18n/sk.js +12 -3
- package/dist/es2019/i18n/sv.js +1 -2
- package/dist/es2019/i18n/th.js +1 -2
- package/dist/es2019/i18n/tr.js +1 -2
- package/dist/es2019/i18n/uk.js +1 -2
- package/dist/es2019/i18n/vi.js +1 -2
- package/dist/es2019/i18n/zh.js +1 -2
- package/dist/es2019/i18n/zh_TW.js +1 -2
- package/dist/es2019/react/nodes/panel.js +7 -1
- package/dist/es2019/react/nodes/table.js +17 -1
- package/dist/es2019/react/nodes/tableNew.js +24 -4
- package/dist/es2019/ui/Renderer/RendererStyleContainer.js +21 -1
- package/dist/es2019/ui/Renderer/index.js +7 -17
- package/dist/es2019/ui/Renderer/useMemoFromPropsDerivative.js +44 -0
- package/dist/esm/i18n/cs.js +1 -2
- package/dist/esm/i18n/da.js +1 -2
- package/dist/esm/i18n/de.js +1 -2
- package/dist/esm/i18n/en.js +1 -2
- package/dist/esm/i18n/en_GB.js +1 -2
- package/dist/esm/i18n/en_ZZ.js +1 -2
- package/dist/esm/i18n/es.js +1 -2
- package/dist/esm/i18n/fi.js +1 -2
- package/dist/esm/i18n/fr.js +1 -2
- package/dist/esm/i18n/hr.js +19 -0
- package/dist/esm/i18n/hu.js +1 -2
- package/dist/esm/i18n/it.js +1 -2
- package/dist/esm/i18n/ja.js +1 -2
- package/dist/esm/i18n/ko.js +1 -2
- package/dist/esm/i18n/nb.js +1 -2
- package/dist/esm/i18n/nl.js +1 -2
- package/dist/esm/i18n/pl.js +1 -2
- package/dist/esm/i18n/pt_BR.js +1 -2
- package/dist/esm/i18n/ru.js +1 -2
- package/dist/esm/i18n/sk.js +12 -3
- package/dist/esm/i18n/sv.js +1 -2
- package/dist/esm/i18n/th.js +1 -2
- package/dist/esm/i18n/tr.js +1 -2
- package/dist/esm/i18n/uk.js +1 -2
- package/dist/esm/i18n/vi.js +1 -2
- package/dist/esm/i18n/zh.js +1 -2
- package/dist/esm/i18n/zh_TW.js +1 -2
- package/dist/esm/react/nodes/panel.js +7 -1
- package/dist/esm/react/nodes/table.js +17 -1
- package/dist/esm/react/nodes/tableNew.js +24 -4
- package/dist/esm/ui/Renderer/RendererStyleContainer.js +13 -1
- package/dist/esm/ui/Renderer/index.js +9 -16
- package/dist/esm/ui/Renderer/useMemoFromPropsDerivative.js +50 -0
- package/dist/types/i18n/cs.d.ts +0 -1
- package/dist/types/i18n/da.d.ts +0 -1
- package/dist/types/i18n/de.d.ts +0 -1
- package/dist/types/i18n/en.d.ts +0 -1
- package/dist/types/i18n/en_GB.d.ts +0 -1
- package/dist/types/i18n/en_ZZ.d.ts +0 -1
- package/dist/types/i18n/es.d.ts +0 -1
- package/dist/types/i18n/fi.d.ts +0 -1
- package/dist/types/i18n/fr.d.ts +0 -1
- package/dist/types/i18n/hr.d.ts +18 -0
- package/dist/types/i18n/hu.d.ts +0 -1
- package/dist/types/i18n/it.d.ts +0 -1
- package/dist/types/i18n/ja.d.ts +0 -1
- package/dist/types/i18n/ko.d.ts +0 -1
- package/dist/types/i18n/nb.d.ts +0 -1
- package/dist/types/i18n/nl.d.ts +0 -1
- package/dist/types/i18n/pl.d.ts +0 -1
- package/dist/types/i18n/pt_BR.d.ts +0 -1
- package/dist/types/i18n/ru.d.ts +0 -1
- package/dist/types/i18n/sk.d.ts +10 -2
- package/dist/types/i18n/sv.d.ts +0 -1
- package/dist/types/i18n/th.d.ts +0 -1
- package/dist/types/i18n/tr.d.ts +0 -1
- package/dist/types/i18n/uk.d.ts +0 -1
- package/dist/types/i18n/vi.d.ts +0 -1
- package/dist/types/i18n/zh.d.ts +0 -1
- package/dist/types/i18n/zh_TW.d.ts +0 -1
- package/dist/types/ui/Renderer/useMemoFromPropsDerivative.d.ts +1 -0
- package/dist/types-ts4.5/i18n/cs.d.ts +0 -1
- package/dist/types-ts4.5/i18n/da.d.ts +0 -1
- package/dist/types-ts4.5/i18n/de.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en_GB.d.ts +0 -1
- package/dist/types-ts4.5/i18n/en_ZZ.d.ts +0 -1
- package/dist/types-ts4.5/i18n/es.d.ts +0 -1
- package/dist/types-ts4.5/i18n/fi.d.ts +0 -1
- package/dist/types-ts4.5/i18n/fr.d.ts +0 -1
- package/dist/types-ts4.5/i18n/hr.d.ts +18 -0
- package/dist/types-ts4.5/i18n/hu.d.ts +0 -1
- package/dist/types-ts4.5/i18n/it.d.ts +0 -1
- package/dist/types-ts4.5/i18n/ja.d.ts +0 -1
- package/dist/types-ts4.5/i18n/ko.d.ts +0 -1
- package/dist/types-ts4.5/i18n/nb.d.ts +0 -1
- package/dist/types-ts4.5/i18n/nl.d.ts +0 -1
- package/dist/types-ts4.5/i18n/pl.d.ts +0 -1
- package/dist/types-ts4.5/i18n/pt_BR.d.ts +0 -1
- package/dist/types-ts4.5/i18n/ru.d.ts +0 -1
- package/dist/types-ts4.5/i18n/sk.d.ts +10 -2
- package/dist/types-ts4.5/i18n/sv.d.ts +0 -1
- package/dist/types-ts4.5/i18n/th.d.ts +0 -1
- package/dist/types-ts4.5/i18n/tr.d.ts +0 -1
- package/dist/types-ts4.5/i18n/uk.d.ts +0 -1
- package/dist/types-ts4.5/i18n/vi.d.ts +0 -1
- package/dist/types-ts4.5/i18n/zh.d.ts +0 -1
- package/dist/types-ts4.5/i18n/zh_TW.d.ts +0 -1
- package/dist/types-ts4.5/ui/Renderer/useMemoFromPropsDerivative.d.ts +1 -0
- package/package.json +18 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/renderer
|
|
2
2
|
|
|
3
|
+
## 115.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#148116](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148116)
|
|
8
|
+
[`6170d49320f56`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6170d49320f56) -
|
|
9
|
+
[ux] EDITOR-618 Add border style when a panel is nested in other panels
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 114.13.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#148536](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/148536)
|
|
20
|
+
[`da7c16d27cfcc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/da7c16d27cfcc) -
|
|
21
|
+
Update fragment serializer logic
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 114.13.0
|
|
4
25
|
|
|
5
26
|
### Minor Changes
|
package/dist/cjs/i18n/cs.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Kopírování se nezdařilo',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'Žádné',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'konec vloženého komentáře',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'začátek vloženého komentáře'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'stav:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'začátek vloženého komentáře'
|
|
26
25
|
};
|
package/dist/cjs/i18n/da.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Kopiering mislykkedes',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'ingen',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'slut på indlejret kommentar',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'start på indlejret kommentar'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'status:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'start på indlejret kommentar'
|
|
26
25
|
};
|
package/dist/cjs/i18n/de.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Kopieren ist fehlgeschlagen',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'Keine',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'Ende des Inline-Kommentars',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'Beginn des Inline-Kommentars'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'Status:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'Beginn des Inline-Kommentars'
|
|
26
25
|
};
|
package/dist/cjs/i18n/en.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Copy failed',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'none',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'inline comment end',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'inline comment start'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'status:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'inline comment start'
|
|
26
25
|
};
|
package/dist/cjs/i18n/en_GB.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Copy failed',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'none',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'inline comment end',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'inline comment start'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'status:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'inline comment start'
|
|
26
25
|
};
|
package/dist/cjs/i18n/en_ZZ.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Copy failed',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'none',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'inline comment end',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'inline comment start'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'status:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'inline comment start'
|
|
26
25
|
};
|
package/dist/cjs/i18n/es.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Copia fallida',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'ninguno',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'final de comentario insertado',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'inicio de comentario insertado'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'estado:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'inicio de comentario insertado'
|
|
26
25
|
};
|
package/dist/cjs/i18n/fi.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Kopiointi epäonnistui',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'Ei mitään',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'tekstin sisäisen kommentin loppu',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'tekstin sisäisen kommentin alku'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'tila:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'tekstin sisäisen kommentin alku'
|
|
26
25
|
};
|
package/dist/cjs/i18n/fr.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Copie impossible',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'Néant',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'fin du commentaire contextuel',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'début du commentaire contextuel'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'état :'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'début du commentaire contextuel'
|
|
26
25
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
/* prettier-ignore */
|
|
8
|
+
/**
|
|
9
|
+
* NOTE:
|
|
10
|
+
*
|
|
11
|
+
* This file is automatically generated by Traduki 2.0.
|
|
12
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
13
|
+
*/
|
|
14
|
+
//Croatian (Croatia) [hr-HR]
|
|
15
|
+
var _default = exports.default = {
|
|
16
|
+
'fabric.editor.headingLink.ascSortingLabel': 'uzlazno',
|
|
17
|
+
'fabric.editor.headingLink.copied': 'Kopirano!',
|
|
18
|
+
'fabric.editor.headingLink.copyAnchorLink': 'Kopiraj poveznicu u zaglavlju',
|
|
19
|
+
'fabric.editor.headingLink.copyAriaLabel': 'Kopiraj',
|
|
20
|
+
'fabric.editor.headingLink.descSortingLabel': 'silazno',
|
|
21
|
+
'fabric.editor.headingLink.failedToCopy': 'Neuspjelo kopiranje',
|
|
22
|
+
'fabric.editor.headingLink.noneSortingLabel': 'nema',
|
|
23
|
+
'fabric.editor.inlineComment.marker.end': 'završetak za umetnuti komentar',
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'početak za umetnuti komentar'
|
|
25
|
+
};
|
package/dist/cjs/i18n/hu.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'A másolás nem sikerült',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'Nincs',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'beágyazott megjegyzés vége',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'beágyazott megjegyzés kezdete'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'állapot:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'beágyazott megjegyzés kezdete'
|
|
26
25
|
};
|
package/dist/cjs/i18n/it.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Copia non riuscita',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'nessuno',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'fine del commento in linea',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'inizio del commento in linea'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'stato:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'inizio del commento in linea'
|
|
26
25
|
};
|
package/dist/cjs/i18n/ja.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'コピーできませんでした。',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'なし',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'インライン コメント終了',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'インライン コメント開始'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'ステータス:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'インライン コメント開始'
|
|
26
25
|
};
|
package/dist/cjs/i18n/ko.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': '복사 실패',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': '없음',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': '인라인 댓글 끝',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': '인라인 댓글 시작'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': '상태:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': '인라인 댓글 시작'
|
|
26
25
|
};
|
package/dist/cjs/i18n/nb.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Kopiering mislyktes',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'ingen',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'kommentar i margen slutt',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'kommentar i margen start'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'status:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'kommentar i margen start'
|
|
26
25
|
};
|
package/dist/cjs/i18n/nl.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Kopiëren mislukt',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'Geen',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'einde inline-opmerking',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'begin inline-opmerking'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'status:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'begin inline-opmerking'
|
|
26
25
|
};
|
package/dist/cjs/i18n/pl.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Kopiowanie nie powiodło się',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'Brak',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'koniec komentarza śródwierszowego',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'początek komentarza śródwierszowego'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'status:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'początek komentarza śródwierszowego'
|
|
26
25
|
};
|
package/dist/cjs/i18n/pt_BR.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Falha na cópia',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'nenhum',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'fim de comentário em linha',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'início de comentário em linha'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'status:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'início de comentário em linha'
|
|
26
25
|
};
|
package/dist/cjs/i18n/ru.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Ошибка копирования',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'Нет',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'конец встроенного комментария',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'начало встроенного комментария'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'статус:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'начало встроенного комментария'
|
|
26
25
|
};
|
package/dist/cjs/i18n/sk.js
CHANGED
|
@@ -4,11 +4,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
/* prettier-ignore */
|
|
7
8
|
/**
|
|
8
9
|
* NOTE:
|
|
9
10
|
*
|
|
10
|
-
* This file is automatically generated by
|
|
11
|
+
* This file is automatically generated by Traduki 2.0.
|
|
11
12
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
12
13
|
*/
|
|
13
|
-
//
|
|
14
|
-
var _default = exports.default = {
|
|
14
|
+
//Slovak
|
|
15
|
+
var _default = exports.default = {
|
|
16
|
+
'fabric.editor.headingLink.ascSortingLabel': 'None',
|
|
17
|
+
'fabric.editor.headingLink.copied': 'None',
|
|
18
|
+
'fabric.editor.headingLink.copyAnchorLink': 'None',
|
|
19
|
+
'fabric.editor.headingLink.copyAriaLabel': 'None',
|
|
20
|
+
'fabric.editor.headingLink.failedToCopy': 'None',
|
|
21
|
+
'fabric.editor.inlineComment.marker.end': 'koniec vnoreného komentára',
|
|
22
|
+
'fabric.editor.inlineComment.marker.start': 'začiatok vnoreného komentára'
|
|
23
|
+
};
|
package/dist/cjs/i18n/sv.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Kopiering misslyckades',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'Ingen',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'slut på inlinekommentarer',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'start på inlinekommentarer'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'status:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'start på inlinekommentarer'
|
|
26
25
|
};
|
package/dist/cjs/i18n/th.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'การคัดลอกไม่สำเร็จ',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'ไม่มี',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'สิ้นสุดความคิดเห็นในบรรทัด',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'เริ่มต้นความคิดเห็นในบรรทัด'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'สถานะ:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'เริ่มต้นความคิดเห็นในบรรทัด'
|
|
26
25
|
};
|
package/dist/cjs/i18n/tr.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Kopyalama işlemi başarısız oldu',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'yok',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'satır içi yorum sonu',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'satır içi yorum başlangıcı'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'durum:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'satır içi yorum başlangıcı'
|
|
26
25
|
};
|
package/dist/cjs/i18n/uk.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Не вдалося скопіювати',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'Немає',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'кінець вбудованого коментаря',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'початок вбудованого коментаря'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'стан:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'початок вбудованого коментаря'
|
|
26
25
|
};
|
package/dist/cjs/i18n/vi.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': 'Sao chép không thành công',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': 'không có',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': 'bình luận nội tuyến kết thúc',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': 'bình luận nội tuyến bắt đầu'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': 'trạng thái:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': 'bình luận nội tuyến bắt đầu'
|
|
26
25
|
};
|
package/dist/cjs/i18n/zh.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': '复制失败',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': '无',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': '内联评论结束',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': '内联评论开始'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': '状态:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': '内联评论开始'
|
|
26
25
|
};
|
package/dist/cjs/i18n/zh_TW.js
CHANGED
|
@@ -21,6 +21,5 @@ var _default = exports.default = {
|
|
|
21
21
|
'fabric.editor.headingLink.failedToCopy': '複製失敗',
|
|
22
22
|
'fabric.editor.headingLink.noneSortingLabel': '無',
|
|
23
23
|
'fabric.editor.inlineComment.marker.end': '內嵌留言結束',
|
|
24
|
-
'fabric.editor.inlineComment.marker.start': '內嵌留言開始'
|
|
25
|
-
'fabric.editor.status.accessibilityLabel': '狀態:'
|
|
24
|
+
'fabric.editor.inlineComment.marker.start': '內嵌留言開始'
|
|
26
25
|
};
|
|
@@ -154,6 +154,12 @@ var panelNestedIconStyles = (0, _react2.css)({
|
|
|
154
154
|
paddingRight: "var(--ds-space-150, 12px)"
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
|
+
var nestedPanelStyles = (0, _react2.css)({
|
|
158
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
159
|
+
'.ak-editor-panel__content .ak-editor-panel': {
|
|
160
|
+
border: "1px solid ".concat("var(--ds-border, #091E42)")
|
|
161
|
+
}
|
|
162
|
+
});
|
|
157
163
|
var panelCustomBackground = (0, _react2.css)({
|
|
158
164
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
159
165
|
'&.ak-editor-panel': {
|
|
@@ -174,7 +180,7 @@ var PanelStyled = function PanelStyled(_ref) {
|
|
|
174
180
|
{
|
|
175
181
|
'--ak-renderer-panel-custom-bg-color': customBackgroundColor
|
|
176
182
|
},
|
|
177
|
-
css: [panelBaseStyles, !hasIcon && panelHasNoIconStyles, props['data-panel-type'] === _adfSchema.PanelType.CUSTOM && backgroundColor && panelCustomBackground, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && panelNestedIconStyles]
|
|
183
|
+
css: [panelBaseStyles, !hasIcon && panelHasNoIconStyles, props['data-panel-type'] === _adfSchema.PanelType.CUSTOM && backgroundColor && panelCustomBackground, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && panelNestedIconStyles, (0, _platformFeatureFlags.fg)('platform_editor_add_border_for_nested_panel') && nestedPanelStyles]
|
|
178
184
|
// Ignored via go/ees005
|
|
179
185
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
180
186
|
}, props), props.children);
|
|
@@ -615,9 +615,25 @@ var TableWithShadows = (0, _ui.overflowShadow)(TableProcessor, {
|
|
|
615
615
|
overflowSelector: ":scope > .".concat(_styles.TableSharedCssClassName.TABLE_NODE_WRAPPER),
|
|
616
616
|
useShadowObserver: true
|
|
617
617
|
});
|
|
618
|
+
|
|
619
|
+
// Legacy tables have only one of the three layouts and do not have a width attribute
|
|
620
|
+
var isLegacyTable = function isLegacyTable(layout) {
|
|
621
|
+
return Boolean(['default', 'wide', 'full-width'].includes(layout));
|
|
622
|
+
};
|
|
623
|
+
var shouldRenderTableWithCSSWidth = function shouldRenderTableWithCSSWidth(layout, width) {
|
|
624
|
+
// The CSS width optimization is currently only in place when the table node
|
|
625
|
+
// has a defined width and is not a legacy table
|
|
626
|
+
|
|
627
|
+
// the optimization is also skipped for Safari due to browser limitations with container styles
|
|
628
|
+
if (_browser.browser.safari || !width || isLegacyTable(layout)) {
|
|
629
|
+
return false;
|
|
630
|
+
}
|
|
631
|
+
return true;
|
|
632
|
+
};
|
|
618
633
|
var TableWithWidth = function TableWithWidth(props) {
|
|
634
|
+
var _props$tableNode$attr, _props$tableNode, _props$tableNode2;
|
|
619
635
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
620
|
-
if (
|
|
636
|
+
if (shouldRenderTableWithCSSWidth((_props$tableNode$attr = (_props$tableNode = props.tableNode) === null || _props$tableNode === void 0 || (_props$tableNode = _props$tableNode.attrs) === null || _props$tableNode === void 0 ? void 0 : _props$tableNode.layout) !== null && _props$tableNode$attr !== void 0 ? _props$tableNode$attr : '', (_props$tableNode2 = props.tableNode) === null || _props$tableNode2 === void 0 || (_props$tableNode2 = _props$tableNode2.attrs) === null || _props$tableNode2 === void 0 ? void 0 : _props$tableNode2.width) && (0, _platformFeatureFlags.fg)('platform-ssr-table-resize')) {
|
|
621
637
|
var _props$columnWidths;
|
|
622
638
|
var colWidthsSum = ((_props$columnWidths = props.columnWidths) === null || _props$columnWidths === void 0 ? void 0 : _props$columnWidths.reduce(function (total, val) {
|
|
623
639
|
return total + val;
|
|
@@ -40,6 +40,7 @@ var getColgroupChildrenLength = function getColgroupChildrenLength(table) {
|
|
|
40
40
|
return map.width;
|
|
41
41
|
};
|
|
42
42
|
var gutterPadding = (0, _editorSharedStyles.akEditorGutterPaddingDynamic)() * 2;
|
|
43
|
+
var TABLE_MAX_WIDTH = 1800;
|
|
43
44
|
var COLUMN_MIN_WIDTH = 48;
|
|
44
45
|
var isTableResizingEnabled = exports.isTableResizingEnabled = function isTableResizingEnabled(appearance) {
|
|
45
46
|
return (0, _appearance.isFullWidthOrFullPageAppearance)(appearance) || (0, _appearance.isCommentAppearance)(appearance) && (0, _experiments.editorExperiment)('support_table_in_comment', true, {
|
|
@@ -353,7 +354,20 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
353
354
|
allowTableResizing = _this$props.allowTableResizing,
|
|
354
355
|
isPresentational = _this$props.isPresentational;
|
|
355
356
|
var stickyMode = this.state.stickyMode;
|
|
356
|
-
var
|
|
357
|
+
var getTableWidthAttribute = function getTableWidthAttribute() {
|
|
358
|
+
// this scenario occurs when there is a full width table within the full width renderer,
|
|
359
|
+
// in which case the parent container is already the correct size
|
|
360
|
+
if (rendererAppearance === 'full-width' && (tableNode === null || tableNode === void 0 ? void 0 : tableNode.attrs.width) === TABLE_MAX_WIDTH) {
|
|
361
|
+
return "100%";
|
|
362
|
+
}
|
|
363
|
+
// this scenario occurs when there is a full width table nested within a component (expand, column layout). In these cases
|
|
364
|
+
// the table should inherit the width of its parent component
|
|
365
|
+
if (rendererAppearance === 'full-page' && (tableNode === null || tableNode === void 0 ? void 0 : tableNode.attrs.width) === TABLE_MAX_WIDTH && layout === 'align-start') {
|
|
366
|
+
return "100%";
|
|
367
|
+
}
|
|
368
|
+
return "".concat(tableNode === null || tableNode === void 0 ? void 0 : tableNode.attrs.width, "px");
|
|
369
|
+
};
|
|
370
|
+
var tableWidthAttribute = getTableWidthAttribute();
|
|
357
371
|
var children = _react.default.Children.toArray(this.props.children);
|
|
358
372
|
var tableMinWidth;
|
|
359
373
|
if (tableNode) {
|
|
@@ -362,7 +376,7 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
362
376
|
|
|
363
377
|
// Historically, tables in the full-width renderer had their layout set to 'default' which is deceiving.
|
|
364
378
|
// This check caters for those tables and helps with SSR logic
|
|
365
|
-
var isFullWidth =
|
|
379
|
+
var isFullWidth = rendererAppearance === 'full-width' && layout !== 'full-width';
|
|
366
380
|
if (isFullWidth) {
|
|
367
381
|
this.updatedLayout = 'full-width';
|
|
368
382
|
// if table has width explicity set, ensure SSR is handled
|
|
@@ -371,6 +385,12 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
371
385
|
} else {
|
|
372
386
|
this.updatedLayout = layout;
|
|
373
387
|
}
|
|
388
|
+
|
|
389
|
+
// full width tables can have either left-aligned or centered layout despite looking centered in the renderer.
|
|
390
|
+
// in these cases, keep the alignment unset
|
|
391
|
+
var getTableAlignment = function getTableAlignment() {
|
|
392
|
+
return isFullWidth && (tableNode === null || tableNode === void 0 ? void 0 : tableNode.attrs.width) === TABLE_MAX_WIDTH ? '' : tableNode === null || tableNode === void 0 ? void 0 : tableNode.attrs.layout;
|
|
393
|
+
};
|
|
374
394
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
375
395
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
376
396
|
className: "table-alignment-container"
|
|
@@ -378,7 +398,7 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
378
398
|
,
|
|
379
399
|
style: {
|
|
380
400
|
display: 'flex',
|
|
381
|
-
justifyContent:
|
|
401
|
+
justifyContent: getTableAlignment()
|
|
382
402
|
}
|
|
383
403
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
384
404
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
@@ -396,7 +416,7 @@ var TableContainer = exports.TableContainer = /*#__PURE__*/function (_React$Comp
|
|
|
396
416
|
position: 'relative',
|
|
397
417
|
userSelect: 'auto',
|
|
398
418
|
boxSizing: 'border-box'
|
|
399
|
-
}, '--ak-editor-table-gutter-padding', "".concat(gutterPadding, "px")), '--ak-editor-table-max-width', "
|
|
419
|
+
}, '--ak-editor-table-gutter-padding', "".concat(gutterPadding, "px")), '--ak-editor-table-max-width', "".concat(TABLE_MAX_WIDTH, "px")), '--ak-editor-table-min-width', "".concat(tableMinWidth, "px")), "minWidth", 'var(--ak-editor-table-min-width)'), "maxWidth", "min(calc(100cqw - var(--ak-editor-table-gutter-padding)), var(--ak-editor-table-max-width))"), "width", "min(calc(100cqw - var(--ak-editor-table-gutter-padding)), ".concat(tableWidthAttribute, ")"))
|
|
400
420
|
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
401
421
|
className: "resizer-hover-zone"
|
|
402
422
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -139,6 +139,18 @@ var baseStyles = (0, _react.css)((_css = {
|
|
|
139
139
|
}), (0, _defineProperty2.default)(_css, '& span[data-placeholder]', {
|
|
140
140
|
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")")
|
|
141
141
|
})));
|
|
142
|
+
var hideHeadingCopyLinkWrapperStyles = (0, _react.css)({
|
|
143
|
+
'& h1, & h2, & h3, & h4, & h5, & h6': (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
144
|
+
'&:focus-within': {
|
|
145
|
+
opacity: 1
|
|
146
|
+
}
|
|
147
|
+
}), "@media (hover: hover) and (pointer: fine)", (0, _defineProperty2.default)((0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
148
|
+
opacity: 0,
|
|
149
|
+
transition: "opacity 0.2s ease 0s"
|
|
150
|
+
}), '&:hover', (0, _defineProperty2.default)({}, ".".concat(_headingAnchor.HeadingAnchorWrapperClassName), {
|
|
151
|
+
opacity: 1
|
|
152
|
+
})))
|
|
153
|
+
});
|
|
142
154
|
var rendererFullPageStyles = (0, _react.css)({
|
|
143
155
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
144
156
|
maxWidth: "".concat(_editorSharedStyles.akEditorDefaultLayoutWidth, "px"),
|
|
@@ -1377,7 +1389,7 @@ var RendererStyleContainer = exports.RendererStyleContainer = function RendererS
|
|
|
1377
1389
|
'--ak-renderer-editor-font-heading-h6': "".concat((0, _ugcTokens.editorUGCToken)('editor.font.heading.h6')),
|
|
1378
1390
|
'--ak-renderer-editor-font-normal-text': "".concat((0, _ugcTokens.editorUGCToken)('editor.font.body'))
|
|
1379
1391
|
},
|
|
1380
|
-
css: [baseStyles, appearance === 'full-page' && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, appearance === 'full-width' && !(0, _table.isTableResizingEnabled)(appearance) && rendererFullWidthStylesForTableResizing, telepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, headingWithAlignmentStyles, ruleSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? paragraphSharedStylesWithEditorUGC : paragraphSharedStyles, listsSharedStyles, _browser.browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, tasksAndDecisionsStyles, smartCardStyles, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && smartCardStylesAvatarFix,
|
|
1392
|
+
css: [baseStyles, (0, _platformFeatureFlags.fg)('platform_hide_heading_anchor_wrapper_before_hover') && hideHeadingCopyLinkWrapperStyles, appearance === 'full-page' && rendererFullPageStyles, appearance === 'full-width' && rendererFullWidthStyles, appearance === 'full-width' && !(0, _table.isTableResizingEnabled)(appearance) && rendererFullWidthStylesForTableResizing, telepointerStyles, whitespaceSharedStyles, blockquoteSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? headingsSharedStylesWithEditorUGC : headingsSharedStyles, headingWithAlignmentStyles, ruleSharedStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? paragraphSharedStylesWithEditorUGC : paragraphSharedStyles, listsSharedStyles, _browser.browser.gecko && listsSharedStylesForGekko, indentationSharedStyles, blockMarksSharedStyles, codeMarkSharedStyles, shadowSharedStyle, dateSharedStyle, textColorStyles, backgroundColorStyles, tasksAndDecisionsStyles, smartCardStyles, (0, _platformFeatureFlags.fg)('platform-linking-visual-refresh-v1') && smartCardStylesAvatarFix,
|
|
1381
1393
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
1382
1394
|
(0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') && rendererAnnotationStyles,
|
|
1383
1395
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning, @atlaskit/platform/ensure-feature-flag-prefix
|
|
@@ -48,6 +48,7 @@ var _ValidationContext = require("./ValidationContext");
|
|
|
48
48
|
var _RendererStyleContainer = require("./RendererStyleContainer");
|
|
49
49
|
var _getBaseFontSize = require("./get-base-font-size");
|
|
50
50
|
var _rendererHelper = require("./rendererHelper");
|
|
51
|
+
var _useMemoFromPropsDerivative = require("./useMemoFromPropsDerivative");
|
|
51
52
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
52
53
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
53
54
|
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; }
|
|
@@ -59,7 +60,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
59
60
|
var NORMAL_SEVERITY_THRESHOLD = exports.NORMAL_SEVERITY_THRESHOLD = 2000;
|
|
60
61
|
var DEGRADED_SEVERITY_THRESHOLD = exports.DEGRADED_SEVERITY_THRESHOLD = 3000;
|
|
61
62
|
var packageName = "@atlaskit/renderer";
|
|
62
|
-
var packageVersion = "
|
|
63
|
+
var packageVersion = "115.0.0";
|
|
63
64
|
var setAsQueryContainerStyles = (0, _react2.css)({
|
|
64
65
|
containerName: 'ak-renderer-wrapper',
|
|
65
66
|
containerType: 'inline-size',
|
|
@@ -207,13 +208,14 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
207
208
|
exposure: true
|
|
208
209
|
}) ? fireAnalyticsEventNew : fireAnalyticsEventOld;
|
|
209
210
|
var deriveSerializerProps = (0, _react.useCallback)(function (props) {
|
|
211
|
+
var _props$startPos;
|
|
210
212
|
var stickyHeaders = props.stickyHeaders ? props.stickyHeaders === true ? {} : props.stickyHeaders : undefined;
|
|
211
213
|
var annotationProvider = props.annotationProvider;
|
|
212
214
|
var allowAnnotationsDraftMode = Boolean(annotationProvider && annotationProvider.inlineComment && annotationProvider.inlineComment.allowDraftMode);
|
|
213
215
|
var _createRendererContex = createRendererContext(props.featureFlags, props.isTopLevelRenderer),
|
|
214
216
|
featureFlags = _createRendererContex.featureFlags;
|
|
215
217
|
return {
|
|
216
|
-
startPos: props.startPos,
|
|
218
|
+
startPos: (_props$startPos = props.startPos) !== null && _props$startPos !== void 0 ? _props$startPos : 0,
|
|
217
219
|
providers: providerFactory,
|
|
218
220
|
eventHandlers: props.eventHandlers,
|
|
219
221
|
extensionHandlers: props.extensionHandlers,
|
|
@@ -252,20 +254,11 @@ var RendererFunctionalComponent = exports.RendererFunctionalComponent = function
|
|
|
252
254
|
allowTableResizing: props.UNSTABLE_allowTableResizing
|
|
253
255
|
};
|
|
254
256
|
}, [createRendererContext, providerFactory, _fireAnalyticsEvent]);
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
if ((0, _platformFeatureFlags.fg)('cc_complexit_fe_progressive_adf_rendering')) {
|
|
261
|
-
var _props$createSerializ;
|
|
262
|
-
var newSerializer = (_props$createSerializ = props.createSerializer) === null || _props$createSerializ === void 0 ? void 0 : _props$createSerializ.call(props, init);
|
|
263
|
-
if (newSerializer) {
|
|
264
|
-
return newSerializer;
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
return new _.ReactSerializer(init);
|
|
268
|
-
}, [deriveSerializerProps, props]);
|
|
257
|
+
|
|
258
|
+
// Abstract out the logic into its own function
|
|
259
|
+
var serializer = (0, _useMemoFromPropsDerivative.useMemoFromPropsDerivative)(function (serializerProps) {
|
|
260
|
+
return new _.ReactSerializer(serializerProps);
|
|
261
|
+
}, deriveSerializerProps, props);
|
|
269
262
|
var localRef = (0, _react.useRef)(null);
|
|
270
263
|
var editorRef = props.innerRef || localRef;
|
|
271
264
|
var id = (0, _react.useMemo)(function () {
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useMemoFromPropsDerivative = useMemoFromPropsDerivative;
|
|
8
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
|
+
var _react = require("react");
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
+
function useMemoFromPropsDerivative(factory, propsDerivator, props) {
|
|
12
|
+
// cache the last set of props
|
|
13
|
+
var prev = (0, _react.useRef)(props);
|
|
14
|
+
var prevFactory = (0, _react.useRef)(null);
|
|
15
|
+
return (0, _react.useMemo)(function () {
|
|
16
|
+
var init = propsDerivator(props);
|
|
17
|
+
if ((0, _platformFeatureFlags.fg)('cc_complexit_fe_reduce_fragment_serialization')) {
|
|
18
|
+
// check if the serializer is already created
|
|
19
|
+
var shouldCreate = !prevFactory.current;
|
|
20
|
+
// check each prop to see if value has changed and also check if the number of props has changed
|
|
21
|
+
if (prev.current !== props) {
|
|
22
|
+
// @ts-ignore - error TS2769: No overload matches this call.
|
|
23
|
+
var propsEntries = Object.entries(props);
|
|
24
|
+
// Break these into its own const to skip TS checks.
|
|
25
|
+
// @ts-ignore - error TS2769: No overload matches this call.
|
|
26
|
+
var isLengthDifferent = propsEntries.length !== Object.keys(prev.current).length;
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
var isValueDifferent = propsEntries.some(function (_ref) {
|
|
29
|
+
var _ref2 = (0, _slicedToArray2.default)(_ref, 2),
|
|
30
|
+
key = _ref2[0],
|
|
31
|
+
prop = _ref2[1];
|
|
32
|
+
return prev.current[key] !== prop;
|
|
33
|
+
});
|
|
34
|
+
shouldCreate = isLengthDifferent || isValueDifferent;
|
|
35
|
+
}
|
|
36
|
+
prev.current = props;
|
|
37
|
+
// If first time or any prop value has changed, create a new serializer
|
|
38
|
+
if (shouldCreate) {
|
|
39
|
+
prevFactory.current = factory(init);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// If progressive rendering is enabled, create a new serializer
|
|
44
|
+
if ((0, _platformFeatureFlags.fg)('cc_complexit_fe_progressive_adf_rendering')) {
|
|
45
|
+
var _props$createSerializ;
|
|
46
|
+
// @ts-ignore - erorr TS2339 Property 'createSerializer' does not exist on type 'Props'.
|
|
47
|
+
var newSerializer = (_props$createSerializ = props.createSerializer) === null || _props$createSerializ === void 0 ? void 0 : _props$createSerializ.call(props, init);
|
|
48
|
+
if (newSerializer) {
|
|
49
|
+
return newSerializer;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return (0, _platformFeatureFlags.fg)('cc_complexit_fe_reduce_fragment_serialization') ? prevFactory.current : factory(init);
|
|
53
|
+
},
|
|
54
|
+
// To keep deps consistent, here disable the exhaustive-deps rule to drop factory from the deps array
|
|
55
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
56
|
+
[propsDerivator, props]);
|
|
57
|
+
}
|
package/dist/es2019/i18n/cs.js
CHANGED
|
@@ -15,6 +15,5 @@ export default {
|
|
|
15
15
|
'fabric.editor.headingLink.failedToCopy': 'Kopírování se nezdařilo',
|
|
16
16
|
'fabric.editor.headingLink.noneSortingLabel': 'Žádné',
|
|
17
17
|
'fabric.editor.inlineComment.marker.end': 'konec vloženého komentáře',
|
|
18
|
-
'fabric.editor.inlineComment.marker.start': 'začátek vloženého komentáře'
|
|
19
|
-
'fabric.editor.status.accessibilityLabel': 'stav:'
|
|
18
|
+
'fabric.editor.inlineComment.marker.start': 'začátek vloženého komentáře'
|
|
20
19
|
};
|
package/dist/es2019/i18n/da.js
CHANGED
|
@@ -15,6 +15,5 @@ export default {
|
|
|
15
15
|
'fabric.editor.headingLink.failedToCopy': 'Kopiering mislykkedes',
|
|
16
16
|
'fabric.editor.headingLink.noneSortingLabel': 'ingen',
|
|
17
17
|
'fabric.editor.inlineComment.marker.end': 'slut på indlejret kommentar',
|
|
18
|
-
'fabric.editor.inlineComment.marker.start': 'start på indlejret kommentar'
|
|
19
|
-
'fabric.editor.status.accessibilityLabel': 'status:'
|
|
18
|
+
'fabric.editor.inlineComment.marker.start': 'start på indlejret kommentar'
|
|
20
19
|
};
|
package/dist/es2019/i18n/de.js
CHANGED
|
@@ -15,6 +15,5 @@ export default {
|
|
|
15
15
|
'fabric.editor.headingLink.failedToCopy': 'Kopieren ist fehlgeschlagen',
|
|
16
16
|
'fabric.editor.headingLink.noneSortingLabel': 'Keine',
|
|
17
17
|
'fabric.editor.inlineComment.marker.end': 'Ende des Inline-Kommentars',
|
|
18
|
-
'fabric.editor.inlineComment.marker.start': 'Beginn des Inline-Kommentars'
|
|
19
|
-
'fabric.editor.status.accessibilityLabel': 'Status:'
|
|
18
|
+
'fabric.editor.inlineComment.marker.start': 'Beginn des Inline-Kommentars'
|
|
20
19
|
};
|