@atlaskit/editor-core 219.3.6 → 219.3.8
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 +18 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +136 -0
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-compiled.js +23 -16
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer-emotion.js +3 -1
- package/dist/cjs/ui/EditorContentContainer/styles/findReplaceStyles.js +54 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +136 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-compiled.js +27 -17
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer-emotion.js +4 -2
- package/dist/es2019/ui/EditorContentContainer/styles/findReplaceStyles.js +73 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.compiled.css +136 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-compiled.js +24 -17
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer-emotion.js +4 -2
- package/dist/esm/ui/EditorContentContainer/styles/findReplaceStyles.js +53 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/findReplaceStyles.d.ts +1 -0
- package/package.json +9 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* EditorContentContainer-compiled.tsx generated by @compiled/babel-plugin v0.39.1 */
|
|
2
2
|
// TODO: EDITOR-6833 - Expected across this entire file, future violations are expected. Will try to remove them later after fully migration
|
|
3
|
-
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/platform/expand-border-shorthand, @atlaskit/platform/expand-background-shorthand */
|
|
3
|
+
/* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/platform/expand-spacing-shorthand, @atlaskit/platform/expand-border-shorthand, @atlaskit/platform/expand-background-shorthand */
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
6
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
@@ -43,6 +43,9 @@ var CommentEditorMargin = 14;
|
|
|
43
43
|
var GRID_GUTTER = 12;
|
|
44
44
|
var blockNodesVerticalMargin = '0.75rem';
|
|
45
45
|
var scaledBlockNodesVerticalMargin = '0.75em';
|
|
46
|
+
// copied from packages/editor/editor-shared-styles/src/consts/consts.ts
|
|
47
|
+
var akEditorLineHeight = 1.714;
|
|
48
|
+
var listsStylesSafariFixMultiSelector = "\n\t.ProseMirror:not(.blockCardView-content-wrap) > li > p:first-child,\n\t.ProseMirror:not(.blockCardView-content-wrap) > li > .code-block:first-child,\n\t.ProseMirror:not(.blockCardView-content-wrap) > li > .ProseMirror-gapcursor:first-child + .code-block";
|
|
46
49
|
var editorAreaNonSmallDeviceContainerQuery = "@container editor-area (width >= ".concat(akEditorBreakpointForSmallDevice, ")");
|
|
47
50
|
var editorAreaNarrowPageContainerQuery = "@container editor-area (max-width: ".concat(akEditorFullPageNarrowBreakout, "px)");
|
|
48
51
|
var placeholderFadeInKeyframes = null;
|
|
@@ -105,7 +108,7 @@ var editorContentStyles = {
|
|
|
105
108
|
aiPanelDarkStyles: "_1q1sa6bd _bi6aa6bd",
|
|
106
109
|
alignMultipleWrappedImageInLayoutStyles: "_ali2idpf _14i5idpf _pru0idpf",
|
|
107
110
|
annotationStyles: "_1x2nt94y _1xqtt94y _1s25t94y _17qpt94y _1ubhidpf _172zidpf _9neqidpf _jydlidpf _1k26yh40 _1613yh40 _wmhayh40 _1qihyh40 _w0epidpf _ghwiidpf _6f0lidpf _1f3widpf _x81614y2 _9onx14y2 _1hbb14y2 _1p9g14y2 _1pjt14y2 _1t8514y2 _1fqx14y2 _1jyp14y2 _1m2zidpf _jd6pidpf _1nl9idpf _1vgtidpf _1edaidpf _du1kidpf _1g35idpf _17clidpf _92g41l7b _1wys1l7b _1xgk1l7b _7kmy1l7b _1xm91l7b _1owy1l7b _iqym1l7b _1dyh1l7b _1c0fidpf _o1p8idpf _3nq8idpf _q353idpf _km2cidpf _1xktidpf _1t0tidpf _1cr2idpf _iwzr1vrj _u5bs1vrj _1ibg1vrj _xkuf1vrj _66yetlke _19vztlke _dnsrtlke _drnbtlke _10h6v77o _1v9ev77o _ah88v77o _8grqv77o _x53a1o1l _1d6qfeiv _ojmct7xp _kn991o1l _o5elfeiv _o7dvt7xp _19vz1wug _1n0xibhp _1xmbfeiv _l0rkaetg _1c20feiv _168dt7xp",
|
|
108
|
-
backgroundColorStyles: "",
|
|
111
|
+
backgroundColorStyles: "_1l4zlb4i _11q31i5q _19n6t94y _b3ovyh40 _1150qvcn _642in7od _1vp0n7od",
|
|
109
112
|
baseStyles: "_t7ab1vi7 _anrdukw8 _n6a11fwx _uw641q08 _fo6014dc _1gvnmqba _j03f1qop _qmjbxjz2 _zy25uj17 _pg931osq _121i1r31 _dcmgglyw _nv9v1o36 _19rk1uph _u8en3mia _3iqe18il _988v1osq _pi27grho _10zo1osq _1j8i1xb4",
|
|
110
113
|
baseStylesMaxContainerWidthFixes: "_19rk1l99",
|
|
111
114
|
blockMarksStyles: "_1244idpf _1qkxidpf _1e6iidpf _dvqjidpf _etngidpf _1jl2idpf _1je9idpf _1db9idpf _15i0idpf _16d4idpf _17liidpf _pxvridpf _1v4iidpf _s8m8idpf _16fuidpf _1543idpf _4offidpf _ttnbidpf _ujemidpf _1171idpf _mzasidpf _r8oxidpf _1pycidpf _6shmidpf _1bd0idpf _54e7idpf _1tenidpf _jzq1idpf _czpfidpf _1oraidpf _1kg4idpf _ksblidpf _1af7idpf _72x4idpf _zlwmidpf _7m6lidpf _1x2sidpf _3q5uidpf _11ukidpf _n65sidpf _1nn0idpf _1hwxidpf _j2goidpf _rfl4idpf _qhe2idpf _h4bbidpf _rjmvidpf _183yidpf _fk2nidpf _3429idpf _j543idpf _1op6idpf _mcklidpf _1uf8idpf _110lidpf _17agidpf _d9tridpf _f5slidpf _b9adidpf _1859idpf _1hrzidpf _1du2idpf _gdx6idpf _1av3idpf _1uj7idpf _s6y9idpf _ocz2idpf _129midpf _kj6kidpf _1uv9idpf _1tieidpf _ri4ridpf _tw0uidpf _15epidpf _12uhidpf _12i1idpf _vm1cidpf _jj6didpf _3d3tidpf _1xdsidpf",
|
|
@@ -117,8 +120,8 @@ var editorContentStyles = {
|
|
|
117
120
|
blocktypeStyles_without_fg_platform_editor_typography_ugc: "",
|
|
118
121
|
codeBlockStyles: "",
|
|
119
122
|
codeBlockStylesWithEmUnits: "",
|
|
120
|
-
codeMarkStyles: "",
|
|
121
|
-
codeMarkStylesA11yFix: "",
|
|
123
|
+
codeMarkStyles: "_59uzyh40 _6p44m5ip _1i9tyh40 _2lvxm5ip _9g7rfajl _1iyw1wug _syi51wug _pwh8glyw _af7gi8nm _1bsc1nu9 _1atv187e _1srjqvcn _z49mi7uo _95t2zzfg _ri7p1wqq _5061i7a9 _9ef31hna _or5e1jtm",
|
|
124
|
+
codeMarkStylesA11yFix: "_1iywn7od _syi5n7od",
|
|
122
125
|
commentEditorStyles: "_16jlkb7n _1reozryt _vwz41tcg _ca0qv47k _u5f3v47k _n3tdv47k _19bvv47k _1lbautpp _2k8xutpp _4aknutpp _1r9butpp _1pg2v77o _1ocsv77o _8ctj1b4h",
|
|
123
126
|
cursorStyles: "_178n1j28 _1xy6glyw _102f1j28",
|
|
124
127
|
dangerDateStyles: "_o7sybimv",
|
|
@@ -128,7 +131,7 @@ var editorContentStyles = {
|
|
|
128
131
|
decisionDangerStyles: "",
|
|
129
132
|
decisionIconWithVisualRefresh: "",
|
|
130
133
|
decisionStyles: "",
|
|
131
|
-
diffListStyles: "",
|
|
134
|
+
diffListStyles: "_10a5ox06",
|
|
132
135
|
editorControlsSmartCardStyles: "",
|
|
133
136
|
editorLargeGutterPuddingBaseStyles: "_1vk21ex1",
|
|
134
137
|
editorLargeGutterPuddingBaseStylesEditorControls: "_1vk2t9kd",
|
|
@@ -155,16 +158,16 @@ var editorContentStyles = {
|
|
|
155
158
|
firstCodeBlockWithNoMarginOld: "",
|
|
156
159
|
firstFloatingToolbarButtonStyles: "_j9yv7g83",
|
|
157
160
|
firstWrappedMediaStyles: "_e519idpf _pxl0idpf _1sn3idpf _ripsidpf",
|
|
158
|
-
fontSizeStyles: "",
|
|
161
|
+
fontSizeStyles: "_hym9vvzz _ir60vvzz _1di9vvzz _zy611kw7",
|
|
159
162
|
fullPageEditorStyles: "_16jlkb7n _4t3i1osq _18m915zi _kqswh2mm _1e0c1txw _2lx21bp4 _1dm8q5uf",
|
|
160
163
|
gapCursorStyles: "_3y8g1j28 _d3za1ule _1fzu1j28 _1ug81hdd _lh5tdrnj _bmfv9cwz _8md310zz _1ag412c5 _9ubpb3bt _1o0g1ule _11h1stnw _19sfidpf _1z0n1osq _5cxqglyw _l4vzglyw _npmhh2mm _1ci21j28 _vtgestnw _1yi41osq _gdp01osq _3n591ule _1pjtr5cr _19upr5cr _14ib1ssb _y1fl1ssb _fzk41ssb _1f6mzr6s _1eaezr6s _yd46zr6s _1texusic _bur2idpf _n4szidpf _jlwvidpf _1fusidpf _4ieeidpf _187pidpf _18efidpf _aycbidpf _1t6mglyw _sb9fglyw _lf1tglyw _15haglyw _1g4eglyw _d27rglyw _ajy9glyw _1syzglyw _10zwglyw _1qypglyw _y41iglyw _uk93idpf _1eobidpf _1ghsidpf _1rpoidpf _cggnidpf _1supidpf _yyaxidpf _stw0idpf _7hwtidpf _1x70idpf _nh0eidpf _k8k0idpf _xpqwidpf _1ancidpf _iauqidpf _1762idpf _1fbjidpf _1le7idpf _14f4idpf _4wchidpf _18uvidpf _1gklidpf _736didpf _7fayidpf _1q471e5h _1nuq1e5h _97xa15vq _1u0115vq _kklf15vq _1xcb15vq _f7xi15vq _drld15vq _fk7o1ule _17291ule _1z0h1ule _1em21ule _70jd1ule _1xog1ule _beg3idpf _1xfvidpf _js8cidpf _zzusidpf _ft1bidpf _1duxidpf _5sz3f705 _oq4if705 _17kkf705 _awp7f705 _1kxaf705 _1e60f705 _p31f1hrf _1rcq1hrf _1uer1hrf _15a61hrf _1lbj1hrf _1l3q1hrf _1ab3idpf _16k0idpf _r6joidpf _mpruidpf _x74zidpf _18pfidpf _1gvgidpf _1q0gidpf _sdnkidpf _zgemidpf _1vyzidpf _ydciidpf _1g35idpf _ieodidpf _vr8nidpf _1vtyidpf _ndfaidpf _4gkwidpf _1x5zidpf _1wgaidpf _o0lfidpf _knnuidpf _1afyidpf _1hb9idpf",
|
|
161
164
|
gapCursorStylesVisibilityFix: "_1ys91j28",
|
|
162
|
-
gridStyles: "",
|
|
165
|
+
gridStyles: "_1pea1jj1 _1qw3ia51 _155q1o8l _p3p6usvi _z2xw1osq _nbea1n1a _1kbpidpf _8nch188o _8ctjfknx _1pg2xmi2 _1ocsxmi2 _17ht1h7a _1713cs5v _3ojs1n9t _dai01kxc _c94u1osq _1p0gglyw",
|
|
163
166
|
hideCursorWhenHideSelectionStyles: "_uuop1j28",
|
|
164
167
|
hideSelectionStyles: "_nuih1j28 _9o1p1j28",
|
|
165
|
-
hyperLinkFloatingToolbarStyles: "",
|
|
168
|
+
hyperLinkFloatingToolbarStyles: "_14olidpf _1499idpf _w11vidpf _162zidpf",
|
|
166
169
|
indentationStyles: "",
|
|
167
|
-
InlineNodeViewSharedStyles: "",
|
|
170
|
+
InlineNodeViewSharedStyles: "_omad1nu9 _64cs1rj4 _fukv1q9c _1rhx1jtm _1bbqglyw _1v741j28 _17xw1j28 _kdjsglyw _6q1jryon",
|
|
168
171
|
layoutBaseStyles: "",
|
|
169
172
|
layoutBaseStylesAdvanced: "",
|
|
170
173
|
layoutBaseStylesFixesUnderNestedDnDFG: "",
|
|
@@ -189,13 +192,14 @@ var editorContentStyles = {
|
|
|
189
192
|
layoutSelectedStylesNotAdvanced: "",
|
|
190
193
|
layoutStylesForView: "",
|
|
191
194
|
linkingVisualRefreshV1Styles: "",
|
|
192
|
-
linkStyles: "",
|
|
195
|
+
linkStyles: "_259w1r31 _rv8p8stv _1rxqnqa1 _1cw81ule _4m8e1r31 _b05uglyw _1pxsnqa1",
|
|
193
196
|
listDangerStyles: "",
|
|
194
|
-
listItemHiddenMarkerStyles: "",
|
|
197
|
+
listItemHiddenMarkerStyles: "_dhzqagmp _15cjagmp _1qvtgrf3 _od11grf3 _6jbkgrf3 _13q2grf3 _b1o8grf3 _kyt0grf3 _sneogrf3 _14xl126e",
|
|
195
198
|
listSelectedNodeStyles: "",
|
|
196
|
-
listsStyles: "",
|
|
197
|
-
listsStylesMarginLayoutShiftFix: "",
|
|
198
|
-
listsStylesSafariFix: "",
|
|
199
|
+
listsStyles: "_gtdbusvi _qd3musvi _87u1cuai _s7xpcuai _dlgt1o8l _j6t01o8l _wlqz1o8l _5rje1o8l _9b45j4ch _10i7j4ch _4ded1wth _17kl1wth _e08p1p3b _11311p3b _1xqjw4vn _1bq9w4vn _1n111fbg _1nq21fbg _14gj1k9k _1rnf1k9k _9j0yxfcs _1l0sxfcs _1a6x1fbg _fbx71fbg _huyw1k9k _132p1k9k _16oexfcs _1ir6xfcs _haa41wth _yw541wth _w39w1p3b _qok21p3b _8r0ew4vn _hubiw4vn _d10bhq3d _1q5dh2mm _8wmvoqnp",
|
|
200
|
+
listsStylesMarginLayoutShiftFix: "_1wb5utpp _ul3mutpp _1orf1b66 _44741b66",
|
|
201
|
+
listsStylesSafariFix: "_omxdf705 _11t078tn _96x216px _14e716px _s8y916px",
|
|
202
|
+
listsDenseStyles: "_tmq91tuv _1bzj1tuv _si4z1tuv _1tud1tuv _rajy1tuv _1orf1tuv _44741tuv",
|
|
199
203
|
maxModeReizeFixStyles: "_1gpc1lj4 _4q241osq _w33agrho",
|
|
200
204
|
mediaAlignmentStyles: "",
|
|
201
205
|
mediaCaptionStyles: "",
|
|
@@ -268,7 +272,7 @@ var editorContentStyles = {
|
|
|
268
272
|
telepointerStyle: "_1pbgwadc _x96nwadc _1gna19qg _1tpb19qg _1e4lstnw _flesstnw _1u701ule _w6dp1ule _10c7glyw _1q09glyw _1ki7qvpr _63b3qvpr _aof7d439 _1br5d439 _vgzaidpf _r397idpf _1r8c1b66 _5m891b66 _e73x1b66 _vdne1b66 _1lc41itx _1gifkb7n _fl4uup1y _edxtidpf _1d8u546l _1vic5d63 _nfsm1xbj _o0dm16z4 _7xjx1ytf _9cv91cra _fhbe16z4 _1p171ytf _fsoe13gw _2ss61y2m _gcu91ytf _4z8q1vyj _1p281y2m _1ku31ytf _q7vcidpf _ay6b6ebc _b82712n9 _yxs7kb7n _v9kukb7n",
|
|
269
273
|
textColorStyles: "_c0871i5q _lv7dn7od",
|
|
270
274
|
textDangerStyles: "",
|
|
271
|
-
textHighlightPaddingStyles: "",
|
|
275
|
+
textHighlightPaddingStyles: "_1fwwv77o _1jbz1i6y _1n37v77o _1tdl1i6y",
|
|
272
276
|
textHighlightStyle: "_1ny71t12 _wnl31s93",
|
|
273
277
|
textSelectedNodeStyles: "",
|
|
274
278
|
unsupportedStyles: "",
|
|
@@ -296,6 +300,7 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
|
|
|
296
300
|
var isComment = appearance === 'comment';
|
|
297
301
|
var isChromeless = appearance === 'chromeless';
|
|
298
302
|
var baseFontSize = (0, _getBaseFontSize.getBaseFontSize)(appearance, contentMode);
|
|
303
|
+
var isDense = !!baseFontSize && baseFontSize !== _editorSharedStyles.akEditorFullPageDefaultFontSize;
|
|
299
304
|
var style = (0, _experiments.editorExperiment)('platform_editor_preview_panel_responsiveness', true, {
|
|
300
305
|
exposure: true
|
|
301
306
|
}) ? {
|
|
@@ -325,7 +330,9 @@ var EditorContentContainerCompiled = exports.EditorContentContainerCompiled = /*
|
|
|
325
330
|
exposure: true
|
|
326
331
|
}) && editorContentStyles.listSelectedNodeStyles, (0, _experiments.editorExperiment)('platform_editor_block_menu', true, {
|
|
327
332
|
exposure: true
|
|
328
|
-
}) && editorContentStyles.textSelectedNodeStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? editorContentStyles.blocktypeStyles_fg_platform_editor_typography_ugc : editorContentStyles.blocktypeStyles_without_fg_platform_editor_typography_ugc, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && editorContentStyles.blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, editorContentStyles.codeMarkStyles, (0, _expValEquals.expValEquals)('platform_editor_a11y_scrollable_region', 'isEnabled', true) && editorContentStyles.codeMarkStylesA11yFix, editorContentStyles.textColorStyles, editorContentStyles.backgroundColorStyles, editorContentStyles.textHighlightPaddingStyles, editorContentStyles.listsStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_flexible_list_schema', 'isEnabled', true) && editorContentStyles.listItemHiddenMarkerStyles, editorContentStyles.diffListStyles,
|
|
333
|
+
}) && editorContentStyles.textSelectedNodeStyles, (0, _platformFeatureFlags.fg)('platform_editor_typography_ugc') ? editorContentStyles.blocktypeStyles_fg_platform_editor_typography_ugc : editorContentStyles.blocktypeStyles_without_fg_platform_editor_typography_ugc, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && editorContentStyles.blocktypeStyles_fg_platform_editor_nested_dnd_styles_changes, editorContentStyles.codeMarkStyles, (0, _expValEquals.expValEquals)('platform_editor_a11y_scrollable_region', 'isEnabled', true) && editorContentStyles.codeMarkStylesA11yFix, editorContentStyles.textColorStyles, editorContentStyles.backgroundColorStyles, editorContentStyles.textHighlightPaddingStyles, editorContentStyles.listsStyles, (0, _expValEqualsNoExposure.expValEqualsNoExposure)('platform_editor_flexible_list_schema', 'isEnabled', true) && editorContentStyles.listItemHiddenMarkerStyles, editorContentStyles.diffListStyles, contentMode === 'compact' && ((0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) ||
|
|
334
|
+
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
335
|
+
(0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp')) && isDense && editorContentStyles.listsDenseStyles, (0, _expValEquals.expValEquals)('cc_editor_ttvc_release_bundle_one', 'listLayoutShiftFix', true) && isFullPage && editorContentStyles.listsStylesMarginLayoutShiftFix, editorContentStyles.ruleStyles, editorContentStyles.smartCardDiffStyles, (0, _expValEquals.expValEquals)('platform_editor_enghealth_a11y_jan_fixes', 'isEnabled', true) ? editorContentStyles.showDiffDeletedNodeStylesNew : editorContentStyles.showDiffDeletedNodeStyles, editorContentStyles.mediaStyles, contentMode === 'compact' && ((0, _expValEquals.expValEquals)('confluence_compact_text_format', 'isEnabled', true) ||
|
|
329
336
|
// eslint-disable-next-line @atlaskit/platform/no-preconditioning
|
|
330
337
|
(0, _expValEquals.expValEquals)('cc_editor_ai_content_mode', 'variant', 'test') && (0, _platformFeatureFlags.fg)('platform_editor_content_mode_button_mvp')) && editorContentStyles.mediaCaptionStyles, (0, _platformFeatureFlags.fg)('platform_editor_fix_media_in_renderer') && editorContentStyles.firstWrappedMediaStyles, editorContentStyles.telepointerStyle, /* This needs to be after telepointer styles as some overlapping rules have equal specificity, and so the order is significant */
|
|
331
338
|
editorContentStyles.telepointerColorAndCommonStyle, editorContentStyles.gapCursorStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) && editorContentStyles.gapCursorStylesVisibilityFix, editorContentStyles.panelStyles, editorContentStyles.nestedPanelBorderStylesMixin, (0, _platformFeatureFlags.fg)('platform_editor_nested_dnd_styles_changes') && editorContentStyles.panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes, editorContentStyles.panelStylesMixin, editorContentStyles.mentionsStyles, editorContentStyles.tasksAndDecisionsStyles,
|
|
@@ -323,7 +323,9 @@ var EditorContentContainerEmotion = exports.EditorContentContainerEmotion = /*#_
|
|
|
323
323
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
324
324
|
_findReplaceStyles.findReplaceStylesNewWithA11Y :
|
|
325
325
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
326
|
-
_findReplaceStyles.findReplaceStyles, (0,
|
|
326
|
+
_findReplaceStyles.findReplaceStyles, (0, _experiments.editorExperiment)('platform_synced_block', true) && (0, _platformFeatureFlags.fg)('platform_synced_block_patch_11') &&
|
|
327
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
328
|
+
_findReplaceStyles.findReplaceStylesWithRefSyncBlock, (0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) &&
|
|
327
329
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
328
330
|
_findReplaceStyles.findReplaceStylesNewWithCodeblockColorContrastFix, !(0, _expValEquals.expValEquals)('platform_editor_find_and_replace_improvements', 'isEnabled', true) &&
|
|
329
331
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
@@ -4,7 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.findReplaceStylesWithCodeblockColorContrastFix = exports.findReplaceStylesNewWithCodeblockColorContrastFix = exports.findReplaceStylesNewWithA11Y = exports.findReplaceStyles = void 0;
|
|
7
|
+
exports.findReplaceStylesWithRefSyncBlock = exports.findReplaceStylesWithCodeblockColorContrastFix = exports.findReplaceStylesNewWithCodeblockColorContrastFix = exports.findReplaceStylesNewWithA11Y = exports.findReplaceStyles = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
@@ -212,4 +212,57 @@ var findReplaceStylesNewWithA11Y = exports.findReplaceStylesNewWithA11Y = (0, _r
|
|
|
212
212
|
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t"),
|
|
213
213
|
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
214
214
|
}
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
218
|
+
var findReplaceStylesWithRefSyncBlock = exports.findReplaceStylesWithRefSyncBlock = (0, _react.css)({
|
|
219
|
+
// sync block (reference) - inactive match - light mode - without node selection
|
|
220
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
221
|
+
'.search-match-block.ak-editor-sync-block': {
|
|
222
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
223
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", "\n\t\t"),
|
|
224
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)"
|
|
225
|
+
},
|
|
226
|
+
// sync block (reference) - active match - light mode - without node selection
|
|
227
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
228
|
+
'.search-match-block.search-match-block-selected.ak-editor-sync-block': {
|
|
229
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder-hovered, #943D73)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)", "\n\t\t"),
|
|
230
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)"
|
|
231
|
+
},
|
|
232
|
+
// sync block (reference) - inactive match - light mode - with node selection
|
|
233
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
234
|
+
'.search-match-block.ak-editor-sync-block.ak-editor-selected-node': {
|
|
235
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-border-accent-magenta, #CD519D)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-subtler, #FDD0EC)", ",\n\t\t0 0 0 1px ", "var(--ds-border-selected, #1868DB)", "\n\t\t"),
|
|
236
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtler, #FDD0EC)"
|
|
237
|
+
},
|
|
238
|
+
// sync block (reference) - active match - light mode - with node selection
|
|
239
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
240
|
+
'.search-match-block.search-match-block-selected.ak-editor-sync-block.ak-editor-selected-node': {
|
|
241
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-focused, #4688EC)"),
|
|
242
|
+
backgroundColor: "var(--ds-background-accent-magenta-subtlest-pressed, #FCB6E1)"
|
|
243
|
+
},
|
|
244
|
+
// sync block (reference) - inactive match - dark mode - without node selection
|
|
245
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
246
|
+
'.search-match-block.search-match-dark.ak-editor-sync-block': {
|
|
247
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #77325B)", "\n\t\t"),
|
|
248
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #77325B)"
|
|
249
|
+
},
|
|
250
|
+
// sync block (reference) - active match - dark mode - without node selection
|
|
251
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
252
|
+
'.search-match-block.search-match-block-selected.search-match-dark.ak-editor-sync-block': {
|
|
253
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 4px ", "var(--ds-background-accent-magenta-bolder-hovered, #943D73)", "\n\t\t"),
|
|
254
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
255
|
+
},
|
|
256
|
+
// sync block (reference) - inactive match - dark mode - with node selection
|
|
257
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
258
|
+
'.search-match-block.search-match-dark.ak-editor-sync-block.ak-editor-selected-node': {
|
|
259
|
+
boxShadow: "\n\t\tinset 0 0 0 1px ".concat("var(--ds-background-accent-magenta-bolder, #AE4787)", ",\n\t\tinset 0 0 0 5px ", "var(--ds-background-accent-magenta-bolder-pressed, #77325B)", ",\n\t\t0 0 0 1px ", "var(--ds-border-selected, #1868DB)", "\n\t\t"),
|
|
260
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-pressed, #77325B)"
|
|
261
|
+
},
|
|
262
|
+
// sync block (reference) - active match - dark mode - with node selection
|
|
263
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
264
|
+
'.search-match-block.search-match-block-selected.search-match-dark.ak-editor-sync-block.ak-editor-selected-node': {
|
|
265
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-focused, #4688EC)"),
|
|
266
|
+
backgroundColor: "var(--ds-background-accent-magenta-bolder-hovered, #943D73)"
|
|
267
|
+
}
|
|
215
268
|
});
|