@atlaskit/code 15.2.0 → 15.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.
Files changed (69) hide show
  1. package/CHANGELOG.md +653 -645
  2. package/__perf__/code-block-syntax-highlighting.tsx +4 -1
  3. package/__perf__/source-code-examples/100-line-example.tsx +52 -40
  4. package/codemods/13.0.0-remove-unnecessary-code-props.tsx +61 -75
  5. package/codemods/13.0.0-rename-imports.tsx +214 -251
  6. package/codemods/14.0.0-lite-mode.tsx +5 -9
  7. package/codemods/__tests__/13.0.0-remove-unnecessary-code-props.tsx +43 -43
  8. package/codemods/__tests__/13.0.0-rename-imports.tsx +143 -143
  9. package/codemods/__tests__/14.0.0-lite-mode/14.0.0-lite-mode.tsx +35 -35
  10. package/codemods/__tests__/14.0.0-lite-mode/remove-language.tsx +21 -21
  11. package/codemods/__tests__/14.0.0-lite-mode/text-to-child.tsx +35 -35
  12. package/codemods/migrations/14.0.0-lite-mode/remove-language.tsx +1 -6
  13. package/codemods/migrations/14.0.0-lite-mode/text-to-child.tsx +53 -61
  14. package/codemods/utils/helpers.tsx +161 -201
  15. package/dist/cjs/bidi-warning/ui/styled.js +7 -0
  16. package/dist/cjs/code-block.js +8 -1
  17. package/dist/cjs/code.js +5 -0
  18. package/dist/cjs/internal/theme/styles.js +3 -2
  19. package/dist/cjs/syntax-highlighter/types.js +1 -0
  20. package/dist/es2019/bidi-warning/ui/styled.js +7 -0
  21. package/dist/es2019/code-block.js +8 -1
  22. package/dist/es2019/code.js +6 -0
  23. package/dist/es2019/internal/theme/styles.js +4 -1
  24. package/dist/es2019/syntax-highlighter/types.js +3 -0
  25. package/dist/esm/bidi-warning/ui/styled.js +7 -0
  26. package/dist/esm/code-block.js +8 -1
  27. package/dist/esm/code.js +6 -0
  28. package/dist/esm/internal/theme/styles.js +4 -1
  29. package/dist/esm/syntax-highlighter/types.js +3 -0
  30. package/dist/types/bidi-warning/ui/index.d.ts +1 -1
  31. package/dist/types/bidi-warning/ui/styled.d.ts +4 -1
  32. package/dist/types/code.d.ts +3 -0
  33. package/dist/types/extract-react-types/code-block.d.ts +16 -16
  34. package/dist/types/internal/hooks/use-highlight.d.ts +1 -1
  35. package/dist/types/internal/utils/get-normalized-language.d.ts +1 -1
  36. package/dist/types/syntax-highlighter/async.d.ts +1 -1
  37. package/dist/types/syntax-highlighter/lib/highlight.d.ts +1 -1
  38. package/dist/types/syntax-highlighter/lib/process/create-line-element.d.ts +1 -1
  39. package/dist/types/syntax-highlighter/lib/process/create-line.d.ts +1 -1
  40. package/dist/types/syntax-highlighter/lib/process/flatten-code-tree.d.ts +1 -1
  41. package/dist/types/syntax-highlighter/lib/process/get-code-tree.d.ts +1 -1
  42. package/dist/types/syntax-highlighter/lib/process/get-inline-line-number.d.ts +1 -1
  43. package/dist/types/syntax-highlighter/lib/process/index.d.ts +1 -1
  44. package/dist/types/syntax-highlighter/lib/react-renderer/create-children.d.ts +2 -2
  45. package/dist/types/syntax-highlighter/lib/react-renderer/create-element.d.ts +2 -2
  46. package/dist/types/syntax-highlighter/lib/react-renderer/index.d.ts +1 -1
  47. package/dist/types/syntax-highlighter/types.d.ts +2 -2
  48. package/dist/types/types.d.ts +1 -1
  49. package/dist/types-ts4.5/bidi-warning/ui/index.d.ts +1 -1
  50. package/dist/types-ts4.5/bidi-warning/ui/styled.d.ts +4 -1
  51. package/dist/types-ts4.5/code.d.ts +3 -0
  52. package/dist/types-ts4.5/extract-react-types/code-block.d.ts +16 -16
  53. package/dist/types-ts4.5/internal/hooks/use-highlight.d.ts +1 -1
  54. package/dist/types-ts4.5/internal/utils/get-normalized-language.d.ts +1 -1
  55. package/dist/types-ts4.5/syntax-highlighter/async.d.ts +1 -1
  56. package/dist/types-ts4.5/syntax-highlighter/lib/highlight.d.ts +1 -1
  57. package/dist/types-ts4.5/syntax-highlighter/lib/process/create-line-element.d.ts +1 -1
  58. package/dist/types-ts4.5/syntax-highlighter/lib/process/create-line.d.ts +1 -1
  59. package/dist/types-ts4.5/syntax-highlighter/lib/process/flatten-code-tree.d.ts +1 -1
  60. package/dist/types-ts4.5/syntax-highlighter/lib/process/get-code-tree.d.ts +1 -1
  61. package/dist/types-ts4.5/syntax-highlighter/lib/process/get-inline-line-number.d.ts +1 -1
  62. package/dist/types-ts4.5/syntax-highlighter/lib/process/index.d.ts +1 -1
  63. package/dist/types-ts4.5/syntax-highlighter/lib/react-renderer/create-children.d.ts +2 -2
  64. package/dist/types-ts4.5/syntax-highlighter/lib/react-renderer/create-element.d.ts +2 -2
  65. package/dist/types-ts4.5/syntax-highlighter/lib/react-renderer/index.d.ts +1 -1
  66. package/dist/types-ts4.5/syntax-highlighter/types.d.ts +2 -2
  67. package/dist/types-ts4.5/types.d.ts +1 -1
  68. package/package.json +108 -110
  69. package/report.api.md +807 -807
package/package.json CHANGED
@@ -1,111 +1,109 @@
1
1
  {
2
- "name": "@atlaskit/code",
3
- "version": "15.2.0",
4
- "description": "Code highlights short strings of code snippets inline with body text.",
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
- "releaseModel": "continuous",
20
- "website": {
21
- "name": "Code",
22
- "category": "Components"
23
- },
24
- "runReact18": true
25
- },
26
- "config": {
27
- "access": "public"
28
- },
29
- "dependencies": {
30
- "@atlaskit/codemod-utils": "^4.2.0",
31
- "@atlaskit/theme": "^12.8.0",
32
- "@atlaskit/tokens": "^1.46.0",
33
- "@atlaskit/tooltip": "^18.3.0",
34
- "@atlaskit/visually-hidden": "^1.3.0",
35
- "@babel/runtime": "^7.0.0",
36
- "@emotion/react": "^11.7.1",
37
- "memoize-one": "^6.0.0",
38
- "refractor": "^3.6.0"
39
- },
40
- "peerDependencies": {
41
- "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
42
- },
43
- "devDependencies": {
44
- "@af/accessibility-testing": "*",
45
- "@af/integration-testing": "*",
46
- "@af/visual-regression": "*",
47
- "@atlaskit/ds-lib": "^2.3.0",
48
- "@atlaskit/ssr": "*",
49
- "@atlaskit/toggle": "^13.1.0",
50
- "@atlaskit/visual-regression": "*",
51
- "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
52
- "@testing-library/react": "^12.1.5",
53
- "@types/jscodeshift": "^0.11.0",
54
- "@types/refractor": "^3.0.2",
55
- "color-contrast-checker": "^1.5.0",
56
- "jscodeshift": "^0.13.0",
57
- "prismjs": "^1.25.0",
58
- "react-dom": "^16.8.0",
59
- "typescript": "~5.4.2"
60
- },
61
- "keywords": [
62
- "atlaskit",
63
- "react",
64
- "ui"
65
- ],
66
- "techstack": {
67
- "@atlassian/frontend": {
68
- "import-structure": "atlassian-conventions"
69
- },
70
- "@repo/internal": {
71
- "design-system": "v1",
72
- "design-tokens": [
73
- "color",
74
- "spacing"
75
- ],
76
- "dom-events": "use-bind-event-listener",
77
- "ui-components": [
78
- "lite-mode"
79
- ],
80
- "analytics": [
81
- "analytics-next"
82
- ],
83
- "theming": [
84
- "react-context"
85
- ],
86
- "deprecation": "no-deprecated-imports",
87
- "styling": [
88
- "emotion"
89
- ]
90
- }
91
- },
92
- "typesVersions": {
93
- ">=4.5 <4.9": {
94
- "*": [
95
- "dist/types-ts4.5/*",
96
- "dist/types-ts4.5/index.d.ts"
97
- ]
98
- }
99
- },
100
- "af:exports": {
101
- "./types": "./src/entry-points/types.tsx",
102
- ".": "./src/index.tsx",
103
- "./bidi-warning": "./src/bidi-warning/index.tsx",
104
- "./bidi-warning-decorator": "./src/bidi-warning/bidi-warning-decorator.tsx",
105
- "./block": "./src/entry-points/block.tsx",
106
- "./inline": "./src/entry-points/inline.tsx",
107
- "./constants": "./src/entry-points/constants.tsx"
108
- },
109
- "homepage": "https://atlassian.design/components/code/",
110
- "prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
111
- }
2
+ "name": "@atlaskit/code",
3
+ "version": "15.3.0",
4
+ "description": "Code highlights short strings of code snippets inline with body text.",
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
+ "releaseModel": "continuous",
20
+ "website": {
21
+ "name": "Code",
22
+ "category": "Components"
23
+ },
24
+ "runReact18": true
25
+ },
26
+ "config": {
27
+ "access": "public"
28
+ },
29
+ "dependencies": {
30
+ "@atlaskit/codemod-utils": "^4.2.0",
31
+ "@atlaskit/theme": "^12.10.0",
32
+ "@atlaskit/tokens": "^1.51.0",
33
+ "@atlaskit/tooltip": "^18.5.0",
34
+ "@atlaskit/visually-hidden": "^1.4.0",
35
+ "@babel/runtime": "^7.0.0",
36
+ "@emotion/react": "^11.7.1",
37
+ "memoize-one": "^6.0.0",
38
+ "refractor": "^3.6.0"
39
+ },
40
+ "peerDependencies": {
41
+ "react": "^16.8.0 || ^17.0.0 || ~18.2.0"
42
+ },
43
+ "devDependencies": {
44
+ "@af/accessibility-testing": "*",
45
+ "@af/integration-testing": "*",
46
+ "@af/visual-regression": "*",
47
+ "@atlaskit/ds-lib": "^2.3.0",
48
+ "@atlaskit/ssr": "*",
49
+ "@atlaskit/toggle": "^13.2.0",
50
+ "@atlaskit/visual-regression": "*",
51
+ "@testing-library/react": "^12.1.5",
52
+ "@types/jscodeshift": "^0.11.0",
53
+ "@types/refractor": "^3.0.2",
54
+ "color-contrast-checker": "^1.5.0",
55
+ "jscodeshift": "^0.13.0",
56
+ "prismjs": "^1.25.0",
57
+ "react-dom": "^16.8.0",
58
+ "typescript": "~5.4.2"
59
+ },
60
+ "keywords": [
61
+ "atlaskit",
62
+ "react",
63
+ "ui"
64
+ ],
65
+ "techstack": {
66
+ "@atlassian/frontend": {
67
+ "import-structure": "atlassian-conventions"
68
+ },
69
+ "@repo/internal": {
70
+ "design-system": "v1",
71
+ "design-tokens": [
72
+ "color",
73
+ "spacing"
74
+ ],
75
+ "dom-events": "use-bind-event-listener",
76
+ "ui-components": [
77
+ "lite-mode"
78
+ ],
79
+ "analytics": [
80
+ "analytics-next"
81
+ ],
82
+ "theming": [
83
+ "react-context"
84
+ ],
85
+ "deprecation": "no-deprecated-imports",
86
+ "styling": [
87
+ "emotion"
88
+ ]
89
+ }
90
+ },
91
+ "typesVersions": {
92
+ ">=4.5 <4.9": {
93
+ "*": [
94
+ "dist/types-ts4.5/*",
95
+ "dist/types-ts4.5/index.d.ts"
96
+ ]
97
+ }
98
+ },
99
+ "af:exports": {
100
+ "./types": "./src/entry-points/types.tsx",
101
+ ".": "./src/index.tsx",
102
+ "./bidi-warning": "./src/bidi-warning/index.tsx",
103
+ "./bidi-warning-decorator": "./src/bidi-warning/bidi-warning-decorator.tsx",
104
+ "./block": "./src/entry-points/block.tsx",
105
+ "./inline": "./src/entry-points/inline.tsx",
106
+ "./constants": "./src/entry-points/constants.tsx"
107
+ },
108
+ "homepage": "https://atlassian.design/components/code/"
109
+ }