@khanacademy/wonder-blocks-layout 3.1.0 → 3.1.2

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,5 +1,28 @@
1
1
  # @khanacademy/wonder-blocks-layout
2
2
 
3
+ ## 3.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [ed26d66]
8
+ - Updated dependencies [5655b9f]
9
+ - Updated dependencies [5655b9f]
10
+ - Updated dependencies [8f53293]
11
+ - Updated dependencies [051f0f8]
12
+ - Updated dependencies [e1b78db]
13
+ - Updated dependencies [051f0f8]
14
+ - @khanacademy/wonder-blocks-core@12.2.0
15
+ - @khanacademy/wonder-blocks-tokens@5.0.0
16
+
17
+ ## 3.1.1
18
+
19
+ ### Patch Changes
20
+
21
+ - ee8d95a: Rollback rollup version from v4 to v2 to prevent an issue with CJS builds in unit tests
22
+ - Updated dependencies [ee8d95a]
23
+ - @khanacademy/wonder-blocks-core@12.1.1
24
+ - @khanacademy/wonder-blocks-tokens@4.2.1
25
+
3
26
  ## 3.1.0
4
27
 
5
28
  ### Minor Changes
package/dist/es/index.js CHANGED
@@ -62,7 +62,7 @@ const DEFAULT_SIZE = "large";
62
62
  class MediaLayoutInternal extends React.Component {
63
63
  constructor(props) {
64
64
  super(props);
65
- this.cleanupThunks = undefined;
65
+ this.cleanupThunks = void 0;
66
66
  this.state = {
67
67
  size: undefined
68
68
  };
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 _interopNamespaceDefault(e) {
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.default = e;
27
+ n["default"] = e;
23
28
  return Object.freeze(n);
24
29
  }
25
30
 
26
- var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
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 = undefined;
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, _extends({}, this.props, {
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.0",
3
+ "version": "3.1.2",
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.0",
15
- "@khanacademy/wonder-blocks-tokens": "4.2.0"
14
+ "@khanacademy/wonder-blocks-core": "12.2.0",
15
+ "@khanacademy/wonder-blocks-tokens": "5.0.0"
16
16
  },
17
17
  "devDependencies": {
18
- "@khanacademy/wb-dev-build-settings": "2.1.0"
18
+ "@khanacademy/wb-dev-build-settings": "2.1.1"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "aphrodite": "^1.2.5",