@atlaskit/right-side-panel 1.2.9 → 1.2.10
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 +135 -59
- package/afm-jira/tsconfig.json +27 -0
- package/dist/cjs/components/RightSidePanel/index.js +1 -14
- package/dist/cjs/components/RightSidePanel/styled.js +27 -5
- package/dist/cjs/components/styled.js +14 -4
- package/dist/es2019/components/RightSidePanel/index.js +2 -13
- package/dist/es2019/components/RightSidePanel/styled.js +26 -17
- package/dist/es2019/components/styled.js +14 -9
- package/dist/esm/components/RightSidePanel/index.js +0 -13
- package/dist/esm/components/RightSidePanel/styled.js +26 -4
- package/dist/esm/components/styled.js +14 -4
- package/dist/types/components/RightSidePanel/index.d.ts +2 -13
- package/dist/types-ts4.5/components/RightSidePanel/index.d.ts +2 -13
- package/docs/0-intro.tsx +22 -25
- package/package.json +74 -76
- package/report.api.md +54 -53
package/CHANGELOG.md
CHANGED
|
@@ -1,66 +1,96 @@
|
|
|
1
1
|
# @atlaskit/right-side-panel
|
|
2
2
|
|
|
3
|
+
## 1.2.10
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#114683](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114683)
|
|
8
|
+
[`ff0815316ab38`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ff0815316ab38) -
|
|
9
|
+
Removes usage of custom theme button in places where its API is not being used and the default
|
|
10
|
+
button is able to be used instead. This should give a slight performance (runtime) improvement.
|
|
11
|
+
|
|
3
12
|
## 1.2.9
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
6
15
|
|
|
7
|
-
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
16
|
+
- [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116)
|
|
17
|
+
[`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) -
|
|
18
|
+
Upgrade Typescript from `4.9.5` to `5.4.2`
|
|
8
19
|
|
|
9
20
|
## 1.2.8
|
|
10
21
|
|
|
11
22
|
### Patch Changes
|
|
12
23
|
|
|
13
|
-
- [#80509](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80509)
|
|
24
|
+
- [#80509](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/80509)
|
|
25
|
+
[`fcf7481f594f`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/fcf7481f594f) -
|
|
26
|
+
Upgrade dependency of `@emotion/styled` to version 11
|
|
14
27
|
|
|
15
28
|
## 1.2.7
|
|
16
29
|
|
|
17
30
|
### Patch Changes
|
|
18
31
|
|
|
19
|
-
- [#72083](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72083)
|
|
32
|
+
- [#72083](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/72083)
|
|
33
|
+
[`4f8e79eb0b7a`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4f8e79eb0b7a) -
|
|
34
|
+
Enrolling @atlaskit/right-side-panel to push model in JFE.
|
|
20
35
|
|
|
21
36
|
## 1.2.6
|
|
22
37
|
|
|
23
38
|
### Patch Changes
|
|
24
39
|
|
|
25
|
-
- [#67949](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67949)
|
|
40
|
+
- [#67949](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/67949)
|
|
41
|
+
[`4ceb213f9313`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/4ceb213f9313) -
|
|
42
|
+
Migrate packages to use declarative entry points
|
|
26
43
|
- Updated dependencies
|
|
27
44
|
|
|
28
45
|
## 1.2.5
|
|
29
46
|
|
|
30
47
|
### Patch Changes
|
|
31
48
|
|
|
32
|
-
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162)
|
|
49
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162)
|
|
50
|
+
[`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete
|
|
51
|
+
version.json
|
|
33
52
|
- Updated dependencies
|
|
34
53
|
|
|
35
54
|
## 1.2.4
|
|
36
55
|
|
|
37
56
|
### Patch Changes
|
|
38
57
|
|
|
39
|
-
- [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443)
|
|
58
|
+
- [#34443](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/34443)
|
|
59
|
+
[`61cb5313358`](https://bitbucket.org/atlassian/atlassian-frontend/commits/61cb5313358) - Removing
|
|
60
|
+
unused dependencies and dev dependencies
|
|
40
61
|
|
|
41
62
|
## 1.2.3
|
|
42
63
|
|
|
43
64
|
### Patch Changes
|
|
44
65
|
|
|
45
|
-
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
66
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793)
|
|
67
|
+
[`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure
|
|
68
|
+
legacy types are published for TS 4.5-4.8
|
|
46
69
|
|
|
47
70
|
## 1.2.2
|
|
48
71
|
|
|
49
72
|
### Patch Changes
|
|
50
73
|
|
|
51
|
-
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
74
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649)
|
|
75
|
+
[`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade
|
|
76
|
+
Typescript from `4.5.5` to `4.9.5`
|
|
52
77
|
|
|
53
78
|
## 1.2.1
|
|
54
79
|
|
|
55
80
|
### Patch Changes
|
|
56
81
|
|
|
57
|
-
- [#33218](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33218)
|
|
82
|
+
- [#33218](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33218)
|
|
83
|
+
[`7e051bad115`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7e051bad115) - Internal
|
|
84
|
+
change to enforce token usage for spacing properties. There is no expected visual or behaviour
|
|
85
|
+
change.
|
|
58
86
|
|
|
59
87
|
## 1.2.0
|
|
60
88
|
|
|
61
89
|
### Minor Changes
|
|
62
90
|
|
|
63
|
-
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
91
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258)
|
|
92
|
+
[`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip
|
|
93
|
+
minor dependency bump
|
|
64
94
|
|
|
65
95
|
### Patch Changes
|
|
66
96
|
|
|
@@ -70,7 +100,9 @@
|
|
|
70
100
|
|
|
71
101
|
### Patch Changes
|
|
72
102
|
|
|
73
|
-
- [#31643](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31643)
|
|
103
|
+
- [#31643](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/31643)
|
|
104
|
+
[`ad5cbfa5a71`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ad5cbfa5a71) - Migrated
|
|
105
|
+
use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
74
106
|
|
|
75
107
|
## 1.1.13
|
|
76
108
|
|
|
@@ -82,7 +114,10 @@
|
|
|
82
114
|
|
|
83
115
|
### Patch Changes
|
|
84
116
|
|
|
85
|
-
- [#28324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28324)
|
|
117
|
+
- [#28324](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28324)
|
|
118
|
+
[`6455cf006b3`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6455cf006b3) - Builds
|
|
119
|
+
for this package now pass through a tokens babel plugin, removing runtime invocations of the
|
|
120
|
+
tokens() function and improving performance.
|
|
86
121
|
|
|
87
122
|
## 1.1.11
|
|
88
123
|
|
|
@@ -106,19 +141,25 @@
|
|
|
106
141
|
|
|
107
142
|
### Patch Changes
|
|
108
143
|
|
|
109
|
-
- [#26424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26424)
|
|
144
|
+
- [#26424](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/26424)
|
|
145
|
+
[`0c19f354255`](https://bitbucket.org/atlassian/atlassian-frontend/commits/0c19f354255) -
|
|
146
|
+
Consolidate In Product Help & Self-Help Experiences ownership
|
|
110
147
|
|
|
111
148
|
## 1.1.7
|
|
112
149
|
|
|
113
150
|
### Patch Changes
|
|
114
151
|
|
|
115
|
-
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
152
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874)
|
|
153
|
+
[`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade
|
|
154
|
+
Typescript from `4.3.5` to `4.5.5`
|
|
116
155
|
|
|
117
156
|
## 1.1.6
|
|
118
157
|
|
|
119
158
|
### Patch Changes
|
|
120
159
|
|
|
121
|
-
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
160
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492)
|
|
161
|
+
[`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade
|
|
162
|
+
Typescript from `4.2.4` to `4.3.5`.
|
|
122
163
|
|
|
123
164
|
## 1.1.5
|
|
124
165
|
|
|
@@ -130,7 +171,9 @@
|
|
|
130
171
|
|
|
131
172
|
### Patch Changes
|
|
132
173
|
|
|
133
|
-
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
174
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650)
|
|
175
|
+
[`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade
|
|
176
|
+
to TypeScript 4.2.4
|
|
134
177
|
|
|
135
178
|
## 1.1.3
|
|
136
179
|
|
|
@@ -154,23 +197,33 @@
|
|
|
154
197
|
|
|
155
198
|
### Minor Changes
|
|
156
199
|
|
|
157
|
-
- [#19074](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19074)
|
|
200
|
+
- [#19074](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/19074)
|
|
201
|
+
[`aa70f95a3de`](https://bitbucket.org/atlassian/atlassian-frontend/commits/aa70f95a3de) - [ux]
|
|
202
|
+
Added new theming package, `@atlaskit/tokens`.
|
|
158
203
|
|
|
159
|
-
New tokens will be visible only in applications configured to use the new Tokens API (currently in
|
|
204
|
+
New tokens will be visible only in applications configured to use the new Tokens API (currently in
|
|
205
|
+
alpha).
|
|
160
206
|
|
|
161
|
-
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark
|
|
207
|
+
These changes are intended to be interoperable with the legacy theme implementation. Legacy dark
|
|
208
|
+
mode users should expect no visual or breaking changes.
|
|
162
209
|
|
|
163
210
|
## 1.0.0
|
|
164
211
|
|
|
165
212
|
### Major Changes
|
|
166
213
|
|
|
167
|
-
- [#14810](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14810)
|
|
214
|
+
- [#14810](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/14810)
|
|
215
|
+
[`47f58da5946`](https://bitbucket.org/atlassian/atlassian-frontend/commits/47f58da5946) -
|
|
216
|
+
ED-13322, ED-13324, ED-13326, ED-13323, ED-13204: Upgrade and support react-intl@^5.18.1 including
|
|
217
|
+
breaking API changes, types and tests in atlassian-frontend packages
|
|
168
218
|
|
|
169
|
-
What changed: Upgraded our react-intl support from ^2.6.0 to ^5.18.1. This means editor packages
|
|
170
|
-
|
|
171
|
-
|
|
219
|
+
What changed: Upgraded our react-intl support from ^2.6.0 to ^5.18.1. This means editor packages
|
|
220
|
+
now rely on consumers installing ^5.18.1, otherwise editor usage of react-intl will mismatch with
|
|
221
|
+
actual installed react-intl APIs. Why change was made: As part of a coordinated upgrade effort
|
|
222
|
+
across AF packages, as react-intl v2 is quite dated. How consumer should update their code: Ensure
|
|
223
|
+
react-intl ^5.18.1 is installed in consuming applications.
|
|
172
224
|
|
|
173
|
-
Upgrade guide: To consume atlassian-frontend packages that use react-intl5 setup a second provider
|
|
225
|
+
Upgrade guide: To consume atlassian-frontend packages that use react-intl5 setup a second provider
|
|
226
|
+
for the new version, using an npm alias
|
|
174
227
|
|
|
175
228
|
```js
|
|
176
229
|
"react-intl": "^2.6.0",
|
|
@@ -182,23 +235,23 @@
|
|
|
182
235
|
import { IntlProvider as IntlNextProvider } from 'react-intl-next';
|
|
183
236
|
|
|
184
237
|
return (
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
238
|
+
<IntlProvider
|
|
239
|
+
key={locale}
|
|
240
|
+
data-test-language={locale}
|
|
241
|
+
locale={locale}
|
|
242
|
+
defaultLocale={DEFAULT_LOCALE}
|
|
243
|
+
messages={messages}
|
|
244
|
+
>
|
|
245
|
+
<IntlNextProvider
|
|
246
|
+
key={locale}
|
|
247
|
+
data-test-language={locale}
|
|
248
|
+
locale={locale}
|
|
249
|
+
defaultLocale={DEFAULT_LOCALE}
|
|
250
|
+
messages={messages}
|
|
251
|
+
>
|
|
252
|
+
{children}
|
|
253
|
+
</IntlNextProvider>
|
|
254
|
+
</IntlProvider>
|
|
202
255
|
);
|
|
203
256
|
```
|
|
204
257
|
|
|
@@ -212,21 +265,28 @@
|
|
|
212
265
|
|
|
213
266
|
### Patch Changes
|
|
214
267
|
|
|
215
|
-
- [#13328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13328)
|
|
268
|
+
- [#13328](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13328)
|
|
269
|
+
[`df9dc928897`](https://bitbucket.org/atlassian/atlassian-frontend/commits/df9dc928897) - Update
|
|
270
|
+
the team information in the packages maintained by the In Product Help team
|
|
216
271
|
|
|
217
272
|
## 0.4.4
|
|
218
273
|
|
|
219
274
|
### Patch Changes
|
|
220
275
|
|
|
221
|
-
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
276
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857)
|
|
277
|
+
[`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile
|
|
278
|
+
packages using babel rather than tsc
|
|
222
279
|
|
|
223
280
|
## 0.4.3
|
|
224
281
|
|
|
225
282
|
### Patch Changes
|
|
226
283
|
|
|
227
|
-
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
228
|
-
|
|
229
|
-
|
|
284
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497)
|
|
285
|
+
[`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export
|
|
286
|
+
types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules
|
|
287
|
+
compiler option. This requires version 3.8 of Typescript, read more about how we handle Typescript
|
|
288
|
+
versions here: https://atlaskit.atlassian.com/get-started Also add `typescript` to
|
|
289
|
+
`devDependencies` to denote version that the package was built with.
|
|
230
290
|
|
|
231
291
|
## 0.4.2
|
|
232
292
|
|
|
@@ -238,17 +298,22 @@
|
|
|
238
298
|
|
|
239
299
|
### Patch Changes
|
|
240
300
|
|
|
241
|
-
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
301
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885)
|
|
302
|
+
[`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded
|
|
303
|
+
to TypeScript 3.9.6 and tslib to 2.0.0
|
|
242
304
|
|
|
243
|
-
Since tslib is a dependency for all our packages we recommend that products also follow this tslib
|
|
244
|
-
to prevent duplicates of tslib being bundled.
|
|
305
|
+
Since tslib is a dependency for all our packages we recommend that products also follow this tslib
|
|
306
|
+
upgrade to prevent duplicates of tslib being bundled.
|
|
245
307
|
|
|
246
308
|
## 0.4.0
|
|
247
309
|
|
|
248
310
|
### Minor Changes
|
|
249
311
|
|
|
250
|
-
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
251
|
-
|
|
312
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335)
|
|
313
|
+
[`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially
|
|
314
|
+
dropping IE11 support, from this version onwards there are no warranties of the package working in
|
|
315
|
+
IE11. For more information see:
|
|
316
|
+
https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
252
317
|
|
|
253
318
|
### Patch Changes
|
|
254
319
|
|
|
@@ -258,19 +323,25 @@
|
|
|
258
323
|
|
|
259
324
|
### Patch Changes
|
|
260
325
|
|
|
261
|
-
- [#2677](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2677)
|
|
326
|
+
- [#2677](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2677)
|
|
327
|
+
[`4560b65a4f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4560b65a4f) - upgrade
|
|
328
|
+
react-transition-group to latest
|
|
262
329
|
|
|
263
330
|
## 0.3.5
|
|
264
331
|
|
|
265
332
|
### Patch Changes
|
|
266
333
|
|
|
267
|
-
- [#2430](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2430)
|
|
334
|
+
- [#2430](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2430)
|
|
335
|
+
[`649f69b6d7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/649f69b6d7) - Patch all
|
|
336
|
+
packages that are used by confluence that have a broken es2019 dist
|
|
268
337
|
|
|
269
338
|
## 0.3.4
|
|
270
339
|
|
|
271
340
|
### Patch Changes
|
|
272
341
|
|
|
273
|
-
- [#2099](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2099)
|
|
342
|
+
- [#2099](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2099)
|
|
343
|
+
[`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add
|
|
344
|
+
missing tslib dependency
|
|
274
345
|
|
|
275
346
|
## 0.3.3
|
|
276
347
|
|
|
@@ -286,7 +357,8 @@
|
|
|
286
357
|
|
|
287
358
|
- [patch][6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
288
359
|
|
|
289
|
-
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
360
|
+
Remove namespace imports from React, ReactDom, and PropTypes- Updated dependencies
|
|
361
|
+
[6548261c9a](https://bitbucket.org/atlassian/atlassian-frontend/commits/6548261c9a):
|
|
290
362
|
|
|
291
363
|
- @atlaskit/docs@8.3.2
|
|
292
364
|
- @atlaskit/button@13.3.7
|
|
@@ -299,7 +371,8 @@
|
|
|
299
371
|
|
|
300
372
|
### Patch Changes
|
|
301
373
|
|
|
302
|
-
- Updated dependencies
|
|
374
|
+
- Updated dependencies
|
|
375
|
+
[c0102a3ea2](https://bitbucket.org/atlassian/atlassian-frontend/commits/c0102a3ea2):
|
|
303
376
|
- @atlaskit/navigation@36.0.0
|
|
304
377
|
- @atlaskit/section-message@4.1.4
|
|
305
378
|
- @atlaskit/docs@8.3.1
|
|
@@ -312,7 +385,8 @@
|
|
|
312
385
|
|
|
313
386
|
- [minor][49c89962de](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/49c89962de):
|
|
314
387
|
|
|
315
|
-
right-side-panel:\* added props skipAnimationOnMount, mountOnEnter, unmountOnExit,
|
|
388
|
+
right-side-panel:\* added props skipAnimationOnMount, mountOnEnter, unmountOnExit,
|
|
389
|
+
disableEnterAnimation, disableExitAnimation
|
|
316
390
|
|
|
317
391
|
## 0.2.2
|
|
318
392
|
|
|
@@ -336,7 +410,8 @@
|
|
|
336
410
|
|
|
337
411
|
- [minor][617591dd61](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/617591dd61):
|
|
338
412
|
|
|
339
|
-
Added props onOpenAnimationFinished and onCloseAnimationFinished to execute function once the
|
|
413
|
+
Added props onOpenAnimationFinished and onCloseAnimationFinished to execute function once the
|
|
414
|
+
open/close animation finished
|
|
340
415
|
|
|
341
416
|
## 0.1.8
|
|
342
417
|
|
|
@@ -344,7 +419,8 @@
|
|
|
344
419
|
|
|
345
420
|
- [patch][097b696613](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/097b696613):
|
|
346
421
|
|
|
347
|
-
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
422
|
+
Components now depend on TS 3.6 internally, in order to fix an issue with TS resolving
|
|
423
|
+
non-relative imports as relative imports
|
|
348
424
|
|
|
349
425
|
## 0.1.7
|
|
350
426
|
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.jira.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../tsDist/@atlaskit__right-side-panel/app",
|
|
7
|
+
"composite": true,
|
|
8
|
+
"rootDir": "../"
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": [
|
|
20
|
+
{
|
|
21
|
+
"path": "../../../design-system/theme/afm-jira/tsconfig.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"path": "../../../design-system/tokens/afm-jira/tsconfig.json"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
@@ -5,7 +5,7 @@ var _typeof = require("@babel/runtime/helpers/typeof");
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.default = exports.
|
|
8
|
+
exports.default = exports.RightSidePanel = void 0;
|
|
9
9
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
11
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
@@ -25,19 +25,6 @@ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbol
|
|
|
25
25
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
26
26
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
27
27
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
28
|
-
var UNMOUNTED = exports.UNMOUNTED = 'unmounted';
|
|
29
|
-
var EXITED = exports.EXITED = 'exited';
|
|
30
|
-
var ENTERING = exports.ENTERING = 'entering';
|
|
31
|
-
var ENTERED = exports.ENTERED = 'entered';
|
|
32
|
-
var EXITING = exports.EXITING = 'exiting';
|
|
33
|
-
var TransitionStatus = exports.TransitionStatus = /*#__PURE__*/function (TransitionStatus) {
|
|
34
|
-
TransitionStatus["UNMOUNTED"] = "unmounted";
|
|
35
|
-
TransitionStatus["EXITED"] = "exited";
|
|
36
|
-
TransitionStatus["ENTERING"] = "entering";
|
|
37
|
-
TransitionStatus["ENTERED"] = "entered";
|
|
38
|
-
TransitionStatus["EXITING"] = "exiting";
|
|
39
|
-
return TransitionStatus;
|
|
40
|
-
}({});
|
|
41
28
|
var defaultStyle = {
|
|
42
29
|
transition: "width ".concat(_constants.transitionDurationMs, "ms,\n flex ").concat(_constants.transitionDurationMs, "ms"),
|
|
43
30
|
width: "0",
|
|
@@ -6,13 +6,35 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.RightSidePanelDrawerContent = exports.RightSidePanelDrawer = void 0;
|
|
9
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
9
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
11
10
|
var colors = _interopRequireWildcard(require("@atlaskit/theme/colors"));
|
|
12
11
|
var _constants = require("./constants");
|
|
13
|
-
var _templateObject, _templateObject2;
|
|
14
|
-
/** @jsx jsx */
|
|
15
12
|
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); }
|
|
16
13
|
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 && Object.prototype.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; }
|
|
17
|
-
|
|
18
|
-
|
|
14
|
+
/** @jsx jsx */
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
|
+
var RightSidePanelDrawer = exports.RightSidePanelDrawer = _styled.default.div({
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
20
|
+
width: "".concat(_constants.panelWidth, "px"),
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
+
flex: "0 0 ".concat(_constants.panelWidth, "px"),
|
|
23
|
+
position: 'relative',
|
|
24
|
+
overflow: 'hidden'
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
28
|
+
var RightSidePanelDrawerContent = exports.RightSidePanelDrawerContent = _styled.default.div({
|
|
29
|
+
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
30
|
+
boxSizing: 'border-box',
|
|
31
|
+
flex: 1,
|
|
32
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
|
+
borderLeft: "3px solid ".concat("var(--ds-border, ".concat(colors.N30, ")")),
|
|
34
|
+
overflow: 'hidden',
|
|
35
|
+
flexDirection: 'column',
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
|
+
width: "".concat(_constants.panelWidth, "px"),
|
|
38
|
+
height: '100%',
|
|
39
|
+
position: 'fixed'
|
|
40
|
+
});
|
|
@@ -5,9 +5,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.FlexContainer = exports.ContentWrapper = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
8
|
var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
10
|
-
var _templateObject, _templateObject2;
|
|
11
9
|
/** @jsx jsx */
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
11
|
+
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
13
|
+
var FlexContainer = exports.FlexContainer = _styled.default.div({
|
|
14
|
+
display: 'flex'
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
|
+
var ContentWrapper = exports.ContentWrapper = _styled.default.div({
|
|
19
|
+
position: 'relative',
|
|
20
|
+
minWidth: 0,
|
|
21
|
+
flex: '1 1 auto',
|
|
22
|
+
overflowX: 'hidden'
|
|
23
|
+
});
|
|
@@ -6,19 +6,6 @@ import { createPortal } from 'react-dom';
|
|
|
6
6
|
import { Transition } from 'react-transition-group';
|
|
7
7
|
import { transitionDurationMs, panelWidth } from './constants';
|
|
8
8
|
import { RightSidePanelDrawer, RightSidePanelDrawerContent } from './styled';
|
|
9
|
-
export const UNMOUNTED = 'unmounted';
|
|
10
|
-
export const EXITED = 'exited';
|
|
11
|
-
export const ENTERING = 'entering';
|
|
12
|
-
export const ENTERED = 'entered';
|
|
13
|
-
export const EXITING = 'exiting';
|
|
14
|
-
export let TransitionStatus = /*#__PURE__*/function (TransitionStatus) {
|
|
15
|
-
TransitionStatus["UNMOUNTED"] = "unmounted";
|
|
16
|
-
TransitionStatus["EXITED"] = "exited";
|
|
17
|
-
TransitionStatus["ENTERING"] = "entering";
|
|
18
|
-
TransitionStatus["ENTERED"] = "entered";
|
|
19
|
-
TransitionStatus["EXITING"] = "exiting";
|
|
20
|
-
return TransitionStatus;
|
|
21
|
-
}({});
|
|
22
9
|
const defaultStyle = {
|
|
23
10
|
transition: `width ${transitionDurationMs}ms,
|
|
24
11
|
flex ${transitionDurationMs}ms`,
|
|
@@ -73,7 +60,9 @@ export class RightSidePanel extends Component {
|
|
|
73
60
|
onExited: onCloseAnimationFinished
|
|
74
61
|
}, state => /*#__PURE__*/React.createElement(RightSidePanelDrawer, {
|
|
75
62
|
style: {
|
|
63
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
76
64
|
...defaultStyle,
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
77
66
|
...transitionStyles[state]
|
|
78
67
|
}
|
|
79
68
|
}, /*#__PURE__*/React.createElement(RightSidePanelDrawerContent, null, children))), Container);
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import styled from '@emotion/styled';
|
|
3
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
5
|
import { panelWidth } from './constants';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
|
+
export const RightSidePanelDrawer = styled.div({
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
10
|
+
width: `${panelWidth}px`,
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
|
+
flex: `0 0 ${panelWidth}px`,
|
|
13
|
+
position: 'relative',
|
|
14
|
+
overflow: 'hidden'
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
|
+
export const RightSidePanelDrawerContent = styled.div({
|
|
19
|
+
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
20
|
+
boxSizing: 'border-box',
|
|
21
|
+
flex: 1,
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
23
|
+
borderLeft: `3px solid ${`var(--ds-border, ${colors.N30})`}`,
|
|
24
|
+
overflow: 'hidden',
|
|
25
|
+
flexDirection: 'column',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
+
width: `${panelWidth}px`,
|
|
28
|
+
height: '100%',
|
|
29
|
+
position: 'fixed'
|
|
30
|
+
});
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import styled from '@emotion/styled';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
|
+
export const FlexContainer = styled.div({
|
|
7
|
+
display: 'flex'
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
|
+
export const ContentWrapper = styled.div({
|
|
12
|
+
position: 'relative',
|
|
13
|
+
minWidth: 0,
|
|
14
|
+
flex: '1 1 auto',
|
|
15
|
+
overflowX: 'hidden'
|
|
16
|
+
});
|
|
@@ -16,19 +16,6 @@ import { createPortal } from 'react-dom';
|
|
|
16
16
|
import { Transition } from 'react-transition-group';
|
|
17
17
|
import { transitionDurationMs, panelWidth } from './constants';
|
|
18
18
|
import { RightSidePanelDrawer, RightSidePanelDrawerContent } from './styled';
|
|
19
|
-
export var UNMOUNTED = 'unmounted';
|
|
20
|
-
export var EXITED = 'exited';
|
|
21
|
-
export var ENTERING = 'entering';
|
|
22
|
-
export var ENTERED = 'entered';
|
|
23
|
-
export var EXITING = 'exiting';
|
|
24
|
-
export var TransitionStatus = /*#__PURE__*/function (TransitionStatus) {
|
|
25
|
-
TransitionStatus["UNMOUNTED"] = "unmounted";
|
|
26
|
-
TransitionStatus["EXITED"] = "exited";
|
|
27
|
-
TransitionStatus["ENTERING"] = "entering";
|
|
28
|
-
TransitionStatus["ENTERED"] = "entered";
|
|
29
|
-
TransitionStatus["EXITING"] = "exiting";
|
|
30
|
-
return TransitionStatus;
|
|
31
|
-
}({});
|
|
32
19
|
var defaultStyle = {
|
|
33
20
|
transition: "width ".concat(transitionDurationMs, "ms,\n flex ").concat(transitionDurationMs, "ms"),
|
|
34
21
|
width: "0",
|
|
@@ -1,8 +1,30 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
3
|
import styled from '@emotion/styled';
|
|
5
4
|
import * as colors from '@atlaskit/theme/colors';
|
|
6
5
|
import { panelWidth } from './constants';
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
|
+
export var RightSidePanelDrawer = styled.div({
|
|
9
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
10
|
+
width: "".concat(panelWidth, "px"),
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
|
+
flex: "0 0 ".concat(panelWidth, "px"),
|
|
13
|
+
position: 'relative',
|
|
14
|
+
overflow: 'hidden'
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
|
+
export var RightSidePanelDrawerContent = styled.div({
|
|
19
|
+
backgroundColor: "var(--ds-surface-overlay, white)",
|
|
20
|
+
boxSizing: 'border-box',
|
|
21
|
+
flex: 1,
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
23
|
+
borderLeft: "3px solid ".concat("var(--ds-border, ".concat(colors.N30, ")")),
|
|
24
|
+
overflow: 'hidden',
|
|
25
|
+
flexDirection: 'column',
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
27
|
+
width: "".concat(panelWidth, "px"),
|
|
28
|
+
height: '100%',
|
|
29
|
+
position: 'fixed'
|
|
30
|
+
});
|
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
3
|
import styled from '@emotion/styled';
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
|
+
export var FlexContainer = styled.div({
|
|
7
|
+
display: 'flex'
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
|
+
export var ContentWrapper = styled.div({
|
|
12
|
+
position: 'relative',
|
|
13
|
+
minWidth: 0,
|
|
14
|
+
flex: '1 1 auto',
|
|
15
|
+
overflowX: 'hidden'
|
|
16
|
+
});
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Component, ReactNode } from 'react';
|
|
3
|
-
export
|
|
4
|
-
export declare const EXITED = "exited";
|
|
5
|
-
export declare const ENTERING = "entering";
|
|
6
|
-
export declare const ENTERED = "entered";
|
|
7
|
-
export declare const EXITING = "exiting";
|
|
8
|
-
export declare enum TransitionStatus {
|
|
9
|
-
UNMOUNTED = "unmounted",
|
|
10
|
-
EXITED = "exited",
|
|
11
|
-
ENTERING = "entering",
|
|
12
|
-
ENTERED = "entered",
|
|
13
|
-
EXITING = "exiting"
|
|
14
|
-
}
|
|
2
|
+
import { Component, type ReactNode } from 'react';
|
|
3
|
+
export type TransitionStatus = 'unmounted' | 'exiting' | 'entering' | 'entered' | 'exited';
|
|
15
4
|
export interface Props {
|
|
16
5
|
isOpen: boolean;
|
|
17
6
|
attachPanelTo: string;
|
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Component, ReactNode } from 'react';
|
|
3
|
-
export
|
|
4
|
-
export declare const EXITED = "exited";
|
|
5
|
-
export declare const ENTERING = "entering";
|
|
6
|
-
export declare const ENTERED = "entered";
|
|
7
|
-
export declare const EXITING = "exiting";
|
|
8
|
-
export declare enum TransitionStatus {
|
|
9
|
-
UNMOUNTED = "unmounted",
|
|
10
|
-
EXITED = "exited",
|
|
11
|
-
ENTERING = "entering",
|
|
12
|
-
ENTERED = "entered",
|
|
13
|
-
EXITING = "exiting"
|
|
14
|
-
}
|
|
2
|
+
import { Component, type ReactNode } from 'react';
|
|
3
|
+
export type TransitionStatus = 'unmounted' | 'exiting' | 'entering' | 'entered' | 'exited';
|
|
15
4
|
export interface Props {
|
|
16
5
|
isOpen: boolean;
|
|
17
6
|
attachPanelTo: string;
|
package/docs/0-intro.tsx
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { md, code, Props, AtlassianInternalWarning } from '@atlaskit/docs';
|
|
3
|
-
import Button from '@atlaskit/button
|
|
3
|
+
import Button from '@atlaskit/button';
|
|
4
4
|
import { token } from '@atlaskit/tokens';
|
|
5
5
|
|
|
6
6
|
export default md`
|
|
7
7
|
${(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
<>
|
|
9
|
+
{/* eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766 */}
|
|
10
|
+
<div style={{ marginBottom: token('space.100', '0.5rem') }}>
|
|
11
|
+
<AtlassianInternalWarning />
|
|
12
|
+
</div>
|
|
13
|
+
</>
|
|
14
|
+
)}
|
|
14
15
|
|
|
15
16
|
## Usage
|
|
16
17
|
|
|
@@ -69,24 +70,20 @@ export default md`
|
|
|
69
70
|
}
|
|
70
71
|
`}
|
|
71
72
|
|
|
72
|
-
${
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
</div>
|
|
85
|
-
)}
|
|
73
|
+
${
|
|
74
|
+
(
|
|
75
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
76
|
+
<div style={{ paddingTop: token('space.200', '16px') }}>
|
|
77
|
+
<Button
|
|
78
|
+
onClick={() => window.open('/examples/help/right-side-panel/0-Right-Side-Panel', '_self')}
|
|
79
|
+
>
|
|
80
|
+
Open Example
|
|
81
|
+
</Button>
|
|
82
|
+
</div>
|
|
83
|
+
)
|
|
84
|
+
}
|
|
86
85
|
|
|
87
86
|
${(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
/>
|
|
91
|
-
)}
|
|
87
|
+
<Props props={require('!!extract-react-types-loader!../src/components/RightSidePanel/index')} />
|
|
88
|
+
)}
|
|
92
89
|
`;
|
package/package.json
CHANGED
|
@@ -1,77 +1,75 @@
|
|
|
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
|
-
}
|
|
2
|
+
"name": "@atlaskit/right-side-panel",
|
|
3
|
+
"version": "1.2.10",
|
|
4
|
+
"description": "A cross-product right-side-panel component",
|
|
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
|
+
"typesVersions": {
|
|
16
|
+
">=4.5 <4.9": {
|
|
17
|
+
"*": [
|
|
18
|
+
"dist/types-ts4.5/*",
|
|
19
|
+
"dist/types-ts4.5/index.d.ts"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"atlaskit:src": "src/index.ts",
|
|
25
|
+
"af:exports": {
|
|
26
|
+
".": "./src/index.ts"
|
|
27
|
+
},
|
|
28
|
+
"atlassian": {
|
|
29
|
+
"team": "Self-Help Experiences",
|
|
30
|
+
"releaseModel": "continuous",
|
|
31
|
+
"productPushConsumption": [
|
|
32
|
+
"jira"
|
|
33
|
+
],
|
|
34
|
+
"website": {
|
|
35
|
+
"name": "Right Side Panel"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@atlaskit/theme": "^12.11.0",
|
|
40
|
+
"@atlaskit/tokens": "^1.53.0",
|
|
41
|
+
"@babel/runtime": "^7.0.0",
|
|
42
|
+
"@emotion/styled": "^11.0.0",
|
|
43
|
+
"exenv": "^1.2.2",
|
|
44
|
+
"react-transition-group": "^4.4.1"
|
|
45
|
+
},
|
|
46
|
+
"peerDependencies": {
|
|
47
|
+
"react": "^16.8.0",
|
|
48
|
+
"react-dom": "^16.8.0",
|
|
49
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
50
|
+
},
|
|
51
|
+
"devDependencies": {
|
|
52
|
+
"@atlaskit/navigation": "^37.0.0",
|
|
53
|
+
"@atlaskit/page": "^12.5.0",
|
|
54
|
+
"@types/exenv": "^1.2.0",
|
|
55
|
+
"@types/react-transition-group": "^2.0.6",
|
|
56
|
+
"enzyme": "^3.10.0",
|
|
57
|
+
"react-test-renderer": "^16.8.0",
|
|
58
|
+
"typescript": "~5.4.2"
|
|
59
|
+
},
|
|
60
|
+
"keywords": [
|
|
61
|
+
"atlaskit",
|
|
62
|
+
"react",
|
|
63
|
+
"ui",
|
|
64
|
+
"core",
|
|
65
|
+
"panel"
|
|
66
|
+
],
|
|
67
|
+
"techstack": {
|
|
68
|
+
"@repo/internal": {
|
|
69
|
+
"design-tokens": [
|
|
70
|
+
"color",
|
|
71
|
+
"spacing"
|
|
72
|
+
]
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
package/report.api.md
CHANGED
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
## API Report File for "@atlaskit/right-side-panel"
|
|
4
4
|
|
|
5
|
-
> Do not edit this file. This report is auto-generated using
|
|
5
|
+
> Do not edit this file. This report is auto-generated using
|
|
6
|
+
> [API Extractor](https://api-extractor.com/).
|
|
6
7
|
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
8
|
|
|
8
9
|
### Table of contents
|
|
@@ -27,71 +28,71 @@ import { StyledComponent } from '@emotion/styled-base';
|
|
|
27
28
|
|
|
28
29
|
// @public (undocumented)
|
|
29
30
|
export const ContentWrapper: StyledComponent<
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
32
|
+
Pick<
|
|
33
|
+
ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>,
|
|
34
|
+
keyof HTMLAttributes<HTMLDivElement>
|
|
35
|
+
>,
|
|
36
|
+
object
|
|
36
37
|
>;
|
|
37
38
|
|
|
38
39
|
// @public (undocumented)
|
|
39
40
|
export const FlexContainer: StyledComponent<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
41
|
+
DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>,
|
|
42
|
+
Pick<
|
|
43
|
+
ClassAttributes<HTMLDivElement> & HTMLAttributes<HTMLDivElement>,
|
|
44
|
+
keyof HTMLAttributes<HTMLDivElement>
|
|
45
|
+
>,
|
|
46
|
+
object
|
|
46
47
|
>;
|
|
47
48
|
|
|
48
49
|
// @public (undocumented)
|
|
49
50
|
interface Props {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
51
|
+
// (undocumented)
|
|
52
|
+
attachPanelTo: string;
|
|
53
|
+
// (undocumented)
|
|
54
|
+
children?: ReactNode;
|
|
55
|
+
// (undocumented)
|
|
56
|
+
disableEnterAnimation?: boolean;
|
|
57
|
+
// (undocumented)
|
|
58
|
+
disableExitAnimation?: boolean;
|
|
59
|
+
// (undocumented)
|
|
60
|
+
isOpen: boolean;
|
|
61
|
+
// (undocumented)
|
|
62
|
+
mountOnEnter?: boolean;
|
|
63
|
+
// (undocumented)
|
|
64
|
+
onCloseAnimationFinished?: () => void;
|
|
65
|
+
// (undocumented)
|
|
66
|
+
onOpenAnimationFinished?: () => void;
|
|
67
|
+
// (undocumented)
|
|
68
|
+
skipAnimationOnMount?: boolean;
|
|
69
|
+
// (undocumented)
|
|
70
|
+
unmountOnExit?: boolean;
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
// @public (undocumented)
|
|
73
74
|
export class RightSidePanel extends Component<Props, State> {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
75
|
+
// (undocumented)
|
|
76
|
+
attachPanelTo: string;
|
|
77
|
+
// (undocumented)
|
|
78
|
+
componentDidMount(): void;
|
|
79
|
+
// (undocumented)
|
|
80
|
+
render(): React_2.ReactNode;
|
|
81
|
+
// (undocumented)
|
|
82
|
+
renderDrawer(Container: HTMLElement): ReactNode;
|
|
83
|
+
// (undocumented)
|
|
84
|
+
state: {
|
|
85
|
+
entered: boolean;
|
|
86
|
+
container: undefined;
|
|
87
|
+
};
|
|
87
88
|
}
|
|
88
89
|
|
|
89
90
|
// @public (undocumented)
|
|
90
91
|
interface State {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
// (undocumented)
|
|
93
|
+
container?: Element | null;
|
|
94
|
+
// (undocumented)
|
|
95
|
+
entered: boolean;
|
|
95
96
|
}
|
|
96
97
|
|
|
97
98
|
// (No @packageDocumentation comment for this package)
|
|
@@ -105,9 +106,9 @@ interface State {
|
|
|
105
106
|
|
|
106
107
|
```json
|
|
107
108
|
{
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
109
|
+
"react": "^16.8.0",
|
|
110
|
+
"react-dom": "^16.8.0",
|
|
111
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
111
112
|
}
|
|
112
113
|
```
|
|
113
114
|
|