@khanacademy/wonder-blocks-layout 3.0.7 → 3.1.0
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 +191 -166
- package/LICENSE +21 -0
- package/dist/es/index.js +1 -1
- package/dist/index.js +5 -11
- package/dist/util/test-util.d.ts +2 -2
- package/package.json +9 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,312 +1,337 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-layout
|
|
2
2
|
|
|
3
|
+
## 3.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- f03298f: Tooling:
|
|
8
|
+
|
|
9
|
+
- Switching to `pnpm`.
|
|
10
|
+
- Upgrading `rollup` to v4 and `@babel/runtime` to match the current webapp version.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- bb2a026: pnpm: Switch to workspace protocol to handle dependency versions with changesets on monorepo setup"
|
|
15
|
+
- Updated dependencies [969864b]
|
|
16
|
+
- Updated dependencies [bb2a026]
|
|
17
|
+
- Updated dependencies [f03298f]
|
|
18
|
+
- @khanacademy/wonder-blocks-core@12.1.0
|
|
19
|
+
- @khanacademy/wonder-blocks-tokens@4.2.0
|
|
20
|
+
|
|
21
|
+
## 3.0.8
|
|
22
|
+
|
|
23
|
+
### Patch Changes
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [0199324d]
|
|
26
|
+
- @khanacademy/wonder-blocks-core@12.0.0
|
|
27
|
+
|
|
3
28
|
## 3.0.7
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
6
31
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
32
|
+
- Updated dependencies [8cfaeab0]
|
|
33
|
+
- Updated dependencies [c162abb4]
|
|
34
|
+
- @khanacademy/wonder-blocks-tokens@4.1.0
|
|
10
35
|
|
|
11
36
|
## 3.0.6
|
|
12
37
|
|
|
13
38
|
### Patch Changes
|
|
14
39
|
|
|
15
|
-
-
|
|
16
|
-
-
|
|
40
|
+
- Updated dependencies [0de25cd8]
|
|
41
|
+
- @khanacademy/wonder-blocks-tokens@4.0.0
|
|
17
42
|
|
|
18
43
|
## 3.0.5
|
|
19
44
|
|
|
20
45
|
### Patch Changes
|
|
21
46
|
|
|
22
|
-
-
|
|
23
|
-
-
|
|
47
|
+
- Updated dependencies [7516b239]
|
|
48
|
+
- @khanacademy/wonder-blocks-core@11.1.0
|
|
24
49
|
|
|
25
50
|
## 3.0.4
|
|
26
51
|
|
|
27
52
|
### Patch Changes
|
|
28
53
|
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
54
|
+
- 11a0f5c6: No functional changes. Adding prepublishOnly script.
|
|
55
|
+
- Updated dependencies [11a0f5c6]
|
|
56
|
+
- @khanacademy/wonder-blocks-tokens@3.0.1
|
|
57
|
+
- @khanacademy/wonder-blocks-core@11.0.1
|
|
33
58
|
|
|
34
59
|
## 3.0.3
|
|
35
60
|
|
|
36
61
|
### Patch Changes
|
|
37
62
|
|
|
38
|
-
-
|
|
39
|
-
-
|
|
63
|
+
- Updated dependencies [d23c9c5f]
|
|
64
|
+
- @khanacademy/wonder-blocks-core@11.0.0
|
|
40
65
|
|
|
41
66
|
## 3.0.2
|
|
42
67
|
|
|
43
68
|
### Patch Changes
|
|
44
69
|
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
-
|
|
48
|
-
-
|
|
70
|
+
- Updated dependencies [b6009b77]
|
|
71
|
+
- Updated dependencies [897686bc]
|
|
72
|
+
- Updated dependencies [56d961f1]
|
|
73
|
+
- @khanacademy/wonder-blocks-core@10.0.0
|
|
49
74
|
|
|
50
75
|
## 3.0.1
|
|
51
76
|
|
|
52
77
|
### Patch Changes
|
|
53
78
|
|
|
54
|
-
-
|
|
55
|
-
-
|
|
79
|
+
- Updated dependencies [f4abd572]
|
|
80
|
+
- @khanacademy/wonder-blocks-core@9.0.0
|
|
56
81
|
|
|
57
82
|
## 3.0.0
|
|
58
83
|
|
|
59
84
|
### Major Changes
|
|
60
85
|
|
|
61
|
-
-
|
|
86
|
+
- e6abdd17: Upgrade to React 18
|
|
62
87
|
|
|
63
88
|
### Patch Changes
|
|
64
89
|
|
|
65
|
-
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
90
|
+
- Updated dependencies [e6abdd17]
|
|
91
|
+
- @khanacademy/wonder-blocks-core@8.0.0
|
|
92
|
+
- @khanacademy/wonder-blocks-tokens@3.0.0
|
|
68
93
|
|
|
69
94
|
## 2.2.2
|
|
70
95
|
|
|
71
96
|
### Patch Changes
|
|
72
97
|
|
|
73
|
-
-
|
|
74
|
-
-
|
|
98
|
+
- Updated dependencies [6999fd39]
|
|
99
|
+
- @khanacademy/wonder-blocks-tokens@2.1.0
|
|
75
100
|
|
|
76
101
|
## 2.2.1
|
|
77
102
|
|
|
78
103
|
### Patch Changes
|
|
79
104
|
|
|
80
|
-
-
|
|
81
|
-
-
|
|
82
|
-
-
|
|
83
|
-
-
|
|
105
|
+
- 02a1b298: Make sure we don't package tsconfig and tsbuildinfo files
|
|
106
|
+
- Updated dependencies [02a1b298]
|
|
107
|
+
- @khanacademy/wonder-blocks-core@7.0.1
|
|
108
|
+
- @khanacademy/wonder-blocks-tokens@2.0.1
|
|
84
109
|
|
|
85
110
|
## 2.2.0
|
|
86
111
|
|
|
87
112
|
### Minor Changes
|
|
88
113
|
|
|
89
|
-
-
|
|
114
|
+
- 07f7f407: Renamed `WithSSRPlaceholder` to `InitialFallback`. This includes changing the `placeholder` prop to `fallback` so it's closer to `Suspense` usage.
|
|
90
115
|
|
|
91
116
|
### Patch Changes
|
|
92
117
|
|
|
93
|
-
-
|
|
94
|
-
-
|
|
118
|
+
- Updated dependencies [07f7f407]
|
|
119
|
+
- @khanacademy/wonder-blocks-core@7.0.0
|
|
95
120
|
|
|
96
121
|
## 2.1.3
|
|
97
122
|
|
|
98
123
|
### Patch Changes
|
|
99
124
|
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
-
|
|
125
|
+
- Updated dependencies [f17dc1ee]
|
|
126
|
+
- Updated dependencies [991eb43f]
|
|
127
|
+
- @khanacademy/wonder-blocks-tokens@2.0.0
|
|
103
128
|
|
|
104
129
|
## 2.1.2
|
|
105
130
|
|
|
106
131
|
### Patch Changes
|
|
107
132
|
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
133
|
+
- 559e82d5: Update to build tooling, generating smaller output
|
|
134
|
+
- Updated dependencies [559e82d5]
|
|
135
|
+
- @khanacademy/wonder-blocks-core@6.4.3
|
|
136
|
+
- @khanacademy/wonder-blocks-tokens@1.3.1
|
|
112
137
|
|
|
113
138
|
## 2.1.1
|
|
114
139
|
|
|
115
140
|
### Patch Changes
|
|
116
141
|
|
|
117
|
-
-
|
|
118
|
-
-
|
|
142
|
+
- Updated dependencies [eab37b8b]
|
|
143
|
+
- @khanacademy/wonder-blocks-core@6.4.2
|
|
119
144
|
|
|
120
145
|
## 2.1.0
|
|
121
146
|
|
|
122
147
|
### Minor Changes
|
|
123
148
|
|
|
124
|
-
-
|
|
149
|
+
- 47a758b6: Fix hydration issue in MediaLayout component
|
|
125
150
|
|
|
126
151
|
## 2.0.33
|
|
127
152
|
|
|
128
153
|
### Patch Changes
|
|
129
154
|
|
|
130
|
-
-
|
|
131
|
-
-
|
|
155
|
+
- Updated dependencies [5dfac06e]
|
|
156
|
+
- @khanacademy/wonder-blocks-core@6.4.1
|
|
132
157
|
|
|
133
158
|
## 2.0.32
|
|
134
159
|
|
|
135
160
|
### Patch Changes
|
|
136
161
|
|
|
137
|
-
-
|
|
138
|
-
-
|
|
162
|
+
- Updated dependencies [9bfeead9]
|
|
163
|
+
- @khanacademy/wonder-blocks-tokens@1.3.0
|
|
139
164
|
|
|
140
165
|
## 2.0.31
|
|
141
166
|
|
|
142
167
|
### Patch Changes
|
|
143
168
|
|
|
144
|
-
-
|
|
145
|
-
-
|
|
169
|
+
- Updated dependencies [58075352]
|
|
170
|
+
- @khanacademy/wonder-blocks-core@6.4.0
|
|
146
171
|
|
|
147
172
|
## 2.0.30
|
|
148
173
|
|
|
149
174
|
### Patch Changes
|
|
150
175
|
|
|
151
|
-
-
|
|
152
|
-
-
|
|
153
|
-
-
|
|
154
|
-
-
|
|
176
|
+
- Updated dependencies [874081aa]
|
|
177
|
+
- Updated dependencies [874081aa]
|
|
178
|
+
- Updated dependencies [a9bf603a]
|
|
179
|
+
- @khanacademy/wonder-blocks-tokens@1.2.0
|
|
155
180
|
|
|
156
181
|
## 2.0.29
|
|
157
182
|
|
|
158
183
|
### Patch Changes
|
|
159
184
|
|
|
160
|
-
-
|
|
185
|
+
- c39bfd29: Updates the MediaLayout component to respect the value of Server.isServerSide()
|
|
161
186
|
|
|
162
187
|
## 2.0.28
|
|
163
188
|
|
|
164
189
|
### Patch Changes
|
|
165
190
|
|
|
166
|
-
-
|
|
167
|
-
-
|
|
191
|
+
- Updated dependencies [4cfb4977]
|
|
192
|
+
- @khanacademy/wonder-blocks-tokens@1.1.0
|
|
168
193
|
|
|
169
194
|
## 2.0.27
|
|
170
195
|
|
|
171
196
|
### Patch Changes
|
|
172
197
|
|
|
173
|
-
-
|
|
174
|
-
-
|
|
198
|
+
- Updated dependencies [e83f8991]
|
|
199
|
+
- @khanacademy/wonder-blocks-tokens@1.0.0
|
|
175
200
|
|
|
176
201
|
## 2.0.26
|
|
177
202
|
|
|
178
203
|
### Patch Changes
|
|
179
204
|
|
|
180
|
-
-
|
|
181
|
-
-
|
|
182
|
-
-
|
|
183
|
-
-
|
|
205
|
+
- 60aba5b8: Update internal spacing references (from wb-spacing to wb-tokens)
|
|
206
|
+
- Updated dependencies [7cd7f6cc]
|
|
207
|
+
- Updated dependencies [7c51f377]
|
|
208
|
+
- @khanacademy/wonder-blocks-tokens@0.2.0
|
|
184
209
|
|
|
185
210
|
## 2.0.25
|
|
186
211
|
|
|
187
212
|
### Patch Changes
|
|
188
213
|
|
|
189
|
-
-
|
|
190
|
-
-
|
|
214
|
+
- Updated dependencies [6df21f71]
|
|
215
|
+
- @khanacademy/wonder-blocks-core@6.3.1
|
|
191
216
|
|
|
192
217
|
## 2.0.24
|
|
193
218
|
|
|
194
219
|
### Patch Changes
|
|
195
220
|
|
|
196
|
-
-
|
|
197
|
-
-
|
|
221
|
+
- Updated dependencies [7055ca94]
|
|
222
|
+
- @khanacademy/wonder-blocks-core@6.3.0
|
|
198
223
|
|
|
199
224
|
## 2.0.23
|
|
200
225
|
|
|
201
226
|
### Patch Changes
|
|
202
227
|
|
|
203
|
-
-
|
|
228
|
+
- b6fbd635: Handle custom media layout specs.
|
|
204
229
|
|
|
205
230
|
## 2.0.22
|
|
206
231
|
|
|
207
232
|
### Patch Changes
|
|
208
233
|
|
|
209
|
-
-
|
|
210
|
-
-
|
|
234
|
+
- Updated dependencies [4b97b9a2]
|
|
235
|
+
- @khanacademy/wonder-blocks-core@6.2.0
|
|
211
236
|
|
|
212
237
|
## 2.0.21
|
|
213
238
|
|
|
214
239
|
### Patch Changes
|
|
215
240
|
|
|
216
|
-
-
|
|
217
|
-
-
|
|
241
|
+
- Updated dependencies [2871f0a9]
|
|
242
|
+
- @khanacademy/wonder-blocks-core@6.1.1
|
|
218
243
|
|
|
219
244
|
## 2.0.20
|
|
220
245
|
|
|
221
246
|
### Patch Changes
|
|
222
247
|
|
|
223
|
-
-
|
|
224
|
-
-
|
|
225
|
-
-
|
|
248
|
+
- Updated dependencies [efb59c29]
|
|
249
|
+
- Updated dependencies [8bc40ed2]
|
|
250
|
+
- @khanacademy/wonder-blocks-core@6.1.0
|
|
226
251
|
|
|
227
252
|
## 2.0.19
|
|
228
253
|
|
|
229
254
|
### Patch Changes
|
|
230
255
|
|
|
231
|
-
-
|
|
232
|
-
-
|
|
256
|
+
- Updated dependencies [f19da46e]
|
|
257
|
+
- @khanacademy/wonder-blocks-core@6.0.2
|
|
233
258
|
|
|
234
259
|
## 2.0.18
|
|
235
260
|
|
|
236
261
|
### Patch Changes
|
|
237
262
|
|
|
238
|
-
-
|
|
239
|
-
-
|
|
263
|
+
- Updated dependencies [1920feb8]
|
|
264
|
+
- @khanacademy/wonder-blocks-core@6.0.1
|
|
240
265
|
|
|
241
266
|
## 2.0.17
|
|
242
267
|
|
|
243
268
|
### Patch Changes
|
|
244
269
|
|
|
245
|
-
-
|
|
246
|
-
-
|
|
247
|
-
-
|
|
270
|
+
- Updated dependencies [674a1e5c]
|
|
271
|
+
- Updated dependencies [674a1e5c]
|
|
272
|
+
- @khanacademy/wonder-blocks-core@6.0.0
|
|
248
273
|
|
|
249
274
|
## 2.0.16
|
|
250
275
|
|
|
251
276
|
### Patch Changes
|
|
252
277
|
|
|
253
|
-
-
|
|
254
|
-
-
|
|
278
|
+
- Updated dependencies [1344436f]
|
|
279
|
+
- @khanacademy/wonder-blocks-core@5.4.0
|
|
255
280
|
|
|
256
281
|
## 2.0.15
|
|
257
282
|
|
|
258
283
|
### Patch Changes
|
|
259
284
|
|
|
260
|
-
-
|
|
261
|
-
-
|
|
285
|
+
- Updated dependencies [9f3752d4]
|
|
286
|
+
- @khanacademy/wonder-blocks-core@5.3.1
|
|
262
287
|
|
|
263
288
|
## 2.0.14
|
|
264
289
|
|
|
265
290
|
### Patch Changes
|
|
266
291
|
|
|
267
|
-
-
|
|
268
|
-
-
|
|
269
|
-
-
|
|
292
|
+
- Updated dependencies [c37b99aa]
|
|
293
|
+
- Updated dependencies [c4cef3e6]
|
|
294
|
+
- @khanacademy/wonder-blocks-core@5.3.0
|
|
270
295
|
|
|
271
296
|
## 2.0.13
|
|
272
297
|
|
|
273
298
|
### Patch Changes
|
|
274
299
|
|
|
275
|
-
-
|
|
276
|
-
-
|
|
300
|
+
- Updated dependencies [d4c412b5]
|
|
301
|
+
- @khanacademy/wonder-blocks-core@5.2.3
|
|
277
302
|
|
|
278
303
|
## 2.0.12
|
|
279
304
|
|
|
280
305
|
### Patch Changes
|
|
281
306
|
|
|
282
|
-
-
|
|
283
|
-
-
|
|
307
|
+
- Updated dependencies [64a188e3]
|
|
308
|
+
- @khanacademy/wonder-blocks-core@5.2.2
|
|
284
309
|
|
|
285
310
|
## 2.0.11
|
|
286
311
|
|
|
287
312
|
### Patch Changes
|
|
288
313
|
|
|
289
|
-
-
|
|
290
|
-
-
|
|
291
|
-
-
|
|
292
|
-
-
|
|
314
|
+
- 5a1ea891: Make sure that React contexts are named
|
|
315
|
+
- Updated dependencies [5a1ea891]
|
|
316
|
+
- Updated dependencies [df9a10aa]
|
|
317
|
+
- @khanacademy/wonder-blocks-core@5.2.1
|
|
293
318
|
|
|
294
319
|
## 2.0.10
|
|
295
320
|
|
|
296
321
|
### Patch Changes
|
|
297
322
|
|
|
298
|
-
-
|
|
299
|
-
-
|
|
300
|
-
-
|
|
301
|
-
-
|
|
323
|
+
- Updated dependencies [fa70c895]
|
|
324
|
+
- Updated dependencies [19ab0408]
|
|
325
|
+
- Updated dependencies [fa70c895]
|
|
326
|
+
- @khanacademy/wonder-blocks-core@5.2.0
|
|
302
327
|
|
|
303
328
|
## 2.0.9
|
|
304
329
|
|
|
305
330
|
### Patch Changes
|
|
306
331
|
|
|
307
|
-
-
|
|
308
|
-
-
|
|
309
|
-
-
|
|
332
|
+
- Updated dependencies [3c400719]
|
|
333
|
+
- Updated dependencies [a6164ed0]
|
|
334
|
+
- @khanacademy/wonder-blocks-core@5.1.0
|
|
310
335
|
|
|
311
336
|
## 2.0.8
|
|
312
337
|
|
|
@@ -316,9 +341,9 @@
|
|
|
316
341
|
|
|
317
342
|
### Patch Changes
|
|
318
343
|
|
|
319
|
-
-
|
|
320
|
-
-
|
|
321
|
-
-
|
|
344
|
+
- c20f48f3: Don't transpile classes when building bundles
|
|
345
|
+
- Updated dependencies [c20f48f3]
|
|
346
|
+
- @khanacademy/wonder-blocks-core@5.0.4
|
|
322
347
|
|
|
323
348
|
## 2.0.5
|
|
324
349
|
|
|
@@ -328,147 +353,147 @@
|
|
|
328
353
|
|
|
329
354
|
### Patch Changes
|
|
330
355
|
|
|
331
|
-
-
|
|
332
|
-
-
|
|
356
|
+
- Updated dependencies [b281e2eb]
|
|
357
|
+
- @khanacademy/wonder-blocks-core@5.0.3
|
|
333
358
|
|
|
334
359
|
## 2.0.2
|
|
335
360
|
|
|
336
361
|
### Patch Changes
|
|
337
362
|
|
|
338
|
-
-
|
|
339
|
-
-
|
|
363
|
+
- Updated dependencies [21ce20c7]
|
|
364
|
+
- @khanacademy/wonder-blocks-core@5.0.2
|
|
340
365
|
|
|
341
366
|
## 2.0.1
|
|
342
367
|
|
|
343
368
|
### Patch Changes
|
|
344
369
|
|
|
345
|
-
-
|
|
346
|
-
-
|
|
347
|
-
-
|
|
348
|
-
-
|
|
349
|
-
-
|
|
350
|
-
-
|
|
370
|
+
- ccb6fe00: Miscellaneous TS type fixes
|
|
371
|
+
- d4c2b18c: Fix a variety of issues with Flow types generated by flowgen
|
|
372
|
+
- Updated dependencies [ccb6fe00]
|
|
373
|
+
- Updated dependencies [d4c2b18c]
|
|
374
|
+
- @khanacademy/wonder-blocks-core@5.0.1
|
|
375
|
+
- @khanacademy/wonder-blocks-spacing@4.0.1
|
|
351
376
|
|
|
352
377
|
## 2.0.0
|
|
353
378
|
|
|
354
379
|
### Major Changes
|
|
355
380
|
|
|
356
|
-
-
|
|
381
|
+
- 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)
|
|
357
382
|
|
|
358
383
|
### Patch Changes
|
|
359
384
|
|
|
360
|
-
-
|
|
361
|
-
-
|
|
362
|
-
-
|
|
385
|
+
- Updated dependencies [1ca4d7e3]
|
|
386
|
+
- @khanacademy/wonder-blocks-core@5.0.0
|
|
387
|
+
- @khanacademy/wonder-blocks-spacing@4.0.0
|
|
363
388
|
|
|
364
389
|
## 1.4.19
|
|
365
390
|
|
|
366
391
|
### Patch Changes
|
|
367
392
|
|
|
368
|
-
-
|
|
369
|
-
-
|
|
370
|
-
-
|
|
371
|
-
-
|
|
393
|
+
- b5ba5568: Ensure that flow lib defs use React.ElementConfig<> isntead of JSX.LibraryManagedAttributes<>
|
|
394
|
+
- Updated dependencies [b5ba5568]
|
|
395
|
+
- @khanacademy/wonder-blocks-core@4.9.1
|
|
396
|
+
- @khanacademy/wonder-blocks-spacing@3.0.7
|
|
372
397
|
|
|
373
398
|
## 1.4.18
|
|
374
399
|
|
|
375
400
|
### Patch Changes
|
|
376
401
|
|
|
377
|
-
-
|
|
378
|
-
-
|
|
402
|
+
- Updated dependencies [779b031d]
|
|
403
|
+
- @khanacademy/wonder-blocks-core@4.9.0
|
|
379
404
|
|
|
380
405
|
## 1.4.17
|
|
381
406
|
|
|
382
407
|
### Patch Changes
|
|
383
408
|
|
|
384
|
-
-
|
|
385
|
-
-
|
|
386
|
-
-
|
|
387
|
-
-
|
|
388
|
-
-
|
|
389
|
-
-
|
|
390
|
-
-
|
|
391
|
-
-
|
|
392
|
-
-
|
|
393
|
-
-
|
|
394
|
-
-
|
|
395
|
-
-
|
|
396
|
-
-
|
|
397
|
-
-
|
|
398
|
-
-
|
|
399
|
-
-
|
|
400
|
-
-
|
|
401
|
-
-
|
|
402
|
-
-
|
|
409
|
+
- d816af08: Update build and test configs use TypeScript
|
|
410
|
+
- 3891f544: Update babel config to include plugins that Storybook needed
|
|
411
|
+
- 0d28bb1c: Configured TypeScript
|
|
412
|
+
- 3d05f764: Fix HOCs and other type errors
|
|
413
|
+
- c2ec4902: Update eslint configuration, fix lint
|
|
414
|
+
- 2983c05b: Include 'types' field in package.json
|
|
415
|
+
- 77ff6a66: Generate Flow types from TypeScript types
|
|
416
|
+
- ec8d4b7f: Fix miscellaneous TypeScript errors
|
|
417
|
+
- Updated dependencies [d816af08]
|
|
418
|
+
- Updated dependencies [3891f544]
|
|
419
|
+
- Updated dependencies [0d28bb1c]
|
|
420
|
+
- Updated dependencies [873f4a14]
|
|
421
|
+
- Updated dependencies [3d05f764]
|
|
422
|
+
- Updated dependencies [c2ec4902]
|
|
423
|
+
- Updated dependencies [2983c05b]
|
|
424
|
+
- Updated dependencies [77ff6a66]
|
|
425
|
+
- Updated dependencies [ec8d4b7f]
|
|
426
|
+
- @khanacademy/wonder-blocks-core@4.8.0
|
|
427
|
+
- @khanacademy/wonder-blocks-spacing@3.0.6
|
|
403
428
|
|
|
404
429
|
## 1.4.16
|
|
405
430
|
|
|
406
431
|
### Patch Changes
|
|
407
432
|
|
|
408
|
-
-
|
|
409
|
-
-
|
|
410
|
-
-
|
|
411
|
-
-
|
|
433
|
+
- 91cb727c: Remove file extensions from imports
|
|
434
|
+
- Updated dependencies [91cb727c]
|
|
435
|
+
- Updated dependencies [91cb727c]
|
|
436
|
+
- @khanacademy/wonder-blocks-core@4.7.0
|
|
412
437
|
|
|
413
438
|
## 1.4.15
|
|
414
439
|
|
|
415
440
|
### Patch Changes
|
|
416
441
|
|
|
417
|
-
-
|
|
418
|
-
-
|
|
442
|
+
- Updated dependencies [496119f2]
|
|
443
|
+
- @khanacademy/wonder-blocks-core@4.6.2
|
|
419
444
|
|
|
420
445
|
## 1.4.14
|
|
421
446
|
|
|
422
447
|
### Patch Changes
|
|
423
448
|
|
|
424
|
-
-
|
|
449
|
+
- @khanacademy/wonder-blocks-core@4.6.1
|
|
425
450
|
|
|
426
451
|
## 1.4.13
|
|
427
452
|
|
|
428
453
|
### Patch Changes
|
|
429
454
|
|
|
430
|
-
-
|
|
431
|
-
-
|
|
432
|
-
-
|
|
433
|
-
-
|
|
455
|
+
- Updated dependencies [b561425a]
|
|
456
|
+
- Updated dependencies [a566e232]
|
|
457
|
+
- Updated dependencies [d2b21a6e]
|
|
458
|
+
- @khanacademy/wonder-blocks-core@4.6.0
|
|
434
459
|
|
|
435
460
|
## 1.4.12
|
|
436
461
|
|
|
437
462
|
### Patch Changes
|
|
438
463
|
|
|
439
|
-
-
|
|
440
|
-
-
|
|
464
|
+
- Updated dependencies [175a2dd2]
|
|
465
|
+
- @khanacademy/wonder-blocks-core@4.5.0
|
|
441
466
|
|
|
442
467
|
## 1.4.11
|
|
443
468
|
|
|
444
469
|
### Patch Changes
|
|
445
470
|
|
|
446
|
-
-
|
|
447
|
-
-
|
|
471
|
+
- Updated dependencies [6ee20af9]
|
|
472
|
+
- @khanacademy/wonder-blocks-core@4.4.0
|
|
448
473
|
|
|
449
474
|
## 1.4.10
|
|
450
475
|
|
|
451
476
|
### Patch Changes
|
|
452
477
|
|
|
453
|
-
-
|
|
454
|
-
-
|
|
455
|
-
-
|
|
478
|
+
- Updated dependencies [5f4a4297]
|
|
479
|
+
- Updated dependencies [2b96fd59]
|
|
480
|
+
- @khanacademy/wonder-blocks-core@4.3.2
|
|
456
481
|
|
|
457
482
|
## 1.4.9
|
|
458
483
|
|
|
459
484
|
### Patch Changes
|
|
460
485
|
|
|
461
|
-
-
|
|
486
|
+
- @khanacademy/wonder-blocks-core@4.3.1
|
|
462
487
|
|
|
463
488
|
## 1.4.8
|
|
464
489
|
|
|
465
490
|
### Patch Changes
|
|
466
491
|
|
|
467
|
-
-
|
|
468
|
-
-
|
|
492
|
+
- Updated dependencies [246a921d]
|
|
493
|
+
- @khanacademy/wonder-blocks-core@4.3.0
|
|
469
494
|
|
|
470
495
|
## 1.4.7
|
|
471
496
|
|
|
472
497
|
### Patch Changes
|
|
473
498
|
|
|
474
|
-
-
|
|
499
|
+
- @khanacademy/wonder-blocks-core@4.2.1
|
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
package/dist/index.js
CHANGED
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
6
4
|
var React = require('react');
|
|
7
5
|
var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
|
|
8
6
|
var wonderBlocksTokens = require('@khanacademy/wonder-blocks-tokens');
|
|
9
7
|
var aphrodite = require('aphrodite');
|
|
10
8
|
|
|
11
|
-
function
|
|
12
|
-
|
|
13
|
-
function _interopNamespace(e) {
|
|
14
|
-
if (e && e.__esModule) return e;
|
|
9
|
+
function _interopNamespaceDefault(e) {
|
|
15
10
|
var n = Object.create(null);
|
|
16
11
|
if (e) {
|
|
17
12
|
Object.keys(e).forEach(function (k) {
|
|
@@ -24,12 +19,11 @@ function _interopNamespace(e) {
|
|
|
24
19
|
}
|
|
25
20
|
});
|
|
26
21
|
}
|
|
27
|
-
n
|
|
22
|
+
n.default = e;
|
|
28
23
|
return Object.freeze(n);
|
|
29
24
|
}
|
|
30
25
|
|
|
31
|
-
var
|
|
32
|
-
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
|
+
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
33
27
|
|
|
34
28
|
const VALID_MEDIA_SIZES = ["small", "medium", "large"];
|
|
35
29
|
const mediaDefaultSpecLargeMarginWidth = wonderBlocksTokens.spacing.large_24;
|
|
@@ -89,7 +83,7 @@ const DEFAULT_SIZE = "large";
|
|
|
89
83
|
class MediaLayoutInternal extends React__namespace.Component {
|
|
90
84
|
constructor(props) {
|
|
91
85
|
super(props);
|
|
92
|
-
this.cleanupThunks =
|
|
86
|
+
this.cleanupThunks = undefined;
|
|
93
87
|
this.state = {
|
|
94
88
|
size: undefined
|
|
95
89
|
};
|
|
@@ -188,7 +182,7 @@ class MediaLayout extends React__namespace.Component {
|
|
|
188
182
|
overrideSize,
|
|
189
183
|
ssrSize,
|
|
190
184
|
mediaSpec
|
|
191
|
-
}) => React__namespace.createElement(MediaLayoutInternal,
|
|
185
|
+
}) => React__namespace.createElement(MediaLayoutInternal, _extends({}, this.props, {
|
|
192
186
|
overrideSize: overrideSize,
|
|
193
187
|
ssrSize: ssrSize,
|
|
194
188
|
mediaSpec: mediaSpec
|
package/dist/util/test-util.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ declare const queries: {
|
|
|
9
9
|
readonly medium: "(min-width: 768px) and (max-width: 1023px)";
|
|
10
10
|
readonly large: "(min-width: 1024px)";
|
|
11
11
|
};
|
|
12
|
-
export declare function checkQuery(queryString: typeof queries[keyof typeof queries], width: number): boolean;
|
|
12
|
+
export declare function checkQuery(queryString: (typeof queries)[keyof typeof queries], width: number): boolean;
|
|
13
13
|
type Listener = (arg1: {
|
|
14
14
|
matches: boolean;
|
|
15
15
|
}) => void;
|
|
@@ -22,5 +22,5 @@ type MatchMedia = {
|
|
|
22
22
|
*
|
|
23
23
|
* @param {MediaQuery} query
|
|
24
24
|
*/
|
|
25
|
-
export declare function matchMedia(query: typeof queries[keyof typeof queries]): MatchMedia;
|
|
25
|
+
export declare function matchMedia(query: (typeof queries)[keyof typeof queries]): MatchMedia;
|
|
26
26
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-layout",
|
|
3
|
-
"version": "3.0
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,22 +9,21 @@
|
|
|
9
9
|
"main": "dist/index.js",
|
|
10
10
|
"module": "dist/es/index.js",
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
|
-
"scripts": {
|
|
13
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"prepublishOnly": "../../utils/publish/package-pre-publish-check.sh"
|
|
15
|
-
},
|
|
16
12
|
"dependencies": {
|
|
17
|
-
"@babel/runtime": "^7.
|
|
18
|
-
"@khanacademy/wonder-blocks-core": "
|
|
19
|
-
"@khanacademy/wonder-blocks-tokens": "
|
|
13
|
+
"@babel/runtime": "^7.24.5",
|
|
14
|
+
"@khanacademy/wonder-blocks-core": "12.1.0",
|
|
15
|
+
"@khanacademy/wonder-blocks-tokens": "4.2.0"
|
|
20
16
|
},
|
|
21
17
|
"devDependencies": {
|
|
22
|
-
"@khanacademy/wb-dev-build-settings": "
|
|
18
|
+
"@khanacademy/wb-dev-build-settings": "2.1.0"
|
|
23
19
|
},
|
|
24
20
|
"peerDependencies": {
|
|
25
21
|
"aphrodite": "^1.2.5",
|
|
26
22
|
"react": "18.2.0"
|
|
27
23
|
},
|
|
28
24
|
"author": "",
|
|
29
|
-
"license": "MIT"
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
28
|
+
}
|
|
30
29
|
}
|