@atlaskit/code 14.6.6 → 14.6.8
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 +61 -48
- package/__perf__/source-code-examples/100-line-example.tsx +1 -1
- package/codemods/utils/helpers.tsx +4 -2
- package/dist/cjs/internal/hooks/use-highlight.js +2 -2
- package/dist/cjs/internal/theme/get-theme.js +2 -2
- package/dist/cjs/internal/theme/styles.js +2 -2
- package/dist/cjs/syntax-highlighter/lib/highlight.js +2 -2
- package/dist/cjs/syntax-highlighter/lib/process/create-line-element.js +2 -2
- package/dist/cjs/syntax-highlighter/lib/react-renderer/create-element.js +2 -2
- package/dist/esm/internal/hooks/use-highlight.js +2 -2
- package/dist/esm/internal/theme/get-theme.js +2 -2
- package/dist/esm/internal/theme/styles.js +2 -2
- package/dist/esm/syntax-highlighter/lib/highlight.js +2 -2
- package/dist/esm/syntax-highlighter/lib/process/create-line-element.js +2 -2
- package/dist/esm/syntax-highlighter/lib/react-renderer/create-element.js +2 -2
- package/dist/types/code.d.ts +1 -1
- package/dist/types-ts4.5/code.d.ts +1 -1
- package/package.json +3 -3
- package/report.api.md +1 -0
- package/tmp/api-report-tmp.d.ts +376 -0
- package/dist/cjs/version.json +0 -5
- package/dist/es2019/version.json +0 -5
- package/dist/esm/version.json +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,46 +1,59 @@
|
|
|
1
1
|
# @atlaskit/code
|
|
2
2
|
|
|
3
|
+
## 14.6.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#40914](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/40914) [`ffa68309c76`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ffa68309c76) - update children variable to have type definition
|
|
8
|
+
|
|
9
|
+
## 14.6.7
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 14.6.6
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
6
19
|
|
|
7
|
-
- [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
20
|
+
- [#36754](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/36754) [`4ae083a7e66`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4ae083a7e66) - Use `@af/accessibility-testing` for default jest-axe config and jest-axe import in accessibility testing.
|
|
8
21
|
|
|
9
22
|
## 14.6.5
|
|
10
23
|
|
|
11
24
|
### Patch Changes
|
|
12
25
|
|
|
13
|
-
- [`59b808d6a46`](https://bitbucket.org/atlassian/atlassian-frontend/commits/59b808d6a46) - [ux] Improves the accessibility of the bidirectional character warnings.
|
|
26
|
+
- [#34360](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34360) [`59b808d6a46`](https://bitbucket.org/atlassian/atlassian-frontend/commits/59b808d6a46) - [ux] Improves the accessibility of the bidirectional character warnings.
|
|
14
27
|
|
|
15
28
|
## 14.6.4
|
|
16
29
|
|
|
17
30
|
### Patch Changes
|
|
18
31
|
|
|
19
|
-
- [`e7ea6832ad2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7ea6832ad2) - Bans the use of React.FC/React.FunctionComponent type in ADS components as part of the React 18 migration work. The change is internal only and should not introduce any changes for the component consumers.
|
|
32
|
+
- [#33652](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33652) [`e7ea6832ad2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e7ea6832ad2) - Bans the use of React.FC/React.FunctionComponent type in ADS components as part of the React 18 migration work. The change is internal only and should not introduce any changes for the component consumers.
|
|
20
33
|
|
|
21
34
|
## 14.6.3
|
|
22
35
|
|
|
23
36
|
### Patch Changes
|
|
24
37
|
|
|
25
|
-
- [`49b08bfdf5f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49b08bfdf5f) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
38
|
+
- [#34051](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34051) [`49b08bfdf5f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/49b08bfdf5f) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
26
39
|
|
|
27
40
|
## 14.6.2
|
|
28
41
|
|
|
29
42
|
### Patch Changes
|
|
30
43
|
|
|
31
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
44
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
32
45
|
|
|
33
46
|
## 14.6.1
|
|
34
47
|
|
|
35
48
|
### Patch Changes
|
|
36
49
|
|
|
37
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
50
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
38
51
|
|
|
39
52
|
## 14.6.0
|
|
40
53
|
|
|
41
54
|
### Minor Changes
|
|
42
55
|
|
|
43
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
56
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
44
57
|
|
|
45
58
|
### Patch Changes
|
|
46
59
|
|
|
@@ -50,32 +63,32 @@
|
|
|
50
63
|
|
|
51
64
|
### Patch Changes
|
|
52
65
|
|
|
53
|
-
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
66
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
54
67
|
|
|
55
68
|
## 14.5.3
|
|
56
69
|
|
|
57
70
|
### Patch Changes
|
|
58
71
|
|
|
59
|
-
- [`74750bef5c4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74750bef5c4) - Fixes some bugs with the long line wrapping and syntax-highlighting changes that were released in v14.5.0.
|
|
72
|
+
- [#31638](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31638) [`74750bef5c4`](https://bitbucket.org/atlassian/atlassian-frontend/commits/74750bef5c4) - Fixes some bugs with the long line wrapping and syntax-highlighting changes that were released in v14.5.0.
|
|
60
73
|
|
|
61
74
|
## 14.5.2
|
|
62
75
|
|
|
63
76
|
### Patch Changes
|
|
64
77
|
|
|
65
|
-
- [`3ca97be0c06`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ca97be0c06) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
78
|
+
- [#31378](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31378) [`3ca97be0c06`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ca97be0c06) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
66
79
|
|
|
67
80
|
## 14.5.1
|
|
68
81
|
|
|
69
82
|
### Patch Changes
|
|
70
83
|
|
|
71
|
-
- [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades component types to support React 18.
|
|
84
|
+
- [#31206](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31206) [`261420360ec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/261420360ec) - Upgrades component types to support React 18.
|
|
72
85
|
- Updated dependencies
|
|
73
86
|
|
|
74
87
|
## 14.5.0
|
|
75
88
|
|
|
76
89
|
### Minor Changes
|
|
77
90
|
|
|
78
|
-
- [`f5ca132a05e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f5ca132a05e) - [ux] CodeBlock has had some significant under-the-hood changes in this version. While technically it is a minor update as all API changes are additive and backwards-compatible, this is a heads up that there are some small visual changes that may require visual regression snapshots to be updated.
|
|
91
|
+
- [#30248](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/30248) [`f5ca132a05e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f5ca132a05e) - [ux] CodeBlock has had some significant under-the-hood changes in this version. While technically it is a minor update as all API changes are additive and backwards-compatible, this is a heads up that there are some small visual changes that may require visual regression snapshots to be updated.
|
|
79
92
|
|
|
80
93
|
- Adds a new `shouldWrapLongLines` prop that allows you to wrap long lines of code over multiple lines, instead of always forcing the container to scroll horizontally.
|
|
81
94
|
|
|
@@ -99,13 +112,13 @@
|
|
|
99
112
|
|
|
100
113
|
### Patch Changes
|
|
101
114
|
|
|
102
|
-
- [`18aeca8c199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18aeca8c199) - Internal change to update token references. There is no expected behaviour or visual change.
|
|
115
|
+
- [#29390](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/29390) [`18aeca8c199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/18aeca8c199) - Internal change to update token references. There is no expected behaviour or visual change.
|
|
103
116
|
|
|
104
117
|
## 14.4.6
|
|
105
118
|
|
|
106
119
|
### Patch Changes
|
|
107
120
|
|
|
108
|
-
- [`b0f6dd0bc35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b0f6dd0bc35) - Updated to use typography tokens. There is no expected behaviour or visual change.
|
|
121
|
+
- [#28064](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28064) [`b0f6dd0bc35`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b0f6dd0bc35) - Updated to use typography tokens. There is no expected behaviour or visual change.
|
|
109
122
|
|
|
110
123
|
## 14.4.5
|
|
111
124
|
|
|
@@ -123,7 +136,7 @@
|
|
|
123
136
|
|
|
124
137
|
### Patch Changes
|
|
125
138
|
|
|
126
|
-
- [`f1765efdca6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f1765efdca6) - [ux] Fix bug that caused misalignment of Code Block content which contain a mixture of spaces and tabs
|
|
139
|
+
- [#26712](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26712) [`f1765efdca6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f1765efdca6) - [ux] Fix bug that caused misalignment of Code Block content which contain a mixture of spaces and tabs
|
|
127
140
|
|
|
128
141
|
## 14.4.2
|
|
129
142
|
|
|
@@ -135,13 +148,13 @@
|
|
|
135
148
|
|
|
136
149
|
### Patch Changes
|
|
137
150
|
|
|
138
|
-
- [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
|
|
151
|
+
- [#26488](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26488) [`bc989043572`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bc989043572) - Internal changes to apply spacing tokens. This should be a no-op change.
|
|
139
152
|
|
|
140
153
|
## 14.4.0
|
|
141
154
|
|
|
142
155
|
### Minor Changes
|
|
143
156
|
|
|
144
|
-
- [`d6bf753bb43`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6bf753bb43) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
157
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710) [`d6bf753bb43`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d6bf753bb43) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
145
158
|
|
|
146
159
|
### Patch Changes
|
|
147
160
|
|
|
@@ -151,19 +164,19 @@
|
|
|
151
164
|
|
|
152
165
|
### Patch Changes
|
|
153
166
|
|
|
154
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
167
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
155
168
|
|
|
156
169
|
## 14.3.9
|
|
157
170
|
|
|
158
171
|
### Patch Changes
|
|
159
172
|
|
|
160
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
173
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
161
174
|
|
|
162
175
|
## 14.3.8
|
|
163
176
|
|
|
164
177
|
### Patch Changes
|
|
165
178
|
|
|
166
|
-
- [`8202e37941b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8202e37941b) - Internal code change turning on new linting rules.
|
|
179
|
+
- [#23381](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/23381) [`8202e37941b`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8202e37941b) - Internal code change turning on new linting rules.
|
|
167
180
|
|
|
168
181
|
## 14.3.7
|
|
169
182
|
|
|
@@ -175,13 +188,13 @@
|
|
|
175
188
|
|
|
176
189
|
### Patch Changes
|
|
177
190
|
|
|
178
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
191
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
179
192
|
|
|
180
193
|
## 14.3.5
|
|
181
194
|
|
|
182
195
|
### Patch Changes
|
|
183
196
|
|
|
184
|
-
- [`46824ff1acd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/46824ff1acd) - [ux] `<CodeBlock />`s with no content no longer vertically collapse, and maintain their intended minimum height
|
|
197
|
+
- [#20033](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20033) [`46824ff1acd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/46824ff1acd) - [ux] `<CodeBlock />`s with no content no longer vertically collapse, and maintain their intended minimum height
|
|
185
198
|
- Updated dependencies
|
|
186
199
|
|
|
187
200
|
## 14.3.4
|
|
@@ -194,7 +207,7 @@
|
|
|
194
207
|
|
|
195
208
|
### Patch Changes
|
|
196
209
|
|
|
197
|
-
- [`a1a89347baa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a1a89347baa) - [ux] Instrumented `@atlaskit/code` with the new theming package, `@atlaskit/tokens`.
|
|
210
|
+
- [#19019](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19019) [`a1a89347baa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/a1a89347baa) - [ux] Instrumented `@atlaskit/code` with the new theming package, `@atlaskit/tokens`.
|
|
198
211
|
|
|
199
212
|
New tokens will be visible only in applications configured to use the new Tokens API (currently in alpha).
|
|
200
213
|
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark mode users should expect no visual or breaking changes.
|
|
@@ -205,31 +218,31 @@
|
|
|
205
218
|
|
|
206
219
|
### Patch Changes
|
|
207
220
|
|
|
208
|
-
- [`b5226ba2c15`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b5226ba2c15) - Replace `bolt` with `yarn` for rendered example changeset commands
|
|
221
|
+
- [#18356](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/18356) [`b5226ba2c15`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b5226ba2c15) - Replace `bolt` with `yarn` for rendered example changeset commands
|
|
209
222
|
|
|
210
223
|
## 14.3.1
|
|
211
224
|
|
|
212
225
|
### Patch Changes
|
|
213
226
|
|
|
214
|
-
- [`7a34eeea327`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7a34eeea327) - Bump prismjs due to vulnerability
|
|
227
|
+
- [#16531](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16531) [`7a34eeea327`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7a34eeea327) - Bump prismjs due to vulnerability
|
|
215
228
|
|
|
216
229
|
## 14.3.0
|
|
217
230
|
|
|
218
231
|
### Minor Changes
|
|
219
232
|
|
|
220
|
-
- [`db3477abb18`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db3477abb18) - [ux] ED-13938 disabled code-bidi warning tooltip for mobile, reworked TextWrapper to fix bidi mitigation, and fixed issue where bidi warnings were not presented when renderer used with an annotation provider with draftMode set to true
|
|
233
|
+
- [#16168](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16168) [`db3477abb18`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db3477abb18) - [ux] ED-13938 disabled code-bidi warning tooltip for mobile, reworked TextWrapper to fix bidi mitigation, and fixed issue where bidi warnings were not presented when renderer used with an annotation provider with draftMode set to true
|
|
221
234
|
|
|
222
235
|
## 14.2.0
|
|
223
236
|
|
|
224
237
|
### Minor Changes
|
|
225
238
|
|
|
226
|
-
- [`c80c71b537d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c80c71b537d) - [ux] ED-13860 add bidi warning decorations to code components
|
|
239
|
+
- [#16006](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16006) [`c80c71b537d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c80c71b537d) - [ux] ED-13860 add bidi warning decorations to code components
|
|
227
240
|
|
|
228
241
|
## 14.1.5
|
|
229
242
|
|
|
230
243
|
### Patch Changes
|
|
231
244
|
|
|
232
|
-
- [`b85e7ce12cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85e7ce12cd) - Internal upgrade of memoize-one to 6.0.0
|
|
245
|
+
- [#15694](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15694) [`b85e7ce12cd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/b85e7ce12cd) - Internal upgrade of memoize-one to 6.0.0
|
|
233
246
|
|
|
234
247
|
## 14.1.4
|
|
235
248
|
|
|
@@ -241,39 +254,39 @@
|
|
|
241
254
|
|
|
242
255
|
### Patch Changes
|
|
243
256
|
|
|
244
|
-
- [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
257
|
+
- [#12880](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12880) [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
245
258
|
|
|
246
259
|
## 14.1.2
|
|
247
260
|
|
|
248
261
|
### Patch Changes
|
|
249
262
|
|
|
250
|
-
- [`d827fec15b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d827fec15b2) - Fixes a regression in ^14.0.0 that meant the function `getCodeStyles` didn't work correctly with interpolations using the `styled-components` theming.
|
|
263
|
+
- [#12810](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12810) [`d827fec15b2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d827fec15b2) - Fixes a regression in ^14.0.0 that meant the function `getCodeStyles` didn't work correctly with interpolations using the `styled-components` theming.
|
|
251
264
|
|
|
252
265
|
## 14.1.1
|
|
253
266
|
|
|
254
267
|
### Patch Changes
|
|
255
268
|
|
|
256
|
-
- [`cd488f9d370`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cd488f9d370) - Bumps prismjs to address a security vulnerability in the underlying lib.
|
|
269
|
+
- [#12168](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12168) [`cd488f9d370`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cd488f9d370) - Bumps prismjs to address a security vulnerability in the underlying lib.
|
|
257
270
|
|
|
258
271
|
## 14.1.0
|
|
259
272
|
|
|
260
273
|
### Minor Changes
|
|
261
274
|
|
|
262
|
-
- [`aef12f51c46`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aef12f51c46) - Add an entry point for constants to expose SUPPORTED_LANGUAGES and export the type of SUPPORTED_LANGUAGES.
|
|
275
|
+
- [#11113](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11113) [`aef12f51c46`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aef12f51c46) - Add an entry point for constants to expose SUPPORTED_LANGUAGES and export the type of SUPPORTED_LANGUAGES.
|
|
263
276
|
Splunk SPl has also been added as a supported language.
|
|
264
277
|
|
|
265
278
|
## 14.0.1
|
|
266
279
|
|
|
267
280
|
### Patch Changes
|
|
268
281
|
|
|
269
|
-
- [`596f1eb2fca`](https://bitbucket.org/atlassian/atlassian-frontend/commits/596f1eb2fca) - [ux] Line height property remvoved from inline code. This was a bug as the line height was being under calculated relative to the code's font size. It now inherits correctly.
|
|
282
|
+
- [#10569](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10569) [`596f1eb2fca`](https://bitbucket.org/atlassian/atlassian-frontend/commits/596f1eb2fca) - [ux] Line height property remvoved from inline code. This was a bug as the line height was being under calculated relative to the code's font size. It now inherits correctly.
|
|
270
283
|
- Updated dependencies
|
|
271
284
|
|
|
272
285
|
## 14.0.0
|
|
273
286
|
|
|
274
287
|
### Major Changes
|
|
275
288
|
|
|
276
|
-
- [`e8f66c36dd7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e8f66c36dd7) - **BREAKING CHANGES**
|
|
289
|
+
- [#10230](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/10230) [`e8f66c36dd7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e8f66c36dd7) - **BREAKING CHANGES**
|
|
277
290
|
|
|
278
291
|
This version includes several breaking changes to improve performance of the `@atlaskit/code` package.
|
|
279
292
|
|
|
@@ -335,26 +348,26 @@
|
|
|
335
348
|
|
|
336
349
|
### Patch Changes
|
|
337
350
|
|
|
338
|
-
- [`900819ca759`](https://bitbucket.org/atlassian/atlassian-frontend/commits/900819ca759) - Update to VR test suite, to make diffs easier to reason about.
|
|
351
|
+
- [#9756](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9756) [`900819ca759`](https://bitbucket.org/atlassian/atlassian-frontend/commits/900819ca759) - Update to VR test suite, to make diffs easier to reason about.
|
|
339
352
|
- Updated dependencies
|
|
340
353
|
|
|
341
354
|
## 13.2.2
|
|
342
355
|
|
|
343
356
|
### Patch Changes
|
|
344
357
|
|
|
345
|
-
- [`c9da1eecd2a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c9da1eecd2a) - Internal changes moving class components to functional components, added updated types for react-syntax-highlighter
|
|
358
|
+
- [#9510](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/9510) [`c9da1eecd2a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c9da1eecd2a) - Internal changes moving class components to functional components, added updated types for react-syntax-highlighter
|
|
346
359
|
|
|
347
360
|
## 13.2.1
|
|
348
361
|
|
|
349
362
|
### Patch Changes
|
|
350
363
|
|
|
351
|
-
- [`413cc46d307`](https://bitbucket.org/atlassian/atlassian-frontend/commits/413cc46d307) - [ux] Added colors for missing syntax keywords
|
|
364
|
+
- [#8057](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/8057) [`413cc46d307`](https://bitbucket.org/atlassian/atlassian-frontend/commits/413cc46d307) - [ux] Added colors for missing syntax keywords
|
|
352
365
|
|
|
353
366
|
## 13.2.0
|
|
354
367
|
|
|
355
368
|
### Minor Changes
|
|
356
369
|
|
|
357
|
-
- [`3c7be954dbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3c7be954dbd) - [ux] Line highlighting now meets WCAG 2.1 guidelines. Colors that were failing contrast have been updated and there is now a new visual cue consisting of a left border to the highlighted lines.
|
|
370
|
+
- [#7762](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7762) [`3c7be954dbd`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3c7be954dbd) - [ux] Line highlighting now meets WCAG 2.1 guidelines. Colors that were failing contrast have been updated and there is now a new visual cue consisting of a left border to the highlighted lines.
|
|
358
371
|
- [`23ef692842a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/23ef692842a) - [ux] `Code` and `CodeBlock` now use react-syntax-highlighter@^15 to highlight code. As part of this change
|
|
359
372
|
the fontSize for the line numbers and the code body have been normalised. This will be a breaking visual change for all consumers.
|
|
360
373
|
No action is required other than a callout that this will affect any existing visual regression tests.
|
|
@@ -383,19 +396,19 @@
|
|
|
383
396
|
|
|
384
397
|
### Patch Changes
|
|
385
398
|
|
|
386
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
399
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
387
400
|
|
|
388
401
|
## 13.1.0
|
|
389
402
|
|
|
390
403
|
### Minor Changes
|
|
391
404
|
|
|
392
|
-
- [`17162a77f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/17162a77f2) - types of Supported Languages for @atlaskit/code is maintained by the package itself. Useful for when one references Supported Languages, wanting to know what types of languages are supported by @atlaskit/code.
|
|
405
|
+
- [#5516](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5516) [`17162a77f2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/17162a77f2) - types of Supported Languages for @atlaskit/code is maintained by the package itself. Useful for when one references Supported Languages, wanting to know what types of languages are supported by @atlaskit/code.
|
|
393
406
|
|
|
394
407
|
## 13.0.3
|
|
395
408
|
|
|
396
409
|
### Patch Changes
|
|
397
410
|
|
|
398
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
411
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
399
412
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
400
413
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
401
414
|
|
|
@@ -409,13 +422,13 @@
|
|
|
409
422
|
|
|
410
423
|
### Patch Changes
|
|
411
424
|
|
|
412
|
-
- [`ade5203287`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ade5203287) - Fix codemod utilities being exposed through the codemod cli
|
|
425
|
+
- [#4346](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4346) [`ade5203287`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ade5203287) - Fix codemod utilities being exposed through the codemod cli
|
|
413
426
|
|
|
414
427
|
## 13.0.0
|
|
415
428
|
|
|
416
429
|
### Major Changes
|
|
417
430
|
|
|
418
|
-
- [`37f8133702`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37f8133702) - - Rename `AkCode` and `AkCodeBlock` exports to `Code` and `CodeBlock` respectively.
|
|
431
|
+
- [#4424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4424) [`37f8133702`](https://bitbucket.org/atlassian/atlassian-frontend/commits/37f8133702) - - Rename `AkCode` and `AkCodeBlock` exports to `Code` and `CodeBlock` respectively.
|
|
419
432
|
- Remove unnecessary props (`lineNumberContainerStyle`, `showLineNumbers` and `highlight`) from `Code`.
|
|
420
433
|
- Add codemods for above changes. Codemods can be found inside [codemods](./codemods) directory.
|
|
421
434
|
Please use [@atlaskit/codemod-cli](https://www.npmjs.com/package/@atlaskit/codemod-cli) for running the codemods according to version of your package.
|
|
@@ -431,7 +444,7 @@
|
|
|
431
444
|
|
|
432
445
|
### Patch Changes
|
|
433
446
|
|
|
434
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
447
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
435
448
|
|
|
436
449
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
437
450
|
to prevent duplicates of tslib being bundled.
|
|
@@ -440,19 +453,19 @@
|
|
|
440
453
|
|
|
441
454
|
### Patch Changes
|
|
442
455
|
|
|
443
|
-
- [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
|
|
456
|
+
- [#3293](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3293) [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
|
|
444
457
|
|
|
445
458
|
## 12.0.1
|
|
446
459
|
|
|
447
460
|
### Patch Changes
|
|
448
461
|
|
|
449
|
-
- [`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all the theme imports to be tree-shakable
|
|
462
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all the theme imports to be tree-shakable
|
|
450
463
|
|
|
451
464
|
## 12.0.0
|
|
452
465
|
|
|
453
466
|
### Major Changes
|
|
454
467
|
|
|
455
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
468
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
456
469
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
457
470
|
|
|
458
471
|
### Patch Changes
|
|
@@ -463,7 +476,7 @@
|
|
|
463
476
|
|
|
464
477
|
### Patch Changes
|
|
465
478
|
|
|
466
|
-
- [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
479
|
+
- [#2866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2866) [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
467
480
|
|
|
468
481
|
## 11.1.5
|
|
469
482
|
|
|
@@ -11,7 +11,7 @@ import { token } from '@atlaskit/tokens';
|
|
|
11
11
|
|
|
12
12
|
// Applies styles to nested links within banner messages.
|
|
13
13
|
const nestedLinkStyles = css({
|
|
14
|
-
// eslint-disable-next-line @
|
|
14
|
+
// eslint-disable-next-line @atlaskit/design-system/no-nested-styles
|
|
15
15
|
'a, a:visited, a:hover, a:focus, a:active': {
|
|
16
16
|
color: 'currentColor',
|
|
17
17
|
textDecoration: 'underline',
|
|
@@ -5,7 +5,9 @@ import core, {
|
|
|
5
5
|
ImportDeclaration,
|
|
6
6
|
ImportSpecifier,
|
|
7
7
|
JSCodeshift,
|
|
8
|
+
JSXAttribute,
|
|
8
9
|
JSXElement,
|
|
10
|
+
ObjectProperty,
|
|
9
11
|
} from 'jscodeshift';
|
|
10
12
|
import { Collection } from 'jscodeshift/src/Collection';
|
|
11
13
|
|
|
@@ -174,7 +176,7 @@ export function getJSXAttributesByName(
|
|
|
174
176
|
j: JSCodeshift,
|
|
175
177
|
jsxElementPath: ASTPath<JSXElement>,
|
|
176
178
|
attributeName: string,
|
|
177
|
-
) {
|
|
179
|
+
): Collection<JSXAttribute> {
|
|
178
180
|
return j(jsxElementPath)
|
|
179
181
|
.find(j.JSXOpeningElement)
|
|
180
182
|
.find(j.JSXAttribute)
|
|
@@ -192,7 +194,7 @@ export function getJSXSpreadIdentifierAttributesByName(
|
|
|
192
194
|
collection: Collection<any>,
|
|
193
195
|
jsxElementPath: ASTPath<JSXElement>,
|
|
194
196
|
attributeName: string,
|
|
195
|
-
) {
|
|
197
|
+
): Collection<ObjectProperty> | null {
|
|
196
198
|
const identifierCollection = j(jsxElementPath)
|
|
197
199
|
.find(j.JSXOpeningElement)
|
|
198
200
|
.find(j.JSXSpreadAttribute)
|
|
@@ -8,8 +8,8 @@ exports.useHighlightLines = void 0;
|
|
|
8
8
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _react = require("react");
|
|
11
|
-
function ownKeys(
|
|
12
|
-
function _objectSpread(
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
var DEFAULT_LINE_EL_ATTR_OBJ = {
|
|
14
14
|
'data-ds--code--row': ''
|
|
15
15
|
};
|
|
@@ -13,8 +13,8 @@ var _components = require("@atlaskit/theme/components");
|
|
|
13
13
|
var _constants = require("@atlaskit/theme/constants");
|
|
14
14
|
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); }
|
|
15
15
|
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; }
|
|
16
|
-
function ownKeys(
|
|
17
|
-
function _objectSpread(
|
|
16
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
17
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
18
18
|
// Hardcoded values have been used due to the current color palette not having any
|
|
19
19
|
// accessible color options for Teal and Yellow and +20A
|
|
20
20
|
var T800 = '#067384';
|
|
@@ -9,8 +9,8 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _constants = require("@atlaskit/theme/constants");
|
|
10
10
|
var _constants2 = require("./constants");
|
|
11
11
|
var _getTheme = require("./get-theme");
|
|
12
|
-
function ownKeys(
|
|
13
|
-
function _objectSpread(
|
|
12
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
14
|
var getLineNumWidth = function getLineNumWidth(numLines) {
|
|
15
15
|
if (!numLines) {
|
|
16
16
|
return '1ch';
|
|
@@ -11,8 +11,8 @@ var _react = require("react");
|
|
|
11
11
|
var _process = _interopRequireDefault(require("./process"));
|
|
12
12
|
var _reactRenderer = _interopRequireDefault(require("./react-renderer"));
|
|
13
13
|
var _excluded = ["language", "testId", "text", "codeTagProps", "showLineNumbers", "shouldCreateParentElementForLines", "shouldWrapLongLines", "lineProps", "codeBidiWarnings", "codeBidiWarningLabel", "codeBidiWarningTooltipEnabled", "astGenerator"];
|
|
14
|
-
function ownKeys(
|
|
15
|
-
function _objectSpread(
|
|
14
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
15
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
16
16
|
/**
|
|
17
17
|
* Takes in a code string and (in the default behaviour):
|
|
18
18
|
* - Uses refractor to turn it into a tree structure with highlighting metadata
|
|
@@ -8,8 +8,8 @@ exports.default = createLineElement;
|
|
|
8
8
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
10
|
var _getInlineLineNumber = _interopRequireDefault(require("./get-inline-line-number"));
|
|
11
|
-
function ownKeys(
|
|
12
|
-
function _objectSpread(
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
13
|
function createLineElement(_ref) {
|
|
14
14
|
var children = _ref.children,
|
|
15
15
|
lineNumber = _ref.lineNumber,
|
|
@@ -10,8 +10,8 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
10
10
|
var _bidiWarning = _interopRequireDefault(require("../../../bidi-warning"));
|
|
11
11
|
var _bidiWarningDecorator = _interopRequireDefault(require("../../../bidi-warning/bidi-warning-decorator"));
|
|
12
12
|
var _createChildren = _interopRequireDefault(require("./create-children"));
|
|
13
|
-
function ownKeys(
|
|
14
|
-
function _objectSpread(
|
|
13
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
15
|
function createClassNameString(classNames) {
|
|
16
16
|
return classNames ? classNames.join(' ') : '';
|
|
17
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
function ownKeys(
|
|
4
|
-
function _objectSpread(
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import { useCallback, useMemo } from 'react';
|
|
6
6
|
var DEFAULT_LINE_EL_ATTR_OBJ = {
|
|
7
7
|
'data-ds--code--row': ''
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import memoizeOne from 'memoize-one';
|
|
5
5
|
import * as colors from '@atlaskit/theme/colors';
|
|
6
6
|
import { themed } from '@atlaskit/theme/components';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
5
5
|
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';
|
|
6
6
|
import { getBaseTheme, getColorPalette } from './get-theme';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["language", "testId", "text", "codeTagProps", "showLineNumbers", "shouldCreateParentElementForLines", "shouldWrapLongLines", "lineProps", "codeBidiWarnings", "codeBidiWarningLabel", "codeBidiWarningTooltipEnabled", "astGenerator"];
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
5
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
6
6
|
import { memo } from 'react';
|
|
7
7
|
import processLines from './process';
|
|
8
8
|
import ReactRenderer from './react-renderer';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
|
|
2
2
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
3
|
-
function ownKeys(
|
|
4
|
-
function _objectSpread(
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
5
|
import getInlineLineNumber from './get-inline-line-number';
|
|
6
6
|
export default function createLineElement(_ref) {
|
|
7
7
|
var children = _ref.children,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import CodeBidiWarning from '../../../bidi-warning';
|
|
6
6
|
import codeBidiWarningDecorator from '../../../bidi-warning/bidi-warning-decorator';
|
package/dist/types/code.d.ts
CHANGED
|
@@ -11,6 +11,6 @@ import type { CodeProps } from './types';
|
|
|
11
11
|
* - [Code](https://atlassian.design/components/code/code)
|
|
12
12
|
* - [Usage](https://atlassian.design/components/code/usage)
|
|
13
13
|
*/
|
|
14
|
-
declare const Code: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<CodeProps, "headers" | "method" | "as" | "name" | "testId" | "codeBidiWarnings" | "codeBidiWarningLabel" | "codeBidiWarningTooltipEnabled" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "
|
|
14
|
+
declare const Code: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<CodeProps, "headers" | "method" | "as" | "name" | "testId" | "codeBidiWarnings" | "codeBidiWarningLabel" | "codeBidiWarningTooltipEnabled" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<HTMLElement>>>;
|
|
15
15
|
export { getCodeStyles };
|
|
16
16
|
export default Code;
|
|
@@ -11,6 +11,6 @@ import type { CodeProps } from './types';
|
|
|
11
11
|
* - [Code](https://atlassian.design/components/code/code)
|
|
12
12
|
* - [Usage](https://atlassian.design/components/code/usage)
|
|
13
13
|
*/
|
|
14
|
-
declare const Code: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<CodeProps, "headers" | "method" | "as" | "name" | "testId" | "codeBidiWarnings" | "codeBidiWarningLabel" | "codeBidiWarningTooltipEnabled" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "
|
|
14
|
+
declare const Code: React.MemoExoticComponent<React.ForwardRefExoticComponent<Pick<CodeProps, "headers" | "method" | "as" | "name" | "testId" | "codeBidiWarnings" | "codeBidiWarningLabel" | "codeBidiWarningTooltipEnabled" | "accept" | "acceptCharset" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "async" | "autoComplete" | "autoFocus" | "autoPlay" | "capture" | "cellPadding" | "cellSpacing" | "charSet" | "challenge" | "checked" | "cite" | "classID" | "cols" | "colSpan" | "content" | "controls" | "coords" | "crossOrigin" | "data" | "dateTime" | "default" | "defer" | "disabled" | "download" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "height" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "integrity" | "keyParams" | "keyType" | "kind" | "label" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "min" | "minLength" | "multiple" | "muted" | "nonce" | "noValidate" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "preload" | "readOnly" | "rel" | "required" | "reversed" | "rows" | "rowSpan" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "selected" | "shape" | "size" | "sizes" | "span" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "summary" | "target" | "type" | "useMap" | "value" | "width" | "wmode" | "wrap" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "slot" | "spellCheck" | "style" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key"> & React.RefAttributes<HTMLElement>>>;
|
|
15
15
|
export { getCodeStyles };
|
|
16
16
|
export default Code;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/code",
|
|
3
|
-
"version": "14.6.
|
|
3
|
+
"version": "14.6.8",
|
|
4
4
|
"description": "Code highlights short strings of code snippets inline with body text.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
30
|
-
"@atlaskit/theme": "^12.
|
|
31
|
-
"@atlaskit/tokens": "^1.
|
|
30
|
+
"@atlaskit/theme": "^12.6.0",
|
|
31
|
+
"@atlaskit/tokens": "^1.25.0",
|
|
32
32
|
"@atlaskit/tooltip": "^17.8.0",
|
|
33
33
|
"@atlaskit/visually-hidden": "^1.2.0",
|
|
34
34
|
"@babel/runtime": "^7.0.0",
|
package/report.api.md
CHANGED
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
## API Report File for "@atlaskit/code"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
9
|
+
import type { CSSObject } from '@emotion/react';
|
|
10
|
+
import type { HTMLProps } from 'react';
|
|
11
|
+
import { NamedExoticComponent } from 'react';
|
|
12
|
+
import { default as React_2 } from 'react';
|
|
13
|
+
import type { ReactNode } from 'react';
|
|
14
|
+
import type { Theme } from '@atlaskit/theme/types';
|
|
15
|
+
|
|
16
|
+
// @public
|
|
17
|
+
export const Code: React_2.MemoExoticComponent<React_2.ForwardRefExoticComponent<Pick<CodeProps, "about" | "accept" | "acceptCharset" | "accessKey" | "action" | "allowFullScreen" | "allowTransparency" | "alt" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "as" | "async" | "autoCapitalize" | "autoComplete" | "autoCorrect" | "autoFocus" | "autoPlay" | "autoSave" | "capture" | "cellPadding" | "cellSpacing" | "challenge" | "charSet" | "checked" | "children" | "cite" | "classID" | "className" | "codeBidiWarningLabel" | "codeBidiWarningTooltipEnabled" | "codeBidiWarnings" | "colSpan" | "color" | "cols" | "content" | "contentEditable" | "contextMenu" | "controls" | "coords" | "crossOrigin" | "dangerouslySetInnerHTML" | "data" | "datatype" | "dateTime" | "default" | "defaultChecked" | "defaultValue" | "defer" | "dir" | "disabled" | "download" | "draggable" | "encType" | "form" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "frameBorder" | "headers" | "height" | "hidden" | "high" | "href" | "hrefLang" | "htmlFor" | "httpEquiv" | "id" | "inlist" | "inputMode" | "integrity" | "is" | "itemID" | "itemProp" | "itemRef" | "itemScope" | "itemType" | "key" | "keyParams" | "keyType" | "kind" | "label" | "lang" | "list" | "loop" | "low" | "manifest" | "marginHeight" | "marginWidth" | "max" | "maxLength" | "media" | "mediaGroup" | "method" | "min" | "minLength" | "multiple" | "muted" | "name" | "noValidate" | "nonce" | "onAbort" | "onAbortCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAuxClick" | "onAuxClickCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onBlur" | "onBlurCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onChange" | "onChangeCapture" | "onClick" | "onClickCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onContextMenu" | "onContextMenuCapture" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onError" | "onErrorCapture" | "onFocus" | "onFocusCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onInput" | "onInputCapture" | "onInvalid" | "onInvalidCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onLoad" | "onLoadCapture" | "onLoadStart" | "onLoadStartCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onPaste" | "onPasteCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerOut" | "onPointerOutCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerUp" | "onPointerUpCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onReset" | "onResetCapture" | "onScroll" | "onScrollCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onSelect" | "onSelectCapture" | "onStalled" | "onStalledCapture" | "onSubmit" | "onSubmitCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onWheel" | "onWheelCapture" | "open" | "optimum" | "pattern" | "placeholder" | "playsInline" | "poster" | "prefix" | "preload" | "property" | "radioGroup" | "readOnly" | "rel" | "required" | "resource" | "results" | "reversed" | "role" | "rowSpan" | "rows" | "sandbox" | "scope" | "scoped" | "scrolling" | "seamless" | "security" | "selected" | "shape" | "size" | "sizes" | "slot" | "span" | "spellCheck" | "src" | "srcDoc" | "srcLang" | "srcSet" | "start" | "step" | "style" | "summary" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "tabIndex" | "target" | "testId" | "title" | "translate" | "type" | "typeof" | "unselectable" | "useMap" | "value" | "vocab" | "width" | "wmode" | "wrap"> & React_2.RefAttributes<HTMLElement>>>;
|
|
18
|
+
|
|
19
|
+
// @public
|
|
20
|
+
export const CodeBlock: NamedExoticComponent<CodeBlockProps>;
|
|
21
|
+
|
|
22
|
+
// @public (undocumented)
|
|
23
|
+
export interface CodeBlockProps {
|
|
24
|
+
codeBidiWarningLabel?: string;
|
|
25
|
+
codeBidiWarnings?: boolean;
|
|
26
|
+
codeBidiWarningTooltipEnabled?: boolean;
|
|
27
|
+
highlight?: string;
|
|
28
|
+
highlightedEndText?: string;
|
|
29
|
+
highlightedStartText?: string;
|
|
30
|
+
language?: SupportedLanguages;
|
|
31
|
+
shouldWrapLongLines?: boolean;
|
|
32
|
+
showLineNumbers?: boolean;
|
|
33
|
+
testId?: string;
|
|
34
|
+
text: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// @public (undocumented)
|
|
38
|
+
export interface CodeProps extends HTMLProps<HTMLElement> {
|
|
39
|
+
children?: ReactNode;
|
|
40
|
+
codeBidiWarningLabel?: string;
|
|
41
|
+
codeBidiWarnings?: boolean;
|
|
42
|
+
codeBidiWarningTooltipEnabled?: boolean;
|
|
43
|
+
testId?: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// @public (undocumented)
|
|
47
|
+
export const getCodeStyles: (globalTheme: Theme | {
|
|
48
|
+
theme: Theme;
|
|
49
|
+
}) => CSSObject;
|
|
50
|
+
|
|
51
|
+
// @public (undocumented)
|
|
52
|
+
export type Language = (typeof SUPPORTED_LANGUAGES)[number];
|
|
53
|
+
|
|
54
|
+
// @public (undocumented)
|
|
55
|
+
export type LanguageAlias = (typeof SUPPORTED_LANGUAGES)[number]['alias'][number];
|
|
56
|
+
|
|
57
|
+
// @public (undocumented)
|
|
58
|
+
type LanguageName = (typeof SUPPORTED_LANGUAGES)[number]['name'];
|
|
59
|
+
|
|
60
|
+
// @public (undocumented)
|
|
61
|
+
export const SUPPORTED_LANGUAGES: readonly [{
|
|
62
|
+
readonly name: "PHP";
|
|
63
|
+
readonly alias: readonly ["php", "php3", "php4", "php5"];
|
|
64
|
+
readonly value: "php";
|
|
65
|
+
}, {
|
|
66
|
+
readonly name: "Java";
|
|
67
|
+
readonly alias: readonly ["java"];
|
|
68
|
+
readonly value: "java";
|
|
69
|
+
}, {
|
|
70
|
+
readonly name: "CSharp";
|
|
71
|
+
readonly alias: readonly ["csharp", "c#"];
|
|
72
|
+
readonly value: "cs";
|
|
73
|
+
}, {
|
|
74
|
+
readonly name: "Python";
|
|
75
|
+
readonly alias: readonly ["python", "py"];
|
|
76
|
+
readonly value: "python";
|
|
77
|
+
}, {
|
|
78
|
+
readonly name: "JavaScript";
|
|
79
|
+
readonly alias: readonly ["javascript", "js"];
|
|
80
|
+
readonly value: "javascript";
|
|
81
|
+
}, {
|
|
82
|
+
readonly name: "Html";
|
|
83
|
+
readonly alias: readonly ["html"];
|
|
84
|
+
readonly value: "xml";
|
|
85
|
+
}, {
|
|
86
|
+
readonly name: "C++";
|
|
87
|
+
readonly alias: readonly ["c++", "cpp", "clike"];
|
|
88
|
+
readonly value: "cpp";
|
|
89
|
+
}, {
|
|
90
|
+
readonly name: "Ruby";
|
|
91
|
+
readonly alias: readonly ["ruby", "rb", "duby"];
|
|
92
|
+
readonly value: "ruby";
|
|
93
|
+
}, {
|
|
94
|
+
readonly name: "Objective-C";
|
|
95
|
+
readonly alias: readonly ["objective-c", "objectivec", "obj-c", "objc"];
|
|
96
|
+
readonly value: "objectivec";
|
|
97
|
+
}, {
|
|
98
|
+
readonly name: "C";
|
|
99
|
+
readonly alias: readonly ["c"];
|
|
100
|
+
readonly value: "cpp";
|
|
101
|
+
}, {
|
|
102
|
+
readonly name: "Swift";
|
|
103
|
+
readonly alias: readonly ["swift"];
|
|
104
|
+
readonly value: "swift";
|
|
105
|
+
}, {
|
|
106
|
+
readonly name: "TeX";
|
|
107
|
+
readonly alias: readonly ["tex", "latex"];
|
|
108
|
+
readonly value: "tex";
|
|
109
|
+
}, {
|
|
110
|
+
readonly name: "Shell";
|
|
111
|
+
readonly alias: readonly ["shell", "bash", "sh", "ksh", "zsh"];
|
|
112
|
+
readonly value: "shell";
|
|
113
|
+
}, {
|
|
114
|
+
readonly name: "Scala";
|
|
115
|
+
readonly alias: readonly ["scala"];
|
|
116
|
+
readonly value: "scala";
|
|
117
|
+
}, {
|
|
118
|
+
readonly name: "Go";
|
|
119
|
+
readonly alias: readonly ["go"];
|
|
120
|
+
readonly value: "go";
|
|
121
|
+
}, {
|
|
122
|
+
readonly name: "ActionScript";
|
|
123
|
+
readonly alias: readonly ["actionscript", "actionscript3", "as"];
|
|
124
|
+
readonly value: "actionscript";
|
|
125
|
+
}, {
|
|
126
|
+
readonly name: "ColdFusion";
|
|
127
|
+
readonly alias: readonly ["coldfusion"];
|
|
128
|
+
readonly value: "xml";
|
|
129
|
+
}, {
|
|
130
|
+
readonly name: "JavaFX";
|
|
131
|
+
readonly alias: readonly ["javafx", "jfx"];
|
|
132
|
+
readonly value: "java";
|
|
133
|
+
}, {
|
|
134
|
+
readonly name: "VbNet";
|
|
135
|
+
readonly alias: readonly ["vbnet", "vb.net", "vfp", "clipper", "xbase"];
|
|
136
|
+
readonly value: "vbnet";
|
|
137
|
+
}, {
|
|
138
|
+
readonly name: "JSON";
|
|
139
|
+
readonly alias: readonly ["json"];
|
|
140
|
+
readonly value: "json";
|
|
141
|
+
}, {
|
|
142
|
+
readonly name: "MATLAB";
|
|
143
|
+
readonly alias: readonly ["matlab"];
|
|
144
|
+
readonly value: "matlab";
|
|
145
|
+
}, {
|
|
146
|
+
readonly name: "Groovy";
|
|
147
|
+
readonly alias: readonly ["groovy"];
|
|
148
|
+
readonly value: "groovy";
|
|
149
|
+
}, {
|
|
150
|
+
readonly name: "SQL";
|
|
151
|
+
readonly alias: readonly ["sql", "postgresql", "postgres", "plpgsql", "psql", "postgresql-console", "postgres-console", "tsql", "t-sql", "mysql", "sqlite"];
|
|
152
|
+
readonly value: "sql";
|
|
153
|
+
}, {
|
|
154
|
+
readonly name: "R";
|
|
155
|
+
readonly alias: readonly ["r"];
|
|
156
|
+
readonly value: "r";
|
|
157
|
+
}, {
|
|
158
|
+
readonly name: "Perl";
|
|
159
|
+
readonly alias: readonly ["perl", "pl"];
|
|
160
|
+
readonly value: "perl";
|
|
161
|
+
}, {
|
|
162
|
+
readonly name: "Lua";
|
|
163
|
+
readonly alias: readonly ["lua"];
|
|
164
|
+
readonly value: "lua";
|
|
165
|
+
}, {
|
|
166
|
+
readonly name: "Pascal";
|
|
167
|
+
readonly alias: readonly ["pas", "pascal", "objectpascal", "delphi"];
|
|
168
|
+
readonly value: "pascal";
|
|
169
|
+
}, {
|
|
170
|
+
readonly name: "XML";
|
|
171
|
+
readonly alias: readonly ["xml"];
|
|
172
|
+
readonly value: "xml";
|
|
173
|
+
}, {
|
|
174
|
+
readonly name: "TypeScript";
|
|
175
|
+
readonly alias: readonly ["typescript", "ts"];
|
|
176
|
+
readonly value: "typescript";
|
|
177
|
+
}, {
|
|
178
|
+
readonly name: "CoffeeScript";
|
|
179
|
+
readonly alias: readonly ["coffeescript", "coffee-script", "coffee"];
|
|
180
|
+
readonly value: "coffeescript";
|
|
181
|
+
}, {
|
|
182
|
+
readonly name: "Haskell";
|
|
183
|
+
readonly alias: readonly ["haskell", "hs"];
|
|
184
|
+
readonly value: "haskell";
|
|
185
|
+
}, {
|
|
186
|
+
readonly name: "Puppet";
|
|
187
|
+
readonly alias: readonly ["puppet"];
|
|
188
|
+
readonly value: "puppet";
|
|
189
|
+
}, {
|
|
190
|
+
readonly name: "Arduino";
|
|
191
|
+
readonly alias: readonly ["arduino"];
|
|
192
|
+
readonly value: "arduino";
|
|
193
|
+
}, {
|
|
194
|
+
readonly name: "Fortran";
|
|
195
|
+
readonly alias: readonly ["fortran"];
|
|
196
|
+
readonly value: "fortran";
|
|
197
|
+
}, {
|
|
198
|
+
readonly name: "Erlang";
|
|
199
|
+
readonly alias: readonly ["erlang", "erl"];
|
|
200
|
+
readonly value: "erlang";
|
|
201
|
+
}, {
|
|
202
|
+
readonly name: "PowerShell";
|
|
203
|
+
readonly alias: readonly ["powershell", "posh", "ps1", "psm1"];
|
|
204
|
+
readonly value: "powershell";
|
|
205
|
+
}, {
|
|
206
|
+
readonly name: "Haxe";
|
|
207
|
+
readonly alias: readonly ["haxe", "hx", "hxsl"];
|
|
208
|
+
readonly value: "haxe";
|
|
209
|
+
}, {
|
|
210
|
+
readonly name: "Elixir";
|
|
211
|
+
readonly alias: readonly ["elixir", "ex", "exs"];
|
|
212
|
+
readonly value: "elixir";
|
|
213
|
+
}, {
|
|
214
|
+
readonly name: "Verilog";
|
|
215
|
+
readonly alias: readonly ["verilog", "v"];
|
|
216
|
+
readonly value: "verilog";
|
|
217
|
+
}, {
|
|
218
|
+
readonly name: "Rust";
|
|
219
|
+
readonly alias: readonly ["rust"];
|
|
220
|
+
readonly value: "rust";
|
|
221
|
+
}, {
|
|
222
|
+
readonly name: "VHDL";
|
|
223
|
+
readonly alias: readonly ["vhdl"];
|
|
224
|
+
readonly value: "vhdl";
|
|
225
|
+
}, {
|
|
226
|
+
readonly name: "Sass";
|
|
227
|
+
readonly alias: readonly ["sass"];
|
|
228
|
+
readonly value: "less";
|
|
229
|
+
}, {
|
|
230
|
+
readonly name: "OCaml";
|
|
231
|
+
readonly alias: readonly ["ocaml"];
|
|
232
|
+
readonly value: "ocaml";
|
|
233
|
+
}, {
|
|
234
|
+
readonly name: "Dart";
|
|
235
|
+
readonly alias: readonly ["dart"];
|
|
236
|
+
readonly value: "dart";
|
|
237
|
+
}, {
|
|
238
|
+
readonly name: "CSS";
|
|
239
|
+
readonly alias: readonly ["css"];
|
|
240
|
+
readonly value: "css";
|
|
241
|
+
}, {
|
|
242
|
+
readonly name: "reStructuredText";
|
|
243
|
+
readonly alias: readonly ["restructuredtext", "rst", "rest"];
|
|
244
|
+
readonly value: "rest";
|
|
245
|
+
}, {
|
|
246
|
+
readonly name: "Kotlin";
|
|
247
|
+
readonly alias: readonly ["kotlin"];
|
|
248
|
+
readonly value: "kotlin";
|
|
249
|
+
}, {
|
|
250
|
+
readonly name: "D";
|
|
251
|
+
readonly alias: readonly ["d"];
|
|
252
|
+
readonly value: "d";
|
|
253
|
+
}, {
|
|
254
|
+
readonly name: "Octave";
|
|
255
|
+
readonly alias: readonly ["octave"];
|
|
256
|
+
readonly value: "matlab";
|
|
257
|
+
}, {
|
|
258
|
+
readonly name: "QML";
|
|
259
|
+
readonly alias: readonly ["qbs", "qml"];
|
|
260
|
+
readonly value: "qml";
|
|
261
|
+
}, {
|
|
262
|
+
readonly name: "Prolog";
|
|
263
|
+
readonly alias: readonly ["prolog"];
|
|
264
|
+
readonly value: "prolog";
|
|
265
|
+
}, {
|
|
266
|
+
readonly name: "FoxPro";
|
|
267
|
+
readonly alias: readonly ["foxpro", "purebasic"];
|
|
268
|
+
readonly value: "purebasic";
|
|
269
|
+
}, {
|
|
270
|
+
readonly name: "Scheme";
|
|
271
|
+
readonly alias: readonly ["scheme", "scm"];
|
|
272
|
+
readonly value: "scheme";
|
|
273
|
+
}, {
|
|
274
|
+
readonly name: "CUDA";
|
|
275
|
+
readonly alias: readonly ["cuda", "cu"];
|
|
276
|
+
readonly value: "cpp";
|
|
277
|
+
}, {
|
|
278
|
+
readonly name: "Julia";
|
|
279
|
+
readonly alias: readonly ["julia", "jl"];
|
|
280
|
+
readonly value: "julia";
|
|
281
|
+
}, {
|
|
282
|
+
readonly name: "Racket";
|
|
283
|
+
readonly alias: readonly ["racket", "rkt"];
|
|
284
|
+
readonly value: "lisp";
|
|
285
|
+
}, {
|
|
286
|
+
readonly name: "Ada";
|
|
287
|
+
readonly alias: readonly ["ada", "ada95", "ada2005"];
|
|
288
|
+
readonly value: "ada";
|
|
289
|
+
}, {
|
|
290
|
+
readonly name: "Tcl";
|
|
291
|
+
readonly alias: readonly ["tcl"];
|
|
292
|
+
readonly value: "tcl";
|
|
293
|
+
}, {
|
|
294
|
+
readonly name: "Mathematica";
|
|
295
|
+
readonly alias: readonly ["mathematica", "mma", "nb"];
|
|
296
|
+
readonly value: "mathematica";
|
|
297
|
+
}, {
|
|
298
|
+
readonly name: "Autoit";
|
|
299
|
+
readonly alias: readonly ["autoit"];
|
|
300
|
+
readonly value: "autoit";
|
|
301
|
+
}, {
|
|
302
|
+
readonly name: "StandardML";
|
|
303
|
+
readonly alias: readonly ["standardmL", "sml", "standardml"];
|
|
304
|
+
readonly value: "sml";
|
|
305
|
+
}, {
|
|
306
|
+
readonly name: "Objective-J";
|
|
307
|
+
readonly alias: readonly ["objective-j", "objectivej", "obj-j", "objj"];
|
|
308
|
+
readonly value: "objectivec";
|
|
309
|
+
}, {
|
|
310
|
+
readonly name: "Smalltalk";
|
|
311
|
+
readonly alias: readonly ["smalltalk", "squeak", "st"];
|
|
312
|
+
readonly value: "smalltalk";
|
|
313
|
+
}, {
|
|
314
|
+
readonly name: "Vala";
|
|
315
|
+
readonly alias: readonly ["vala", "vapi"];
|
|
316
|
+
readonly value: "vala";
|
|
317
|
+
}, {
|
|
318
|
+
readonly name: "ABAP";
|
|
319
|
+
readonly alias: readonly ["abap"];
|
|
320
|
+
readonly value: "sql";
|
|
321
|
+
}, {
|
|
322
|
+
readonly name: "LiveScript";
|
|
323
|
+
readonly alias: readonly ["livescript", "live-script"];
|
|
324
|
+
readonly value: "livescript";
|
|
325
|
+
}, {
|
|
326
|
+
readonly name: "XQuery";
|
|
327
|
+
readonly alias: readonly ["xquery", "xqy", "xq", "xql", "xqm"];
|
|
328
|
+
readonly value: "xquery";
|
|
329
|
+
}, {
|
|
330
|
+
readonly name: "PlainText";
|
|
331
|
+
readonly alias: readonly ["text", "plaintext"];
|
|
332
|
+
readonly value: "text";
|
|
333
|
+
}, {
|
|
334
|
+
readonly name: "Yaml";
|
|
335
|
+
readonly alias: readonly ["yaml", "yml"];
|
|
336
|
+
readonly value: "yaml";
|
|
337
|
+
}, {
|
|
338
|
+
readonly name: "GraphQL";
|
|
339
|
+
readonly alias: readonly ["graphql"];
|
|
340
|
+
readonly value: "graphql";
|
|
341
|
+
}, {
|
|
342
|
+
readonly name: "AppleScript";
|
|
343
|
+
readonly alias: readonly ["applescript"];
|
|
344
|
+
readonly value: "applescript";
|
|
345
|
+
}, {
|
|
346
|
+
readonly name: "Clojure";
|
|
347
|
+
readonly alias: readonly ["clojure"];
|
|
348
|
+
readonly value: "clojure";
|
|
349
|
+
}, {
|
|
350
|
+
readonly name: "Diff";
|
|
351
|
+
readonly alias: readonly ["diff"];
|
|
352
|
+
readonly value: "diff";
|
|
353
|
+
}, {
|
|
354
|
+
readonly name: "VisualBasic";
|
|
355
|
+
readonly alias: readonly ["visualbasic"];
|
|
356
|
+
readonly value: "visual-basic";
|
|
357
|
+
}, {
|
|
358
|
+
readonly name: "JSX";
|
|
359
|
+
readonly alias: readonly ["jsx"];
|
|
360
|
+
readonly value: "jsx";
|
|
361
|
+
}, {
|
|
362
|
+
readonly name: "TSX";
|
|
363
|
+
readonly alias: readonly ["tsx"];
|
|
364
|
+
readonly value: "tsx";
|
|
365
|
+
}, {
|
|
366
|
+
readonly name: "SplunkSPL";
|
|
367
|
+
readonly alias: readonly ["splunk-spl"];
|
|
368
|
+
readonly value: "splunk-spl";
|
|
369
|
+
}];
|
|
370
|
+
|
|
371
|
+
// @public (undocumented)
|
|
372
|
+
export type SupportedLanguages = LanguageAlias | LanguageName;
|
|
373
|
+
|
|
374
|
+
// (No @packageDocumentation comment for this package)
|
|
375
|
+
|
|
376
|
+
```
|
package/dist/cjs/version.json
DELETED
package/dist/es2019/version.json
DELETED