@khanacademy/wonder-blocks-clickable 6.0.0 → 6.1.1

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 CHANGED
@@ -1,375 +1,403 @@
1
1
  # @khanacademy/wonder-blocks-clickable
2
2
 
3
+ ## 6.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - ee8d95a: Rollback rollup version from v4 to v2 to prevent an issue with CJS builds in unit tests
8
+ - Updated dependencies [ee8d95a]
9
+ - @khanacademy/wonder-blocks-core@12.1.1
10
+ - @khanacademy/wonder-blocks-tokens@4.2.1
11
+
12
+ ## 6.1.0
13
+
14
+ ### Minor Changes
15
+
16
+ - f03298f: Tooling:
17
+
18
+ - Switching to `pnpm`.
19
+ - Upgrading `rollup` to v4 and `@babel/runtime` to match the current webapp version.
20
+
21
+ ### Patch Changes
22
+
23
+ - 969864b: Update internal addStyle variable name to address aphrodite-add-style-variable-name linting rule
24
+ - bb2a026: pnpm: Switch to workspace protocol to handle dependency versions with changesets on monorepo setup"
25
+ - Updated dependencies [969864b]
26
+ - Updated dependencies [bb2a026]
27
+ - Updated dependencies [f03298f]
28
+ - @khanacademy/wonder-blocks-core@12.1.0
29
+ - @khanacademy/wonder-blocks-tokens@4.2.0
30
+
3
31
  ## 6.0.0
4
32
 
5
33
  ### Major Changes
6
34
 
7
- - 0199324d: Fixes keyboard tests in Dropdown and Clickable with specific key events. We now check `event.key` instead of `event.which` or `event.keyCode` to remove deprecated event properties and match the keys returned from Testing Library/userEvent.
35
+ - 0199324d: Fixes keyboard tests in Dropdown and Clickable with specific key events. We now check `event.key` instead of `event.which` or `event.keyCode` to remove deprecated event properties and match the keys returned from Testing Library/userEvent.
8
36
 
9
37
  ### Patch Changes
10
38
 
11
- - Updated dependencies [0199324d]
12
- - @khanacademy/wonder-blocks-core@12.0.0
39
+ - Updated dependencies [0199324d]
40
+ - @khanacademy/wonder-blocks-core@12.0.0
13
41
 
14
42
  ## 5.0.7
15
43
 
16
44
  ### Patch Changes
17
45
 
18
- - Updated dependencies [8cfaeab0]
19
- - Updated dependencies [c162abb4]
20
- - @khanacademy/wonder-blocks-tokens@4.1.0
46
+ - Updated dependencies [8cfaeab0]
47
+ - Updated dependencies [c162abb4]
48
+ - @khanacademy/wonder-blocks-tokens@4.1.0
21
49
 
22
50
  ## 5.0.6
23
51
 
24
52
  ### Patch Changes
25
53
 
26
- - Updated dependencies [0de25cd8]
27
- - @khanacademy/wonder-blocks-tokens@4.0.0
54
+ - Updated dependencies [0de25cd8]
55
+ - @khanacademy/wonder-blocks-tokens@4.0.0
28
56
 
29
57
  ## 5.0.5
30
58
 
31
59
  ### Patch Changes
32
60
 
33
- - Updated dependencies [7516b239]
34
- - @khanacademy/wonder-blocks-core@11.1.0
61
+ - Updated dependencies [7516b239]
62
+ - @khanacademy/wonder-blocks-core@11.1.0
35
63
 
36
64
  ## 5.0.4
37
65
 
38
66
  ### Patch Changes
39
67
 
40
- - 11a0f5c6: No functional changes. Adding prepublishOnly script.
41
- - Updated dependencies [11a0f5c6]
42
- - @khanacademy/wonder-blocks-tokens@3.0.1
43
- - @khanacademy/wonder-blocks-core@11.0.1
68
+ - 11a0f5c6: No functional changes. Adding prepublishOnly script.
69
+ - Updated dependencies [11a0f5c6]
70
+ - @khanacademy/wonder-blocks-tokens@3.0.1
71
+ - @khanacademy/wonder-blocks-core@11.0.1
44
72
 
45
73
  ## 5.0.3
46
74
 
47
75
  ### Patch Changes
48
76
 
49
- - Updated dependencies [d23c9c5f]
50
- - @khanacademy/wonder-blocks-core@11.0.0
77
+ - Updated dependencies [d23c9c5f]
78
+ - @khanacademy/wonder-blocks-core@11.0.0
51
79
 
52
80
  ## 5.0.2
53
81
 
54
82
  ### Patch Changes
55
83
 
56
- - Updated dependencies [b6009b77]
57
- - Updated dependencies [897686bc]
58
- - Updated dependencies [56d961f1]
59
- - @khanacademy/wonder-blocks-core@10.0.0
84
+ - Updated dependencies [b6009b77]
85
+ - Updated dependencies [897686bc]
86
+ - Updated dependencies [56d961f1]
87
+ - @khanacademy/wonder-blocks-core@10.0.0
60
88
 
61
89
  ## 5.0.1
62
90
 
63
91
  ### Patch Changes
64
92
 
65
- - Updated dependencies [f4abd572]
66
- - @khanacademy/wonder-blocks-core@9.0.0
93
+ - Updated dependencies [f4abd572]
94
+ - @khanacademy/wonder-blocks-core@9.0.0
67
95
 
68
96
  ## 5.0.0
69
97
 
70
98
  ### Major Changes
71
99
 
72
- - e6abdd17: Upgrade to React 18
100
+ - e6abdd17: Upgrade to React 18
73
101
 
74
102
  ### Patch Changes
75
103
 
76
- - Updated dependencies [e6abdd17]
77
- - @khanacademy/wonder-blocks-core@8.0.0
78
- - @khanacademy/wonder-blocks-tokens@3.0.0
104
+ - Updated dependencies [e6abdd17]
105
+ - @khanacademy/wonder-blocks-core@8.0.0
106
+ - @khanacademy/wonder-blocks-tokens@3.0.0
79
107
 
80
108
  ## 4.2.9
81
109
 
82
110
  ### Patch Changes
83
111
 
84
- - Updated dependencies [6999fd39]
85
- - @khanacademy/wonder-blocks-tokens@2.1.0
112
+ - Updated dependencies [6999fd39]
113
+ - @khanacademy/wonder-blocks-tokens@2.1.0
86
114
 
87
115
  ## 4.2.8
88
116
 
89
117
  ### Patch Changes
90
118
 
91
- - 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
92
- - Updated dependencies [02a1b298]
93
- - @khanacademy/wonder-blocks-core@7.0.1
94
- - @khanacademy/wonder-blocks-tokens@2.0.1
119
+ - 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
120
+ - Updated dependencies [02a1b298]
121
+ - @khanacademy/wonder-blocks-core@7.0.1
122
+ - @khanacademy/wonder-blocks-tokens@2.0.1
95
123
 
96
124
  ## 4.2.7
97
125
 
98
126
  ### Patch Changes
99
127
 
100
- - Updated dependencies [07f7f407]
101
- - @khanacademy/wonder-blocks-core@7.0.0
128
+ - Updated dependencies [07f7f407]
129
+ - @khanacademy/wonder-blocks-core@7.0.0
102
130
 
103
131
  ## 4.2.6
104
132
 
105
133
  ### Patch Changes
106
134
 
107
- - Updated dependencies [f17dc1ee]
108
- - Updated dependencies [991eb43f]
109
- - @khanacademy/wonder-blocks-tokens@2.0.0
135
+ - Updated dependencies [f17dc1ee]
136
+ - Updated dependencies [991eb43f]
137
+ - @khanacademy/wonder-blocks-tokens@2.0.0
110
138
 
111
139
  ## 4.2.5
112
140
 
113
141
  ### Patch Changes
114
142
 
115
- - 559e82d5: Update to build tooling, generating smaller output
116
- - Updated dependencies [559e82d5]
117
- - @khanacademy/wonder-blocks-core@6.4.3
118
- - @khanacademy/wonder-blocks-tokens@1.3.1
143
+ - 559e82d5: Update to build tooling, generating smaller output
144
+ - Updated dependencies [559e82d5]
145
+ - @khanacademy/wonder-blocks-core@6.4.3
146
+ - @khanacademy/wonder-blocks-tokens@1.3.1
119
147
 
120
148
  ## 4.2.4
121
149
 
122
150
  ### Patch Changes
123
151
 
124
- - Updated dependencies [eab37b8b]
125
- - @khanacademy/wonder-blocks-core@6.4.2
152
+ - Updated dependencies [eab37b8b]
153
+ - @khanacademy/wonder-blocks-core@6.4.2
126
154
 
127
155
  ## 4.2.3
128
156
 
129
157
  ### Patch Changes
130
158
 
131
- - f099cf87: Improves accessibility of the checked status on `OptionItem` components used
132
- within the `ActionMenu` component. The checked status is communicated to
133
- screenreaders by using a `menuitemcheckbox` role with the `aria-checked`
134
- attribute (instead of `aria-selected`). - `CellCore` (used by `CompactCell` and `DetailCell`) has a new optional
135
- prop for `aria-checked` - `ClickableRole` type now supports the `menuitemcheckbox` role - `OptionItem`'s `role` prop now also supports the `menuitemcheckbox` role
159
+ - f099cf87: Improves accessibility of the checked status on `OptionItem` components used
160
+ within the `ActionMenu` component. The checked status is communicated to
161
+ screenreaders by using a `menuitemcheckbox` role with the `aria-checked`
162
+ attribute (instead of `aria-selected`). - `CellCore` (used by `CompactCell` and `DetailCell`) has a new optional
163
+ prop for `aria-checked` - `ClickableRole` type now supports the `menuitemcheckbox` role - `OptionItem`'s `role` prop now also supports the `menuitemcheckbox` role
136
164
 
137
165
  ## 4.2.2
138
166
 
139
167
  ### Patch Changes
140
168
 
141
- - Updated dependencies [5dfac06e]
142
- - @khanacademy/wonder-blocks-core@6.4.1
169
+ - Updated dependencies [5dfac06e]
170
+ - @khanacademy/wonder-blocks-core@6.4.1
143
171
 
144
172
  ## 4.2.1
145
173
 
146
174
  ### Patch Changes
147
175
 
148
- - Updated dependencies [9bfeead9]
149
- - @khanacademy/wonder-blocks-tokens@1.3.0
176
+ - Updated dependencies [9bfeead9]
177
+ - @khanacademy/wonder-blocks-tokens@1.3.0
150
178
 
151
179
  ## 4.2.0
152
180
 
153
181
  ### Minor Changes
154
182
 
155
- - 58075352: Change testId to render the default Testing Library HTML attribute: data-testid (was data-test-id)
183
+ - 58075352: Change testId to render the default Testing Library HTML attribute: data-testid (was data-test-id)
156
184
 
157
185
  ### Patch Changes
158
186
 
159
- - Updated dependencies [58075352]
160
- - @khanacademy/wonder-blocks-core@6.4.0
187
+ - Updated dependencies [58075352]
188
+ - @khanacademy/wonder-blocks-core@6.4.0
161
189
 
162
190
  ## 4.1.3
163
191
 
164
192
  ### Patch Changes
165
193
 
166
- - Updated dependencies [874081aa]
167
- - Updated dependencies [874081aa]
168
- - Updated dependencies [a9bf603a]
169
- - @khanacademy/wonder-blocks-tokens@1.2.0
194
+ - Updated dependencies [874081aa]
195
+ - Updated dependencies [874081aa]
196
+ - Updated dependencies [a9bf603a]
197
+ - @khanacademy/wonder-blocks-tokens@1.2.0
170
198
 
171
199
  ## 4.1.2
172
200
 
173
201
  ### Patch Changes
174
202
 
175
- - e6433bee: Fix event bubbling on ClickableBehavior when submit is used.
203
+ - e6433bee: Fix event bubbling on ClickableBehavior when submit is used.
176
204
 
177
205
  ## 4.1.1
178
206
 
179
207
  ### Patch Changes
180
208
 
181
- - Updated dependencies [4cfb4977]
182
- - @khanacademy/wonder-blocks-tokens@1.1.0
209
+ - Updated dependencies [4cfb4977]
210
+ - @khanacademy/wonder-blocks-tokens@1.1.0
183
211
 
184
212
  ## 4.1.0
185
213
 
186
214
  ### Minor Changes
187
215
 
188
- - 60fdac1c: Added onMouseDown and onMouseUp props to Clickable
216
+ - 60fdac1c: Added onMouseDown and onMouseUp props to Clickable
189
217
 
190
218
  ## 4.0.14
191
219
 
192
220
  ### Patch Changes
193
221
 
194
- - Updated dependencies [e83f8991]
195
- - @khanacademy/wonder-blocks-tokens@1.0.0
222
+ - Updated dependencies [e83f8991]
223
+ - @khanacademy/wonder-blocks-tokens@1.0.0
196
224
 
197
225
  ## 4.0.13
198
226
 
199
227
  ### Patch Changes
200
228
 
201
- - 7c51f377: Migrate wb-color imports to use tokens.color
202
- - Updated dependencies [7cd7f6cc]
203
- - Updated dependencies [7c51f377]
204
- - @khanacademy/wonder-blocks-tokens@0.2.0
229
+ - 7c51f377: Migrate wb-color imports to use tokens.color
230
+ - Updated dependencies [7cd7f6cc]
231
+ - Updated dependencies [7c51f377]
232
+ - @khanacademy/wonder-blocks-tokens@0.2.0
205
233
 
206
234
  ## 4.0.12
207
235
 
208
236
  ### Patch Changes
209
237
 
210
- - Updated dependencies [6df21f71]
211
- - @khanacademy/wonder-blocks-core@6.3.1
238
+ - Updated dependencies [6df21f71]
239
+ - @khanacademy/wonder-blocks-core@6.3.1
212
240
 
213
241
  ## 4.0.11
214
242
 
215
243
  ### Patch Changes
216
244
 
217
- - 6b8bf8d5: Fix onFocus handler on Clickable
245
+ - 6b8bf8d5: Fix onFocus handler on Clickable
218
246
 
219
247
  ## 4.0.10
220
248
 
221
249
  ### Patch Changes
222
250
 
223
- - 7b24db93: Get onFocus to work for buttons
251
+ - 7b24db93: Get onFocus to work for buttons
224
252
 
225
253
  ## 4.0.9
226
254
 
227
255
  ### Patch Changes
228
256
 
229
- - Updated dependencies [7055ca94]
230
- - @khanacademy/wonder-blocks-core@6.3.0
257
+ - Updated dependencies [7055ca94]
258
+ - @khanacademy/wonder-blocks-core@6.3.0
231
259
 
232
260
  ## 4.0.8
233
261
 
234
262
  ### Patch Changes
235
263
 
236
- - Updated dependencies [48d3c7e9]
237
- - @khanacademy/wonder-blocks-color@3.0.0
264
+ - Updated dependencies [48d3c7e9]
265
+ - @khanacademy/wonder-blocks-color@3.0.0
238
266
 
239
267
  ## 4.0.7
240
268
 
241
269
  ### Patch Changes
242
270
 
243
- - 80cab317: Include `aria-disabled=false` for `Links` (instead of `undefined`).
271
+ - 80cab317: Include `aria-disabled=false` for `Links` (instead of `undefined`).
244
272
 
245
273
  ## 4.0.6
246
274
 
247
275
  ### Patch Changes
248
276
 
249
- - Updated dependencies [4b97b9a2]
250
- - @khanacademy/wonder-blocks-core@6.2.0
277
+ - Updated dependencies [4b97b9a2]
278
+ - @khanacademy/wonder-blocks-core@6.2.0
251
279
 
252
280
  ## 4.0.5
253
281
 
254
282
  ### Patch Changes
255
283
 
256
- - Updated dependencies [2871f0a9]
257
- - @khanacademy/wonder-blocks-core@6.1.1
284
+ - Updated dependencies [2871f0a9]
285
+ - @khanacademy/wonder-blocks-core@6.1.1
258
286
 
259
287
  ## 4.0.4
260
288
 
261
289
  ### Patch Changes
262
290
 
263
- - 834855e5: Allow 'title' as a prop on Clickable
264
- - Updated dependencies [efb59c29]
265
- - Updated dependencies [8bc40ed2]
266
- - @khanacademy/wonder-blocks-core@6.1.0
291
+ - 834855e5: Allow 'title' as a prop on Clickable
292
+ - Updated dependencies [efb59c29]
293
+ - Updated dependencies [8bc40ed2]
294
+ - @khanacademy/wonder-blocks-core@6.1.0
267
295
 
268
296
  ## 4.0.3
269
297
 
270
298
  ### Patch Changes
271
299
 
272
- - Updated dependencies [f19da46e]
273
- - @khanacademy/wonder-blocks-core@6.0.2
300
+ - Updated dependencies [f19da46e]
301
+ - @khanacademy/wonder-blocks-core@6.0.2
274
302
 
275
303
  ## 4.0.2
276
304
 
277
305
  ### Patch Changes
278
306
 
279
- - 8dc4a5a3: Allow 'beforeNav' and 'safeWithNav' to be used without an 'href'
280
- - Updated dependencies [1920feb8]
281
- - @khanacademy/wonder-blocks-core@6.0.1
307
+ - 8dc4a5a3: Allow 'beforeNav' and 'safeWithNav' to be used without an 'href'
308
+ - Updated dependencies [1920feb8]
309
+ - @khanacademy/wonder-blocks-core@6.0.1
282
310
 
283
311
  ## 4.0.1
284
312
 
285
313
  ### Patch Changes
286
314
 
287
- - f230b267: Allow 'safeWithNav()' to be used on its own without 'beforeNav()' in prop types
315
+ - f230b267: Allow 'safeWithNav()' to be used on its own without 'beforeNav()' in prop types
288
316
 
289
317
  ## 4.0.0
290
318
 
291
319
  ### Major Changes
292
320
 
293
- - 674a1e5c: Props are using discriminated union types to prevent invalid combinations of props
321
+ - 674a1e5c: Props are using discriminated union types to prevent invalid combinations of props
294
322
 
295
323
  ### Minor Changes
296
324
 
297
- - 8c77f29d: Create new Switch component and add 'switch' role to ClickableRole
325
+ - 8c77f29d: Create new Switch component and add 'switch' role to ClickableRole
298
326
 
299
327
  ### Patch Changes
300
328
 
301
- - 674a1e5c: We're no longer building flow types
302
- - Updated dependencies [674a1e5c]
303
- - Updated dependencies [674a1e5c]
304
- - @khanacademy/wonder-blocks-core@6.0.0
329
+ - 674a1e5c: We're no longer building flow types
330
+ - Updated dependencies [674a1e5c]
331
+ - Updated dependencies [674a1e5c]
332
+ - @khanacademy/wonder-blocks-core@6.0.0
305
333
 
306
334
  ## 3.1.3
307
335
 
308
336
  ### Patch Changes
309
337
 
310
- - Updated dependencies [1344436f]
311
- - @khanacademy/wonder-blocks-core@5.4.0
338
+ - Updated dependencies [1344436f]
339
+ - @khanacademy/wonder-blocks-core@5.4.0
312
340
 
313
341
  ## 3.1.2
314
342
 
315
343
  ### Patch Changes
316
344
 
317
- - Updated dependencies [9f3752d4]
318
- - @khanacademy/wonder-blocks-core@5.3.1
345
+ - Updated dependencies [9f3752d4]
346
+ - @khanacademy/wonder-blocks-core@5.3.1
319
347
 
320
348
  ## 3.1.1
321
349
 
322
350
  ### Patch Changes
323
351
 
324
- - Updated dependencies [c37b99aa]
325
- - Updated dependencies [c4cef3e6]
326
- - @khanacademy/wonder-blocks-core@5.3.0
352
+ - Updated dependencies [c37b99aa]
353
+ - Updated dependencies [c4cef3e6]
354
+ - @khanacademy/wonder-blocks-core@5.3.0
327
355
 
328
356
  ## 3.1.0
329
357
 
330
358
  ### Minor Changes
331
359
 
332
- - ad8beb23: Added new tab index and ref props
360
+ - ad8beb23: Added new tab index and ref props
333
361
 
334
362
  ## 3.0.13
335
363
 
336
364
  ### Patch Changes
337
365
 
338
- - Updated dependencies [d4c412b5]
339
- - @khanacademy/wonder-blocks-core@5.2.3
366
+ - Updated dependencies [d4c412b5]
367
+ - @khanacademy/wonder-blocks-core@5.2.3
340
368
 
341
369
  ## 3.0.12
342
370
 
343
371
  ### Patch Changes
344
372
 
345
- - Updated dependencies [64a188e3]
346
- - @khanacademy/wonder-blocks-core@5.2.2
373
+ - Updated dependencies [64a188e3]
374
+ - @khanacademy/wonder-blocks-core@5.2.2
347
375
 
348
376
  ## 3.0.11
349
377
 
350
378
  ### Patch Changes
351
379
 
352
- - df9a10aa: Update state and props to be readonly in components using getDerivedStateFromProps()
353
- - Updated dependencies [5a1ea891]
354
- - Updated dependencies [df9a10aa]
355
- - @khanacademy/wonder-blocks-core@5.2.1
380
+ - df9a10aa: Update state and props to be readonly in components using getDerivedStateFromProps()
381
+ - Updated dependencies [5a1ea891]
382
+ - Updated dependencies [df9a10aa]
383
+ - @khanacademy/wonder-blocks-core@5.2.1
356
384
 
357
385
  ## 3.0.10
358
386
 
359
387
  ### Patch Changes
360
388
 
361
- - Updated dependencies [fa70c895]
362
- - Updated dependencies [19ab0408]
363
- - Updated dependencies [fa70c895]
364
- - @khanacademy/wonder-blocks-core@5.2.0
389
+ - Updated dependencies [fa70c895]
390
+ - Updated dependencies [19ab0408]
391
+ - Updated dependencies [fa70c895]
392
+ - @khanacademy/wonder-blocks-core@5.2.0
365
393
 
366
394
  ## 3.0.9
367
395
 
368
396
  ### Patch Changes
369
397
 
370
- - Updated dependencies [3c400719]
371
- - Updated dependencies [a6164ed0]
372
- - @khanacademy/wonder-blocks-core@5.1.0
398
+ - Updated dependencies [3c400719]
399
+ - Updated dependencies [a6164ed0]
400
+ - @khanacademy/wonder-blocks-core@5.1.0
373
401
 
374
402
  ## 3.0.8
375
403
 
@@ -379,9 +407,9 @@
379
407
 
380
408
  ### Patch Changes
381
409
 
382
- - c20f48f3: Don't transpile classes when building bundles
383
- - Updated dependencies [c20f48f3]
384
- - @khanacademy/wonder-blocks-core@5.0.4
410
+ - c20f48f3: Don't transpile classes when building bundles
411
+ - Updated dependencies [c20f48f3]
412
+ - @khanacademy/wonder-blocks-core@5.0.4
385
413
 
386
414
  ## 3.0.5
387
415
 
@@ -391,186 +419,186 @@
391
419
 
392
420
  ### Patch Changes
393
421
 
394
- - Updated dependencies [b281e2eb]
395
- - @khanacademy/wonder-blocks-core@5.0.3
422
+ - Updated dependencies [b281e2eb]
423
+ - @khanacademy/wonder-blocks-core@5.0.3
396
424
 
397
425
  ## 3.0.2
398
426
 
399
427
  ### Patch Changes
400
428
 
401
- - Updated dependencies [21ce20c7]
402
- - @khanacademy/wonder-blocks-core@5.0.2
429
+ - Updated dependencies [21ce20c7]
430
+ - @khanacademy/wonder-blocks-core@5.0.2
403
431
 
404
432
  ## 3.0.1
405
433
 
406
434
  ### Patch Changes
407
435
 
408
- - ccb6fe00: Miscellaneous TS type fixes
409
- - d4c2b18c: Fix a variety of issues with Flow types generated by flowgen
410
- - Updated dependencies [ccb6fe00]
411
- - Updated dependencies [d4c2b18c]
412
- - @khanacademy/wonder-blocks-core@5.0.1
413
- - @khanacademy/wonder-blocks-color@2.0.1
436
+ - ccb6fe00: Miscellaneous TS type fixes
437
+ - d4c2b18c: Fix a variety of issues with Flow types generated by flowgen
438
+ - Updated dependencies [ccb6fe00]
439
+ - Updated dependencies [d4c2b18c]
440
+ - @khanacademy/wonder-blocks-core@5.0.1
441
+ - @khanacademy/wonder-blocks-color@2.0.1
414
442
 
415
443
  ## 3.0.0
416
444
 
417
445
  ### Major Changes
418
446
 
419
- - 1ca4d7e3: Fix minor issue with generate Flow types (this is a major bump b/c I forgot to do one after doing the TS conversion)
447
+ - 1ca4d7e3: Fix minor issue with generate Flow types (this is a major bump b/c I forgot to do one after doing the TS conversion)
420
448
 
421
449
  ### Patch Changes
422
450
 
423
- - Updated dependencies [1ca4d7e3]
424
- - @khanacademy/wonder-blocks-color@2.0.0
425
- - @khanacademy/wonder-blocks-core@5.0.0
451
+ - Updated dependencies [1ca4d7e3]
452
+ - @khanacademy/wonder-blocks-color@2.0.0
453
+ - @khanacademy/wonder-blocks-core@5.0.0
426
454
 
427
455
  ## 2.4.8
428
456
 
429
457
  ### Patch Changes
430
458
 
431
- - b5ba5568: Ensure that flow lib defs use React.ElementConfig<> isntead of JSX.LibraryManagedAttributes<>
432
- - Updated dependencies [b5ba5568]
433
- - @khanacademy/wonder-blocks-color@1.2.3
434
- - @khanacademy/wonder-blocks-core@4.9.1
459
+ - b5ba5568: Ensure that flow lib defs use React.ElementConfig<> isntead of JSX.LibraryManagedAttributes<>
460
+ - Updated dependencies [b5ba5568]
461
+ - @khanacademy/wonder-blocks-color@1.2.3
462
+ - @khanacademy/wonder-blocks-core@4.9.1
435
463
 
436
464
  ## 2.4.7
437
465
 
438
466
  ### Patch Changes
439
467
 
440
- - Updated dependencies [779b031d]
441
- - @khanacademy/wonder-blocks-core@4.9.0
468
+ - Updated dependencies [779b031d]
469
+ - @khanacademy/wonder-blocks-core@4.9.0
442
470
 
443
471
  ## 2.4.6
444
472
 
445
473
  ### Patch Changes
446
474
 
447
- - d816af08: Update build and test configs use TypeScript
448
- - 3891f544: Update babel config to include plugins that Storybook needed
449
- - 0d28bb1c: Configured TypeScript
450
- - 3d05f764: Fix HOCs and other type errors
451
- - c2ec4902: Update eslint configuration, fix lint
452
- - 2983c05b: Include 'types' field in package.json
453
- - 77ff6a66: Generate Flow types from TypeScript types
454
- - ec8d4b7f: Fix miscellaneous TypeScript errors
455
- - Updated dependencies [d816af08]
456
- - Updated dependencies [3891f544]
457
- - Updated dependencies [0d28bb1c]
458
- - Updated dependencies [873f4a14]
459
- - Updated dependencies [3d05f764]
460
- - Updated dependencies [c2ec4902]
461
- - Updated dependencies [2983c05b]
462
- - Updated dependencies [77ff6a66]
463
- - Updated dependencies [ec8d4b7f]
464
- - @khanacademy/wonder-blocks-color@1.2.2
465
- - @khanacademy/wonder-blocks-core@4.8.0
475
+ - d816af08: Update build and test configs use TypeScript
476
+ - 3891f544: Update babel config to include plugins that Storybook needed
477
+ - 0d28bb1c: Configured TypeScript
478
+ - 3d05f764: Fix HOCs and other type errors
479
+ - c2ec4902: Update eslint configuration, fix lint
480
+ - 2983c05b: Include 'types' field in package.json
481
+ - 77ff6a66: Generate Flow types from TypeScript types
482
+ - ec8d4b7f: Fix miscellaneous TypeScript errors
483
+ - Updated dependencies [d816af08]
484
+ - Updated dependencies [3891f544]
485
+ - Updated dependencies [0d28bb1c]
486
+ - Updated dependencies [873f4a14]
487
+ - Updated dependencies [3d05f764]
488
+ - Updated dependencies [c2ec4902]
489
+ - Updated dependencies [2983c05b]
490
+ - Updated dependencies [77ff6a66]
491
+ - Updated dependencies [ec8d4b7f]
492
+ - @khanacademy/wonder-blocks-color@1.2.2
493
+ - @khanacademy/wonder-blocks-core@4.8.0
466
494
 
467
495
  ## 2.4.5
468
496
 
469
497
  ### Patch Changes
470
498
 
471
- - 91cb727c: Remove file extensions from imports
472
- - 91cb727c: Merge disjoint prop types since the codemod doesn't handle these properly.
473
- - Updated dependencies [91cb727c]
474
- - Updated dependencies [91cb727c]
475
- - @khanacademy/wonder-blocks-color@1.2.1
476
- - @khanacademy/wonder-blocks-core@4.7.0
499
+ - 91cb727c: Remove file extensions from imports
500
+ - 91cb727c: Merge disjoint prop types since the codemod doesn't handle these properly.
501
+ - Updated dependencies [91cb727c]
502
+ - Updated dependencies [91cb727c]
503
+ - @khanacademy/wonder-blocks-color@1.2.1
504
+ - @khanacademy/wonder-blocks-core@4.7.0
477
505
 
478
506
  ## 2.4.4
479
507
 
480
508
  ### Patch Changes
481
509
 
482
- - 496119f2: Cleanup WB interdependencies
483
- - Updated dependencies [496119f2]
484
- - @khanacademy/wonder-blocks-core@4.6.2
510
+ - 496119f2: Cleanup WB interdependencies
511
+ - Updated dependencies [496119f2]
512
+ - @khanacademy/wonder-blocks-core@4.6.2
485
513
 
486
514
  ## 2.4.3
487
515
 
488
516
  ### Patch Changes
489
517
 
490
- - @khanacademy/wonder-blocks-core@4.6.1
518
+ - @khanacademy/wonder-blocks-core@4.6.1
491
519
 
492
520
  ## 2.4.2
493
521
 
494
522
  ### Patch Changes
495
523
 
496
- - Updated dependencies [b561425a]
497
- - Updated dependencies [a566e232]
498
- - Updated dependencies [d2b21a6e]
499
- - @khanacademy/wonder-blocks-core@4.6.0
524
+ - Updated dependencies [b561425a]
525
+ - Updated dependencies [a566e232]
526
+ - Updated dependencies [d2b21a6e]
527
+ - @khanacademy/wonder-blocks-core@4.6.0
500
528
 
501
529
  ## 2.4.1
502
530
 
503
531
  ### Patch Changes
504
532
 
505
- - 4c682709: handleClick no longer redundantly triggers on mouseup
533
+ - 4c682709: handleClick no longer redundantly triggers on mouseup
506
534
 
507
535
  ## 2.4.0
508
536
 
509
537
  ### Minor Changes
510
538
 
511
- - ceb111df: ClickableBehavior no longer has tabIndex 0 by default. It must be passed in.
539
+ - ceb111df: ClickableBehavior no longer has tabIndex 0 by default. It must be passed in.
512
540
 
513
541
  ## 2.3.3
514
542
 
515
543
  ### Patch Changes
516
544
 
517
- - Updated dependencies [175a2dd2]
518
- - @khanacademy/wonder-blocks-core@4.5.0
545
+ - Updated dependencies [175a2dd2]
546
+ - @khanacademy/wonder-blocks-core@4.5.0
519
547
 
520
548
  ## 2.3.2
521
549
 
522
550
  ### Patch Changes
523
551
 
524
- - 5b8ba5da: Remove the default value of aria-label ""
552
+ - 5b8ba5da: Remove the default value of aria-label ""
525
553
 
526
554
  ## 2.3.1
527
555
 
528
556
  ### Patch Changes
529
557
 
530
- - Updated dependencies [6ee20af9]
531
- - @khanacademy/wonder-blocks-core@4.4.0
558
+ - Updated dependencies [6ee20af9]
559
+ - @khanacademy/wonder-blocks-core@4.4.0
532
560
 
533
561
  ## 2.3.0
534
562
 
535
563
  ### Minor Changes
536
564
 
537
- - ee6fc773: Added keyboard support to search items when the dropdown is focused, included "Enter" as a key to trigger actions with the "option" role
565
+ - ee6fc773: Added keyboard support to search items when the dropdown is focused, included "Enter" as a key to trigger actions with the "option" role
538
566
 
539
567
  ## 2.2.7
540
568
 
541
569
  ### Patch Changes
542
570
 
543
- - Updated dependencies [5f4a4297]
544
- - Updated dependencies [2b96fd59]
545
- - @khanacademy/wonder-blocks-core@4.3.2
571
+ - Updated dependencies [5f4a4297]
572
+ - Updated dependencies [2b96fd59]
573
+ - @khanacademy/wonder-blocks-core@4.3.2
546
574
 
547
575
  ## 2.2.6
548
576
 
549
577
  ### Patch Changes
550
578
 
551
- - @khanacademy/wonder-blocks-core@4.3.1
579
+ - @khanacademy/wonder-blocks-core@4.3.1
552
580
 
553
581
  ## 2.2.5
554
582
 
555
583
  ### Patch Changes
556
584
 
557
- - Updated dependencies [246a921d]
558
- - @khanacademy/wonder-blocks-core@4.3.0
585
+ - Updated dependencies [246a921d]
586
+ - @khanacademy/wonder-blocks-core@4.3.0
559
587
 
560
588
  ## 2.2.4
561
589
 
562
590
  ### Patch Changes
563
591
 
564
- - 166ecc97: Use `aria-disabled` instead of disabled, fix focused + disabled styles.
592
+ - 166ecc97: Use `aria-disabled` instead of disabled, fix focused + disabled styles.
565
593
 
566
594
  ## 2.2.3
567
595
 
568
596
  ### Patch Changes
569
597
 
570
- - @khanacademy/wonder-blocks-core@4.2.1
598
+ - @khanacademy/wonder-blocks-core@4.2.1
571
599
 
572
600
  ## 2.2.2
573
601
 
574
602
  ### Patch Changes
575
603
 
576
- - 901bfe82: Change disabled tabindex from -1 to 0
604
+ - 901bfe82: Change disabled tabindex from -1 to 0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Khan Academy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/es/index.js CHANGED
@@ -349,7 +349,7 @@ function getClickableBehavior(href, skipClientNav, router) {
349
349
  }
350
350
 
351
351
  const _excluded = ["href", "onClick", "skipClientNav", "beforeNav", "safeWithNav", "style", "target", "testId", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseUp", "hideDefaultFocusRing", "light", "disabled", "tabIndex"];
352
- const StyledAnchor = addStyle("a");
352
+ const StyledA = addStyle("a");
353
353
  const StyledButton = addStyle("button");
354
354
  const StyledLink = addStyle(Link);
355
355
  const Clickable = React.forwardRef(function Clickable(props, ref) {
@@ -365,7 +365,7 @@ const Clickable = React.forwardRef(function Clickable(props, ref) {
365
365
  ref: ref
366
366
  }), props.children(clickableState));
367
367
  } else if (activeHref && !useClient) {
368
- return React.createElement(StyledAnchor, _extends({}, commonProps, {
368
+ return React.createElement(StyledA, _extends({}, commonProps, {
369
369
  href: props.href,
370
370
  role: props.role,
371
371
  target: props.target || undefined,
package/dist/index.js CHANGED
@@ -377,7 +377,7 @@ function getClickableBehavior(href, skipClientNav, router) {
377
377
  }
378
378
 
379
379
  const _excluded = ["href", "onClick", "skipClientNav", "beforeNav", "safeWithNav", "style", "target", "testId", "onFocus", "onKeyDown", "onKeyUp", "onMouseDown", "onMouseUp", "hideDefaultFocusRing", "light", "disabled", "tabIndex"];
380
- const StyledAnchor = wonderBlocksCore.addStyle("a");
380
+ const StyledA = wonderBlocksCore.addStyle("a");
381
381
  const StyledButton = wonderBlocksCore.addStyle("button");
382
382
  const StyledLink = wonderBlocksCore.addStyle(reactRouterDom.Link);
383
383
  const Clickable = React__namespace.forwardRef(function Clickable(props, ref) {
@@ -393,7 +393,7 @@ const Clickable = React__namespace.forwardRef(function Clickable(props, ref) {
393
393
  ref: ref
394
394
  }), props.children(clickableState));
395
395
  } else if (activeHref && !useClient) {
396
- return React__namespace.createElement(StyledAnchor, _extends__default["default"]({}, commonProps, {
396
+ return React__namespace.createElement(StyledA, _extends__default["default"]({}, commonProps, {
397
397
  href: props.href,
398
398
  role: props.role,
399
399
  target: props.target || undefined,
package/package.json CHANGED
@@ -1,24 +1,20 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-clickable",
3
- "version": "6.0.0",
3
+ "version": "6.1.1",
4
4
  "design": "v1",
5
5
  "description": "Clickable component for Wonder-Blocks.",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/index.d.ts",
9
- "scripts": {
10
- "test": "echo \"Error: no test specified\" && exit 1",
11
- "prepublishOnly": "../../utils/publish/package-pre-publish-check.sh"
12
- },
13
9
  "author": "",
14
10
  "license": "MIT",
15
11
  "publishConfig": {
16
12
  "access": "public"
17
13
  },
18
14
  "dependencies": {
19
- "@babel/runtime": "^7.18.6",
20
- "@khanacademy/wonder-blocks-core": "^12.0.0",
21
- "@khanacademy/wonder-blocks-tokens": "^4.1.0"
15
+ "@babel/runtime": "^7.24.5",
16
+ "@khanacademy/wonder-blocks-core": "12.1.1",
17
+ "@khanacademy/wonder-blocks-tokens": "4.2.1"
22
18
  },
23
19
  "peerDependencies": {
24
20
  "aphrodite": "^1.2.5",
@@ -28,6 +24,9 @@
28
24
  "react-router-dom": "5.3.4"
29
25
  },
30
26
  "devDependencies": {
31
- "@khanacademy/wb-dev-build-settings": "^2.0.0"
27
+ "@khanacademy/wb-dev-build-settings": "2.1.1"
28
+ },
29
+ "scripts": {
30
+ "test": "echo \"Error: no test specified\" && exit 1"
32
31
  }
33
32
  }