@atlaskit/heading 2.3.2 → 2.4.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 +13 -0
- package/dist/cjs/heading.js +4 -0
- package/dist/cjs/heading.partial.js +4 -0
- package/dist/es2019/heading.js +4 -0
- package/dist/es2019/heading.partial.js +4 -0
- package/dist/esm/heading.js +4 -0
- package/dist/esm/heading.partial.js +4 -0
- package/dist/types/heading.d.ts +3 -0
- package/dist/types/heading.partial.d.ts +3 -0
- package/dist/types-ts4.5/heading.d.ts +3 -0
- package/dist/types-ts4.5/heading.partial.d.ts +3 -0
- package/package.json +89 -89
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atlaskit/heading
|
|
2
2
|
|
|
3
|
+
## 2.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#110670](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/110670)
|
|
8
|
+
[`c733254a2dd6e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c733254a2dd6e) -
|
|
9
|
+
Explicitly set jsxRuntime to classic via pragma comments in order to avoid issues where jsxRuntime
|
|
10
|
+
is implicitly set to automatic.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 2.3.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/cjs/heading.js
CHANGED
|
@@ -13,7 +13,11 @@ var _headingContext = require("./heading-context");
|
|
|
13
13
|
var _heading = _interopRequireDefault(require("./heading.partial"));
|
|
14
14
|
var _excluded = ["level"];
|
|
15
15
|
/* eslint-disable @atlaskit/design-system/no-deprecated-design-token-usage */
|
|
16
|
+
/**
|
|
17
|
+
* @jsxRuntime classic
|
|
18
|
+
*/
|
|
16
19
|
/** @jsx jsx */
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
21
|
// https://atlassian.design/foundations/typography
|
|
18
22
|
var levelMap = {
|
|
19
23
|
h900: 'h1',
|
|
@@ -9,7 +9,11 @@ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/sli
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _primitives = require("@atlaskit/primitives");
|
|
11
11
|
var _headingContext = require("./heading-context");
|
|
12
|
+
/**
|
|
13
|
+
* @jsxRuntime classic
|
|
14
|
+
*/
|
|
12
15
|
/** @jsx jsx */
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
13
17
|
|
|
14
18
|
var sizeTagMap = {
|
|
15
19
|
xxlarge: 'h1',
|
package/dist/es2019/heading.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
/* eslint-disable @atlaskit/design-system/no-deprecated-design-token-usage */
|
|
3
|
+
/**
|
|
4
|
+
* @jsxRuntime classic
|
|
5
|
+
*/
|
|
3
6
|
/** @jsx jsx */
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
8
|
import { css, jsx } from '@emotion/react';
|
|
5
9
|
import { useHeading } from './heading-context';
|
|
6
10
|
import NewHeading from './heading.partial';
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
*/
|
|
1
4
|
/** @jsx jsx */
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
6
|
import { css, jsx } from '@emotion/react';
|
|
3
7
|
import { UNSAFE_inverseColorMap, UNSAFE_useSurface } from '@atlaskit/primitives';
|
|
4
8
|
import { useHeading } from './heading-context';
|
package/dist/esm/heading.js
CHANGED
|
@@ -3,7 +3,11 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
4
|
var _excluded = ["level"];
|
|
5
5
|
/* eslint-disable @atlaskit/design-system/no-deprecated-design-token-usage */
|
|
6
|
+
/**
|
|
7
|
+
* @jsxRuntime classic
|
|
8
|
+
*/
|
|
6
9
|
/** @jsx jsx */
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
11
|
import { css, jsx } from '@emotion/react';
|
|
8
12
|
import { useHeading } from './heading-context';
|
|
9
13
|
import NewHeading from './heading.partial';
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
2
|
+
/**
|
|
3
|
+
* @jsxRuntime classic
|
|
4
|
+
*/
|
|
2
5
|
/** @jsx jsx */
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
7
|
import { css, jsx } from '@emotion/react';
|
|
4
8
|
import { UNSAFE_inverseColorMap, UNSAFE_useSurface } from '@atlaskit/primitives';
|
|
5
9
|
import { useHeading } from './heading-context';
|
package/dist/types/heading.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,90 +1,90 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
}
|
|
2
|
+
"name": "@atlaskit/heading",
|
|
3
|
+
"version": "2.4.0",
|
|
4
|
+
"description": "A heading is a typography component used to display text in different sizes and formats.",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"atlaskit:src": "src/index.tsx",
|
|
17
|
+
"atlassian": {
|
|
18
|
+
"team": "Design System Team",
|
|
19
|
+
"productPushConsumption": [
|
|
20
|
+
"jira"
|
|
21
|
+
],
|
|
22
|
+
"releaseModel": "continuous",
|
|
23
|
+
"website": {
|
|
24
|
+
"name": "Heading",
|
|
25
|
+
"category": "Components",
|
|
26
|
+
"status": {
|
|
27
|
+
"type": "beta"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"runReact18": true
|
|
31
|
+
},
|
|
32
|
+
"scripts": {
|
|
33
|
+
"codegen": "ts-node ./scripts/codegen.tsx"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@atlaskit/primitives": "^7.4.0",
|
|
37
|
+
"@atlaskit/tokens": "^1.51.0",
|
|
38
|
+
"@babel/runtime": "^7.0.0",
|
|
39
|
+
"@emotion/react": "^11.7.1"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@af/accessibility-testing": "*",
|
|
46
|
+
"@af/formatting": "*",
|
|
47
|
+
"@atlaskit/ds-lib": "^2.3.0",
|
|
48
|
+
"@atlaskit/ssr": "*",
|
|
49
|
+
"@atlaskit/toggle": "^13.2.0",
|
|
50
|
+
"@atlaskit/visual-regression": "*",
|
|
51
|
+
"@atlassian/codegen": "^0.1.0",
|
|
52
|
+
"@testing-library/react": "^12.1.5",
|
|
53
|
+
"jscodeshift": "^0.13.0",
|
|
54
|
+
"react-dom": "^16.8.0",
|
|
55
|
+
"ts-node": "^10.9.1",
|
|
56
|
+
"typescript": "~5.4.2"
|
|
57
|
+
},
|
|
58
|
+
"techstack": {
|
|
59
|
+
"@atlassian/frontend": {
|
|
60
|
+
"import-structure": "atlassian-conventions",
|
|
61
|
+
"circular-dependencies": "file-and-folder-level"
|
|
62
|
+
},
|
|
63
|
+
"@repo/internal": {
|
|
64
|
+
"dom-events": "use-bind-event-listener",
|
|
65
|
+
"design-system": "v1",
|
|
66
|
+
"styling": [
|
|
67
|
+
"emotion"
|
|
68
|
+
],
|
|
69
|
+
"ui-components": "lite-mode",
|
|
70
|
+
"analytics": "analytics-next",
|
|
71
|
+
"design-tokens": [
|
|
72
|
+
"color",
|
|
73
|
+
"spacing"
|
|
74
|
+
],
|
|
75
|
+
"deprecation": "no-deprecated-imports"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"typesVersions": {
|
|
79
|
+
">=4.5 <4.9": {
|
|
80
|
+
"*": [
|
|
81
|
+
"dist/types-ts4.5/*",
|
|
82
|
+
"dist/types-ts4.5/index.d.ts"
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"af:exports": {
|
|
87
|
+
".": "./src/index.tsx"
|
|
88
|
+
},
|
|
89
|
+
"homepage": "https://atlassian.design/components/heading/"
|
|
90
|
+
}
|