@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 +222 -194
- package/LICENSE +21 -0
- package/dist/es/index.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +8 -9
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
|
-
-
|
|
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
|
-
-
|
|
12
|
-
-
|
|
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
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
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
|
-
-
|
|
27
|
-
-
|
|
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
|
-
-
|
|
34
|
-
-
|
|
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
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
43
|
-
-
|
|
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
|
-
-
|
|
50
|
-
-
|
|
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
|
-
-
|
|
57
|
-
-
|
|
58
|
-
-
|
|
59
|
-
-
|
|
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
|
-
-
|
|
66
|
-
-
|
|
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
|
-
-
|
|
100
|
+
- e6abdd17: Upgrade to React 18
|
|
73
101
|
|
|
74
102
|
### Patch Changes
|
|
75
103
|
|
|
76
|
-
-
|
|
77
|
-
-
|
|
78
|
-
-
|
|
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
|
-
-
|
|
85
|
-
-
|
|
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
|
-
-
|
|
92
|
-
-
|
|
93
|
-
-
|
|
94
|
-
-
|
|
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
|
-
-
|
|
101
|
-
-
|
|
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
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
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
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
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
|
-
-
|
|
125
|
-
-
|
|
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
|
-
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
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
|
-
-
|
|
142
|
-
-
|
|
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
|
-
-
|
|
149
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
160
|
-
-
|
|
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
|
-
-
|
|
167
|
-
-
|
|
168
|
-
-
|
|
169
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
182
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
195
|
-
-
|
|
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
|
-
-
|
|
202
|
-
-
|
|
203
|
-
-
|
|
204
|
-
-
|
|
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
|
-
-
|
|
211
|
-
-
|
|
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
|
-
-
|
|
245
|
+
- 6b8bf8d5: Fix onFocus handler on Clickable
|
|
218
246
|
|
|
219
247
|
## 4.0.10
|
|
220
248
|
|
|
221
249
|
### Patch Changes
|
|
222
250
|
|
|
223
|
-
-
|
|
251
|
+
- 7b24db93: Get onFocus to work for buttons
|
|
224
252
|
|
|
225
253
|
## 4.0.9
|
|
226
254
|
|
|
227
255
|
### Patch Changes
|
|
228
256
|
|
|
229
|
-
-
|
|
230
|
-
-
|
|
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
|
-
-
|
|
237
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
250
|
-
-
|
|
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
|
-
-
|
|
257
|
-
-
|
|
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
|
-
-
|
|
264
|
-
-
|
|
265
|
-
-
|
|
266
|
-
-
|
|
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
|
-
-
|
|
273
|
-
-
|
|
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
|
-
-
|
|
280
|
-
-
|
|
281
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
321
|
+
- 674a1e5c: Props are using discriminated union types to prevent invalid combinations of props
|
|
294
322
|
|
|
295
323
|
### Minor Changes
|
|
296
324
|
|
|
297
|
-
-
|
|
325
|
+
- 8c77f29d: Create new Switch component and add 'switch' role to ClickableRole
|
|
298
326
|
|
|
299
327
|
### Patch Changes
|
|
300
328
|
|
|
301
|
-
-
|
|
302
|
-
-
|
|
303
|
-
-
|
|
304
|
-
-
|
|
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
|
-
-
|
|
311
|
-
-
|
|
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
|
-
-
|
|
318
|
-
-
|
|
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
|
-
-
|
|
325
|
-
-
|
|
326
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
339
|
-
-
|
|
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
|
-
-
|
|
346
|
-
-
|
|
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
|
-
-
|
|
353
|
-
-
|
|
354
|
-
-
|
|
355
|
-
-
|
|
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
|
-
-
|
|
362
|
-
-
|
|
363
|
-
-
|
|
364
|
-
-
|
|
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
|
-
-
|
|
371
|
-
-
|
|
372
|
-
-
|
|
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
|
-
-
|
|
383
|
-
-
|
|
384
|
-
-
|
|
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
|
-
-
|
|
395
|
-
-
|
|
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
|
-
-
|
|
402
|
-
-
|
|
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
|
-
-
|
|
409
|
-
-
|
|
410
|
-
-
|
|
411
|
-
-
|
|
412
|
-
-
|
|
413
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
424
|
-
-
|
|
425
|
-
-
|
|
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
|
-
-
|
|
432
|
-
-
|
|
433
|
-
-
|
|
434
|
-
-
|
|
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
|
-
-
|
|
441
|
-
-
|
|
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
|
-
-
|
|
448
|
-
-
|
|
449
|
-
-
|
|
450
|
-
-
|
|
451
|
-
-
|
|
452
|
-
-
|
|
453
|
-
-
|
|
454
|
-
-
|
|
455
|
-
-
|
|
456
|
-
-
|
|
457
|
-
-
|
|
458
|
-
-
|
|
459
|
-
-
|
|
460
|
-
-
|
|
461
|
-
-
|
|
462
|
-
-
|
|
463
|
-
-
|
|
464
|
-
-
|
|
465
|
-
-
|
|
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
|
-
-
|
|
472
|
-
-
|
|
473
|
-
-
|
|
474
|
-
-
|
|
475
|
-
-
|
|
476
|
-
-
|
|
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
|
-
-
|
|
483
|
-
-
|
|
484
|
-
-
|
|
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
|
-
-
|
|
518
|
+
- @khanacademy/wonder-blocks-core@4.6.1
|
|
491
519
|
|
|
492
520
|
## 2.4.2
|
|
493
521
|
|
|
494
522
|
### Patch Changes
|
|
495
523
|
|
|
496
|
-
-
|
|
497
|
-
-
|
|
498
|
-
-
|
|
499
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
518
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
531
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
544
|
-
-
|
|
545
|
-
-
|
|
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
|
-
-
|
|
579
|
+
- @khanacademy/wonder-blocks-core@4.3.1
|
|
552
580
|
|
|
553
581
|
## 2.2.5
|
|
554
582
|
|
|
555
583
|
### Patch Changes
|
|
556
584
|
|
|
557
|
-
-
|
|
558
|
-
-
|
|
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
|
-
-
|
|
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
|
-
-
|
|
598
|
+
- @khanacademy/wonder-blocks-core@4.2.1
|
|
571
599
|
|
|
572
600
|
## 2.2.2
|
|
573
601
|
|
|
574
602
|
### Patch Changes
|
|
575
603
|
|
|
576
|
-
-
|
|
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
|
|
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(
|
|
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
|
|
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(
|
|
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.
|
|
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.
|
|
20
|
-
"@khanacademy/wonder-blocks-core": "
|
|
21
|
-
"@khanacademy/wonder-blocks-tokens": "
|
|
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": "
|
|
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
|
}
|