@atlaskit/lozenge 11.4.3 → 11.4.5
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 +51 -38
- package/dist/cjs/Lozenge/index.js +26 -24
- package/dist/cjs/theme.js +5 -9
- package/dist/es2019/Lozenge/index.js +24 -21
- package/dist/esm/Lozenge/index.js +24 -21
- package/package.json +7 -6
- package/dist/cjs/version.json +0 -5
- package/dist/es2019/version.json +0 -5
- package/dist/esm/version.json +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,41 @@
|
|
|
1
1
|
# @atlaskit/lozenge
|
|
2
2
|
|
|
3
|
+
## 11.4.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 11.4.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#38743](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38743) [`3b97837c528`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3b97837c528) - The internal composition of this component has changed. There is no expected change in behavior.
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
3
16
|
## 11.4.3
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
6
19
|
|
|
7
|
-
- [`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) - Updated dependencies
|
|
20
|
+
- [#37533](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/37533) [`1ed303de3e8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1ed303de3e8) - Updated dependencies
|
|
8
21
|
|
|
9
22
|
## 11.4.2
|
|
10
23
|
|
|
11
24
|
### Patch Changes
|
|
12
25
|
|
|
13
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
26
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
14
27
|
|
|
15
28
|
## 11.4.1
|
|
16
29
|
|
|
17
30
|
### Patch Changes
|
|
18
31
|
|
|
19
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
32
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
20
33
|
|
|
21
34
|
## 11.4.0
|
|
22
35
|
|
|
23
36
|
### Minor Changes
|
|
24
37
|
|
|
25
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
38
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
26
39
|
|
|
27
40
|
### Patch Changes
|
|
28
41
|
|
|
@@ -32,19 +45,19 @@
|
|
|
32
45
|
|
|
33
46
|
### Patch Changes
|
|
34
47
|
|
|
35
|
-
- [`df9cefb35e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/df9cefb35e1) - Enrol @atlaskit/lozenge on push model consumption in Jira
|
|
48
|
+
- [#32632](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32632) [`df9cefb35e1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/df9cefb35e1) - Enrol @atlaskit/lozenge on push model consumption in Jira
|
|
36
49
|
|
|
37
50
|
## 11.3.9
|
|
38
51
|
|
|
39
52
|
### Patch Changes
|
|
40
53
|
|
|
41
|
-
- [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
54
|
+
- [#32424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32424) [`2e01c9c74b5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/2e01c9c74b5) - DUMMY remove before merging to master; dupe adf-schema via adf-utils
|
|
42
55
|
|
|
43
56
|
## 11.3.8
|
|
44
57
|
|
|
45
58
|
### Patch Changes
|
|
46
59
|
|
|
47
|
-
- [`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
60
|
+
- [#31242](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31242) [`cfe48bb7ece`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cfe48bb7ece) - Internal change only. Replace usages of Inline/Stack with stable version from `@atlaskit/primitives`.
|
|
48
61
|
|
|
49
62
|
## 11.3.7
|
|
50
63
|
|
|
@@ -56,14 +69,14 @@
|
|
|
56
69
|
|
|
57
70
|
### Patch Changes
|
|
58
71
|
|
|
59
|
-
- [`eadbf13d8c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadbf13d8c0) - Updated usages of `Text`, `Box`, `Stack`, and `Inline` primitives to reflect their updated APIs. There are no visual or behaviour changes.
|
|
72
|
+
- [#27891](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27891) [`eadbf13d8c0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/eadbf13d8c0) - Updated usages of `Text`, `Box`, `Stack`, and `Inline` primitives to reflect their updated APIs. There are no visual or behaviour changes.
|
|
60
73
|
- Updated dependencies
|
|
61
74
|
|
|
62
75
|
## 11.3.5
|
|
63
76
|
|
|
64
77
|
### Patch Changes
|
|
65
78
|
|
|
66
|
-
- [`76428a4966a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76428a4966a) - Fix lozenge truncation at maxWidth=100%
|
|
79
|
+
- [#28090](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28090) [`76428a4966a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/76428a4966a) - Fix lozenge truncation at maxWidth=100%
|
|
67
80
|
|
|
68
81
|
## 11.3.4
|
|
69
82
|
|
|
@@ -81,7 +94,7 @@
|
|
|
81
94
|
|
|
82
95
|
### Patch Changes
|
|
83
96
|
|
|
84
|
-
- [`25e09731caa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/25e09731caa) - Fixes:
|
|
97
|
+
- [#27076](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27076) [`25e09731caa`](https://bitbucket.org/atlassian/atlassian-frontend/commits/25e09731caa) - Fixes:
|
|
85
98
|
|
|
86
99
|
- Removes `vertical-align: baseline` from Lozenge which was being applied incorrectly.
|
|
87
100
|
- Removes a default prop which was causing unintended re-renders.
|
|
@@ -98,7 +111,7 @@
|
|
|
98
111
|
|
|
99
112
|
### Minor Changes
|
|
100
113
|
|
|
101
|
-
- [`f97c945d57f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f97c945d57f) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
114
|
+
- [#25860](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25860) [`f97c945d57f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f97c945d57f) - Updates `@emotion/core` to `@emotion/react`; v10 to v11. There is no expected behavior change.
|
|
102
115
|
|
|
103
116
|
### Patch Changes
|
|
104
117
|
|
|
@@ -110,38 +123,38 @@
|
|
|
110
123
|
|
|
111
124
|
### Patch Changes
|
|
112
125
|
|
|
113
|
-
- [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) - Internal changes to include spacing tokens in component implementations.
|
|
126
|
+
- [#26408](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26408) [`9de88fa1e1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9de88fa1e1e) - Internal changes to include spacing tokens in component implementations.
|
|
114
127
|
|
|
115
128
|
## 11.2.4
|
|
116
129
|
|
|
117
130
|
### Patch Changes
|
|
118
131
|
|
|
119
|
-
- [`4c6b6f0c927`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c6b6f0c927) - Removes `@emotion/core` dependency as it is no longer used within Lozenge. There is no expected behavior change.
|
|
132
|
+
- [#25795](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/25795) [`4c6b6f0c927`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4c6b6f0c927) - Removes `@emotion/core` dependency as it is no longer used within Lozenge. There is no expected behavior change.
|
|
120
133
|
|
|
121
134
|
## 11.2.3
|
|
122
135
|
|
|
123
136
|
### Patch Changes
|
|
124
137
|
|
|
125
|
-
- [`3ee63238f49`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ee63238f49) - Update internals of Box, Text, Inline and Stack to handle `children` more accurately.
|
|
138
|
+
- [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710) [`3ee63238f49`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3ee63238f49) - Update internals of Box, Text, Inline and Stack to handle `children` more accurately.
|
|
126
139
|
Also update scope of `use-primitives` to suggest Box and Text more selectively.
|
|
127
140
|
|
|
128
141
|
## 11.2.2
|
|
129
142
|
|
|
130
143
|
### Patch Changes
|
|
131
144
|
|
|
132
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
145
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
133
146
|
|
|
134
147
|
## 11.2.1
|
|
135
148
|
|
|
136
149
|
### Patch Changes
|
|
137
150
|
|
|
138
|
-
- [`fe54d8f1aec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe54d8f1aec) - Update ds-explorations dependency. No change in behaviour.
|
|
151
|
+
- [#24916](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24916) [`fe54d8f1aec`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fe54d8f1aec) - Update ds-explorations dependency. No change in behaviour.
|
|
139
152
|
|
|
140
153
|
## 11.2.0
|
|
141
154
|
|
|
142
155
|
### Minor Changes
|
|
143
156
|
|
|
144
|
-
- [`bf235e83ac0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bf235e83ac0) - Internal changes to the way styles are applied. The Lozenge background is now centred properly resulting in it sitting 1px higher, however the text inside the Lozenge is unaffected.
|
|
157
|
+
- [#24004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24004) [`bf235e83ac0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/bf235e83ac0) - Internal changes to the way styles are applied. The Lozenge background is now centred properly resulting in it sitting 1px higher, however the text inside the Lozenge is unaffected.
|
|
145
158
|
|
|
146
159
|
### Patch Changes
|
|
147
160
|
|
|
@@ -154,7 +167,7 @@
|
|
|
154
167
|
|
|
155
168
|
### Patch Changes
|
|
156
169
|
|
|
157
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
170
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
158
171
|
|
|
159
172
|
## 11.1.11
|
|
160
173
|
|
|
@@ -166,7 +179,7 @@
|
|
|
166
179
|
|
|
167
180
|
### Patch Changes
|
|
168
181
|
|
|
169
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
182
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
170
183
|
|
|
171
184
|
## 11.1.9
|
|
172
185
|
|
|
@@ -178,7 +191,7 @@
|
|
|
178
191
|
|
|
179
192
|
### Patch Changes
|
|
180
193
|
|
|
181
|
-
- [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
|
|
194
|
+
- [#19618](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19618) [`62edf20ab1e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/62edf20ab1e) - Migrates all usage of brand tokens to either selected or information tokens. This change is purely for semantic reasons, there are no visual or behavioural changes.
|
|
182
195
|
- Updated dependencies
|
|
183
196
|
|
|
184
197
|
## 11.1.7
|
|
@@ -191,7 +204,7 @@
|
|
|
191
204
|
|
|
192
205
|
### Patch Changes
|
|
193
206
|
|
|
194
|
-
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
|
|
207
|
+
- [#16752](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/16752) [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
|
|
195
208
|
- [`19d72473dfb`](https://bitbucket.org/atlassian/atlassian-frontend/commits/19d72473dfb) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.
|
|
196
209
|
- Updated dependencies
|
|
197
210
|
|
|
@@ -205,7 +218,7 @@
|
|
|
205
218
|
|
|
206
219
|
### Patch Changes
|
|
207
220
|
|
|
208
|
-
- [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
221
|
+
- [#15998](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/15998) [`f460cc7c411`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f460cc7c411) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.
|
|
209
222
|
- Updated dependencies
|
|
210
223
|
|
|
211
224
|
## 11.1.3
|
|
@@ -230,7 +243,7 @@
|
|
|
230
243
|
|
|
231
244
|
### Minor Changes
|
|
232
245
|
|
|
233
|
-
- [`d7caf75e732`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7caf75e732) - - [ux] Colors are now sourced through tokens.
|
|
246
|
+
- [#13302](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13302) [`d7caf75e732`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d7caf75e732) - - [ux] Colors are now sourced through tokens.
|
|
234
247
|
- Deprecate `@atlaskit/lozenge/theme` entry-point.
|
|
235
248
|
|
|
236
249
|
### Patch Changes
|
|
@@ -241,7 +254,7 @@
|
|
|
241
254
|
|
|
242
255
|
### Major Changes
|
|
243
256
|
|
|
244
|
-
- [`1cd379a2199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1cd379a2199) - - In this version we made `Lozenge` dramatically faster and lighter. 🤩
|
|
257
|
+
- [#12837](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12837) [`1cd379a2199`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1cd379a2199) - - In this version we made `Lozenge` dramatically faster and lighter. 🤩
|
|
245
258
|
|
|
246
259
|
- General performance improvements.
|
|
247
260
|
|
|
@@ -332,7 +345,7 @@
|
|
|
332
345
|
|
|
333
346
|
For Atlassians,
|
|
334
347
|
|
|
335
|
-
refer to the [documentation](https://
|
|
348
|
+
refer to the [documentation](https://hello.atlassian.net/wiki/spaces/AF/pages/2627171992/Codemods) for more details on the codemod CLI.
|
|
336
349
|
|
|
337
350
|
### Patch Changes
|
|
338
351
|
|
|
@@ -343,13 +356,13 @@
|
|
|
343
356
|
|
|
344
357
|
### Patch Changes
|
|
345
358
|
|
|
346
|
-
- [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
359
|
+
- [#12880](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12880) [`378d1cef00f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/378d1cef00f) - Bump `@atlaskit/theme` to version `^11.3.0`.
|
|
347
360
|
|
|
348
361
|
## 10.1.3
|
|
349
362
|
|
|
350
363
|
### Patch Changes
|
|
351
364
|
|
|
352
|
-
- [`9c98e8227f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c98e8227f6) - Internal refactor for style declarations.
|
|
365
|
+
- [#12328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/12328) [`9c98e8227f6`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9c98e8227f6) - Internal refactor for style declarations.
|
|
353
366
|
- [`42e722938da`](https://bitbucket.org/atlassian/atlassian-frontend/commits/42e722938da) - Converted class components to functional components
|
|
354
367
|
- [`8f0e5cbea57`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8f0e5cbea57) - Migrated from `@compiled` to `@emotion`
|
|
355
368
|
- [`f84de8233f3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f84de8233f3) - Add Techstacks rules to package.json
|
|
@@ -360,31 +373,31 @@
|
|
|
360
373
|
|
|
361
374
|
### Patch Changes
|
|
362
375
|
|
|
363
|
-
- [`69badd52b1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/69badd52b1) - Bumps compiled to v0.6 to surface various fixes
|
|
376
|
+
- [#7510](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7510) [`69badd52b1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/69badd52b1) - Bumps compiled to v0.6 to surface various fixes
|
|
364
377
|
|
|
365
378
|
## 10.1.1
|
|
366
379
|
|
|
367
380
|
### Patch Changes
|
|
368
381
|
|
|
369
|
-
- [`61d08bb92d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61d08bb92d) - Upgrades @compiled/react to v0.5.2
|
|
382
|
+
- [#7379](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7379) [`61d08bb92d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61d08bb92d) - Upgrades @compiled/react to v0.5.2
|
|
370
383
|
|
|
371
384
|
## 10.1.0
|
|
372
385
|
|
|
373
386
|
### Minor Changes
|
|
374
387
|
|
|
375
|
-
- [`05ef83ee27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/05ef83ee27) - Lozenge now uses [`@compiled/react`](https://compiledcssinjs.com) to power its styles.
|
|
388
|
+
- [#7170](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/7170) [`05ef83ee27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/05ef83ee27) - Lozenge now uses [`@compiled/react`](https://compiledcssinjs.com) to power its styles.
|
|
376
389
|
|
|
377
390
|
## 10.0.7
|
|
378
391
|
|
|
379
392
|
### Patch Changes
|
|
380
393
|
|
|
381
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
394
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
382
395
|
|
|
383
396
|
## 10.0.6
|
|
384
397
|
|
|
385
398
|
### Patch Changes
|
|
386
399
|
|
|
387
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
400
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
388
401
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
389
402
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
390
403
|
|
|
@@ -398,13 +411,13 @@
|
|
|
398
411
|
|
|
399
412
|
### Patch Changes
|
|
400
413
|
|
|
401
|
-
- [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
|
|
414
|
+
- [#4707](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/4707) [`6360c46009`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6360c46009) - Reenable integration tests for Edge browser
|
|
402
415
|
|
|
403
416
|
## 10.0.3
|
|
404
417
|
|
|
405
418
|
### Patch Changes
|
|
406
419
|
|
|
407
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
420
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
408
421
|
|
|
409
422
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
410
423
|
to prevent duplicates of tslib being bundled.
|
|
@@ -413,19 +426,19 @@
|
|
|
413
426
|
|
|
414
427
|
### Patch Changes
|
|
415
428
|
|
|
416
|
-
- [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
|
|
429
|
+
- [#3293](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3293) [`954cc87b62`](https://bitbucket.org/atlassian/atlassian-frontend/commits/954cc87b62) - The readme and package information has been updated to point to the new design system website.
|
|
417
430
|
|
|
418
431
|
## 10.0.1
|
|
419
432
|
|
|
420
433
|
### Patch Changes
|
|
421
434
|
|
|
422
|
-
- [`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all the theme imports to be tree-shakable
|
|
435
|
+
- [#3428](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3428) [`db053b24d8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/db053b24d8) - Update all the theme imports to be tree-shakable
|
|
423
436
|
|
|
424
437
|
## 10.0.0
|
|
425
438
|
|
|
426
439
|
### Major Changes
|
|
427
440
|
|
|
428
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
441
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
429
442
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
430
443
|
|
|
431
444
|
### Patch Changes
|
|
@@ -436,7 +449,7 @@
|
|
|
436
449
|
|
|
437
450
|
### Patch Changes
|
|
438
451
|
|
|
439
|
-
- [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
452
|
+
- [#2866](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2866) [`54a9514fcf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/54a9514fcf) - Build and supporting files will no longer be published to npm
|
|
440
453
|
|
|
441
454
|
## 9.1.8
|
|
442
455
|
|
|
@@ -7,14 +7,20 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _box = _interopRequireDefault(require("@atlaskit/ds-explorations/box"));
|
|
11
10
|
var _text = _interopRequireDefault(require("@atlaskit/ds-explorations/text"));
|
|
11
|
+
var _primitives = require("@atlaskit/primitives");
|
|
12
12
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
13
13
|
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; }
|
|
14
14
|
/* eslint-disable @atlassian/tangerine/import/entry-points */
|
|
15
15
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
16
16
|
/* eslint-disable @atlaskit/design-system/no-unsafe-design-token-usage */
|
|
17
17
|
|
|
18
|
+
var baseStyles = (0, _primitives.xcss)({
|
|
19
|
+
display: 'inline-flex',
|
|
20
|
+
borderRadius: 'border.radius',
|
|
21
|
+
position: 'static',
|
|
22
|
+
overflow: 'hidden'
|
|
23
|
+
});
|
|
18
24
|
/**
|
|
19
25
|
* __Lozenge__
|
|
20
26
|
*
|
|
@@ -38,19 +44,16 @@ var Lozenge = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
38
44
|
var appearanceType = appearance in backgroundColors[appearanceStyle] ? appearance : 'default';
|
|
39
45
|
var maxWidthValue = typeof maxWidth === 'string' ? maxWidth : "".concat(maxWidth, "px");
|
|
40
46
|
var maxWidthIsPc = typeof maxWidth === 'string' && /%$/.test(maxWidth);
|
|
41
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
47
|
+
return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
|
|
42
48
|
as: "span",
|
|
43
|
-
display: "inlineFlex",
|
|
44
49
|
backgroundColor: backgroundColors[appearanceStyle][appearanceType],
|
|
45
|
-
|
|
46
|
-
paddingInline: "space.050",
|
|
47
|
-
position: "static",
|
|
48
|
-
testId: testId,
|
|
49
|
-
overflow: "hidden",
|
|
50
|
-
UNSAFE_style: {
|
|
50
|
+
style: {
|
|
51
51
|
backgroundColor: style === null || style === void 0 ? void 0 : style.backgroundColor,
|
|
52
52
|
maxWidth: maxWidthIsPc ? maxWidth : '100%'
|
|
53
|
-
}
|
|
53
|
+
},
|
|
54
|
+
paddingInline: "space.050",
|
|
55
|
+
xcss: baseStyles,
|
|
56
|
+
testId: testId
|
|
54
57
|
}, /*#__PURE__*/_react.default.createElement(_text.default, {
|
|
55
58
|
fontSize: "size.050",
|
|
56
59
|
fontWeight: "bold",
|
|
@@ -67,24 +70,23 @@ var Lozenge = /*#__PURE__*/(0, _react.memo)(function (_ref) {
|
|
|
67
70
|
}, children));
|
|
68
71
|
});
|
|
69
72
|
Lozenge.displayName = 'Lozenge';
|
|
70
|
-
var _default = Lozenge; // Lozenge colors
|
|
71
|
-
exports.default = _default;
|
|
73
|
+
var _default = exports.default = Lozenge; // Lozenge colors
|
|
72
74
|
var backgroundColors = {
|
|
73
75
|
bold: {
|
|
74
|
-
default: 'neutral.bold',
|
|
75
|
-
inprogress: 'information.bold',
|
|
76
|
-
moved: 'warning.bold',
|
|
77
|
-
new: 'discovery.bold',
|
|
78
|
-
removed: 'danger.bold',
|
|
79
|
-
success: 'success.bold'
|
|
76
|
+
default: 'color.background.neutral.bold',
|
|
77
|
+
inprogress: 'color.background.information.bold',
|
|
78
|
+
moved: 'color.background.warning.bold',
|
|
79
|
+
new: 'color.background.discovery.bold',
|
|
80
|
+
removed: 'color.background.danger.bold',
|
|
81
|
+
success: 'color.background.success.bold'
|
|
80
82
|
},
|
|
81
83
|
subtle: {
|
|
82
|
-
default: 'neutral',
|
|
83
|
-
inprogress: 'information',
|
|
84
|
-
moved: 'warning',
|
|
85
|
-
new: 'discovery',
|
|
86
|
-
removed: 'danger',
|
|
87
|
-
success: 'success'
|
|
84
|
+
default: 'color.background.neutral',
|
|
85
|
+
inprogress: 'color.background.information',
|
|
86
|
+
moved: 'color.background.warning',
|
|
87
|
+
new: 'color.background.discovery',
|
|
88
|
+
removed: 'color.background.danger',
|
|
89
|
+
success: 'color.background.success'
|
|
88
90
|
}
|
|
89
91
|
};
|
|
90
92
|
var textColors = {
|
package/dist/cjs/theme.js
CHANGED
|
@@ -11,7 +11,7 @@ var _colors = require("@atlaskit/theme/colors");
|
|
|
11
11
|
/**
|
|
12
12
|
* @deprecated
|
|
13
13
|
*/
|
|
14
|
-
var defaultBackgroundColor = {
|
|
14
|
+
var defaultBackgroundColor = exports.defaultBackgroundColor = {
|
|
15
15
|
default: {
|
|
16
16
|
light: _colors.N40,
|
|
17
17
|
dark: _colors.N40
|
|
@@ -41,8 +41,7 @@ var defaultBackgroundColor = {
|
|
|
41
41
|
/**
|
|
42
42
|
* @deprecated
|
|
43
43
|
*/
|
|
44
|
-
exports.
|
|
45
|
-
var defaultTextColor = {
|
|
44
|
+
var defaultTextColor = exports.defaultTextColor = {
|
|
46
45
|
default: {
|
|
47
46
|
light: _colors.N500,
|
|
48
47
|
dark: _colors.N500
|
|
@@ -72,8 +71,7 @@ var defaultTextColor = {
|
|
|
72
71
|
/**
|
|
73
72
|
* @deprecated
|
|
74
73
|
*/
|
|
75
|
-
exports.
|
|
76
|
-
var boldBackgroundColor = {
|
|
74
|
+
var boldBackgroundColor = exports.boldBackgroundColor = {
|
|
77
75
|
default: {
|
|
78
76
|
light: _colors.N500,
|
|
79
77
|
dark: _colors.N500
|
|
@@ -103,8 +101,7 @@ var boldBackgroundColor = {
|
|
|
103
101
|
/**
|
|
104
102
|
* @deprecated
|
|
105
103
|
*/
|
|
106
|
-
exports.
|
|
107
|
-
var boldTextColor = {
|
|
104
|
+
var boldTextColor = exports.boldTextColor = {
|
|
108
105
|
default: {
|
|
109
106
|
light: _colors.N0,
|
|
110
107
|
dark: _colors.N0
|
|
@@ -133,5 +130,4 @@ var boldTextColor = {
|
|
|
133
130
|
|
|
134
131
|
/**
|
|
135
132
|
* @deprecated
|
|
136
|
-
*/
|
|
137
|
-
exports.boldTextColor = boldTextColor;
|
|
133
|
+
*/
|
|
@@ -3,8 +3,14 @@
|
|
|
3
3
|
/* eslint-disable @atlaskit/design-system/no-unsafe-design-token-usage */
|
|
4
4
|
|
|
5
5
|
import React, { memo } from 'react';
|
|
6
|
-
import Box from '@atlaskit/ds-explorations/box';
|
|
7
6
|
import Text from '@atlaskit/ds-explorations/text';
|
|
7
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
8
|
+
const baseStyles = xcss({
|
|
9
|
+
display: 'inline-flex',
|
|
10
|
+
borderRadius: 'border.radius',
|
|
11
|
+
position: 'static',
|
|
12
|
+
overflow: 'hidden'
|
|
13
|
+
});
|
|
8
14
|
/**
|
|
9
15
|
* __Lozenge__
|
|
10
16
|
*
|
|
@@ -28,17 +34,14 @@ const Lozenge = /*#__PURE__*/memo(({
|
|
|
28
34
|
const maxWidthIsPc = typeof maxWidth === 'string' && /%$/.test(maxWidth);
|
|
29
35
|
return /*#__PURE__*/React.createElement(Box, {
|
|
30
36
|
as: "span",
|
|
31
|
-
display: "inlineFlex",
|
|
32
37
|
backgroundColor: backgroundColors[appearanceStyle][appearanceType],
|
|
33
|
-
|
|
34
|
-
paddingInline: "space.050",
|
|
35
|
-
position: "static",
|
|
36
|
-
testId: testId,
|
|
37
|
-
overflow: "hidden",
|
|
38
|
-
UNSAFE_style: {
|
|
38
|
+
style: {
|
|
39
39
|
backgroundColor: style === null || style === void 0 ? void 0 : style.backgroundColor,
|
|
40
40
|
maxWidth: maxWidthIsPc ? maxWidth : '100%'
|
|
41
|
-
}
|
|
41
|
+
},
|
|
42
|
+
paddingInline: "space.050",
|
|
43
|
+
xcss: baseStyles,
|
|
44
|
+
testId: testId
|
|
42
45
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
43
46
|
fontSize: "size.050",
|
|
44
47
|
fontWeight: "bold",
|
|
@@ -60,20 +63,20 @@ export default Lozenge;
|
|
|
60
63
|
// Lozenge colors
|
|
61
64
|
const backgroundColors = {
|
|
62
65
|
bold: {
|
|
63
|
-
default: 'neutral.bold',
|
|
64
|
-
inprogress: 'information.bold',
|
|
65
|
-
moved: 'warning.bold',
|
|
66
|
-
new: 'discovery.bold',
|
|
67
|
-
removed: 'danger.bold',
|
|
68
|
-
success: 'success.bold'
|
|
66
|
+
default: 'color.background.neutral.bold',
|
|
67
|
+
inprogress: 'color.background.information.bold',
|
|
68
|
+
moved: 'color.background.warning.bold',
|
|
69
|
+
new: 'color.background.discovery.bold',
|
|
70
|
+
removed: 'color.background.danger.bold',
|
|
71
|
+
success: 'color.background.success.bold'
|
|
69
72
|
},
|
|
70
73
|
subtle: {
|
|
71
|
-
default: 'neutral',
|
|
72
|
-
inprogress: 'information',
|
|
73
|
-
moved: 'warning',
|
|
74
|
-
new: 'discovery',
|
|
75
|
-
removed: 'danger',
|
|
76
|
-
success: 'success'
|
|
74
|
+
default: 'color.background.neutral',
|
|
75
|
+
inprogress: 'color.background.information',
|
|
76
|
+
moved: 'color.background.warning',
|
|
77
|
+
new: 'color.background.discovery',
|
|
78
|
+
removed: 'color.background.danger',
|
|
79
|
+
success: 'color.background.success'
|
|
77
80
|
}
|
|
78
81
|
};
|
|
79
82
|
const textColors = {
|
|
@@ -3,8 +3,14 @@
|
|
|
3
3
|
/* eslint-disable @atlaskit/design-system/no-unsafe-design-token-usage */
|
|
4
4
|
|
|
5
5
|
import React, { memo } from 'react';
|
|
6
|
-
import Box from '@atlaskit/ds-explorations/box';
|
|
7
6
|
import Text from '@atlaskit/ds-explorations/text';
|
|
7
|
+
import { Box, xcss } from '@atlaskit/primitives';
|
|
8
|
+
var baseStyles = xcss({
|
|
9
|
+
display: 'inline-flex',
|
|
10
|
+
borderRadius: 'border.radius',
|
|
11
|
+
position: 'static',
|
|
12
|
+
overflow: 'hidden'
|
|
13
|
+
});
|
|
8
14
|
/**
|
|
9
15
|
* __Lozenge__
|
|
10
16
|
*
|
|
@@ -30,17 +36,14 @@ var Lozenge = /*#__PURE__*/memo(function (_ref) {
|
|
|
30
36
|
var maxWidthIsPc = typeof maxWidth === 'string' && /%$/.test(maxWidth);
|
|
31
37
|
return /*#__PURE__*/React.createElement(Box, {
|
|
32
38
|
as: "span",
|
|
33
|
-
display: "inlineFlex",
|
|
34
39
|
backgroundColor: backgroundColors[appearanceStyle][appearanceType],
|
|
35
|
-
|
|
36
|
-
paddingInline: "space.050",
|
|
37
|
-
position: "static",
|
|
38
|
-
testId: testId,
|
|
39
|
-
overflow: "hidden",
|
|
40
|
-
UNSAFE_style: {
|
|
40
|
+
style: {
|
|
41
41
|
backgroundColor: style === null || style === void 0 ? void 0 : style.backgroundColor,
|
|
42
42
|
maxWidth: maxWidthIsPc ? maxWidth : '100%'
|
|
43
|
-
}
|
|
43
|
+
},
|
|
44
|
+
paddingInline: "space.050",
|
|
45
|
+
xcss: baseStyles,
|
|
46
|
+
testId: testId
|
|
44
47
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
45
48
|
fontSize: "size.050",
|
|
46
49
|
fontWeight: "bold",
|
|
@@ -62,20 +65,20 @@ export default Lozenge;
|
|
|
62
65
|
// Lozenge colors
|
|
63
66
|
var backgroundColors = {
|
|
64
67
|
bold: {
|
|
65
|
-
default: 'neutral.bold',
|
|
66
|
-
inprogress: 'information.bold',
|
|
67
|
-
moved: 'warning.bold',
|
|
68
|
-
new: 'discovery.bold',
|
|
69
|
-
removed: 'danger.bold',
|
|
70
|
-
success: 'success.bold'
|
|
68
|
+
default: 'color.background.neutral.bold',
|
|
69
|
+
inprogress: 'color.background.information.bold',
|
|
70
|
+
moved: 'color.background.warning.bold',
|
|
71
|
+
new: 'color.background.discovery.bold',
|
|
72
|
+
removed: 'color.background.danger.bold',
|
|
73
|
+
success: 'color.background.success.bold'
|
|
71
74
|
},
|
|
72
75
|
subtle: {
|
|
73
|
-
default: 'neutral',
|
|
74
|
-
inprogress: 'information',
|
|
75
|
-
moved: 'warning',
|
|
76
|
-
new: 'discovery',
|
|
77
|
-
removed: 'danger',
|
|
78
|
-
success: 'success'
|
|
76
|
+
default: 'color.background.neutral',
|
|
77
|
+
inprogress: 'color.background.information',
|
|
78
|
+
moved: 'color.background.warning',
|
|
79
|
+
new: 'color.background.discovery',
|
|
80
|
+
removed: 'color.background.danger',
|
|
81
|
+
success: 'color.background.success'
|
|
79
82
|
}
|
|
80
83
|
};
|
|
81
84
|
var textColors = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/lozenge",
|
|
3
|
-
"version": "11.4.
|
|
3
|
+
"version": "11.4.5",
|
|
4
4
|
"description": "A lozenge is a visual indicator used to highlight an item's status for quick recognition.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"sideEffects": false,
|
|
24
24
|
"atlaskit:src": "src/index.tsx",
|
|
25
25
|
"atlassian": {
|
|
26
|
-
"team": "Design System
|
|
26
|
+
"team": "Design System Team",
|
|
27
27
|
"deprecatedAutoEntryPoints": true,
|
|
28
28
|
"releaseModel": "continuous",
|
|
29
29
|
"productPushConsumption": [
|
|
@@ -36,9 +36,10 @@
|
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@atlaskit/codemod-utils": "^4.2.0",
|
|
39
|
-
"@atlaskit/ds-explorations": "^
|
|
40
|
-
"@atlaskit/
|
|
41
|
-
"@atlaskit/
|
|
39
|
+
"@atlaskit/ds-explorations": "^3.0.0",
|
|
40
|
+
"@atlaskit/primitives": "^1.6.0",
|
|
41
|
+
"@atlaskit/theme": "^12.6.0",
|
|
42
|
+
"@atlaskit/tokens": "^1.25.0",
|
|
42
43
|
"@babel/runtime": "^7.0.0"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {
|
|
@@ -46,8 +47,8 @@
|
|
|
46
47
|
},
|
|
47
48
|
"devDependencies": {
|
|
48
49
|
"@af/accessibility-testing": "*",
|
|
50
|
+
"@af/visual-regression": "*",
|
|
49
51
|
"@atlaskit/ds-lib": "^2.2.0",
|
|
50
|
-
"@atlaskit/primitives": "^1.0.6",
|
|
51
52
|
"@atlaskit/ssr": "*",
|
|
52
53
|
"@atlaskit/visual-regression": "*",
|
|
53
54
|
"@atlaskit/webdriver-runner": "*",
|
package/dist/cjs/version.json
DELETED
package/dist/es2019/version.json
DELETED