@atlaskit/heading 1.2.0 → 1.3.0

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,21 @@
1
1
  # @atlaskit/heading
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+
13
+ ## 1.2.1
14
+
15
+ ### Patch Changes
16
+
17
+ - [`e0460d5d989`](https://bitbucket.org/atlassian/atlassian-frontend/commits/e0460d5d989) - Usages of `process` are now guarded by a `typeof` check.
18
+
3
19
  ## 1.2.0
4
20
 
5
21
  ### Minor Changes
@@ -111,7 +111,7 @@ var Heading = function Heading(_ref) {
111
111
  as = _ref.as,
112
112
  _ref$color = _ref.color,
113
113
  color = _ref$color === void 0 ? 'default' : _ref$color;
114
- if (process.env.NODE_ENV !== 'production' && as && typeof as !== 'string') {
114
+ if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && as && typeof as !== 'string') {
115
115
  throw new Error('`as` prop should be a string.');
116
116
  }
117
117
  var hLevel = (0, _headingContext.useHeadingElement)();
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -105,7 +105,7 @@ const Heading = ({
105
105
  as,
106
106
  color = 'default'
107
107
  }) => {
108
- if (process.env.NODE_ENV !== 'production' && as && typeof as !== 'string') {
108
+ if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && as && typeof as !== 'string') {
109
109
  throw new Error('`as` prop should be a string.');
110
110
  }
111
111
  const hLevel = useHeadingElement();
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "sideEffects": false
5
5
  }
@@ -105,7 +105,7 @@ var Heading = function Heading(_ref) {
105
105
  as = _ref.as,
106
106
  _ref$color = _ref.color,
107
107
  color = _ref$color === void 0 ? 'default' : _ref$color;
108
- if (process.env.NODE_ENV !== 'production' && as && typeof as !== 'string') {
108
+ if (typeof process !== 'undefined' && process.env.NODE_ENV !== 'production' && as && typeof as !== 'string') {
109
109
  throw new Error('`as` prop should be a string.');
110
110
  }
111
111
  var hLevel = useHeadingElement();
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "sideEffects": false
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
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",
@@ -29,7 +29,7 @@
29
29
  ".": "./src/index.tsx"
30
30
  },
31
31
  "dependencies": {
32
- "@atlaskit/tokens": "^1.2.0",
32
+ "@atlaskit/tokens": "^1.3.0",
33
33
  "@babel/runtime": "^7.0.0",
34
34
  "@emotion/react": "^11.7.1"
35
35
  },
@@ -37,14 +37,14 @@
37
37
  "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@atlaskit/button": "^16.5.0",
40
+ "@atlaskit/button": "^16.7.0",
41
41
  "@atlaskit/docs": "*",
42
42
  "@atlaskit/ds-explorations": "*",
43
- "@atlaskit/ds-lib": "^2.0.1",
44
- "@atlaskit/form": "^8.8.0",
43
+ "@atlaskit/ds-lib": "^2.2.0",
44
+ "@atlaskit/form": "^8.11.0",
45
45
  "@atlaskit/primitives": "*",
46
46
  "@atlaskit/ssr": "*",
47
- "@atlaskit/toggle": "^12.5.0",
47
+ "@atlaskit/toggle": "^12.6.0",
48
48
  "@atlaskit/visual-regression": "*",
49
49
  "@atlaskit/webdriver-runner": "*",
50
50
  "@atlassian/atlassian-frontend-prettier-config-1.0.0": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.0",
@@ -1,39 +0,0 @@
1
- ## API Report File for "@atlaskit/heading"
2
-
3
- > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
-
5
- ```ts
6
-
7
- import { FC } from 'react';
8
- import { ReactNode } from 'react';
9
-
10
- // @public
11
- const Heading: FC<HeadingProps>;
12
- export default Heading;
13
-
14
- // @public (undocumented)
15
- interface HeadingContextProps {
16
- // (undocumented)
17
- children: ReactNode;
18
- value?: HeadingElement;
19
- }
20
-
21
- // @public
22
- export const HeadingContextProvider: FC<HeadingContextProps>;
23
-
24
- // @public (undocumented)
25
- type HeadingElement = 1 | 2 | 3 | 4 | 5 | 6;
26
-
27
- // @public (undocumented)
28
- export type HeadingProps = {
29
- testId?: string;
30
- children: ReactNode;
31
- level: 'h100' | 'h200' | 'h300' | 'h400' | 'h500' | 'h600' | 'h700' | 'h800' | 'h900';
32
- id?: string;
33
- as?: 'div' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'span';
34
- color?: 'default' | 'inverse';
35
- };
36
-
37
- // (No @packageDocumentation comment for this package)
38
-
39
- ```