@atlaskit/editor-core 209.6.5 → 209.7.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 +16 -0
- package/dist/cjs/ui/ContentStyles/index.js +1 -1
- package/dist/cjs/ui/ContentStyles/tasks-and-decisions.js +205 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +4 -0
- package/dist/cjs/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +205 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/ui/ContentStyles/index.js +2 -2
- package/dist/es2019/ui/ContentStyles/tasks-and-decisions.js +206 -0
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +5 -1
- package/dist/es2019/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +206 -0
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/ui/ContentStyles/index.js +2 -2
- package/dist/esm/ui/ContentStyles/tasks-and-decisions.js +204 -0
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +5 -1
- package/dist/esm/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.js +204 -0
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +29 -1
- package/dist/types/presets/universal.d.ts +29 -1
- package/dist/types/presets/useUniversalPreset.d.ts +29 -1
- package/dist/types/ui/ContentStyles/tasks-and-decisions.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +1 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +35 -1
- package/dist/types-ts4.5/presets/universal.d.ts +35 -1
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +35 -1
- package/dist/types-ts4.5/ui/ContentStyles/tasks-and-decisions.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/tasksAndDecisionsStyles.d.ts +1 -0
- package/package.json +6 -6
|
@@ -342,4 +342,210 @@ export const taskItemStyles = css({
|
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
348
|
+
export const taskItemStylesWithBlockTaskItem = css({
|
|
349
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
350
|
+
'[data-prosemirror-node-name="taskItem"], [data-prosemirror-node-name="blockTaskItem"]': {
|
|
351
|
+
listStyle: 'none'
|
|
352
|
+
},
|
|
353
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
354
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="task-item-main"], [data-prosemirror-node-name="blockTaskItem"] [data-component="task-item-main"]': {
|
|
355
|
+
display: 'flex',
|
|
356
|
+
flexDirection: 'row',
|
|
357
|
+
position: 'relative'
|
|
358
|
+
},
|
|
359
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
360
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="placeholder"], [data-prosemirror-node-name="blockTaskItem"] [data-component="placeholder"]': {
|
|
361
|
+
position: 'absolute',
|
|
362
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
363
|
+
margin: `0 0 0 calc(${"var(--ds-space-100, 8px)"} * 3)`,
|
|
364
|
+
pointerEvents: 'none',
|
|
365
|
+
textOverflow: 'ellipsis',
|
|
366
|
+
overflow: 'hidden',
|
|
367
|
+
whiteSpace: 'nowrap',
|
|
368
|
+
maxWidth: 'calc(100% - 50px)',
|
|
369
|
+
display: 'none'
|
|
370
|
+
},
|
|
371
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
372
|
+
"[data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder'], [data-prosemirror-node-name='blockTaskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
|
|
373
|
+
display: 'block'
|
|
374
|
+
},
|
|
375
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
376
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="content"], [data-prosemirror-node-name="blockTaskItem"] [data-component="content"]': {
|
|
377
|
+
margin: 0,
|
|
378
|
+
wordWrap: 'break-word',
|
|
379
|
+
minWidth: 0,
|
|
380
|
+
flex: '1 1 auto'
|
|
381
|
+
},
|
|
382
|
+
// copied styles from packages/design-system/icon/src/components/icon-new.tsx
|
|
383
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
384
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"], [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"]': {
|
|
385
|
+
display: 'inline-block',
|
|
386
|
+
boxSizing: 'border-box',
|
|
387
|
+
flexShrink: 0,
|
|
388
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
389
|
+
lineHeight: 1,
|
|
390
|
+
paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
|
|
391
|
+
paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)'
|
|
392
|
+
},
|
|
393
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
394
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"] svg, [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"] svg': {
|
|
395
|
+
overflow: 'hidden',
|
|
396
|
+
pointerEvents: 'none',
|
|
397
|
+
color: 'currentColor',
|
|
398
|
+
verticalAlign: 'bottom',
|
|
399
|
+
width: "var(--ds-space-200, 16px)",
|
|
400
|
+
height: "var(--ds-space-200, 16px)"
|
|
401
|
+
},
|
|
402
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
403
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon]': {
|
|
404
|
+
display: 'none'
|
|
405
|
+
},
|
|
406
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
407
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon]': {
|
|
408
|
+
display: 'inline'
|
|
409
|
+
},
|
|
410
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
411
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon]': {
|
|
412
|
+
display: 'inline'
|
|
413
|
+
},
|
|
414
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
415
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon]': {
|
|
416
|
+
display: 'none'
|
|
417
|
+
},
|
|
418
|
+
// 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
|
|
419
|
+
[`[data-prosemirror-node-name="taskItem"] .${TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER}, [data-prosemirror-node-name="blockTaskItem"] .${TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER}`]: {
|
|
420
|
+
flex: '0 0 24px',
|
|
421
|
+
width: '24px',
|
|
422
|
+
height: '24px',
|
|
423
|
+
position: 'relative',
|
|
424
|
+
alignSelf: 'start',
|
|
425
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
426
|
+
"& > input[type='checkbox']": {
|
|
427
|
+
width: '16px',
|
|
428
|
+
height: '16px',
|
|
429
|
+
zIndex: 1,
|
|
430
|
+
cursor: 'pointer',
|
|
431
|
+
outline: 'none',
|
|
432
|
+
margin: 0,
|
|
433
|
+
opacity: 0,
|
|
434
|
+
position: 'absolute',
|
|
435
|
+
top: '50%',
|
|
436
|
+
left: '50%',
|
|
437
|
+
transform: 'translate(-50%, -50%)',
|
|
438
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
439
|
+
'&[disabled]': {
|
|
440
|
+
cursor: 'default'
|
|
441
|
+
},
|
|
442
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
443
|
+
'+ span': {
|
|
444
|
+
width: '24px',
|
|
445
|
+
height: '24px',
|
|
446
|
+
position: 'absolute',
|
|
447
|
+
top: '50%',
|
|
448
|
+
left: '50%',
|
|
449
|
+
transform: 'translate(-50%, -50%)'
|
|
450
|
+
},
|
|
451
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
452
|
+
'+ span > svg': {
|
|
453
|
+
boxSizing: 'border-box',
|
|
454
|
+
display: 'inline',
|
|
455
|
+
top: '50%',
|
|
456
|
+
left: '50%',
|
|
457
|
+
transform: 'translate(-50%, -50%)',
|
|
458
|
+
maxWidth: 'unset',
|
|
459
|
+
maxHeight: 'unset',
|
|
460
|
+
position: 'absolute',
|
|
461
|
+
overflow: 'hidden',
|
|
462
|
+
color: "var(--ds-background-input, #FFFFFF)",
|
|
463
|
+
transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
|
|
464
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
465
|
+
'path:first-of-type': {
|
|
466
|
+
visibility: 'hidden'
|
|
467
|
+
},
|
|
468
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
469
|
+
'rect:first-of-type': {
|
|
470
|
+
stroke: "var(--ds-border-input, #8590A2)",
|
|
471
|
+
strokeWidth: 1,
|
|
472
|
+
transition: 'stroke 0.2s ease-in-out'
|
|
473
|
+
}
|
|
474
|
+
},
|
|
475
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
476
|
+
'&:hover + span > svg': {
|
|
477
|
+
color: "var(--ds-background-input-hovered, #F7F8F9)",
|
|
478
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
479
|
+
'rect:first-of-type': {
|
|
480
|
+
stroke: "var(--ds-border-input, #8590A2)"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
484
|
+
'&:checked:hover + span > svg': {
|
|
485
|
+
color: "var(--ds-background-selected-bold-hovered, #0055CC)",
|
|
486
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
487
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
488
|
+
'rect:first-of-type': {
|
|
489
|
+
stroke: "var(--ds-background-selected-bold-hovered, #0055CC)"
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
'&:checked': {
|
|
493
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
494
|
+
'+ span > svg': {
|
|
495
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
496
|
+
'path:first-of-type': {
|
|
497
|
+
visibility: 'visible'
|
|
498
|
+
},
|
|
499
|
+
color: "var(--ds-background-selected-bold, #0C66E4)",
|
|
500
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
501
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
502
|
+
'rect:first-of-type': {
|
|
503
|
+
stroke: "var(--ds-background-selected-bold, #0C66E4)"
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
},
|
|
507
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
508
|
+
'&:active + span > svg': {
|
|
509
|
+
color: "var(--ds-background-input-pressed, #FFFFFF)",
|
|
510
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
511
|
+
'rect:first-of-type': {
|
|
512
|
+
stroke: "var(--ds-border, #091E4224)"
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
516
|
+
'&:checked:active + span > svg': {
|
|
517
|
+
color: "var(--ds-background-input-pressed, #FFFFFF)",
|
|
518
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
519
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
520
|
+
'rect:first-of-type': {
|
|
521
|
+
stroke: "var(--ds-border, #091E4224)"
|
|
522
|
+
}
|
|
523
|
+
},
|
|
524
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
525
|
+
'&:disabled + span > svg, &:disabled:hover + span > svg, &:disabled:focus + span > svg, &:disabled:active + span > svg': {
|
|
526
|
+
color: "var(--ds-background-disabled, #091E4208)",
|
|
527
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
528
|
+
'rect:first-of-type': {
|
|
529
|
+
stroke: "var(--ds-background-disabled, #091E4208)"
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
533
|
+
'&:disabled:checked + span > svg': {
|
|
534
|
+
fill: "var(--ds-icon-disabled, #091E424F)"
|
|
535
|
+
},
|
|
536
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
537
|
+
'&:focus + span::after': {
|
|
538
|
+
position: 'absolute',
|
|
539
|
+
width: "var(--ds-space-200, 16px)",
|
|
540
|
+
height: "var(--ds-space-200, 16px)",
|
|
541
|
+
border: `2px solid ${"var(--ds-border-focused, #388BFF)"}`,
|
|
542
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
543
|
+
content: "''",
|
|
544
|
+
display: 'block',
|
|
545
|
+
top: '50%',
|
|
546
|
+
left: '50%',
|
|
547
|
+
transform: 'translate(-50%, -50%)'
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
345
551
|
});
|
|
@@ -57,7 +57,7 @@ import { shadowStyles } from './styles/shadowStyles';
|
|
|
57
57
|
import { editorControlsSmartCardStyles, linkingVisualRefreshV1Styles, smartCardStyles, smartCardStylesWithSearchMatch, smartCardStylesWithSearchMatchAndPreviewPanelResponsiveness, smartLinksInLivePagesStyles } from './styles/smartCardStyles';
|
|
58
58
|
import { statusStyles, statusStylesMixin_fg_platform_component_visual_refresh, statusStylesMixin_fg_platform_component_visual_refresh_with_search_match, statusStylesMixin_without_fg_platform_component_visual_refresh, statusStylesMixin_without_fg_platform_component_visual_refresh_with_search_match } from './styles/statusStyles';
|
|
59
59
|
import { tableCommentEditorStyles, tableLayoutFixes } from './styles/tableStyles';
|
|
60
|
-
import { decisionStyles, tasksAndDecisionsStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, taskItemStyles } from './styles/tasksAndDecisionsStyles';
|
|
60
|
+
import { decisionStyles, tasksAndDecisionsStyles, decisionIconWithVisualRefresh, decisionIconWithoutVisualRefresh, taskItemStyles, taskItemStylesWithBlockTaskItem } from './styles/tasksAndDecisionsStyles';
|
|
61
61
|
import { telepointerColorAndCommonStyle, telepointerStyle, telepointerStyleWithInitialOnly } from './styles/telepointerStyles';
|
|
62
62
|
import { textColorStyles } from './styles/textColorStyles';
|
|
63
63
|
import { textHighlightStyle } from './styles/textHighlightStyles';
|
|
@@ -218,6 +218,10 @@ const EditorContentContainer = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
218
218
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
219
219
|
decisionStyles,
|
|
220
220
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
221
|
+
expValEqualsNoExposure('platform_editor_blocktaskitem_node', 'isEnabled', true) ?
|
|
222
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
223
|
+
taskItemStylesWithBlockTaskItem :
|
|
224
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
221
225
|
taskItemStyles, fg('platform-visual-refresh-icons') &&
|
|
222
226
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
|
|
223
227
|
decisionIconWithVisualRefresh, !fg('platform-visual-refresh-icons') &&
|
|
@@ -422,4 +422,210 @@ export const taskItemStyles = css({
|
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
+
});
|
|
426
|
+
|
|
427
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
428
|
+
export const taskItemStylesWithBlockTaskItem = css({
|
|
429
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
430
|
+
'[data-prosemirror-node-name="taskItem"], [data-prosemirror-node-name="blockTaskItem"]': {
|
|
431
|
+
listStyle: 'none'
|
|
432
|
+
},
|
|
433
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
434
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="task-item-main"], [data-prosemirror-node-name="blockTaskItem"] [data-component="task-item-main"]': {
|
|
435
|
+
display: 'flex',
|
|
436
|
+
flexDirection: 'row',
|
|
437
|
+
position: 'relative'
|
|
438
|
+
},
|
|
439
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
440
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="placeholder"], [data-prosemirror-node-name="blockTaskItem"] [data-component="placeholder"]': {
|
|
441
|
+
position: 'absolute',
|
|
442
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
443
|
+
margin: `0 0 0 calc(${"var(--ds-space-100, 8px)"} * 3)`,
|
|
444
|
+
pointerEvents: 'none',
|
|
445
|
+
textOverflow: 'ellipsis',
|
|
446
|
+
overflow: 'hidden',
|
|
447
|
+
whiteSpace: 'nowrap',
|
|
448
|
+
maxWidth: 'calc(100% - 50px)',
|
|
449
|
+
display: 'none'
|
|
450
|
+
},
|
|
451
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
452
|
+
"[data-prosemirror-node-name='taskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder'], [data-prosemirror-node-name='blockTaskItem']:has([data-empty]):not(:has([data-type-ahead])) [data-component='placeholder']": {
|
|
453
|
+
display: 'block'
|
|
454
|
+
},
|
|
455
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
456
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="content"], [data-prosemirror-node-name="blockTaskItem"] [data-component="content"]': {
|
|
457
|
+
margin: 0,
|
|
458
|
+
wordWrap: 'break-word',
|
|
459
|
+
minWidth: 0,
|
|
460
|
+
flex: '1 1 auto'
|
|
461
|
+
},
|
|
462
|
+
// copied styles from packages/design-system/icon/src/components/icon-new.tsx
|
|
463
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
464
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"], [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"]': {
|
|
465
|
+
display: 'inline-block',
|
|
466
|
+
boxSizing: 'border-box',
|
|
467
|
+
flexShrink: 0,
|
|
468
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
469
|
+
lineHeight: 1,
|
|
470
|
+
paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
|
|
471
|
+
paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)'
|
|
472
|
+
},
|
|
473
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
474
|
+
'[data-prosemirror-node-name="taskItem"] [data-component="checkbox-icon-wrap"] svg, [data-prosemirror-node-name="blockTaskItem"] [data-component="checkbox-icon-wrap"] svg': {
|
|
475
|
+
overflow: 'hidden',
|
|
476
|
+
pointerEvents: 'none',
|
|
477
|
+
color: 'currentColor',
|
|
478
|
+
verticalAlign: 'bottom',
|
|
479
|
+
width: "var(--ds-space-200, 16px)",
|
|
480
|
+
height: "var(--ds-space-200, 16px)"
|
|
481
|
+
},
|
|
482
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
483
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-checked-icon]': {
|
|
484
|
+
display: 'none'
|
|
485
|
+
},
|
|
486
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
487
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:not(:checked) + span [data-component=checkbox-unchecked-icon]': {
|
|
488
|
+
display: 'inline'
|
|
489
|
+
},
|
|
490
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
491
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-checked-icon]': {
|
|
492
|
+
display: 'inline'
|
|
493
|
+
},
|
|
494
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
495
|
+
'[data-prosemirror-node-name="taskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon], [data-prosemirror-node-name="blockTaskItem"] input[type=checkbox]:checked + span [data-component=checkbox-unchecked-icon]': {
|
|
496
|
+
display: 'none'
|
|
497
|
+
},
|
|
498
|
+
// 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
|
|
499
|
+
[`[data-prosemirror-node-name="taskItem"] .${TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER}, [data-prosemirror-node-name="blockTaskItem"] .${TaskDecisionSharedCssClassName.TASK_CHECKBOX_CONTAINER}`]: {
|
|
500
|
+
flex: '0 0 24px',
|
|
501
|
+
width: '24px',
|
|
502
|
+
height: '24px',
|
|
503
|
+
position: 'relative',
|
|
504
|
+
alignSelf: 'start',
|
|
505
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
506
|
+
"& > input[type='checkbox']": {
|
|
507
|
+
width: '16px',
|
|
508
|
+
height: '16px',
|
|
509
|
+
zIndex: 1,
|
|
510
|
+
cursor: 'pointer',
|
|
511
|
+
outline: 'none',
|
|
512
|
+
margin: 0,
|
|
513
|
+
opacity: 0,
|
|
514
|
+
position: 'absolute',
|
|
515
|
+
top: '50%',
|
|
516
|
+
left: '50%',
|
|
517
|
+
transform: 'translate(-50%, -50%)',
|
|
518
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
519
|
+
'&[disabled]': {
|
|
520
|
+
cursor: 'default'
|
|
521
|
+
},
|
|
522
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
523
|
+
'+ span': {
|
|
524
|
+
width: '24px',
|
|
525
|
+
height: '24px',
|
|
526
|
+
position: 'absolute',
|
|
527
|
+
top: '50%',
|
|
528
|
+
left: '50%',
|
|
529
|
+
transform: 'translate(-50%, -50%)'
|
|
530
|
+
},
|
|
531
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
532
|
+
'+ span > svg': {
|
|
533
|
+
boxSizing: 'border-box',
|
|
534
|
+
display: 'inline',
|
|
535
|
+
top: '50%',
|
|
536
|
+
left: '50%',
|
|
537
|
+
transform: 'translate(-50%, -50%)',
|
|
538
|
+
maxWidth: 'unset',
|
|
539
|
+
maxHeight: 'unset',
|
|
540
|
+
position: 'absolute',
|
|
541
|
+
overflow: 'hidden',
|
|
542
|
+
color: "var(--ds-background-input, #FFFFFF)",
|
|
543
|
+
transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
|
|
544
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
545
|
+
'path:first-of-type': {
|
|
546
|
+
visibility: 'hidden'
|
|
547
|
+
},
|
|
548
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
549
|
+
'rect:first-of-type': {
|
|
550
|
+
stroke: "var(--ds-border-input, #8590A2)",
|
|
551
|
+
strokeWidth: 1,
|
|
552
|
+
transition: 'stroke 0.2s ease-in-out'
|
|
553
|
+
}
|
|
554
|
+
},
|
|
555
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
556
|
+
'&:hover + span > svg': {
|
|
557
|
+
color: "var(--ds-background-input-hovered, #F7F8F9)",
|
|
558
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
559
|
+
'rect:first-of-type': {
|
|
560
|
+
stroke: "var(--ds-border-input, #8590A2)"
|
|
561
|
+
}
|
|
562
|
+
},
|
|
563
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
564
|
+
'&:checked:hover + span > svg': {
|
|
565
|
+
color: "var(--ds-background-selected-bold-hovered, #0055CC)",
|
|
566
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
567
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
568
|
+
'rect:first-of-type': {
|
|
569
|
+
stroke: "var(--ds-background-selected-bold-hovered, #0055CC)"
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
'&:checked': {
|
|
573
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
574
|
+
'+ span > svg': {
|
|
575
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
576
|
+
'path:first-of-type': {
|
|
577
|
+
visibility: 'visible'
|
|
578
|
+
},
|
|
579
|
+
color: "var(--ds-background-selected-bold, #0C66E4)",
|
|
580
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
581
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
582
|
+
'rect:first-of-type': {
|
|
583
|
+
stroke: "var(--ds-background-selected-bold, #0C66E4)"
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
},
|
|
587
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
588
|
+
'&:active + span > svg': {
|
|
589
|
+
color: "var(--ds-background-input-pressed, #FFFFFF)",
|
|
590
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
591
|
+
'rect:first-of-type': {
|
|
592
|
+
stroke: "var(--ds-border, #091E4224)"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
596
|
+
'&:checked:active + span > svg': {
|
|
597
|
+
color: "var(--ds-background-input-pressed, #FFFFFF)",
|
|
598
|
+
fill: "var(--ds-icon-inverse, #FFFFFF)",
|
|
599
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
600
|
+
'rect:first-of-type': {
|
|
601
|
+
stroke: "var(--ds-border, #091E4224)"
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
605
|
+
'&:disabled + span > svg, &:disabled:hover + span > svg, &:disabled:focus + span > svg, &:disabled:active + span > svg': {
|
|
606
|
+
color: "var(--ds-background-disabled, #091E4208)",
|
|
607
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
608
|
+
'rect:first-of-type': {
|
|
609
|
+
stroke: "var(--ds-background-disabled, #091E4208)"
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
613
|
+
'&:disabled:checked + span > svg': {
|
|
614
|
+
fill: "var(--ds-icon-disabled, #091E424F)"
|
|
615
|
+
},
|
|
616
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
617
|
+
'&:focus + span::after': {
|
|
618
|
+
position: 'absolute',
|
|
619
|
+
width: "var(--ds-space-200, 16px)",
|
|
620
|
+
height: "var(--ds-space-200, 16px)",
|
|
621
|
+
border: `2px solid ${"var(--ds-border-focused, #388BFF)"}`,
|
|
622
|
+
borderRadius: "var(--ds-space-050, 4px)",
|
|
623
|
+
content: "''",
|
|
624
|
+
display: 'block',
|
|
625
|
+
top: '50%',
|
|
626
|
+
left: '50%',
|
|
627
|
+
transform: 'translate(-50%, -50%)'
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
425
631
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const name = "@atlaskit/editor-core";
|
|
2
|
-
export const version = "209.6.
|
|
2
|
+
export const version = "209.6.5";
|
|
@@ -40,7 +40,7 @@ import { layoutStyles } from './layout';
|
|
|
40
40
|
import { mediaStyles } from './media';
|
|
41
41
|
import { panelStyles } from './panel';
|
|
42
42
|
import { statusStyles, statusNodeStyles } from './status';
|
|
43
|
-
import { taskDecisionStyles, taskDecisionIconWithoutVisualRefresh as decisionIconWithoutVisualRefresh, taskDecisionIconWithVisualRefresh as decisionIconWithVisualRefresh, taskItemStyles } from './tasks-and-decisions';
|
|
43
|
+
import { taskDecisionStyles, taskDecisionIconWithoutVisualRefresh as decisionIconWithoutVisualRefresh, taskDecisionIconWithVisualRefresh as decisionIconWithVisualRefresh, taskItemStyles, taskItemStylesWithBlockTaskItem } from './tasks-and-decisions';
|
|
44
44
|
|
|
45
45
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
46
46
|
export var linkStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", "\n\t}\n"])), linkSharedStyle);
|
|
@@ -165,7 +165,7 @@ var akEditorBreakpointForSmallDevice = "1266px";
|
|
|
165
165
|
var legacyContentStyles = function legacyContentStyles(props) {
|
|
166
166
|
return css(_templateObject0 || (_templateObject0 = _taggedTemplateLiteral(["\n\t--ak-editor--default-gutter-padding: ", "px;\n\t/* 52 is from akEditorGutterPaddingDynamic via editor-shared-styles */\n\t--ak-editor--large-gutter-padding: ", "px;\n\t--ak-editor--default-layout-width: ", "px;\n\t--ak-editor--full-width-layout-width: ", "px;\n\t/* calculate editor line length, 100cqw is the editor container width */\n\t--ak-editor--line-length: min(\n\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\tvar(--ak-editor--default-layout-width)\n\t);\n\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t--ak-editor--breakout-full-page-guttering-padding: calc(\n\t\tvar(--ak-editor--large-gutter-padding) * 2 + var(--ak-editor--default-gutter-padding)\n\t);\n\n\t--ak-editor--breakout-fallback-width: calc(\n\t\t100cqw - var(--ak-editor--breakout-full-page-guttering-padding)\n\t);\n\n\t.fabric-editor--full-width-mode {\n\t\t--ak-editor--line-length: min(\n\t\t\tcalc(100cqw - var(--ak-editor--large-gutter-padding) * 2),\n\t\t\tvar(--ak-editor--full-width-layout-width)\n\t\t);\n\n\t\t/* in full width appearances it's not possible to rely on cqw because it doesn't account for the page scrollbar, which depends on users system settings */\n\t\t--ak-editor--breakout-fallback-width: 100%;\n\t}\n\n\t.ProseMirror {\n\t\t--ak-editor-max-container-width: calc(100cqw - var(--ak-editor--large-gutter-padding));\n\t}\n\n\t/* We can't allow nodes that are inside other nodes to bleed from the parent container */\n\t.ProseMirror > div[data-prosemirror-node-block] [data-prosemirror-node-block] {\n\t\t--ak-editor-max-container-width: 100%;\n\t}\n\n\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t@container editor-area (width >= ", ") {\n\t\t.ProseMirror {\n\t\t\t--ak-editor--breakout-wide-layout-width: ", "px;\n\t\t}\n\t}\n\n\t", "\n\n\t.ProseMirror {\n\t\toutline: none;\n\t\tfont-size: ", "px;\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t\t", ";\n\t}\n\n\t.ProseMirror-hideselection *::selection {\n\t\tbackground: transparent;\n\t}\n\n\t.ProseMirror-hideselection *::-moz-selection {\n\t\tbackground: transparent;\n\t}\n\n\t/**\n\t * This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24\n\t *\n\t * 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection\n\t * 2. Cleanup duplicated style from platform_editor_advanced_code_blocks\n\t * https://product-fabric.atlassian.net/browse/ED-26331\n\t */\n\t", "\n\n\t/* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24 */\n\t", "\n\n\t.ProseMirror-selectednode {\n\t\toutline: none;\n\t}\n\n\t.ProseMirror-selectednode:empty {\n\t\toutline: 2px solid ", ";\n\t}\n\n\t.ProseMirror.ProseMirror-focused:has(.ProseMirror-mark-boundary-cursor) {\n\t\tcaret-color: transparent;\n\t}\n\t.ProseMirror:not(.ProseMirror-focused) .ProseMirror-mark-boundary-cursor {\n\t\tdisplay: none;\n\t}\n\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n\n ", "\n\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", ";\n\t", "\n\t", "\n\t", "\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n /* Switch between the two icons based on the visual refresh feature gate */\n\t", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n\n .panelView-content-wrap {\n\t\tbox-sizing: border-box;\n\t}\n\n\t.mediaGroupView-content-wrap ul {\n\t\tpadding: 0;\n\t}\n\n\t/** Needed to override any cleared floats, e.g. image wrapping */\n\n\tdiv.fabric-editor-block-mark[class^='fabric-editor-align'] {\n\t\tclear: none !important;\n\t}\n\n\t.fabric-editor-align-end {\n\t\ttext-align: right;\n\t}\n\n\t.fabric-editor-align-start {\n\t\ttext-align: left;\n\t}\n\n\t.fabric-editor-align-center {\n\t\ttext-align: center;\n\t}\n\n\t/* For FullPage only when inside a table\n\tRelated code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\tIn the \"editorContentAreaContainerStyle\" function */\n\t.fabric-editor--full-width-mode {\n\t\t.pm-table-container {\n\t\t\t.code-block,\n\t\t\t.extension-container,\n\t\t\t.multiBodiedExtension--container {\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\t}\n\n\t.pm-table-header-content-wrap :not(.fabric-editor-alignment),\n\t.pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark,\n\t.pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark {\n\t\tp:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n\t.pm-table-cell-content-wrap .mediaGroupView-content-wrap {\n\t\tclear: both;\n\t}\n\n\t.hyperlink-floating-toolbar,\n\t.", " {\n\t\tpadding: 0;\n\t}\n\n\t/* Legacy Link icon in the Atlaskit package\n is bigger than the others, new ADS icon does not have this issue\n */\n\t", "\n"])), akEditorGutterPadding, akEditorGutterPaddingDynamic(), akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, expValEqualsNoExposure('platform_editor_preview_panel_responsiveness', 'isEnabled', true) ? css(_templateObject1 || (_templateObject1 = _taggedTemplateLiteral(["\n\t\t\t\t/* container editor-area is defined in platform/packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts */\n\t\t\t\t@container editor-area (max-width: ", "px) {\n\t\t\t\t\t--ak-editor--large-gutter-padding: ", "px;\n\t\t\t\t}\n\t\t\t"])), akEditorFullPageNarrowBreakout, akEditorGutterPaddingReduced) : null, editorFontSize({
|
|
167
167
|
theme: props.theme
|
|
168
|
-
}), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, placeholderTextStyles, fg('platform_editor_system_fake_text_highlight_colour') && placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, gapCursorStyles, panelStyles(), mentionsStyles, mentionNodeStyles, fg('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1') ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles, fg('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_improvements_1') ? findReplaceStylesNewNoImportant : findReplaceStylesNew : findReplaceStyles, textHighlightStyle, taskDecisionStyles, taskItemStyles, fg('platform-visual-refresh-icons') && decisionIconWithVisualRefresh, !fg('platform-visual-refresh-icons') && decisionIconWithoutVisualRefresh, statusStyles(), statusNodeStyles(), annotationSharedStyles(), smartCardStyles(), getSmartCardSharedStyles(), dateStyles, dateNodeStyles, embedCardStyles(), unsupportedStyles, resizerStyles, pragmaticResizerStyles(), pragmaticStylesLayoutFirstNodeResizeHandleFix(), pragmaticResizerStylesForTooltip(), pragmaticResizerStylesWithReducedEditorGutter(), aiPanelStyles(props.colorMode), firstBlockNodeStylesNew, fg('platform_editor_vanilla_codebidi_warning') && codeBidiWarningStyles, MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
|
|
168
|
+
}), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, editorExperiment('platform_editor_advanced_code_blocks', true) ? css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror-hideselection {\n\t\t\t\t\tcaret-color: transparent;\n\t\t\t\t}\n\t\t\t"]))) : null, "var(--ds-border-focused, #8cf)", firstFloatingToolbarButtonStyles, placeholderTextStyles, fg('platform_editor_system_fake_text_highlight_colour') && placeholderTextStyles_fg_platform_editor_system_fake_text_highlight_colour, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_quick_insert_placeholder') ? placeholderWrapStyles : null, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), fg('confluence_team_presence_scroll_to_pointer') ? telepointerStyle : telepointerStyleWithInitialOnly, gapCursorStyles, panelStyles(), mentionsStyles, mentionNodeStyles, fg('platform_editor_centre_mention_padding') && mentionNodeStylesMixin_fg_platform_editor_centre_mention_padding, expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) && fg('platform_editor_find_and_replace_improvements_1') ? mentionsSelectionStylesWithSearchMatch : mentionSelectionStyles, fg('platform_editor_fix_emoji_style_selectors') ? emojiStylesWithSelectorFixes : emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), expValEqualsNoExposure('platform_editor_find_and_replace_improvements', 'isEnabled', true) ? fg('platform_editor_find_and_replace_improvements_1') ? findReplaceStylesNewNoImportant : findReplaceStylesNew : findReplaceStyles, textHighlightStyle, taskDecisionStyles, expValEqualsNoExposure('platform_editor_blocktaskitem_node', 'isEnabled', true) ? taskItemStylesWithBlockTaskItem : taskItemStyles, fg('platform-visual-refresh-icons') && decisionIconWithVisualRefresh, !fg('platform-visual-refresh-icons') && decisionIconWithoutVisualRefresh, statusStyles(), statusNodeStyles(), annotationSharedStyles(), smartCardStyles(), getSmartCardSharedStyles(), dateStyles, dateNodeStyles, embedCardStyles(), unsupportedStyles, resizerStyles, pragmaticResizerStyles(), pragmaticStylesLayoutFirstNodeResizeHandleFix(), pragmaticResizerStylesForTooltip(), pragmaticResizerStylesWithReducedEditorGutter(), aiPanelStyles(props.colorMode), firstBlockNodeStylesNew, fg('platform_editor_vanilla_codebidi_warning') && codeBidiWarningStyles, MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n\t\t\t\t.hyperlink-open-link {\n\t\t\t\t\tmin-width: 24px;\n\t\t\t\t\tsvg {\n\t\t\t\t\t\tmax-width: 18px;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"]))) : null);
|
|
169
169
|
};
|
|
170
170
|
export var createEditorContentStyle = function createEditorContentStyle(styles) {
|
|
171
171
|
return /*#__PURE__*/React.forwardRef(function (props, ref) {
|