@atlaskit/heading 2.4.4 → 2.4.6
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 +12 -0
- package/dist/cjs/heading-context.js +1 -1
- package/dist/cjs/heading.js +1 -1
- package/dist/cjs/heading.partial.js +1 -1
- package/dist/es2019/heading.js +1 -1
- package/dist/es2019/heading.partial.js +1 -1
- package/dist/esm/heading.js +1 -1
- package/dist/esm/heading.partial.js +1 -1
- package/dist/types/heading.d.ts +1 -1
- package/dist/types/heading.partial.d.ts +1 -1
- package/dist/types-ts4.5/heading.d.ts +1 -1
- package/dist/types-ts4.5/heading.partial.d.ts +1 -1
- package/package.json +5 -9
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.useHeadingLevel = exports.useHeading = exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
11
|
// Allows support for heading levels 1-9 via aria-level
|
|
12
12
|
|
|
13
13
|
var HeadingLevelContext = /*#__PURE__*/(0, _react.createContext)(0);
|
package/dist/cjs/heading.js
CHANGED
|
@@ -15,8 +15,8 @@ var _excluded = ["level"];
|
|
|
15
15
|
/* eslint-disable @atlaskit/design-system/no-deprecated-design-token-usage */
|
|
16
16
|
/**
|
|
17
17
|
* @jsxRuntime classic
|
|
18
|
+
* @jsx jsx
|
|
18
19
|
*/
|
|
19
|
-
/** @jsx jsx */
|
|
20
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
21
21
|
// https://atlassian.design/foundations/typography
|
|
22
22
|
var levelMap = {
|
|
@@ -11,8 +11,8 @@ var _primitives = require("@atlaskit/primitives");
|
|
|
11
11
|
var _headingContext = require("./heading-context");
|
|
12
12
|
/**
|
|
13
13
|
* @jsxRuntime classic
|
|
14
|
+
* @jsx jsx
|
|
14
15
|
*/
|
|
15
|
-
/** @jsx jsx */
|
|
16
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
17
|
|
|
18
18
|
var sizeTagMap = {
|
package/dist/es2019/heading.js
CHANGED
|
@@ -2,8 +2,8 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/no-deprecated-design-token-usage */
|
|
3
3
|
/**
|
|
4
4
|
* @jsxRuntime classic
|
|
5
|
+
* @jsx jsx
|
|
5
6
|
*/
|
|
6
|
-
/** @jsx jsx */
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { useHeading } from './heading-context';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
3
4
|
*/
|
|
4
|
-
/** @jsx jsx */
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { UNSAFE_inverseColorMap, UNSAFE_useSurface } from '@atlaskit/primitives';
|
package/dist/esm/heading.js
CHANGED
|
@@ -5,8 +5,8 @@ var _excluded = ["level"];
|
|
|
5
5
|
/* eslint-disable @atlaskit/design-system/no-deprecated-design-token-usage */
|
|
6
6
|
/**
|
|
7
7
|
* @jsxRuntime classic
|
|
8
|
+
* @jsx jsx
|
|
8
9
|
*/
|
|
9
|
-
/** @jsx jsx */
|
|
10
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
11
|
import { css, jsx } from '@emotion/react';
|
|
12
12
|
import { useHeading } from './heading-context';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
2
|
/**
|
|
3
3
|
* @jsxRuntime classic
|
|
4
|
+
* @jsx jsx
|
|
4
5
|
*/
|
|
5
|
-
/** @jsx jsx */
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import { UNSAFE_inverseColorMap, UNSAFE_useSurface } from '@atlaskit/primitives';
|
package/dist/types/heading.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/heading",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.6",
|
|
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/"
|
|
@@ -16,10 +16,6 @@
|
|
|
16
16
|
"atlaskit:src": "src/index.tsx",
|
|
17
17
|
"atlassian": {
|
|
18
18
|
"team": "Design System Team",
|
|
19
|
-
"productPushConsumption": [
|
|
20
|
-
"jira"
|
|
21
|
-
],
|
|
22
|
-
"releaseModel": "continuous",
|
|
23
19
|
"website": {
|
|
24
20
|
"name": "Heading",
|
|
25
21
|
"category": "Components",
|
|
@@ -33,8 +29,8 @@
|
|
|
33
29
|
"codegen": "ts-node ./scripts/codegen.tsx"
|
|
34
30
|
},
|
|
35
31
|
"dependencies": {
|
|
36
|
-
"@atlaskit/primitives": "^
|
|
37
|
-
"@atlaskit/tokens": "^
|
|
32
|
+
"@atlaskit/primitives": "^12.2.0",
|
|
33
|
+
"@atlaskit/tokens": "^2.0.0",
|
|
38
34
|
"@babel/runtime": "^7.0.0",
|
|
39
35
|
"@emotion/react": "^11.7.1"
|
|
40
36
|
},
|
|
@@ -44,9 +40,9 @@
|
|
|
44
40
|
"devDependencies": {
|
|
45
41
|
"@af/accessibility-testing": "*",
|
|
46
42
|
"@af/formatting": "*",
|
|
47
|
-
"@atlaskit/ds-lib": "^2.
|
|
43
|
+
"@atlaskit/ds-lib": "^2.6.0",
|
|
48
44
|
"@atlaskit/ssr": "*",
|
|
49
|
-
"@atlaskit/toggle": "^13.
|
|
45
|
+
"@atlaskit/toggle": "^13.4.0",
|
|
50
46
|
"@atlaskit/visual-regression": "*",
|
|
51
47
|
"@atlassian/codegen": "^0.1.0",
|
|
52
48
|
"@testing-library/react": "^12.1.5",
|