@atlaskit/editor-common 63.0.1 → 66.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 +68 -0
- package/dist/cjs/i18n/cs.js +3 -3
- package/dist/cjs/i18n/da.js +3 -3
- package/dist/cjs/i18n/de.js +3 -3
- package/dist/cjs/i18n/en_ZZ.js +27 -0
- package/dist/cjs/i18n/es.js +3 -3
- package/dist/cjs/i18n/fi.js +3 -3
- package/dist/cjs/i18n/fr.js +3 -3
- package/dist/cjs/i18n/hu.js +3 -3
- package/dist/cjs/i18n/it.js +3 -3
- package/dist/cjs/i18n/ja.js +3 -3
- package/dist/cjs/i18n/ko.js +3 -3
- package/dist/cjs/i18n/nb.js +3 -3
- package/dist/cjs/i18n/nl.js +3 -3
- package/dist/cjs/i18n/pl.js +3 -3
- package/dist/cjs/i18n/pt_BR.js +3 -3
- package/dist/cjs/i18n/ru.js +3 -3
- package/dist/cjs/i18n/sv.js +3 -3
- package/dist/cjs/i18n/th.js +3 -3
- package/dist/cjs/i18n/tr.js +3 -3
- package/dist/cjs/i18n/uk.js +3 -3
- package/dist/cjs/i18n/vi.js +3 -3
- package/dist/cjs/i18n/zh.js +3 -2
- package/dist/cjs/i18n/zh_TW.js +3 -3
- package/dist/cjs/index.js +1 -29
- package/dist/cjs/normalize-feature-flags.js +40 -4
- package/dist/cjs/{ui/IntlLegacyFallbackProvider → safe-plugin}/index.js +17 -35
- package/dist/cjs/styles/index.js +0 -8
- package/dist/cjs/styles/shared/annotation.js +25 -17
- package/dist/cjs/styles/shared/block-marks.js +2 -2
- package/dist/cjs/styles/shared/blockquote.js +2 -2
- package/dist/cjs/styles/shared/code-mark.js +9 -5
- package/dist/cjs/styles/shared/column-layout.js +2 -2
- package/dist/cjs/styles/shared/date.js +2 -2
- package/dist/cjs/styles/shared/headings.js +5 -2
- package/dist/cjs/styles/shared/indentation.js +2 -2
- package/dist/cjs/styles/shared/link.js +2 -2
- package/dist/cjs/styles/shared/lists.js +4 -2
- package/dist/cjs/styles/shared/media-single.js +2 -2
- package/dist/cjs/styles/shared/panel.js +7 -4
- package/dist/cjs/styles/shared/paragraph.js +2 -2
- package/dist/cjs/styles/shared/rule.js +5 -2
- package/dist/cjs/styles/shared/shadow.js +2 -2
- package/dist/cjs/styles/shared/table.js +37 -33
- package/dist/cjs/styles/shared/task-decision.js +2 -2
- package/dist/cjs/styles/shared/text-color.js +2 -2
- package/dist/cjs/styles/shared/whitespace.js +2 -2
- package/dist/cjs/types/collab.js +5 -0
- package/dist/cjs/ui/BaseTheme/index.js +27 -11
- package/dist/cjs/ui/Caption/index.js +10 -7
- package/dist/cjs/ui/Expand/index.js +84 -46
- package/dist/cjs/ui/{IntlNextErrorBoundary → IntlErrorBoundary}/index.js +9 -9
- package/dist/cjs/ui/MediaSingle/index.js +15 -8
- package/dist/cjs/ui/MediaSingle/link.js +4 -6
- package/dist/cjs/ui/MediaSingle/styled.js +23 -20
- package/dist/cjs/ui/Mention/index.js +1 -3
- package/dist/cjs/ui/Mention/mention-with-profilecard.js +33 -194
- package/dist/cjs/ui/Mention/mention-with-providers.js +1 -5
- package/dist/cjs/ui/Messages/index.js +25 -22
- package/dist/cjs/ui/Popup/index.js +15 -1
- package/dist/cjs/ui/UnsupportedBlock/index.js +9 -6
- package/dist/cjs/ui/UnsupportedInline/index.js +8 -6
- package/dist/cjs/ui/WidthProvider/index.js +8 -9
- package/dist/cjs/ui/clear-next-sibling-margin-top.js +4 -5
- package/dist/cjs/ui/index.js +24 -34
- package/dist/cjs/utils/compare-props.js +136 -0
- package/dist/cjs/utils/index.js +23 -1
- package/dist/cjs/utils/performance/hooks/use-component-render-tracking/index.js +47 -0
- package/dist/cjs/utils/validator.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/i18n/cs.js +3 -3
- package/dist/es2019/i18n/da.js +3 -3
- package/dist/es2019/i18n/de.js +3 -3
- package/dist/es2019/i18n/en_ZZ.js +19 -0
- package/dist/es2019/i18n/es.js +3 -3
- package/dist/es2019/i18n/fi.js +3 -3
- package/dist/es2019/i18n/fr.js +3 -3
- package/dist/es2019/i18n/hu.js +3 -3
- package/dist/es2019/i18n/it.js +3 -3
- package/dist/es2019/i18n/ja.js +3 -3
- package/dist/es2019/i18n/ko.js +3 -3
- package/dist/es2019/i18n/nb.js +3 -3
- package/dist/es2019/i18n/nl.js +3 -3
- package/dist/es2019/i18n/pl.js +3 -3
- package/dist/es2019/i18n/pt_BR.js +3 -3
- package/dist/es2019/i18n/ru.js +3 -3
- package/dist/es2019/i18n/sv.js +3 -3
- package/dist/es2019/i18n/th.js +3 -3
- package/dist/es2019/i18n/tr.js +3 -3
- package/dist/es2019/i18n/uk.js +3 -3
- package/dist/es2019/i18n/vi.js +3 -3
- package/dist/es2019/i18n/zh.js +3 -2
- package/dist/es2019/i18n/zh_TW.js +3 -3
- package/dist/es2019/index.js +2 -7
- package/dist/es2019/normalize-feature-flags.js +40 -4
- package/dist/es2019/safe-plugin/index.js +10 -0
- package/dist/es2019/styles/index.js +0 -1
- package/dist/es2019/styles/shared/annotation.js +11 -11
- package/dist/es2019/styles/shared/block-marks.js +3 -2
- package/dist/es2019/styles/shared/blockquote.js +1 -1
- package/dist/es2019/styles/shared/code-mark.js +14 -11
- package/dist/es2019/styles/shared/column-layout.js +1 -1
- package/dist/es2019/styles/shared/date.js +1 -1
- package/dist/es2019/styles/shared/headings.js +8 -8
- package/dist/es2019/styles/shared/indentation.js +1 -1
- package/dist/es2019/styles/shared/link.js +1 -1
- package/dist/es2019/styles/shared/lists.js +19 -1
- package/dist/es2019/styles/shared/media-single.js +1 -1
- package/dist/es2019/styles/shared/panel.js +15 -15
- package/dist/es2019/styles/shared/paragraph.js +1 -1
- package/dist/es2019/styles/shared/rule.js +3 -3
- package/dist/es2019/styles/shared/shadow.js +1 -1
- package/dist/es2019/styles/shared/table.js +23 -13
- package/dist/es2019/styles/shared/task-decision.js +1 -1
- package/dist/es2019/styles/shared/text-color.js +1 -1
- package/dist/es2019/styles/shared/whitespace.js +1 -1
- package/dist/es2019/types/collab.js +1 -0
- package/dist/es2019/ui/BaseTheme/index.js +16 -5
- package/dist/es2019/ui/Caption/index.js +11 -5
- package/dist/es2019/ui/Expand/index.js +97 -67
- package/dist/es2019/ui/{IntlNextErrorBoundary → IntlErrorBoundary}/index.js +1 -1
- package/dist/es2019/ui/MediaSingle/index.js +15 -9
- package/dist/es2019/ui/MediaSingle/link.js +3 -4
- package/dist/es2019/ui/MediaSingle/styled.js +13 -12
- package/dist/es2019/ui/Mention/index.js +1 -3
- package/dist/es2019/ui/Mention/mention-with-profilecard.js +33 -146
- package/dist/es2019/ui/Mention/mention-with-providers.js +1 -5
- package/dist/es2019/ui/Messages/index.js +30 -22
- package/dist/es2019/ui/Popup/index.js +16 -1
- package/dist/es2019/ui/UnsupportedBlock/index.js +9 -6
- package/dist/es2019/ui/UnsupportedInline/index.js +8 -5
- package/dist/es2019/ui/WidthProvider/index.js +10 -8
- package/dist/es2019/ui/clear-next-sibling-margin-top.js +2 -2
- package/dist/es2019/ui/index.js +4 -6
- package/dist/es2019/utils/compare-props.js +99 -0
- package/dist/es2019/utils/index.js +3 -1
- package/dist/es2019/utils/performance/hooks/use-component-render-tracking/index.js +36 -0
- package/dist/es2019/utils/validator.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/i18n/cs.js +3 -3
- package/dist/esm/i18n/da.js +3 -3
- package/dist/esm/i18n/de.js +3 -3
- package/dist/esm/i18n/en_ZZ.js +19 -0
- package/dist/esm/i18n/es.js +3 -3
- package/dist/esm/i18n/fi.js +3 -3
- package/dist/esm/i18n/fr.js +3 -3
- package/dist/esm/i18n/hu.js +3 -3
- package/dist/esm/i18n/it.js +3 -3
- package/dist/esm/i18n/ja.js +3 -3
- package/dist/esm/i18n/ko.js +3 -3
- package/dist/esm/i18n/nb.js +3 -3
- package/dist/esm/i18n/nl.js +3 -3
- package/dist/esm/i18n/pl.js +3 -3
- package/dist/esm/i18n/pt_BR.js +3 -3
- package/dist/esm/i18n/ru.js +3 -3
- package/dist/esm/i18n/sv.js +3 -3
- package/dist/esm/i18n/th.js +3 -3
- package/dist/esm/i18n/tr.js +3 -3
- package/dist/esm/i18n/uk.js +3 -3
- package/dist/esm/i18n/vi.js +3 -3
- package/dist/esm/i18n/zh.js +3 -2
- package/dist/esm/i18n/zh_TW.js +3 -3
- package/dist/esm/index.js +2 -7
- package/dist/esm/normalize-feature-flags.js +39 -4
- package/dist/esm/{ui/IntlLegacyFallbackProvider → safe-plugin}/index.js +13 -31
- package/dist/esm/styles/index.js +0 -1
- package/dist/esm/styles/shared/annotation.js +21 -17
- package/dist/esm/styles/shared/block-marks.js +2 -2
- package/dist/esm/styles/shared/blockquote.js +1 -1
- package/dist/esm/styles/shared/code-mark.js +9 -6
- package/dist/esm/styles/shared/column-layout.js +1 -1
- package/dist/esm/styles/shared/date.js +1 -1
- package/dist/esm/styles/shared/headings.js +4 -2
- package/dist/esm/styles/shared/indentation.js +1 -1
- package/dist/esm/styles/shared/link.js +1 -1
- package/dist/esm/styles/shared/lists.js +3 -2
- package/dist/esm/styles/shared/media-single.js +1 -1
- package/dist/esm/styles/shared/panel.js +6 -4
- package/dist/esm/styles/shared/paragraph.js +1 -1
- package/dist/esm/styles/shared/rule.js +4 -2
- package/dist/esm/styles/shared/shadow.js +1 -1
- package/dist/esm/styles/shared/table.js +37 -33
- package/dist/esm/styles/shared/task-decision.js +1 -1
- package/dist/esm/styles/shared/text-color.js +1 -1
- package/dist/esm/styles/shared/whitespace.js +1 -1
- package/dist/esm/types/collab.js +1 -0
- package/dist/esm/ui/BaseTheme/index.js +23 -12
- package/dist/esm/ui/Caption/index.js +10 -5
- package/dist/esm/ui/Expand/index.js +79 -42
- package/dist/esm/ui/{IntlNextErrorBoundary → IntlErrorBoundary}/index.js +7 -7
- package/dist/esm/ui/MediaSingle/index.js +16 -9
- package/dist/esm/ui/MediaSingle/link.js +2 -3
- package/dist/esm/ui/MediaSingle/styled.js +17 -10
- package/dist/esm/ui/Mention/index.js +1 -3
- package/dist/esm/ui/Mention/mention-with-profilecard.js +33 -189
- package/dist/esm/ui/Mention/mention-with-providers.js +1 -5
- package/dist/esm/ui/Messages/index.js +26 -20
- package/dist/esm/ui/Popup/index.js +16 -1
- package/dist/esm/ui/UnsupportedBlock/index.js +9 -5
- package/dist/esm/ui/UnsupportedInline/index.js +8 -5
- package/dist/esm/ui/WidthProvider/index.js +7 -6
- package/dist/esm/ui/clear-next-sibling-margin-top.js +2 -2
- package/dist/esm/ui/index.js +4 -6
- package/dist/esm/utils/compare-props.js +115 -0
- package/dist/esm/utils/index.js +3 -1
- package/dist/esm/utils/performance/hooks/use-component-render-tracking/index.js +37 -0
- package/dist/esm/utils/validator.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/__tests_external__/page-objects/Editor.d.ts +0 -1
- package/dist/types/__tests_external__/page-objects/EditorMedia.d.ts +0 -1
- package/dist/types/__tests_external__/page-objects/EditorSmartLink.d.ts +0 -1
- package/dist/types/__tests_external__/page-objects/Renderer.d.ts +0 -1
- package/dist/types/collab/types.d.ts +14 -2
- package/dist/types/collab.d.ts +1 -1
- package/dist/types/extensions/types/field-definitions.d.ts +1 -1
- package/dist/types/i18n/cs.d.ts +2 -2
- package/dist/types/i18n/da.d.ts +2 -2
- package/dist/types/i18n/de.d.ts +2 -2
- package/dist/types/i18n/en_ZZ.d.ts +19 -0
- package/dist/types/i18n/es.d.ts +2 -2
- package/dist/types/i18n/fi.d.ts +2 -2
- package/dist/types/i18n/fr.d.ts +2 -2
- package/dist/types/i18n/hu.d.ts +2 -2
- package/dist/types/i18n/it.d.ts +2 -2
- package/dist/types/i18n/ja.d.ts +2 -2
- package/dist/types/i18n/ko.d.ts +2 -2
- package/dist/types/i18n/nb.d.ts +2 -2
- package/dist/types/i18n/nl.d.ts +2 -2
- package/dist/types/i18n/pl.d.ts +2 -2
- package/dist/types/i18n/pt_BR.d.ts +2 -2
- package/dist/types/i18n/ru.d.ts +2 -2
- package/dist/types/i18n/sv.d.ts +2 -2
- package/dist/types/i18n/th.d.ts +2 -2
- package/dist/types/i18n/tr.d.ts +2 -2
- package/dist/types/i18n/uk.d.ts +2 -2
- package/dist/types/i18n/vi.d.ts +2 -2
- package/dist/types/i18n/zh.d.ts +2 -2
- package/dist/types/i18n/zh_TW.d.ts +2 -2
- package/dist/types/index.d.ts +1 -14
- package/dist/types/normalize-feature-flags.d.ts +6 -3
- package/dist/types/safe-plugin/index.d.ts +6 -0
- package/dist/types/styles/index.d.ts +0 -1
- package/dist/types/styles/shared/annotation.d.ts +5 -4
- package/dist/types/styles/shared/block-marks.d.ts +1 -1
- package/dist/types/styles/shared/blockquote.d.ts +1 -1
- package/dist/types/styles/shared/code-mark.d.ts +2 -1
- package/dist/types/styles/shared/column-layout.d.ts +1 -1
- package/dist/types/styles/shared/date.d.ts +1 -1
- package/dist/types/styles/shared/headings.d.ts +2 -1
- package/dist/types/styles/shared/indentation.d.ts +1 -1
- package/dist/types/styles/shared/link.d.ts +1 -1
- package/dist/types/styles/shared/lists.d.ts +1 -1
- package/dist/types/styles/shared/media-single.d.ts +1 -1
- package/dist/types/styles/shared/panel.d.ts +1 -1
- package/dist/types/styles/shared/paragraph.d.ts +1 -1
- package/dist/types/styles/shared/rule.d.ts +2 -1
- package/dist/types/styles/shared/shadow.d.ts +1 -1
- package/dist/types/styles/shared/table.d.ts +2 -1
- package/dist/types/styles/shared/task-decision.d.ts +1 -1
- package/dist/types/styles/shared/text-color.d.ts +1 -1
- package/dist/types/styles/shared/whitespace.d.ts +1 -1
- package/dist/types/types/collab.d.ts +8 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/ui/Caption/index.d.ts +3 -1
- package/dist/types/ui/Expand/index.d.ts +12 -10
- package/dist/types/ui/{IntlNextErrorBoundary → IntlErrorBoundary}/index.d.ts +1 -1
- package/dist/types/ui/MediaSingle/index.d.ts +4 -1
- package/dist/types/ui/MediaSingle/link.d.ts +1 -2
- package/dist/types/ui/MediaSingle/styled.d.ts +10 -5
- package/dist/types/ui/Mention/index.d.ts +0 -3
- package/dist/types/ui/Mention/mention-with-profilecard.d.ts +2 -25
- package/dist/types/ui/Mention/mention-with-providers.d.ts +0 -3
- package/dist/types/ui/Messages/index.d.ts +5 -3
- package/dist/types/ui/Popup/index.d.ts +3 -0
- package/dist/types/ui/UnsupportedBlock/index.d.ts +1 -0
- package/dist/types/ui/UnsupportedInline/index.d.ts +1 -0
- package/dist/types/ui/WidthProvider/index.d.ts +3 -1
- package/dist/types/ui/clear-next-sibling-margin-top.d.ts +1 -2
- package/dist/types/ui/index.d.ts +5 -7
- package/dist/types/utils/compare-props.d.ts +32 -0
- package/dist/types/utils/getModeFromTheme.d.ts +1 -1
- package/dist/types/utils/index.d.ts +4 -0
- package/dist/types/utils/performance/hooks/use-component-render-tracking/index.d.ts +19 -0
- package/package.json +20 -19
- package/safe-plugin/package.json +7 -0
- package/dist/cjs/styles/shared/inline-nodes.js +0 -17
- package/dist/cjs/ui/LegacyToNextIntlProvider/index.js +0 -67
- package/dist/es2019/styles/shared/inline-nodes.js +0 -7
- package/dist/es2019/ui/IntlLegacyFallbackProvider/index.js +0 -21
- package/dist/es2019/ui/LegacyToNextIntlProvider/index.js +0 -24
- package/dist/esm/styles/shared/inline-nodes.js +0 -7
- package/dist/esm/ui/LegacyToNextIntlProvider/index.js +0 -51
- package/dist/types/styles/shared/inline-nodes.d.ts +0 -2
- package/dist/types/ui/IntlLegacyFallbackProvider/index.d.ts +0 -8
- package/dist/types/ui/LegacyToNextIntlProvider/index.d.ts +0 -8
package/dist/es2019/i18n/sv.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
//
|
|
7
|
+
//Swedish
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.editor.codeBidiWarningLabel': 'Dubbelriktade tecken ändrar återgivningsordningen för text. Detta kan användas för att dölja skadlig kod.',
|
|
10
9
|
'fabric.editor.captionPlaceholder': 'Lägg till en bildtext',
|
|
10
|
+
'fabric.editor.codeBidiWarningLabel': 'Dubbelriktade tecken ändrar återgivningsordningen för text. Detta kan användas för att dölja skadlig kod.',
|
|
11
11
|
'fabric.editor.collapseNode': 'komprimera innehåll',
|
|
12
12
|
'fabric.editor.expandDefaultTitle': 'Klicka här för att expandera ...',
|
|
13
13
|
'fabric.editor.expandNode': 'Expandera innehåll',
|
package/dist/es2019/i18n/th.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
//
|
|
7
|
+
//Thai (Thailand)
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.editor.codeBidiWarningLabel': 'ตัวอักษรแบบสองทิศทางเปลี่ยนลำดับการแสดงข้อความ ซึ่งอาจนำไปใช้เพื่อปิดบังรหัสที่มีวัตถุประสงค์ในทางที่ไม่ดีได้',
|
|
10
9
|
'fabric.editor.captionPlaceholder': 'เพิ่มคำอธิบาย',
|
|
10
|
+
'fabric.editor.codeBidiWarningLabel': 'ตัวอักษรแบบสองทิศทางเปลี่ยนลำดับการแสดงข้อความ ซึ่งอาจนำไปใช้เพื่อปิดบังรหัสที่มีวัตถุประสงค์ในทางที่ไม่ดีได้',
|
|
11
11
|
'fabric.editor.collapseNode': 'ย่อเนื้อหา',
|
|
12
12
|
'fabric.editor.expandDefaultTitle': 'คลิกที่นี่เพื่อขยาย...',
|
|
13
13
|
'fabric.editor.expandNode': 'ขยายเนื้อหา',
|
package/dist/es2019/i18n/tr.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
//
|
|
7
|
+
//Turkish (Turkey)
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.editor.codeBidiWarningLabel': 'Çift yönlü karakterler metnin oluşturulduğu sırayı değiştirir. Bu, kötü amaçlı kodu gizlemek için kullanılabilir.',
|
|
10
9
|
'fabric.editor.captionPlaceholder': 'Açıklama yazısı ekleyin',
|
|
10
|
+
'fabric.editor.codeBidiWarningLabel': 'Çift yönlü karakterler metnin oluşturulduğu sırayı değiştirir. Bu, kötü amaçlı kodu gizlemek için kullanılabilir.',
|
|
11
11
|
'fabric.editor.collapseNode': 'içeriği daraltın',
|
|
12
12
|
'fabric.editor.expandDefaultTitle': 'Genişletmek için buraya tıklayın...',
|
|
13
13
|
'fabric.editor.expandNode': 'İçeriği genişletin',
|
package/dist/es2019/i18n/uk.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
//
|
|
7
|
+
//Ukrainian (Ukraine)
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.editor.codeBidiWarningLabel': 'Двонаправлені символи змінюють порядок відображення тексту. Такий спосіб може використовуватися, щоб приховати зловмисний код.',
|
|
10
9
|
'fabric.editor.captionPlaceholder': 'Додати підпис',
|
|
10
|
+
'fabric.editor.codeBidiWarningLabel': 'Двонаправлені символи змінюють порядок відображення тексту. Такий спосіб може використовуватися, щоб приховати зловмисний код.',
|
|
11
11
|
'fabric.editor.collapseNode': 'Згорніть вміст',
|
|
12
12
|
'fabric.editor.expandDefaultTitle': 'Натисніть, щоб розгорнути…',
|
|
13
13
|
'fabric.editor.expandNode': 'Розгорніть вміст',
|
package/dist/es2019/i18n/vi.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
//
|
|
7
|
+
//Vietnamese (Vietnam)
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.editor.codeBidiWarningLabel': 'Ký tự hai chiều thay đổi thứ tự kết xuất văn bản. Điều này có thể được dùng để che giấu mã độc hại.',
|
|
10
9
|
'fabric.editor.captionPlaceholder': 'Thêm chú thích',
|
|
10
|
+
'fabric.editor.codeBidiWarningLabel': 'Ký tự hai chiều thay đổi thứ tự kết xuất văn bản. Điều này có thể được dùng để che giấu mã độc hại.',
|
|
11
11
|
'fabric.editor.collapseNode': 'thu gọn nội dung',
|
|
12
12
|
'fabric.editor.expandDefaultTitle': 'Nhấp vào đây để mở rộng...',
|
|
13
13
|
'fabric.editor.expandNode': 'Mở rộng nội dung',
|
package/dist/es2019/i18n/zh.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
+
//Chinese (Simplified)
|
|
7
8
|
export default {
|
|
8
|
-
'fabric.editor.codeBidiWarningLabel': '双向字符会更改文本的呈现顺序。这可能被用于掩盖恶意代码。',
|
|
9
9
|
'fabric.editor.captionPlaceholder': '添加标题',
|
|
10
|
+
'fabric.editor.codeBidiWarningLabel': '双向字符会更改文本的呈现顺序。这可能被用于掩盖恶意代码。',
|
|
10
11
|
'fabric.editor.collapseNode': '收起内容',
|
|
11
12
|
'fabric.editor.expandDefaultTitle': '点击此处展开...',
|
|
12
13
|
'fabric.editor.expandNode': '展开内容',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE:
|
|
3
3
|
*
|
|
4
|
-
* This file is automatically generated by
|
|
4
|
+
* This file is automatically generated by Traduki 2.0.
|
|
5
5
|
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
6
6
|
*/
|
|
7
|
-
//
|
|
7
|
+
//Chinese (Traditional)
|
|
8
8
|
export default {
|
|
9
|
-
'fabric.editor.codeBidiWarningLabel': '雙向字元會變更文字呈現的順序。這可用來將惡意程式碼模糊化。',
|
|
10
9
|
'fabric.editor.captionPlaceholder': '新增標題',
|
|
10
|
+
'fabric.editor.codeBidiWarningLabel': '雙向字元會變更文字呈現的順序。這可用來將惡意程式碼模糊化。',
|
|
11
11
|
'fabric.editor.collapseNode': '摺疊內容',
|
|
12
12
|
'fabric.editor.expandDefaultTitle': '按一下此處以展開...',
|
|
13
13
|
'fabric.editor.expandNode': '展開內容',
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
//
|
|
2
|
-
|
|
3
|
-
export { ProviderFactory, WithProviders } from './provider-factory'; // temporarily keep for confluence
|
|
4
|
-
|
|
5
|
-
export { WidthConsumer, // temporarily keep for confluence
|
|
6
|
-
WidthProvider // temporarily keep for confluence
|
|
7
|
-
} from './ui';
|
|
1
|
+
// DO NOT EMPORT ANYTHING FROM THIS FILE. USE CHILD ENTRY POINTS.
|
|
2
|
+
export {};
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import camelCase from 'lodash/camelCase';
|
|
2
2
|
import kebabCase from 'lodash/kebabCase';
|
|
3
3
|
const EMPTY = {};
|
|
4
|
+
|
|
5
|
+
function isObjectFlagKey(key, value, objectFlagKeys) {
|
|
6
|
+
return Boolean(typeof value === 'string' && (objectFlagKeys === null || objectFlagKeys === void 0 ? void 0 : objectFlagKeys.includes(key)));
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
function isValidJSONObject(value) {
|
|
10
|
+
try {
|
|
11
|
+
let result = JSON.parse(value);
|
|
12
|
+
|
|
13
|
+
if (typeof result === 'object' && result !== null) {
|
|
14
|
+
return true;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
return false;
|
|
18
|
+
} catch (err) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
4
22
|
/**
|
|
5
23
|
* Normalise and filter a free Record<string, unknown> to match
|
|
6
24
|
* the rules for feature flags in editor and renderer
|
|
@@ -11,18 +29,36 @@ const EMPTY = {};
|
|
|
11
29
|
*
|
|
12
30
|
* Output matches
|
|
13
31
|
* 1. cased in camelCase (match [a-zA-Z])
|
|
14
|
-
* 2. has boolean value
|
|
32
|
+
* 2. has boolean value or object {} value
|
|
15
33
|
*
|
|
16
34
|
* @param rawFeatureFlags
|
|
17
35
|
*/
|
|
18
36
|
|
|
19
|
-
|
|
37
|
+
|
|
38
|
+
export function normalizeFeatureFlags(rawFeatureFlags, options) {
|
|
20
39
|
if (!rawFeatureFlags) {
|
|
21
40
|
return EMPTY;
|
|
22
41
|
}
|
|
23
42
|
|
|
24
|
-
return Object.entries(rawFeatureFlags).filter(e =>
|
|
25
|
-
|
|
43
|
+
return Object.entries(rawFeatureFlags).filter(e => {
|
|
44
|
+
if (typeof e[1] === 'boolean') {
|
|
45
|
+
return true;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (isObjectFlagKey(camelCase(e[0]), e[1], options === null || options === void 0 ? void 0 : options.objectFlagKeys) && isValidJSONObject(e[1])) {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return false;
|
|
53
|
+
}).filter(([key]) => kebabCase(key) === key).map(([key, value]) => [camelCase(key), value]).reduce((flags, [key, value]) => {
|
|
54
|
+
if (isObjectFlagKey(key, value, options === null || options === void 0 ? void 0 : options.objectFlagKeys)) {
|
|
55
|
+
flags[key] = JSON.parse(value);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (typeof value === 'boolean') {
|
|
59
|
+
flags[key] = value;
|
|
60
|
+
}
|
|
61
|
+
|
|
26
62
|
return flags;
|
|
27
63
|
}, {});
|
|
28
64
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Plugin } from 'prosemirror-state';
|
|
2
|
+
export class SafePlugin extends Plugin {
|
|
3
|
+
// This variable isn't (and shouldn't) be used anywhere. Its purpose is
|
|
4
|
+
// to distinguish Plugin from SafePlugin, thus ensuring that an 'unsafe'
|
|
5
|
+
// Plugin cannot be assigned as an item in EditorPlugin → pmPlugins.
|
|
6
|
+
constructor(spec) {
|
|
7
|
+
super(spec);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
}
|
|
@@ -9,7 +9,6 @@ export { getPanelTypeBackground, darkPanelColors, getPanelDarkColor, panelShared
|
|
|
9
9
|
export { ruleSharedStyles } from './shared/rule';
|
|
10
10
|
export { whitespaceSharedStyles } from './shared/whitespace';
|
|
11
11
|
export { paragraphSharedStyles } from './shared/paragraph';
|
|
12
|
-
export { inlineNodeSharedStyle } from './shared/inline-nodes';
|
|
13
12
|
export { linkSharedStyle } from './shared/link';
|
|
14
13
|
export { listsSharedStyles } from './shared/lists';
|
|
15
14
|
export { indentationSharedStyles } from './shared/indentation';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from '
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
2
|
import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { themed } from '@atlaskit/theme/components';
|
|
4
4
|
export const annotationPrefix = 'ak-editor-annotation';
|
|
@@ -13,16 +13,16 @@ const Y75a = 'rgba(255, 240, 179, 0.5)';
|
|
|
13
13
|
const Y200a = 'rgba(255, 196, 0, 0.82)';
|
|
14
14
|
const DY75a = 'rgba(111, 92, 37, 0.5)';
|
|
15
15
|
const DY200 = '#82641c';
|
|
16
|
-
export const AnnotationSharedCSSByState = {
|
|
16
|
+
export const AnnotationSharedCSSByState = props => ({
|
|
17
17
|
focus: css`
|
|
18
18
|
background: ${themed({
|
|
19
19
|
light: Y75,
|
|
20
20
|
dark: DY75
|
|
21
|
-
})};
|
|
21
|
+
})(props)};
|
|
22
22
|
border-bottom: 2px solid ${themed({
|
|
23
23
|
light: Y300,
|
|
24
24
|
dark: DY300
|
|
25
|
-
})};
|
|
25
|
+
})(props)};
|
|
26
26
|
box-shadow: 1px 2px 3px ${N60A}, -1px 2px 3px ${N60A};
|
|
27
27
|
cursor: pointer;
|
|
28
28
|
`,
|
|
@@ -30,27 +30,27 @@ export const AnnotationSharedCSSByState = {
|
|
|
30
30
|
background: ${themed({
|
|
31
31
|
light: Y75a,
|
|
32
32
|
dark: DY75a
|
|
33
|
-
})};
|
|
33
|
+
})(props)};
|
|
34
34
|
border-bottom: 2px solid ${themed({
|
|
35
35
|
light: Y200a,
|
|
36
36
|
dark: DY200
|
|
37
|
-
})};
|
|
37
|
+
})(props)};
|
|
38
38
|
cursor: pointer;
|
|
39
39
|
`
|
|
40
|
-
};
|
|
41
|
-
export const annotationSharedStyles = css`
|
|
40
|
+
});
|
|
41
|
+
export const annotationSharedStyles = props => css`
|
|
42
42
|
.ProseMirror {
|
|
43
43
|
.${AnnotationSharedClassNames.focus} {
|
|
44
|
-
${AnnotationSharedCSSByState.focus};
|
|
44
|
+
${AnnotationSharedCSSByState(props).focus};
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
.${AnnotationSharedClassNames.draft} {
|
|
48
|
-
${AnnotationSharedCSSByState.focus};
|
|
48
|
+
${AnnotationSharedCSSByState(props).focus};
|
|
49
49
|
cursor: initial;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
.${AnnotationSharedClassNames.blur} {
|
|
53
|
-
${AnnotationSharedCSSByState.blur};
|
|
53
|
+
${AnnotationSharedCSSByState(props).blur};
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from '
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
2
|
export const blockMarksSharedStyles = css`
|
|
3
3
|
/**
|
|
4
4
|
* We need to remove margin-top from first item
|
|
@@ -13,7 +13,8 @@ export const blockMarksSharedStyles = css`
|
|
|
13
13
|
h3,
|
|
14
14
|
h4,
|
|
15
15
|
h5,
|
|
16
|
-
h6
|
|
16
|
+
h6,
|
|
17
|
+
.heading-wrapper {
|
|
17
18
|
&:first-child {
|
|
18
19
|
margin-top: 0;
|
|
19
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from '
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
2
|
import { akEditorBlockquoteBorderColor, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
3
3
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
4
4
|
export const blockquoteSharedStyles = css`
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { css } from '
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
2
|
import { getCodeStyles } from '@atlaskit/code/inline';
|
|
3
3
|
import { DN70, N30A } from '@atlaskit/theme/colors';
|
|
4
|
-
import { themed } from '@atlaskit/theme/components';
|
|
5
|
-
export const codeMarkSharedStyles =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
4
|
+
import { getTheme, themed } from '@atlaskit/theme/components';
|
|
5
|
+
export const codeMarkSharedStyles = props => {
|
|
6
|
+
const theme = getTheme(props);
|
|
7
|
+
return css`
|
|
8
|
+
.code {
|
|
9
|
+
--ds--code--bg-color: ${themed({
|
|
10
|
+
light: N30A,
|
|
11
|
+
dark: DN70
|
|
12
|
+
})(props)};
|
|
13
|
+
${getCodeStyles(theme)}
|
|
14
|
+
}
|
|
15
|
+
`;
|
|
16
|
+
};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import { css } from '
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
2
|
import { h100, h300, h400, h500, h600, h700 } from '@atlaskit/theme/typography'; // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
3
3
|
// text sizing prototype: http://proto/fabricrender/
|
|
4
4
|
|
|
5
|
-
export const headingsSharedStyles = css`
|
|
5
|
+
export const headingsSharedStyles = props => css`
|
|
6
6
|
& h1 {
|
|
7
|
-
${h700};
|
|
7
|
+
${h700(props)};
|
|
8
8
|
margin-bottom: 0;
|
|
9
9
|
margin-top: 1.667em;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
& h2 {
|
|
13
|
-
${h600};
|
|
13
|
+
${h600(props)};
|
|
14
14
|
margin-top: 1.8em;
|
|
15
15
|
margin-bottom: 0;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
& h3 {
|
|
19
|
-
${h500};
|
|
19
|
+
${h500(props)};
|
|
20
20
|
margin-top: 2em;
|
|
21
21
|
margin-bottom: 0;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
& h4 {
|
|
25
|
-
${h400};
|
|
25
|
+
${h400(props)};
|
|
26
26
|
margin-top: 1.357em;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
& h5 {
|
|
30
|
-
${h300};
|
|
30
|
+
${h300(props)};
|
|
31
31
|
margin-top: 1.667em;
|
|
32
32
|
text-transform: none;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
& h6 {
|
|
36
|
-
${h100};
|
|
36
|
+
${h100(props)};
|
|
37
37
|
margin-top: 1.455em;
|
|
38
38
|
text-transform: none;
|
|
39
39
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { css } from '
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
2
|
import { bulletListSelector, orderedListSelector } from '@atlaskit/adf-schema';
|
|
3
|
+
import browser from '../../utils/browser';
|
|
3
4
|
export const listsSharedStyles = css`
|
|
4
5
|
/* =============== INDENTATION SPACING ========= */
|
|
5
6
|
|
|
@@ -7,6 +8,21 @@ export const listsSharedStyles = css`
|
|
|
7
8
|
ol {
|
|
8
9
|
box-sizing: border-box;
|
|
9
10
|
padding-left: 24px;
|
|
11
|
+
|
|
12
|
+
/*
|
|
13
|
+
Firefox does not handle empty block element inside li tag.
|
|
14
|
+
If there is not block element inside li tag,
|
|
15
|
+
then firefox sets inherited height to li
|
|
16
|
+
However, if there is any block element and if it's empty
|
|
17
|
+
(or has empty inline element) then
|
|
18
|
+
firefox sets li tag height to zero.
|
|
19
|
+
More details at
|
|
20
|
+
https://product-fabric.atlassian.net/wiki/spaces/~455502413/pages/3149365890/ED-14110+Investigation
|
|
21
|
+
*/
|
|
22
|
+
li p:empty,
|
|
23
|
+
li p > span:empty {
|
|
24
|
+
${browser.gecko ? 'display: inline-block;' : ''}
|
|
25
|
+
}
|
|
10
26
|
}
|
|
11
27
|
|
|
12
28
|
${orderedListSelector}, ${bulletListSelector} {
|
|
@@ -26,8 +42,10 @@ export const listsSharedStyles = css`
|
|
|
26
42
|
@see https://css-tricks.com/display-flow-root/
|
|
27
43
|
*/
|
|
28
44
|
// For older browsers the do not support flow-root.
|
|
45
|
+
/* stylelint-disable declaration-block-no-duplicate-properties */
|
|
29
46
|
display: table;
|
|
30
47
|
display: flow-root;
|
|
48
|
+
/* stylelint-enable declaration-block-no-duplicate-properties */
|
|
31
49
|
}
|
|
32
50
|
|
|
33
51
|
/* =============== INDENTATION AESTHETICS ========= */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from '
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
2
|
import { PanelType } from '@atlaskit/adf-schema';
|
|
3
3
|
import { akEditorTableCellMinWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
@@ -173,7 +173,7 @@ const mainDynamicStyles = panelType => props => {
|
|
|
173
173
|
`;
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
export const panelSharedStyles = css`
|
|
176
|
+
export const panelSharedStyles = props => css`
|
|
177
177
|
.${PanelSharedCssClassName.prefix} {
|
|
178
178
|
border-radius: ${borderRadius()}px;
|
|
179
179
|
margin: ${blockNodesVerticalMargin} 0 0;
|
|
@@ -184,7 +184,7 @@ export const panelSharedStyles = css`
|
|
|
184
184
|
align-items: baseline;
|
|
185
185
|
word-break: break-word;
|
|
186
186
|
|
|
187
|
-
${mainDynamicStyles(PanelType.INFO)}
|
|
187
|
+
${mainDynamicStyles(PanelType.INFO)(props)}
|
|
188
188
|
|
|
189
189
|
.${PanelSharedCssClassName.icon} {
|
|
190
190
|
flex-shrink: 0;
|
|
@@ -197,7 +197,7 @@ export const panelSharedStyles = css`
|
|
|
197
197
|
-moz-user-select: none;
|
|
198
198
|
-webkit-user-select: none;
|
|
199
199
|
-ms-user-select: none;
|
|
200
|
-
${iconDynamicStyles(PanelType.INFO)}
|
|
200
|
+
${iconDynamicStyles(PanelType.INFO)(props)}
|
|
201
201
|
|
|
202
202
|
> span {
|
|
203
203
|
vertical-align: middle;
|
|
@@ -231,49 +231,49 @@ export const panelSharedStyles = css`
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
&[data-panel-type='${PanelType.NOTE}'] {
|
|
234
|
-
${mainDynamicStyles(PanelType.NOTE)}
|
|
234
|
+
${mainDynamicStyles(PanelType.NOTE)(props)}
|
|
235
235
|
|
|
236
236
|
.${PanelSharedCssClassName.icon} {
|
|
237
|
-
${iconDynamicStyles(PanelType.NOTE)}
|
|
237
|
+
${iconDynamicStyles(PanelType.NOTE)(props)}
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
&[data-panel-type='${PanelType.TIP}'] {
|
|
242
|
-
${mainDynamicStyles(PanelType.TIP)}
|
|
242
|
+
${mainDynamicStyles(PanelType.TIP)(props)}
|
|
243
243
|
|
|
244
244
|
.${PanelSharedCssClassName.icon} {
|
|
245
|
-
${iconDynamicStyles(PanelType.TIP)}
|
|
245
|
+
${iconDynamicStyles(PanelType.TIP)(props)}
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
&[data-panel-type='${PanelType.WARNING}'] {
|
|
250
|
-
${mainDynamicStyles(PanelType.WARNING)}
|
|
250
|
+
${mainDynamicStyles(PanelType.WARNING)(props)}
|
|
251
251
|
|
|
252
252
|
.${PanelSharedCssClassName.icon} {
|
|
253
|
-
${iconDynamicStyles(PanelType.WARNING)}
|
|
253
|
+
${iconDynamicStyles(PanelType.WARNING)(props)}
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
&[data-panel-type='${PanelType.ERROR}'] {
|
|
258
|
-
${mainDynamicStyles(PanelType.ERROR)}
|
|
258
|
+
${mainDynamicStyles(PanelType.ERROR)(props)}
|
|
259
259
|
|
|
260
260
|
.${PanelSharedCssClassName.icon} {
|
|
261
|
-
${iconDynamicStyles(PanelType.ERROR)}
|
|
261
|
+
${iconDynamicStyles(PanelType.ERROR)(props)}
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
&[data-panel-type='${PanelType.SUCCESS}'] {
|
|
266
|
-
${mainDynamicStyles(PanelType.SUCCESS)}
|
|
266
|
+
${mainDynamicStyles(PanelType.SUCCESS)(props)}
|
|
267
267
|
|
|
268
268
|
.${PanelSharedCssClassName.icon} {
|
|
269
|
-
${iconDynamicStyles(PanelType.SUCCESS)}
|
|
269
|
+
${iconDynamicStyles(PanelType.SUCCESS)(props)}
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
&[data-panel-type='${PanelType.CUSTOM}'] {
|
|
274
274
|
${themed({
|
|
275
275
|
dark: getPanelBackgroundDarkModeColors
|
|
276
|
-
})};
|
|
276
|
+
})(props)};
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from '
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
2
|
import { akEditorLineHeight, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles'; // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
3
3
|
|
|
4
4
|
export const paragraphSharedStyles = css`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css } from '
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
2
|
import { akEditorLineHeight } from '@atlaskit/editor-shared-styles';
|
|
3
3
|
import { DN50, N30A } from '@atlaskit/theme/colors';
|
|
4
4
|
import { themed } from '@atlaskit/theme/components';
|
|
@@ -7,10 +7,10 @@ const divider = themed({
|
|
|
7
7
|
dark: DN50
|
|
8
8
|
}); // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
9
9
|
|
|
10
|
-
export const ruleSharedStyles = css`
|
|
10
|
+
export const ruleSharedStyles = props => css`
|
|
11
11
|
& hr {
|
|
12
12
|
border: none;
|
|
13
|
-
background-color: ${divider};
|
|
13
|
+
background-color: ${divider(props)};
|
|
14
14
|
margin: ${akEditorLineHeight}em 0;
|
|
15
15
|
height: 2px;
|
|
16
16
|
border-radius: 1px;
|