@atlaskit/renderer 128.3.0 → 128.3.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.
Files changed (35) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/react/marks/link.js +3 -4
  3. package/dist/cjs/react/nodes/blockCard.js +9 -10
  4. package/dist/cjs/react/nodes/codeBlock/components/codeBlockButtonContainer.js +7 -8
  5. package/dist/cjs/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
  6. package/dist/cjs/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
  7. package/dist/cjs/react/nodes/panel.js +7 -7
  8. package/dist/cjs/react/nodes/table/sticky.js +2 -3
  9. package/dist/cjs/ui/Expand.js +3 -3
  10. package/dist/cjs/ui/Renderer/RendererStyleContainer.js +67 -68
  11. package/dist/cjs/ui/Renderer/index.js +1 -1
  12. package/dist/cjs/ui/Renderer/truncated-wrapper.js +3 -2
  13. package/dist/es2019/react/marks/link.js +3 -4
  14. package/dist/es2019/react/nodes/blockCard.js +9 -10
  15. package/dist/es2019/react/nodes/codeBlock/components/codeBlockButtonContainer.js +7 -8
  16. package/dist/es2019/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
  17. package/dist/es2019/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
  18. package/dist/es2019/react/nodes/panel.js +7 -7
  19. package/dist/es2019/react/nodes/table/sticky.js +4 -5
  20. package/dist/es2019/ui/Expand.js +3 -3
  21. package/dist/es2019/ui/Renderer/RendererStyleContainer.js +73 -74
  22. package/dist/es2019/ui/Renderer/index.js +1 -1
  23. package/dist/es2019/ui/Renderer/truncated-wrapper.js +3 -2
  24. package/dist/esm/react/marks/link.js +3 -4
  25. package/dist/esm/react/nodes/blockCard.js +9 -10
  26. package/dist/esm/react/nodes/codeBlock/components/codeBlockButtonContainer.js +7 -8
  27. package/dist/esm/react/nodes/codeBlock/components/codeBlockContainer.js +1 -2
  28. package/dist/esm/react/nodes/codeBlock/components/lightWeightCodeBlock.js +1 -1
  29. package/dist/esm/react/nodes/panel.js +7 -7
  30. package/dist/esm/react/nodes/table/sticky.js +2 -3
  31. package/dist/esm/ui/Expand.js +3 -3
  32. package/dist/esm/ui/Renderer/RendererStyleContainer.js +68 -69
  33. package/dist/esm/ui/Renderer/index.js +1 -1
  34. package/dist/esm/ui/Renderer/truncated-wrapper.js +3 -2
  35. package/package.json +1 -1
@@ -16,37 +16,36 @@ import { DatasourceTableView } from '@atlaskit/link-datasource';
16
16
  import { CardSSR } from '@atlaskit/smart-card/ssr';
17
17
  import { fg } from '@atlaskit/platform-feature-flags';
18
18
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
19
- import { N40 } from '@atlaskit/theme/colors';
20
19
  import { calcBreakoutWidth, canRenderDatasource } from '@atlaskit/editor-common/utils';
21
20
  import { usePortal } from '../../ui/Renderer/PortalContext';
22
21
  import { RendererCssClassName } from '../../consts';
23
22
  var datasourceCenterWrapperStyles = css({
24
- marginTop: "var(--ds-space-150, 0.75rem)",
25
- marginBottom: "var(--ds-space-150, 0.75rem)"
23
+ marginTop: "var(--ds-space-150, 12px)",
24
+ marginBottom: "var(--ds-space-150, 12px)"
26
25
  });
27
26
  var datasourceContainerStyleWithMarginTop = css({
28
27
  borderRadius: "var(--ds-radius-large, 8px)",
29
- border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N40, ")")),
28
+ border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
30
29
  overflow: 'hidden',
31
- marginTop: "var(--ds-space-150, 0.75rem)",
32
- marginBottom: "var(--ds-space-150, 0.75rem)"
30
+ marginTop: "var(--ds-space-150, 12px)",
31
+ marginBottom: "var(--ds-space-150, 12px)"
33
32
  });
34
33
 
35
34
  // No vertical margin when inside center wrapper (wrapper has margin so it participates in collapse). Styles from datasourceContainerStyleLegacy
36
35
  var datasourceContainerStyleNoVerticalMargin = css({
37
36
  borderRadius: "var(--ds-radius-large, 8px)",
38
- border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N40, ")")),
37
+ border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
39
38
  overflow: 'hidden'
40
39
  });
41
40
  var datasourceContainerStyleLegacy = css({
42
41
  borderRadius: "var(--ds-radius-large, 8px)",
43
- border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, ".concat(N40, ")")),
42
+ border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
44
43
  overflow: 'hidden',
45
44
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-space
46
45
  marginLeft: '50%',
47
- marginBottom: "var(--ds-space-150, 0.75rem)",
46
+ marginBottom: "var(--ds-space-150, 12px)",
48
47
  transform: 'translateX(-50%)',
49
- marginTop: "var(--ds-space-150, 0.75rem)"
48
+ marginTop: "var(--ds-space-150, 12px)"
50
49
  });
51
50
  export default function BlockCard(props) {
52
51
  var url = props.url,
@@ -6,11 +6,10 @@
6
6
  import { jsx, css } from '@emotion/react';
7
7
  import CopyButton from './codeBlockCopyButton';
8
8
  import CodeWrapButton from './codeBlockWrapButton';
9
- import { N0, N20, N30, N700 } from '@atlaskit/theme/colors';
10
9
  var codeBlockButtonsWrapper = css({
11
10
  position: 'sticky',
12
11
  top: '0px',
13
- background: "".concat("var(--ds-surface, ".concat(N20, ")"))
12
+ background: "var(--ds-surface, #FFFFFF)"
14
13
  });
15
14
  var codeBlockButtonsStyle = css({
16
15
  display: 'flex',
@@ -25,24 +24,24 @@ var codeBlockButtonsStyle = css({
25
24
  button: {
26
25
  height: '32px',
27
26
  width: '32px',
28
- border: "var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border, ".concat(N0, ")")),
27
+ border: "var(--ds-border-width-selected, 2px)".concat(" solid ", "var(--ds-border, #0B120E24)"),
29
28
  borderRadius: "var(--ds-radius-small, 4px)",
30
29
  marginLeft: "var(--ds-space-050, 4px)",
31
30
  padding: "var(--ds-space-025, 2px)",
32
- background: "".concat("var(--ds-surface-overlay, ".concat(N20, ")")),
33
- color: "var(--ds-icon, rgb(66, 82, 110))",
31
+ background: "var(--ds-surface-overlay, #FFFFFF)",
32
+ color: "var(--ds-icon, #292A2E)",
34
33
  '&:hover': {
35
34
  borderWidth: "var(--ds-border-width-selected, 2px)",
36
- backgroundColor: "".concat("var(--ds-surface-overlay-hovered, ".concat(N30, ")")),
35
+ backgroundColor: "var(--ds-surface-overlay-hovered, #F0F1F2)",
37
36
  height: '32px',
38
37
  width: '32px'
39
38
  },
40
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
41
40
  '&.clicked': {
42
- backgroundColor: "".concat("var(--ds-background-neutral-bold-pressed, ".concat(N700, ")")),
41
+ backgroundColor: "var(--ds-background-neutral-bold-pressed, #505258)",
43
42
  borderRadius: "var(--ds-radius-small, 4px)",
44
43
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
45
- color: "".concat("var(--ds-icon-inverse, ".concat(N0, ")"), " !important")
44
+ color: "var(--ds-icon-inverse, #FFFFFF)".concat(" !important")
46
45
  }
47
46
  }
48
47
  });
@@ -5,14 +5,13 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
5
5
  */
6
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
7
  import { jsx, css } from '@emotion/react';
8
- import { N20 } from '@atlaskit/theme/colors';
9
8
  import { CodeBlockSharedCssClassName } from '@atlaskit/editor-common/styles';
10
9
  import { fg } from '@atlaskit/platform-feature-flags';
11
10
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
12
11
  import CodeBlockButtonContainer from './codeBlockButtonContainer';
13
12
  var codeBlockStyleOverrides = css(_defineProperty({
14
13
  tabSize: 4,
15
- backgroundColor: "var(--ds-surface-raised, ".concat(N20, ")"),
14
+ backgroundColor: "var(--ds-surface-raised, #FFFFFF)",
16
15
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
17
16
  button: {
18
17
  opacity: 0,
@@ -111,7 +111,7 @@ var codeBlockSharedStyles = css(_defineProperty(_defineProperty(_defineProperty(
111
111
  // eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
112
112
  lineHeight: '1.5rem',
113
113
  textAlign: 'right',
114
- color: "var(--ds-text-subtlest, #505F79)",
114
+ color: "var(--ds-text-subtlest, #6B6E76)",
115
115
  boxSizing: 'content-box'
116
116
  })));
117
117
  var lightWeightCodeBlockStyles = css(_defineProperty({}, ".".concat(CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER), {
@@ -37,7 +37,7 @@ var panelBaseStyles = css({
37
37
  position: 'relative',
38
38
  alignItems: 'normal',
39
39
  wordBreak: 'break-word',
40
- backgroundColor: "var(--ds-background-accent-blue-subtlest, #DEEBFF)",
40
+ backgroundColor: "var(--ds-background-accent-blue-subtlest, #E9F2FE)",
41
41
  color: 'inherit',
42
42
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
43
43
  '.ak-editor-panel__icon': {
@@ -90,7 +90,7 @@ var panelBaseStyles = css({
90
90
  },
91
91
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
92
92
  '&[data-panel-type="note"]': {
93
- backgroundColor: "var(--ds-background-accent-purple-subtlest, #EAE6FF)",
93
+ backgroundColor: "var(--ds-background-accent-purple-subtlest, #F8EEFE)",
94
94
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
95
95
  '.ak-editor-panel__icon': {
96
96
  color: "var(--ds-icon-discovery, #AF59E1)"
@@ -98,7 +98,7 @@ var panelBaseStyles = css({
98
98
  },
99
99
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
100
100
  '&[data-panel-type="tip"]': {
101
- backgroundColor: "var(--ds-background-accent-green-subtlest, #E3FCEF)",
101
+ backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
102
102
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
103
103
  '.ak-editor-panel__icon': {
104
104
  color: "var(--ds-icon-success, #6A9A23)"
@@ -106,7 +106,7 @@ var panelBaseStyles = css({
106
106
  },
107
107
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
108
108
  '&[data-panel-type="warning"]': {
109
- backgroundColor: "var(--ds-background-accent-yellow-subtlest, #FFFAE6)",
109
+ backgroundColor: "var(--ds-background-accent-yellow-subtlest, #FEF7C8)",
110
110
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
111
111
  '.ak-editor-panel__icon': {
112
112
  color: "var(--ds-icon-warning, #E06C00)"
@@ -114,7 +114,7 @@ var panelBaseStyles = css({
114
114
  },
115
115
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
116
116
  '&[data-panel-type="error"]': {
117
- backgroundColor: "var(--ds-background-accent-red-subtlest, #FFEBE6)",
117
+ backgroundColor: "var(--ds-background-accent-red-subtlest, #FFECEB)",
118
118
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
119
119
  '.ak-editor-panel__icon': {
120
120
  color: "var(--ds-icon-danger, #C9372C)"
@@ -122,7 +122,7 @@ var panelBaseStyles = css({
122
122
  },
123
123
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values
124
124
  '&[data-panel-type="success"]': {
125
- backgroundColor: "var(--ds-background-accent-green-subtlest, #E3FCEF)",
125
+ backgroundColor: "var(--ds-background-accent-green-subtlest, #DCFFF1)",
126
126
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
127
127
  '.ak-editor-panel__icon': {
128
128
  color: "var(--ds-icon-success, #6A9A23)"
@@ -150,7 +150,7 @@ var panelNestedIconStyles = css({
150
150
  var nestedPanelStyles = css({
151
151
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
152
152
  '.ak-editor-panel__content .ak-editor-panel': {
153
- border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #091E42)")
153
+ border: "var(--ds-border-width, 1px)".concat(" solid ", "var(--ds-border, #0B120E24)")
154
154
  }
155
155
  });
156
156
  var panelCustomBackground = css({
@@ -13,7 +13,6 @@ import React from 'react';
13
13
  import { css, jsx } from '@emotion/react';
14
14
  import { TableSharedCssClassName } from '@atlaskit/editor-common/styles';
15
15
  import { akEditorStickyHeaderZIndex } from '@atlaskit/editor-shared-styles';
16
- import { N40A } from '@atlaskit/theme/colors';
17
16
  import { Table } from './table';
18
17
  import { recursivelyInjectProps } from '../../utils/inject-props';
19
18
  export var tableStickyPadding = 8;
@@ -38,9 +37,9 @@ var fixedTableDivStaticStyles = css(_defineProperty(_defineProperty(_definePrope
38
37
  marginBottom: 0,
39
38
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
40
39
  tr: {
41
- background: "var(--ds-surface, white)"
40
+ background: "var(--ds-surface, #FFFFFF)"
42
41
  }
43
- }), "borderTop", "".concat(tableStickyPadding, "px solid ", "var(--ds-surface, white)")), "background", "var(--ds-surface-overlay, white)"), "boxShadow", "0 6px 4px -4px ".concat("var(--ds-shadow-overflow-perimeter, ".concat(N40A, ")"))), "div[data-expanded='false'] &", {
42
+ }), "borderTop", "".concat(tableStickyPadding, "px solid ", "var(--ds-surface, #FFFFFF)")), "background", "var(--ds-surface-overlay, #FFFFFF)"), "boxShadow", "0 6px 4px -4px ".concat("var(--ds-shadow-overflow-perimeter, #1E1F211f)")), "div[data-expanded='false'] &", {
44
43
  display: 'none'
45
44
  }), "& .".concat(TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky.right-shadow::after, & .").concat(TableSharedCssClassName.TABLE_CONTAINER, ".is-sticky.left-shadow::before"), {
46
45
  top: '0px',
@@ -42,12 +42,12 @@ var containerStyles = css({
42
42
  borderColor: 'transparent',
43
43
  borderRadius: "var(--ds-radius-small, 4px)",
44
44
  minHeight: '25px',
45
- background: "var(--ds-background-neutral-subtle, transparent)",
45
+ background: "var(--ds-background-neutral-subtle, #00000000)",
46
46
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
47
47
  transition: "background 0.3s ".concat(akEditorSwoopCubicBezier, ", border-color 0.3s ").concat(akEditorSwoopCubicBezier),
48
48
  padding: "var(--ds-space-0, 0px)",
49
49
  paddingBottom: "var(--ds-space-0, 0px)",
50
- marginTop: "var(--ds-space-050, 0.25rem)",
50
+ marginTop: "var(--ds-space-050, 4px)",
51
51
  marginBottom: 0,
52
52
  marginLeft: 0,
53
53
  marginRight: 0,
@@ -57,7 +57,7 @@ var containerStyles = css({
57
57
  }
58
58
  });
59
59
  var containerStylesExpanded = css({
60
- background: "var(--ds-surface, rgba(255, 255, 255, 0.6))",
60
+ background: "var(--ds-surface, #FFFFFF)",
61
61
  paddingBottom: "var(--ds-space-100, 8px)",
62
62
  borderColor: "var(--ds-border, #0B120E24)"
63
63
  });