@atlaskit/code 14.3.1 → 14.3.4
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 +23 -0
- package/__perf__/default.tsx +1 -1
- package/codemods/__tests__/14.0.0-lite-mode/14.0.0-lite-mode.ts +10 -10
- package/codemods/__tests__/14.0.0-lite-mode/remove-language.ts +6 -6
- package/codemods/__tests__/14.0.0-lite-mode/text-to-child.ts +10 -10
- package/dist/cjs/bidi-warning/bidi-warning-decorator.js +1 -1
- package/dist/cjs/bidi-warning/ui/index.js +3 -1
- package/dist/cjs/bidi-warning/ui/styled.js +4 -3
- package/dist/cjs/code.js +6 -4
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/internal/hooks/use-highlight.js +2 -2
- package/dist/cjs/internal/theme/constants.js +1 -1
- package/dist/cjs/internal/theme/get-theme.js +99 -99
- package/dist/cjs/internal/theme/styles.js +4 -3
- package/dist/cjs/react-syntax-highlighter-bidi-warning-renderer.js +4 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/bidi-warning/ui/styled.js +4 -3
- package/dist/es2019/internal/theme/get-theme.js +96 -96
- package/dist/es2019/internal/theme/styles.js +1 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/bidi-warning/ui/index.js +2 -1
- package/dist/esm/bidi-warning/ui/styled.js +4 -3
- package/dist/esm/code.js +4 -2
- package/dist/esm/internal/hooks/use-highlight.js +2 -2
- package/dist/esm/internal/theme/get-theme.js +98 -98
- package/dist/esm/internal/theme/styles.js +3 -2
- package/dist/esm/react-syntax-highlighter-bidi-warning-renderer.js +2 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/bidi-warning/ui/index.d.ts +1 -0
- package/package.json +9 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import memoizeOne from 'memoize-one';
|
|
8
8
|
import * as colors from '@atlaskit/theme/colors';
|
|
@@ -18,26 +18,26 @@ export var getBaseTheme = function getBaseTheme(theme) {
|
|
|
18
18
|
fontFamily: codeFontFamily(),
|
|
19
19
|
fontFamilyItalic: "SFMono-MediumItalic, ".concat(codeFontFamily()),
|
|
20
20
|
backgroundColor: themed({
|
|
21
|
-
light: colors.N20,
|
|
22
|
-
dark: colors.DN50
|
|
21
|
+
light: "var(--ds-background-neutral, ".concat(colors.N20, ")"),
|
|
22
|
+
dark: "var(--ds-background-neutral, ".concat(colors.DN50, ")")
|
|
23
23
|
})({
|
|
24
24
|
theme: theme
|
|
25
25
|
}),
|
|
26
26
|
textColor: themed({
|
|
27
|
-
light: colors.N800,
|
|
28
|
-
dark: colors.DN800
|
|
27
|
+
light: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
28
|
+
dark: "var(--ds-text, ".concat(colors.DN800, ")")
|
|
29
29
|
})({
|
|
30
30
|
theme: theme
|
|
31
31
|
}),
|
|
32
32
|
lineNumberColor: themed({
|
|
33
|
-
light: colors.N400,
|
|
34
|
-
dark: colors.DN400
|
|
33
|
+
light: "var(--ds-text-subtlest, ".concat(colors.N400, ")"),
|
|
34
|
+
dark: "var(--ds-text-subtlest, ".concat(colors.DN400, ")")
|
|
35
35
|
})({
|
|
36
36
|
theme: theme
|
|
37
37
|
}),
|
|
38
38
|
lineNumberBgColor: themed({
|
|
39
|
-
light: colors.N30,
|
|
40
|
-
dark: colors.DN20
|
|
39
|
+
light: "var(--ds-background-neutral, ".concat(colors.N30, ")"),
|
|
40
|
+
dark: "var(--ds-background-neutral, ".concat(colors.DN20, ")")
|
|
41
41
|
})({
|
|
42
42
|
theme: theme
|
|
43
43
|
})
|
|
@@ -52,180 +52,180 @@ export var getColorPalette = memoizeOne(function (theme) {
|
|
|
52
52
|
};
|
|
53
53
|
return {
|
|
54
54
|
highlightedLineBgColor: themed({
|
|
55
|
-
light: colors.N30,
|
|
56
|
-
dark: PLUS20
|
|
55
|
+
light: "var(--ds-background-neutral, ".concat(colors.N30, ")"),
|
|
56
|
+
dark: "var(--ds-background-neutral, ".concat(PLUS20, ")")
|
|
57
57
|
})(akTheme),
|
|
58
58
|
highlightedLineBorderColor: themed({
|
|
59
|
-
light: colors.B200,
|
|
60
|
-
dark: colors.B100
|
|
59
|
+
light: "var(--ds-border-focused, ".concat(colors.B200, ")"),
|
|
60
|
+
dark: "var(--ds-border-focused, ".concat(colors.B100, ")")
|
|
61
61
|
})(akTheme),
|
|
62
62
|
substringColor: themed({
|
|
63
|
-
light: colors.N400,
|
|
64
|
-
dark: colors.DN400
|
|
63
|
+
light: "var(--ds-text-subtlest, ".concat(colors.N400, ")"),
|
|
64
|
+
dark: "var(--ds-text-subtlest, ".concat(colors.DN400, ")")
|
|
65
65
|
})(akTheme),
|
|
66
66
|
keywordColor: themed({
|
|
67
|
-
light: colors.B400,
|
|
68
|
-
dark: colors.B75
|
|
67
|
+
light: "var(--ds-text-accent-blue, ".concat(colors.B400, ")"),
|
|
68
|
+
dark: "var(--ds-text-accent-blue, ".concat(colors.B75, ")")
|
|
69
69
|
})(akTheme),
|
|
70
70
|
attributeColor: themed({
|
|
71
|
-
light: T800,
|
|
72
|
-
dark: colors.T200
|
|
71
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
72
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T200, ")")
|
|
73
73
|
})(akTheme),
|
|
74
74
|
selectorTagColor: themed({
|
|
75
|
-
light: colors.B400,
|
|
76
|
-
dark: colors.B75
|
|
75
|
+
light: "var(--ds-text-accent-blue, ".concat(colors.B400, ")"),
|
|
76
|
+
dark: "var(--ds-text-accent-blue, ".concat(colors.B75, ")")
|
|
77
77
|
})(akTheme),
|
|
78
78
|
docTagColor: themed({
|
|
79
|
-
light: Y1100,
|
|
80
|
-
dark: colors.Y300
|
|
79
|
+
light: "var(--ds-text-accent-yellow, ".concat(Y1100, ")"),
|
|
80
|
+
dark: "var(--ds-text-accent-yellow, ".concat(colors.Y300, ")")
|
|
81
81
|
})(akTheme),
|
|
82
82
|
nameColor: themed({
|
|
83
|
-
light: colors.B400,
|
|
84
|
-
dark: colors.B75
|
|
83
|
+
light: "var(--ds-text-accent-blue, ".concat(colors.B400, ")"),
|
|
84
|
+
dark: "var(--ds-text-accent-blue, ".concat(colors.B75, ")")
|
|
85
85
|
})(akTheme),
|
|
86
86
|
builtInColor: themed({
|
|
87
|
-
light: colors.B400,
|
|
88
|
-
dark: colors.B75
|
|
87
|
+
light: "var(--ds-text-accent-blue, ".concat(colors.B400, ")"),
|
|
88
|
+
dark: "var(--ds-text-accent-blue, ".concat(colors.B75, ")")
|
|
89
89
|
})(akTheme),
|
|
90
90
|
literalColor: themed({
|
|
91
|
-
light: colors.B400,
|
|
92
|
-
dark: colors.B75
|
|
91
|
+
light: "var(--ds-text-accent-blue, ".concat(colors.B400, ")"),
|
|
92
|
+
dark: "var(--ds-text-accent-blue, ".concat(colors.B75, ")")
|
|
93
93
|
})(akTheme),
|
|
94
94
|
bulletColor: themed({
|
|
95
|
-
light: colors.B400,
|
|
96
|
-
dark: colors.B75
|
|
95
|
+
light: "var(--ds-text-accent-blue, ".concat(colors.B400, ")"),
|
|
96
|
+
dark: "var(--ds-text-accent-blue, ".concat(colors.B75, ")")
|
|
97
97
|
})(akTheme),
|
|
98
98
|
codeColor: themed({
|
|
99
|
-
light: colors.B400,
|
|
100
|
-
dark: colors.B75
|
|
99
|
+
light: "var(--ds-text-accent-blue, ".concat(colors.B400, ")"),
|
|
100
|
+
dark: "var(--ds-text-accent-blue, ".concat(colors.B75, ")")
|
|
101
101
|
})(akTheme),
|
|
102
102
|
regexpColor: themed({
|
|
103
|
-
light: T800,
|
|
104
|
-
dark: colors.T200
|
|
103
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
104
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T200, ")")
|
|
105
105
|
})(akTheme),
|
|
106
106
|
symbolColor: themed({
|
|
107
|
-
light: T800,
|
|
108
|
-
dark: colors.T200
|
|
107
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
108
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T200, ")")
|
|
109
109
|
})(akTheme),
|
|
110
110
|
variableColor: themed({
|
|
111
|
-
light: T800,
|
|
112
|
-
dark: colors.T200
|
|
111
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
112
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T200, ")")
|
|
113
113
|
})(akTheme),
|
|
114
114
|
templateVariableColor: themed({
|
|
115
|
-
light: T800,
|
|
116
|
-
dark: colors.T200
|
|
115
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
116
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T200, ")")
|
|
117
117
|
})(akTheme),
|
|
118
118
|
linkColor: themed({
|
|
119
|
-
light: colors.P300,
|
|
120
|
-
dark: colors.P75
|
|
119
|
+
light: "var(--ds-text-accent-purple, ".concat(colors.P300, ")"),
|
|
120
|
+
dark: "var(--ds-text-accent-purple, ".concat(colors.P75, ")")
|
|
121
121
|
})(akTheme),
|
|
122
122
|
selectorAttributeColor: themed({
|
|
123
|
-
light: T800,
|
|
124
|
-
dark: colors.T200
|
|
123
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
124
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T200, ")")
|
|
125
125
|
})(akTheme),
|
|
126
126
|
selectorPseudoColor: themed({
|
|
127
|
-
light: T800,
|
|
128
|
-
dark: colors.T200
|
|
127
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
128
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T200, ")")
|
|
129
129
|
})(akTheme),
|
|
130
130
|
typeColor: themed({
|
|
131
|
-
light: T800,
|
|
132
|
-
dark: colors.T100
|
|
131
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
132
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T100, ")")
|
|
133
133
|
})(akTheme),
|
|
134
134
|
stringColor: themed({
|
|
135
|
-
light: colors.G500,
|
|
136
|
-
dark: colors.G200
|
|
135
|
+
light: "var(--ds-text-accent-green, ".concat(colors.G500, ")"),
|
|
136
|
+
dark: "var(--ds-text-accent-green, ".concat(colors.G200, ")")
|
|
137
137
|
})(akTheme),
|
|
138
138
|
selectorIdColor: themed({
|
|
139
|
-
light: T800,
|
|
140
|
-
dark: colors.T100
|
|
139
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
140
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T100, ")")
|
|
141
141
|
})(akTheme),
|
|
142
142
|
selectorClassColor: themed({
|
|
143
|
-
light: T800,
|
|
144
|
-
dark: colors.T100
|
|
143
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
144
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T100, ")")
|
|
145
145
|
})(akTheme),
|
|
146
146
|
quoteColor: themed({
|
|
147
|
-
light: T800,
|
|
148
|
-
dark: colors.T100
|
|
147
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
148
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T100, ")")
|
|
149
149
|
})(akTheme),
|
|
150
150
|
templateTagColor: themed({
|
|
151
|
-
light: T800,
|
|
152
|
-
dark: colors.T100
|
|
151
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
152
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T100, ")")
|
|
153
153
|
})(akTheme),
|
|
154
154
|
titleColor: themed({
|
|
155
|
-
light: colors.P300,
|
|
156
|
-
dark: colors.P75
|
|
155
|
+
light: "var(--ds-text-accent-purple, ".concat(colors.P300, ")"),
|
|
156
|
+
dark: "var(--ds-text-accent-purple, ".concat(colors.P75, ")")
|
|
157
157
|
})(akTheme),
|
|
158
158
|
sectionColor: themed({
|
|
159
|
-
light: colors.P300,
|
|
160
|
-
dark: colors.P75
|
|
159
|
+
light: "var(--ds-text-accent-purple, ".concat(colors.P300, ")"),
|
|
160
|
+
dark: "var(--ds-text-accent-purple, ".concat(colors.P75, ")")
|
|
161
161
|
})(akTheme),
|
|
162
162
|
commentColor: themed({
|
|
163
|
-
light: colors.N400,
|
|
164
|
-
dark: colors.DN400
|
|
163
|
+
light: "var(--ds-text-subtlest, ".concat(colors.N400, ")"),
|
|
164
|
+
dark: "var(--ds-text-subtlest, ".concat(colors.DN400, ")")
|
|
165
165
|
})(akTheme),
|
|
166
166
|
metaKeywordColor: themed({
|
|
167
|
-
light: colors.G500,
|
|
168
|
-
dark: colors.G200
|
|
167
|
+
light: "var(--ds-text-accent-green, ".concat(colors.G500, ")"),
|
|
168
|
+
dark: "var(--ds-text-accent-green, ".concat(colors.G200, ")")
|
|
169
169
|
})(akTheme),
|
|
170
170
|
metaColor: themed({
|
|
171
|
-
light: colors.N400,
|
|
172
|
-
dark: colors.DN400
|
|
171
|
+
light: "var(--ds-text-subtlest, ".concat(colors.N400, ")"),
|
|
172
|
+
dark: "var(--ds-text-subtlest, ".concat(colors.DN400, ")")
|
|
173
173
|
})(akTheme),
|
|
174
174
|
functionColor: themed({
|
|
175
|
-
light: colors.N800,
|
|
176
|
-
dark: colors.DN800
|
|
175
|
+
light: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
176
|
+
dark: "var(--ds-text, ".concat(colors.DN800, ")")
|
|
177
177
|
})(akTheme),
|
|
178
178
|
numberColor: themed({
|
|
179
|
-
light: colors.B400,
|
|
180
|
-
dark: colors.B75
|
|
179
|
+
light: "var(--ds-text-accent-blue, ".concat(colors.B400, ")"),
|
|
180
|
+
dark: "var(--ds-text-accent-blue, ".concat(colors.B75, ")")
|
|
181
181
|
})(akTheme),
|
|
182
182
|
prologColor: themed({
|
|
183
|
-
light: colors.B400,
|
|
184
|
-
dark: colors.B75
|
|
183
|
+
light: "var(--ds-text-accent-blue, ".concat(colors.B400, ")"),
|
|
184
|
+
dark: "var(--ds-text-accent-blue, ".concat(colors.B75, ")")
|
|
185
185
|
})(akTheme),
|
|
186
186
|
cdataColor: themed({
|
|
187
|
-
light: colors.N400,
|
|
188
|
-
dark: colors.B75
|
|
187
|
+
light: "var(--ds-text-subtlest, ".concat(colors.N400, ")"),
|
|
188
|
+
dark: "var(--ds-text-subtlest, ".concat(colors.B75, ")")
|
|
189
189
|
})(akTheme),
|
|
190
190
|
punctuationColor: themed({
|
|
191
|
-
light: colors.N800,
|
|
192
|
-
dark: colors.DN800
|
|
191
|
+
light: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
192
|
+
dark: "var(--ds-text, ".concat(colors.DN800, ")")
|
|
193
193
|
})(akTheme),
|
|
194
194
|
propertyColor: themed({
|
|
195
|
-
light: colors.P300,
|
|
196
|
-
dark: colors.P75
|
|
195
|
+
light: "var(--ds-text-accent-purple, ".concat(colors.P300, ")"),
|
|
196
|
+
dark: "var(--ds-text-accent-purple, ".concat(colors.P75, ")")
|
|
197
197
|
})(akTheme),
|
|
198
198
|
constantColor: themed({
|
|
199
|
-
light: T800,
|
|
200
|
-
dark: colors.T100
|
|
199
|
+
light: "var(--ds-text-accent-teal, ".concat(T800, ")"),
|
|
200
|
+
dark: "var(--ds-text-accent-teal, ".concat(colors.T100, ")")
|
|
201
201
|
})(akTheme),
|
|
202
202
|
booleanColor: themed({
|
|
203
|
-
light: colors.
|
|
204
|
-
dark: colors.B75
|
|
203
|
+
light: "var(--ds-text-accent-blue, ".concat(colors.B400, ")"),
|
|
204
|
+
dark: "var(--ds-text-accent-blue, ".concat(colors.B75, ")")
|
|
205
205
|
})(akTheme),
|
|
206
206
|
charColor: themed({
|
|
207
|
-
light: colors.N800,
|
|
208
|
-
dark: colors.DN800
|
|
207
|
+
light: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
208
|
+
dark: "var(--ds-text, ".concat(colors.DN800, ")")
|
|
209
209
|
})(akTheme),
|
|
210
210
|
insertedColor: themed({
|
|
211
|
-
light: colors.G500,
|
|
212
|
-
dark: colors.B75
|
|
211
|
+
light: "var(--ds-text-accent-green, ".concat(colors.G500, ")"),
|
|
212
|
+
dark: "var(--ds-text-accent-green, ".concat(colors.B75, ")")
|
|
213
213
|
})(akTheme),
|
|
214
214
|
deletedColor: themed({
|
|
215
|
-
light: colors.R500,
|
|
216
|
-
dark: colors.B75
|
|
215
|
+
light: "var(--ds-text-accent-red, ".concat(colors.R500, ")"),
|
|
216
|
+
dark: "var(--ds-text-accent-red, ".concat(colors.B75, ")")
|
|
217
217
|
})(akTheme),
|
|
218
218
|
operatorColor: themed({
|
|
219
|
-
light: colors.N800,
|
|
220
|
-
dark: colors.B75
|
|
219
|
+
light: "var(--ds-text, ".concat(colors.N800, ")"),
|
|
220
|
+
dark: "var(--ds-text, ".concat(colors.B75, ")")
|
|
221
221
|
})(akTheme),
|
|
222
222
|
atruleColor: themed({
|
|
223
|
-
light: colors.G500,
|
|
224
|
-
dark: colors.G200
|
|
223
|
+
light: "var(--ds-text-accent-green, ".concat(colors.G500, ")"),
|
|
224
|
+
dark: "var(--ds-text-accent-green, ".concat(colors.G200, ")")
|
|
225
225
|
})(akTheme),
|
|
226
226
|
importantColor: themed({
|
|
227
|
-
light: Y1100,
|
|
228
|
-
dark: colors.Y300
|
|
227
|
+
light: "var(--ds-text-accent-yellow, ".concat(Y1100, ")"),
|
|
228
|
+
dark: "var(--ds-text-accent-yellow, ".concat(colors.Y300, ")")
|
|
229
229
|
})(akTheme)
|
|
230
230
|
};
|
|
231
231
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
|
|
3
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
3
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
4
4
|
|
|
5
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
5
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6
6
|
|
|
7
7
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
8
8
|
import { CODE_FONT_SIZE, CODE_LINE_HEIGHT, HIGHLIGHT_BORDER_WIDTH, LINE_NUMBER_GUTTER, SPACING, VAR_CODE_BG_COLOR, VAR_CODE_LINE_NUMBER_BG_COLOR } from './constants';
|
|
@@ -233,6 +233,7 @@ export var getCodeBlockStyles = function getCodeBlockStyles(theme) {
|
|
|
233
233
|
},
|
|
234
234
|
'& [data-ds--code--row--highlight]': {
|
|
235
235
|
background: "".concat(theme.highlightedLineBgColor),
|
|
236
|
+
// eslint-disable-next-line @atlaskit/design-system/use-visually-hidden
|
|
236
237
|
'&::before, &::after': {
|
|
237
238
|
clipPath: 'inset(100%)',
|
|
238
239
|
clip: 'rect(1px, 1px, 1px, 1px)',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
3
|
|
|
4
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
4
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
5
5
|
|
|
6
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7
7
|
|
|
8
8
|
// @ts-nocheck
|
|
9
9
|
import React from 'react';
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/code",
|
|
3
|
-
"version": "14.3.
|
|
3
|
+
"version": "14.3.4",
|
|
4
4
|
"description": "Code highlights short strings of code snippets inline with body text.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -16,7 +16,6 @@
|
|
|
16
16
|
"atlaskit:src": "src/index.ts",
|
|
17
17
|
"atlassian": {
|
|
18
18
|
"team": "Design System Team",
|
|
19
|
-
"inPublicMirror": true,
|
|
20
19
|
"releaseModel": "scheduled",
|
|
21
20
|
"website": {
|
|
22
21
|
"name": "Code"
|
|
@@ -27,7 +26,8 @@
|
|
|
27
26
|
},
|
|
28
27
|
"dependencies": {
|
|
29
28
|
"@atlaskit/codemod-utils": "^3.4.0",
|
|
30
|
-
"@atlaskit/theme": "^12.
|
|
29
|
+
"@atlaskit/theme": "^12.1.0",
|
|
30
|
+
"@atlaskit/tokens": "^0.8.0",
|
|
31
31
|
"@atlaskit/tooltip": "^17.5.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0",
|
|
33
33
|
"@emotion/core": "^10.0.9",
|
|
@@ -38,8 +38,7 @@
|
|
|
38
38
|
"react": "^16.8.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@atlaskit/
|
|
42
|
-
"@atlaskit/button": "^16.0.0",
|
|
41
|
+
"@atlaskit/button": "^16.2.0",
|
|
43
42
|
"@atlaskit/docs": "^9.0.0",
|
|
44
43
|
"@atlaskit/section-message": "^6.0.0",
|
|
45
44
|
"@atlaskit/ssr": "*",
|
|
@@ -80,10 +79,12 @@
|
|
|
80
79
|
"analytics-next"
|
|
81
80
|
],
|
|
82
81
|
"theming": [
|
|
83
|
-
"react-context"
|
|
82
|
+
"react-context",
|
|
83
|
+
"tokens"
|
|
84
84
|
],
|
|
85
|
-
"deprecation":
|
|
86
|
-
|
|
85
|
+
"deprecation": "no-deprecated-imports",
|
|
86
|
+
"styling": [
|
|
87
|
+
"emotion"
|
|
87
88
|
]
|
|
88
89
|
}
|
|
89
90
|
},
|