@atlassian/clientside-extensions-components 4.0.2 → 5.1.0-5a180d69-mdyn784a

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 (95) hide show
  1. package/dist/cjs/ExtensionPoint.js +1 -1
  2. package/dist/cjs/ExtensionPoint.js.map +1 -1
  3. package/dist/cjs/ExtensionPointInfo.js +27 -20
  4. package/dist/cjs/ExtensionPointInfo.js.map +1 -1
  5. package/dist/cjs/ExtensionsObservable.js +1 -1
  6. package/dist/cjs/ExtensionsObservable.js.map +1 -1
  7. package/dist/cjs/handlers/AsyncPanelHandler.js +1 -1
  8. package/dist/cjs/handlers/AsyncPanelHandler.js.map +1 -1
  9. package/dist/cjs/handlers/ButtonHandler.js +2 -2
  10. package/dist/cjs/handlers/ButtonHandler.js.map +1 -1
  11. package/dist/cjs/handlers/LinkHandler.js +2 -2
  12. package/dist/cjs/handlers/LinkHandler.js.map +1 -1
  13. package/dist/cjs/handlers/ModalHandler.js +5 -5
  14. package/dist/cjs/handlers/ModalHandler.js.map +1 -1
  15. package/dist/cjs/handlers/PanelHandler.js +1 -1
  16. package/dist/cjs/handlers/PanelHandler.js.map +1 -1
  17. package/dist/cjs/handlers/SectionHandler.js +1 -2
  18. package/dist/cjs/handlers/SectionHandler.js.map +1 -1
  19. package/dist/cjs/index.js +10 -10
  20. package/dist/cjs/index.js.map +1 -1
  21. package/dist/cjs/renderElementAsReact.js +4 -3
  22. package/dist/cjs/renderElementAsReact.js.map +1 -1
  23. package/dist/cjs/styled.js +17 -47
  24. package/dist/cjs/styled.js.map +1 -1
  25. package/dist/cjs/types.js +1 -2
  26. package/dist/cjs/types.js.map +1 -1
  27. package/dist/cjs/useExtensions.js +1 -1
  28. package/dist/cjs/useExtensions.js.map +1 -1
  29. package/dist/cjs/useWebPanelRenderer.js.map +1 -1
  30. package/dist/esm/ExtensionPoint.js.map +1 -1
  31. package/dist/esm/ExtensionPointInfo.js +26 -19
  32. package/dist/esm/ExtensionPointInfo.js.map +1 -1
  33. package/dist/esm/ExtensionsObservable.js.map +1 -1
  34. package/dist/esm/handlers/AsyncPanelHandler.js.map +1 -1
  35. package/dist/esm/handlers/ButtonHandler.js.map +1 -1
  36. package/dist/esm/handlers/LinkHandler.js.map +1 -1
  37. package/dist/esm/handlers/ModalHandler.js +5 -5
  38. package/dist/esm/handlers/ModalHandler.js.map +1 -1
  39. package/dist/esm/handlers/PanelHandler.js.map +1 -1
  40. package/dist/esm/handlers/SectionHandler.js +0 -1
  41. package/dist/esm/handlers/SectionHandler.js.map +1 -1
  42. package/dist/esm/renderElementAsReact.js +3 -2
  43. package/dist/esm/renderElementAsReact.js.map +1 -1
  44. package/dist/esm/styled.js +14 -44
  45. package/dist/esm/styled.js.map +1 -1
  46. package/dist/esm/useExtensions.js.map +1 -1
  47. package/dist/esm/useWebPanelRenderer.js.map +1 -1
  48. package/dist/types/ExtensionPointInfo.d.ts +1 -1
  49. package/dist/types/ExtensionPointInfo.d.ts.map +1 -1
  50. package/dist/types/ExtensionsObservable.d.ts.map +1 -1
  51. package/dist/types/debug/types.d.ts +1 -1
  52. package/dist/types/debug/types.d.ts.map +1 -1
  53. package/dist/types/debug/useDebug.d.ts.map +1 -1
  54. package/dist/types/debug/useDiscovery.d.ts.map +1 -1
  55. package/dist/types/debug/useLogging.d.ts.map +1 -1
  56. package/dist/types/debug/useValidation.d.ts.map +1 -1
  57. package/dist/types/handlers/AsyncPanelHandler.d.ts +1 -1
  58. package/dist/types/handlers/AsyncPanelHandler.d.ts.map +1 -1
  59. package/dist/types/handlers/ButtonHandler.d.ts +2 -0
  60. package/dist/types/handlers/ButtonHandler.d.ts.map +1 -1
  61. package/dist/types/handlers/LinkHandler.d.ts +2 -0
  62. package/dist/types/handlers/LinkHandler.d.ts.map +1 -1
  63. package/dist/types/handlers/ModalHandler.d.ts +2 -1
  64. package/dist/types/handlers/ModalHandler.d.ts.map +1 -1
  65. package/dist/types/handlers/SectionHandler.d.ts +6 -1
  66. package/dist/types/handlers/SectionHandler.d.ts.map +1 -1
  67. package/dist/types/renderElementAsReact.d.ts +2 -1
  68. package/dist/types/renderElementAsReact.d.ts.map +1 -1
  69. package/dist/types/styled.d.ts +33 -14
  70. package/dist/types/styled.d.ts.map +1 -1
  71. package/dist/types/types.d.ts +4 -4
  72. package/dist/types/types.d.ts.map +1 -1
  73. package/dist/types/useExtensions.d.ts.map +1 -1
  74. package/lib/ExtensionPoint.test.tsx +1 -1
  75. package/lib/ExtensionPointInfo.test.tsx +1 -1
  76. package/lib/ExtensionPointInfo.tsx +51 -24
  77. package/lib/ExtensionsObservable.test.ts +1 -1
  78. package/lib/__snapshots__/ExtensionPointInfo.test.tsx.snap +203 -124
  79. package/lib/debug/useDebug.test.ts +2 -2
  80. package/lib/debug/useDiscovery.test.ts +2 -2
  81. package/lib/debug/useLogging.test.ts +2 -2
  82. package/lib/debug/useValidation.test.ts +2 -2
  83. package/lib/handlers/ButtonHandler.test.tsx +5 -1
  84. package/lib/handlers/ButtonHandler.tsx +3 -1
  85. package/lib/handlers/LinkHandler.test.tsx +5 -1
  86. package/lib/handlers/LinkHandler.tsx +1 -0
  87. package/lib/handlers/ModalHandler.test.tsx +9 -7
  88. package/lib/handlers/ModalHandler.tsx +11 -9
  89. package/lib/handlers/SectionHandler.test.tsx +1 -1
  90. package/lib/handlers/SectionHandler.tsx +5 -1
  91. package/lib/renderElementAsReact.test.tsx +7 -6
  92. package/lib/renderElementAsReact.tsx +12 -3
  93. package/lib/styled.ts +15 -46
  94. package/lib/useExtensions.test.ts +49 -43
  95. package/package.json +25 -24
@@ -21,7 +21,9 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
21
21
  id="___cse_info_container"
22
22
  style="overflow-y: auto; overflow-x: hidden; padding: 24px; flex: 1 1 auto;"
23
23
  >
24
- <h2>
24
+ <h2
25
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8lodh _syaz1fxt"
26
+ >
25
27
  Attributes
26
28
  </h2>
27
29
  <p>
@@ -33,25 +35,25 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
33
35
  >
34
36
  <thead>
35
37
  <tr
36
- class="css-19act59"
38
+ class="css-14xksyd"
37
39
  >
38
40
  <th
39
- class="css-1hdb03v"
41
+ class="css-1b5w8kk"
40
42
  >
41
43
  Name
42
44
  </th>
43
45
  <th
44
- class="css-1hdb03v"
46
+ class="css-1b5w8kk"
45
47
  >
46
48
  Type
47
49
  </th>
48
50
  <th
49
- class="css-1hdb03v"
51
+ class="css-1b5w8kk"
50
52
  >
51
53
  Required
52
54
  </th>
53
55
  <th
54
- class="css-1hdb03v"
56
+ class="css-1b5w8kk"
55
57
  >
56
58
  Description
57
59
  </th>
@@ -59,17 +61,17 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
59
61
  </thead>
60
62
  <tbody>
61
63
  <tr
62
- class="css-19n8cn9"
64
+ class="css-j23gk5"
63
65
  >
64
66
  <td
65
- class="css-f1b4tf"
67
+ class="css-155dnrl"
66
68
  width="15%"
67
69
  >
68
70
 
69
71
  type
70
72
  </td>
71
73
  <td
72
- class="css-f1b4tf"
74
+ class="css-155dnrl"
73
75
  width="15%"
74
76
  >
75
77
  <a
@@ -79,29 +81,29 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
79
81
  </a>
80
82
  </td>
81
83
  <td
82
- class="css-f1b4tf"
84
+ class="css-155dnrl"
83
85
  width="10%"
84
86
  >
85
87
  true
86
88
  </td>
87
89
  <td
88
- class="css-f1b4tf"
90
+ class="css-155dnrl"
89
91
  >
90
92
  Extension type
91
93
  </td>
92
94
  </tr>
93
95
  <tr
94
- class="css-19n8cn9"
96
+ class="css-j23gk5"
95
97
  >
96
98
  <td
97
- class="css-f1b4tf"
99
+ class="css-155dnrl"
98
100
  width="15%"
99
101
  >
100
102
 
101
103
  label
102
104
  </td>
103
105
  <td
104
- class="css-f1b4tf"
106
+ class="css-155dnrl"
105
107
  width="15%"
106
108
  >
107
109
  <a
@@ -111,27 +113,27 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
111
113
  </a>
112
114
  </td>
113
115
  <td
114
- class="css-f1b4tf"
116
+ class="css-155dnrl"
115
117
  width="10%"
116
118
  >
117
119
  true
118
120
  </td>
119
121
  <td
120
- class="css-f1b4tf"
122
+ class="css-155dnrl"
121
123
  />
122
124
  </tr>
123
125
  <tr
124
- class="css-19n8cn9"
126
+ class="css-j23gk5"
125
127
  >
126
128
  <td
127
- class="css-f1b4tf"
129
+ class="css-155dnrl"
128
130
  width="15%"
129
131
  >
130
132
 
131
133
  glyph
132
134
  </td>
133
135
  <td
134
- class="css-f1b4tf"
136
+ class="css-155dnrl"
135
137
  width="15%"
136
138
  >
137
139
  <a
@@ -141,29 +143,29 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
141
143
  </a>
142
144
  </td>
143
145
  <td
144
- class="css-f1b4tf"
146
+ class="css-155dnrl"
145
147
  width="10%"
146
148
  >
147
149
  false
148
150
  </td>
149
151
  <td
150
- class="css-f1b4tf"
152
+ class="css-155dnrl"
151
153
  >
152
154
  Glyph name
153
155
  </td>
154
156
  </tr>
155
157
  <tr
156
- class="css-19n8cn9"
158
+ class="css-j23gk5"
157
159
  >
158
160
  <td
159
- class="css-f1b4tf"
161
+ class="css-155dnrl"
160
162
  width="15%"
161
163
  >
162
164
 
163
165
  hidden
164
166
  </td>
165
167
  <td
166
- class="css-f1b4tf"
168
+ class="css-155dnrl"
167
169
  width="15%"
168
170
  >
169
171
  <a
@@ -173,29 +175,29 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
173
175
  </a>
174
176
  </td>
175
177
  <td
176
- class="css-f1b4tf"
178
+ class="css-155dnrl"
177
179
  width="10%"
178
180
  >
179
181
  false
180
182
  </td>
181
183
  <td
182
- class="css-f1b4tf"
184
+ class="css-155dnrl"
183
185
  >
184
186
  Hidden flag to hide web-item
185
187
  </td>
186
188
  </tr>
187
189
  <tr
188
- class="css-19n8cn9"
190
+ class="css-j23gk5"
189
191
  >
190
192
  <td
191
- class="css-f1b4tf"
193
+ class="css-155dnrl"
192
194
  width="15%"
193
195
  >
194
196
 
195
197
  onAction
196
198
  </td>
197
199
  <td
198
- class="css-f1b4tf"
200
+ class="css-155dnrl"
199
201
  width="15%"
200
202
  >
201
203
  <a
@@ -205,22 +207,28 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
205
207
  </a>
206
208
  </td>
207
209
  <td
208
- class="css-f1b4tf"
210
+ class="css-155dnrl"
209
211
  width="10%"
210
212
  >
211
213
  false
212
214
  </td>
213
215
  <td
214
- class="css-f1b4tf"
216
+ class="css-155dnrl"
215
217
  >
216
218
  Callback triggered on user interaction with the Web-item. Signature depends on web-item type.
217
219
  </td>
218
220
  </tr>
219
221
  </tbody>
220
222
  </table>
221
- <h2>
222
- Context
223
- </h2>
223
+ <div
224
+ class="css-1dlo9dk"
225
+ >
226
+ <h2
227
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8lodh _syaz1fxt"
228
+ >
229
+ Context
230
+ </h2>
231
+ </div>
224
232
  <p>
225
233
  List of values provided by this extension point as context.
226
234
  </p>
@@ -230,25 +238,25 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
230
238
  >
231
239
  <thead>
232
240
  <tr
233
- class="css-19act59"
241
+ class="css-14xksyd"
234
242
  >
235
243
  <th
236
- class="css-1hdb03v"
244
+ class="css-1b5w8kk"
237
245
  >
238
246
  Name
239
247
  </th>
240
248
  <th
241
- class="css-1hdb03v"
249
+ class="css-1b5w8kk"
242
250
  >
243
251
  Type
244
252
  </th>
245
253
  <th
246
- class="css-1hdb03v"
254
+ class="css-1b5w8kk"
247
255
  >
248
256
  Required
249
257
  </th>
250
258
  <th
251
- class="css-1hdb03v"
259
+ class="css-1b5w8kk"
252
260
  >
253
261
  Description
254
262
  </th>
@@ -256,17 +264,17 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
256
264
  </thead>
257
265
  <tbody>
258
266
  <tr
259
- class="css-19n8cn9"
267
+ class="css-j23gk5"
260
268
  >
261
269
  <td
262
- class="css-f1b4tf"
270
+ class="css-155dnrl"
263
271
  width="15%"
264
272
  >
265
273
 
266
274
  value
267
275
  </td>
268
276
  <td
269
- class="css-f1b4tf"
277
+ class="css-155dnrl"
270
278
  width="15%"
271
279
  >
272
280
  <a
@@ -276,52 +284,64 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
276
284
  </a>
277
285
  </td>
278
286
  <td
279
- class="css-f1b4tf"
287
+ class="css-155dnrl"
280
288
  width="10%"
281
289
  >
282
290
  false
283
291
  </td>
284
292
  <td
285
- class="css-f1b4tf"
293
+ class="css-155dnrl"
286
294
  />
287
295
  </tr>
288
296
  </tbody>
289
297
  </table>
290
- <h2>
291
- Types reference
292
- </h2>
293
- <h3>
294
- <div
295
- name="FooInput"
298
+ <div
299
+ class="css-1dlo9dk"
300
+ >
301
+ <h2
302
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8lodh _syaz1fxt"
303
+ >
304
+ Types reference
305
+ </h2>
306
+ </div>
307
+ <div
308
+ class="css-1dlo9dk"
309
+ >
310
+ <h3
311
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8nbxd _syaz1fxt"
296
312
  >
297
- FooInput
298
- </div>
299
- </h3>
313
+ <div
314
+ id="FooInput"
315
+ >
316
+ FooInput
317
+ </div>
318
+ </h3>
319
+ </div>
300
320
  <p />
301
321
  <table
302
322
  class="css-1qasree"
303
323
  >
304
324
  <thead>
305
325
  <tr
306
- class="css-19act59"
326
+ class="css-14xksyd"
307
327
  >
308
328
  <th
309
- class="css-1hdb03v"
329
+ class="css-1b5w8kk"
310
330
  >
311
331
  Name
312
332
  </th>
313
333
  <th
314
- class="css-1hdb03v"
334
+ class="css-1b5w8kk"
315
335
  >
316
336
  Type
317
337
  </th>
318
338
  <th
319
- class="css-1hdb03v"
339
+ class="css-1b5w8kk"
320
340
  >
321
341
  Required
322
342
  </th>
323
343
  <th
324
- class="css-1hdb03v"
344
+ class="css-1b5w8kk"
325
345
  >
326
346
  Description
327
347
  </th>
@@ -329,17 +349,17 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
329
349
  </thead>
330
350
  <tbody>
331
351
  <tr
332
- class="css-19n8cn9"
352
+ class="css-j23gk5"
333
353
  >
334
354
  <td
335
- class="css-f1b4tf"
355
+ class="css-155dnrl"
336
356
  width="15%"
337
357
  >
338
358
 
339
359
  foo
340
360
  </td>
341
361
  <td
342
- class="css-f1b4tf"
362
+ class="css-155dnrl"
343
363
  width="15%"
344
364
  >
345
365
  <a
@@ -349,41 +369,52 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
349
369
  </a>
350
370
  </td>
351
371
  <td
352
- class="css-f1b4tf"
372
+ class="css-155dnrl"
353
373
  width="10%"
354
374
  >
355
375
  true
356
376
  </td>
357
377
  <td
358
- class="css-f1b4tf"
378
+ class="css-155dnrl"
359
379
  />
360
380
  </tr>
361
381
  </tbody>
362
382
  </table>
363
- <h3>
364
- <div
365
- name="GlyphType"
383
+ <div
384
+ class="css-1dlo9dk"
385
+ >
386
+ <h3
387
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8nbxd _syaz1fxt"
366
388
  >
367
- GlyphType
368
- </div>
369
- </h3>
389
+ <div
390
+ id="GlyphType"
391
+ >
392
+ GlyphType
393
+ </div>
394
+ </h3>
395
+ </div>
370
396
  <p>
371
397
  Enum type with the following values:
372
398
  <b>
373
399
  cross, tick
374
400
  </b>
375
401
  </p>
376
- <h3>
377
- <div
378
- name="AvailableTypes"
402
+ <div
403
+ class="css-1dlo9dk"
404
+ >
405
+ <h3
406
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8nbxd _syaz1fxt"
379
407
  >
380
- AvailableTypes
381
- </div>
382
- </h3>
408
+ <div
409
+ id="AvailableTypes"
410
+ >
411
+ AvailableTypes
412
+ </div>
413
+ </h3>
414
+ </div>
383
415
  <p>
384
416
  Union of the following types:
385
417
 
386
-
387
418
  <a
388
419
  href=""
389
420
  >
@@ -408,83 +439,131 @@ exports[`ExtensionPointInfo should show the extension info in a modal when the i
408
439
  PanelType
409
440
  </a>
410
441
  </p>
411
- <h3>
412
- <div
413
- name="ModalType"
442
+ <div
443
+ class="css-1dlo9dk"
444
+ >
445
+ <h3
446
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8nbxd _syaz1fxt"
414
447
  >
415
- ModalType
416
- </div>
417
- </h3>
448
+ <div
449
+ id="ModalType"
450
+ >
451
+ ModalType
452
+ </div>
453
+ </h3>
454
+ </div>
418
455
  <p>
419
456
  The value must be the constant "modal".
420
457
  </p>
421
- <h3>
422
- <div
423
- name="LinkType"
458
+ <div
459
+ class="css-1dlo9dk"
460
+ >
461
+ <h3
462
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8nbxd _syaz1fxt"
424
463
  >
425
- LinkType
426
- </div>
427
- </h3>
464
+ <div
465
+ id="LinkType"
466
+ >
467
+ LinkType
468
+ </div>
469
+ </h3>
470
+ </div>
428
471
  <p>
429
472
  The value must be the constant "link".
430
473
  </p>
431
- <h3>
432
- <div
433
- name="ButtonType"
474
+ <div
475
+ class="css-1dlo9dk"
476
+ >
477
+ <h3
478
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8nbxd _syaz1fxt"
434
479
  >
435
- ButtonType
436
- </div>
437
- </h3>
480
+ <div
481
+ id="ButtonType"
482
+ >
483
+ ButtonType
484
+ </div>
485
+ </h3>
486
+ </div>
438
487
  <p>
439
488
  The value must be the constant "button".
440
489
  </p>
441
- <h3>
442
- <div
443
- name="PanelType"
490
+ <div
491
+ class="css-1dlo9dk"
492
+ >
493
+ <h3
494
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8nbxd _syaz1fxt"
444
495
  >
445
- PanelType
446
- </div>
447
- </h3>
496
+ <div
497
+ id="PanelType"
498
+ >
499
+ PanelType
500
+ </div>
501
+ </h3>
502
+ </div>
448
503
  <p>
449
504
  The value must be the constant "panel".
450
505
  </p>
451
- <h3>
452
- <div
453
- name="String"
506
+ <div
507
+ class="css-1dlo9dk"
508
+ >
509
+ <h3
510
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8nbxd _syaz1fxt"
454
511
  >
455
- String
456
- </div>
457
- </h3>
512
+ <div
513
+ id="String"
514
+ >
515
+ String
516
+ </div>
517
+ </h3>
518
+ </div>
458
519
  <p>
459
520
  The \`String\` type represents textual data.
460
521
  </p>
461
- <h3>
462
- <div
463
- name="Boolean"
522
+ <div
523
+ class="css-1dlo9dk"
524
+ >
525
+ <h3
526
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8nbxd _syaz1fxt"
464
527
  >
465
- Boolean
466
- </div>
467
- </h3>
528
+ <div
529
+ id="Boolean"
530
+ >
531
+ Boolean
532
+ </div>
533
+ </h3>
534
+ </div>
468
535
  <p>
469
536
  The \`Boolean\` type represents \`true\` or \`false\`.
470
537
  </p>
471
- <h3>
472
- <div
473
- name="Function"
538
+ <div
539
+ class="css-1dlo9dk"
540
+ >
541
+ <h3
542
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8nbxd _syaz1fxt"
474
543
  >
475
- Function
476
- </div>
477
- </h3>
544
+ <div
545
+ id="Function"
546
+ >
547
+ Function
548
+ </div>
549
+ </h3>
550
+ </div>
478
551
  <p>
479
552
  The \`Function\` type represents any javascript function.
480
553
  </p>
481
- <h3>
482
- <div
483
- name="Number"
554
+ <div
555
+ class="css-1dlo9dk"
556
+ >
557
+ <h3
558
+ class="_1mouidpf _1dyz4jg8 _1p1dglyw _11c8nbxd _syaz1fxt"
484
559
  >
485
- Number
486
- </div>
487
- </h3>
560
+ <div
561
+ id="Number"
562
+ >
563
+ Number
564
+ </div>
565
+ </h3>
566
+ </div>
488
567
  <p>
489
568
  The value should be a number.
490
569
  </p>
@@ -1,5 +1,5 @@
1
- import { mocked } from 'ts-jest/utils';
2
- import { act, renderHook } from '@testing-library/react-hooks';
1
+ import { mocked } from 'jest-mock';
2
+ import { act, renderHook } from '@testing-library/react';
3
3
  import { isDebugEnabled, LogLevel, observeStateChange } from '@atlassian/clientside-extensions-debug';
4
4
  import useDebug from './useDebug';
5
5
 
@@ -1,5 +1,5 @@
1
- import { mocked } from 'ts-jest/utils';
2
- import { act, renderHook } from '@testing-library/react-hooks';
1
+ import { mocked } from 'jest-mock';
2
+ import { act, renderHook } from '@testing-library/react';
3
3
  import { isDiscoveryEnabled, LogLevel, observeStateChange } from '@atlassian/clientside-extensions-debug';
4
4
  import useDiscovery from './useDiscovery';
5
5
 
@@ -1,5 +1,5 @@
1
- import { mocked } from 'ts-jest/utils';
2
- import { act, renderHook } from '@testing-library/react-hooks';
1
+ import { mocked } from 'jest-mock';
2
+ import { act, renderHook } from '@testing-library/react';
3
3
  import { isLoggingEnabled, LogLevel, observeStateChange } from '@atlassian/clientside-extensions-debug';
4
4
  import useLogging from './useLogging';
5
5
 
@@ -1,5 +1,5 @@
1
- import { mocked } from 'ts-jest/utils';
2
- import { act, renderHook } from '@testing-library/react-hooks';
1
+ import { mocked } from 'jest-mock';
2
+ import { act, renderHook } from '@testing-library/react';
3
3
  import { isValidationEnabled, LogLevel, observeStateChange } from '@atlassian/clientside-extensions-debug';
4
4
  import useValidation from './useValidation';
5
5
 
@@ -6,7 +6,11 @@ import type { FunctionComponent } from 'react';
6
6
  import { ButtonHandler } from './ButtonHandler';
7
7
  import Mock = jest.Mock;
8
8
 
9
- const TestComponent: FunctionComponent<{ onAction: () => void; attributes?: object }> = ({ onAction, attributes, children }) => {
9
+ const TestComponent: FunctionComponent<{ onAction: () => void; attributes?: object; children?: React.ReactNode }> = ({
10
+ onAction,
11
+ attributes,
12
+ children,
13
+ }) => {
10
14
  return (
11
15
  // eslint-disable-next-line react/jsx-props-no-spreading
12
16
  <ButtonHandler onAction={onAction} {...attributes}>
@@ -3,7 +3,9 @@ import Button from '@atlaskit/button/standard-button';
3
3
  import type { FunctionComponent } from 'react';
4
4
  import type { OnClickHandler } from './types';
5
5
 
6
- export interface ButtonHandlerProps extends OnClickHandler {}
6
+ export interface ButtonHandlerProps extends OnClickHandler {
7
+ children?: React.ReactNode;
8
+ }
7
9
 
8
10
  export const ButtonHandler: FunctionComponent<ButtonHandlerProps> = ({
9
11
  appearance,