@khanacademy/wonder-blocks-layout
Advanced tools
Comparing version 2.0.28 to 2.0.29
# @khanacademy/wonder-blocks-layout | ||
## 2.0.29 | ||
### Patch Changes | ||
- c39bfd29: Updates the MediaLayout component to respect the value of Server.isServerSide() | ||
## 2.0.28 | ||
@@ -4,0 +10,0 @@ |
import * as React from 'react'; | ||
import { Server, View } from '@khanacademy/wonder-blocks-core'; | ||
import { spacing } from '@khanacademy/wonder-blocks-tokens'; | ||
import { StyleSheet } from 'aphrodite'; | ||
import { View } from '@khanacademy/wonder-blocks-core'; | ||
@@ -121,3 +121,3 @@ function _extends() { | ||
isServerSide() { | ||
return typeof window === "undefined" || !window.matchMedia; | ||
return Server.isServerSide() || typeof window === "undefined" || !window.matchMedia; | ||
} | ||
@@ -124,0 +124,0 @@ getMockStyleSheet(mediaSize) { |
@@ -6,5 +6,5 @@ 'use strict'; | ||
var React = require('react'); | ||
var wonderBlocksCore = require('@khanacademy/wonder-blocks-core'); | ||
var wonderBlocksTokens = require('@khanacademy/wonder-blocks-tokens'); | ||
var aphrodite = require('aphrodite'); | ||
var wonderBlocksCore = require('@khanacademy/wonder-blocks-core'); | ||
@@ -146,3 +146,3 @@ function _interopNamespace(e) { | ||
isServerSide() { | ||
return typeof window === "undefined" || !window.matchMedia; | ||
return wonderBlocksCore.Server.isServerSide() || typeof window === "undefined" || !window.matchMedia; | ||
} | ||
@@ -149,0 +149,0 @@ getMockStyleSheet(mediaSize) { |
{ | ||
"name": "@khanacademy/wonder-blocks-layout", | ||
"version": "2.0.28", | ||
"version": "2.0.29", | ||
"design": "v1", | ||
@@ -5,0 +5,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141255
2177