@atlaskit/heading 0.1.16 → 0.1.17

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/heading
2
2
 
3
+ ## 0.1.17
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
8
+
3
9
  ## 0.1.16
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "sideEffects": false
5
5
  }
@@ -0,0 +1,20 @@
1
+ /** @jsx jsx */
2
+ import { FC } from 'react';
3
+ import type { HeadingProps } from './types';
4
+ /**
5
+ * __Heading__
6
+ *
7
+ * A heading is a typography component used to display text in different sizes and formats.
8
+ *
9
+ * @example
10
+ *
11
+ * ```jsx
12
+ * import Heading from '@atlaskit/heading';
13
+ *
14
+ * const H100 = () => (
15
+ * <Heading level="h100">h100</Heading>
16
+ * );
17
+ * ```
18
+ */
19
+ declare const Heading: FC<HeadingProps>;
20
+ export default Heading;
@@ -0,0 +1,2 @@
1
+ export { default } from './heading';
2
+ export type { HeadingProps } from './types';
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from 'react';
2
+ export declare type HeadingProps = {
3
+ /**
4
+ * A `testId` prop is provided for specified elements, which is a unique
5
+ * string that appears as a data attribute `data-testid` in the rendered code,
6
+ * serving as a hook for automated tests
7
+ */
8
+ testId?: string;
9
+ /**
10
+ * The text of the heading
11
+ */
12
+ children: ReactNode;
13
+ /**
14
+ * The headling level as defined by by the ADG
15
+ */
16
+ level: 'h900' | 'h800' | 'h700' | 'h600' | 'h500' | 'h400' | 'h300' | 'h200' | 'h100';
17
+ id?: string;
18
+ /**
19
+ * Allows the component to be rendered as the specified DOM Element
20
+ */
21
+ as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span';
22
+ /**
23
+ * Text color of the heading.
24
+ */
25
+ color?: 'inverse' | 'default';
26
+ };
@@ -0,0 +1 @@
1
+ export declare const lh: (sizePx: number, lineHeightPx: number) => number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "A heading is a typography component used to display text in different sizes and formats.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -20,6 +20,13 @@
20
20
  "module": "dist/esm/index.js",
21
21
  "module:es2019": "dist/es2019/index.js",
22
22
  "types": "dist/types/index.d.ts",
23
+ "typesVersions": {
24
+ ">=4.0 <4.5": {
25
+ "*": [
26
+ "dist/types-ts4.0/*"
27
+ ]
28
+ }
29
+ },
23
30
  "sideEffects": false,
24
31
  "atlaskit:src": "src/index.tsx",
25
32
  "af:exports": {
@@ -42,9 +49,9 @@
42
49
  "@atlaskit/visual-regression": "*",
43
50
  "@atlaskit/webdriver-runner": "*",
44
51
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
45
- "@testing-library/react": "^8.0.1",
52
+ "@testing-library/react": "^12.1.5",
46
53
  "react-dom": "^16.8.0",
47
- "typescript": "4.3.5",
54
+ "typescript": "4.5.5",
48
55
  "wait-for-expect": "^1.2.0"
49
56
  },
50
57
  "techstack": {
package/report.api.md CHANGED
@@ -1,45 +1,25 @@
1
- ## API Report File for "@atlaskit/heading".
1
+ ## API Report File for "@atlaskit/heading"
2
2
 
3
- > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ <!--
6
+ Generated API Report version: 2.0
7
+ -->
4
8
 
5
9
  [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
6
10
 
7
- ````ts
11
+ ```ts
8
12
  import { FC } from 'react';
9
13
  import { ReactNode } from 'react';
10
14
 
11
- /**
12
- * __Heading__
13
- *
14
- * A heading is a typography component used to display text in different sizes and formats.
15
- *
16
- * @example
17
- *
18
- * ```jsx
19
- * import Heading from '@atlaskit/heading';
20
- *
21
- * const H100 = () => (
22
- * <Heading level="h100">h100</Heading>
23
- * );
24
- * ```
25
- */
26
- declare const Heading: FC<HeadingProps>;
15
+ // @public
16
+ const Heading: FC<HeadingProps>;
27
17
  export default Heading;
28
18
 
29
- export declare type HeadingProps = {
30
- /**
31
- * A `testId` prop is provided for specified elements, which is a unique
32
- * string that appears as a data attribute `data-testid` in the rendered code,
33
- * serving as a hook for automated tests
34
- */
19
+ // @public (undocumented)
20
+ export type HeadingProps = {
35
21
  testId?: string;
36
- /**
37
- * The text of the heading
38
- */
39
22
  children: ReactNode;
40
- /**
41
- * The headling level as defined by by the ADG
42
- */
43
23
  level:
44
24
  | 'h900'
45
25
  | 'h800'
@@ -51,15 +31,9 @@ export declare type HeadingProps = {
51
31
  | 'h200'
52
32
  | 'h100';
53
33
  id?: string;
54
- /**
55
- * Allows the component to be rendered as the specified DOM Element
56
- */
57
34
  as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div' | 'span';
58
- /**
59
- * Text color of the heading.
60
- */
61
35
  color?: 'inverse' | 'default';
62
36
  };
63
37
 
64
- export {};
65
- ````
38
+ // (No @packageDocumentation comment for this package)
39
+ ```