@instructure/emotion
Advanced tools
Comparing version 8.4.1-snapshot.46 to 8.4.1-snapshot.49
@@ -37,3 +37,3 @@ /* | ||
export const useTheme = () => { | ||
let theme = useEmotionTheme(); | ||
let theme = useEmotionTheme(); // TODO type theme properly, then this cast might not be needed. | ||
@@ -40,0 +40,0 @@ if (isEmpty(theme)) { |
@@ -47,3 +47,3 @@ "use strict"; | ||
const useTheme = () => { | ||
let theme = (0, _react.useTheme)(); | ||
let theme = (0, _react.useTheme)(); // TODO type theme properly, then this cast might not be needed. | ||
@@ -50,0 +50,0 @@ if ((0, _isEmpty.isEmpty)(theme)) { |
{ | ||
"name": "@instructure/emotion", | ||
"version": "8.4.1-snapshot.46+cfa4acd30", | ||
"version": "8.4.1-snapshot.49+89d2ea80f", | ||
"description": "A UI component library made by Instructure Inc.", | ||
@@ -29,7 +29,7 @@ "author": "Instructure, Inc. Engineering and Product Design", | ||
"@emotion/react": "11.0.0", | ||
"@instructure/console": "8.4.1-snapshot.46+cfa4acd30", | ||
"@instructure/ui-decorator": "8.4.1-snapshot.46+cfa4acd30", | ||
"@instructure/ui-i18n": "8.4.1-snapshot.46+cfa4acd30", | ||
"@instructure/ui-themes": "8.4.1-snapshot.46+cfa4acd30", | ||
"@instructure/ui-utils": "8.4.1-snapshot.46+cfa4acd30", | ||
"@instructure/console": "8.4.1-snapshot.49+89d2ea80f", | ||
"@instructure/ui-decorator": "8.4.1-snapshot.49+89d2ea80f", | ||
"@instructure/ui-i18n": "8.4.1-snapshot.49+89d2ea80f", | ||
"@instructure/ui-themes": "8.4.1-snapshot.49+89d2ea80f", | ||
"@instructure/ui-utils": "8.4.1-snapshot.49+89d2ea80f", | ||
"emotion-theming": "^10.0.27", | ||
@@ -41,4 +41,4 @@ "hoist-non-react-statics": "^3.3.2", | ||
"devDependencies": { | ||
"@instructure/ui-babel-preset": "8.4.1-snapshot.46+cfa4acd30", | ||
"@instructure/ui-test-utils": "8.4.1-snapshot.46+cfa4acd30" | ||
"@instructure/ui-babel-preset": "8.4.1-snapshot.49+89d2ea80f", | ||
"@instructure/ui-test-utils": "8.4.1-snapshot.49+89d2ea80f" | ||
}, | ||
@@ -52,3 +52,3 @@ "peerDependencies": { | ||
"sideEffects": false, | ||
"gitHead": "cfa4acd30733e1b74f71cdb0b00f8a1f53b1afe1" | ||
"gitHead": "89d2ea80f110dc1c9c8cbd7e88bb920e3edbc079" | ||
} |
@@ -39,4 +39,4 @@ /* | ||
let theme = useEmotionTheme() | ||
if (isEmpty(theme)) { | ||
// TODO type theme properly, then this cast might not be needed. | ||
if (isEmpty(theme as Record<string, unknown>)) { | ||
if (process.env.NODE_ENV !== 'production') { | ||
@@ -47,7 +47,5 @@ console.warn( | ||
} | ||
theme = canvas | ||
} | ||
return theme | ||
} |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
160710
3392