@atlaskit/editor-common 72.0.0 → 72.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +79 -0
- package/dist/cjs/analytics/types/enums.js +1 -1
- package/dist/cjs/keymaps/index.js +1 -3
- package/dist/cjs/styles/shared/annotation.js +9 -11
- package/dist/cjs/styles/shared/blockquote.js +1 -3
- package/dist/cjs/styles/shared/code-block.js +11 -13
- package/dist/cjs/styles/shared/code-mark.js +2 -4
- package/dist/cjs/styles/shared/panel.js +24 -28
- package/dist/cjs/styles/shared/rule.js +2 -4
- package/dist/cjs/styles/shared/shadow.js +1 -3
- package/dist/cjs/styles/shared/table.js +22 -24
- package/dist/cjs/ui/Caption/index.js +2 -4
- package/dist/cjs/ui/DropList/index.js +5 -7
- package/dist/cjs/ui/Expand/index.js +17 -19
- package/dist/cjs/ui/Messages/index.js +3 -5
- package/dist/cjs/ui/PortalProvider/PortalProviderThemesProvider.js +5 -12
- package/dist/cjs/ui/UnsupportedBlock/index.js +1 -3
- package/dist/cjs/ui/UnsupportedInline/index.js +1 -3
- package/dist/cjs/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -7
- package/dist/cjs/ui-color/ColorPalette/index.js +1 -1
- package/dist/cjs/ui-color/index.js +0 -6
- package/dist/cjs/ui-menu/DropdownMenu/index.js +10 -12
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/analytics/types/enums.js +1 -1
- package/dist/es2019/keymaps/index.js +1 -2
- package/dist/es2019/styles/shared/annotation.js +9 -10
- package/dist/es2019/styles/shared/blockquote.js +1 -2
- package/dist/es2019/styles/shared/code-block.js +11 -12
- package/dist/es2019/styles/shared/code-mark.js +2 -3
- package/dist/es2019/styles/shared/panel.js +24 -27
- package/dist/es2019/styles/shared/rule.js +2 -3
- package/dist/es2019/styles/shared/shadow.js +4 -5
- package/dist/es2019/styles/shared/table.js +22 -23
- package/dist/es2019/ui/Caption/index.js +2 -3
- package/dist/es2019/ui/DropList/index.js +5 -6
- package/dist/es2019/ui/Expand/index.js +17 -18
- package/dist/es2019/ui/Messages/index.js +3 -4
- package/dist/es2019/ui/PortalProvider/PortalProviderThemesProvider.js +5 -12
- package/dist/es2019/ui/UnsupportedBlock/index.js +2 -3
- package/dist/es2019/ui/UnsupportedInline/index.js +2 -3
- package/dist/es2019/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -5
- package/dist/es2019/ui-color/ColorPalette/index.js +2 -2
- package/dist/es2019/ui-color/index.js +1 -1
- package/dist/es2019/ui-menu/DropdownMenu/index.js +11 -12
- package/dist/es2019/version.json +1 -1
- package/dist/esm/analytics/types/enums.js +1 -1
- package/dist/esm/keymaps/index.js +1 -2
- package/dist/esm/styles/shared/annotation.js +9 -10
- package/dist/esm/styles/shared/blockquote.js +1 -2
- package/dist/esm/styles/shared/code-block.js +11 -12
- package/dist/esm/styles/shared/code-mark.js +2 -3
- package/dist/esm/styles/shared/panel.js +24 -27
- package/dist/esm/styles/shared/rule.js +2 -3
- package/dist/esm/styles/shared/shadow.js +1 -2
- package/dist/esm/styles/shared/table.js +22 -23
- package/dist/esm/ui/Caption/index.js +2 -3
- package/dist/esm/ui/DropList/index.js +5 -6
- package/dist/esm/ui/Expand/index.js +17 -18
- package/dist/esm/ui/Messages/index.js +3 -4
- package/dist/esm/ui/PortalProvider/PortalProviderThemesProvider.js +5 -12
- package/dist/esm/ui/UnsupportedBlock/index.js +1 -2
- package/dist/esm/ui/UnsupportedInline/index.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/textColorPalette.js +1 -5
- package/dist/esm/ui-color/ColorPalette/index.js +2 -2
- package/dist/esm/ui-color/index.js +1 -1
- package/dist/esm/ui-menu/DropdownMenu/index.js +10 -11
- package/dist/esm/version.json +1 -1
- package/dist/types/analytics/types/enums.d.ts +1 -1
- package/dist/types/analytics/types/events.d.ts +3 -2
- package/dist/types/analytics/types/experimental-events.d.ts +0 -1
- package/dist/types/analytics/types/general-events.d.ts +3 -1
- package/dist/types/types/feature-flags.d.ts +15 -5
- package/dist/types/types/floating-toolbar.d.ts +2 -0
- package/dist/types/ui-color/ColorPalette/Palettes/textColorPalette.d.ts +0 -1
- package/dist/types/ui-color/index.d.ts +1 -1
- package/package.json +6 -6
- package/report.api.md +16 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,84 @@
|
|
|
1
1
|
# @atlaskit/editor-common
|
|
2
2
|
|
|
3
|
+
## 72.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`055a333dad9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/055a333dad9) - [ux] Remove `moreTextColors` feature flag and deprecate `allowMoreTextColors` field of `allowTextColor` editor prop and `colorPaletteExtended` mark.
|
|
8
|
+
|
|
9
|
+
Showing more colors in the color selection palette is now a default behaviour.
|
|
10
|
+
|
|
11
|
+
## **DEPRECATION WARNING:**
|
|
12
|
+
|
|
13
|
+
There are 2 deprecations in this change:
|
|
14
|
+
|
|
15
|
+
### 1. `allowMoreTextColors` field of `allowTextColor` editor prop.
|
|
16
|
+
|
|
17
|
+
`allowMoreTextColors` field of `allowTextColor` editor prop. **is now deprecated and will be removed in the next stable release of `@atlaskit/editor-core` package**. Please take steps to remove that field from your code. E.g.:
|
|
18
|
+
|
|
19
|
+
```tsx
|
|
20
|
+
<Editor
|
|
21
|
+
...
|
|
22
|
+
allowTextColor ={
|
|
23
|
+
allowMoreTextColors: true // <-- Deprecated
|
|
24
|
+
defaultColour: {color: 'red', label: 'red'}
|
|
25
|
+
}
|
|
26
|
+
/>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Remove all instances of `allowMoreTextColors` field from `allowTextColor` `Editor` prop. I.e.:
|
|
30
|
+
|
|
31
|
+
```tsx
|
|
32
|
+
<Editor
|
|
33
|
+
...
|
|
34
|
+
allowTextColor ={
|
|
35
|
+
defaultColour: {color: 'red', label: 'red'}
|
|
36
|
+
}
|
|
37
|
+
/>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
If the resulting `allowTextColor` prop is an empty object, set `allowTextColor` property value to `true`. E.g.:
|
|
41
|
+
|
|
42
|
+
```tsx
|
|
43
|
+
<Editor
|
|
44
|
+
appearance="full-page"
|
|
45
|
+
...
|
|
46
|
+
allowTextColor ={
|
|
47
|
+
allowMoreTextColors: true // <-- Invalid
|
|
48
|
+
}
|
|
49
|
+
/>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
should become
|
|
53
|
+
|
|
54
|
+
```tsx
|
|
55
|
+
<Editor
|
|
56
|
+
appearance="full-page"
|
|
57
|
+
...
|
|
58
|
+
allowTextColor={true}
|
|
59
|
+
/>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 2. `colorPaletteExtended` mark of the ADF schema
|
|
63
|
+
|
|
64
|
+
`colorPaletteExtended` mark of the ADF schema **is now deprecated and will be removed in the next stable release**. The extended palette is now rolled into the main one. use `colorPalette` instead.
|
|
65
|
+
|
|
66
|
+
### Patch Changes
|
|
67
|
+
|
|
68
|
+
- [`f7cdc36d75b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f7cdc36d75b) - ED016195 update EDITOR_CRASHED_ADDITIONAL_INFORMATION event name
|
|
69
|
+
- [`efa8b7ee68e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/efa8b7ee68e) - ED-15808 Changes to replace usage of enzyme with React test library
|
|
70
|
+
- [`70d0799eee0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/70d0799eee0) - ED-14002 Added `safer-dispatched-transactions` featureFlag to preventtransactions from being mutated after dispatch at runtime.
|
|
71
|
+
- [`c6c0cab10e0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c6c0cab10e0) - [ux] ED-16205 - Fix missing yellow highlight on merged table cells when hover sort column options on table floating toolbar
|
|
72
|
+
- [`b9141027f87`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b9141027f87) - [ux] ED-13873 fixes a bug where after deleting a list in a panel or table the cursor would move to the cell to the right. Uses setSelection to position the cursor as expected after delete.
|
|
73
|
+
- Updated dependencies
|
|
74
|
+
|
|
75
|
+
## 72.0.1
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- [`4a2a04ee176`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4a2a04ee176) - Internal refactor of panel color logic to support design token babel plugin
|
|
80
|
+
- [`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving performance.
|
|
81
|
+
|
|
3
82
|
## 72.0.0
|
|
4
83
|
|
|
5
84
|
### Major Changes
|
|
@@ -47,7 +47,7 @@ exports.ACTION = ACTION;
|
|
|
47
47
|
ACTION["DISPATCHED_VALID_TRANSACTION"] = "dispatchedValidTransaction";
|
|
48
48
|
ACTION["EDITED"] = "edited";
|
|
49
49
|
ACTION["EDITOR_CRASHED"] = "unhandledErrorCaught";
|
|
50
|
-
ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "
|
|
50
|
+
ACTION["EDITOR_CRASHED_ADDITIONAL_INFORMATION"] = "unhandledErrorCaughtAdditionalInfov2";
|
|
51
51
|
ACTION["EDITOR_MOUNTED"] = "mounted";
|
|
52
52
|
ACTION["EDITOR_TTI"] = "tti";
|
|
53
53
|
ACTION["EDITOR_CONTENT_RETRIEVAL_PERFORMED"] = "contentRetrievalPerformed";
|
|
@@ -106,8 +106,6 @@ var _react2 = require("@emotion/react");
|
|
|
106
106
|
|
|
107
107
|
var _colors = require("@atlaskit/theme/colors");
|
|
108
108
|
|
|
109
|
-
var _tokens = require("@atlaskit/tokens");
|
|
110
|
-
|
|
111
109
|
var _utils = require("../utils");
|
|
112
110
|
|
|
113
111
|
var _consts = require("./consts");
|
|
@@ -249,7 +247,7 @@ var arrowKeysMap = {
|
|
|
249
247
|
ARROWUP: "\u2191",
|
|
250
248
|
ARROWDOWN: "\u2193"
|
|
251
249
|
};
|
|
252
|
-
var tooltipShortcutStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 2px;\n background-color: ", ";\n padding: 0 2px;\n\n /* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */\n /* stylelint-disable-next-line */\n label: tooltip-shortcut;\n"])), (
|
|
250
|
+
var tooltipShortcutStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n border-radius: 2px;\n background-color: ", ";\n padding: 0 2px;\n\n /* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */\n /* stylelint-disable-next-line */\n label: tooltip-shortcut;\n"])), "var(--ds-background-inverse-subtle, ".concat(_colors.N400, ")"));
|
|
253
251
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
254
252
|
|
|
255
253
|
function formatShortcut(keymap) {
|
|
@@ -15,8 +15,6 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
15
15
|
|
|
16
16
|
var _components = require("@atlaskit/theme/components");
|
|
17
17
|
|
|
18
|
-
var _tokens = require("@atlaskit/tokens");
|
|
19
|
-
|
|
20
18
|
var _templateObject, _templateObject2, _templateObject3;
|
|
21
19
|
|
|
22
20
|
var annotationPrefix = 'ak-editor-annotation';
|
|
@@ -37,18 +35,18 @@ var DY200 = '#82641c';
|
|
|
37
35
|
var AnnotationSharedCSSByState = function AnnotationSharedCSSByState(props) {
|
|
38
36
|
return {
|
|
39
37
|
focus: (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n // Background is not coming through in confluence, suspecting to be caused by some specific combination of\n // emotion and token look up\n\n background: ", ";\n border-bottom: 2px solid\n ", ";\n // TODO: https://product-fabric.atlassian.net/browse/DSP-4147\n box-shadow: ", ";\n cursor: pointer;\n "])), (0, _components.themed)({
|
|
40
|
-
light: (
|
|
41
|
-
dark: (
|
|
38
|
+
light: "var(--ds-background-accent-yellow-subtler, ".concat(_colors.Y75, ")"),
|
|
39
|
+
dark: "var(--ds-background-accent-yellow-subtler, ".concat(DY75, ")")
|
|
42
40
|
})(props), (0, _components.themed)({
|
|
43
|
-
light: (
|
|
44
|
-
dark: (
|
|
45
|
-
})(props), (
|
|
41
|
+
light: "var(--ds-border-accent-yellow, ".concat(_colors.Y300, ")"),
|
|
42
|
+
dark: "var(--ds-border-accent-yellow, ".concat(DY300, ")")
|
|
43
|
+
})(props), "var(--ds-shadow-overlay, ".concat("1px 2px 3px ".concat(_colors.N60A, ", -1px 2px 3px ").concat(_colors.N60A), ")")),
|
|
46
44
|
blur: (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n border-bottom: 2px solid\n ", ";\n cursor: pointer;\n "])), (0, _components.themed)({
|
|
47
|
-
light: (
|
|
48
|
-
dark: (
|
|
45
|
+
light: "var(--ds-background-accent-yellow-subtlest, ".concat(Y75a, ")"),
|
|
46
|
+
dark: "var(--ds-background-accent-yellow-subtlest, ".concat(DY75a, ")")
|
|
49
47
|
})(props), (0, _components.themed)({
|
|
50
|
-
light: (
|
|
51
|
-
dark: (
|
|
48
|
+
light: "var(--ds-border-accent-yellow, ".concat(Y200a, ")"),
|
|
49
|
+
dark: "var(--ds-border-accent-yellow, ".concat(DY200, ")")
|
|
52
50
|
})(props))
|
|
53
51
|
};
|
|
54
52
|
};
|
|
@@ -15,9 +15,7 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
|
15
15
|
|
|
16
16
|
var _constants = require("@atlaskit/theme/constants");
|
|
17
17
|
|
|
18
|
-
var _tokens = require("@atlaskit/tokens");
|
|
19
|
-
|
|
20
18
|
var _templateObject;
|
|
21
19
|
|
|
22
|
-
var blockquoteSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n & blockquote {\n box-sizing: border-box;\n padding-left: ", "px;\n border-left: 2px solid\n ", ";\n margin: ", " 0 0 0;\n margin-right: 0;\n\n [dir='rtl'] & {\n padding-left: 0;\n padding-right: ", "px;\n }\n\n &:first-child {\n margin-top: 0;\n }\n\n &::before {\n content: '';\n }\n\n &::after {\n content: none;\n }\n\n & p {\n display: block;\n }\n\n & table,\n & table:last-child {\n display: inline-table;\n }\n }\n"])), (0, _constants.gridSize)() * 2, (
|
|
20
|
+
var blockquoteSharedStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n & blockquote {\n box-sizing: border-box;\n padding-left: ", "px;\n border-left: 2px solid\n ", ";\n margin: ", " 0 0 0;\n margin-right: 0;\n\n [dir='rtl'] & {\n padding-left: 0;\n padding-right: ", "px;\n }\n\n &:first-child {\n margin-top: 0;\n }\n\n &::before {\n content: '';\n }\n\n &::after {\n content: none;\n }\n\n & p {\n display: block;\n }\n\n & table,\n & table:last-child {\n display: inline-table;\n }\n }\n"])), (0, _constants.gridSize)() * 2, "var(--ds-border, ".concat(_editorSharedStyles.akEditorBlockquoteBorderColor, ")"), _editorSharedStyles.blockNodesVerticalMargin, (0, _constants.gridSize)() * 2);
|
|
23
21
|
exports.blockquoteSharedStyles = blockquoteSharedStyles;
|
|
@@ -19,8 +19,6 @@ var _components = require("@atlaskit/theme/components");
|
|
|
19
19
|
|
|
20
20
|
var _constants = require("@atlaskit/theme/constants");
|
|
21
21
|
|
|
22
|
-
var _tokens = require("@atlaskit/tokens");
|
|
23
|
-
|
|
24
22
|
var _templateObject, _templateObject2;
|
|
25
23
|
|
|
26
24
|
var CodeBlockSharedCssClassName = {
|
|
@@ -35,24 +33,24 @@ var CodeBlockSharedCssClassName = {
|
|
|
35
33
|
exports.CodeBlockSharedCssClassName = CodeBlockSharedCssClassName;
|
|
36
34
|
|
|
37
35
|
var codeBlockSharedStyles = function codeBlockSharedStyles(props) {
|
|
38
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n position: relative;\n background-color: ", ";\n border-radius: ", "px;\n margin: ", " 0 0 0;\n font-family: ", ";\n min-width: ", "px;\n cursor: pointer;\n\n --ds--code--bg-color: transparent;\n\n /* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n white-space: normal;\n\n .", " {\n position: absolute;\n visibility: hidden;\n height: 1.5rem;\n top: 0px;\n left: 0px;\n }\n\n .", " {\n position: absolute;\n visibility: hidden;\n height: 1.5rem;\n bottom: 0px;\n right: 0px;\n }\n\n .", " {\n background-color: ", ";\n display: flex;\n border-radius: ", "px;\n width: 100%;\n counter-reset: line;\n overflow-x: auto;\n\n background-image: ", ";\n\n background-repeat: no-repeat;\n background-attachment: local, local, local, local, scroll, scroll, scroll,\n scroll;\n background-size: ", "px 100%, ", "px 100%,\n ", "px 100%, ", "px 100%, ", "px 100%,\n 1px 100%, ", "px 100%, 1px 100%;\n background-position: 0 0, 0 0, 100% 0, 100% 0, 100% 0, 100% 0, 0 0, 0 0;\n\n /* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n overflow-y: hidden;\n }\n\n .", " {\n flex-shrink: 0;\n text-align: right;\n background-color: ", ";\n padding: ", "px;\n position: relative;\n\n span {\n display: block;\n line-height: 0;\n font-size: 0;\n\n ::before {\n display: inline-block;\n content: counter(line);\n counter-increment: line;\n color: ", ";\n font-size: ", ";\n line-height: 1.5rem;\n }\n }\n }\n\n .", " {\n display: flex;\n flex: 1;\n\n code {\n flex-grow: 1;\n tab-size: 4;\n cursor: text;\n color: ", ";\n border-radius: ", "px;\n margin: ", "px;\n white-space: pre;\n font-size: ", ";\n line-height: 1.5rem;\n }\n }\n }\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, (
|
|
39
|
-
light: (
|
|
40
|
-
dark: (
|
|
36
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n position: relative;\n background-color: ", ";\n border-radius: ", "px;\n margin: ", " 0 0 0;\n font-family: ", ";\n min-width: ", "px;\n cursor: pointer;\n\n --ds--code--bg-color: transparent;\n\n /* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n white-space: normal;\n\n .", " {\n position: absolute;\n visibility: hidden;\n height: 1.5rem;\n top: 0px;\n left: 0px;\n }\n\n .", " {\n position: absolute;\n visibility: hidden;\n height: 1.5rem;\n bottom: 0px;\n right: 0px;\n }\n\n .", " {\n background-color: ", ";\n display: flex;\n border-radius: ", "px;\n width: 100%;\n counter-reset: line;\n overflow-x: auto;\n\n background-image: ", ";\n\n background-repeat: no-repeat;\n background-attachment: local, local, local, local, scroll, scroll, scroll,\n scroll;\n background-size: ", "px 100%, ", "px 100%,\n ", "px 100%, ", "px 100%, ", "px 100%,\n 1px 100%, ", "px 100%, 1px 100%;\n background-position: 0 0, 0 0, 100% 0, 100% 0, 100% 0, 100% 0, 0 0, 0 0;\n\n /* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n overflow-y: hidden;\n }\n\n .", " {\n flex-shrink: 0;\n text-align: right;\n background-color: ", ";\n padding: ", "px;\n position: relative;\n\n span {\n display: block;\n line-height: 0;\n font-size: 0;\n\n ::before {\n display: inline-block;\n content: counter(line);\n counter-increment: line;\n color: ", ";\n font-size: ", ";\n line-height: 1.5rem;\n }\n }\n }\n\n .", " {\n display: flex;\n flex: 1;\n\n code {\n flex-grow: 1;\n tab-size: 4;\n cursor: text;\n color: ", ";\n border-radius: ", "px;\n margin: ", "px;\n white-space: pre;\n font-size: ", ";\n line-height: 1.5rem;\n }\n }\n }\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, transparent)", (0, _constants.borderRadius)(), _editorSharedStyles.blockNodesVerticalMargin, _editorSharedStyles.akEditorCodeFontFamily, _editorSharedStyles.akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, (0, _components.themed)({
|
|
37
|
+
light: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
|
|
38
|
+
dark: "var(--ds-background-neutral, ".concat(_colors.DN50, ")")
|
|
41
39
|
})(props), (0, _constants.borderRadius)(), (0, _editorSharedStyles.overflowShadow)({
|
|
42
40
|
background: (0, _components.themed)({
|
|
43
|
-
light: (
|
|
44
|
-
dark: (
|
|
41
|
+
light: "var(--ds-background-neutral, ".concat(_colors.N20, ")"),
|
|
42
|
+
dark: "var(--ds-background-neutral, ".concat(_colors.DN50, ")")
|
|
45
43
|
})(props),
|
|
46
44
|
leftCoverWidth: "".concat((0, _constants.gridSize)() * 3, "px")
|
|
47
45
|
}), (0, _constants.gridSize)() * 3, (0, _constants.gridSize)() * 3, (0, _constants.gridSize)(), (0, _constants.gridSize)(), (0, _constants.gridSize)(), (0, _constants.gridSize)(), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, (0, _components.themed)({
|
|
48
|
-
light: (
|
|
49
|
-
dark: (
|
|
46
|
+
light: "var(--ds-background-neutral, ".concat(_colors.N30, ")"),
|
|
47
|
+
dark: "var(--ds-background-neutral, ".concat(_colors.DN20, ")")
|
|
50
48
|
})(props), (0, _constants.gridSize)(), (0, _components.themed)({
|
|
51
|
-
light: (
|
|
52
|
-
dark: (
|
|
49
|
+
light: "var(--ds-text-subtlest, ".concat(_colors.N400, ")"),
|
|
50
|
+
dark: "var(--ds-text-subtlest, ".concat(_colors.DN400, ")")
|
|
53
51
|
})(props), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, (0, _components.themed)({
|
|
54
|
-
light: (
|
|
55
|
-
dark: (
|
|
52
|
+
light: "var(--ds-text, ".concat(_colors.N800, ")"),
|
|
53
|
+
dark: "var(--ds-text, ".concat(_colors.DN800, ")")
|
|
56
54
|
})(props), (0, _constants.borderRadius)(), (0, _constants.gridSize)(), (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()));
|
|
57
55
|
};
|
|
58
56
|
|
|
@@ -17,15 +17,13 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
17
17
|
|
|
18
18
|
var _components = require("@atlaskit/theme/components");
|
|
19
19
|
|
|
20
|
-
var _tokens = require("@atlaskit/tokens");
|
|
21
|
-
|
|
22
20
|
var _templateObject;
|
|
23
21
|
|
|
24
22
|
var codeMarkSharedStyles = function codeMarkSharedStyles(props) {
|
|
25
23
|
var theme = (0, _components.getTheme)(props);
|
|
26
24
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .code {\n --ds--code--bg-color: ", ";\n ", "\n }\n "])), (0, _components.themed)({
|
|
27
|
-
light: (
|
|
28
|
-
dark: (
|
|
25
|
+
light: "var(--ds-background-neutral, ".concat(_colors.N30A, ")"),
|
|
26
|
+
dark: "var(--ds-background-neutral, ".concat(_colors.DN70, ")")
|
|
29
27
|
})(props), (0, _inline.getCodeStyles)(theme));
|
|
30
28
|
};
|
|
31
29
|
|
|
@@ -33,23 +33,13 @@ var _components = require("@atlaskit/theme/components");
|
|
|
33
33
|
|
|
34
34
|
var _constants = require("@atlaskit/theme/constants");
|
|
35
35
|
|
|
36
|
-
var _tokens = require("@atlaskit/tokens");
|
|
37
|
-
|
|
38
36
|
var _templateObject, _templateObject2;
|
|
39
37
|
|
|
40
38
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
41
39
|
|
|
42
40
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
43
41
|
|
|
44
|
-
var
|
|
45
|
-
info: 'color.background.information',
|
|
46
|
-
note: 'color.background.discovery',
|
|
47
|
-
tip: 'color.background.success',
|
|
48
|
-
success: 'color.background.success',
|
|
49
|
-
warning: 'color.background.warning',
|
|
50
|
-
error: 'color.background.danger'
|
|
51
|
-
};
|
|
52
|
-
var lightPanelColor = {
|
|
42
|
+
var lightPanelColors = {
|
|
53
43
|
info: colors.B50,
|
|
54
44
|
note: colors.P50,
|
|
55
45
|
tip: colors.G50,
|
|
@@ -121,20 +111,28 @@ var darkPanelColors = {
|
|
|
121
111
|
};
|
|
122
112
|
exports.darkPanelColors = darkPanelColors;
|
|
123
113
|
var lightIconColor = {
|
|
124
|
-
info: (
|
|
125
|
-
note: (
|
|
126
|
-
tip: (
|
|
127
|
-
success: (
|
|
128
|
-
warning: (
|
|
129
|
-
error: (
|
|
114
|
+
info: "var(--ds-icon-information, ".concat(colors.B400, ")"),
|
|
115
|
+
note: "var(--ds-icon-discovery, ".concat(colors.P400, ")"),
|
|
116
|
+
tip: "var(--ds-icon-success, ".concat(colors.G400, ")"),
|
|
117
|
+
success: "var(--ds-icon-success, ".concat(colors.G400, ")"),
|
|
118
|
+
warning: "var(--ds-icon-warning, ".concat(colors.Y400, ")"),
|
|
119
|
+
error: "var(--ds-icon-danger, ".concat(colors.R400, ")")
|
|
130
120
|
};
|
|
131
121
|
var darkIconColor = {
|
|
132
|
-
info: (
|
|
133
|
-
note: (
|
|
134
|
-
tip: (
|
|
135
|
-
success: (
|
|
136
|
-
warning: (
|
|
137
|
-
error: (
|
|
122
|
+
info: "var(--ds-icon-information, ".concat(colors.B100, ")"),
|
|
123
|
+
note: "var(--ds-icon-discovery, ".concat(colors.P100, ")"),
|
|
124
|
+
tip: "var(--ds-icon-success, ".concat(colors.G200, ")"),
|
|
125
|
+
success: "var(--ds-icon-success, ".concat(colors.G200, ")"),
|
|
126
|
+
warning: "var(--ds-icon-warning, ".concat(colors.Y100, ")"),
|
|
127
|
+
error: "var(--ds-icon-danger, ".concat(colors.R200, ")")
|
|
128
|
+
};
|
|
129
|
+
var tokenDarkPanelColors = {
|
|
130
|
+
info: "var(--ds-background-information, ".concat(darkPanelColors['info'], ")"),
|
|
131
|
+
note: "var(--ds-background-discovery, ".concat(darkPanelColors['note'], ")"),
|
|
132
|
+
tip: "var(--ds-background-success, ".concat(darkPanelColors['tip'], ")"),
|
|
133
|
+
success: "var(--ds-background-success, ".concat(darkPanelColors['success'], ")"),
|
|
134
|
+
warning: "var(--ds-background-warning, ".concat(darkPanelColors['warning'], ")"),
|
|
135
|
+
error: "var(--ds-background-danger, ".concat(darkPanelColors['error'], ")")
|
|
138
136
|
}; // New custom icons are a little smaller than predefined icons.
|
|
139
137
|
// To fix alignment issues with custom icons, vertical alignment is updated.
|
|
140
138
|
|
|
@@ -212,7 +210,7 @@ var iconDynamicStyles = function iconDynamicStyles(panelType) {
|
|
|
212
210
|
|
|
213
211
|
var getPanelTypeBackgroundNoTokens = function getPanelTypeBackgroundNoTokens(panelType) {
|
|
214
212
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
215
|
-
var light =
|
|
213
|
+
var light = lightPanelColors[panelType];
|
|
216
214
|
var dark = darkPanelColors[panelType];
|
|
217
215
|
var background = (0, _components.themed)({
|
|
218
216
|
light: light,
|
|
@@ -225,11 +223,9 @@ exports.getPanelTypeBackgroundNoTokens = getPanelTypeBackgroundNoTokens;
|
|
|
225
223
|
|
|
226
224
|
var getPanelTypeBackground = function getPanelTypeBackground(panelType) {
|
|
227
225
|
var props = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
228
|
-
//
|
|
226
|
+
var light = (0, _editorPalette.hexToEditorBackgroundPaletteColor)(lightPanelColors[panelType]); // hexToEditorBackgroundPaletteColor has a light mode as a fallback color - for legacy dark mode we define the tokens locally
|
|
229
227
|
|
|
230
|
-
|
|
231
|
-
var light = (0, _editorPalette.hexToEditorBackgroundPaletteColor)(lightPanelColor[panelType]);
|
|
232
|
-
var dark = (0, _tokens.token)(tokenPanelColor[panelType], darkPanelColors[panelType]);
|
|
228
|
+
var dark = tokenDarkPanelColors[panelType];
|
|
233
229
|
var background = (0, _components.themed)({
|
|
234
230
|
light: light,
|
|
235
231
|
dark: dark
|
|
@@ -17,13 +17,11 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
17
17
|
|
|
18
18
|
var _components = require("@atlaskit/theme/components");
|
|
19
19
|
|
|
20
|
-
var _tokens = require("@atlaskit/tokens");
|
|
21
|
-
|
|
22
20
|
var _templateObject;
|
|
23
21
|
|
|
24
22
|
var divider = (0, _components.themed)({
|
|
25
|
-
light: (
|
|
26
|
-
dark: (
|
|
23
|
+
light: "var(--ds-border, ".concat(_colors.N30A, ")"),
|
|
24
|
+
dark: "var(--ds-border, ".concat(_colors.DN50, ")")
|
|
27
25
|
}); // @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
28
26
|
|
|
29
27
|
var ruleSharedStyles = function ruleSharedStyles(props) {
|
|
@@ -15,8 +15,6 @@ var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
|
15
15
|
|
|
16
16
|
var _colors = require("@atlaskit/theme/colors");
|
|
17
17
|
|
|
18
|
-
var _tokens = require("@atlaskit/tokens");
|
|
19
|
-
|
|
20
18
|
var _OverflowShadow = require("../../ui/OverflowShadow");
|
|
21
19
|
|
|
22
20
|
var _shadowObserver = require("../../ui/OverflowShadow/shadowObserver");
|
|
@@ -38,5 +36,5 @@ var shadowWidth = 8;
|
|
|
38
36
|
* background-attachment: local, local, scroll, scroll;
|
|
39
37
|
*/
|
|
40
38
|
|
|
41
|
-
var shadowSharedStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n &\n .", "::before,\n .", "::after,\n .", "::before,\n .", "::after {\n display: none;\n position: absolute;\n pointer-events: none;\n z-index: ", ";\n width: ", "px;\n content: '';\n /* Scrollbar is outside the content in IE, inset in other browsers. */\n height: calc(100%);\n }\n\n & .", ", .", " {\n position: relative;\n }\n\n & .", "::before {\n background: linear-gradient(\n to left,\n transparent 0,\n ", " 100%\n ),\n linear-gradient(\n to right,\n ", " 0px,\n transparent 1px\n );\n top: 0px;\n left: 0;\n display: block;\n }\n\n & .", "::after {\n background: linear-gradient(\n to right,\n transparent 0,\n ", " 100%\n ),\n linear-gradient(\n to left,\n ", " 0px,\n transparent 1px\n );\n left: calc(100% - ", "px);\n top: 0px;\n display: block;\n }\n\n & .", " {\n height: 100%;\n width: 0px;\n min-width: 0px;\n }\n\n & .", " {\n height: 100%;\n width: 0px;\n min-width: 0px;\n }\n"])), _OverflowShadow.shadowClassNames.RIGHT_SHADOW, _OverflowShadow.shadowClassNames.RIGHT_SHADOW, _OverflowShadow.shadowClassNames.LEFT_SHADOW, _OverflowShadow.shadowClassNames.LEFT_SHADOW, _editorSharedStyles.akEditorShadowZIndex, shadowWidth, _OverflowShadow.shadowClassNames.RIGHT_SHADOW, _OverflowShadow.shadowClassNames.LEFT_SHADOW, _OverflowShadow.shadowClassNames.LEFT_SHADOW, (
|
|
39
|
+
var shadowSharedStyle = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n &\n .", "::before,\n .", "::after,\n .", "::before,\n .", "::after {\n display: none;\n position: absolute;\n pointer-events: none;\n z-index: ", ";\n width: ", "px;\n content: '';\n /* Scrollbar is outside the content in IE, inset in other browsers. */\n height: calc(100%);\n }\n\n & .", ", .", " {\n position: relative;\n }\n\n & .", "::before {\n background: linear-gradient(\n to left,\n transparent 0,\n ", " 100%\n ),\n linear-gradient(\n to right,\n ", " 0px,\n transparent 1px\n );\n top: 0px;\n left: 0;\n display: block;\n }\n\n & .", "::after {\n background: linear-gradient(\n to right,\n transparent 0,\n ", " 100%\n ),\n linear-gradient(\n to left,\n ", " 0px,\n transparent 1px\n );\n left: calc(100% - ", "px);\n top: 0px;\n display: block;\n }\n\n & .", " {\n height: 100%;\n width: 0px;\n min-width: 0px;\n }\n\n & .", " {\n height: 100%;\n width: 0px;\n min-width: 0px;\n }\n"])), _OverflowShadow.shadowClassNames.RIGHT_SHADOW, _OverflowShadow.shadowClassNames.RIGHT_SHADOW, _OverflowShadow.shadowClassNames.LEFT_SHADOW, _OverflowShadow.shadowClassNames.LEFT_SHADOW, _editorSharedStyles.akEditorShadowZIndex, shadowWidth, _OverflowShadow.shadowClassNames.RIGHT_SHADOW, _OverflowShadow.shadowClassNames.LEFT_SHADOW, _OverflowShadow.shadowClassNames.LEFT_SHADOW, "var(--ds-shadow-overflow-spread, ".concat(_colors.N40A, ")"), "var(--ds-shadow-overflow-perimeter, transparent)", _OverflowShadow.shadowClassNames.RIGHT_SHADOW, "var(--ds-shadow-overflow-spread, ".concat(_colors.N40A, ")"), "var(--ds-shadow-overflow-perimeter, transparent)", shadowWidth, _shadowObserver.shadowObserverClassNames.SENTINEL_LEFT, _shadowObserver.shadowObserverClassNames.SENTINEL_RIGHT);
|
|
42
40
|
exports.shadowSharedStyle = shadowSharedStyle;
|
|
@@ -21,8 +21,6 @@ var _components = require("@atlaskit/theme/components");
|
|
|
21
21
|
|
|
22
22
|
var _constants = require("@atlaskit/theme/constants");
|
|
23
23
|
|
|
24
|
-
var _tokens = require("@atlaskit/tokens");
|
|
25
|
-
|
|
26
24
|
var _browser = _interopRequireDefault(require("../../utils/browser"));
|
|
27
25
|
|
|
28
26
|
var _codeBlock = require("./code-block");
|
|
@@ -64,43 +62,43 @@ exports.TableSharedCssClassName = TableSharedCssClassName;
|
|
|
64
62
|
|
|
65
63
|
var tableSharedStyle = function tableSharedStyle(props) {
|
|
66
64
|
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n .", " {\n position: relative;\n margin: 0 auto ", "px;\n box-sizing: border-box;\n\n /**\n * Fix block top alignment inside table cells.\n */\n .decisionItemView-content-wrap:first-of-type > div {\n margin-top: 0;\n }\n }\n .", "[data-number-column='true'] {\n padding-left: ", "px;\n clear: both;\n }\n .", " > table {\n margin: ", "px 0 0 0;\n }\n\n .", " > table,\n .", " > table {\n margin: ", "px ", "px 0 0;\n }\n\n /* avoid applying styles to nested tables (possible via extensions) */\n .", " > table,\n .", " > table,\n .", " > table {\n border-collapse: collapse;\n border: ", "px solid\n ", ";\n table-layout: fixed;\n font-size: 1em;\n width: 100%;\n\n &[data-autosize='true'] {\n table-layout: auto;\n }\n\n & {\n * {\n box-sizing: border-box;\n }\n hr {\n box-sizing: content-box;\n }\n\n tbody {\n border-bottom: none;\n }\n th td {\n background-color: ", ";\n }\n th,\n td {\n min-width: ", "px;\n font-weight: normal;\n vertical-align: top;\n border: 1px solid\n ", ";\n border-right-width: 0;\n border-bottom-width: 0;\n padding: ", "px;\n /* https://stackoverflow.com/questions/7517127/borders-not-shown-in-firefox-with-border-collapse-on-table-position-relative-o */\n ", "\n\n ", ";\n\n > :first-child:not(style),\n > style:first-child + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + *,\n > style:first-child + .ProseMirror-gapcursor + * {\n margin-top: 0;\n }\n\n > .ProseMirror-gapcursor:first-child + span + *,\n > style:first-child + .ProseMirror-gapcursor + span + * {\n margin-top: 0;\n }\n\n th p:not(:first-of-type),\n td p:not(:first-of-type) {\n margin-top: 12px;\n }\n }\n th {\n background-color: ", ";\n text-align: left;\n\n /* only apply this styling to codeblocks in default background headercells */\n /* TODO this needs to be overhauled as it relies on unsafe selectors */\n &:not([style]):not(.danger) {\n .", ":not(.danger) {\n background-color: ", ";\n\n :not(.", ") {\n box-shadow: 0px 0px 0px 1px\n ", ";\n }\n\n .", " {\n background-image: ", ";\n\n background-color: ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n\n /* this is only relevant to the element taken care of by renderer */\n > [data-ds--code--code-block] {\n background-image: ", "!important;\n\n background-color: ", "!important;\n\n // selector lives inside @atlaskit/code\n --ds--code--line-number-bg-color: ", ";\n }\n }\n }\n }\n }\n }\n"])), TableSharedCssClassName.TABLE_CONTAINER, tableMarginBottom, TableSharedCssClassName.TABLE_CONTAINER, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, TableSharedCssClassName.TABLE_NODE_WRAPPER, tableMarginTop, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableMarginTop, tableMarginSides, TableSharedCssClassName.TABLE_CONTAINER, TableSharedCssClassName.TABLE_NODE_WRAPPER, TableSharedCssClassName.TABLE_STICKY_WRAPPER, tableCellBorderWidth, (0, _components.themed)({
|
|
67
|
-
light: (
|
|
68
|
-
dark: (
|
|
69
|
-
})(props), (
|
|
70
|
-
light: (
|
|
71
|
-
dark: (
|
|
65
|
+
light: "var(--ds-border, ".concat(_editorSharedStyles.akEditorTableBorder, ")"),
|
|
66
|
+
dark: "var(--ds-border, ".concat(_editorSharedStyles.akEditorTableBorderDark, ")")
|
|
67
|
+
})(props), "var(--ds-background-neutral-subtle, white)", tableCellMinWidth, (0, _components.themed)({
|
|
68
|
+
light: "var(--ds-border, ".concat(_editorSharedStyles.akEditorTableBorder, ")"),
|
|
69
|
+
dark: "var(--ds-border, ".concat(_editorSharedStyles.akEditorTableBorderDark, ")")
|
|
72
70
|
})(props), tableCellPadding, _browser.default.gecko || _browser.default.ie || _browser.default.mac && _browser.default.chrome ? 'background-clip: padding-box;' : '', (0, _components.themed)({
|
|
73
71
|
dark: _editorSharedStyles.getTableCellBackgroundDarkModeColors
|
|
74
72
|
})(props), (0, _components.themed)({
|
|
75
|
-
light: (
|
|
76
|
-
dark: (
|
|
73
|
+
light: "var(--ds-background-neutral, ".concat(_editorSharedStyles.akEditorTableToolbar, ")"),
|
|
74
|
+
dark: "var(--ds-background-neutral, ".concat(_editorSharedStyles.akEditorTableToolbarDark, ")")
|
|
77
75
|
})(props), _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, (0, _components.themed)({
|
|
78
|
-
light: (
|
|
79
|
-
dark: (
|
|
80
|
-
})(props), _editorSharedStyles.akEditorSelectedNodeClassName, (
|
|
76
|
+
light: "var(--ds-surface-raised, rgb(235, 237, 240))",
|
|
77
|
+
dark: "var(--ds-surface-raised, rgb(36, 47, 66))"
|
|
78
|
+
})(props), _editorSharedStyles.akEditorSelectedNodeClassName, "var(--ds-border, transparent)", _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, (0, _editorSharedStyles.overflowShadow)({
|
|
81
79
|
background: (0, _components.themed)({
|
|
82
|
-
light: (
|
|
83
|
-
dark: (
|
|
80
|
+
light: "var(--ds-background-neutral, rgb(235, 237, 240))",
|
|
81
|
+
dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
|
|
84
82
|
})(props),
|
|
85
83
|
leftCoverWidth: "".concat((0, _constants.gridSize)() * 3, "px")
|
|
86
84
|
}), (0, _components.themed)({
|
|
87
|
-
light: (
|
|
88
|
-
dark: (
|
|
85
|
+
light: "var(--ds-background-neutral, rgb(235, 237, 240))",
|
|
86
|
+
dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
|
|
89
87
|
})(props), _codeBlock.CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, (0, _components.themed)({
|
|
90
|
-
light: (
|
|
91
|
-
dark: (
|
|
88
|
+
light: "var(--ds-background-neutral, rgb(226, 229, 233))",
|
|
89
|
+
dark: "var(--ds-background-neutral, ".concat(_colors.DN20, ")")
|
|
92
90
|
})(props), (0, _editorSharedStyles.overflowShadow)({
|
|
93
91
|
background: (0, _components.themed)({
|
|
94
|
-
light: (
|
|
95
|
-
dark: (
|
|
92
|
+
light: "var(--ds-background-neutral, rgb(235, 237, 240))",
|
|
93
|
+
dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
|
|
96
94
|
})(props),
|
|
97
95
|
leftCoverWidth: "".concat((0, _constants.gridSize)() * 3, "px")
|
|
98
96
|
}), (0, _components.themed)({
|
|
99
|
-
light: (
|
|
100
|
-
dark: (
|
|
97
|
+
light: "var(--ds-background-neutral, rgb(235, 237, 240))",
|
|
98
|
+
dark: "var(--ds-background-neutral, rgb(36, 47, 66))"
|
|
101
99
|
})(props), (0, _components.themed)({
|
|
102
|
-
light: (
|
|
103
|
-
dark: (
|
|
100
|
+
light: "var(--ds-background-neutral, rgb(226, 229, 233))",
|
|
101
|
+
dark: "var(--ds-background-neutral, ".concat(_colors.DN20, ")")
|
|
104
102
|
})(props));
|
|
105
103
|
};
|
|
106
104
|
|
|
@@ -29,8 +29,6 @@ var _reactIntlNext = require("react-intl-next");
|
|
|
29
29
|
|
|
30
30
|
var _colors = require("@atlaskit/theme/colors");
|
|
31
31
|
|
|
32
|
-
var _tokens = require("@atlaskit/tokens");
|
|
33
|
-
|
|
34
32
|
var _messages = require("./messages");
|
|
35
33
|
|
|
36
34
|
var _templateObject, _templateObject2;
|
|
@@ -39,8 +37,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
39
37
|
|
|
40
38
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
39
|
|
|
42
|
-
var captionWrapperStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n margin-top: 8px;\n text-align: center;\n position: relative;\n color: ", ";\n"])), (
|
|
43
|
-
var placeholderStyle = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n position: absolute;\n top: 0;\n width: 100%;\n"])), (
|
|
40
|
+
var captionWrapperStyle = (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n margin-top: 8px;\n text-align: center;\n position: relative;\n color: ", ";\n"])), "var(--ds-text-subtle, ".concat(_colors.N400, ")"));
|
|
41
|
+
var placeholderStyle = (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n position: absolute;\n top: 0;\n width: 100%;\n"])), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"));
|
|
44
42
|
|
|
45
43
|
var CaptionComponent = /*#__PURE__*/function (_React$Component) {
|
|
46
44
|
(0, _inherits2.default)(CaptionComponent, _React$Component);
|
|
@@ -35,8 +35,6 @@ var _components = require("@atlaskit/theme/components");
|
|
|
35
35
|
|
|
36
36
|
var _constants = require("@atlaskit/theme/constants");
|
|
37
37
|
|
|
38
|
-
var _tokens = require("@atlaskit/tokens");
|
|
39
|
-
|
|
40
38
|
var _Layer = _interopRequireDefault(require("../Layer"));
|
|
41
39
|
|
|
42
40
|
var _templateObject, _templateObject2, _templateObject3;
|
|
@@ -46,7 +44,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
46
44
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
47
45
|
|
|
48
46
|
var packageName = "@atlaskit/editor-common";
|
|
49
|
-
var packageVersion = "72.
|
|
47
|
+
var packageVersion = "72.1.0";
|
|
50
48
|
var halfFocusRing = 1;
|
|
51
49
|
var dropOffset = "0, ".concat((0, _constants.gridSize)(), "px");
|
|
52
50
|
|
|
@@ -69,11 +67,11 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
69
67
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "triggerStyles", (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n transition-duration: 0.2s;\n transition: box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38);\n ", "\n "])), _this.props.shouldFitContainer ? 'display: block; box-sizing: border-box;' : 'display: inline-flex;'));
|
|
70
68
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "menuWrapper", function (theme) {
|
|
71
69
|
return (0, _react2.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n background-color: ", ";\n border-radius: ", "px;\n box-shadow: 0 ", "px ", "px -", "px ", ",\n 0 0 1px ", ";\n box-sizing: border-box;\n overflow: auto;\n padding: ", "px 0;\n max-height: 90vh;\n "])), (0, _components.themed)({
|
|
72
|
-
light: (
|
|
73
|
-
dark: (
|
|
70
|
+
light: "var(--ds-text, ".concat(_colors.N900, ")"),
|
|
71
|
+
dark: "var(--ds-text, ".concat(_colors.DN600, ")")
|
|
74
72
|
})(theme), (0, _components.themed)({
|
|
75
|
-
light: (
|
|
76
|
-
dark: (
|
|
73
|
+
light: "var(--ds-surface-overlay, ".concat(_colors.N0, ")"),
|
|
74
|
+
dark: "var(--ds-surface-overlay, ".concat(_colors.DN50, ")")
|
|
77
75
|
})(theme), (0, _constants.borderRadius)(), (0, _constants.gridSize)() / 2, (0, _constants.gridSize)(), (0, _constants.gridSize)() / 4, _colors.N50A, _colors.N60A, (0, _constants.gridSize)() / 2);
|
|
78
76
|
});
|
|
79
77
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "componentDidMount", function () {
|