react-cosmos-ui 6.0.0-beta.7 → 6.0.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,14 +13,14 @@ window.ReactDom = ReactDom;
13
13
  window.StyledComponents = styled;
14
14
  export default async function mount({ playgroundConfig, pluginConfigs, }) {
15
15
  const { loadPlugins, Slot } = ReactPlugin;
16
- const config = { ...DEFAULT_PLUGIN_CONFIG, ...playgroundConfig };
17
- loadPlugins({ config });
18
16
  // We can make plugin loading unblocking if react-plugin exports the
19
17
  // reloadPlugins method.
20
18
  await Promise.all(pluginConfigs.map(async (pluginConfig) => {
21
19
  if (pluginConfig.ui)
22
20
  await loadPluginScript(pluginConfig.ui);
23
21
  }));
22
+ const config = { ...DEFAULT_PLUGIN_CONFIG, ...playgroundConfig };
23
+ loadPlugins({ config });
24
24
  const root = ReactDom.createRoot(document.getElementById('root'));
25
25
  root.render(React.createElement(React.Fragment, null,
26
26
  React.createElement(GlobalStyle, null),
@@ -0,0 +1 @@
1
+ export * from './testHelpers/pluginMocks.js';
@@ -0,0 +1 @@
1
+ export * from './testHelpers/pluginMocks.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-cosmos-ui",
3
- "version": "6.0.0-beta.7",
3
+ "version": "6.0.0-beta.8",
4
4
  "description": "React Cosmos UI",
5
5
  "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-ui",
6
6
  "license": "MIT",
@@ -14,14 +14,14 @@
14
14
  "playground": "cosmos"
15
15
  },
16
16
  "dependencies": {
17
- "lodash-es": "^4.17.21",
18
- "react-cosmos-core": "6.0.0-beta.7"
17
+ "lodash-es": "4.17.21",
18
+ "react-cosmos-core": "6.0.0-beta.8"
19
19
  },
20
20
  "devDependencies": {
21
- "fuzzaldrin-plus": "^0.6.0",
22
- "localforage": "^1.10.0",
23
- "react-plugin": "^3.0.0-alpha.4",
24
- "styled-components": "^5.3.10"
21
+ "fuzzaldrin-plus": "0.6.0",
22
+ "localforage": "1.10.0",
23
+ "react-plugin": "3.0.0-alpha.4",
24
+ "styled-components": "5.3.11"
25
25
  },
26
- "gitHead": "0d57027263ffb3d55fa1feb31db3640db2e89cc9"
26
+ "gitHead": "2f47b29e24c6a68c4a62b7862d67909905648f7e"
27
27
  }
@@ -0,0 +1 @@
1
+ export * from './dist/pluginMocks.js';
package/pluginMocks.js ADDED
@@ -0,0 +1 @@
1
+ export * from './dist/pluginMocks.js';