@theme-ui/core
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -1,7 +0,25 @@ | ||
import { jsx as jsx$1, ThemeContext } from '@emotion/core'; | ||
import { jsx as jsx$1, ThemeContext } from '@emotion/react'; | ||
import { css } from '@theme-ui/css'; | ||
import { createContext, useContext } from 'react'; | ||
import deepmerge from 'deepmerge'; | ||
import packageInfo from '@emotion/core/package.json'; | ||
import packageInfo from '@emotion/react/package.json'; | ||
function _extends() { | ||
_extends = Object.assign || function (target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
} | ||
const __EMOTION_VERSION__ = packageInfo.version; | ||
@@ -84,9 +102,9 @@ | ||
if (outer.__EMOTION_VERSION__ !== __EMOTION_VERSION__) { | ||
console.warn('Multiple versions of Emotion detected,', 'and theming might not work as expected.', 'Please ensure there is only one copy of @emotion/core installed in your application.'); | ||
console.warn('Multiple versions of Emotion detected,', 'and theming might not work as expected.', 'Please ensure there is only one copy of @emotion/react installed in your application.'); | ||
} | ||
} | ||
const context = typeof theme === 'function' ? { ...outer, | ||
const context = typeof theme === 'function' ? _extends({}, outer, { | ||
theme: theme(outer.theme) | ||
} : merge.all({}, outer, { | ||
}) : merge.all({}, outer, { | ||
theme | ||
@@ -93,0 +111,0 @@ }); |
{ | ||
"name": "@theme-ui/core", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"main": "dist/index.js", | ||
@@ -19,3 +19,3 @@ "module": "dist/index.esm.js", | ||
"@emotion/core": "^10.0.0", | ||
"@theme-ui/css": "^0.3.3", | ||
"@theme-ui/css": "^0.3.4", | ||
"deepmerge": "^4.2.2" | ||
@@ -29,3 +29,3 @@ }, | ||
}, | ||
"gitHead": "bfba2df8fdd01119c3af6a233355db1955c54ba0" | ||
"gitHead": "7840f829dea27b554c5cd1cb00470770fceca2eb" | ||
} |
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
57993
1003
Updated@theme-ui/css@^0.3.4