@khanacademy/wonder-blocks-layout
Advanced tools
Comparing version 0.0.0-PR2192-20240228161454 to 0.0.0-PR2201-20240401163347
# @khanacademy/wonder-blocks-layout | ||
## 0.0.0-PR2192-20240228161454 | ||
## 0.0.0-PR2201-20240401163347 | ||
### Patch Changes | ||
- 845e6e41: Updates the MediaLayout component to respect the value of Server.isServerSide() | ||
## 2.0.28 | ||
### Patch Changes | ||
- Updated dependencies [4cfb4977] | ||
- @khanacademy/wonder-blocks-tokens@0.0.0-PR2192-20240228161454 | ||
- @khanacademy/wonder-blocks-tokens@1.1.0 | ||
@@ -10,0 +16,0 @@ ## 2.0.27 |
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": "0.0.0-PR2192-20240228161454", | ||
"version": "0.0.0-PR2201-20240401163347", | ||
"design": "v1", | ||
@@ -18,3 +18,3 @@ "publishConfig": { | ||
"@khanacademy/wonder-blocks-core": "^6.3.1", | ||
"@khanacademy/wonder-blocks-tokens": "0.0.0-PR2192-20240228161454" | ||
"@khanacademy/wonder-blocks-tokens": "^1.1.0" | ||
}, | ||
@@ -21,0 +21,0 @@ "devDependencies": { |
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
141297
2177
+ Added@khanacademy/wonder-blocks-tokens@1.3.1(transitive)
- Removed@khanacademy/wonder-blocks-color@3.0.0(transitive)
- Removed@khanacademy/wonder-blocks-spacing@4.0.1(transitive)
- Removed@khanacademy/wonder-blocks-tokens@0.0.0-PR2192-20240228161454(transitive)