@atlaskit/renderer 123.2.0 → 123.2.2

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.
Files changed (188) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/afm-cc/tsconfig.json +3 -0
  3. package/afm-dev-agents/tsconfig.json +3 -0
  4. package/afm-jira/tsconfig.json +3 -0
  5. package/afm-passionfruit/tsconfig.json +3 -0
  6. package/afm-post-office/tsconfig.json +3 -0
  7. package/afm-rovo-extension/tsconfig.json +3 -0
  8. package/afm-townsquare/tsconfig.json +3 -0
  9. package/dist/cjs/i18n/cs.js +4 -12
  10. package/dist/cjs/i18n/da.js +4 -12
  11. package/dist/cjs/i18n/de.js +4 -12
  12. package/dist/cjs/i18n/en.js +4 -12
  13. package/dist/cjs/i18n/en_GB.js +4 -12
  14. package/dist/cjs/i18n/en_ZZ.js +4 -12
  15. package/dist/cjs/i18n/es.js +4 -12
  16. package/dist/cjs/i18n/fi.js +4 -12
  17. package/dist/cjs/i18n/fr.js +4 -12
  18. package/dist/cjs/i18n/hr.js +4 -12
  19. package/dist/cjs/i18n/hu.js +4 -12
  20. package/dist/cjs/i18n/it.js +4 -12
  21. package/dist/cjs/i18n/ja.js +4 -12
  22. package/dist/cjs/i18n/ko.js +4 -12
  23. package/dist/cjs/i18n/nb.js +4 -12
  24. package/dist/cjs/i18n/nl.js +4 -12
  25. package/dist/cjs/i18n/pl.js +4 -12
  26. package/dist/cjs/i18n/pt_BR.js +4 -12
  27. package/dist/cjs/i18n/ru.js +4 -12
  28. package/dist/cjs/i18n/sl.js +4 -12
  29. package/dist/cjs/i18n/sr_RS.js +4 -12
  30. package/dist/cjs/i18n/sr_YR.js +4 -12
  31. package/dist/cjs/i18n/sv.js +4 -12
  32. package/dist/cjs/i18n/th.js +4 -12
  33. package/dist/cjs/i18n/tr.js +4 -12
  34. package/dist/cjs/i18n/uk.js +4 -12
  35. package/dist/cjs/i18n/vi.js +4 -12
  36. package/dist/cjs/i18n/zh.js +4 -12
  37. package/dist/cjs/i18n/zh_TW.js +4 -12
  38. package/dist/cjs/react/nodes/blockCard.js +6 -3
  39. package/dist/cjs/react/nodes/bodiedExtension.js +4 -3
  40. package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
  41. package/dist/cjs/react/nodes/multiBodiedExtension.js +2 -1
  42. package/dist/cjs/react/nodes/panel.js +1 -1
  43. package/dist/cjs/ui/Renderer/RendererStyleContainer.js +10 -10
  44. package/dist/cjs/ui/Renderer/index.js +1 -1
  45. package/dist/cjs/ui/annotations/draft/component.js +1 -1
  46. package/dist/cjs/ui/annotations/element/mark.js +4 -4
  47. package/dist/cjs/ui/hooks/useScrollToLocalId.js +78 -7
  48. package/dist/es2019/i18n/cs.js +4 -12
  49. package/dist/es2019/i18n/da.js +4 -12
  50. package/dist/es2019/i18n/de.js +4 -12
  51. package/dist/es2019/i18n/en.js +4 -12
  52. package/dist/es2019/i18n/en_GB.js +4 -12
  53. package/dist/es2019/i18n/en_ZZ.js +4 -12
  54. package/dist/es2019/i18n/es.js +4 -12
  55. package/dist/es2019/i18n/fi.js +4 -12
  56. package/dist/es2019/i18n/fr.js +4 -12
  57. package/dist/es2019/i18n/hr.js +4 -12
  58. package/dist/es2019/i18n/hu.js +4 -12
  59. package/dist/es2019/i18n/it.js +4 -12
  60. package/dist/es2019/i18n/ja.js +4 -12
  61. package/dist/es2019/i18n/ko.js +4 -12
  62. package/dist/es2019/i18n/nb.js +4 -12
  63. package/dist/es2019/i18n/nl.js +4 -12
  64. package/dist/es2019/i18n/pl.js +4 -12
  65. package/dist/es2019/i18n/pt_BR.js +4 -12
  66. package/dist/es2019/i18n/ru.js +4 -12
  67. package/dist/es2019/i18n/sl.js +4 -12
  68. package/dist/es2019/i18n/sr_RS.js +4 -12
  69. package/dist/es2019/i18n/sr_YR.js +4 -12
  70. package/dist/es2019/i18n/sv.js +4 -12
  71. package/dist/es2019/i18n/th.js +4 -12
  72. package/dist/es2019/i18n/tr.js +4 -12
  73. package/dist/es2019/i18n/uk.js +4 -12
  74. package/dist/es2019/i18n/vi.js +4 -12
  75. package/dist/es2019/i18n/zh.js +4 -12
  76. package/dist/es2019/i18n/zh_TW.js +4 -12
  77. package/dist/es2019/react/nodes/blockCard.js +6 -3
  78. package/dist/es2019/react/nodes/bodiedExtension.js +4 -3
  79. package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
  80. package/dist/es2019/react/nodes/multiBodiedExtension.js +2 -1
  81. package/dist/es2019/react/nodes/panel.js +1 -1
  82. package/dist/es2019/ui/Renderer/RendererStyleContainer.js +10 -10
  83. package/dist/es2019/ui/Renderer/index.js +1 -1
  84. package/dist/es2019/ui/annotations/draft/component.js +1 -1
  85. package/dist/es2019/ui/annotations/element/mark.js +4 -4
  86. package/dist/es2019/ui/hooks/useScrollToLocalId.js +78 -7
  87. package/dist/esm/i18n/cs.js +4 -12
  88. package/dist/esm/i18n/da.js +4 -12
  89. package/dist/esm/i18n/de.js +4 -12
  90. package/dist/esm/i18n/en.js +4 -12
  91. package/dist/esm/i18n/en_GB.js +4 -12
  92. package/dist/esm/i18n/en_ZZ.js +4 -12
  93. package/dist/esm/i18n/es.js +4 -12
  94. package/dist/esm/i18n/fi.js +4 -12
  95. package/dist/esm/i18n/fr.js +4 -12
  96. package/dist/esm/i18n/hr.js +4 -12
  97. package/dist/esm/i18n/hu.js +4 -12
  98. package/dist/esm/i18n/it.js +4 -12
  99. package/dist/esm/i18n/ja.js +4 -12
  100. package/dist/esm/i18n/ko.js +4 -12
  101. package/dist/esm/i18n/nb.js +4 -12
  102. package/dist/esm/i18n/nl.js +4 -12
  103. package/dist/esm/i18n/pl.js +4 -12
  104. package/dist/esm/i18n/pt_BR.js +4 -12
  105. package/dist/esm/i18n/ru.js +4 -12
  106. package/dist/esm/i18n/sl.js +4 -12
  107. package/dist/esm/i18n/sr_RS.js +4 -12
  108. package/dist/esm/i18n/sr_YR.js +4 -12
  109. package/dist/esm/i18n/sv.js +4 -12
  110. package/dist/esm/i18n/th.js +4 -12
  111. package/dist/esm/i18n/tr.js +4 -12
  112. package/dist/esm/i18n/uk.js +4 -12
  113. package/dist/esm/i18n/vi.js +4 -12
  114. package/dist/esm/i18n/zh.js +4 -12
  115. package/dist/esm/i18n/zh_TW.js +4 -12
  116. package/dist/esm/react/nodes/blockCard.js +6 -3
  117. package/dist/esm/react/nodes/bodiedExtension.js +4 -3
  118. package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +1 -1
  119. package/dist/esm/react/nodes/multiBodiedExtension.js +2 -1
  120. package/dist/esm/react/nodes/panel.js +1 -1
  121. package/dist/esm/ui/Renderer/RendererStyleContainer.js +10 -10
  122. package/dist/esm/ui/Renderer/index.js +1 -1
  123. package/dist/esm/ui/annotations/draft/component.js +1 -1
  124. package/dist/esm/ui/annotations/element/mark.js +4 -4
  125. package/dist/esm/ui/hooks/useScrollToLocalId.js +78 -7
  126. package/dist/types/i18n/cs.d.ts +2 -12
  127. package/dist/types/i18n/da.d.ts +2 -12
  128. package/dist/types/i18n/de.d.ts +2 -12
  129. package/dist/types/i18n/en.d.ts +2 -12
  130. package/dist/types/i18n/en_GB.d.ts +2 -12
  131. package/dist/types/i18n/en_ZZ.d.ts +2 -12
  132. package/dist/types/i18n/es.d.ts +2 -12
  133. package/dist/types/i18n/fi.d.ts +2 -12
  134. package/dist/types/i18n/fr.d.ts +2 -12
  135. package/dist/types/i18n/hr.d.ts +2 -12
  136. package/dist/types/i18n/hu.d.ts +2 -12
  137. package/dist/types/i18n/it.d.ts +2 -12
  138. package/dist/types/i18n/ja.d.ts +2 -12
  139. package/dist/types/i18n/ko.d.ts +2 -12
  140. package/dist/types/i18n/nb.d.ts +2 -12
  141. package/dist/types/i18n/nl.d.ts +2 -12
  142. package/dist/types/i18n/pl.d.ts +2 -12
  143. package/dist/types/i18n/pt_BR.d.ts +2 -12
  144. package/dist/types/i18n/ru.d.ts +2 -12
  145. package/dist/types/i18n/sl.d.ts +2 -12
  146. package/dist/types/i18n/sr_RS.d.ts +2 -12
  147. package/dist/types/i18n/sr_YR.d.ts +2 -12
  148. package/dist/types/i18n/sv.d.ts +2 -12
  149. package/dist/types/i18n/th.d.ts +2 -12
  150. package/dist/types/i18n/tr.d.ts +2 -12
  151. package/dist/types/i18n/uk.d.ts +2 -12
  152. package/dist/types/i18n/vi.d.ts +2 -12
  153. package/dist/types/i18n/zh.d.ts +2 -12
  154. package/dist/types/i18n/zh_TW.d.ts +2 -12
  155. package/dist/types/react/nodes/blockCard.d.ts +1 -0
  156. package/dist/types/react/nodes/index.d.ts +1 -0
  157. package/dist/types-ts4.5/i18n/cs.d.ts +2 -12
  158. package/dist/types-ts4.5/i18n/da.d.ts +2 -12
  159. package/dist/types-ts4.5/i18n/de.d.ts +2 -12
  160. package/dist/types-ts4.5/i18n/en.d.ts +2 -12
  161. package/dist/types-ts4.5/i18n/en_GB.d.ts +2 -12
  162. package/dist/types-ts4.5/i18n/en_ZZ.d.ts +2 -12
  163. package/dist/types-ts4.5/i18n/es.d.ts +2 -12
  164. package/dist/types-ts4.5/i18n/fi.d.ts +2 -12
  165. package/dist/types-ts4.5/i18n/fr.d.ts +2 -12
  166. package/dist/types-ts4.5/i18n/hr.d.ts +2 -12
  167. package/dist/types-ts4.5/i18n/hu.d.ts +2 -12
  168. package/dist/types-ts4.5/i18n/it.d.ts +2 -12
  169. package/dist/types-ts4.5/i18n/ja.d.ts +2 -12
  170. package/dist/types-ts4.5/i18n/ko.d.ts +2 -12
  171. package/dist/types-ts4.5/i18n/nb.d.ts +2 -12
  172. package/dist/types-ts4.5/i18n/nl.d.ts +2 -12
  173. package/dist/types-ts4.5/i18n/pl.d.ts +2 -12
  174. package/dist/types-ts4.5/i18n/pt_BR.d.ts +2 -12
  175. package/dist/types-ts4.5/i18n/ru.d.ts +2 -12
  176. package/dist/types-ts4.5/i18n/sl.d.ts +2 -12
  177. package/dist/types-ts4.5/i18n/sr_RS.d.ts +2 -12
  178. package/dist/types-ts4.5/i18n/sr_YR.d.ts +2 -12
  179. package/dist/types-ts4.5/i18n/sv.d.ts +2 -12
  180. package/dist/types-ts4.5/i18n/th.d.ts +2 -12
  181. package/dist/types-ts4.5/i18n/tr.d.ts +2 -12
  182. package/dist/types-ts4.5/i18n/uk.d.ts +2 -12
  183. package/dist/types-ts4.5/i18n/vi.d.ts +2 -12
  184. package/dist/types-ts4.5/i18n/zh.d.ts +2 -12
  185. package/dist/types-ts4.5/i18n/zh_TW.d.ts +2 -12
  186. package/dist/types-ts4.5/react/nodes/blockCard.d.ts +1 -0
  187. package/dist/types-ts4.5/react/nodes/index.d.ts +1 -0
  188. package/package.json +5 -3
@@ -1,19 +1,11 @@
1
1
  /* prettier-ignore */
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
3
  /**
3
4
  * NOTE:
4
5
  *
5
6
  * This file is automatically generated by Traduki 2.0.
6
7
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
8
  */
8
- //Serbian (Cyrillic) [sr-YR]
9
- export default {
10
- 'fabric.editor.headingLink.ascSortingLabel': 'растући',
11
- 'fabric.editor.headingLink.copied': 'Копирано!',
12
- 'fabric.editor.headingLink.copyAnchorLink': 'Копирај линк наслова',
13
- 'fabric.editor.headingLink.copyAriaLabel': 'Копирај',
14
- 'fabric.editor.headingLink.descSortingLabel': 'опадајући',
15
- 'fabric.editor.headingLink.failedToCopy': 'Копирање није успело',
16
- 'fabric.editor.headingLink.noneSortingLabel': 'ништа',
17
- 'fabric.editor.inlineComment.marker.end': 'крај уметнутог коментара',
18
- 'fabric.editor.inlineComment.marker.start': 'почетак уметнутог коментара'
19
- };
9
+
10
+ import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/sr_YR';
11
+ export default translations;
@@ -1,19 +1,11 @@
1
1
  /* prettier-ignore */
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
3
  /**
3
4
  * NOTE:
4
5
  *
5
6
  * This file is automatically generated by Traduki 2.0.
6
7
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
8
  */
8
- //Swedish
9
- export default {
10
- 'fabric.editor.headingLink.ascSortingLabel': 'stigande',
11
- 'fabric.editor.headingLink.copied': 'Kopierad!',
12
- 'fabric.editor.headingLink.copyAnchorLink': 'Kopiera länk till rubrik',
13
- 'fabric.editor.headingLink.copyAriaLabel': 'Kopiera',
14
- 'fabric.editor.headingLink.descSortingLabel': 'fallande',
15
- 'fabric.editor.headingLink.failedToCopy': 'Kopiering misslyckades',
16
- 'fabric.editor.headingLink.noneSortingLabel': 'Ingen',
17
- 'fabric.editor.inlineComment.marker.end': 'slut på inlinekommentarer',
18
- 'fabric.editor.inlineComment.marker.start': 'start på inlinekommentarer'
19
- };
9
+
10
+ import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/sv';
11
+ export default translations;
@@ -1,19 +1,11 @@
1
1
  /* prettier-ignore */
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
3
  /**
3
4
  * NOTE:
4
5
  *
5
6
  * This file is automatically generated by Traduki 2.0.
6
7
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
8
  */
8
- //Thai (Thailand)
9
- export default {
10
- 'fabric.editor.headingLink.ascSortingLabel': 'จากน้อยไปหามาก',
11
- 'fabric.editor.headingLink.copied': 'คัดลอกแล้ว!',
12
- 'fabric.editor.headingLink.copyAnchorLink': 'คัดลอกลิงก์ที่เชื่อมไปยังหัวเรื่อง',
13
- 'fabric.editor.headingLink.copyAriaLabel': 'คัดลอก',
14
- 'fabric.editor.headingLink.descSortingLabel': 'จากมากไปหาน้อย',
15
- 'fabric.editor.headingLink.failedToCopy': 'การคัดลอกไม่สำเร็จ',
16
- 'fabric.editor.headingLink.noneSortingLabel': 'ไม่มี',
17
- 'fabric.editor.inlineComment.marker.end': 'สิ้นสุดความคิดเห็นในบรรทัด',
18
- 'fabric.editor.inlineComment.marker.start': 'เริ่มต้นความคิดเห็นในบรรทัด'
19
- };
9
+
10
+ import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/th';
11
+ export default translations;
@@ -1,19 +1,11 @@
1
1
  /* prettier-ignore */
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
3
  /**
3
4
  * NOTE:
4
5
  *
5
6
  * This file is automatically generated by Traduki 2.0.
6
7
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
8
  */
8
- //Turkish (Turkey)
9
- export default {
10
- 'fabric.editor.headingLink.ascSortingLabel': 'artan',
11
- 'fabric.editor.headingLink.copied': 'Kopyalandı!',
12
- 'fabric.editor.headingLink.copyAnchorLink': 'Başlık bağlantısını kopyala',
13
- 'fabric.editor.headingLink.copyAriaLabel': 'Kopyala',
14
- 'fabric.editor.headingLink.descSortingLabel': 'azalan',
15
- 'fabric.editor.headingLink.failedToCopy': 'Kopyalama işlemi başarısız oldu',
16
- 'fabric.editor.headingLink.noneSortingLabel': 'yok',
17
- 'fabric.editor.inlineComment.marker.end': 'satır içi yorum sonu',
18
- 'fabric.editor.inlineComment.marker.start': 'satır içi yorum başlangıcı'
19
- };
9
+
10
+ import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/tr';
11
+ export default translations;
@@ -1,19 +1,11 @@
1
1
  /* prettier-ignore */
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
3
  /**
3
4
  * NOTE:
4
5
  *
5
6
  * This file is automatically generated by Traduki 2.0.
6
7
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
8
  */
8
- //Ukrainian (Ukraine)
9
- export default {
10
- 'fabric.editor.headingLink.ascSortingLabel': 'за зростанням',
11
- 'fabric.editor.headingLink.copied': 'Скопійовано',
12
- 'fabric.editor.headingLink.copyAnchorLink': 'Скопіювати посилання на заголовок',
13
- 'fabric.editor.headingLink.copyAriaLabel': 'Копіювати',
14
- 'fabric.editor.headingLink.descSortingLabel': 'за спаданням',
15
- 'fabric.editor.headingLink.failedToCopy': 'Не вдалося скопіювати',
16
- 'fabric.editor.headingLink.noneSortingLabel': 'Немає',
17
- 'fabric.editor.inlineComment.marker.end': 'кінець вбудованого коментаря',
18
- 'fabric.editor.inlineComment.marker.start': 'початок вбудованого коментаря'
19
- };
9
+
10
+ import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/uk';
11
+ export default translations;
@@ -1,19 +1,11 @@
1
1
  /* prettier-ignore */
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
3
  /**
3
4
  * NOTE:
4
5
  *
5
6
  * This file is automatically generated by Traduki 2.0.
6
7
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
8
  */
8
- //Vietnamese (Vietnam)
9
- export default {
10
- 'fabric.editor.headingLink.ascSortingLabel': 'tăng dần',
11
- 'fabric.editor.headingLink.copied': 'Đã sao chép!',
12
- 'fabric.editor.headingLink.copyAnchorLink': 'Sao chép liên kết vào tiêu đề',
13
- 'fabric.editor.headingLink.copyAriaLabel': 'Sao chép',
14
- 'fabric.editor.headingLink.descSortingLabel': 'giảm dần',
15
- 'fabric.editor.headingLink.failedToCopy': 'Sao chép không thành công',
16
- 'fabric.editor.headingLink.noneSortingLabel': 'không có',
17
- 'fabric.editor.inlineComment.marker.end': 'bình luận nội tuyến kết thúc',
18
- 'fabric.editor.inlineComment.marker.start': 'bình luận nội tuyến bắt đầu'
19
- };
9
+
10
+ import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/vi';
11
+ export default translations;
@@ -1,19 +1,11 @@
1
1
  /* prettier-ignore */
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
3
  /**
3
4
  * NOTE:
4
5
  *
5
6
  * This file is automatically generated by Traduki 2.0.
6
7
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
8
  */
8
- //Chinese (Simplified)
9
- export default {
10
- 'fabric.editor.headingLink.ascSortingLabel': '升序',
11
- 'fabric.editor.headingLink.copied': '已复制!',
12
- 'fabric.editor.headingLink.copyAnchorLink': '复制标题链接',
13
- 'fabric.editor.headingLink.copyAriaLabel': '复制',
14
- 'fabric.editor.headingLink.descSortingLabel': '降序',
15
- 'fabric.editor.headingLink.failedToCopy': '复制失败',
16
- 'fabric.editor.headingLink.noneSortingLabel': '无',
17
- 'fabric.editor.inlineComment.marker.end': '内联评论结束',
18
- 'fabric.editor.inlineComment.marker.start': '内联评论开始'
19
- };
9
+
10
+ import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/zh';
11
+ export default translations;
@@ -1,19 +1,11 @@
1
1
  /* prettier-ignore */
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
3
  /**
3
4
  * NOTE:
4
5
  *
5
6
  * This file is automatically generated by Traduki 2.0.
6
7
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
8
  */
8
- //Chinese (Traditional)
9
- export default {
10
- 'fabric.editor.headingLink.ascSortingLabel': '遞增',
11
- 'fabric.editor.headingLink.copied': '已複製!',
12
- 'fabric.editor.headingLink.copyAnchorLink': '複製標題連結',
13
- 'fabric.editor.headingLink.copyAriaLabel': '複製',
14
- 'fabric.editor.headingLink.descSortingLabel': '遞減',
15
- 'fabric.editor.headingLink.failedToCopy': '複製失敗',
16
- 'fabric.editor.headingLink.noneSortingLabel': '無',
17
- 'fabric.editor.inlineComment.marker.end': '內嵌留言結束',
18
- 'fabric.editor.inlineComment.marker.start': '內嵌留言開始'
19
- };
9
+
10
+ import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/zh_TW';
11
+ export default translations;
@@ -19,7 +19,7 @@ import { calcBreakoutWidth, canRenderDatasource } from '@atlaskit/editor-common/
19
19
  import { usePortal } from '../../ui/Renderer/PortalContext';
20
20
  const datasourceContainerStyle = css({
21
21
  borderRadius: `${"var(--ds-radius-large, 8px)"}`,
22
- border: `1px solid ${`var(--ds-border, ${N40})`}`,
22
+ border: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-border, ${N40})`}`,
23
23
  overflow: 'hidden',
24
24
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
25
25
  marginLeft: '50%',
@@ -32,7 +32,8 @@ export default function BlockCard(props) {
32
32
  data,
33
33
  eventHandlers,
34
34
  smartLinks,
35
- isNodeNested
35
+ isNodeNested,
36
+ localId
36
37
  } = props;
37
38
  const portal = usePortal(props);
38
39
  const {
@@ -95,6 +96,7 @@ export default function BlockCard(props) {
95
96
  }) => jsx("div", {
96
97
  css: datasourceContainerStyle,
97
98
  "data-testid": "renderer-datasource-table",
99
+ "data-local-id": localId,
98
100
  style: {
99
101
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
100
102
  width: isNodeNested ? '100%' : calcBreakoutWidth(layout, width)
@@ -142,7 +144,8 @@ export default function BlockCard(props) {
142
144
  className: "blockCardView-content-wrap",
143
145
  "data-block-card": true,
144
146
  "data-card-data": data ? JSON.stringify(data) : undefined,
145
- "data-card-url": url
147
+ "data-card-url": url,
148
+ "data-local-id": localId
146
149
  }, jsx(CardErrorBoundary, _extends({
147
150
  unsupportedComponent: UnsupportedBlock
148
151
  // Ignored via go/ees005
@@ -34,7 +34,8 @@ const BodiedExtension = props => {
34
34
  extensionKey,
35
35
  extensionType,
36
36
  parameters,
37
- extensionViewportSizes
37
+ extensionViewportSizes,
38
+ localId
38
39
  } = props;
39
40
  const {
40
41
  createAnalyticsEvent
@@ -65,7 +66,7 @@ const BodiedExtension = props => {
65
66
  // Return the content directly if it's a valid JSX.Element
66
67
  return renderExtension(result, layout, {
67
68
  isTopLevel: path.length < 1
68
- }, removeOverflow, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes);
69
+ }, removeOverflow, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes, undefined, localId);
69
70
  }
70
71
  } catch (e) {
71
72
  /** We don't want this error to block renderer */
@@ -75,7 +76,7 @@ const BodiedExtension = props => {
75
76
  // Always return default content if anything goes wrong
76
77
  return renderExtension(children, layout, {
77
78
  isTopLevel: path.length < 1
78
- }, removeOverflow, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes);
79
+ }, removeOverflow, parameters === null || parameters === void 0 ? void 0 : parameters.extensionId, extensionViewportSizes, undefined, localId);
79
80
  }))));
80
81
  };
81
82
  export default BodiedExtension;
@@ -25,7 +25,7 @@ const codeBlockButtonsStyle = css({
25
25
  button: {
26
26
  height: '32px',
27
27
  width: '32px',
28
- border: `2px solid ${`var(--ds-border, ${N0})`}`,
28
+ border: `${"var(--ds-border-width-selected, 2px)"} solid ${`var(--ds-border, ${N0})`}`,
29
29
  borderRadius: "var(--ds-radius-small, 4px)",
30
30
  marginLeft: "var(--ds-space-050, 4px)",
31
31
  padding: "var(--ds-space-025, 2px)",
@@ -129,7 +129,8 @@ const MultiBodiedExtension = props => {
129
129
  "data-testid": "multiBodiedExtension--container",
130
130
  "data-multiBodiedExtension-container": true,
131
131
  "data-active-child-index": activeChildIndex,
132
- "data-layout": layout
132
+ "data-layout": layout,
133
+ "data-local-id": localId
133
134
  }, jsx(WidthConsumer, null, ({
134
135
  width
135
136
  }) => jsx(MultiBodiedExtensionWrapper, {
@@ -148,7 +148,7 @@ const panelNestedIconStyles = css({
148
148
  const nestedPanelStyles = css({
149
149
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
150
150
  '.ak-editor-panel__content .ak-editor-panel': {
151
- border: `1px solid ${"var(--ds-border, #091E42)"}`
151
+ border: `${"var(--ds-border-width, 1px)"} solid ${"var(--ds-border, #091E42)"}`
152
152
  }
153
153
  });
154
154
  const panelCustomBackground = css({
@@ -307,7 +307,7 @@ const telepointerStyles = css({
307
307
  paddingLeft: '1.5px',
308
308
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
309
309
  lineHeight: 'initial',
310
- borderRadius: '0px 2px 2px 0px',
310
+ borderRadius: `0px ${"var(--ds-radius-xsmall, 2px)"} ${"var(--ds-radius-xsmall, 2px)"} 0px`,
311
311
  color: "var(--ds-text-inverse, white)",
312
312
  backgroundColor: "var(--ds-background-brand-bold, #0C66E4)"
313
313
  }
@@ -367,7 +367,7 @@ const blockquoteSharedStyles = css({
367
367
  display: 'inline-block',
368
368
  paddingLeft: "var(--ds-space-200, 16px)",
369
369
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
370
- borderLeft: `2px solid ${`var(--ds-border, ${akEditorBlockquoteBorderColor})`}`,
370
+ borderLeft: `${"var(--ds-border-width-selected, 2px)"} solid ${`var(--ds-border, ${akEditorBlockquoteBorderColor})`}`,
371
371
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
372
372
  margin: `${blockNodesVerticalMargin} 0 0 0`,
373
373
  marginRight: 0,
@@ -1377,7 +1377,7 @@ const tableRendererHeaderStylesForTableCellOnly = css({
1377
1377
  minWidth: `${tableCellMinWidth}px`,
1378
1378
  fontWeight: "var(--ds-font-weight-regular, 400)",
1379
1379
  verticalAlign: 'top',
1380
- border: `1px solid ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`}`,
1380
+ border: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`}`,
1381
1381
  borderRightWidth: 0,
1382
1382
  borderBottomWidth: 0,
1383
1383
  padding: "var(--ds-space-100, 8px)",
@@ -1599,7 +1599,7 @@ const rendererTableColumnStylesOld = css({
1599
1599
  'table[data-number-column="true"]': {
1600
1600
  [`.${RendererCssClassName.NUMBER_COLUMN}`]: {
1601
1601
  backgroundColor: `${`var(--ds-background-neutral, ${akEditorTableToolbar})`}`,
1602
- borderRight: `1px solid
1602
+ borderRight: `${"var(--ds-border-width, 1px)"} solid
1603
1603
  ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`}`,
1604
1604
  width: `${akEditorTableNumberColumnWidth}px`,
1605
1605
  textAlign: 'center',
@@ -1618,7 +1618,7 @@ const rendererTableColumnStyles = css({
1618
1618
  'table[data-number-column="true"]': {
1619
1619
  [`.${RendererCssClassName.NUMBER_COLUMN}`]: {
1620
1620
  backgroundColor: `${"var(--ds-background-accent-gray-subtlest, #F1F2F4)"}`,
1621
- borderRight: `1px solid
1621
+ borderRight: `${"var(--ds-border-width, 1px)"} solid
1622
1622
  ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`}`,
1623
1623
  width: `${akEditorTableNumberColumnWidth}px`,
1624
1624
  textAlign: 'center',
@@ -1659,8 +1659,8 @@ const stickyHeaderStyles = css({
1659
1659
  display: 'flex',
1660
1660
  overflow: 'hidden',
1661
1661
  zIndex: `${akEditorStickyHeaderZIndex}`,
1662
- borderRight: `1px solid ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`}`,
1663
- borderBottom: `1px solid ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`}`,
1662
+ borderRight: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`}`,
1663
+ borderBottom: `${"var(--ds-border-width, 1px)"} solid ${`var(--ds-background-accent-gray-subtler, ${akEditorTableBorder})`}`,
1664
1664
  /* this is to compensate for the table border */
1665
1665
  transform: 'translateX(-1px)'
1666
1666
  },
@@ -1845,7 +1845,7 @@ const columnLayoutResponsiveRendererStyles = css({
1845
1845
  const rendererAnnotationStyles = css({
1846
1846
  "& [data-mark-type='annotation'][data-mark-annotation-state='active'] [data-annotation-mark], & [data-annotation-draft-mark][data-annotation-inline-node]": {
1847
1847
  background: `var(--ds-background-accent-yellow-subtler, ${Y75})`,
1848
- borderBottom: `2px solid ${`var(--ds-border-accent-yellow, ${Y300})`}`,
1848
+ borderBottom: `${"var(--ds-border-width-selected, 2px)"} solid ${`var(--ds-border-accent-yellow, ${Y300})`}`,
1849
1849
  boxShadow: `var(--ds-shadow-overlay, ${`1px 2px 3px ${N60A}, -1px 2px 3px ${N60A}`})`,
1850
1850
  cursor: 'pointer',
1851
1851
  padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-025, 2px)"}`
@@ -1854,9 +1854,9 @@ const rendererAnnotationStyles = css({
1854
1854
  const rendererAnnotationStylesCommentHeightFix = css({
1855
1855
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
1856
1856
  '& [data-annotation-draft-mark][data-annotation-inline-node]': {
1857
- borderBottom: '2px solid transparent',
1857
+ borderBottom: `${"var(--ds-border-width-selected, 2px)"} solid transparent`,
1858
1858
  cursor: 'pointer',
1859
- padding: '1px 0 2px',
1859
+ padding: `1px 0 ${"var(--ds-space-025, 2px)"}`,
1860
1860
  background: `var(--ds-background-accent-yellow-subtler, ${Y75})`,
1861
1861
  borderBottomColor: `var(--ds-border-accent-yellow, ${Y300})`,
1862
1862
  boxShadow: `var(--ds-shadow-overlay, ${`1px 2px 3px ${N60A}, -1px 2px 3px ${N60A}`})`
@@ -49,7 +49,7 @@ import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equ
49
49
  export const NORMAL_SEVERITY_THRESHOLD = 2000;
50
50
  export const DEGRADED_SEVERITY_THRESHOLD = 3000;
51
51
  const packageName = "@atlaskit/renderer";
52
- const packageVersion = "123.1.1";
52
+ const packageVersion = "123.2.1";
53
53
  const setAsQueryContainerStyles = css({
54
54
  containerName: 'ak-renderer-wrapper',
55
55
  containerType: 'inline-size'
@@ -20,7 +20,7 @@ const markStyles = css({
20
20
  color: 'inherit',
21
21
  backgroundColor: 'unset',
22
22
  WebkitTapHighlightColor: 'transparent',
23
- borderBottom: '2px solid transparent',
23
+ borderBottom: `${"var(--ds-border-width-selected, 2px)"} solid transparent`,
24
24
  cursor: 'pointer',
25
25
  padding: '1px 0 2px',
26
26
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
@@ -19,11 +19,11 @@ const markStyles = css({
19
19
  [`&[data-mark-annotation-state='${AnnotationMarkStates.ACTIVE}']`]: {
20
20
  // was from blur in AnnotationSharedCSSByState().blur
21
21
  background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
22
- borderBottom: `2px solid ${"var(--ds-border-accent-yellow, #B38600)"}`,
22
+ borderBottom: `${"var(--ds-border-width-selected, 2px)"} solid ${"var(--ds-border-accent-yellow, #B38600)"}`,
23
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
24
24
  '&[data-has-focus="true"]': {
25
25
  background: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
26
- borderBottom: `2px solid ${"var(--ds-border-accent-yellow, #B38600)"}`,
26
+ borderBottom: `${"var(--ds-border-width-selected, 2px)"} solid ${"var(--ds-border-accent-yellow, #B38600)"}`,
27
27
  // TODO: DSP-4147 - Annotation shadow
28
28
  boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
29
29
  cursor: 'pointer'
@@ -61,9 +61,9 @@ const markStylesWithInlineComments = css({
61
61
  // 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
62
62
  [`&[data-mark-annotation-state='${AnnotationMarkStates.ACTIVE}']`]: {
63
63
  // was from common in AnnotationSharedCSSByState().common
64
- borderBottom: '2px solid transparent',
64
+ borderBottom: `${"var(--ds-border-width-selected, 2px)"} solid transparent`,
65
65
  cursor: 'pointer',
66
- padding: '1px 0 2px',
66
+ padding: `1px 0 ${"var(--ds-space-025, 2px)"}`,
67
67
  // it was under fg(annotations_align_editor_and_renderer_styles) from AnnotationSharedCSSByState().common, assume it's on as already rolled out
68
68
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
69
69
  '&:has(.card), &:has([data-inline-card])': {
@@ -1,4 +1,5 @@
1
1
  import { useEffect } from 'react';
2
+ import { getDocument } from '@atlaskit/browser-apis';
2
3
 
3
4
  // Find editor node dom with localId - similar to confluence useScrollOnUrlChange.ts
4
5
  const getLocalIdSelector = (localId, container) => {
@@ -33,6 +34,7 @@ const getLocalIdSelector = (localId, container) => {
33
34
  };
34
35
  export const useScrollToLocalId = (containerRef, shouldScrollToLocalId) => {
35
36
  useEffect(() => {
37
+ var _getDocument;
36
38
  // Only run in browser environment
37
39
  if (typeof window === 'undefined' || !(containerRef !== null && containerRef !== void 0 && containerRef.current) || !shouldScrollToLocalId) {
38
40
  return;
@@ -41,14 +43,83 @@ export const useScrollToLocalId = (containerRef, shouldScrollToLocalId) => {
41
43
  // Parse URL parameters for block ID
42
44
  const urlParams = new URLSearchParams(window.location.search);
43
45
  const blockId = urlParams.get('block');
44
- if (blockId) {
45
- // Search within the renderer container using the selector function
46
- const element = getLocalIdSelector(blockId, containerRef.current);
47
- if (element) {
48
- element.scrollIntoView({
49
- behavior: 'smooth'
50
- });
46
+ if (!blockId) {
47
+ return;
48
+ }
49
+ let retryCount = 0;
50
+ // 5 second timeout based on dashboard showing ~4.96s TTI load time
51
+ const maxRetries = 20; // Maximum 20 retries (5 seconds at 250ms intervals)
52
+ const retryInterval = 250; // Check every 250ms
53
+ let intervalId = null;
54
+ const scrollToElement = () => {
55
+ if (containerRef !== null && containerRef !== void 0 && containerRef.current) {
56
+ const element = getLocalIdSelector(blockId, containerRef.current);
57
+ if (element) {
58
+ element.scrollIntoView({
59
+ behavior: 'smooth'
60
+ });
61
+ return true;
62
+ }
63
+ }
64
+ return false;
65
+ };
66
+ const attemptScroll = () => {
67
+ retryCount++;
68
+
69
+ // Try to scroll to element
70
+ if (scrollToElement()) {
71
+ if (intervalId) {
72
+ clearInterval(intervalId);
73
+ intervalId = null;
74
+ }
75
+ return true;
76
+ }
77
+
78
+ // Stop retrying if we've exceeded max retries
79
+ if (retryCount >= maxRetries) {
80
+ if (intervalId) {
81
+ clearInterval(intervalId);
82
+ intervalId = null;
83
+ }
84
+ return false;
51
85
  }
86
+ return false;
87
+ };
88
+
89
+ // Try to scroll immediately
90
+ if (attemptScroll()) {
91
+ return;
92
+ }
93
+ if (((_getDocument = getDocument()) === null || _getDocument === void 0 ? void 0 : _getDocument.readyState) === 'complete') {
94
+ // Document is already ready, try a few more times with delays
95
+ // This handles cases where elements are added after document ready
96
+ intervalId = setInterval(() => {
97
+ attemptScroll();
98
+ }, retryInterval);
99
+ } else {
100
+ // Document not ready yet, wait for it and then retry
101
+ intervalId = setInterval(() => {
102
+ var _getDocument2;
103
+ if (((_getDocument2 = getDocument()) === null || _getDocument2 === void 0 ? void 0 : _getDocument2.readyState) === 'complete') {
104
+ attemptScroll();
105
+ } else if (retryCount >= maxRetries) {
106
+ // Stop retrying even if document isn't ready
107
+ if (intervalId) {
108
+ clearInterval(intervalId);
109
+ intervalId = null;
110
+ }
111
+ } else {
112
+ retryCount++;
113
+ }
114
+ }, retryInterval);
52
115
  }
116
+
117
+ // Cleanup function
118
+ return () => {
119
+ if (intervalId) {
120
+ clearInterval(intervalId);
121
+ intervalId = null;
122
+ }
123
+ };
53
124
  }, [containerRef, shouldScrollToLocalId]);
54
125
  };
@@ -1,19 +1,11 @@
1
1
  /* prettier-ignore */
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
3
  /**
3
4
  * NOTE:
4
5
  *
5
6
  * This file is automatically generated by Traduki 2.0.
6
7
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
8
  */
8
- //Czech
9
- export default {
10
- 'fabric.editor.headingLink.ascSortingLabel': 'vzestupně',
11
- 'fabric.editor.headingLink.copied': 'Zkopírováno!',
12
- 'fabric.editor.headingLink.copyAnchorLink': 'Kopírovat odkaz na nadpis',
13
- 'fabric.editor.headingLink.copyAriaLabel': 'Kopírovat',
14
- 'fabric.editor.headingLink.descSortingLabel': 'sestupně',
15
- 'fabric.editor.headingLink.failedToCopy': 'Kopírování se nezdařilo',
16
- 'fabric.editor.headingLink.noneSortingLabel': 'Žádné',
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
- };
9
+
10
+ import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/cs';
11
+ export default translations;
@@ -1,19 +1,11 @@
1
1
  /* prettier-ignore */
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
3
  /**
3
4
  * NOTE:
4
5
  *
5
6
  * This file is automatically generated by Traduki 2.0.
6
7
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
8
  */
8
- //Danish (Denmark)
9
- export default {
10
- 'fabric.editor.headingLink.ascSortingLabel': 'stigende',
11
- 'fabric.editor.headingLink.copied': 'Kopieret!',
12
- 'fabric.editor.headingLink.copyAnchorLink': 'Kopiér link til overskrift',
13
- 'fabric.editor.headingLink.copyAriaLabel': 'Kopiér',
14
- 'fabric.editor.headingLink.descSortingLabel': 'faldende',
15
- 'fabric.editor.headingLink.failedToCopy': 'Kopiering mislykkedes',
16
- 'fabric.editor.headingLink.noneSortingLabel': 'ingen',
17
- 'fabric.editor.inlineComment.marker.end': 'slut på indlejret kommentar',
18
- 'fabric.editor.inlineComment.marker.start': 'start på indlejret kommentar'
19
- };
9
+
10
+ import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/da';
11
+ export default translations;
@@ -1,19 +1,11 @@
1
1
  /* prettier-ignore */
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
3
  /**
3
4
  * NOTE:
4
5
  *
5
6
  * This file is automatically generated by Traduki 2.0.
6
7
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
8
  */
8
- //German (Germany)
9
- export default {
10
- 'fabric.editor.headingLink.ascSortingLabel': 'aufsteigend',
11
- 'fabric.editor.headingLink.copied': 'Kopiert!',
12
- 'fabric.editor.headingLink.copyAnchorLink': 'Link zur Überschrift kopieren',
13
- 'fabric.editor.headingLink.copyAriaLabel': 'Kopieren',
14
- 'fabric.editor.headingLink.descSortingLabel': 'absteigend',
15
- 'fabric.editor.headingLink.failedToCopy': 'Kopieren ist fehlgeschlagen',
16
- 'fabric.editor.headingLink.noneSortingLabel': 'Keine',
17
- 'fabric.editor.inlineComment.marker.end': 'Ende des Inline-Kommentars',
18
- 'fabric.editor.inlineComment.marker.start': 'Beginn des Inline-Kommentars'
19
- };
9
+
10
+ import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/de';
11
+ export default translations;
@@ -1,19 +1,11 @@
1
1
  /* prettier-ignore */
2
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
3
  /**
3
4
  * NOTE:
4
5
  *
5
6
  * This file is automatically generated by Traduki 2.0.
6
7
  * DO NOT CHANGE IT BY HAND or your changes will be lost.
7
8
  */
8
- //
9
- export default {
10
- 'fabric.editor.headingLink.ascSortingLabel': 'ascending',
11
- 'fabric.editor.headingLink.copied': 'Copied!',
12
- 'fabric.editor.headingLink.copyAnchorLink': 'Copy link to heading',
13
- 'fabric.editor.headingLink.copyAriaLabel': 'Copy',
14
- 'fabric.editor.headingLink.descSortingLabel': 'descending',
15
- 'fabric.editor.headingLink.failedToCopy': 'Copy failed',
16
- 'fabric.editor.headingLink.noneSortingLabel': 'none',
17
- 'fabric.editor.inlineComment.marker.end': 'inline comment end',
18
- 'fabric.editor.inlineComment.marker.start': 'inline comment start'
19
- };
9
+
10
+ import translations from '@atlaskit/afm-i18n-platform-editor-renderer/i18n/en';
11
+ export default translations;