@atlaskit/heading 1.5.0 → 1.5.1

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
+ ## 1.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#70023](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/70023) [`e2d35320717b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e2d35320717b) - Fix types to set either level or variant to be required props to prevent exceptions being thrown.
8
+
3
9
  ## 1.5.0
4
10
 
5
11
  ### Minor Changes
@@ -47,7 +47,7 @@ export type HeadingProps = {
47
47
  * It's important to note that the final DOM may be impacted by the parent heading level context because of inferred accessibility level correction.
48
48
  * Therefore, it is recommended to check the final DOM to confirm the actual rendered HTML element.
49
49
  */
50
- level?: 'h900' | 'h800' | 'h700' | 'h600' | 'h500' | 'h400' | 'h300' | 'h200' | 'h100';
50
+ level: 'h900' | 'h800' | 'h700' | 'h600' | 'h500' | 'h400' | 'h300' | 'h200' | 'h100';
51
51
  /**
52
52
  * Heading style variant. This style is detached from the specific heading level applied to allow for more flexibility.
53
53
  * Use instead of the deprecated `level` prop.
@@ -61,5 +61,5 @@ export type HeadingProps = {
61
61
  *
62
62
  * This prop will only work if the typography theme is applied.
63
63
  */
64
- variant?: HeadingVariant;
64
+ variant: HeadingVariant;
65
65
  });
@@ -47,7 +47,7 @@ export type HeadingProps = {
47
47
  * It's important to note that the final DOM may be impacted by the parent heading level context because of inferred accessibility level correction.
48
48
  * Therefore, it is recommended to check the final DOM to confirm the actual rendered HTML element.
49
49
  */
50
- level?: 'h900' | 'h800' | 'h700' | 'h600' | 'h500' | 'h400' | 'h300' | 'h200' | 'h100';
50
+ level: 'h900' | 'h800' | 'h700' | 'h600' | 'h500' | 'h400' | 'h300' | 'h200' | 'h100';
51
51
  /**
52
52
  * Heading style variant. This style is detached from the specific heading level applied to allow for more flexibility.
53
53
  * Use instead of the deprecated `level` prop.
@@ -61,5 +61,5 @@ export type HeadingProps = {
61
61
  *
62
62
  * This prop will only work if the typography theme is applied.
63
63
  */
64
- variant?: HeadingVariant;
64
+ variant: HeadingVariant;
65
65
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "A heading is a typography component used to display text in different sizes and formats.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,7 +32,7 @@
32
32
  "codegen": "ts-node ./scripts/codegen.tsx"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/tokens": "^1.34.0",
35
+ "@atlaskit/tokens": "^1.35.0",
36
36
  "@babel/runtime": "^7.0.0",
37
37
  "@emotion/react": "^11.7.1"
38
38
  },