mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2025-04-06 21:40:23 +08:00
Revert "add prefix to emotion"
This reverts commit b72432d7d89c67ed1c1cb00a26fe681ae72f5d01.
This commit is contained in:
parent
d4deecab9d
commit
f477faf2a9
@ -33,7 +33,6 @@
|
||||
"dependencies": {
|
||||
"@chakra-ui/icons": "^1.0.15",
|
||||
"@chakra-ui/react": "^1.7.1",
|
||||
"@emotion/cache": "^11.6.0",
|
||||
"@emotion/react": "^11",
|
||||
"@emotion/styled": "^11",
|
||||
"@sunmao-ui/core": "^0.3.0",
|
||||
|
@ -1,6 +1,4 @@
|
||||
import { ChakraProvider } from '@chakra-ui/react';
|
||||
import { CacheProvider } from '@emotion/react';
|
||||
import createCache from '@emotion/cache';
|
||||
import { Registry } from '@sunmao-ui/runtime/lib/services/registry';
|
||||
import { StrictMode } from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
@ -18,10 +16,6 @@ type Options = Partial<{
|
||||
container: Element;
|
||||
}>;
|
||||
|
||||
const cache = createCache({
|
||||
key: 'sunmao-editor',
|
||||
});
|
||||
|
||||
export default function renderApp(options: Options = {}) {
|
||||
const {
|
||||
components = [],
|
||||
@ -36,11 +30,9 @@ export default function renderApp(options: Options = {}) {
|
||||
|
||||
ReactDOM.render(
|
||||
<StrictMode>
|
||||
<CacheProvider value={cache}>
|
||||
<ChakraProvider>
|
||||
<Editor App={App} registry={registry} stateStore={stateStore} />
|
||||
</ChakraProvider>
|
||||
</CacheProvider>
|
||||
<ChakraProvider>
|
||||
<Editor App={App} registry={registry} stateStore={stateStore} />
|
||||
</ChakraProvider>
|
||||
</StrictMode>,
|
||||
container
|
||||
);
|
||||
|
16
yarn.lock
16
yarn.lock
@ -1606,17 +1606,6 @@
|
||||
"@emotion/weak-memoize" "^0.2.5"
|
||||
stylis "^4.0.10"
|
||||
|
||||
"@emotion/cache@^11.6.0":
|
||||
version "11.6.0"
|
||||
resolved "http://192.168.26.29:7001/@emotion/cache/download/@emotion/cache-11.6.0.tgz#65fbdbbe4382f1991d8b20853c38e63ecccec9a1"
|
||||
integrity sha1-ZfvbvkOC8ZkdiyCFPDjmPszOyaE=
|
||||
dependencies:
|
||||
"@emotion/memoize" "^0.7.4"
|
||||
"@emotion/sheet" "^1.1.0"
|
||||
"@emotion/utils" "^1.0.0"
|
||||
"@emotion/weak-memoize" "^0.2.5"
|
||||
stylis "^4.0.10"
|
||||
|
||||
"@emotion/hash@^0.8.0":
|
||||
version "0.8.0"
|
||||
resolved "https://registry.yarnpkg.com/@emotion/hash/-/hash-0.8.0.tgz#bbbff68978fefdbe68ccb533bc8cbe1d1afb5413"
|
||||
@ -1675,11 +1664,6 @@
|
||||
resolved "https://registry.yarnpkg.com/@emotion/sheet/-/sheet-1.0.3.tgz#00c326cd7985c5ccb8fe2c1b592886579dcfab8f"
|
||||
integrity sha512-YoX5GyQ4db7LpbmXHMuc8kebtBGP6nZfRC5Z13OKJMixBEwdZrJ914D6yJv/P+ZH/YY3F5s89NYX2hlZAf3SRQ==
|
||||
|
||||
"@emotion/sheet@^1.1.0":
|
||||
version "1.1.0"
|
||||
resolved "http://192.168.26.29:7001/@emotion/sheet/download/@emotion/sheet-1.1.0.tgz#56d99c41f0a1cda2726a05aa6a20afd4c63e58d2"
|
||||
integrity sha1-VtmcQfChzaJyagWqaiCv1MY+WNI=
|
||||
|
||||
"@emotion/styled@^11":
|
||||
version "11.3.0"
|
||||
resolved "https://registry.yarnpkg.com/@emotion/styled/-/styled-11.3.0.tgz#d63ee00537dfb6ff612e31b0e915c5cf9925a207"
|
||||
|
Loading…
x
Reference in New Issue
Block a user