@atlaskit/code 17.2.3 → 17.2.5

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 (51) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/bidi-warning/package.json +1 -1
  3. package/bidi-warning-decorator/package.json +1 -1
  4. package/block/package.json +1 -1
  5. package/constants/package.json +1 -1
  6. package/dist/cjs/bidi-warning/ui/index.js +8 -3
  7. package/dist/cjs/code-block.compiled.css +21 -21
  8. package/dist/cjs/code-block.js +17 -7
  9. package/dist/cjs/code.compiled.css +1 -1
  10. package/dist/cjs/code.js +10 -4
  11. package/dist/cjs/constants.js +4 -0
  12. package/dist/cjs/syntax-highlighter/lib/process/create-line-element.js +4 -1
  13. package/dist/cjs/syntax-highlighter/lib/react-renderer/create-element.js +1 -1
  14. package/dist/es2019/bidi-warning/ui/index.js +8 -3
  15. package/dist/es2019/code-block.compiled.css +21 -21
  16. package/dist/es2019/code-block.js +17 -7
  17. package/dist/es2019/code.compiled.css +1 -1
  18. package/dist/es2019/code.js +9 -3
  19. package/dist/es2019/constants.js +4 -0
  20. package/dist/es2019/syntax-highlighter/lib/process/create-line-element.js +4 -1
  21. package/dist/es2019/syntax-highlighter/lib/react-renderer/create-element.js +1 -1
  22. package/dist/esm/bidi-warning/ui/index.js +8 -3
  23. package/dist/esm/code-block.compiled.css +21 -21
  24. package/dist/esm/code-block.js +17 -7
  25. package/dist/esm/code.compiled.css +1 -1
  26. package/dist/esm/code.js +10 -4
  27. package/dist/esm/constants.js +4 -0
  28. package/dist/esm/syntax-highlighter/lib/process/create-line-element.js +4 -1
  29. package/dist/esm/syntax-highlighter/lib/react-renderer/create-element.js +1 -1
  30. package/dist/types/bidi-warning/ui/index.d.ts +1 -1
  31. package/dist/types/bidi-warning/ui/types.d.ts +15 -0
  32. package/dist/types/code-block.d.ts +0 -1
  33. package/dist/types/constants.d.ts +4 -0
  34. package/dist/types/internal/hooks/use-highlight.d.ts +1 -1
  35. package/dist/types/internal/types.d.ts +20 -0
  36. package/dist/types/syntax-highlighter/lib/highlight.d.ts +0 -1
  37. package/dist/types/syntax-highlighter/lib/process/create-line-element.d.ts +9 -1
  38. package/dist/types/types.d.ts +13 -0
  39. package/dist/types-ts4.5/bidi-warning/ui/index.d.ts +1 -1
  40. package/dist/types-ts4.5/bidi-warning/ui/types.d.ts +15 -0
  41. package/dist/types-ts4.5/code-block.d.ts +0 -1
  42. package/dist/types-ts4.5/constants.d.ts +7 -0
  43. package/dist/types-ts4.5/internal/hooks/use-highlight.d.ts +1 -1
  44. package/dist/types-ts4.5/internal/types.d.ts +20 -0
  45. package/dist/types-ts4.5/syntax-highlighter/lib/highlight.d.ts +0 -1
  46. package/dist/types-ts4.5/syntax-highlighter/lib/process/create-line-element.d.ts +9 -1
  47. package/dist/types-ts4.5/types.d.ts +13 -0
  48. package/inline/package.json +1 -1
  49. package/offerings.json +65 -0
  50. package/package.json +10 -20
  51. package/types/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/code
2
2
 
3
+ ## 17.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`248faa32d4835`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/248faa32d4835) -
8
+ Internal changes to how borders are applied.
9
+
10
+ ## 17.2.4
11
+
12
+ ### Patch Changes
13
+
14
+ - [`74c2f420ee49b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/74c2f420ee49b) -
15
+ Internal changes to how border radius is applied.
16
+
3
17
  ## 17.2.3
4
18
 
5
19
  ### Patch Changes
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/bidi-warning/index.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/bidi-warning/index.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/bidi-warning/bidi-warning-decorator.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/bidi-warning/bidi-warning-decorator.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/entry-points/block.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/entry-points/block.d.ts"
14
14
  ]
@@ -8,7 +8,7 @@
8
8
  ],
9
9
  "types": "../dist/types/entry-points/constants.d.ts",
10
10
  "typesVersions": {
11
- ">=4.5 <5.4": {
11
+ ">=4.5 <5.9": {
12
12
  "*": [
13
13
  "../dist/types-ts4.5/entry-points/constants.d.ts"
14
14
  ]
@@ -23,10 +23,15 @@ function BidiWarning(_ref) {
23
23
  var testId = _ref.testId,
24
24
  bidiCharacter = _ref.bidiCharacter,
25
25
  skipChildren = _ref.skipChildren,
26
+ shouldSkipChildren = _ref.shouldSkipChildren,
26
27
  tooltipEnabled = _ref.tooltipEnabled,
28
+ isTooltipEnabled = _ref.isTooltipEnabled,
27
29
  _ref$label = _ref.label,
28
30
  label = _ref$label === void 0 ? 'Bidirectional characters change the order that text is rendered. This could be used to obscure malicious code.' : _ref$label;
29
- if (tooltipEnabled) {
31
+ // Use new props if provided, otherwise fall back to deprecated props
32
+ var shouldEnableTooltip = isTooltipEnabled !== undefined ? isTooltipEnabled : tooltipEnabled;
33
+ var shouldSkip = shouldSkipChildren !== undefined ? shouldSkipChildren : skipChildren;
34
+ if (shouldEnableTooltip) {
30
35
  return (
31
36
  /*#__PURE__*/
32
37
  // Following patches, this should be updated to use the render props signature which will provide aria attributes.
@@ -38,13 +43,13 @@ function BidiWarning(_ref) {
38
43
  }, /*#__PURE__*/_react.default.createElement(_styled.Decorator, {
39
44
  testId: testId,
40
45
  bidiCharacter: bidiCharacter
41
- }, skipChildren ? null : bidiCharacter))
46
+ }, shouldSkip ? null : bidiCharacter))
42
47
  );
43
48
  }
44
49
  return /*#__PURE__*/_react.default.createElement(_styled.Decorator, {
45
50
  testId: testId,
46
51
  bidiCharacter: bidiCharacter
47
- }, skipChildren ? null : bidiCharacter);
52
+ }, shouldSkip ? null : bidiCharacter);
48
53
  }
49
54
  var CustomizedTagWithRef = /*#__PURE__*/_react.default.forwardRef(function (props, ref) {
50
55
  var children = props.children,
@@ -1,26 +1,25 @@
1
1
 
2
2
  ._1ozdn7od code, ._7xinn7od code[class*=language-], ._t7aun7od pre[class*=language-]{all:unset}
3
3
  ._i7ngn7od .token:not([class=token],[data-ds--code--row--highlight],[data-ds--code--row]){all:unset}
4
- ._2rkoglpi{border-radius:var(--ds-border-radius,4px)}
4
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
5
5
  ._1dqoglyw{border-style:none}
6
- ._1agb1dyw [data-ds--code--row--highlight]+[data-ds--code--row]:not([data-ds--code--row--highlight]), ._lkm81dyw [data-ds--code--row]:not([data-ds--code--row--highlight])+[data-ds--code--row--highlight]{border-top:1px dashed transparent}
7
- ._j1w0ww7y [data-ds--code--row--highlight] .linenumber{border-left:4px solid var(--ds-border-focused,#388bff)}
8
- ._tv41hkgb [data-ds--code--row--highlight] .linenumber:before{border-top:1px solid var(--ds-border-focused,#388bff)}
9
- ._wozj1dyw [data-ds--code--row--highlight]:last-child{border-bottom:1px dashed transparent}._113p131l .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.cdata{color:var(--ds-text-subtlest,#626f86)}
6
+ ._196q1xv3 [data-ds--code--row--highlight]:last-child{border-block-end:var(--ds-border-width,1px) dashed transparent}
7
+ ._1srn17d7 [data-ds--code--row--highlight] .linenumber:before{border-block-start:var(--ds-border-width,1px) solid var(--ds-border-focused,#388bff)}
8
+ ._1vbw1xv3 [data-ds--code--row--highlight]+[data-ds--code--row]:not([data-ds--code--row--highlight]), ._1v9c1xv3 [data-ds--code--row]:not([data-ds--code--row--highlight])+[data-ds--code--row--highlight]{border-block-start:var(--ds-border-width,1px) dashed transparent}
9
+ ._ra6gww7y [data-ds--code--row--highlight] .linenumber{border-inline-start:4px solid var(--ds-border-focused,#388bff)}._113p131l .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.cdata{color:var(--ds-text-subtlest,#626f86)}
10
10
  ._12l6ysn8 [data-ds--code--row--highlight]:after, ._uga3ysn8 [data-ds--code--row--highlight]:before{clip-path:inset(100%)}
11
11
  ._12nh9lu1 .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.deleted{color:var(--ds-text-accent-red,#ae2e24)}
12
- ._12tu1a66 .linenumber, ._zu0j1a66 .ds-sh-line-number{padding-right:var(--ds-space-100,8px)!important}
13
12
  ._131n1giz .linenumber, ._gy101giz .ds-sh-line-number{font-style:normal!important}
14
13
  ._137bh55r .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.inserted{color:var(--ds-text-accent-green,#216e4e)}
15
14
  ._13cdh2mm [data-ds--code--row--highlight] .linenumber{position:relative}
16
15
  ._13dgkb7n code:last-of-type{flex-shrink:1}
17
16
  ._13zt131l .token.token.token.token.token.token.token.substr{color:var(--ds-text-subtlest,#626f86)}
18
- ._14y71a66 code:last-of-type{padding-right:var(--ds-space-100,8px)!important}
19
- ._1552u2gc .linenumber, ._12afu2gc .ds-sh-line-number{margin-right:var(--ds-space-100,8px)}
20
- ._15ba126e [data-ds--code--row--highlight] .linenumber{padding-left:var(--ds-space-050,4px)!important}
17
+ ._16noidpf code, ._h4fuidpf code[class*=language-], ._pp6yidpf pre[class*=language-]{padding-inline-end:0}
18
+ ._16nou2gc code, ._h4fuu2gc code[class*=language-], ._pp6yu2gc pre[class*=language-]{padding-inline-end:var(--ds-space-100,8px)}
21
19
  ._17071olh code:first-of-type{background-image:linear-gradient(to right,var(--ds--code--line-number-bg-color,var(--ds-background-neutral,#091e420f)),var(--ds--code--line-number-bg-color,var(--ds-background-neutral,#091e420f)) var(--ads-code-line-number-width),transparent var(--ads-code-line-number-width),transparent)}
22
- ._17wyu2gc code, ._pn28u2gc code[class*=language-], ._gz9fu2gc pre[class*=language-]{padding-bottom:var(--ds-space-100,8px)}
20
+ ._18r6myb0 [data-ds--code--row--highlight] .linenumber:before{inset-inline-start:-4px}
23
21
  ._19o610m5 .token.token.token.token.token.token.token.token.token.token.url{color:var(--ds-text-accent-purple,#5e4db2)}
22
+ ._1ascu2gc .linenumber, ._1yuau2gc .ds-sh-line-number{padding-inline-start:var(--ds-space-100,8px)}
24
23
  ._1b9tpnps .token.token.token.token.token.token.token.token.builtin, ._1tq6pnps .token.token.token.token.token.token.token.token.bullet, ._1rd2pnps .token.token.token.token.token.token.token.token.code, ._1pbkpnps .token.token.token.token.token.token.token.token.entity, ._k3lipnps .token.token.token.token.token.token.token.token.namespace{color:var(--ds-text-accent-blue,#05c)}
25
24
  ._1d4j1y44 [data-ds--code--row--highlight] .linenumber:before{width:4px}
26
25
  ._1e0c1txw{display:flex}
@@ -29,12 +28,10 @@
29
28
  ._1f0gpnps .token.token.token.selector{color:var(--ds-text-accent-blue,#05c)}
30
29
  ._1f8gstnw [data-ds--code--row--highlight] .linenumber:before{position:absolute}
31
30
  ._1g0517qg .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.constant{color:var(--ds-text-accent-teal,#206a83)}
32
- ._1gec1a66 [data-ds--code--row]{padding-right:var(--ds-space-100,8px)!important}
31
+ ._1g4tidpf code, ._11wmidpf code[class*=language-], ._1bx8idpf pre[class*=language-]{padding-inline-start:0}
32
+ ._1g4tu2gc code, ._11wmu2gc code[class*=language-], ._1bx8u2gc pre[class*=language-]{padding-inline-start:var(--ds-space-100,8px)}
33
33
  ._1gx21e5h .linenumber{float:left}
34
- ._1hmimyb0 [data-ds--code--row--highlight] .linenumber:before{left:-4px}
35
34
  ._1hmyegat code, ._vblregat code[class*=language-], ._vbulegat pre[class*=language-]{tab-size:4}
36
- ._1huoidpf code, ._1a9lidpf code[class*=language-], ._20bqidpf pre[class*=language-]{padding-right:0}
37
- ._1huou2gc code, ._1a9lu2gc code[class*=language-], ._20bqu2gc pre[class*=language-]{padding-right:var(--ds-space-100,8px)}
38
35
  ._1i3h1txw [data-ds--code--row]{display:flex}
39
36
  ._1i3h1ule [data-ds--code--row]{display:block}
40
37
  ._1k47pnps .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.number{color:var(--ds-text-accent-blue,#05c)}
@@ -45,24 +42,20 @@
45
42
  ._1mgnt94y [data-ds--code--row--highlight]:after, ._nhket94y [data-ds--code--row--highlight]:before{width:1px}
46
43
  ._1n6tpnps .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.prolog{color:var(--ds-text-accent-blue,#05c)}
47
44
  ._1na21hna code:last-of-type{word-break:break-word}
48
- ._1oggidpf code, ._bympidpf code[class*=language-], ._9nnjidpf pre[class*=language-]{padding-left:0}
49
- ._1oggu2gc code, ._bympu2gc code[class*=language-], ._9nnju2gc pre[class*=language-]{padding-left:var(--ds-space-100,8px)}
45
+ ._1pp0126e [data-ds--code--row--highlight] .linenumber{padding-inline-start:var(--ds-space-050,4px)!important}
50
46
  ._1pzyb3bt [data-ds--code--row--highlight] .linenumber:before{content:""}
51
47
  ._1q16glyw .linenumber, ._1io6glyw .ds-sh-line-number{-webkit-user-select:none;-ms-user-select:none;user-select:none}
52
- ._1ra01n1a [data-ds--code--row--highlight] .linenumber:before{top:-1px}
53
48
  ._1reo1wug{overflow-x:auto}
54
49
  ._1t361fxt .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.operator{color:var(--ds-text,#172b4d)}
55
50
  ._1v0lh55r .token.token.token.token.token.token.token.token.token.token.token.token.string{color:var(--ds-text-accent-green,#216e4e)}
56
- ._1v15u2gc code, ._ilvcu2gc code[class*=language-], ._m29uu2gc pre[class*=language-]{padding-top:var(--ds-space-100,8px)}
57
51
  ._1weckb7n code:last-of-type{flex-grow:1}
58
52
  ._1wfuwrk5 .linenumber, ._16kzwrk5 .ds-sh-line-number{min-width:var(--ads-code-line-number-width)!important}
59
53
  ._1wyb1crf{font-size:9pt}
60
54
  ._1xcoh55r .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.atrule{color:var(--ds-text-accent-green,#216e4e)}
61
- ._1xx2grf3 code:first-of-type{padding-right:0!important}
62
55
  ._1yvq10m5 .token.token.token.token.token.token.token.token.token.token.token.token.token.class-name, ._1vww10m5 .token.token.token.token.token.token.token.token.token.token.token.token.token.section, ._1rju10m5 .token.token.token.token.token.token.token.token.token.token.token.token.token.title{color:var(--ds-text-accent-purple,#5e4db2)}
63
- ._28ddu2gc .linenumber, ._1i8zu2gc .ds-sh-line-number{padding-left:var(--ds-space-100,8px)}
64
56
  ._2g12fb2s .token.token.token.token.token.token.doctype{color:var(--ds-text-accent-yellow,#7f5f01)}
65
57
  ._326z1fxt .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.punctuation{color:var(--ds-text,#172b4d)}
58
+ ._40uk1l04 [data-ds--code--row]{margin-inline-end:-var(--ds-space-100,8px)}
66
59
  ._7gp8h55r .token.token.token.token.token.token.token.token.token.token.token.token.token.token.meta-keyword{color:var(--ds-text-accent-green,#216e4e)}
67
60
  ._97lipnps .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.boolean{color:var(--ds-text-accent-blue,#05c)}
68
61
  ._9d3e17qg .token.token.attr-name{color:var(--ds-text-accent-teal,#206a83)}
@@ -78,28 +71,35 @@
78
71
  ._g0lx1fxt .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.function{color:var(--ds-text,#172b4d)}
79
72
  ._h909m7j4 [data-ds--code--row--highlight]{background-color:var(--ds-background-neutral,#091e420f)}
80
73
  ._i2ig10m5 .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.property{color:var(--ds-text-accent-purple,#5e4db2)}
74
+ ._i81p1a66 [data-ds--code--row]{padding-inline-end:var(--ds-space-100,8px)!important}
81
75
  ._ipl81e17 [data-ds--code--row--highlight]:before{content:" [var(--ads-highlighted-start-text)] "}
82
76
  ._j0l11wug code:last-of-type{flex-basis:auto}
83
- ._jeky1l04 [data-ds--code--row]{margin-right:-var(--ds-space-100,8px)}
84
77
  ._juomusic .linenumber, ._lcwuusic .ds-sh-line-number{text-align:right}
85
78
  ._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
86
79
  ._k86b10m5 .token.token.token.token.token.function-name{color:var(--ds-text-accent-purple,#5e4db2)}
87
80
  ._kxov17qg .token.token.token.token.token.token.token.token.token.regex, ._1np517qg .token.token.token.token.token.token.token.token.token.symbol, ._m2f517qg .token.token.token.token.token.token.token.token.token.variable{color:var(--ds-text-accent-teal,#206a83)}
81
+ ._m802u2gc code, ._i6ntu2gc code[class*=language-], ._1w2xu2gc pre[class*=language-]{padding-block-end:var(--ds-space-100,8px)}
88
82
  ._mbgcpf9b .linenumber, ._bu7zpf9b .ds-sh-line-number{color:var(--ds-text-subtlest,#626f86)!important}
89
83
  ._mqok1w1g .token.key:not(.important,.bold), ._3hsg1w1g .token.keyword:not(.important,.bold){font-weight:bolder}
90
84
  ._mx8b7mnp [data-ds--code--row--highlight]:after, ._1kr87mnp [data-ds--code--row--highlight]:before{clip:rect(1px,1px,1px,1px)}
91
85
  ._nalpstnw [data-ds--code--row--highlight]:after, ._151dstnw [data-ds--code--row--highlight]:before{position:absolute}
92
86
  ._nhmw1m30 .token.block-comment:not(.italic), ._yl021m30 .token.comment:not(.italic){font-style:italic}
93
87
  ._o572qvpr{white-space:pre}
88
+ ._pyovu2gc .linenumber, ._ccm6u2gc .ds-sh-line-number{margin-inline-end:var(--ds-space-100,8px)}
94
89
  ._qdiapnps .token.key, ._72uvpnps .token.keyword{color:var(--ds-text-accent-blue,#05c)}
90
+ ._qzn01a66 code:last-of-type{padding-inline-end:var(--ds-space-100,8px)!important}
91
+ ._r28du2gc code, ._tajqu2gc code[class*=language-], ._1ohiu2gc pre[class*=language-]{padding-block-start:var(--ds-space-100,8px)}
95
92
  ._scgayz1z [data-ds--code--row--highlight]:after{content:" [var(--ads-highlighted-end-text)] "}
96
93
  ._syaz1fxt{color:var(--ds-text,#172b4d)}
97
94
  ._tgu817qg .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.attr-value{color:var(--ds-text-accent-teal,#206a83)}
98
95
  ._vm2c1rh5 .linenumber:after, ._12ok1rh5 .ds-sh-line-number:after{content:attr(data-ds--line-number)}
96
+ ._vsnzgrf3 code:first-of-type{padding-inline-end:0!important}
99
97
  ._vwz4gktf{line-height:20px}
98
+ ._vyvc1n1a [data-ds--code--row--highlight] .linenumber:before{inset-block-start:-1px}
100
99
  ._wmyy17qg .token.token.token.token.token.token.token.token.token.token.token.quote, ._748n17qg .token.token.token.token.token.token.token.token.token.token.token.selector-attr, ._1mfn17qg .token.token.token.token.token.token.token.token.token.token.token.selector-pseudo, ._1d7e17qg .token.token.token.token.token.token.token.token.token.token.token.tag, ._p2vr17qg .token.token.token.token.token.token.token.token.token.token.token.type{color:var(--ds-text-accent-teal,#206a83)}
101
100
  ._x7c815vq [data-ds--code--row--highlight]:after, ._lh0y15vq [data-ds--code--row--highlight]:before{overflow-x:hidden}
102
101
  ._xo19t94y [data-ds--code--row--highlight]:after, ._1bemt94y [data-ds--code--row--highlight]:before{height:1px}
102
+ ._xr0w1a66 .linenumber, ._4io21a66 .ds-sh-line-number{padding-inline-end:var(--ds-space-100,8px)!important}
103
103
  ._ys4e131l .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.meta{color:var(--ds-text-subtlest,#626f86)}
104
104
  ._zhnuidpf .linenumber, ._1amdidpf .ds-sh-line-number{flex-shrink:0}
105
105
  ._zvy9f705 code>span:only-child:empty:before, ._qcxof705 code>span:only-child>span:only-child:empty:before{content:" "}
@@ -22,9 +22,9 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
22
22
  /* eslint-disable @atlaskit/ui-styling-standard/no-unsafe-selectors */
23
23
  /* eslint-disable @atlaskit/ui-styling-standard/no-nested-selectors */
24
24
  var getCodeBlockStyles = {
25
- root: "_2rkoglpi _1dqoglyw _1wyb1crf _k48pi7a9 _1e0c1txw _vwz4gktf _1reo1wug _o572qvpr _1eimjvyg _bfhktkvp _syaz1fxt _ect41odn _1ozdn7od _7xinn7od _t7aun7od _1v15u2gc _ilvcu2gc _m29uu2gc _17wyu2gc _pn28u2gc _gz9fu2gc _1hmyegat _vblregat _vbulegat _wozj1dyw _1agb1dyw _lkm81dyw _tv41hkgb _1hmimyb0 _1ra01n1a _1d4j1y44 _1f8gstnw _1pzyb3bt _j1w0ww7y _13cdh2mm _15ba126e _zvy9f705 _qcxof705 _14y71a66 _j0l11wug _1weckb7n _1na21hna _1xx2grf3 _x7c815vq _lh0y15vq _1m3815vq _qk1e15vq _12l6ysn8 _uga3ysn8 _mx8b7mnp _1kr87mnp _xo19t94y _1bemt94y _nalpstnw _151dstnw _1exb1q9c _1hgu1q9c _1mgnt94y _nhket94y _h909m7j4 _scgayz1z _ipl81e17 _jeky1l04 _1gec1a66 _1gx21e5h _1ls0df4r _vm2c1rh5 _12ok1rh5 _1ls01ule _rude1ule _1q16glyw _1io6glyw _juomusic _lcwuusic _1552u2gc _12afu2gc _28ddu2gc _1i8zu2gc _12tu1a66 _zu0j1a66 _euyxusvi _cahfusvi _zhnuidpf _1amdidpf _mbgcpf9b _bu7zpf9b _131n1giz _gy101giz _1wfuwrk5 _16kzwrk5 _9kk3moej _cjus1w1g _9k2r1m30 _nhmw1m30 _yl021m30 _eiht5x2v _t9zb5x2v _mqok1w1g _3hsg1w1g _i7ngn7od _9wu1fb2s _1xcoh55r _1t361fxt _137bh55r _1k7d1fxt _97lipnps _12nh9lu1 _1g0517qg _i2ig10m5 _326z1fxt _113p131l _1n6tpnps _tgu817qg _1k47pnps _g0lx1fxt _ys4e131l _7gp8h55r _1yvq10m5 _1vww10m5 _1rju10m5 _1v0lh55r _wmyy17qg _748n17qg _1mfn17qg _1d7e17qg _p2vr17qg _19o610m5 _kxov17qg _1np517qg _m2f517qg _1b9tpnps _1tq6pnps _1rd2pnps _1pbkpnps _k3lipnps _13zt131l _2g12fb2s _k86b10m5 _b5iy131l _gti3131l _1f0gpnps _9d3e17qg _qdiapnps _72uvpnps",
26
- showLineNumbers: "_17071olh _1i3h1txw _1huoidpf _1a9lidpf _20bqidpf _1oggidpf _bympidpf _9nnjidpf",
27
- dontShowLineNumbers: "_1i3h1ule _1huou2gc _1a9lu2gc _20bqu2gc _1oggu2gc _bympu2gc _9nnju2gc",
25
+ root: "_2rko12b0 _1dqoglyw _1wyb1crf _k48pi7a9 _1e0c1txw _vwz4gktf _1reo1wug _o572qvpr _1eimjvyg _bfhktkvp _syaz1fxt _ect41odn _1ozdn7od _7xinn7od _t7aun7od _r28du2gc _tajqu2gc _1ohiu2gc _m802u2gc _i6ntu2gc _1w2xu2gc _1hmyegat _vblregat _vbulegat _196q1xv3 _1vbw1xv3 _1v9c1xv3 _1srn17d7 _18r6myb0 _vyvc1n1a _1d4j1y44 _1f8gstnw _1pzyb3bt _ra6gww7y _13cdh2mm _1pp0126e _zvy9f705 _qcxof705 _qzn01a66 _j0l11wug _1weckb7n _1na21hna _vsnzgrf3 _x7c815vq _lh0y15vq _1m3815vq _qk1e15vq _12l6ysn8 _uga3ysn8 _mx8b7mnp _1kr87mnp _xo19t94y _1bemt94y _nalpstnw _151dstnw _1exb1q9c _1hgu1q9c _1mgnt94y _nhket94y _h909m7j4 _scgayz1z _ipl81e17 _40uk1l04 _i81p1a66 _1gx21e5h _1ls0df4r _vm2c1rh5 _12ok1rh5 _1ls01ule _rude1ule _1q16glyw _1io6glyw _juomusic _lcwuusic _pyovu2gc _ccm6u2gc _1ascu2gc _1yuau2gc _xr0w1a66 _4io21a66 _euyxusvi _cahfusvi _zhnuidpf _1amdidpf _mbgcpf9b _bu7zpf9b _131n1giz _gy101giz _1wfuwrk5 _16kzwrk5 _9kk3moej _cjus1w1g _9k2r1m30 _nhmw1m30 _yl021m30 _eiht5x2v _t9zb5x2v _mqok1w1g _3hsg1w1g _i7ngn7od _9wu1fb2s _1xcoh55r _1t361fxt _137bh55r _1k7d1fxt _97lipnps _12nh9lu1 _1g0517qg _i2ig10m5 _326z1fxt _113p131l _1n6tpnps _tgu817qg _1k47pnps _g0lx1fxt _ys4e131l _7gp8h55r _1yvq10m5 _1vww10m5 _1rju10m5 _1v0lh55r _wmyy17qg _748n17qg _1mfn17qg _1d7e17qg _p2vr17qg _19o610m5 _kxov17qg _1np517qg _m2f517qg _1b9tpnps _1tq6pnps _1rd2pnps _1pbkpnps _k3lipnps _13zt131l _2g12fb2s _k86b10m5 _b5iy131l _gti3131l _1f0gpnps _9d3e17qg _qdiapnps _72uvpnps",
26
+ showLineNumbers: "_17071olh _1i3h1txw _16noidpf _h4fuidpf _pp6yidpf _1g4tidpf _11wmidpf _1bx8idpf",
27
+ dontShowLineNumbers: "_1i3h1ule _16nou2gc _h4fuu2gc _pp6yu2gc _1g4tu2gc _11wmu2gc _1bx8u2gc",
28
28
  shouldWrapLongLines: "_13dgkb7n",
29
29
  dontWrapLongLines: "_13dgkb7n"
30
30
  };
@@ -41,6 +41,7 @@ var getCodeBlockStyles = {
41
41
  var CodeBlock = /*#__PURE__*/(0, _react.memo)(function CodeBlock(_ref) {
42
42
  var _ref$showLineNumbers = _ref.showLineNumbers,
43
43
  showLineNumbers = _ref$showLineNumbers === void 0 ? true : _ref$showLineNumbers,
44
+ shouldShowLineNumbers = _ref.shouldShowLineNumbers,
44
45
  _ref$firstLineNumber = _ref.firstLineNumber,
45
46
  firstLineNumber = _ref$firstLineNumber === void 0 ? 1 : _ref$firstLineNumber,
46
47
  _ref$language = _ref.language,
@@ -55,9 +56,11 @@ var CodeBlock = /*#__PURE__*/(0, _react.memo)(function CodeBlock(_ref) {
55
56
  text = _ref.text,
56
57
  _ref$codeBidiWarnings = _ref.codeBidiWarnings,
57
58
  codeBidiWarnings = _ref$codeBidiWarnings === void 0 ? true : _ref$codeBidiWarnings,
59
+ hasBidiWarnings = _ref.hasBidiWarnings,
58
60
  codeBidiWarningLabel = _ref.codeBidiWarningLabel,
59
61
  _ref$codeBidiWarningT = _ref.codeBidiWarningTooltipEnabled,
60
62
  codeBidiWarningTooltipEnabled = _ref$codeBidiWarningT === void 0 ? true : _ref$codeBidiWarningT,
63
+ isBidiWarningTooltipEnabled = _ref.isBidiWarningTooltipEnabled,
61
64
  _ref$shouldWrapLongLi = _ref.shouldWrapLongLines,
62
65
  shouldWrapLongLines = _ref$shouldWrapLongLi === void 0 ? false : _ref$shouldWrapLongLi,
63
66
  _ref$label = _ref.label,
@@ -67,9 +70,16 @@ var CodeBlock = /*#__PURE__*/(0, _react.memo)(function CodeBlock(_ref) {
67
70
  _useState2 = (0, _slicedToArray2.default)(_useState, 2),
68
71
  showContentFocus = _useState2[0],
69
72
  setShowContentFocus = _useState2[1];
73
+
74
+ // Use children if provided, otherwise fall back to deprecated text prop
70
75
  var numLines = (text || '').split('\n').length + (firstLineNumber > 0 ? firstLineNumber : 1) - 1;
71
76
  var lineNumberWidth = numLines ? (0, _styles.getLineNumWidth)(numLines) : 0;
72
77
 
78
+ // Use new props if provided, otherwise fall back to deprecated props
79
+ var shouldShowLineNumbersValue = shouldShowLineNumbers !== undefined ? shouldShowLineNumbers : showLineNumbers;
80
+ var shouldShowBidiWarnings = hasBidiWarnings !== undefined ? hasBidiWarnings : codeBidiWarnings;
81
+ var shouldEnableTooltip = isBidiWarningTooltipEnabled !== undefined ? isBidiWarningTooltipEnabled : codeBidiWarningTooltipEnabled;
82
+
73
83
  // Schedule a content focus on the target element
74
84
  // WARNING: In theory, `target` may not be available when `rafSchedule` hits in concurrent rendering
75
85
  (0, _react.useEffect)(function () {
@@ -109,7 +119,7 @@ var CodeBlock = /*#__PURE__*/(0, _react.memo)(function CodeBlock(_ref) {
109
119
  '--ads-highlighted-start-text': highlightedStartText,
110
120
  '--ads-highlighted-end-text': highlightedEndText
111
121
  },
112
- showLineNumbers: showLineNumbers,
122
+ showLineNumbers: shouldShowLineNumbersValue,
113
123
  firstLineNumber: firstLineNumber,
114
124
  lineProps: getLineProps
115
125
  // shouldCreateParentElementForLines is needed to pass down props to each line.
@@ -118,15 +128,15 @@ var CodeBlock = /*#__PURE__*/(0, _react.memo)(function CodeBlock(_ref) {
118
128
  ,
119
129
  shouldCreateParentElementForLines: highlight.length > 0 || !!testId,
120
130
  shouldWrapLongLines: shouldWrapLongLines,
121
- codeBidiWarnings: codeBidiWarnings,
131
+ codeBidiWarnings: shouldShowBidiWarnings,
122
132
  codeBidiWarningLabel: codeBidiWarningLabel,
123
- codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled,
133
+ codeBidiWarningTooltipEnabled: shouldEnableTooltip,
124
134
  text: text,
125
135
  tabIndex: showContentFocus ? '0' : undefined,
126
136
  "aria-label": showContentFocus ? label : undefined,
127
137
  role: showContentFocus ? 'region' : undefined,
128
138
  scrollRef: scrollableRef,
129
- className: (0, _runtime.ax)([getCodeBlockStyles.root, shouldWrapLongLines ? getCodeBlockStyles.shouldWrapLongLines : getCodeBlockStyles.dontWrapLongLines, showLineNumbers ? getCodeBlockStyles.showLineNumbers : getCodeBlockStyles.dontShowLineNumbers])
139
+ className: (0, _runtime.ax)([getCodeBlockStyles.root, shouldWrapLongLines ? getCodeBlockStyles.shouldWrapLongLines : getCodeBlockStyles.dontWrapLongLines, shouldShowLineNumbersValue ? getCodeBlockStyles.showLineNumbers : getCodeBlockStyles.dontShowLineNumbers])
130
140
  });
131
141
  });
132
142
  var _default = exports.default = CodeBlock;
@@ -1,5 +1,5 @@
1
1
  ._11c81u0j{font:var(--ds-font-code,normal 400 .875em/1 ui-monospace,Menlo,"Segoe UI Mono","Ubuntu Mono",monospace)}
2
- ._2rko1sit{border-radius:var(--ds-border-radius,3px)}
2
+ ._2rkofajl{border-radius:var(--ds-radius-small,3px)}
3
3
  ._1dqoglyw{border-style:none}
4
4
  ._16d9qvcn{-webkit-box-decoration-break:clone;box-decoration-break:clone}
5
5
  ._18m91wug{overflow-y:auto}
package/dist/cjs/code.js CHANGED
@@ -15,10 +15,10 @@ var _react = _interopRequireWildcard(require("react"));
15
15
  var _bidiWarning = _interopRequireDefault(require("./bidi-warning"));
16
16
  var _bidiWarningDecorator = _interopRequireDefault(require("./bidi-warning/bidi-warning-decorator"));
17
17
  var _excluded = ["testId"],
18
- _excluded2 = ["children", "codeBidiWarnings", "codeBidiWarningLabel", "codeBidiWarningTooltipEnabled"];
18
+ _excluded2 = ["children", "codeBidiWarnings", "hasBidiWarnings", "codeBidiWarningLabel", "codeBidiWarningTooltipEnabled", "isBidiWarningTooltipEnabled"];
19
19
  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); }
20
20
  var styles = {
21
- base: "_ca0qyh40 _u5f3m5ip _n3tdyh40 _19bvm5ip _2rko1sit _11c81u0j _1reo1wug _18m91wug _1dqoglyw _1e0c1nu9 _bfhktkvp _16d9qvcn _syaz1fxt _vwz41kw7 _1i4q1hna _o5721jtm"
21
+ base: "_ca0qyh40 _u5f3m5ip _n3tdyh40 _19bvm5ip _2rkofajl _11c81u0j _1reo1wug _18m91wug _1dqoglyw _1e0c1nu9 _bfhktkvp _16d9qvcn _syaz1fxt _vwz41kw7 _1i4q1hna _o5721jtm"
22
22
  };
23
23
 
24
24
  /**
@@ -36,13 +36,19 @@ var Code = /*#__PURE__*/(0, _react.memo)( /*#__PURE__*/(0, _react.forwardRef)(fu
36
36
  var children = props.children,
37
37
  _props$codeBidiWarnin = props.codeBidiWarnings,
38
38
  codeBidiWarnings = _props$codeBidiWarnin === void 0 ? true : _props$codeBidiWarnin,
39
+ hasBidiWarnings = props.hasBidiWarnings,
39
40
  codeBidiWarningLabel = props.codeBidiWarningLabel,
40
41
  _props$codeBidiWarnin2 = props.codeBidiWarningTooltipEnabled,
41
42
  codeBidiWarningTooltipEnabled = _props$codeBidiWarnin2 === void 0 ? true : _props$codeBidiWarnin2,
43
+ isBidiWarningTooltipEnabled = props.isBidiWarningTooltipEnabled,
42
44
  otherProps = (0, _objectWithoutProperties2.default)(props, _excluded2);
43
- var decoratedChildren = codeBidiWarnings ? /*#__PURE__*/_react.default.createElement(RenderCodeChildrenWithBidiWarnings, {
45
+
46
+ // Use new props if provided, otherwise fall back to deprecated props
47
+ var shouldShowBidiWarnings = hasBidiWarnings !== undefined ? hasBidiWarnings : codeBidiWarnings;
48
+ var shouldEnableTooltip = isBidiWarningTooltipEnabled !== undefined ? isBidiWarningTooltipEnabled : codeBidiWarningTooltipEnabled;
49
+ var decoratedChildren = shouldShowBidiWarnings ? /*#__PURE__*/_react.default.createElement(RenderCodeChildrenWithBidiWarnings, {
44
50
  codeBidiWarningLabel: codeBidiWarningLabel,
45
- codeBidiWarningTooltipEnabled: codeBidiWarningTooltipEnabled
51
+ codeBidiWarningTooltipEnabled: shouldEnableTooltip
46
52
  }, children) : children;
47
53
  return /*#__PURE__*/_react.default.createElement("code", (0, _extends2.default)({
48
54
  ref: ref,
@@ -334,6 +334,10 @@ var SUPPORTED_LANGUAGES = exports.SUPPORTED_LANGUAGES = [{
334
334
  name: 'Protocol Buffers',
335
335
  alias: ['protobuf', 'proto'],
336
336
  value: 'protobuf'
337
+ }, {
338
+ name: 'TOML',
339
+ alias: ['toml'],
340
+ value: 'toml'
337
341
  }, {
338
342
  name: 'Handlebars',
339
343
  alias: ['handlebars', 'mustache'],
@@ -14,16 +14,19 @@ function createLineElement(_ref) {
14
14
  var children = _ref.children,
15
15
  lineNumber = _ref.lineNumber,
16
16
  showLineNumbers = _ref.showLineNumbers,
17
+ shouldShowLineNumbers = _ref.shouldShowLineNumbers,
17
18
  _ref$lineProps = _ref.lineProps,
18
19
  lineProps = _ref$lineProps === void 0 ? {} : _ref$lineProps,
19
20
  _ref$className = _ref.className,
20
21
  className = _ref$className === void 0 ? [] : _ref$className;
22
+ // Use new prop if provided, otherwise fall back to deprecated prop
23
+ var shouldShowLineNumbersValue = shouldShowLineNumbers !== undefined ? shouldShowLineNumbers : showLineNumbers;
21
24
  var propsPassedInFromCodeBlock = typeof lineProps === 'function' ? lineProps(lineNumber) : lineProps;
22
25
  var properties = _objectSpread(_objectSpread({}, propsPassedInFromCodeBlock), {}, {
23
26
  className: className
24
27
  });
25
28
  var currentChildren = children;
26
- if (lineNumber && showLineNumbers) {
29
+ if (lineNumber && shouldShowLineNumbersValue) {
27
30
  // When syntax highlighting is NOT turned on, the entire LOC is just a single
28
31
  // child. We can then happily create the line number and the LOC as siblings...
29
32
  if (currentChildren.length === 1) {
@@ -36,7 +36,7 @@ function createElement(_ref) {
36
36
  bidiCharacter: bidiCharacter,
37
37
  key: index,
38
38
  label: codeBidiWarningConfig.codeBidiWarningLabel,
39
- tooltipEnabled: codeBidiWarningConfig.codeBidiWarningTooltipEnabled
39
+ isTooltipEnabled: codeBidiWarningConfig.codeBidiWarningTooltipEnabled
40
40
  });
41
41
  });
42
42
  return decorated;
@@ -14,10 +14,15 @@ export default function BidiWarning({
14
14
  testId,
15
15
  bidiCharacter,
16
16
  skipChildren,
17
+ shouldSkipChildren,
17
18
  tooltipEnabled,
19
+ isTooltipEnabled,
18
20
  label = 'Bidirectional characters change the order that text is rendered. This could be used to obscure malicious code.'
19
21
  }) {
20
- if (tooltipEnabled) {
22
+ // Use new props if provided, otherwise fall back to deprecated props
23
+ const shouldEnableTooltip = isTooltipEnabled !== undefined ? isTooltipEnabled : tooltipEnabled;
24
+ const shouldSkip = shouldSkipChildren !== undefined ? shouldSkipChildren : skipChildren;
25
+ if (shouldEnableTooltip) {
21
26
  return (
22
27
  /*#__PURE__*/
23
28
  // Following patches, this should be updated to use the render props signature which will provide aria attributes.
@@ -29,13 +34,13 @@ export default function BidiWarning({
29
34
  }, /*#__PURE__*/React.createElement(Decorator, {
30
35
  testId: testId,
31
36
  bidiCharacter: bidiCharacter
32
- }, skipChildren ? null : bidiCharacter))
37
+ }, shouldSkip ? null : bidiCharacter))
33
38
  );
34
39
  }
35
40
  return /*#__PURE__*/React.createElement(Decorator, {
36
41
  testId: testId,
37
42
  bidiCharacter: bidiCharacter
38
- }, skipChildren ? null : bidiCharacter);
43
+ }, shouldSkip ? null : bidiCharacter);
39
44
  }
40
45
  const CustomizedTagWithRef = /*#__PURE__*/React.forwardRef((props, ref) => {
41
46
  const {
@@ -1,26 +1,25 @@
1
1
 
2
2
  ._1ozdn7od code, ._7xinn7od code[class*=language-], ._t7aun7od pre[class*=language-]{all:unset}
3
3
  ._i7ngn7od .token:not([class=token],[data-ds--code--row--highlight],[data-ds--code--row]){all:unset}
4
- ._2rkoglpi{border-radius:var(--ds-border-radius,4px)}
4
+ ._2rko12b0{border-radius:var(--ds-radius-small,4px)}
5
5
  ._1dqoglyw{border-style:none}
6
- ._1agb1dyw [data-ds--code--row--highlight]+[data-ds--code--row]:not([data-ds--code--row--highlight]), ._lkm81dyw [data-ds--code--row]:not([data-ds--code--row--highlight])+[data-ds--code--row--highlight]{border-top:1px dashed transparent}
7
- ._j1w0ww7y [data-ds--code--row--highlight] .linenumber{border-left:4px solid var(--ds-border-focused,#388bff)}
8
- ._tv41hkgb [data-ds--code--row--highlight] .linenumber:before{border-top:1px solid var(--ds-border-focused,#388bff)}
9
- ._wozj1dyw [data-ds--code--row--highlight]:last-child{border-bottom:1px dashed transparent}._113p131l .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.cdata{color:var(--ds-text-subtlest,#626f86)}
6
+ ._196q1xv3 [data-ds--code--row--highlight]:last-child{border-block-end:var(--ds-border-width,1px) dashed transparent}
7
+ ._1srn17d7 [data-ds--code--row--highlight] .linenumber:before{border-block-start:var(--ds-border-width,1px) solid var(--ds-border-focused,#388bff)}
8
+ ._1vbw1xv3 [data-ds--code--row--highlight]+[data-ds--code--row]:not([data-ds--code--row--highlight]), ._1v9c1xv3 [data-ds--code--row]:not([data-ds--code--row--highlight])+[data-ds--code--row--highlight]{border-block-start:var(--ds-border-width,1px) dashed transparent}
9
+ ._ra6gww7y [data-ds--code--row--highlight] .linenumber{border-inline-start:4px solid var(--ds-border-focused,#388bff)}._113p131l .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.cdata{color:var(--ds-text-subtlest,#626f86)}
10
10
  ._12l6ysn8 [data-ds--code--row--highlight]:after, ._uga3ysn8 [data-ds--code--row--highlight]:before{clip-path:inset(100%)}
11
11
  ._12nh9lu1 .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.deleted{color:var(--ds-text-accent-red,#ae2e24)}
12
- ._12tu1a66 .linenumber, ._zu0j1a66 .ds-sh-line-number{padding-right:var(--ds-space-100,8px)!important}
13
12
  ._131n1giz .linenumber, ._gy101giz .ds-sh-line-number{font-style:normal!important}
14
13
  ._137bh55r .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.inserted{color:var(--ds-text-accent-green,#216e4e)}
15
14
  ._13cdh2mm [data-ds--code--row--highlight] .linenumber{position:relative}
16
15
  ._13dgkb7n code:last-of-type{flex-shrink:1}
17
16
  ._13zt131l .token.token.token.token.token.token.token.substr{color:var(--ds-text-subtlest,#626f86)}
18
- ._14y71a66 code:last-of-type{padding-right:var(--ds-space-100,8px)!important}
19
- ._1552u2gc .linenumber, ._12afu2gc .ds-sh-line-number{margin-right:var(--ds-space-100,8px)}
20
- ._15ba126e [data-ds--code--row--highlight] .linenumber{padding-left:var(--ds-space-050,4px)!important}
17
+ ._16noidpf code, ._h4fuidpf code[class*=language-], ._pp6yidpf pre[class*=language-]{padding-inline-end:0}
18
+ ._16nou2gc code, ._h4fuu2gc code[class*=language-], ._pp6yu2gc pre[class*=language-]{padding-inline-end:var(--ds-space-100,8px)}
21
19
  ._17071olh code:first-of-type{background-image:linear-gradient(to right,var(--ds--code--line-number-bg-color,var(--ds-background-neutral,#091e420f)),var(--ds--code--line-number-bg-color,var(--ds-background-neutral,#091e420f)) var(--ads-code-line-number-width),transparent var(--ads-code-line-number-width),transparent)}
22
- ._17wyu2gc code, ._pn28u2gc code[class*=language-], ._gz9fu2gc pre[class*=language-]{padding-bottom:var(--ds-space-100,8px)}
20
+ ._18r6myb0 [data-ds--code--row--highlight] .linenumber:before{inset-inline-start:-4px}
23
21
  ._19o610m5 .token.token.token.token.token.token.token.token.token.token.url{color:var(--ds-text-accent-purple,#5e4db2)}
22
+ ._1ascu2gc .linenumber, ._1yuau2gc .ds-sh-line-number{padding-inline-start:var(--ds-space-100,8px)}
24
23
  ._1b9tpnps .token.token.token.token.token.token.token.token.builtin, ._1tq6pnps .token.token.token.token.token.token.token.token.bullet, ._1rd2pnps .token.token.token.token.token.token.token.token.code, ._1pbkpnps .token.token.token.token.token.token.token.token.entity, ._k3lipnps .token.token.token.token.token.token.token.token.namespace{color:var(--ds-text-accent-blue,#05c)}
25
24
  ._1d4j1y44 [data-ds--code--row--highlight] .linenumber:before{width:4px}
26
25
  ._1e0c1txw{display:flex}
@@ -29,12 +28,10 @@
29
28
  ._1f0gpnps .token.token.token.selector{color:var(--ds-text-accent-blue,#05c)}
30
29
  ._1f8gstnw [data-ds--code--row--highlight] .linenumber:before{position:absolute}
31
30
  ._1g0517qg .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.constant{color:var(--ds-text-accent-teal,#206a83)}
32
- ._1gec1a66 [data-ds--code--row]{padding-right:var(--ds-space-100,8px)!important}
31
+ ._1g4tidpf code, ._11wmidpf code[class*=language-], ._1bx8idpf pre[class*=language-]{padding-inline-start:0}
32
+ ._1g4tu2gc code, ._11wmu2gc code[class*=language-], ._1bx8u2gc pre[class*=language-]{padding-inline-start:var(--ds-space-100,8px)}
33
33
  ._1gx21e5h .linenumber{float:left}
34
- ._1hmimyb0 [data-ds--code--row--highlight] .linenumber:before{left:-4px}
35
34
  ._1hmyegat code, ._vblregat code[class*=language-], ._vbulegat pre[class*=language-]{tab-size:4}
36
- ._1huoidpf code, ._1a9lidpf code[class*=language-], ._20bqidpf pre[class*=language-]{padding-right:0}
37
- ._1huou2gc code, ._1a9lu2gc code[class*=language-], ._20bqu2gc pre[class*=language-]{padding-right:var(--ds-space-100,8px)}
38
35
  ._1i3h1txw [data-ds--code--row]{display:flex}
39
36
  ._1i3h1ule [data-ds--code--row]{display:block}
40
37
  ._1k47pnps .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.number{color:var(--ds-text-accent-blue,#05c)}
@@ -45,24 +42,20 @@
45
42
  ._1mgnt94y [data-ds--code--row--highlight]:after, ._nhket94y [data-ds--code--row--highlight]:before{width:1px}
46
43
  ._1n6tpnps .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.prolog{color:var(--ds-text-accent-blue,#05c)}
47
44
  ._1na21hna code:last-of-type{word-break:break-word}
48
- ._1oggidpf code, ._bympidpf code[class*=language-], ._9nnjidpf pre[class*=language-]{padding-left:0}
49
- ._1oggu2gc code, ._bympu2gc code[class*=language-], ._9nnju2gc pre[class*=language-]{padding-left:var(--ds-space-100,8px)}
45
+ ._1pp0126e [data-ds--code--row--highlight] .linenumber{padding-inline-start:var(--ds-space-050,4px)!important}
50
46
  ._1pzyb3bt [data-ds--code--row--highlight] .linenumber:before{content:""}
51
47
  ._1q16glyw .linenumber, ._1io6glyw .ds-sh-line-number{-webkit-user-select:none;-ms-user-select:none;user-select:none}
52
- ._1ra01n1a [data-ds--code--row--highlight] .linenumber:before{top:-1px}
53
48
  ._1reo1wug{overflow-x:auto}
54
49
  ._1t361fxt .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.operator{color:var(--ds-text,#172b4d)}
55
50
  ._1v0lh55r .token.token.token.token.token.token.token.token.token.token.token.token.string{color:var(--ds-text-accent-green,#216e4e)}
56
- ._1v15u2gc code, ._ilvcu2gc code[class*=language-], ._m29uu2gc pre[class*=language-]{padding-top:var(--ds-space-100,8px)}
57
51
  ._1weckb7n code:last-of-type{flex-grow:1}
58
52
  ._1wfuwrk5 .linenumber, ._16kzwrk5 .ds-sh-line-number{min-width:var(--ads-code-line-number-width)!important}
59
53
  ._1wyb1crf{font-size:9pt}
60
54
  ._1xcoh55r .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.atrule{color:var(--ds-text-accent-green,#216e4e)}
61
- ._1xx2grf3 code:first-of-type{padding-right:0!important}
62
55
  ._1yvq10m5 .token.token.token.token.token.token.token.token.token.token.token.token.token.class-name, ._1vww10m5 .token.token.token.token.token.token.token.token.token.token.token.token.token.section, ._1rju10m5 .token.token.token.token.token.token.token.token.token.token.token.token.token.title{color:var(--ds-text-accent-purple,#5e4db2)}
63
- ._28ddu2gc .linenumber, ._1i8zu2gc .ds-sh-line-number{padding-left:var(--ds-space-100,8px)}
64
56
  ._2g12fb2s .token.token.token.token.token.token.doctype{color:var(--ds-text-accent-yellow,#7f5f01)}
65
57
  ._326z1fxt .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.punctuation{color:var(--ds-text,#172b4d)}
58
+ ._40uk1l04 [data-ds--code--row]{margin-inline-end:-var(--ds-space-100,8px)}
66
59
  ._7gp8h55r .token.token.token.token.token.token.token.token.token.token.token.token.token.token.meta-keyword{color:var(--ds-text-accent-green,#216e4e)}
67
60
  ._97lipnps .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.boolean{color:var(--ds-text-accent-blue,#05c)}
68
61
  ._9d3e17qg .token.token.attr-name{color:var(--ds-text-accent-teal,#206a83)}
@@ -78,28 +71,35 @@
78
71
  ._g0lx1fxt .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.function{color:var(--ds-text,#172b4d)}
79
72
  ._h909m7j4 [data-ds--code--row--highlight]{background-color:var(--ds-background-neutral,#091e420f)}
80
73
  ._i2ig10m5 .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.property{color:var(--ds-text-accent-purple,#5e4db2)}
74
+ ._i81p1a66 [data-ds--code--row]{padding-inline-end:var(--ds-space-100,8px)!important}
81
75
  ._ipl81e17 [data-ds--code--row--highlight]:before{content:" [var(--ads-highlighted-start-text)] "}
82
76
  ._j0l11wug code:last-of-type{flex-basis:auto}
83
- ._jeky1l04 [data-ds--code--row]{margin-right:-var(--ds-space-100,8px)}
84
77
  ._juomusic .linenumber, ._lcwuusic .ds-sh-line-number{text-align:right}
85
78
  ._k48pi7a9{font-weight:var(--ds-font-weight-regular,400)}
86
79
  ._k86b10m5 .token.token.token.token.token.function-name{color:var(--ds-text-accent-purple,#5e4db2)}
87
80
  ._kxov17qg .token.token.token.token.token.token.token.token.token.regex, ._1np517qg .token.token.token.token.token.token.token.token.token.symbol, ._m2f517qg .token.token.token.token.token.token.token.token.token.variable{color:var(--ds-text-accent-teal,#206a83)}
81
+ ._m802u2gc code, ._i6ntu2gc code[class*=language-], ._1w2xu2gc pre[class*=language-]{padding-block-end:var(--ds-space-100,8px)}
88
82
  ._mbgcpf9b .linenumber, ._bu7zpf9b .ds-sh-line-number{color:var(--ds-text-subtlest,#626f86)!important}
89
83
  ._mqok1w1g .token.key:not(.important,.bold), ._3hsg1w1g .token.keyword:not(.important,.bold){font-weight:bolder}
90
84
  ._mx8b7mnp [data-ds--code--row--highlight]:after, ._1kr87mnp [data-ds--code--row--highlight]:before{clip:rect(1px,1px,1px,1px)}
91
85
  ._nalpstnw [data-ds--code--row--highlight]:after, ._151dstnw [data-ds--code--row--highlight]:before{position:absolute}
92
86
  ._nhmw1m30 .token.block-comment:not(.italic), ._yl021m30 .token.comment:not(.italic){font-style:italic}
93
87
  ._o572qvpr{white-space:pre}
88
+ ._pyovu2gc .linenumber, ._ccm6u2gc .ds-sh-line-number{margin-inline-end:var(--ds-space-100,8px)}
94
89
  ._qdiapnps .token.key, ._72uvpnps .token.keyword{color:var(--ds-text-accent-blue,#05c)}
90
+ ._qzn01a66 code:last-of-type{padding-inline-end:var(--ds-space-100,8px)!important}
91
+ ._r28du2gc code, ._tajqu2gc code[class*=language-], ._1ohiu2gc pre[class*=language-]{padding-block-start:var(--ds-space-100,8px)}
95
92
  ._scgayz1z [data-ds--code--row--highlight]:after{content:" [var(--ads-highlighted-end-text)] "}
96
93
  ._syaz1fxt{color:var(--ds-text,#172b4d)}
97
94
  ._tgu817qg .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.attr-value{color:var(--ds-text-accent-teal,#206a83)}
98
95
  ._vm2c1rh5 .linenumber:after, ._12ok1rh5 .ds-sh-line-number:after{content:attr(data-ds--line-number)}
96
+ ._vsnzgrf3 code:first-of-type{padding-inline-end:0!important}
99
97
  ._vwz4gktf{line-height:20px}
98
+ ._vyvc1n1a [data-ds--code--row--highlight] .linenumber:before{inset-block-start:-1px}
100
99
  ._wmyy17qg .token.token.token.token.token.token.token.token.token.token.token.quote, ._748n17qg .token.token.token.token.token.token.token.token.token.token.token.selector-attr, ._1mfn17qg .token.token.token.token.token.token.token.token.token.token.token.selector-pseudo, ._1d7e17qg .token.token.token.token.token.token.token.token.token.token.token.tag, ._p2vr17qg .token.token.token.token.token.token.token.token.token.token.token.type{color:var(--ds-text-accent-teal,#206a83)}
101
100
  ._x7c815vq [data-ds--code--row--highlight]:after, ._lh0y15vq [data-ds--code--row--highlight]:before{overflow-x:hidden}
102
101
  ._xo19t94y [data-ds--code--row--highlight]:after, ._1bemt94y [data-ds--code--row--highlight]:before{height:1px}
102
+ ._xr0w1a66 .linenumber, ._4io21a66 .ds-sh-line-number{padding-inline-end:var(--ds-space-100,8px)!important}
103
103
  ._ys4e131l .token.token.token.token.token.token.token.token.token.token.token.token.token.token.token.meta{color:var(--ds-text-subtlest,#626f86)}
104
104
  ._zhnuidpf .linenumber, ._1amdidpf .ds-sh-line-number{flex-shrink:0}
105
105
  ._zvy9f705 code>span:only-child:empty:before, ._qcxof705 code>span:only-child>span:only-child:empty:before{content:" "}