@khanacademy/wonder-blocks-layout 3.1.0 → 3.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 +9 -0
- package/dist/es/index.js +1 -1
- package/dist/index.js +11 -5
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @khanacademy/wonder-blocks-layout
|
|
2
2
|
|
|
3
|
+
## 3.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
|
+
|
|
3
12
|
## 3.1.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/es/index.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
3
5
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
4
6
|
var React = require('react');
|
|
5
7
|
var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
|
|
6
8
|
var wonderBlocksTokens = require('@khanacademy/wonder-blocks-tokens');
|
|
7
9
|
var aphrodite = require('aphrodite');
|
|
8
10
|
|
|
9
|
-
function
|
|
11
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
+
|
|
13
|
+
function _interopNamespace(e) {
|
|
14
|
+
if (e && e.__esModule) return e;
|
|
10
15
|
var n = Object.create(null);
|
|
11
16
|
if (e) {
|
|
12
17
|
Object.keys(e).forEach(function (k) {
|
|
@@ -19,11 +24,12 @@ function _interopNamespaceDefault(e) {
|
|
|
19
24
|
}
|
|
20
25
|
});
|
|
21
26
|
}
|
|
22
|
-
n
|
|
27
|
+
n["default"] = e;
|
|
23
28
|
return Object.freeze(n);
|
|
24
29
|
}
|
|
25
30
|
|
|
26
|
-
var
|
|
31
|
+
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
32
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
27
33
|
|
|
28
34
|
const VALID_MEDIA_SIZES = ["small", "medium", "large"];
|
|
29
35
|
const mediaDefaultSpecLargeMarginWidth = wonderBlocksTokens.spacing.large_24;
|
|
@@ -83,7 +89,7 @@ const DEFAULT_SIZE = "large";
|
|
|
83
89
|
class MediaLayoutInternal extends React__namespace.Component {
|
|
84
90
|
constructor(props) {
|
|
85
91
|
super(props);
|
|
86
|
-
this.cleanupThunks =
|
|
92
|
+
this.cleanupThunks = void 0;
|
|
87
93
|
this.state = {
|
|
88
94
|
size: undefined
|
|
89
95
|
};
|
|
@@ -182,7 +188,7 @@ class MediaLayout extends React__namespace.Component {
|
|
|
182
188
|
overrideSize,
|
|
183
189
|
ssrSize,
|
|
184
190
|
mediaSpec
|
|
185
|
-
}) => React__namespace.createElement(MediaLayoutInternal,
|
|
191
|
+
}) => React__namespace.createElement(MediaLayoutInternal, _extends__default["default"]({}, this.props, {
|
|
186
192
|
overrideSize: overrideSize,
|
|
187
193
|
ssrSize: ssrSize,
|
|
188
194
|
mediaSpec: mediaSpec
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-layout",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"types": "dist/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"@babel/runtime": "^7.24.5",
|
|
14
|
-
"@khanacademy/wonder-blocks-core": "12.1.
|
|
15
|
-
"@khanacademy/wonder-blocks-tokens": "4.2.
|
|
14
|
+
"@khanacademy/wonder-blocks-core": "12.1.1",
|
|
15
|
+
"@khanacademy/wonder-blocks-tokens": "4.2.1"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@khanacademy/wb-dev-build-settings": "2.1.
|
|
18
|
+
"@khanacademy/wb-dev-build-settings": "2.1.1"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"aphrodite": "^1.2.5",
|