@atlaskit/editor-common 110.8.0 → 110.9.1
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 +28 -0
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +1 -1
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/cjs/media-inline/inline-image-wrapper.js +1 -1
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/panel.js +0 -12
- package/dist/cjs/styles/index.js +0 -204
- package/dist/cjs/styles/shared/annotation.js +1 -68
- package/dist/cjs/styles/shared/code-block.js +2 -17
- package/dist/cjs/styles/shared/date.js +2 -12
- package/dist/cjs/styles/shared/grid.js +2 -41
- package/dist/cjs/styles/shared/lists.js +2 -10
- package/dist/cjs/styles/shared/panel.js +1 -39
- package/dist/cjs/styles/shared/resizer.js +2 -202
- package/dist/cjs/styles/shared/smart-card.js +1 -6
- package/dist/cjs/styles/shared/smartCard.js +2 -16
- package/dist/cjs/styles/shared/task-decision.js +2 -12
- package/dist/cjs/styles/shared/unsupported-content.js +2 -12
- package/dist/cjs/transforms/index.js +8 -1
- package/dist/cjs/transforms/sync-block.js +25 -0
- package/dist/cjs/ui/DropList/index.js +1 -1
- package/dist/cjs/ui/Expand/sharedStyles.js +2 -97
- package/dist/cjs/ui/index.js +0 -7
- package/dist/cjs/utils/compareNodes.js +6 -0
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +1 -1
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/es2019/media-inline/inline-image-wrapper.js +1 -1
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/panel.js +1 -1
- package/dist/es2019/styles/index.js +11 -23
- package/dist/es2019/styles/shared/annotation.js +1 -106
- package/dist/es2019/styles/shared/code-block.js +1 -164
- package/dist/es2019/styles/shared/date.js +1 -11
- package/dist/es2019/styles/shared/grid.js +1 -39
- package/dist/es2019/styles/shared/lists.js +1 -121
- package/dist/es2019/styles/shared/panel.js +1 -138
- package/dist/es2019/styles/shared/resizer.js +2 -211
- package/dist/es2019/styles/shared/smart-card.js +1 -24
- package/dist/es2019/styles/shared/smartCard.js +1 -151
- package/dist/es2019/styles/shared/task-decision.js +1 -63
- package/dist/es2019/styles/shared/unsupported-content.js +1 -27
- package/dist/es2019/transforms/index.js +2 -1
- package/dist/es2019/transforms/sync-block.js +15 -0
- package/dist/es2019/ui/DropList/index.js +1 -1
- package/dist/es2019/ui/Expand/sharedStyles.js +1 -113
- package/dist/es2019/ui/index.js +0 -1
- package/dist/es2019/utils/compareNodes.js +6 -0
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +1 -1
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +1 -1
- package/dist/esm/media-inline/inline-image-wrapper.js +1 -1
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/panel.js +1 -1
- package/dist/esm/styles/index.js +11 -23
- package/dist/esm/styles/shared/annotation.js +0 -67
- package/dist/esm/styles/shared/code-block.js +1 -15
- package/dist/esm/styles/shared/date.js +1 -9
- package/dist/esm/styles/shared/grid.js +1 -39
- package/dist/esm/styles/shared/lists.js +1 -10
- package/dist/esm/styles/shared/panel.js +0 -37
- package/dist/esm/styles/shared/resizer.js +2 -202
- package/dist/esm/styles/shared/smart-card.js +0 -5
- package/dist/esm/styles/shared/smartCard.js +1 -15
- package/dist/esm/styles/shared/task-decision.js +1 -10
- package/dist/esm/styles/shared/unsupported-content.js +1 -11
- package/dist/esm/transforms/index.js +2 -1
- package/dist/esm/transforms/sync-block.js +18 -0
- package/dist/esm/ui/DropList/index.js +1 -1
- package/dist/esm/ui/Expand/sharedStyles.js +1 -96
- package/dist/esm/ui/index.js +0 -1
- package/dist/esm/utils/compareNodes.js +6 -0
- package/dist/types/panel.d.ts +1 -1
- package/dist/types/styles/index.d.ts +11 -23
- package/dist/types/styles/shared/annotation.d.ts +0 -30
- package/dist/types/styles/shared/code-block.d.ts +0 -3
- package/dist/types/styles/shared/date.d.ts +0 -2
- package/dist/types/styles/shared/grid.d.ts +0 -2
- package/dist/types/styles/shared/lists.d.ts +0 -2
- package/dist/types/styles/shared/panel.d.ts +0 -2
- package/dist/types/styles/shared/resizer.d.ts +0 -4
- package/dist/types/styles/shared/smart-card.d.ts +0 -2
- package/dist/types/styles/shared/smartCard.d.ts +0 -1
- package/dist/types/styles/shared/task-decision.d.ts +0 -2
- package/dist/types/styles/shared/unsupported-content.d.ts +0 -2
- package/dist/types/transforms/index.d.ts +1 -0
- package/dist/types/transforms/sync-block.d.ts +2 -0
- package/dist/types/ui/Expand/sharedStyles.d.ts +0 -6
- package/dist/types/ui/index.d.ts +0 -2
- package/dist/types-ts4.5/panel.d.ts +1 -1
- package/dist/types-ts4.5/styles/index.d.ts +11 -23
- package/dist/types-ts4.5/styles/shared/annotation.d.ts +0 -30
- package/dist/types-ts4.5/styles/shared/code-block.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/date.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/grid.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/lists.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/resizer.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/smart-card.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/smartCard.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/task-decision.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/unsupported-content.d.ts +0 -2
- package/dist/types-ts4.5/transforms/index.d.ts +1 -0
- package/dist/types-ts4.5/transforms/sync-block.d.ts +2 -0
- package/dist/types-ts4.5/ui/Expand/sharedStyles.d.ts +0 -6
- package/dist/types-ts4.5/ui/index.d.ts +0 -2
- package/package.json +5 -2
- package/dist/cjs/styles/shared/background-color.js +0 -33
- package/dist/cjs/styles/shared/block-marks.js +0 -14
- package/dist/cjs/styles/shared/code-mark.js +0 -32
- package/dist/cjs/styles/shared/column-layout.js +0 -70
- package/dist/cjs/styles/shared/embedCard.js +0 -42
- package/dist/cjs/styles/shared/indentation.js +0 -40
- package/dist/cjs/styles/shared/link.js +0 -24
- package/dist/cjs/styles/shared/paragraph.js +0 -39
- package/dist/cjs/styles/shared/rule.js +0 -24
- package/dist/cjs/styles/shared/shadow.js +0 -64
- package/dist/cjs/styles/shared/text-color.js +0 -20
- package/dist/cjs/styles/shared/whitespace.js +0 -15
- package/dist/es2019/styles/shared/background-color.js +0 -26
- package/dist/es2019/styles/shared/block-marks.js +0 -37
- package/dist/es2019/styles/shared/code-mark.js +0 -25
- package/dist/es2019/styles/shared/column-layout.js +0 -66
- package/dist/es2019/styles/shared/embedCard.js +0 -33
- package/dist/es2019/styles/shared/indentation.js +0 -34
- package/dist/es2019/styles/shared/link.js +0 -18
- package/dist/es2019/styles/shared/paragraph.js +0 -32
- package/dist/es2019/styles/shared/rule.js +0 -15
- package/dist/es2019/styles/shared/shadow.js +0 -69
- package/dist/es2019/styles/shared/text-color.js +0 -14
- package/dist/es2019/styles/shared/whitespace.js +0 -9
- package/dist/esm/styles/shared/background-color.js +0 -26
- package/dist/esm/styles/shared/block-marks.js +0 -8
- package/dist/esm/styles/shared/code-mark.js +0 -25
- package/dist/esm/styles/shared/column-layout.js +0 -63
- package/dist/esm/styles/shared/embedCard.js +0 -35
- package/dist/esm/styles/shared/indentation.js +0 -34
- package/dist/esm/styles/shared/link.js +0 -18
- package/dist/esm/styles/shared/paragraph.js +0 -32
- package/dist/esm/styles/shared/rule.js +0 -17
- package/dist/esm/styles/shared/shadow.js +0 -57
- package/dist/esm/styles/shared/text-color.js +0 -14
- package/dist/esm/styles/shared/whitespace.js +0 -9
- package/dist/types/styles/shared/background-color.d.ts +0 -1
- package/dist/types/styles/shared/block-marks.d.ts +0 -2
- package/dist/types/styles/shared/code-mark.d.ts +0 -1
- package/dist/types/styles/shared/column-layout.d.ts +0 -4
- package/dist/types/styles/shared/embedCard.d.ts +0 -3
- package/dist/types/styles/shared/indentation.d.ts +0 -2
- package/dist/types/styles/shared/link.d.ts +0 -2
- package/dist/types/styles/shared/paragraph.d.ts +0 -1
- package/dist/types/styles/shared/rule.d.ts +0 -1
- package/dist/types/styles/shared/shadow.d.ts +0 -15
- package/dist/types/styles/shared/text-color.d.ts +0 -2
- package/dist/types/styles/shared/whitespace.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/background-color.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/block-marks.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/code-mark.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/column-layout.d.ts +0 -4
- package/dist/types-ts4.5/styles/shared/embedCard.d.ts +0 -3
- package/dist/types-ts4.5/styles/shared/indentation.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/link.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/paragraph.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/rule.d.ts +0 -1
- package/dist/types-ts4.5/styles/shared/shadow.d.ts +0 -15
- package/dist/types-ts4.5/styles/shared/text-color.d.ts +0 -2
- package/dist/types-ts4.5/styles/shared/whitespace.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 110.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`be54c7e850cd3`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/be54c7e850cd3) -
|
|
8
|
+
remove unused deprecated styles used to be consumed in editor content styles
|
|
9
|
+
- [`30bb04cd8a8e9`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/30bb04cd8a8e9) -
|
|
10
|
+
[ux] [ED-29292] Fix 2 issues with wrapped images in editor and renderer
|
|
11
|
+
|
|
12
|
+
1. There is a gap between the first and the second wrapped images
|
|
13
|
+
2. For wrapped images in layout, if image is the first node, it not horizontally aligned with the
|
|
14
|
+
following wrapped images
|
|
15
|
+
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
18
|
+
## 110.9.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- [`2d1c925457b44`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/2d1c925457b44) -
|
|
23
|
+
EDITOR-1915 generate a new localId on paste syncblock(s)
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- [`f9785f7b14616`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f9785f7b14616) -
|
|
28
|
+
[ux] ED-29440 ensure that columns with mixed text and number content as sorted as if all are text
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 110.8.0
|
|
4
32
|
|
|
5
33
|
### Minor Changes
|
|
@@ -334,7 +334,7 @@ function MobileBrowser(_ref) {
|
|
|
334
334
|
_ref$focusOnEmptyStat = _ref.focusOnEmptyStateButton,
|
|
335
335
|
focusOnEmptyStateButton = _ref$focusOnEmptyStat === void 0 ? false : _ref$focusOnEmptyStat;
|
|
336
336
|
return (
|
|
337
|
-
// eslint-disable-next-line
|
|
337
|
+
// eslint-disable-next-line @atlassian/a11y/no-static-element-interactions
|
|
338
338
|
(0, _react2.jsx)("div", {
|
|
339
339
|
css: mobileElementBrowserContainer,
|
|
340
340
|
onKeyDown: onKeyDown,
|
|
@@ -163,7 +163,7 @@ var ExtensionLabel = exports.ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
163
163
|
'extension-icon': (0, _expValEquals.expValEquals)('cc_editor_ttvc_release_bundle_one', 'extensionHoverRefactor', true)
|
|
164
164
|
});
|
|
165
165
|
return (
|
|
166
|
-
// eslint-disable-next-line jsx-a11y/no-static-element-interactions,
|
|
166
|
+
// eslint-disable-next-line jsx-a11y/no-static-element-interactions, @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable
|
|
167
167
|
(0, _react.jsx)("div", {
|
|
168
168
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
169
169
|
css: containerStyles
|
|
@@ -36,7 +36,7 @@ var InlineImageWrapper = exports.InlineImageWrapper = function InlineImageWrappe
|
|
|
36
36
|
var borderStyleVars = borderSize && borderColor ? (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _styles.INLINE_IMAGE_BORDER_SIZE_CSS_VAR_KEY, borderSize), _styles.INLINE_IMAGE_BORDER_COLOR_CSS_VAR_KEY, (0, _editorPalette.hexToEditorBorderPaletteColor)(borderColor) || borderColor) : {};
|
|
37
37
|
var aspectStyleVars = aspectRatio ? (0, _defineProperty2.default)({}, _styles.INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY, aspectRatio) : {};
|
|
38
38
|
return (
|
|
39
|
-
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives,
|
|
39
|
+
// eslint-disable-next-line @atlaskit/design-system/prefer-primitives, @atlassian/a11y/click-events-have-key-events, @atlassian/a11y/interactive-element-not-keyboard-focusable, @atlassian/a11y/no-static-element-interactions
|
|
40
40
|
(0, _react.jsx)("span", (0, _extends2.default)({
|
|
41
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
42
42
|
style: _objectSpread(_objectSpread({}, borderStyleVars), aspectStyleVars)
|
|
@@ -16,7 +16,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
16
16
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
17
17
|
var SENTRY_DSN = 'https://0b10c8e02fb44d8796c047b102c9bee8@o55978.ingest.sentry.io/4505129224110080';
|
|
18
18
|
var packageName = 'editor-common'; // Sentry doesn't accept '/' in its releases https://docs.sentry.io/platforms/javascript/configuration/releases/
|
|
19
|
-
var packageVersion = "110.
|
|
19
|
+
var packageVersion = "110.9.0";
|
|
20
20
|
var sanitiseSentryEvents = function sanitiseSentryEvents(data, _hint) {
|
|
21
21
|
// Remove URL as it has UGC
|
|
22
22
|
// Ignored via go/ees007
|
package/dist/cjs/panel.js
CHANGED
|
@@ -33,16 +33,4 @@ Object.defineProperty(exports, "getPanelTypeBackgroundNoTokens", {
|
|
|
33
33
|
return _panel.getPanelTypeBackgroundNoTokens;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
|
-
Object.defineProperty(exports, "panelSharedStyles", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function get() {
|
|
39
|
-
return _panel.panelSharedStyles;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "panelSharedStylesWithoutPrefix", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function get() {
|
|
45
|
-
return _panel.panelSharedStylesWithoutPrefix;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
36
|
var _panel = require("./styles/shared/panel");
|
package/dist/cjs/styles/index.js
CHANGED
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
Object.defineProperty(exports, "AnnotationSharedCSSByState", {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: function get() {
|
|
9
|
-
return _annotation.AnnotationSharedCSSByState;
|
|
10
|
-
}
|
|
11
|
-
});
|
|
12
6
|
Object.defineProperty(exports, "AnnotationSharedClassNames", {
|
|
13
7
|
enumerable: true,
|
|
14
8
|
get: function get() {
|
|
@@ -153,24 +147,6 @@ Object.defineProperty(exports, "UnsupportedSharedCssClassName", {
|
|
|
153
147
|
return _unsupportedContent.UnsupportedSharedCssClassName;
|
|
154
148
|
}
|
|
155
149
|
});
|
|
156
|
-
Object.defineProperty(exports, "annotationSharedStyles", {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
get: function get() {
|
|
159
|
-
return _annotation.annotationSharedStyles;
|
|
160
|
-
}
|
|
161
|
-
});
|
|
162
|
-
Object.defineProperty(exports, "backgroundColorStyles", {
|
|
163
|
-
enumerable: true,
|
|
164
|
-
get: function get() {
|
|
165
|
-
return _backgroundColor.backgroundColorStyles;
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
Object.defineProperty(exports, "blockMarksSharedStyles", {
|
|
169
|
-
enumerable: true,
|
|
170
|
-
get: function get() {
|
|
171
|
-
return _blockMarks.blockMarksSharedStyles;
|
|
172
|
-
}
|
|
173
|
-
});
|
|
174
150
|
Object.defineProperty(exports, "blockquoteSharedStyles", {
|
|
175
151
|
enumerable: true,
|
|
176
152
|
get: function get() {
|
|
@@ -195,66 +171,12 @@ Object.defineProperty(exports, "calcTableWidth", {
|
|
|
195
171
|
return _table.calcTableWidth;
|
|
196
172
|
}
|
|
197
173
|
});
|
|
198
|
-
Object.defineProperty(exports, "codeBlockInListSafariFix", {
|
|
199
|
-
enumerable: true,
|
|
200
|
-
get: function get() {
|
|
201
|
-
return _codeBlock.codeBlockInListSafariFix;
|
|
202
|
-
}
|
|
203
|
-
});
|
|
204
|
-
Object.defineProperty(exports, "codeBlockSharedStyles", {
|
|
205
|
-
enumerable: true,
|
|
206
|
-
get: function get() {
|
|
207
|
-
return _codeBlock.codeBlockSharedStyles;
|
|
208
|
-
}
|
|
209
|
-
});
|
|
210
|
-
Object.defineProperty(exports, "codeMarkSharedStyles", {
|
|
211
|
-
enumerable: true,
|
|
212
|
-
get: function get() {
|
|
213
|
-
return _codeMark.codeMarkSharedStyles;
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
Object.defineProperty(exports, "columnLayoutResponsiveRendererStyles", {
|
|
217
|
-
enumerable: true,
|
|
218
|
-
get: function get() {
|
|
219
|
-
return _columnLayout.columnLayoutResponsiveRendererStyles;
|
|
220
|
-
}
|
|
221
|
-
});
|
|
222
|
-
Object.defineProperty(exports, "columnLayoutResponsiveSharedStyle", {
|
|
223
|
-
enumerable: true,
|
|
224
|
-
get: function get() {
|
|
225
|
-
return _columnLayout.columnLayoutResponsiveSharedStyle;
|
|
226
|
-
}
|
|
227
|
-
});
|
|
228
|
-
Object.defineProperty(exports, "columnLayoutSharedStyle", {
|
|
229
|
-
enumerable: true,
|
|
230
|
-
get: function get() {
|
|
231
|
-
return _columnLayout.columnLayoutSharedStyle;
|
|
232
|
-
}
|
|
233
|
-
});
|
|
234
|
-
Object.defineProperty(exports, "dateSharedStyle", {
|
|
235
|
-
enumerable: true,
|
|
236
|
-
get: function get() {
|
|
237
|
-
return _date.dateSharedStyle;
|
|
238
|
-
}
|
|
239
|
-
});
|
|
240
174
|
Object.defineProperty(exports, "disableBlueBorderStyles", {
|
|
241
175
|
enumerable: true,
|
|
242
176
|
get: function get() {
|
|
243
177
|
return _plugins.disableBlueBorderStyles;
|
|
244
178
|
}
|
|
245
179
|
});
|
|
246
|
-
Object.defineProperty(exports, "embedCardStyles", {
|
|
247
|
-
enumerable: true,
|
|
248
|
-
get: function get() {
|
|
249
|
-
return _embedCard.embedCardStyles;
|
|
250
|
-
}
|
|
251
|
-
});
|
|
252
|
-
Object.defineProperty(exports, "embedSpacingStyles", {
|
|
253
|
-
enumerable: true,
|
|
254
|
-
get: function get() {
|
|
255
|
-
return _embedCard.embedSpacingStyles;
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
180
|
Object.defineProperty(exports, "expandClassNames", {
|
|
259
181
|
enumerable: true,
|
|
260
182
|
get: function get() {
|
|
@@ -279,48 +201,18 @@ Object.defineProperty(exports, "getOrderedListInlineStyles", {
|
|
|
279
201
|
return _lists.getOrderedListInlineStyles;
|
|
280
202
|
}
|
|
281
203
|
});
|
|
282
|
-
Object.defineProperty(exports, "getSmartCardSharedStyles", {
|
|
283
|
-
enumerable: true,
|
|
284
|
-
get: function get() {
|
|
285
|
-
return _smartCard.getSmartCardSharedStyles;
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
Object.defineProperty(exports, "gridStyles", {
|
|
289
|
-
enumerable: true,
|
|
290
|
-
get: function get() {
|
|
291
|
-
return _grid.gridStyles;
|
|
292
|
-
}
|
|
293
|
-
});
|
|
294
204
|
Object.defineProperty(exports, "headingsSharedStyles", {
|
|
295
205
|
enumerable: true,
|
|
296
206
|
get: function get() {
|
|
297
207
|
return _headings.headingsSharedStyles;
|
|
298
208
|
}
|
|
299
209
|
});
|
|
300
|
-
Object.defineProperty(exports, "indentationSharedStyles", {
|
|
301
|
-
enumerable: true,
|
|
302
|
-
get: function get() {
|
|
303
|
-
return _indentation.indentationSharedStyles;
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
Object.defineProperty(exports, "linkSharedStyle", {
|
|
307
|
-
enumerable: true,
|
|
308
|
-
get: function get() {
|
|
309
|
-
return _link.linkSharedStyle;
|
|
310
|
-
}
|
|
311
|
-
});
|
|
312
210
|
Object.defineProperty(exports, "listItemCounterPadding", {
|
|
313
211
|
enumerable: true,
|
|
314
212
|
get: function get() {
|
|
315
213
|
return _lists.listItemCounterPadding;
|
|
316
214
|
}
|
|
317
215
|
});
|
|
318
|
-
Object.defineProperty(exports, "listsSharedStyles", {
|
|
319
|
-
enumerable: true,
|
|
320
|
-
get: function get() {
|
|
321
|
-
return _lists.listsSharedStyles;
|
|
322
|
-
}
|
|
323
|
-
});
|
|
324
216
|
Object.defineProperty(exports, "mediaSingleSharedStyle", {
|
|
325
217
|
enumerable: true,
|
|
326
218
|
get: function get() {
|
|
@@ -333,36 +225,6 @@ Object.defineProperty(exports, "mediaSingleSharedStyleNew", {
|
|
|
333
225
|
return _mediaSingle.mediaSingleSharedStyleNew;
|
|
334
226
|
}
|
|
335
227
|
});
|
|
336
|
-
Object.defineProperty(exports, "paragraphSharedStyles", {
|
|
337
|
-
enumerable: true,
|
|
338
|
-
get: function get() {
|
|
339
|
-
return _paragraph.paragraphSharedStyles;
|
|
340
|
-
}
|
|
341
|
-
});
|
|
342
|
-
Object.defineProperty(exports, "pragmaticResizerStyles", {
|
|
343
|
-
enumerable: true,
|
|
344
|
-
get: function get() {
|
|
345
|
-
return _resizer.pragmaticResizerStyles;
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
Object.defineProperty(exports, "pragmaticResizerStylesForTooltip", {
|
|
349
|
-
enumerable: true,
|
|
350
|
-
get: function get() {
|
|
351
|
-
return _resizer.pragmaticResizerStylesForTooltip;
|
|
352
|
-
}
|
|
353
|
-
});
|
|
354
|
-
Object.defineProperty(exports, "pragmaticResizerStylesWithReducedEditorGutter", {
|
|
355
|
-
enumerable: true,
|
|
356
|
-
get: function get() {
|
|
357
|
-
return _resizer.pragmaticResizerStylesWithReducedEditorGutter;
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
Object.defineProperty(exports, "pragmaticStylesLayoutFirstNodeResizeHandleFix", {
|
|
361
|
-
enumerable: true,
|
|
362
|
-
get: function get() {
|
|
363
|
-
return _resizer.pragmaticStylesLayoutFirstNodeResizeHandleFix;
|
|
364
|
-
}
|
|
365
|
-
});
|
|
366
228
|
Object.defineProperty(exports, "resizerHandleClassName", {
|
|
367
229
|
enumerable: true,
|
|
368
230
|
get: function get() {
|
|
@@ -399,42 +261,12 @@ Object.defineProperty(exports, "richMediaClassName", {
|
|
|
399
261
|
return _mediaSingle.richMediaClassName;
|
|
400
262
|
}
|
|
401
263
|
});
|
|
402
|
-
Object.defineProperty(exports, "ruleSharedStyles", {
|
|
403
|
-
enumerable: true,
|
|
404
|
-
get: function get() {
|
|
405
|
-
return _rule.ruleSharedStyles;
|
|
406
|
-
}
|
|
407
|
-
});
|
|
408
264
|
Object.defineProperty(exports, "separatorStyles", {
|
|
409
265
|
enumerable: true,
|
|
410
266
|
get: function get() {
|
|
411
267
|
return _plugins.separatorStyles;
|
|
412
268
|
}
|
|
413
269
|
});
|
|
414
|
-
Object.defineProperty(exports, "shadowSharedStyle", {
|
|
415
|
-
enumerable: true,
|
|
416
|
-
get: function get() {
|
|
417
|
-
return _shadow.shadowSharedStyle;
|
|
418
|
-
}
|
|
419
|
-
});
|
|
420
|
-
Object.defineProperty(exports, "sharedExpandStyles", {
|
|
421
|
-
enumerable: true,
|
|
422
|
-
get: function get() {
|
|
423
|
-
return _sharedStyles.sharedExpandStyles;
|
|
424
|
-
}
|
|
425
|
-
});
|
|
426
|
-
Object.defineProperty(exports, "smartCardSharedStyles", {
|
|
427
|
-
enumerable: true,
|
|
428
|
-
get: function get() {
|
|
429
|
-
return _smartCard.smartCardSharedStyles;
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
|
-
Object.defineProperty(exports, "smartCardStyles", {
|
|
433
|
-
enumerable: true,
|
|
434
|
-
get: function get() {
|
|
435
|
-
return _smartCard2.smartCardStyles;
|
|
436
|
-
}
|
|
437
|
-
});
|
|
438
270
|
Object.defineProperty(exports, "tableCellBorderWidth", {
|
|
439
271
|
enumerable: true,
|
|
440
272
|
get: function get() {
|
|
@@ -507,18 +339,6 @@ Object.defineProperty(exports, "tableSharedStyle", {
|
|
|
507
339
|
return _table.tableSharedStyle;
|
|
508
340
|
}
|
|
509
341
|
});
|
|
510
|
-
Object.defineProperty(exports, "tasksAndDecisionsStyles", {
|
|
511
|
-
enumerable: true,
|
|
512
|
-
get: function get() {
|
|
513
|
-
return _taskDecision.tasksAndDecisionsStyles;
|
|
514
|
-
}
|
|
515
|
-
});
|
|
516
|
-
Object.defineProperty(exports, "textColorStyles", {
|
|
517
|
-
enumerable: true,
|
|
518
|
-
get: function get() {
|
|
519
|
-
return _textColor.textColorStyles;
|
|
520
|
-
}
|
|
521
|
-
});
|
|
522
342
|
Object.defineProperty(exports, "triggerWrapperStyles", {
|
|
523
343
|
enumerable: true,
|
|
524
344
|
get: function get() {
|
|
@@ -531,41 +351,18 @@ Object.defineProperty(exports, "triggerWrapperStylesWithPadding", {
|
|
|
531
351
|
return _plugins.triggerWrapperStylesWithPadding;
|
|
532
352
|
}
|
|
533
353
|
});
|
|
534
|
-
Object.defineProperty(exports, "unsupportedStyles", {
|
|
535
|
-
enumerable: true,
|
|
536
|
-
get: function get() {
|
|
537
|
-
return _unsupportedContent.unsupportedStyles;
|
|
538
|
-
}
|
|
539
|
-
});
|
|
540
|
-
Object.defineProperty(exports, "whitespaceSharedStyles", {
|
|
541
|
-
enumerable: true,
|
|
542
|
-
get: function get() {
|
|
543
|
-
return _whitespace.whitespaceSharedStyles;
|
|
544
|
-
}
|
|
545
|
-
});
|
|
546
354
|
Object.defineProperty(exports, "wrapperStyle", {
|
|
547
355
|
enumerable: true,
|
|
548
356
|
get: function get() {
|
|
549
357
|
return _plugins.wrapperStyle;
|
|
550
358
|
}
|
|
551
359
|
});
|
|
552
|
-
var _textColor = require("./shared/text-color");
|
|
553
|
-
var _backgroundColor = require("./shared/background-color");
|
|
554
360
|
var _table = require("./shared/table");
|
|
555
361
|
var _annotation = require("./shared/annotation");
|
|
556
|
-
var _columnLayout = require("./shared/column-layout");
|
|
557
362
|
var _mediaSingle = require("./shared/media-single");
|
|
558
363
|
var _blockquote = require("./shared/blockquote");
|
|
559
364
|
var _headings = require("./shared/headings");
|
|
560
|
-
var _rule = require("./shared/rule");
|
|
561
|
-
var _whitespace = require("./shared/whitespace");
|
|
562
|
-
var _paragraph = require("./shared/paragraph");
|
|
563
|
-
var _link = require("./shared/link");
|
|
564
365
|
var _lists = require("./shared/lists");
|
|
565
|
-
var _indentation = require("./shared/indentation");
|
|
566
|
-
var _blockMarks = require("./shared/block-marks");
|
|
567
|
-
var _codeMark = require("./shared/code-mark");
|
|
568
|
-
var _shadow = require("./shared/shadow");
|
|
569
366
|
var _date = require("./shared/date");
|
|
570
367
|
var _taskDecision = require("./shared/task-decision");
|
|
571
368
|
var _status = require("./shared/status");
|
|
@@ -577,7 +374,6 @@ var _extension = require("./shared/extension");
|
|
|
577
374
|
var _resizer = require("./shared/resizer");
|
|
578
375
|
var _grid = require("./shared/grid");
|
|
579
376
|
var _smartCard2 = require("./shared/smartCard");
|
|
580
|
-
var _embedCard = require("./shared/embedCard");
|
|
581
377
|
var _plugins = require("./shared/plugins");
|
|
582
378
|
var _unsupportedContent = require("./shared/unsupported-content");
|
|
583
379
|
var _expand = require("./shared/expand");
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.blockAnnotationPrefix = exports.
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
-
var _templateObject, _templateObject2; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
+
exports.blockAnnotationPrefix = exports.annotationPrefix = exports.BlockAnnotationSharedClassNames = exports.AnnotationSharedClassNames = void 0;
|
|
12
7
|
var annotationPrefix = exports.annotationPrefix = 'ak-editor-annotation';
|
|
13
8
|
var AnnotationSharedClassNames = exports.AnnotationSharedClassNames = {
|
|
14
9
|
focus: "".concat(annotationPrefix, "-focus"),
|
|
@@ -21,66 +16,4 @@ var BlockAnnotationSharedClassNames = exports.BlockAnnotationSharedClassNames =
|
|
|
21
16
|
focus: "".concat(blockAnnotationPrefix, "-focus"),
|
|
22
17
|
blur: "".concat(blockAnnotationPrefix, "-blur"),
|
|
23
18
|
draft: "".concat(blockAnnotationPrefix, "-draft")
|
|
24
|
-
};
|
|
25
|
-
var AnnotationSharedCSSByState = exports.AnnotationSharedCSSByState = function AnnotationSharedCSSByState() {
|
|
26
|
-
if ((0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes')) {
|
|
27
|
-
// NOTE: These styles are shared between renderer and editor. Sometimes they
|
|
28
|
-
// need different selectors and other times they apply the same attributes
|
|
29
|
-
// in a different way. For example in renderer the focus styles are an
|
|
30
|
-
// override, not a separate class. Be sure to check both usages of this
|
|
31
|
-
// before modifying.
|
|
32
|
-
return {
|
|
33
|
-
common: {
|
|
34
|
-
borderBottom: '2px solid transparent',
|
|
35
|
-
cursor: 'pointer',
|
|
36
|
-
padding: '1px 0 2px',
|
|
37
|
-
'&:has(.card), &:has([data-inline-card])': (0, _platformFeatureFlags.fg)('annotations_align_editor_and_renderer_styles') ? {
|
|
38
|
-
padding: '5px 0 3px 0'
|
|
39
|
-
} : {
|
|
40
|
-
paddingTop: '4px',
|
|
41
|
-
border: 'none',
|
|
42
|
-
boxShadow: "0 2px 0 0 ".concat("var(--ds-border-accent-yellow, #B38600)")
|
|
43
|
-
},
|
|
44
|
-
'&:has(.date-lozenger-container)': {
|
|
45
|
-
paddingTop: '2px'
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
focus: (0, _react.css)({
|
|
49
|
-
background: "var(--ds-background-accent-yellow-subtlest-pressed, #F5CD47)",
|
|
50
|
-
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
|
|
51
|
-
boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #091E4240, 0px 0px 1px #091E424f)"
|
|
52
|
-
}),
|
|
53
|
-
blur: (0, _react.css)({
|
|
54
|
-
background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
|
|
55
|
-
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)"
|
|
56
|
-
}),
|
|
57
|
-
hover: (0, _react.css)({
|
|
58
|
-
background: "var(--ds-background-accent-yellow-subtlest-hovered, #F8E6A0)",
|
|
59
|
-
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
|
|
60
|
-
boxShadow: "var(--ds-shadow-raised, 0px 1px 1px #091E4240, 0px 0px 1px #091E424f)"
|
|
61
|
-
})
|
|
62
|
-
};
|
|
63
|
-
} else {
|
|
64
|
-
return {
|
|
65
|
-
focus: (0, _react.css)({
|
|
66
|
-
// Background is not coming through in confluence, suspecting to be caused by some specific combination of
|
|
67
|
-
// emotion and token look up
|
|
68
|
-
background: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
|
|
69
|
-
borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, #B38600)"),
|
|
70
|
-
// TODO: DSP-4147 - Annotation shadow
|
|
71
|
-
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
|
72
|
-
cursor: 'pointer'
|
|
73
|
-
}),
|
|
74
|
-
blur: (0, _react.css)({
|
|
75
|
-
background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
|
|
76
|
-
borderBottom: "2px solid ".concat("var(--ds-border-accent-yellow, #B38600)"),
|
|
77
|
-
cursor: 'pointer'
|
|
78
|
-
})
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
var annotationSharedStyles = exports.annotationSharedStyles = function annotationSharedStyles() {
|
|
83
|
-
return (0, _platformFeatureFlags.fg)('editor_inline_comments_on_inline_nodes') ? // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
84
|
-
(0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", ",\n\t\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.blur, AnnotationSharedClassNames.focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().common, AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur, AnnotationSharedClassNames.hover, AnnotationSharedCSSByState().common, AnnotationSharedCSSByState().hover) : // eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- `AnnotationSharedCSSByState()` is not safe in object syntax
|
|
85
|
-
(0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t\t.ProseMirror {\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t\tcursor: initial;\n\t\t\t\t\t}\n\n\t\t\t\t\t.", " {\n\t\t\t\t\t\t", ";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t"])), AnnotationSharedClassNames.focus, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.draft, AnnotationSharedCSSByState().focus, AnnotationSharedClassNames.blur, AnnotationSharedCSSByState().blur);
|
|
86
19
|
};
|
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
11
|
-
var _templateObject, _templateObject2;
|
|
12
|
-
/* eslint-disable @atlaskit/design-system/no-css-tagged-template-expression -- Should be safe to autofix, but ignoring for now */
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
|
+
exports.CodeBlockSharedCssClassName = void 0;
|
|
14
7
|
var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
|
|
15
8
|
CODEBLOCK_CONTAINER: 'code-block',
|
|
16
9
|
CODEBLOCK_START: 'code-block--start',
|
|
@@ -21,12 +14,4 @@ var CodeBlockSharedCssClassName = exports.CodeBlockSharedCssClassName = {
|
|
|
21
14
|
DS_CODEBLOCK: '[data-ds--code--code-block]',
|
|
22
15
|
CODEBLOCK_CONTENT_WRAPPED: 'code-content--wrapped',
|
|
23
16
|
CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET: 'code-content__line-number--wrapped'
|
|
24
|
-
};
|
|
25
|
-
var codeBlockSharedStyles = exports.codeBlockSharedStyles = function codeBlockSharedStyles() {
|
|
26
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t.code-block-gutter-pseudo-element::before {\n\t\t\tcontent: attr(data-label);\n\t\t}\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: relative;\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t/* This is a fix of marker of list item with code block.\n\t\t The list item marker in Chrome is aligned by the baseline of the text,\n\t\t that's why we need to add a text (content: \"1\") to the line number gutter to align\n\t\t the list item marker with the text.\n\t\t Without it, the list item marker will be aligned by the bottom of the code block. */\n\t\t.", "::before {\n\t\t\tcontent: '1';\n\t\t\tvisibility: hidden;\n\t\t\tfont-size: ", ";\n\t\t\tline-height: 1.5rem;\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", "var(--ds-radius-small, 3px)", _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.akEditorCodeFontFamily, _editorSharedStyles.akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, #091E420F)", "var(--ds-radius-small, 3px)", (0, _editorSharedStyles.overflowShadow)({
|
|
27
|
-
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
28
|
-
}), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, #091E420F)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, #172B4D)", "var(--ds-radius-small, 3px)", "var(--ds-space-100, 8px)", (0, _editorSharedStyles.relativeFontSizeToBase16)(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, (0, _editorSharedStyles.relativeFontSizeToBase16)(14), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
32
|
-
var codeBlockInListSafariFix = exports.codeBlockInListSafariFix = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t::before {\n\t\tcontent: ' ';\n\t\tline-height: ", ";\n\t}\n\n\t> p:first-child,\n\t> .code-block:first-child,\n\t> .ProseMirror-gapcursor:first-child + .code-block {\n\t\tmargin-top: -", "em !important;\n\t}\n"])), _editorSharedStyles.akEditorLineHeight, _editorSharedStyles.akEditorLineHeight);
|
|
17
|
+
};
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
|
-
exports.
|
|
8
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _react = require("@emotion/react");
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
-
|
|
6
|
+
exports.DateSharedCssClassName = void 0;
|
|
12
7
|
var DateSharedCssClassName = exports.DateSharedCssClassName = {
|
|
13
8
|
DATE_WRAPPER: "date-lozenger-container",
|
|
14
9
|
DATE_CONTAINER: 'dateView-content-wrap'
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
|
-
var dateSharedStyle = exports.dateSharedStyle = (0, _react.css)((0, _defineProperty2.default)({}, ".".concat(DateSharedCssClassName.DATE_WRAPPER, " span"), {
|
|
19
|
-
whiteSpace: 'unset'
|
|
20
|
-
}));
|
|
10
|
+
};
|
|
@@ -3,44 +3,5 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
var
|
|
8
|
-
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
10
|
-
|
|
11
|
-
var GRID_GUTTER = exports.GRID_GUTTER = 12;
|
|
12
|
-
|
|
13
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
|
-
var gridStyles = exports.gridStyles = (0, _react.css)({
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
16
|
-
'.gridParent': {
|
|
17
|
-
width: "calc(100% + ".concat(GRID_GUTTER * 2, "px)"),
|
|
18
|
-
marginLeft: "var(--ds-space-negative-150, -12px)",
|
|
19
|
-
marginRight: "var(--ds-space-negative-150, -12px)",
|
|
20
|
-
transform: 'scale(1)',
|
|
21
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
-
zIndex: _editorSharedStyles.akEditorGridLineZIndex
|
|
23
|
-
},
|
|
24
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
25
|
-
'.gridContainer': {
|
|
26
|
-
position: 'fixed',
|
|
27
|
-
height: '100vh',
|
|
28
|
-
width: '100%',
|
|
29
|
-
pointerEvents: 'none'
|
|
30
|
-
},
|
|
31
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
|
-
'.gridLine': {
|
|
33
|
-
borderLeft: "1px solid ".concat("var(--ds-border, #091E4224)"),
|
|
34
|
-
display: 'inline-block',
|
|
35
|
-
boxSizing: 'border-box',
|
|
36
|
-
height: '100%',
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/use-tokens-space
|
|
38
|
-
marginLeft: '-1px',
|
|
39
|
-
transition: 'border-color 0.15s linear',
|
|
40
|
-
zIndex: 0
|
|
41
|
-
},
|
|
42
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
43
|
-
'.highlight': {
|
|
44
|
-
borderLeft: "1px solid ".concat("var(--ds-border-focused, #388BFF)")
|
|
45
|
-
}
|
|
46
|
-
});
|
|
6
|
+
exports.GRID_GUTTER = void 0;
|
|
7
|
+
var GRID_GUTTER = exports.GRID_GUTTER = 12;
|
|
@@ -5,14 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.getOrderedListInlineStyles = getOrderedListInlineStyles;
|
|
8
|
-
exports.
|
|
9
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
8
|
+
exports.listItemCounterPadding = void 0;
|
|
10
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
10
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
-
var _react = require("@emotion/react");
|
|
13
|
-
var _adfSchema = require("@atlaskit/adf-schema");
|
|
14
|
-
var _browser = require("../../utils/browser");
|
|
15
|
-
var _templateObject; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
11
|
var listItemCounterPadding = exports.listItemCounterPadding = 24;
|
|
17
12
|
var CSS_VAR_NAMES = /*#__PURE__*/function (CSS_VAR_NAMES) {
|
|
18
13
|
CSS_VAR_NAMES["ITEM_COUNTER_PADDING"] = "--ed--list--item-counter--padding";
|
|
@@ -52,7 +47,4 @@ function getOrderedListInlineStyles(itemCounterDigitsSize, styleFormat
|
|
|
52
47
|
return stringifyStyle(style);
|
|
53
48
|
}
|
|
54
49
|
return style;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, There is some "flow-root" hack that is not actually valid css. Do note, this might not even work in Compiled (or Emotion) due to the way tagged template expressions are parsed…
|
|
58
|
-
var listsSharedStyles = exports.listsSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t/* =============== INDENTATION SPACING ========= */\n\n\tul,\n\tol {\n\t\tbox-sizing: border-box;\n\t\tpadding-left: var(", ", ", "px);\n\t\t/*\n Firefox does not handle empty block element inside li tag.\n If there is not block element inside li tag,\n then firefox sets inherited height to li\n However, if there is any block element and if it's empty\n (or has empty inline element) then\n firefox sets li tag height to zero.\n More details at\n https://product-fabric.atlassian.net/wiki/spaces/~455502413/pages/3149365890/ED-14110+Investigation\n */\n\t\tli p:empty,\n\t\tli p > span:empty {\n\t\t\t", "\n\t\t}\n\t}\n\n\t", ", ", " {\n\t\t/*\n Ensures list item content adheres to the list's margin instead\n of filling the entire block row. This is important to allow\n clicking interactive elements which are floated next to a list.\n\n For some history and context on this block, see PRs related to tickets.:\n @see ED-6551 - original issue.\n @see ED-7015 - follow up issue.\n @see ED-7447 - flow-root change.\n\n We use 'display: table' (old clear fix / new block formatting context hack)\n for older browsers and 'flow-root' for modern browsers.\n\n @see https://css-tricks.com/display-flow-root/\n */\n\t\t/* For older browsers the do not support flow-root. */\n\t\t/* stylelint-disable declaration-block-no-duplicate-properties */\n\t\tdisplay: table;\n\t\tdisplay: flow-root;\n\t\t/* stylelint-enable declaration-block-no-duplicate-properties */\n\t}\n\n\t/* =============== INDENTATION AESTHETICS ========= */\n\n\t/**\n We support nested lists up to six levels deep.\n **/\n\n\t/* LEGACY LISTS */\n\n\tul,\n\tul ul ul ul {\n\t\tlist-style-type: disc;\n\t}\n\n\tul ul,\n\tul ul ul ul ul {\n\t\tlist-style-type: circle;\n\t}\n\n\tul ul ul,\n\tul ul ul ul ul ul {\n\t\tlist-style-type: square;\n\t}\n\n\tol,\n\tol ol ol ol {\n\t\tlist-style-type: decimal;\n\t}\n\tol ol,\n\tol ol ol ol ol {\n\t\tlist-style-type: lower-alpha;\n\t}\n\tol ol ol,\n\tol ol ol ol ol ol {\n\t\tlist-style-type: lower-roman;\n\t}\n\n\t/* PREDICTABLE LISTS */\n\n\tol[data-indent-level='1'],\n\tol[data-indent-level='4'] {\n\t\tlist-style-type: decimal;\n\t}\n\n\tol[data-indent-level='2'],\n\tol[data-indent-level='5'] {\n\t\tlist-style-type: lower-alpha;\n\t}\n\n\tol[data-indent-level='3'],\n\tol[data-indent-level='6'] {\n\t\tlist-style-type: lower-roman;\n\t}\n\n\tul[data-indent-level='1'],\n\tul[data-indent-level='4'] {\n\t\tlist-style-type: disc;\n\t}\n\n\tul[data-indent-level='2'],\n\tul[data-indent-level='5'] {\n\t\tlist-style-type: circle;\n\t}\n\n\tul[data-indent-level='3'],\n\tul[data-indent-level='6'] {\n\t\tlist-style-type: square;\n\t}\n"])), CSS_VAR_NAMES.ITEM_COUNTER_PADDING, listItemCounterPadding, _browser.browser.gecko ? 'display: inline-block;' : '', _adfSchema.orderedListSelector, _adfSchema.bulletListSelector);
|
|
50
|
+
}
|