@khanacademy/wonder-blocks-layout 3.0.8 → 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 +186 -168
- 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,319 +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
|
+
|
|
3
21
|
## 3.0.8
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
6
24
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
25
|
+
- Updated dependencies [0199324d]
|
|
26
|
+
- @khanacademy/wonder-blocks-core@12.0.0
|
|
9
27
|
|
|
10
28
|
## 3.0.7
|
|
11
29
|
|
|
12
30
|
### Patch Changes
|
|
13
31
|
|
|
14
|
-
-
|
|
15
|
-
-
|
|
16
|
-
-
|
|
32
|
+
- Updated dependencies [8cfaeab0]
|
|
33
|
+
- Updated dependencies [c162abb4]
|
|
34
|
+
- @khanacademy/wonder-blocks-tokens@4.1.0
|
|
17
35
|
|
|
18
36
|
## 3.0.6
|
|
19
37
|
|
|
20
38
|
### Patch Changes
|
|
21
39
|
|
|
22
|
-
-
|
|
23
|
-
-
|
|
40
|
+
- Updated dependencies [0de25cd8]
|
|
41
|
+
- @khanacademy/wonder-blocks-tokens@4.0.0
|
|
24
42
|
|
|
25
43
|
## 3.0.5
|
|
26
44
|
|
|
27
45
|
### Patch Changes
|
|
28
46
|
|
|
29
|
-
-
|
|
30
|
-
-
|
|
47
|
+
- Updated dependencies [7516b239]
|
|
48
|
+
- @khanacademy/wonder-blocks-core@11.1.0
|
|
31
49
|
|
|
32
50
|
## 3.0.4
|
|
33
51
|
|
|
34
52
|
### Patch Changes
|
|
35
53
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
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
|
|
40
58
|
|
|
41
59
|
## 3.0.3
|
|
42
60
|
|
|
43
61
|
### Patch Changes
|
|
44
62
|
|
|
45
|
-
-
|
|
46
|
-
-
|
|
63
|
+
- Updated dependencies [d23c9c5f]
|
|
64
|
+
- @khanacademy/wonder-blocks-core@11.0.0
|
|
47
65
|
|
|
48
66
|
## 3.0.2
|
|
49
67
|
|
|
50
68
|
### Patch Changes
|
|
51
69
|
|
|
52
|
-
-
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
-
|
|
70
|
+
- Updated dependencies [b6009b77]
|
|
71
|
+
- Updated dependencies [897686bc]
|
|
72
|
+
- Updated dependencies [56d961f1]
|
|
73
|
+
- @khanacademy/wonder-blocks-core@10.0.0
|
|
56
74
|
|
|
57
75
|
## 3.0.1
|
|
58
76
|
|
|
59
77
|
### Patch Changes
|
|
60
78
|
|
|
61
|
-
-
|
|
62
|
-
-
|
|
79
|
+
- Updated dependencies [f4abd572]
|
|
80
|
+
- @khanacademy/wonder-blocks-core@9.0.0
|
|
63
81
|
|
|
64
82
|
## 3.0.0
|
|
65
83
|
|
|
66
84
|
### Major Changes
|
|
67
85
|
|
|
68
|
-
-
|
|
86
|
+
- e6abdd17: Upgrade to React 18
|
|
69
87
|
|
|
70
88
|
### Patch Changes
|
|
71
89
|
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
90
|
+
- Updated dependencies [e6abdd17]
|
|
91
|
+
- @khanacademy/wonder-blocks-core@8.0.0
|
|
92
|
+
- @khanacademy/wonder-blocks-tokens@3.0.0
|
|
75
93
|
|
|
76
94
|
## 2.2.2
|
|
77
95
|
|
|
78
96
|
### Patch Changes
|
|
79
97
|
|
|
80
|
-
-
|
|
81
|
-
-
|
|
98
|
+
- Updated dependencies [6999fd39]
|
|
99
|
+
- @khanacademy/wonder-blocks-tokens@2.1.0
|
|
82
100
|
|
|
83
101
|
## 2.2.1
|
|
84
102
|
|
|
85
103
|
### Patch Changes
|
|
86
104
|
|
|
87
|
-
-
|
|
88
|
-
-
|
|
89
|
-
-
|
|
90
|
-
-
|
|
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
|
|
91
109
|
|
|
92
110
|
## 2.2.0
|
|
93
111
|
|
|
94
112
|
### Minor Changes
|
|
95
113
|
|
|
96
|
-
-
|
|
114
|
+
- 07f7f407: Renamed `WithSSRPlaceholder` to `InitialFallback`. This includes changing the `placeholder` prop to `fallback` so it's closer to `Suspense` usage.
|
|
97
115
|
|
|
98
116
|
### Patch Changes
|
|
99
117
|
|
|
100
|
-
-
|
|
101
|
-
-
|
|
118
|
+
- Updated dependencies [07f7f407]
|
|
119
|
+
- @khanacademy/wonder-blocks-core@7.0.0
|
|
102
120
|
|
|
103
121
|
## 2.1.3
|
|
104
122
|
|
|
105
123
|
### Patch Changes
|
|
106
124
|
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
125
|
+
- Updated dependencies [f17dc1ee]
|
|
126
|
+
- Updated dependencies [991eb43f]
|
|
127
|
+
- @khanacademy/wonder-blocks-tokens@2.0.0
|
|
110
128
|
|
|
111
129
|
## 2.1.2
|
|
112
130
|
|
|
113
131
|
### Patch Changes
|
|
114
132
|
|
|
115
|
-
-
|
|
116
|
-
-
|
|
117
|
-
-
|
|
118
|
-
-
|
|
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
|
|
119
137
|
|
|
120
138
|
## 2.1.1
|
|
121
139
|
|
|
122
140
|
### Patch Changes
|
|
123
141
|
|
|
124
|
-
-
|
|
125
|
-
-
|
|
142
|
+
- Updated dependencies [eab37b8b]
|
|
143
|
+
- @khanacademy/wonder-blocks-core@6.4.2
|
|
126
144
|
|
|
127
145
|
## 2.1.0
|
|
128
146
|
|
|
129
147
|
### Minor Changes
|
|
130
148
|
|
|
131
|
-
-
|
|
149
|
+
- 47a758b6: Fix hydration issue in MediaLayout component
|
|
132
150
|
|
|
133
151
|
## 2.0.33
|
|
134
152
|
|
|
135
153
|
### Patch Changes
|
|
136
154
|
|
|
137
|
-
-
|
|
138
|
-
-
|
|
155
|
+
- Updated dependencies [5dfac06e]
|
|
156
|
+
- @khanacademy/wonder-blocks-core@6.4.1
|
|
139
157
|
|
|
140
158
|
## 2.0.32
|
|
141
159
|
|
|
142
160
|
### Patch Changes
|
|
143
161
|
|
|
144
|
-
-
|
|
145
|
-
-
|
|
162
|
+
- Updated dependencies [9bfeead9]
|
|
163
|
+
- @khanacademy/wonder-blocks-tokens@1.3.0
|
|
146
164
|
|
|
147
165
|
## 2.0.31
|
|
148
166
|
|
|
149
167
|
### Patch Changes
|
|
150
168
|
|
|
151
|
-
-
|
|
152
|
-
-
|
|
169
|
+
- Updated dependencies [58075352]
|
|
170
|
+
- @khanacademy/wonder-blocks-core@6.4.0
|
|
153
171
|
|
|
154
172
|
## 2.0.30
|
|
155
173
|
|
|
156
174
|
### Patch Changes
|
|
157
175
|
|
|
158
|
-
-
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
-
|
|
176
|
+
- Updated dependencies [874081aa]
|
|
177
|
+
- Updated dependencies [874081aa]
|
|
178
|
+
- Updated dependencies [a9bf603a]
|
|
179
|
+
- @khanacademy/wonder-blocks-tokens@1.2.0
|
|
162
180
|
|
|
163
181
|
## 2.0.29
|
|
164
182
|
|
|
165
183
|
### Patch Changes
|
|
166
184
|
|
|
167
|
-
-
|
|
185
|
+
- c39bfd29: Updates the MediaLayout component to respect the value of Server.isServerSide()
|
|
168
186
|
|
|
169
187
|
## 2.0.28
|
|
170
188
|
|
|
171
189
|
### Patch Changes
|
|
172
190
|
|
|
173
|
-
-
|
|
174
|
-
-
|
|
191
|
+
- Updated dependencies [4cfb4977]
|
|
192
|
+
- @khanacademy/wonder-blocks-tokens@1.1.0
|
|
175
193
|
|
|
176
194
|
## 2.0.27
|
|
177
195
|
|
|
178
196
|
### Patch Changes
|
|
179
197
|
|
|
180
|
-
-
|
|
181
|
-
-
|
|
198
|
+
- Updated dependencies [e83f8991]
|
|
199
|
+
- @khanacademy/wonder-blocks-tokens@1.0.0
|
|
182
200
|
|
|
183
201
|
## 2.0.26
|
|
184
202
|
|
|
185
203
|
### Patch Changes
|
|
186
204
|
|
|
187
|
-
-
|
|
188
|
-
-
|
|
189
|
-
-
|
|
190
|
-
-
|
|
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
|
|
191
209
|
|
|
192
210
|
## 2.0.25
|
|
193
211
|
|
|
194
212
|
### Patch Changes
|
|
195
213
|
|
|
196
|
-
-
|
|
197
|
-
-
|
|
214
|
+
- Updated dependencies [6df21f71]
|
|
215
|
+
- @khanacademy/wonder-blocks-core@6.3.1
|
|
198
216
|
|
|
199
217
|
## 2.0.24
|
|
200
218
|
|
|
201
219
|
### Patch Changes
|
|
202
220
|
|
|
203
|
-
-
|
|
204
|
-
-
|
|
221
|
+
- Updated dependencies [7055ca94]
|
|
222
|
+
- @khanacademy/wonder-blocks-core@6.3.0
|
|
205
223
|
|
|
206
224
|
## 2.0.23
|
|
207
225
|
|
|
208
226
|
### Patch Changes
|
|
209
227
|
|
|
210
|
-
-
|
|
228
|
+
- b6fbd635: Handle custom media layout specs.
|
|
211
229
|
|
|
212
230
|
## 2.0.22
|
|
213
231
|
|
|
214
232
|
### Patch Changes
|
|
215
233
|
|
|
216
|
-
-
|
|
217
|
-
-
|
|
234
|
+
- Updated dependencies [4b97b9a2]
|
|
235
|
+
- @khanacademy/wonder-blocks-core@6.2.0
|
|
218
236
|
|
|
219
237
|
## 2.0.21
|
|
220
238
|
|
|
221
239
|
### Patch Changes
|
|
222
240
|
|
|
223
|
-
-
|
|
224
|
-
-
|
|
241
|
+
- Updated dependencies [2871f0a9]
|
|
242
|
+
- @khanacademy/wonder-blocks-core@6.1.1
|
|
225
243
|
|
|
226
244
|
## 2.0.20
|
|
227
245
|
|
|
228
246
|
### Patch Changes
|
|
229
247
|
|
|
230
|
-
-
|
|
231
|
-
-
|
|
232
|
-
-
|
|
248
|
+
- Updated dependencies [efb59c29]
|
|
249
|
+
- Updated dependencies [8bc40ed2]
|
|
250
|
+
- @khanacademy/wonder-blocks-core@6.1.0
|
|
233
251
|
|
|
234
252
|
## 2.0.19
|
|
235
253
|
|
|
236
254
|
### Patch Changes
|
|
237
255
|
|
|
238
|
-
-
|
|
239
|
-
-
|
|
256
|
+
- Updated dependencies [f19da46e]
|
|
257
|
+
- @khanacademy/wonder-blocks-core@6.0.2
|
|
240
258
|
|
|
241
259
|
## 2.0.18
|
|
242
260
|
|
|
243
261
|
### Patch Changes
|
|
244
262
|
|
|
245
|
-
-
|
|
246
|
-
-
|
|
263
|
+
- Updated dependencies [1920feb8]
|
|
264
|
+
- @khanacademy/wonder-blocks-core@6.0.1
|
|
247
265
|
|
|
248
266
|
## 2.0.17
|
|
249
267
|
|
|
250
268
|
### Patch Changes
|
|
251
269
|
|
|
252
|
-
-
|
|
253
|
-
-
|
|
254
|
-
-
|
|
270
|
+
- Updated dependencies [674a1e5c]
|
|
271
|
+
- Updated dependencies [674a1e5c]
|
|
272
|
+
- @khanacademy/wonder-blocks-core@6.0.0
|
|
255
273
|
|
|
256
274
|
## 2.0.16
|
|
257
275
|
|
|
258
276
|
### Patch Changes
|
|
259
277
|
|
|
260
|
-
-
|
|
261
|
-
-
|
|
278
|
+
- Updated dependencies [1344436f]
|
|
279
|
+
- @khanacademy/wonder-blocks-core@5.4.0
|
|
262
280
|
|
|
263
281
|
## 2.0.15
|
|
264
282
|
|
|
265
283
|
### Patch Changes
|
|
266
284
|
|
|
267
|
-
-
|
|
268
|
-
-
|
|
285
|
+
- Updated dependencies [9f3752d4]
|
|
286
|
+
- @khanacademy/wonder-blocks-core@5.3.1
|
|
269
287
|
|
|
270
288
|
## 2.0.14
|
|
271
289
|
|
|
272
290
|
### Patch Changes
|
|
273
291
|
|
|
274
|
-
-
|
|
275
|
-
-
|
|
276
|
-
-
|
|
292
|
+
- Updated dependencies [c37b99aa]
|
|
293
|
+
- Updated dependencies [c4cef3e6]
|
|
294
|
+
- @khanacademy/wonder-blocks-core@5.3.0
|
|
277
295
|
|
|
278
296
|
## 2.0.13
|
|
279
297
|
|
|
280
298
|
### Patch Changes
|
|
281
299
|
|
|
282
|
-
-
|
|
283
|
-
-
|
|
300
|
+
- Updated dependencies [d4c412b5]
|
|
301
|
+
- @khanacademy/wonder-blocks-core@5.2.3
|
|
284
302
|
|
|
285
303
|
## 2.0.12
|
|
286
304
|
|
|
287
305
|
### Patch Changes
|
|
288
306
|
|
|
289
|
-
-
|
|
290
|
-
-
|
|
307
|
+
- Updated dependencies [64a188e3]
|
|
308
|
+
- @khanacademy/wonder-blocks-core@5.2.2
|
|
291
309
|
|
|
292
310
|
## 2.0.11
|
|
293
311
|
|
|
294
312
|
### Patch Changes
|
|
295
313
|
|
|
296
|
-
-
|
|
297
|
-
-
|
|
298
|
-
-
|
|
299
|
-
-
|
|
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
|
|
300
318
|
|
|
301
319
|
## 2.0.10
|
|
302
320
|
|
|
303
321
|
### Patch Changes
|
|
304
322
|
|
|
305
|
-
-
|
|
306
|
-
-
|
|
307
|
-
-
|
|
308
|
-
-
|
|
323
|
+
- Updated dependencies [fa70c895]
|
|
324
|
+
- Updated dependencies [19ab0408]
|
|
325
|
+
- Updated dependencies [fa70c895]
|
|
326
|
+
- @khanacademy/wonder-blocks-core@5.2.0
|
|
309
327
|
|
|
310
328
|
## 2.0.9
|
|
311
329
|
|
|
312
330
|
### Patch Changes
|
|
313
331
|
|
|
314
|
-
-
|
|
315
|
-
-
|
|
316
|
-
-
|
|
332
|
+
- Updated dependencies [3c400719]
|
|
333
|
+
- Updated dependencies [a6164ed0]
|
|
334
|
+
- @khanacademy/wonder-blocks-core@5.1.0
|
|
317
335
|
|
|
318
336
|
## 2.0.8
|
|
319
337
|
|
|
@@ -323,9 +341,9 @@
|
|
|
323
341
|
|
|
324
342
|
### Patch Changes
|
|
325
343
|
|
|
326
|
-
-
|
|
327
|
-
-
|
|
328
|
-
-
|
|
344
|
+
- c20f48f3: Don't transpile classes when building bundles
|
|
345
|
+
- Updated dependencies [c20f48f3]
|
|
346
|
+
- @khanacademy/wonder-blocks-core@5.0.4
|
|
329
347
|
|
|
330
348
|
## 2.0.5
|
|
331
349
|
|
|
@@ -335,147 +353,147 @@
|
|
|
335
353
|
|
|
336
354
|
### Patch Changes
|
|
337
355
|
|
|
338
|
-
-
|
|
339
|
-
-
|
|
356
|
+
- Updated dependencies [b281e2eb]
|
|
357
|
+
- @khanacademy/wonder-blocks-core@5.0.3
|
|
340
358
|
|
|
341
359
|
## 2.0.2
|
|
342
360
|
|
|
343
361
|
### Patch Changes
|
|
344
362
|
|
|
345
|
-
-
|
|
346
|
-
-
|
|
363
|
+
- Updated dependencies [21ce20c7]
|
|
364
|
+
- @khanacademy/wonder-blocks-core@5.0.2
|
|
347
365
|
|
|
348
366
|
## 2.0.1
|
|
349
367
|
|
|
350
368
|
### Patch Changes
|
|
351
369
|
|
|
352
|
-
-
|
|
353
|
-
-
|
|
354
|
-
-
|
|
355
|
-
-
|
|
356
|
-
-
|
|
357
|
-
-
|
|
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
|
|
358
376
|
|
|
359
377
|
## 2.0.0
|
|
360
378
|
|
|
361
379
|
### Major Changes
|
|
362
380
|
|
|
363
|
-
-
|
|
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)
|
|
364
382
|
|
|
365
383
|
### Patch Changes
|
|
366
384
|
|
|
367
|
-
-
|
|
368
|
-
-
|
|
369
|
-
-
|
|
385
|
+
- Updated dependencies [1ca4d7e3]
|
|
386
|
+
- @khanacademy/wonder-blocks-core@5.0.0
|
|
387
|
+
- @khanacademy/wonder-blocks-spacing@4.0.0
|
|
370
388
|
|
|
371
389
|
## 1.4.19
|
|
372
390
|
|
|
373
391
|
### Patch Changes
|
|
374
392
|
|
|
375
|
-
-
|
|
376
|
-
-
|
|
377
|
-
-
|
|
378
|
-
-
|
|
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
|
|
379
397
|
|
|
380
398
|
## 1.4.18
|
|
381
399
|
|
|
382
400
|
### Patch Changes
|
|
383
401
|
|
|
384
|
-
-
|
|
385
|
-
-
|
|
402
|
+
- Updated dependencies [779b031d]
|
|
403
|
+
- @khanacademy/wonder-blocks-core@4.9.0
|
|
386
404
|
|
|
387
405
|
## 1.4.17
|
|
388
406
|
|
|
389
407
|
### Patch Changes
|
|
390
408
|
|
|
391
|
-
-
|
|
392
|
-
-
|
|
393
|
-
-
|
|
394
|
-
-
|
|
395
|
-
-
|
|
396
|
-
-
|
|
397
|
-
-
|
|
398
|
-
-
|
|
399
|
-
-
|
|
400
|
-
-
|
|
401
|
-
-
|
|
402
|
-
-
|
|
403
|
-
-
|
|
404
|
-
-
|
|
405
|
-
-
|
|
406
|
-
-
|
|
407
|
-
-
|
|
408
|
-
-
|
|
409
|
-
-
|
|
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
|
|
410
428
|
|
|
411
429
|
## 1.4.16
|
|
412
430
|
|
|
413
431
|
### Patch Changes
|
|
414
432
|
|
|
415
|
-
-
|
|
416
|
-
-
|
|
417
|
-
-
|
|
418
|
-
-
|
|
433
|
+
- 91cb727c: Remove file extensions from imports
|
|
434
|
+
- Updated dependencies [91cb727c]
|
|
435
|
+
- Updated dependencies [91cb727c]
|
|
436
|
+
- @khanacademy/wonder-blocks-core@4.7.0
|
|
419
437
|
|
|
420
438
|
## 1.4.15
|
|
421
439
|
|
|
422
440
|
### Patch Changes
|
|
423
441
|
|
|
424
|
-
-
|
|
425
|
-
-
|
|
442
|
+
- Updated dependencies [496119f2]
|
|
443
|
+
- @khanacademy/wonder-blocks-core@4.6.2
|
|
426
444
|
|
|
427
445
|
## 1.4.14
|
|
428
446
|
|
|
429
447
|
### Patch Changes
|
|
430
448
|
|
|
431
|
-
-
|
|
449
|
+
- @khanacademy/wonder-blocks-core@4.6.1
|
|
432
450
|
|
|
433
451
|
## 1.4.13
|
|
434
452
|
|
|
435
453
|
### Patch Changes
|
|
436
454
|
|
|
437
|
-
-
|
|
438
|
-
-
|
|
439
|
-
-
|
|
440
|
-
-
|
|
455
|
+
- Updated dependencies [b561425a]
|
|
456
|
+
- Updated dependencies [a566e232]
|
|
457
|
+
- Updated dependencies [d2b21a6e]
|
|
458
|
+
- @khanacademy/wonder-blocks-core@4.6.0
|
|
441
459
|
|
|
442
460
|
## 1.4.12
|
|
443
461
|
|
|
444
462
|
### Patch Changes
|
|
445
463
|
|
|
446
|
-
-
|
|
447
|
-
-
|
|
464
|
+
- Updated dependencies [175a2dd2]
|
|
465
|
+
- @khanacademy/wonder-blocks-core@4.5.0
|
|
448
466
|
|
|
449
467
|
## 1.4.11
|
|
450
468
|
|
|
451
469
|
### Patch Changes
|
|
452
470
|
|
|
453
|
-
-
|
|
454
|
-
-
|
|
471
|
+
- Updated dependencies [6ee20af9]
|
|
472
|
+
- @khanacademy/wonder-blocks-core@4.4.0
|
|
455
473
|
|
|
456
474
|
## 1.4.10
|
|
457
475
|
|
|
458
476
|
### Patch Changes
|
|
459
477
|
|
|
460
|
-
-
|
|
461
|
-
-
|
|
462
|
-
-
|
|
478
|
+
- Updated dependencies [5f4a4297]
|
|
479
|
+
- Updated dependencies [2b96fd59]
|
|
480
|
+
- @khanacademy/wonder-blocks-core@4.3.2
|
|
463
481
|
|
|
464
482
|
## 1.4.9
|
|
465
483
|
|
|
466
484
|
### Patch Changes
|
|
467
485
|
|
|
468
|
-
-
|
|
486
|
+
- @khanacademy/wonder-blocks-core@4.3.1
|
|
469
487
|
|
|
470
488
|
## 1.4.8
|
|
471
489
|
|
|
472
490
|
### Patch Changes
|
|
473
491
|
|
|
474
|
-
-
|
|
475
|
-
-
|
|
492
|
+
- Updated dependencies [246a921d]
|
|
493
|
+
- @khanacademy/wonder-blocks-core@4.3.0
|
|
476
494
|
|
|
477
495
|
## 1.4.7
|
|
478
496
|
|
|
479
497
|
### Patch Changes
|
|
480
498
|
|
|
481
|
-
-
|
|
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
|
}
|