UNPKG

19.6 kBMarkdownView Raw
1# @atlaskit/docs
2
3## 8.2.0
4
5### Minor Changes
6
7- [minor][9648afc5be](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9648afc5be):
8
9 Adds `highlight` prop to `AkCodeBlock`, `Example`, and the `code` template literal.
10 Use this to emphasize which lines of code you would like people to look at!
11
12 The `highlight` prop can be used as follows:
13
14 - To highlight one line:
15 `highlight="3"`
16 - To highlight sequential lines:
17 `highlight="1-5"`
18 - To highlight sequential and multiple single lines:
19 `highlight="1-5,7,10,15-20"`
20
21 ## `AkCodeBlock` component
22
23 Use the `highlight` prop.
24
25 ```js
26 import { AkCodeBlock } from '@atlaskit/code';
27
28 <AkCodeBlock
29 highlight="1-2"
30 text={`
31 <div>
32 hello there
33 <span>buds</span>
34 </div>
35 `}
36 />;
37 ```
38
39 ## `Example` component
40
41 Use the `highlight` prop.
42
43 ```js
44 import { Example } from '@atlaskit/docs';
45
46 <Example
47 packageName="@atlaskit/code"
48 Component={require('../examples/00-inline-code-basic').default}
49 title="Basic"
50 highlight="19,24,30,36"
51 source={require('!!raw-loader!../examples/00-inline-code-basic')}
52 />;
53 ```
54
55 ## `code` template literal
56
57 Add `highlight=` to the top of your code snippet.
58 It takes the same values as the `highlight` prop.
59
60 ```js
61 import { code } from '@atlaskit/docs';
62
63 code`highlight=5-7
64 import React from 'react';
65
66 () => (
67 <div>
68 hello there
69 <span>buds</span>
70 </div>
71 )`;
72 ```
73
74## 8.1.9
75
76### Patch Changes
77
78- [patch][5f044ec4d0](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5f044ec4d0):
79
80 Update pretty-proptype dep fro 1.0.1 to 1.0.2
81
82## 8.1.8
83
84### Patch Changes
85
86- [patch][35d2229b2a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/35d2229b2a):
87
88 Adding missing license to packages and update to Copyright 2019 Atlassian Pty Ltd.
89
90## 8.1.7
91
92### Patch Changes
93
94- [patch][97bab7fd28](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/97bab7fd28):
95
96 `@atlaskit/checkbox` **10.x** includes the following changes:
97
98 - Replaced previous theme implementation with new `@atlaskit/theme` v2 implementation
99 - Please read more about this implementation in the [theming guide](https://atlaskit.atlassian.com/packages/core/theme/docs/theming-guide)
100 - Added `overrides` prop which enables targeted customisations of key components in the @atlaskit/checkbox package.
101 - Please read more about this implementation in the [overrides guide](https://atlaskit.atlassian.com/packages/core/theme/docs/overrides-guide)
102
103 ### Breaking Changes
104
105 **HiddenCheckbox and spread props**
106
107 Passing props to the `<Checkbox/>` component for them to be spread onto the underlying `<HiddenCheckbox/>` component is now **no longer possible**.
108 `@atlaskit/checkbox` still supports passing props down to the `<HiddenCheckbox/>` component, however we've opted to make this behaviour more explicit.
109
110 Whereas previously you would do this:
111
112 ```js
113 <Checkbox
114 ...supportedCheckboxProps
115 'data-testid'='test-checkbox'
116 />
117 ```
118
119 Now you would leverage the overrides prop to pass these props down to the `<HiddenCheckbox/>` component like so:
120
121 ```js
122 <Checkbox
123 ...supportedCheckboxProps
124 overrides={{
125 HiddenCheckbox:{
126 attributesFn: () => ({ 'data-testid': 'test-checkbox' })
127 }
128 }}
129 />
130 ```
131
132## 8.1.6
133
134### Patch Changes
135
136- [patch][556c413643](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/556c413643):
137
138 Fixes the title size of the Atlaskit documentation messages.
139
140## 8.1.5
141
142### Patch Changes
143
144- [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
145
146 Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving non-relative imports as relative imports
147
148## 8.1.4
149
150### Patch Changes
151
152- [patch][ecca4d1dbb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ecca4d1dbb):
153
154 Upgraded Typescript to 3.3.x
155
156## 8.1.3
157
158- Updated dependencies [06326ef3f7](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/06326ef3f7):
159 - @atlaskit/button@13.0.9
160 - @atlaskit/section-message@4.0.5
161 - @atlaskit/icon@19.0.0
162
163## 8.1.2
164
165- Updated dependencies [cfc3c8adb3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cfc3c8adb3):
166 - @atlaskit/button@13.0.8
167 - @atlaskit/icon@18.0.0
168
169## 8.1.1
170
171- [patch][b0ef06c685](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/b0ef06c685):
172
173 - This is just a safety release in case anything strange happened in in the previous one. See Pull Request #5942 for details
174
175## 8.1.0
176
177- [minor][35405c3362](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/35405c3362):
178
179 Currently on the Atlaskit website, we are using section messages for developer preview at several places. In addition, as we recently removed couple of components from the Atlaskit service desk, we need to indicate if the component is intended for Atlassian first. Hence, We added another section message that will warn about the usage.
180
181 Now, in your docs, you can directly import those section messages to inform your customers.
182
183 ## Usage:
184
185 - <AtlassianInternalWarning /> is the section message that warns about Atlassian usage.
186 - <DevPreviewWarning> is the section message that warns about the componenent readiness.
187
188 - If you add the two section messages, meaning the component is Atlassian only and in dev preview:
189 `import { AtlassianInternalWarning, DevPreviewWarning } from '@atlaskit/docs/src/SectionMessages';`
190
191 ````${(
192 <>
193 <div style={{ marginBottom: '0.5rem'}}>
194 <AtlassianInternalWarning />
195 </div>
196 <div style={{ marginTop: '0.5rem'}}>
197 <DevPreviewWarning />
198 </div>
199 </>
200 )}```
201
202 - If you need one component, just import the requested one: `${( <AtlassianInternalWarning />)}`
203
204 ````
205
206- Updated dependencies [97bfe81ec8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/97bfe81ec8):
207 - @atlaskit/code@11.0.0
208
209## 8.0.0
210
211- [major][7c17b35107](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7c17b35107):
212
213 - Updates react and react-dom peer dependencies to react@^16.8.0 and react-dom@^16.8.0. To use this package, please ensure you use at least this version of react and react-dom.
214
215## 7.0.4
216
217- [patch][d3cad2622e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d3cad2622e):
218
219 - Removes babel-runtime in favour of @babel/runtime
220
221## 7.0.3
222
223- Updated dependencies [9c0b4744be](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9c0b4744be):
224 - @atlaskit/button@12.0.3
225 - @atlaskit/code@9.0.1
226 - @atlaskit/icon@16.0.9
227 - @atlaskit/theme@8.1.7
228
229## 7.0.2
230
231- Updated dependencies [1e826b2966](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e826b2966):
232 - @atlaskit/icon@16.0.8
233 - @atlaskit/theme@8.1.6
234 - @atlaskit/button@12.0.0
235
236## 7.0.1
237
238- Updated dependencies [9d5cc39394](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d5cc39394):
239 - @atlaskit/icon@16.0.5
240 - @atlaskit/theme@8.0.1
241 - @atlaskit/button@11.0.0
242
243## 7.0.0
244
245- [major][76299208e6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/76299208e6):
246
247 - Drop ES5 from all the flow modules
248
249 ### Dropping CJS support in all @atlaskit packages
250
251 As a breaking change, all @atlaskit packages will be dropping cjs distributions and will only distribute esm. This means all distributed code will be transpiled, but will still contain `import` and
252 `export` declarations.
253
254 The major reason for doing this is to allow us to support multiple entry points in packages, e.g:
255
256 ```js
257 import colors from `@atlaskit/theme/colors`;
258 ```
259
260 Previously this was sort of possible for consumers by doing something like:
261
262 ```js
263 import colors from `@atlaskit/theme/dist/esm/colors`;
264 ```
265
266 This has a couple of issues. 1, it treats the file system as API making internal refactors harder, we have to worry about how consumers might be using things that aren't _actually_ supposed to be used. 2. We are unable to do this _internally_ in @atlaskit packages. This leads to lots of packages bundling all of theme, just to use a single color, especially in situations where tree shaking fails.
267
268 To support being able to use multiple entrypoints internally, we unfortunately cannot have multiple distributions as they would need to have very different imports from of their own internal dependencies.
269
270 ES Modules are widely supported by all modern bundlers and can be worked around in node environments.
271
272 We may choose to revisit this solution in the future if we find any unintended condequences, but we see this as a pretty sane path forward which should lead to some major bundle size decreases, saner API's and simpler package architecture.
273
274 Please reach out to #fabric-build (if in Atlassian) or create an issue in [Design System Support](https://ecosystem.atlassian.net/secure/CreateIssue.jspa?pid=24670) (for external) if you have any questions or queries about this.
275
276## 6.0.2
277
278- [patch][050e08173f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/050e08173f):
279
280 - Add missing import for codesandboxer
281
282## 6.0.1
283
284- Updated dependencies [d7ef59d432](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d7ef59d432):
285 - @atlaskit/button@10.1.2
286 - @atlaskit/icon@16.0.0
287
288## 6.0.0
289
290- [major][58b84fa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/58b84fa):
291
292 - Use latest version of pretty-proptypes - this is incompatible with `extract-react-types` versions under `0.15.0`
293
294## 5.2.3
295
296- Updated dependencies [d13242d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d13242d):
297 - @atlaskit/button@10.0.4
298 - @atlaskit/code@8.2.1
299 - @atlaskit/icon@15.0.1
300 - @atlaskit/theme@7.0.0
301
302## 5.2.2
303
304- Updated dependencies [ab9b69c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ab9b69c):
305 - @atlaskit/button@10.0.1
306 - @atlaskit/icon@15.0.0
307
308## 5.2.1
309
310- Updated dependencies [6998f11](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/6998f11):
311 - @atlaskit/icon@14.6.1
312 - @atlaskit/theme@6.2.1
313 - @atlaskit/button@10.0.0
314
315## 5.2.0
316
317- [minor] Add ErrorBoundary to Examples so that errors in Example components don't leak out onto the containing page when embedding examples within docs. [5131102](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/5131102)
318
319## 5.1.0
320
321- [minor] Example component now accepts a packageName. This prop is now required [7a8278d](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7a8278d)
322
323## 5.0.8
324
325- [patch] Updated dependencies [65c6514](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/65c6514)
326 - @atlaskit/button@9.0.13
327 - @atlaskit/icon@14.0.0
328
329## 5.0.7
330
331- [patch] Upgrade extract-react-types to add TypeScript support. [c742e5a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c742e5a)
332
333## 5.0.6
334
335- [patch] Updated dependencies [df22ad8](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/df22ad8)
336 - @atlaskit/theme@6.0.0
337 - @atlaskit/icon@13.2.5
338 - @atlaskit/code@8.0.1
339 - @atlaskit/button@9.0.6
340
341## 5.0.5
342
343- [patch] Updated dependencies [f9c0cdb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f9c0cdb)
344 - @atlaskit/code@8.0.0
345
346## 5.0.4
347
348- [patch] Export a modified replaceImport function [18f2701](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18f2701)
349- [none] Updated dependencies [18f2701](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/18f2701)
350
351## 5.0.3
352
353- [patch] Update pretty-proptypes [c7e484c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c7e484c)
354- [none] Updated dependencies [c7e484c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c7e484c)
355
356## 5.0.2
357
358- [patch] Updated dependencies [acd86a1](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/acd86a1)
359 - @atlaskit/icon@13.2.2
360 - @atlaskit/button@9.0.4
361 - @atlaskit/theme@5.1.2
362 - @atlaskit/code@7.0.2
363
364## 5.0.1
365
366- [patch] Move analytics tests and replace elements to core [49d4ab4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/49d4ab4)
367- [none] Updated dependencies [49d4ab4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/49d4ab4)
368 - @atlaskit/button@9.0.2
369
370## 5.0.0
371
372- [major] Updates to React ^16.4.0 [7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866)
373- [major] Updated dependencies [563a7eb](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/563a7eb)
374 - @atlaskit/button@9.0.0
375 - @atlaskit/theme@5.0.0
376 - @atlaskit/code@7.0.0
377 - @atlaskit/icon@13.0.0
378- [major] Updated dependencies [7edb866](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/7edb866)
379 - @atlaskit/button@9.0.0
380 - @atlaskit/theme@5.0.0
381 - @atlaskit/code@7.0.0
382 - @atlaskit/icon@13.0.0
383
384## 4.2.2
385
386- [patch] Add missing dependencies to packages to get the website to build [99446e3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/99446e3)
387
388- [none] Updated dependencies [99446e3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/99446e3)
389- [none] Updated dependencies [9bac948](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9bac948)
390
391## 4.2.1
392
393- [patch] Updated dependencies [eee2d45](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/eee2d45)
394 - @atlaskit/code@6.0.0
395
396## 4.2.0
397
398- [minor] Added upgrade guide, updated atlaskit/docs dep on react-markings to expose md parser customisations [aef4aea](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/aef4aea)
399- [none] Updated dependencies [aef4aea](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/aef4aea)
400
401## 4.1.1
402
403- [patch] Update changelogs to remove duplicate [cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
404- [none] Updated dependencies [cc58e17](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cc58e17)
405 - @atlaskit/theme@4.0.3
406 - @atlaskit/icon@12.1.1
407 - @atlaskit/code@5.0.3
408
409## 4.1.0
410
411- [none] Updated dependencies [9d20f54](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9d20f54)
412 - @atlaskit/icon@12.1.0
413 - @atlaskit/theme@4.0.2
414 - @atlaskit/code@5.0.2
415
416## 4.0.1
417
418- [patch] Updated dependencies [223cd67](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/223cd67)
419 - @atlaskit/icon@12.0.1
420 - @atlaskit/theme@4.0.1
421 - @atlaskit/code@5.0.1
422
423## 4.0.0
424
425- [major] makes styled-components a peer dependency and upgrades version range from 1.4.6 - 3 to ^3.2.6 [1e80619](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e80619)
426- [patch] Updated dependencies [1e80619](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e80619)
427 - @atlaskit/icon@12.0.0
428 - @atlaskit/theme@4.0.0
429 - @atlaskit/code@5.0.0
430
431## 3.0.4
432
433- [patch] Updated dependencies [d662caa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d662caa)
434 - @atlaskit/icon@11.3.0
435 - @atlaskit/theme@3.2.2
436 - @atlaskit/code@4.0.4
437
438## 3.0.3
439
440## 3.0.2
441
442- [patch] Upgrade pretty proptypes [0ad9962](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0ad9962)
443
444## 3.0.1
445
446- [patch] Switch to using pretty-proptypes [2b08b6b](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2b08b6b)
447
448## 3.0.0
449
450- [major] Bump to React 16.3. [4251858](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/4251858)
451
452## 2.6.2
453
454- [patch] Update look and feel of collapsed props [e42d92e](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e42d92e)
455
456## 2.6.1
457
458- [patch] Props with default values are not marked as required [d00499f](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/d00499f)
459
460## 2.6.0
461
462- [minor] Add prop to allow proptype shape to be hidden [3150228](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3150228)
463
464## 2.5.5
465
466- [patch] Docs now handle props of nested intersections, and remove console errors [fd2d099](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/fd2d099)
467
468## 2.5.4
469
470- [patch] Make header not display when passed a string [cff04f2](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/cff04f2)
471
472## 2.5.3
473
474- [patch] Add converter for intersection in prettyPropType [0d6b5fa](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0d6b5fa)
475
476## 2.5.2
477
478- [patch] Re-releasing due to potentially broken babel release [9ed0bba](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9ed0bba)
479
480## 2.5.1
481
482- [patch] Update kind2string dependency to 0.3.1 [2c432fd](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/2c432fd)
483
484## 2.5.0
485
486- [minor] Update styled-components dependency to support versions 1.4.6 - 3 [ceccf30](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/ceccf30)
487
488## 2.4.3
489
490- [patch] updated the repository url to https://bitbucket.org/atlassian/atlaskit-mk-2 [1e57e5a](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/1e57e5a)
491
492## 2.4.2
493
494- [patch] Refactor code helper function to fix React re-render bug. [8dcb772](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8dcb772)
495
496## 2.4.1
497
498## 2.4.0
499
500- [minor] Add React 16 support. [12ea6e4](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/12ea6e4)
501
502## 2.3.0
503
504- [minor] Added support for JSX Elements in default prop declarations [8030309](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/8030309)
505
506## 2.2.0
507
508- [minor] Props component now understands how to parse members of the Array type [3eebe75](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/3eebe75)
509
510## 2.1.1
511
512- [patch] Convert function parameters [f6c5a21](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f6c5a21)
513- [patch] Convert function parameters [f6c5a21](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/f6c5a21)
514
515## 2.1.0
516
517- [minor] corrected types and added heading option to props [bdf39b3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/bdf39b3)
518- [minor] corrected types and added heading option to props [bdf39b3](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/bdf39b3)
519
520## 2.0.0
521
522- [major] Now renders default props, consumes breaking change from extract-react-types [df9fa94](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/df9fa94)
523- [major] Now renders default props, consumes breaking change from extract-react-types [df9fa94](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/df9fa94)
524
525## 1.0.1
526
527- [patch] Releasing 1.x as this is now stable [0b87d5c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0b87d5c)
528- [patch] Releasing 1.x as this is now stable [0b87d5c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/0b87d5c)
529
530## 0.0.7
531
532- [patch] Bump version of @atlaskit/docs everywhere [9a0ea18](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9a0ea18)
533- [patch] Bump version of @atlaskit/docs everywhere [9a0ea18](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/9a0ea18)
534- [patch] Update react-markings dependency [71d0703](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/71d0703)
535- [patch] Update react-markings dependency [71d0703](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/71d0703)
536
537## 0.0.6
538
539- [patch] bump icon dependency [da14956](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/da14956)
540- [patch] bump icon dependency [da14956](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/da14956)
541
542## 0.0.5
543
544- [patch] bump consumer versions for release [c730a1c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c730a1c)
545- [patch] bump consumer versions for release [c730a1c](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/c730a1c)
546- [patch] Add documentation to editor core; introduce code formatting method to docs [a1c7e56](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a1c7e56)
547- [patch] Add documentation to editor core; introduce code formatting method to docs [a1c7e56](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/a1c7e56)
548
549## 0.0.4
550
551- [patch] Use correct dependencies [7b178b1](7b178b1)
552- [patch] Use correct dependencies [7b178b1](7b178b1)
553- [patch] Adding responsive behavior to the editor. [e0d9867](e0d9867)
554- [patch] Adding responsive behavior to the editor. [e0d9867](e0d9867)
555
\No newline at end of file