@atlaskit/editor-core 207.19.0 → 207.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/cjs/i18n/sk.js +2 -2
- package/dist/cjs/i18n/sr.js +19 -0
- package/dist/cjs/presets/default.js +3 -1
- package/dist/cjs/ui/EditorContentContainer/EditorContentContainer.js +218 -147
- package/dist/cjs/ui/EditorContentContainer/styles/baseStyles.js +53 -0
- package/dist/cjs/ui/EditorContentContainer/styles/commentEditorStyles.js +32 -0
- package/dist/cjs/ui/EditorContentContainer/styles/cursorStyles.js +20 -0
- package/dist/cjs/ui/EditorContentContainer/styles/extensionStyles.js +352 -0
- package/dist/cjs/ui/EditorContentContainer/styles/floatingToolbarStyles.js +18 -0
- package/dist/cjs/ui/EditorContentContainer/styles/fullPageEditorStyles.js +20 -0
- package/dist/cjs/ui/EditorContentContainer/styles/gapCursorStyles.js +99 -0
- package/dist/cjs/ui/EditorContentContainer/styles/indentationStyles.js +33 -30
- package/dist/cjs/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +29 -26
- package/dist/cjs/ui/EditorContentContainer/styles/layout.js +409 -366
- package/dist/cjs/ui/EditorContentContainer/styles/link.js +25 -1
- package/dist/cjs/ui/EditorContentContainer/styles/list.js +11 -2
- package/dist/cjs/ui/EditorContentContainer/styles/mediaStyles.js +43 -2
- package/dist/cjs/ui/EditorContentContainer/styles/panelStyles.js +9 -1
- package/dist/cjs/ui/EditorContentContainer/styles/{placeholderTextStyles.js → placeholderStyles.js} +39 -1
- package/dist/cjs/ui/EditorContentContainer/styles/scrollbarStyles.js +35 -0
- package/dist/cjs/ui/EditorContentContainer/styles/selectionStyles.js +45 -1
- package/dist/cjs/ui/EditorContentContainer/styles/shadowStyles.js +33 -30
- package/dist/cjs/ui/EditorContentContainer/styles/tableStyles.js +35 -0
- package/dist/cjs/ui/EditorContentContainer/styles/whitespaceStyles.js +5 -2
- package/dist/cjs/ui/EditorContext/index.js +1 -8
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/i18n/sk.js +2 -2
- package/dist/es2019/i18n/sr.js +13 -0
- package/dist/es2019/presets/default.js +3 -1
- package/dist/es2019/ui/EditorContentContainer/EditorContentContainer.js +222 -412
- package/dist/es2019/ui/EditorContentContainer/styles/baseStyles.js +48 -0
- package/dist/es2019/ui/EditorContentContainer/styles/commentEditorStyles.js +25 -0
- package/dist/es2019/ui/EditorContentContainer/styles/cursorStyles.js +14 -0
- package/dist/es2019/ui/EditorContentContainer/styles/extensionStyles.js +346 -0
- package/dist/es2019/ui/EditorContentContainer/styles/floatingToolbarStyles.js +11 -0
- package/dist/es2019/ui/EditorContentContainer/styles/fullPageEditorStyles.js +14 -0
- package/dist/es2019/ui/EditorContentContainer/styles/gapCursorStyles.js +167 -0
- package/dist/es2019/ui/EditorContentContainer/styles/indentationStyles.js +33 -30
- package/dist/es2019/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +29 -26
- package/dist/es2019/ui/EditorContentContainer/styles/layout.js +423 -315
- package/dist/es2019/ui/EditorContentContainer/styles/link.js +24 -0
- package/dist/es2019/ui/EditorContentContainer/styles/list.js +9 -0
- package/dist/es2019/ui/EditorContentContainer/styles/mediaStyles.js +41 -0
- package/dist/es2019/ui/EditorContentContainer/styles/panelStyles.js +8 -0
- package/dist/es2019/ui/EditorContentContainer/styles/{placeholderTextStyles.js → placeholderStyles.js} +38 -0
- package/dist/es2019/ui/EditorContentContainer/styles/scrollbarStyles.js +28 -0
- package/dist/es2019/ui/EditorContentContainer/styles/selectionStyles.js +44 -0
- package/dist/es2019/ui/EditorContentContainer/styles/shadowStyles.js +43 -40
- package/dist/es2019/ui/EditorContentContainer/styles/tableStyles.js +31 -0
- package/dist/es2019/ui/EditorContentContainer/styles/whitespaceStyles.js +5 -2
- package/dist/es2019/ui/EditorContext/index.js +1 -8
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/i18n/sk.js +2 -2
- package/dist/esm/i18n/sr.js +13 -0
- package/dist/esm/presets/default.js +3 -1
- package/dist/esm/ui/EditorContentContainer/EditorContentContainer.js +222 -153
- package/dist/esm/ui/EditorContentContainer/styles/baseStyles.js +46 -0
- package/dist/esm/ui/EditorContentContainer/styles/commentEditorStyles.js +25 -0
- package/dist/esm/ui/EditorContentContainer/styles/cursorStyles.js +14 -0
- package/dist/esm/ui/EditorContentContainer/styles/extensionStyles.js +346 -0
- package/dist/esm/ui/EditorContentContainer/styles/floatingToolbarStyles.js +11 -0
- package/dist/esm/ui/EditorContentContainer/styles/fullPageEditorStyles.js +14 -0
- package/dist/esm/ui/EditorContentContainer/styles/gapCursorStyles.js +91 -0
- package/dist/esm/ui/EditorContentContainer/styles/indentationStyles.js +33 -30
- package/dist/esm/ui/EditorContentContainer/styles/inlineNodeViewSharedStyles.js +29 -26
- package/dist/esm/ui/EditorContentContainer/styles/layout.js +408 -365
- package/dist/esm/ui/EditorContentContainer/styles/link.js +24 -0
- package/dist/esm/ui/EditorContentContainer/styles/list.js +10 -1
- package/dist/esm/ui/EditorContentContainer/styles/mediaStyles.js +42 -1
- package/dist/esm/ui/EditorContentContainer/styles/panelStyles.js +8 -0
- package/dist/esm/ui/EditorContentContainer/styles/{placeholderTextStyles.js → placeholderStyles.js} +38 -0
- package/dist/esm/ui/EditorContentContainer/styles/scrollbarStyles.js +28 -0
- package/dist/esm/ui/EditorContentContainer/styles/selectionStyles.js +44 -0
- package/dist/esm/ui/EditorContentContainer/styles/shadowStyles.js +33 -30
- package/dist/esm/ui/EditorContentContainer/styles/tableStyles.js +28 -0
- package/dist/esm/ui/EditorContentContainer/styles/whitespaceStyles.js +5 -2
- package/dist/esm/ui/EditorContext/index.js +1 -8
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/create-editor/create-universal-preset.d.ts +12 -3
- package/dist/types/i18n/sr.d.ts +12 -0
- package/dist/types/presets/default.d.ts +1 -0
- package/dist/types/presets/universal.d.ts +18 -4
- package/dist/types/presets/useUniversalPreset.d.ts +12 -3
- package/dist/types/ui/EditorContentContainer/EditorContentContainer.d.ts +0 -1
- package/dist/types/ui/EditorContentContainer/styles/baseStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/commentEditorStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/cursorStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/extensionStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/floatingToolbarStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/fullPageEditorStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/gapCursorStyles.d.ts +2 -0
- package/dist/types/ui/EditorContentContainer/styles/layout.d.ts +59 -2
- package/dist/types/ui/EditorContentContainer/styles/link.d.ts +2 -0
- package/dist/types/ui/EditorContentContainer/styles/list.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/mediaStyles.d.ts +2 -0
- package/dist/types/ui/EditorContentContainer/styles/panelStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/placeholderStyles.d.ts +4 -0
- package/dist/types/ui/EditorContentContainer/styles/scrollbarStyles.d.ts +1 -0
- package/dist/types/ui/EditorContentContainer/styles/selectionStyles.d.ts +10 -0
- package/dist/types/ui/EditorContentContainer/styles/tableStyles.d.ts +3 -0
- package/dist/types-ts4.5/create-editor/create-universal-preset.d.ts +14 -3
- package/dist/types-ts4.5/i18n/sr.d.ts +12 -0
- package/dist/types-ts4.5/presets/default.d.ts +1 -0
- package/dist/types-ts4.5/presets/universal.d.ts +20 -4
- package/dist/types-ts4.5/presets/useUniversalPreset.d.ts +14 -3
- package/dist/types-ts4.5/ui/EditorContentContainer/EditorContentContainer.d.ts +0 -1
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/baseStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/commentEditorStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/cursorStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/extensionStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/floatingToolbarStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/fullPageEditorStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/gapCursorStyles.d.ts +2 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/layout.d.ts +59 -2
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/link.d.ts +2 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/list.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/mediaStyles.d.ts +2 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/panelStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/placeholderStyles.d.ts +4 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/scrollbarStyles.d.ts +1 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/selectionStyles.d.ts +10 -0
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/tableStyles.d.ts +3 -0
- package/package.json +2 -14
- package/dist/types/ui/EditorContentContainer/styles/placeholderTextStyles.d.ts +0 -1
- package/dist/types-ts4.5/ui/EditorContentContainer/styles/placeholderTextStyles.d.ts +0 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.linkStylesOld = exports.linkStyles = void 0;
|
|
6
|
+
exports.linkStylesOld = exports.linkStyles = exports.linkLegacyIconStylesFix = exports.hyperLinkFloatingToolbarStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
9
|
|
|
@@ -29,4 +29,28 @@ var linkStylesOld = exports.linkStylesOld = (0, _react.css)({
|
|
|
29
29
|
'.ProseMirror a.blockLink': {
|
|
30
30
|
display: 'block'
|
|
31
31
|
}
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
35
|
+
var hyperLinkFloatingToolbarStyles = exports.hyperLinkFloatingToolbarStyles = (0, _react.css)({
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
37
|
+
'.hyperlink-floating-toolbar': {
|
|
38
|
+
padding: 0
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
/*
|
|
43
|
+
* Legacy Link icon in the Atlaskit package is bigger than the others,
|
|
44
|
+
* new ADS icon does not have this issue
|
|
45
|
+
*/
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
47
|
+
var linkLegacyIconStylesFix = exports.linkLegacyIconStylesFix = (0, _react.css)({
|
|
48
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
49
|
+
'.hyperlink-open-link': {
|
|
50
|
+
minWidth: 24,
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
52
|
+
svg: {
|
|
53
|
+
maxWidth: 18
|
|
54
|
+
}
|
|
55
|
+
}
|
|
32
56
|
});
|
|
@@ -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.listsStylesSafariFix = exports.listsStyles = void 0;
|
|
7
|
+
exports.listsStylesSafariFix = exports.listsStyles = exports.listLayoutShiftFix = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
// eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
|
|
@@ -147,4 +147,13 @@ var listsStylesSafariFix = exports.listsStylesSafariFix = (0, _react.css)((0, _d
|
|
|
147
147
|
}), ".ProseMirror:not(.".concat(BLOCK_CARD_CONTAINER, ") > li > p:first-child, .ProseMirror:not(.").concat(BLOCK_CARD_CONTAINER, ") > li > .code-block:first-child, .ProseMirror:not(.").concat(BLOCK_CARD_CONTAINER, ") > li > .ProseMirror-gapcursor:first-child + .code-block"), {
|
|
148
148
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
149
149
|
marginTop: "-".concat(akEditorLineHeight, "em !important")
|
|
150
|
-
}));
|
|
150
|
+
}));
|
|
151
|
+
|
|
152
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
153
|
+
var listLayoutShiftFix = exports.listLayoutShiftFix = (0, _react.css)({
|
|
154
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
155
|
+
'.ProseMirror ul, .ProseMirror ol': {
|
|
156
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
157
|
+
marginTop: '10px'
|
|
158
|
+
}
|
|
159
|
+
});
|
|
@@ -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.mediaStyles = void 0;
|
|
7
|
+
exports.mediaStyles = exports.mediaGroupStyles = exports.mediaAlignmentStyles = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _mediaInline = require("@atlaskit/editor-common/media-inline");
|
|
@@ -227,4 +227,45 @@ var mediaStyles = exports.mediaStyles = (0, _react.css)((_css = {
|
|
|
227
227
|
boxShadow: _editorSharedStyles.akEditorSelectedBoxShadow
|
|
228
228
|
}), '.ak-editor-no-interaction #newFileExperienceWrapper', {
|
|
229
229
|
boxShadow: 'none'
|
|
230
|
-
})));
|
|
230
|
+
})));
|
|
231
|
+
|
|
232
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
233
|
+
var mediaGroupStyles = exports.mediaGroupStyles = (0, _react.css)({
|
|
234
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
235
|
+
'.mediaGroupView-content-wrap ul': {
|
|
236
|
+
padding: 0
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
241
|
+
var mediaAlignmentStyles = exports.mediaAlignmentStyles = (0, _react.css)({
|
|
242
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
243
|
+
'.fabric-editor-block-mark[class^="fabric-editor-align"]': {
|
|
244
|
+
// It was `clear: none !important` before, but it was causing typescript errors
|
|
245
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles
|
|
246
|
+
clear: 'none'
|
|
247
|
+
},
|
|
248
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
249
|
+
'.fabric-editor-align-end': {
|
|
250
|
+
textAlign: 'right'
|
|
251
|
+
},
|
|
252
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
253
|
+
'.fabric-editor-align-start': {
|
|
254
|
+
textAlign: 'left'
|
|
255
|
+
},
|
|
256
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
257
|
+
'.fabric-editor-align-center': {
|
|
258
|
+
textAlign: 'center'
|
|
259
|
+
},
|
|
260
|
+
// For FullPage only when inside a table
|
|
261
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
262
|
+
'.fabric-editor--full-width-mode': {
|
|
263
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
264
|
+
'.pm-table-container': {
|
|
265
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
266
|
+
'.code-block, .extension-container, .multiBodiedExtension--container': {
|
|
267
|
+
maxWidth: '100%'
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.panelStylesMixin_without_fg_platform_editor_lcm_nested_panel_icon_fix = exports.panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes = exports.panelStylesMixin_fg_platform_editor_lcm_nested_panel_icon_fix = exports.panelStylesMixin_fg_platform_editor_add_border_for_nested_panel = exports.panelStyles = void 0;
|
|
6
|
+
exports.panelViewStyles = exports.panelStylesMixin_without_fg_platform_editor_lcm_nested_panel_icon_fix = exports.panelStylesMixin_fg_platform_editor_nested_dnd_styles_changes = exports.panelStylesMixin_fg_platform_editor_lcm_nested_panel_icon_fix = exports.panelStylesMixin_fg_platform_editor_add_border_for_nested_panel = exports.panelStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
9
|
|
|
@@ -346,4 +346,12 @@ var panelStylesMixin_without_fg_platform_editor_lcm_nested_panel_icon_fix = expo
|
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
352
|
+
var panelViewStyles = exports.panelViewStyles = (0, _react.css)({
|
|
353
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
354
|
+
'.panelView-content-wrap': {
|
|
355
|
+
boxSizing: 'border-box'
|
|
356
|
+
}
|
|
349
357
|
});
|
package/dist/cjs/ui/EditorContentContainer/styles/{placeholderTextStyles.js → placeholderStyles.js}
RENAMED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.placeholderTextStyles = void 0;
|
|
6
|
+
exports.placeholderWrapStyles = exports.placeholderTextStyles = exports.placeholderStyles = exports.placeholderOverflowStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
9
|
|
|
@@ -69,4 +69,42 @@ var placeholderTextStyles = exports.placeholderTextStyles = (0, _react.css)({
|
|
|
69
69
|
backgroundColor: "var(--ds-background-selected, #B3D4FF)"
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
75
|
+
var placeholderStyles = exports.placeholderStyles = (0, _react.css)({
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
77
|
+
'.ProseMirror .placeholder-decoration': {
|
|
78
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
79
|
+
width: '100%',
|
|
80
|
+
pointerEvents: 'none',
|
|
81
|
+
userSelect: 'none',
|
|
82
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
83
|
+
'.placeholder-android': {
|
|
84
|
+
pointerEvents: 'none',
|
|
85
|
+
outline: 'none',
|
|
86
|
+
userSelect: 'none',
|
|
87
|
+
position: 'absolute'
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
93
|
+
var placeholderOverflowStyles = exports.placeholderOverflowStyles = (0, _react.css)({
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
95
|
+
'.ProseMirror p:has(.placeholder-decoration-hide-overflow)': {
|
|
96
|
+
overflow: 'hidden',
|
|
97
|
+
whiteSpace: 'nowrap',
|
|
98
|
+
textOverflow: 'ellipsis'
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
103
|
+
var placeholderWrapStyles = exports.placeholderWrapStyles = (0, _react.css)({
|
|
104
|
+
// As part of controls work, we add placeholder `Search` to quick insert command
|
|
105
|
+
// This style is to prevent `/Search` being wrapped if it's triggered at the end of the line
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
107
|
+
'.ProseMirror mark[data-type-ahead-query="true"]:has(.placeholder-decoration-wrap)': {
|
|
108
|
+
whiteSpace: 'nowrap'
|
|
109
|
+
}
|
|
72
110
|
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.scrollbarStyles = void 0;
|
|
7
|
+
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
11
|
+
var scrollbarStyles = exports.scrollbarStyles = (0, _react.css)({
|
|
12
|
+
'-ms-overflow-style': '-ms-autohiding-scrollbar',
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
14
|
+
'&::-webkit-scrollbar': {
|
|
15
|
+
overflow: 'hidden'
|
|
16
|
+
},
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
18
|
+
'&::-webkit-scrollbar-corner': {
|
|
19
|
+
display: 'none'
|
|
20
|
+
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
22
|
+
'&::-webkit-scrollbar-thumb': {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values
|
|
24
|
+
backgroundColor: "var(--ds-background-neutral-subtle, #00000000)"
|
|
25
|
+
},
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
27
|
+
'&:hover::-webkit-scrollbar-thumb': {
|
|
28
|
+
backgroundColor: "var(--ds-background-neutral-bold, #44546F)",
|
|
29
|
+
borderRadius: 8
|
|
30
|
+
},
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
32
|
+
'&::-webkit-scrollbar-thumb:hover': {
|
|
33
|
+
backgroundColor: "var(--ds-background-neutral-bold-hovered, #2C3E5D)"
|
|
34
|
+
}
|
|
35
|
+
});
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.hideNativeBrowserTextSelectionStyles = exports.boxShadowSelectionStyles = exports.borderSelectionStyles = exports.blanketSelectionStyles = exports.backgroundSelectionStyles = void 0;
|
|
6
|
+
exports.selectedNodeStyles = exports.hideSelectionStyles = exports.hideNativeBrowserTextSelectionStyles = exports.hideCursorWhenHideSelectionStyles = exports.boxShadowSelectionStyles = exports.borderSelectionStyles = exports.blanketSelectionStyles = exports.backgroundSelectionStyles = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-line @atlaskit/ui-styling-standard/use-compiled
|
|
9
9
|
|
|
@@ -75,4 +75,48 @@ var blanketSelectionStyles = exports.blanketSelectionStyles = (0, _react.css)({
|
|
|
75
75
|
zIndex: 12,
|
|
76
76
|
backgroundColor: "var(--ds-blanket-selected, #388BFF14)"
|
|
77
77
|
}
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
81
|
+
var hideSelectionStyles = exports.hideSelectionStyles = (0, _react.css)({
|
|
82
|
+
// Hide selection styles for ProseMirror editor
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
84
|
+
'.ProseMirror-hideselection': {
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
86
|
+
'*::selection': {
|
|
87
|
+
background: 'transparent'
|
|
88
|
+
},
|
|
89
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
90
|
+
'*::-moz-selection': {
|
|
91
|
+
background: 'transparent'
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* This prosemirror css style: https://github.com/ProseMirror/prosemirror-view/blob/f37ebb29befdbde3cd194fe13fe17b78e743d2f2/style/prosemirror.css#L24
|
|
98
|
+
*
|
|
99
|
+
* 1. Merge and Release platform_editor_hide_cursor_when_pm_hideselection
|
|
100
|
+
* 2. Cleanup duplicated style from platform_editor_advanced_code_blocks
|
|
101
|
+
* https://product-fabric.atlassian.net/browse/ED-26331
|
|
102
|
+
*/
|
|
103
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
104
|
+
var hideCursorWhenHideSelectionStyles = exports.hideCursorWhenHideSelectionStyles = (0, _react.css)({
|
|
105
|
+
// Hide cursor when hide selection styles are applied
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
107
|
+
'.ProseMirror-hideselection': {
|
|
108
|
+
caretColor: 'transparent'
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
113
|
+
var selectedNodeStyles = exports.selectedNodeStyles = (0, _react.css)({
|
|
114
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
115
|
+
'.ProseMirror-selectednode': {
|
|
116
|
+
outline: 'none'
|
|
117
|
+
},
|
|
118
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
119
|
+
'.ProseMirror-selectednode:empty': {
|
|
120
|
+
outline: "2px solid ".concat("var(--ds-border-focused, #388BFF)")
|
|
121
|
+
}
|
|
78
122
|
});
|
|
@@ -20,33 +20,36 @@ var shadowObserverClassNames = exports.shadowObserverClassNames = {
|
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
23
|
-
var shadowStyles = exports.shadowStyles = (0, _react.css)(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}), "& .".concat(shadowClassNames.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
23
|
+
var shadowStyles = exports.shadowStyles = (0, _react.css)({
|
|
24
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
25
|
+
'.ProseMirror': (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::before, .").concat(shadowClassNames.RIGHT_SHADOW, "::after, .").concat(shadowClassNames.LEFT_SHADOW, "::before, .").concat(shadowClassNames.LEFT_SHADOW, "::after"), {
|
|
26
|
+
display: 'none',
|
|
27
|
+
position: 'absolute',
|
|
28
|
+
pointerEvents: 'none',
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
30
|
+
zIndex: 2,
|
|
31
|
+
width: 8,
|
|
32
|
+
content: "''",
|
|
33
|
+
height: 'calc(100%)'
|
|
34
|
+
}), "& .".concat(shadowClassNames.RIGHT_SHADOW, ", .").concat(shadowClassNames.LEFT_SHADOW), {
|
|
35
|
+
position: 'relative'
|
|
36
|
+
}), "& .".concat(shadowClassNames.LEFT_SHADOW, "::before"), {
|
|
37
|
+
background: "linear-gradient(to left, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to right, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px)"),
|
|
38
|
+
top: 0,
|
|
39
|
+
left: 0,
|
|
40
|
+
display: 'block'
|
|
41
|
+
}), "& .".concat(shadowClassNames.RIGHT_SHADOW, "::after"), {
|
|
42
|
+
background: "linear-gradient(to right, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to left, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px)"),
|
|
43
|
+
right: 0,
|
|
44
|
+
top: 0,
|
|
45
|
+
display: 'block'
|
|
46
|
+
}), "& .".concat(shadowObserverClassNames.SENTINEL_LEFT), {
|
|
47
|
+
height: '100%',
|
|
48
|
+
width: 0,
|
|
49
|
+
minWidth: 0
|
|
50
|
+
}), "& .".concat(shadowObserverClassNames.SENTINEL_RIGHT), {
|
|
51
|
+
height: '100%',
|
|
52
|
+
width: 0,
|
|
53
|
+
minWidth: 0
|
|
54
|
+
})
|
|
55
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.tableLayoutFixes = exports.tableCommentEditorStyles = exports.tableCommentEditorMarginOverride = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _react = require("@emotion/react");
|
|
10
|
+
var _scrollbarStyles = require("./scrollbarStyles");
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
14
|
+
var tableLayoutFixes = exports.tableLayoutFixes = (0, _react.css)({
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
16
|
+
'.pm-table-header-content-wrap :not(.fabric-editor-alignment), .pm-table-header-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark, .pm-table-cell-content-wrap :not(p, .fabric-editor-block-mark) + div.fabric-editor-block-mark': {
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors
|
|
18
|
+
'p:first-of-type': {
|
|
19
|
+
marginTop: 0
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
23
|
+
'.pm-table-cell-content-wrap .mediaGroupView-content-wrap': {
|
|
24
|
+
clear: 'both'
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
29
|
+
var tableCommentEditorMarginOverride = exports.tableCommentEditorMarginOverride = (0, _react.css)({
|
|
30
|
+
marginLeft: 0,
|
|
31
|
+
marginRight: 0
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
35
|
+
var tableCommentEditorStyles = exports.tableCommentEditorStyles = (0, _react.css)((0, _defineProperty2.default)({}, ".ProseMirror .pm-table-wrapper > table", [tableCommentEditorMarginOverride, _scrollbarStyles.scrollbarStyles]));
|
|
@@ -9,6 +9,9 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
11
11
|
var whitespaceStyles = exports.whitespaceStyles = (0, _react.css)({
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
13
|
+
'.ProseMirror': {
|
|
14
|
+
wordWrap: 'break-word',
|
|
15
|
+
whiteSpace: 'pre-wrap'
|
|
16
|
+
}
|
|
14
17
|
});
|
|
@@ -14,7 +14,6 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
14
14
|
var _react = _interopRequireDefault(require("react"));
|
|
15
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
16
|
var _UNSAFE_do_not_use_editor_context = require("@atlaskit/editor-common/UNSAFE_do_not_use_editor_context");
|
|
17
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
18
17
|
var _actions = _interopRequireDefault(require("../../actions"));
|
|
19
18
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
20
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
@@ -33,15 +32,9 @@ var LegacyEditorContext = exports.LegacyEditorContext = /*#__PURE__*/function (_
|
|
|
33
32
|
return (0, _createClass2.default)(LegacyEditorContext, [{
|
|
34
33
|
key: "render",
|
|
35
34
|
value: function render() {
|
|
36
|
-
if ((0, _platformFeatureFlags.fg)('platform_editor_react18_phase2_v2') || (0, _platformFeatureFlags.fg)('platform_editor_react18_phase2_v2_extended')) {
|
|
37
|
-
// Ignored via go/ees005
|
|
38
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
39
|
-
return /*#__PURE__*/_react.default.createElement(LegacyEditorContextNew, this.props, this.props.children);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
35
|
// Ignored via go/ees005
|
|
43
36
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
44
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
37
|
+
return /*#__PURE__*/_react.default.createElement(LegacyEditorContextNew, this.props, this.props.children);
|
|
45
38
|
}
|
|
46
39
|
}]);
|
|
47
40
|
}(_react.default.Component);
|
package/dist/es2019/i18n/sk.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
//Slovak
|
|
9
9
|
export default {
|
|
10
|
-
'fabric.editor.chromeCollapsedPlaceholder': '
|
|
10
|
+
'fabric.editor.chromeCollapsedPlaceholder': 'Napíšte niečo…',
|
|
11
11
|
'fabric.editor.editorAssistiveLabel': 'Hlavná oblasť obsahu, sem začnite zadávať text.',
|
|
12
|
-
'fabric.editor.headingLink.toolbarHelpTitle': '
|
|
12
|
+
'fabric.editor.headingLink.toolbarHelpTitle': 'Otvoriť dialógové okno pomoci'
|
|
13
13
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* prettier-ignore */
|
|
2
|
+
/**
|
|
3
|
+
* NOTE:
|
|
4
|
+
*
|
|
5
|
+
* This file is automatically generated by Traduki 2.0.
|
|
6
|
+
* DO NOT CHANGE IT BY HAND or your changes will be lost.
|
|
7
|
+
*/
|
|
8
|
+
//Serbian (Serbia) [sr-RS]
|
|
9
|
+
export default {
|
|
10
|
+
'fabric.editor.chromeCollapsedPlaceholder': 'Unesite tekst…',
|
|
11
|
+
'fabric.editor.editorAssistiveLabel': 'Glavna oblast za sadržaj, počnite da unosite tekst.',
|
|
12
|
+
'fabric.editor.headingLink.toolbarHelpTitle': 'Otvori dijalog pomoći'
|
|
13
|
+
};
|
|
@@ -65,7 +65,9 @@ export function createDefaultPreset(options) {
|
|
|
65
65
|
...options.hyperlinkOptions,
|
|
66
66
|
// @ts-ignore Temporary solution to check for Live Page editor.
|
|
67
67
|
__livePage: options.__livePage
|
|
68
|
-
}]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add(editorDisabledPlugin
|
|
68
|
+
}]).add([textFormattingPlugin, options.textFormatting]).add(widthPlugin).add([quickInsertPlugin, options.quickInsert]).add([placeholderPlugin, options.placeholder]).add(unsupportedContentPlugin).add([editorDisabledPlugin, {
|
|
69
|
+
initialDisabledState: options.disabled
|
|
70
|
+
}]).add([submitEditorPlugin, options.submitEditor]).add(copyButtonPlugin).add(floatingToolbarPlugin).add([selectionPlugin, {
|
|
69
71
|
...options.selection,
|
|
70
72
|
__livePage: options.__livePage
|
|
71
73
|
}]).add([codeBlockPlugin, options.codeBlock]);
|