@atlaskit/heading 1.4.1 → 1.4.2

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.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#41124](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/41124) [`40cd7f0c882`](https://bitbucket.org/atlassian/atlassian-frontend/commits/40cd7f0c882) - Fix to prevent heading getting into possible invalid state.
8
+
3
9
  ## 1.4.1
4
10
 
5
11
  ### Patch Changes
@@ -10,7 +10,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
10
10
  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; }
11
11
  // Allows support for heading levels 1-9 via aria-level
12
12
 
13
- var HeadingLevelContext = /*#__PURE__*/(0, _react.createContext)(0);
13
+ var HeadingLevelContext = /*#__PURE__*/(0, _react.createContext)(1);
14
14
 
15
15
  /**
16
16
  * @internal
@@ -2,7 +2,7 @@ import React, { createContext, useContext } from 'react';
2
2
 
3
3
  // Allows support for heading levels 1-9 via aria-level
4
4
 
5
- const HeadingLevelContext = /*#__PURE__*/createContext(0);
5
+ const HeadingLevelContext = /*#__PURE__*/createContext(1);
6
6
 
7
7
  /**
8
8
  * @internal
@@ -2,7 +2,7 @@ import React, { createContext, useContext } from 'react';
2
2
 
3
3
  // Allows support for heading levels 1-9 via aria-level
4
4
 
5
- var HeadingLevelContext = /*#__PURE__*/createContext(0);
5
+ var HeadingLevelContext = /*#__PURE__*/createContext(1);
6
6
 
7
7
  /**
8
8
  * @internal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/heading",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
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/"