@atlaskit/editor-core 205.2.1 → 205.2.3

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.
@@ -36,7 +36,7 @@ import { layoutStyles } from './layout';
36
36
  import { mediaStyles } from './media';
37
37
  import { panelStyles } from './panel';
38
38
  import { statusStyles, vanillaStatusStyles } from './status';
39
- import { taskDecisionStyles } from './tasks-and-decisions';
39
+ import { taskDecisionStyles, vanillaTaskDecisionIconWithoutVisualRefresh, vanillaTaskDecisionIconWithVisualRefresh, vanillaTaskDecisionStyles } from './tasks-and-decisions';
40
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
41
41
  export const linkStyles = css`
42
42
  .ProseMirror {
@@ -241,6 +241,14 @@ const placeholderOverflowStyles = css({
241
241
  textOverflow: 'ellipsis'
242
242
  }
243
243
  });
244
+ const placeholderWrapStyles = css({
245
+ // As part of controls work, we add placeholder `Search` to quick insert command
246
+ // This style is to prevent `/Search` being wrapped if it's triggered at the end of the line
247
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
248
+ '.ProseMirror mark[data-type-ahead-query="true"]:has(.placeholder-decoration-wrap)': {
249
+ whiteSpace: 'nowrap'
250
+ }
251
+ });
244
252
  const firstBlockNodeStyles = css`
245
253
  .ProseMirror {
246
254
  > .${PanelSharedCssClassName.prefix},
@@ -399,6 +407,7 @@ const contentStyles = props => css`
399
407
  ${placeholderTextStyles}
400
408
  ${placeholderStyles}
401
409
  ${editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null}
410
+ ${editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_3') ? placeholderWrapStyles : null}
402
411
 
403
412
  ${codeBlockStyles()}
404
413
 
@@ -434,6 +443,16 @@ const contentStyles = props => css`
434
443
  ${findReplaceStyles}
435
444
  ${textHighlightStyle}
436
445
  ${taskDecisionStyles}
446
+ ${editorExperiment('platform_editor_vanilla_dom', true, {
447
+ exposure: false
448
+ }) && vanillaTaskDecisionStyles}
449
+ // Switch between the two icons based on the visual refresh feature gate
450
+ ${editorExperiment('platform_editor_vanilla_dom', true, {
451
+ exposure: false
452
+ }) && fg('platform-visual-refresh-icons') && vanillaTaskDecisionIconWithVisualRefresh}
453
+ ${editorExperiment('platform_editor_vanilla_dom', true, {
454
+ exposure: false
455
+ }) && !fg('platform-visual-refresh-icons') && vanillaTaskDecisionIconWithoutVisualRefresh}
437
456
  ${statusStyles}
438
457
  ${editorExperiment('platform_editor_vanilla_dom', true) ? vanillaStatusStyles : null}
439
458
  ${annotationSharedStyles()}
@@ -24,4 +24,124 @@ export const taskDecisionStyles = css`
24
24
  }
25
25
  }
26
26
  }
27
- `;
27
+ `;
28
+
29
+ // Combine this with taskDecisionStyles (above) when cleaning up the platform_editor_vanilla_dom experiment.
30
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
31
+ export const vanillaTaskDecisionStyles = css({
32
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
33
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"]': {
34
+ listStyleType: 'none'
35
+ },
36
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
37
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper]': {
38
+ display: 'flex',
39
+ flexDirection: 'row',
40
+ margin: `${"var(--ds-space-100, 8px)"} 0 0 0`,
41
+ padding: "var(--ds-space-100, 8px)",
42
+ paddingLeft: "var(--ds-space-150, 12px)",
43
+ borderRadius: "var(--ds-border-radius-100, 4px)",
44
+ backgroundColor: "var(--ds-background-neutral, #091E420F)",
45
+ position: 'relative'
46
+ },
47
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
48
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"]': {
49
+ flex: '0 0 16px',
50
+ height: '16px',
51
+ width: '16px',
52
+ margin: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-150, 12px)"} 0 0`,
53
+ color: "var(--ds-icon-subtle, #626F86)",
54
+ display: 'flex',
55
+ alignItems: 'center',
56
+ justifyContent: 'center'
57
+ },
58
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
59
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"]:not(:has([data-empty]):not(:has([data-type-ahead]))) > [data-decision-wrapper] > [data-component="icon"]': {
60
+ color: "var(--ds-icon-success, #22A06B)"
61
+ },
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
63
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span': {
64
+ display: 'inline-block',
65
+ flexShrink: 0,
66
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography -- Mirroring icon styles
67
+ lineHeight: 1
68
+ },
69
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
70
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg': {
71
+ overflow: 'hidden',
72
+ pointerEvents: 'none',
73
+ color: 'currentColor',
74
+ verticalAlign: 'bottom'
75
+ },
76
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
77
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="placeholder"]': {
78
+ margin: `0 0 0 calc(${"var(--ds-space-100, 8px)"} * 3.5)`,
79
+ position: 'absolute',
80
+ color: "var(--ds-text-subtlest, #626F86)",
81
+ pointerEvents: 'none',
82
+ textOverflow: 'ellipsis',
83
+ overflow: 'hidden',
84
+ whiteSpace: 'nowrap',
85
+ maxWidth: 'calc(100% - 50px)'
86
+ },
87
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
88
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"]:not(:has([data-empty]):not(:has([data-type-ahead]))) > [data-decision-wrapper] > [data-component="placeholder"]': {
89
+ display: 'none'
90
+ },
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
92
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="content"]': {
93
+ margin: 0,
94
+ wordWrap: 'break-word',
95
+ minWidth: 0,
96
+ flex: '1 1 auto'
97
+ }
98
+ });
99
+
100
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
101
+ export const vanillaTaskDecisionIconWithVisualRefresh = css({
102
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
103
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg[data-icon-source="legacy"]': {
104
+ display: 'none'
105
+ },
106
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
107
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span': {
108
+ boxSizing: 'border-box',
109
+ paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
110
+ paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)',
111
+ '@media screen and (forced-colors: active)': {
112
+ color: 'canvastext',
113
+ filter: 'grayscale(1)'
114
+ }
115
+ },
116
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
117
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg': {
118
+ width: "var(--ds-space-300, 24px)",
119
+ height: "var(--ds-space-300, 24px)"
120
+ }
121
+ });
122
+
123
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
124
+ export const vanillaTaskDecisionIconWithoutVisualRefresh = css({
125
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
126
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg[data-icon-source="refreshed"]': {
127
+ display: 'none'
128
+ },
129
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
130
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span': {
131
+ width: '32px',
132
+ height: '32px',
133
+ '@media screen and (forced-colors: active)': {
134
+ filter: 'grayscale(1)',
135
+ color: 'canvastext',
136
+ fill: 'canvas'
137
+ }
138
+ },
139
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
140
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg': {
141
+ maxWidth: '100%',
142
+ maxHeight: '100%',
143
+ fill: "var(--ds-surface, #FFFFFF)",
144
+ width: '32px',
145
+ height: '32px'
146
+ }
147
+ });
@@ -1,2 +1,2 @@
1
1
  export const name = "@atlaskit/editor-core";
2
- export const version = "205.2.1";
2
+ export const version = "205.2.3";
@@ -1,3 +1,4 @@
1
+ /* prettier-ignore */
1
2
  /**
2
3
  * NOTE:
3
4
  *
@@ -6,163 +7,6 @@
6
7
  */
7
8
  //Slovak
8
9
  export default {
9
- 'fabric.editor.action': 'Položka akcie',
10
- 'fabric.editor.action.description': 'Vytvoriť a priradiť akčné položky',
11
- 'fabric.editor.addAltText': 'Alternatívny text',
12
- 'fabric.editor.alignImageCenter': 'Zarovnať do stredu',
13
- 'fabric.editor.alignImageLeft': 'Zarovnať vľavo',
14
- 'fabric.editor.alignImageRight': 'Zarovnať vpravo',
15
- 'fabric.editor.altText': 'Všetok text',
16
- 'fabric.editor.alttext.validation': 'Vymažte z alternatívneho textu všetky špeciálne znaky.',
17
- 'fabric.editor.annotate': 'Komentovať',
18
- 'fabric.editor.annotationToolbar': 'Panel s nástrojmi poznámok',
19
- 'fabric.editor.backLink': 'Vrátiť sa',
20
- 'fabric.editor.blockCardUnavailable': 'Vnorené prepojenie je v uzle {node} a jeho zobrazenie nemožno zmeniť',
21
- 'fabric.editor.blockquote.description': 'Vložiť citát alebo citáciu',
22
- 'fabric.editor.bold': 'Hrubé',
23
- 'fabric.editor.cancelButton': 'Zrušiť',
24
- 'fabric.editor.cardFloatingControls': 'Možnosti karty',
25
- 'fabric.editor.cellBackground': 'Pozadie buniek',
26
- 'fabric.editor.cellOptions': 'Možnosti bunky',
27
- 'fabric.editor.clearAltTextEdit': 'Vymazať alternatívny text',
28
- 'fabric.editor.clearCells': '{0, plural, one {Vymazať bunku} few {Vymazať bunky} many {Vymazať bunky} other {Vymazať bunky}}',
29
- 'fabric.editor.clearFormatting': 'Vymazať formátovanie',
30
- 'fabric.editor.clearLink': 'Vymazať prepojenie',
31
- 'fabric.editor.clearLinkText': 'Vymazať text',
32
- 'fabric.editor.closeAltTextEdit': 'Späť',
33
- 'fabric.editor.closeFindReplaceDialog': 'Zatvoriť',
34
- 'fabric.editor.closeHelpDialog': 'Zavrieť dialógové okno pomocníka',
35
- 'fabric.editor.code': 'Kód',
36
- 'fabric.editor.codeblock': 'Zlomok kódu',
37
- 'fabric.editor.codeblock.description': 'Zobraziť kód so zvýraznenou syntaxou',
38
- 'fabric.editor.columns': 'Rozloženia',
39
- 'fabric.editor.columns.description': 'Rozdeľte stránku pomocou sekcií',
40
- 'fabric.editor.configPanel.cancel': 'Zrušiť',
41
- 'fabric.editor.configPanel.fieldTypeError.isMultipleAndRadio': '„IsMultiple“ a „style: radio“ nie je možné kombinovať',
42
- 'fabric.editor.configPanel.formType.addField': 'Pridať pole',
43
- 'fabric.editor.configPanel.formType.removeField': 'Odstrániť pole',
44
- 'fabric.editor.configPanel.required': 'Povinné pole',
45
- 'fabric.editor.configPanel.submit': 'Odoslať',
46
- 'fabric.editor.date': 'Dátum',
47
- 'fabric.editor.date.description': 'Pridajte dátum pomocou kalendára',
48
- 'fabric.editor.decision': 'Rozhodnutie',
49
- 'fabric.editor.decision.description': 'Zaznamenajte rozhodnutia, aby sa mohli jednoducho sledovať',
50
- 'fabric.editor.decisionPlaceholder': 'Pridať rozhodnutie...',
51
- 'fabric.editor.displayInline': 'Zobraziť vo vnútri',
52
- 'fabric.editor.displayLink': 'Zobraziť ako text',
53
- 'fabric.editor.displayText': 'Text na zobrazenie',
54
- 'fabric.editor.edit': 'Upraviť',
55
- 'fabric.editor.editAltText': 'Upraviť alternatívny text',
56
- 'fabric.editor.editLink': 'Upraviť prepojenie',
57
- 'fabric.editor.editMode.inviteToEditButton.title': 'Pozvať na úpravu',
58
- 'fabric.editor.editorHelp': 'Pomoc editora',
59
- 'fabric.editor.emoji': 'Zábavný obrázok',
60
- 'fabric.editor.emoji.description': 'Použite emotikony na vyjadrenie nápadov 🎉 a emócií 😄',
61
- 'fabric.editor.error': 'Chyba',
62
- 'fabric.editor.errorPanel': 'Panel chýb',
63
- 'fabric.editor.errorPanel.description': 'Vyvolanie chýb vo farebnom paneli',
64
- 'fabric.editor.expand': 'Rozšírenie',
65
- 'fabric.editor.expand.description': 'Vložiť rozšírenie',
66
- 'fabric.editor.feedbackDialog': 'Poskytnúť spätnú väzbu',
67
- 'fabric.editor.feedbackDialog.description': 'Povedzte nám o svojej skúsenosti s používaním nového editora',
68
- 'fabric.editor.filesAndImages': 'Súbory a obrázky',
69
- 'fabric.editor.filesAndImages.description': 'Pridajte obrázky a ďalšie súbory na stránku',
70
- 'fabric.editor.find': 'Nájsť',
71
- 'fabric.editor.findNext': 'Nájsť ďalší',
72
- 'fabric.editor.findPrevious': 'Nájsť predchádzajúci',
73
- 'fabric.editor.findReplaceToolbarButton': 'Nájsť a nahradiť',
74
- 'fabric.editor.headerColumn': 'Stĺpec záhlavia',
75
- 'fabric.editor.headerRow': 'Riadok záhlavia',
76
- 'fabric.editor.heading1': 'Nadpis 1',
77
- 'fabric.editor.heading1Description': 'Použiť pre nadpis najvyššej úrovne',
78
- 'fabric.editor.heading2': 'Nadpis 2',
79
- 'fabric.editor.heading2Description': 'Použiť pre kľúčové časti',
80
- 'fabric.editor.heading3': 'Nadpis 3',
81
- 'fabric.editor.heading3Description': 'Použiť pre podriadené časti a nadpisy skupín',
82
- 'fabric.editor.heading4': 'Nadpis 4',
83
- 'fabric.editor.heading4Description': 'Použiť pre podnadpisy',
84
- 'fabric.editor.heading5': 'Nadpis 5',
85
- 'fabric.editor.heading5Description': 'Použiť pre zoskupenie položiek zoznamu',
86
- 'fabric.editor.heading6': 'Nadpis 6',
87
- 'fabric.editor.heading6Description': 'Použiť pre nadpisy nízkej úrovne',
88
- 'fabric.editor.help': 'Pomocník',
89
- 'fabric.editor.help.description': 'Preskúmať klávesové skratky a možnosti značenia',
90
- 'fabric.editor.helpDialogTips': 'Stlačením tlačidla {keyMap} rýchlo kedykoľvek otvorte tento dialóg',
91
- 'fabric.editor.horizontalRule': 'Rozdeľovač',
92
- 'fabric.editor.horizontalRule.description': 'Oddeľte obsah vodorovnou čiarou',
93
- 'fabric.editor.image': 'Obrázok',
94
- 'fabric.editor.info': 'Informácie',
95
- 'fabric.editor.infoPanel': 'Informačný panel',
96
- 'fabric.editor.infoPanel.description': 'Zvýrazniť informácie vo farebnom paneli',
97
- 'fabric.editor.insertMenu': 'Vložiť',
98
- 'fabric.editor.italic': 'Kurzíva',
99
- 'fabric.editor.keyboardShortcuts': 'Klávesové skratky',
100
- 'fabric.editor.layoutFixedWidth': 'Späť do centra',
101
- 'fabric.editor.layoutFullWidth': 'Celá šírka',
102
- 'fabric.editor.layoutWide': 'Rozšíriť',
103
- 'fabric.editor.leftSidebar': 'Ľavý bočný panel',
104
- 'fabric.editor.link': 'Prepojenie',
105
- 'fabric.editor.link.description': 'Vložiť prepojenie',
106
- 'fabric.editor.linkAddress': 'Adresa prepojenia',
107
- 'fabric.editor.linkPlaceholder': 'Vložiť prepojenie',
108
- 'fabric.editor.lists': 'Zoznamy',
109
- 'fabric.editor.markdown': 'Vyznačenie',
110
- 'fabric.editor.mediaAddLink': 'Pridať prepojenie',
111
- 'fabric.editor.mention': 'Spomenutie',
112
- 'fabric.editor.mention.description': 'Spomeňte niekoho a pošlite mu oznámenie',
113
- 'fabric.editor.mergeCells': 'Zlúčiť bunky',
114
- 'fabric.editor.moreFormatting': 'Ďalšie formátovanie',
115
- 'fabric.editor.normal': 'Normálny text',
116
- 'fabric.editor.note': 'Poznámka',
117
- 'fabric.editor.notePanel': 'Panel poznámok',
118
- 'fabric.editor.notePanel.description': 'Pridať poznámku do farebného panela',
119
- 'fabric.editor.numberedColumn': 'Číslovaný stĺpec',
120
- 'fabric.editor.orderedList': 'Očíslovaný zoznam',
121
- 'fabric.editor.orderedList.description': 'Vytvoriť zoradený zoznam',
122
- 'fabric.editor.other': 'Iné...',
123
- 'fabric.editor.pastePlainText': 'Vložiť obyčajný text',
124
- 'fabric.editor.placeholderAltText': 'Popísať obrázok alternatívnym textom',
125
- 'fabric.editor.placeholderText': 'Zástupný text',
126
- 'fabric.editor.placeholderTextPlaceholder': 'Pridať zástupný text',
127
- 'fabric.editor.quickInsert': 'Rýchlo vložiť',
128
- 'fabric.editor.redo': 'Vrátiť naspäť',
129
- 'fabric.editor.remove': 'Odstrániť',
130
- 'fabric.editor.replace': 'Nahradiť',
131
- 'fabric.editor.replaceAll': 'Nahradiť všetko',
132
- 'fabric.editor.replaceWith': 'Nahradiť textom',
133
- 'fabric.editor.rightSidebar': 'Pravý bočný panel',
134
- 'fabric.editor.saveButton': 'Uložiť',
135
- 'fabric.editor.selectLanguage': 'Vybrať jazyk',
136
- 'fabric.editor.splitCell': 'Rozdeliť bunky',
137
- 'fabric.editor.status': 'Stav',
138
- 'fabric.editor.status.description': 'Pridať vlastné označenie stavu',
139
- 'fabric.editor.statusPlaceholder': 'Nastaviť stav',
140
- 'fabric.editor.strike': 'Preškrtnúť',
141
- 'fabric.editor.subscript': 'Dolný index',
142
- 'fabric.editor.success': 'Úspech',
143
- 'fabric.editor.successPanel': 'Panel úspechov',
144
- 'fabric.editor.successPanel.description': 'Pridať tipy do farebného panela',
145
- 'fabric.editor.superscript': 'Horný index',
146
- 'fabric.editor.supportAltText': 'Alternatívny text je užitočný pre ľudí so zrakovým postihnutím používajúcich čítačky obrazovky.',
147
- 'fabric.editor.table': 'Tabuľka',
148
- 'fabric.editor.table.description': 'Vložiť tabuľku',
149
- 'fabric.editor.tableOptions': 'Možnosti tabuľky',
150
- 'fabric.editor.taskPlaceholder': 'Napíšte svoju činnosť. Pomocou "@" ju niekomu priraďte.',
151
- 'fabric.editor.textColor': 'Farba textu',
152
- 'fabric.editor.textStyles': 'Štýly textu',
153
- 'fabric.editor.threeColumns': 'Tri stĺpce',
154
- 'fabric.editor.threeColumnsWithSidebars': 'Tri stĺpce s bočnými panelmi',
155
- 'fabric.editor.twoColumns': 'Dva stĺpce',
156
- 'fabric.editor.underline': 'Podčiarknuť',
157
- 'fabric.editor.undo': 'Späť',
158
- 'fabric.editor.unlink': 'Zrušiť prepojenie',
159
- 'fabric.editor.unorderedList': 'Zoznam s odrážkami',
160
- 'fabric.editor.unorderedList.description': 'Vytvoriť nezoradený zoznam',
161
- 'fabric.editor.viewMore': 'Zobraziť ďalšie',
162
- 'fabric.editor.visit': 'Otvoriť prepojenie v novom okne',
163
- 'fabric.editor.warning': 'Varovanie',
164
- 'fabric.editor.warningPanel': 'Panel výstrah',
165
- 'fabric.editor.warningPanel.description': 'Pridať upozornenie do farebného panela',
166
- 'fabric.editor.wrapLeft': 'Zbaliť vľavo',
167
- 'fabric.editor.wrapRight': 'Zbaliť vpravo'
10
+ 'fabric.editor.chromeCollapsedPlaceholder': 'None',
11
+ 'fabric.editor.headingLink.toolbarHelpTitle': 'None'
168
12
  };
@@ -38,7 +38,7 @@ import { layoutStyles } from './layout';
38
38
  import { mediaStyles } from './media';
39
39
  import { panelStyles } from './panel';
40
40
  import { statusStyles, vanillaStatusStyles } from './status';
41
- import { taskDecisionStyles } from './tasks-and-decisions';
41
+ import { taskDecisionStyles, vanillaTaskDecisionIconWithoutVisualRefresh, vanillaTaskDecisionIconWithVisualRefresh, vanillaTaskDecisionStyles } from './tasks-and-decisions';
42
42
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
43
43
  export var linkStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t", "\n\t}\n"])), linkSharedStyle);
44
44
  var ruleStyles = function ruleStyles() {
@@ -119,6 +119,14 @@ var placeholderOverflowStyles = css({
119
119
  textOverflow: 'ellipsis'
120
120
  }
121
121
  });
122
+ var placeholderWrapStyles = css({
123
+ // As part of controls work, we add placeholder `Search` to quick insert command
124
+ // This style is to prevent `/Search` being wrapped if it's triggered at the end of the line
125
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
126
+ '.ProseMirror mark[data-type-ahead-query="true"]:has(.placeholder-decoration-wrap)': {
127
+ whiteSpace: 'nowrap'
128
+ }
129
+ });
122
130
  var firstBlockNodeStyles = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t> .", ",\n\t\t\t> .", ",\n\t\t\t> .", ",\n\t\t\t> div[data-task-list-local-id],\n\t\t> div[data-layout-section],\n\t\t> .", " {\n\t\t\t&:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t> hr:first-of-type {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n"])), PanelSharedCssClassName.prefix, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, expandClassNames.prefix);
123
131
  var firstBlockNodeStylesNew = css(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n\t.ProseMirror {\n\t\t> .", ",\n\t\t\t> .", ",\n\t\t\t> .", ",\n\t\t\t> div[data-task-list-local-id],\n\t\t> div[data-layout-section],\n\t\t> .", " {\n\t\t\t&:first-child {\n\t\t\t\tmargin-top: 0;\n\t\t\t}\n\t\t}\n\n\t\t> hr:first-child,\n\t\t> .ProseMirror-widget:first-child + hr {\n\t\t\tmargin-top: 0;\n\t\t}\n\t}\n"])), PanelSharedCssClassName.prefix, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, expandClassNames.prefix);
124
132
 
@@ -138,15 +146,21 @@ export var fixBlockControlStylesSSR = function fixBlockControlStylesSSR() {
138
146
  // The breakpoint for small devices is 1266px, copied from getBreakpoint in platform/packages/editor/editor-common/src/ui/WidthProvider/index.tsx
139
147
  var akEditorBreakpointForSmallDevice = "1266px";
140
148
  var contentStyles = function contentStyles(props) {
141
- return css(_templateObject10 || (_templateObject10 = _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: 52px;\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.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\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.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", "\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\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 ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\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\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In 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, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, editorFontSize({
149
+ return css(_templateObject10 || (_templateObject10 = _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: 52px;\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.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\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.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", "\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\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 ", "\n // Switch between the two icons based on the visual refresh feature gate\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n ", "\n\t", "\n ", "\n ", "\n ", "\n ", "\n ", "\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\t// Related code all lives inside: packages/editor/editor-core/src/ui/Appearance/FullPage/StyledComponents.ts\n\t// In 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, akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorCalculatedWideLayoutWidthSmallViewport, akEditorBreakpointForSmallDevice, akEditorCalculatedWideLayoutWidth, editorFontSize({
142
150
  theme: props.theme
143
- }), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject12 || (_templateObject12 = _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(_templateObject13 || (_templateObject13 = _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)", placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, panelStyles(), mentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
151
+ }), whitespaceSharedStyles, paragraphSharedStyles(props.typographyTheme), listsSharedStyles, indentationSharedStyles, shadowSharedStyle, InlineNodeViewSharedStyles, fg('editor_request_to_edit_task') ? null : css(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n\t\t\t\t.ProseMirror[contenteditable='false'] .taskItemView-content-wrap {\n\t\t\t\t\tpointer-events: none;\n\t\t\t\t\topacity: 0.7;\n\t\t\t\t}\n\t\t\t"]))), fg('platform_editor_hide_cursor_when_pm_hideselection') ? css(_templateObject12 || (_templateObject12 = _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(_templateObject13 || (_templateObject13 = _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)", placeholderTextStyles, placeholderStyles, editorExperiment('platform_editor_controls', 'variant1') ? placeholderOverflowStyles : null, editorExperiment('platform_editor_controls', 'variant1') && fg('platform_editor_controls_patch_3') ? placeholderWrapStyles : null, codeBlockStyles(), blocktypeStyles(props.typographyTheme), codeMarkSharedStyles(), textColorStyles, backgroundColorStyles(), listsStyles, ruleStyles(), mediaStyles(), layoutStyles(props.viewMode), telepointerStyle, gapCursorStyles, panelStyles(), mentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
144
152
  exposure: false
145
153
  }) && vanillaMentionsStyles, editorExperiment('platform_editor_vanilla_dom', true, {
146
154
  exposure: false
147
155
  }) && vanillaSelectionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
148
156
  exposure: false
149
- }) ? emojiStyles : reactEmojiStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, statusStyles, editorExperiment('platform_editor_vanilla_dom', true) ? vanillaStatusStyles : null, annotationSharedStyles(), smartCardStyles(), fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles, editorExperiment('platform_editor_vanilla_dom', true) ? dateVanillaStyles : null, dateStyles, embedCardStyles(), unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), fixBlockControlStylesSSR(), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject14 || (_templateObject14 = _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);
157
+ }) ? emojiStyles : reactEmojiStyles, emojiStyles, tasksAndDecisionsStyles, gridStyles, linkStyles, blockMarksSharedStyles, dateSharedStyle, extensionStyles, expandStyles(), findReplaceStyles, textHighlightStyle, taskDecisionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
158
+ exposure: false
159
+ }) && vanillaTaskDecisionStyles, editorExperiment('platform_editor_vanilla_dom', true, {
160
+ exposure: false
161
+ }) && fg('platform-visual-refresh-icons') && vanillaTaskDecisionIconWithVisualRefresh, editorExperiment('platform_editor_vanilla_dom', true, {
162
+ exposure: false
163
+ }) && !fg('platform-visual-refresh-icons') && vanillaTaskDecisionIconWithoutVisualRefresh, statusStyles, editorExperiment('platform_editor_vanilla_dom', true) ? vanillaStatusStyles : null, annotationSharedStyles(), smartCardStyles(), fg('platform-linking-visual-refresh-v1') ? getSmartCardSharedStyles() : smartCardSharedStyles, editorExperiment('platform_editor_vanilla_dom', true) ? dateVanillaStyles : null, dateStyles, embedCardStyles(), unsupportedStyles, resizerStyles, aiPanelStyles(props.colorMode), fixBlockControlStylesSSR(), MediaSharedClassNames.FLOATING_TOOLBAR_COMPONENT, !fg('platform-visual-refresh-icons') ? css(_templateObject14 || (_templateObject14 = _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);
150
164
  };
151
165
  export var createEditorContentStyle = function createEditorContentStyle(styles) {
152
166
  return /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -5,4 +5,124 @@ import { css } from '@emotion/react';
5
5
  import { TaskDecisionSharedCssClassName } from '@atlaskit/editor-common/styles';
6
6
  import { akEditorDeleteBackgroundWithOpacity, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
7
7
  // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
8
- export var taskDecisionStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t[data-decision-wrapper] {\n\t\tcursor: pointer;\n\t}\n\n\t.", " > [data-decision-wrapper],\n\tol[data-node-type='decisionList'].", " {\n\t\tborder-radius: 4px;\n\t\t", "\n\t}\n\n\t.danger {\n\t\t.", ".", " > div {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t\t&::after {\n\t\t\t\tcontent: none; /* reset the Blanket selection style */\n\t\t\t}\n\t\t}\n\t}\n"])), akEditorSelectedNodeClassName, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), TaskDecisionSharedCssClassName.DECISION_CONTAINER, akEditorSelectedNodeClassName, akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"));
8
+ export var taskDecisionStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t[data-decision-wrapper] {\n\t\tcursor: pointer;\n\t}\n\n\t.", " > [data-decision-wrapper],\n\tol[data-node-type='decisionList'].", " {\n\t\tborder-radius: 4px;\n\t\t", "\n\t}\n\n\t.danger {\n\t\t.", ".", " > div {\n\t\t\tbox-shadow: 0 0 0 ", "px\n\t\t\t\t", ";\n\t\t\tbackground-color: ", ";\n\t\t\t&::after {\n\t\t\t\tcontent: none; /* reset the Blanket selection style */\n\t\t\t}\n\t\t}\n\t}\n"])), akEditorSelectedNodeClassName, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), TaskDecisionSharedCssClassName.DECISION_CONTAINER, akEditorSelectedNodeClassName, akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-blanket-danger, ".concat(akEditorDeleteBackgroundWithOpacity, ")"));
9
+
10
+ // Combine this with taskDecisionStyles (above) when cleaning up the platform_editor_vanilla_dom experiment.
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
12
+ export var vanillaTaskDecisionStyles = css({
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
14
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"]': {
15
+ listStyleType: 'none'
16
+ },
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
18
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper]': {
19
+ display: 'flex',
20
+ flexDirection: 'row',
21
+ margin: "var(--ds-space-100, 8px)".concat(" 0 0 0"),
22
+ padding: "var(--ds-space-100, 8px)",
23
+ paddingLeft: "var(--ds-space-150, 12px)",
24
+ borderRadius: "var(--ds-border-radius-100, 4px)",
25
+ backgroundColor: "var(--ds-background-neutral, #091E420F)",
26
+ position: 'relative'
27
+ },
28
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
29
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"]': {
30
+ flex: '0 0 16px',
31
+ height: '16px',
32
+ width: '16px',
33
+ margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-150, 12px)", " 0 0"),
34
+ color: "var(--ds-icon-subtle, #626F86)",
35
+ display: 'flex',
36
+ alignItems: 'center',
37
+ justifyContent: 'center'
38
+ },
39
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
40
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"]:not(:has([data-empty]):not(:has([data-type-ahead]))) > [data-decision-wrapper] > [data-component="icon"]': {
41
+ color: "var(--ds-icon-success, #22A06B)"
42
+ },
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
44
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span': {
45
+ display: 'inline-block',
46
+ flexShrink: 0,
47
+ // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography -- Mirroring icon styles
48
+ lineHeight: 1
49
+ },
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
51
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg': {
52
+ overflow: 'hidden',
53
+ pointerEvents: 'none',
54
+ color: 'currentColor',
55
+ verticalAlign: 'bottom'
56
+ },
57
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
58
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="placeholder"]': {
59
+ margin: "0 0 0 calc(".concat("var(--ds-space-100, 8px)", " * 3.5)"),
60
+ position: 'absolute',
61
+ color: "var(--ds-text-subtlest, #626F86)",
62
+ pointerEvents: 'none',
63
+ textOverflow: 'ellipsis',
64
+ overflow: 'hidden',
65
+ whiteSpace: 'nowrap',
66
+ maxWidth: 'calc(100% - 50px)'
67
+ },
68
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors, @atlaskit/ui-styling-standard/no-nested-selectors
69
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"]:not(:has([data-empty]):not(:has([data-type-ahead]))) > [data-decision-wrapper] > [data-component="placeholder"]': {
70
+ display: 'none'
71
+ },
72
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
73
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="content"]': {
74
+ margin: 0,
75
+ wordWrap: 'break-word',
76
+ minWidth: 0,
77
+ flex: '1 1 auto'
78
+ }
79
+ });
80
+
81
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
82
+ export var vanillaTaskDecisionIconWithVisualRefresh = css({
83
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
84
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg[data-icon-source="legacy"]': {
85
+ display: 'none'
86
+ },
87
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
88
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span': {
89
+ boxSizing: 'border-box',
90
+ paddingInlineEnd: 'var(--ds--button--new-icon-padding-end, 0)',
91
+ paddingInlineStart: 'var(--ds--button--new-icon-padding-start, 0)',
92
+ '@media screen and (forced-colors: active)': {
93
+ color: 'canvastext',
94
+ filter: 'grayscale(1)'
95
+ }
96
+ },
97
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
98
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg': {
99
+ width: "var(--ds-space-300, 24px)",
100
+ height: "var(--ds-space-300, 24px)"
101
+ }
102
+ });
103
+
104
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
105
+ export var vanillaTaskDecisionIconWithoutVisualRefresh = css({
106
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
107
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg[data-icon-source="refreshed"]': {
108
+ display: 'none'
109
+ },
110
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
111
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span': {
112
+ width: '32px',
113
+ height: '32px',
114
+ '@media screen and (forced-colors: active)': {
115
+ filter: 'grayscale(1)',
116
+ color: 'canvastext',
117
+ fill: 'canvas'
118
+ }
119
+ },
120
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
121
+ '[data-prosemirror-node-view-type="vanilla"][data-prosemirror-node-name="decisionItem"] > [data-decision-wrapper] > [data-component="icon"] > span > svg': {
122
+ maxWidth: '100%',
123
+ maxHeight: '100%',
124
+ fill: "var(--ds-surface, #FFFFFF)",
125
+ width: '32px',
126
+ height: '32px'
127
+ }
128
+ });
@@ -1,2 +1,2 @@
1
1
  export var name = "@atlaskit/editor-core";
2
- export var version = "205.2.1";
2
+ export var version = "205.2.3";