react-cosmos 6.2.3 → 6.2.4-canary.0ff5b03.0

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.
@@ -71,8 +71,8 @@
71
71
  "description": "Expose user imports and config required for the Cosmos renderer. Used with React Native and in custom integrations. When a path is specified it requires a file extension (eg. \"src/cosmos.imports.ts\"). [default: false]",
72
72
  "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "boolean" }]
73
73
  },
74
- "hostname": {
75
- "description": "Dev server hostname. Set to null to accept connections with any hostname. [default: null]",
74
+ "host": {
75
+ "description": "Dev server host. Set to null to accept connections from any address that reaches the server. [default: null]",
76
76
  "anyOf": [{ "type": "string", "minLength": 1 }, { "type": "null" }]
77
77
  },
78
78
  "port": {
@@ -216,12 +216,23 @@
216
216
  "type": "object",
217
217
  "additionalProperties": true,
218
218
  "properties": {
219
+ "rendererPreview": {
220
+ "description": "Options for the renderer preview UI plugin.",
221
+ "type": "object",
222
+ "additionalProperties": false,
223
+ "properties": {
224
+ "backgroundColor": {
225
+ "description": "Background color of the iframe preview. [default: \"#fff\"]",
226
+ "type": "string"
227
+ }
228
+ }
229
+ },
219
230
  "responsivePreview": {
220
231
  "type": "object",
221
232
  "additionalProperties": false,
222
233
  "properties": {
223
234
  "devices": {
224
- "description": "List of device viewports",
235
+ "description": "List of device viewports.",
225
236
  "type": "array",
226
237
  "items": {
227
238
  "type": "object",
@@ -1,8 +1,8 @@
1
1
  import fs from 'node:fs/promises';
2
2
  import path from 'node:path';
3
- import { pickRendererUrl, } from 'react-cosmos-core';
4
- import { getPlaygroundUrl } from '../shared/playgroundUrl.js';
3
+ import { pickRendererUrl } from 'react-cosmos-core';
5
4
  import { updateFixtureListCache } from '../shared/serverFixtureList.js';
5
+ import { getWebSocketUrl } from '../shared/webSocketUrl.js';
6
6
  import { findUserModulePaths } from '../userModules/findUserModulePaths.js';
7
7
  import { startFixtureWatcher } from '../userModules/fixtureWatcher.js';
8
8
  import { generateUserImports } from '../userModules/generateUserImports.js';
@@ -13,13 +13,13 @@ export const fixtureWatcherPlugin = {
13
13
  const exposeImports = shouldExposeImports(platform, cosmosConfig);
14
14
  if (exposeImports) {
15
15
  const modulePaths = await findUserModulePaths(cosmosConfig);
16
- await generateImportsFile(cosmosConfig, 'dev', modulePaths);
16
+ await generateImportsFile(platform, cosmosConfig, 'dev', modulePaths);
17
17
  }
18
18
  const watcher = await startFixtureWatcher(cosmosConfig, 'all', async () => {
19
19
  const modulePaths = await findUserModulePaths(cosmosConfig);
20
20
  updateFixtureListCache(cosmosConfig.rootDir, modulePaths.fixturePaths);
21
21
  if (exposeImports) {
22
- generateImportsFile(cosmosConfig, 'dev', modulePaths);
22
+ generateImportsFile(platform, cosmosConfig, 'dev', modulePaths);
23
23
  }
24
24
  });
25
25
  return async () => {
@@ -29,22 +29,26 @@ export const fixtureWatcherPlugin = {
29
29
  async export({ cosmosConfig }) {
30
30
  if (shouldExposeImports('web', cosmosConfig)) {
31
31
  const modulePaths = await findUserModulePaths(cosmosConfig);
32
- await generateImportsFile(cosmosConfig, 'export', modulePaths);
32
+ await generateImportsFile('web', cosmosConfig, 'export', modulePaths);
33
33
  }
34
34
  },
35
35
  };
36
36
  function shouldExposeImports(platform, cosmosConfig) {
37
37
  return platform === 'native' || Boolean(cosmosConfig.exposeImports);
38
38
  }
39
- async function generateImportsFile(cosmosConfig, command, modulePaths) {
39
+ async function generateImportsFile(platform, cosmosConfig, mode, modulePaths) {
40
40
  const { exposeImports } = cosmosConfig;
41
41
  const filePath = typeof exposeImports === 'string'
42
42
  ? exposeImports
43
43
  : getDefaultFilePath(cosmosConfig.rootDir);
44
44
  const typeScript = /\.tsx?$/.test(filePath);
45
45
  const rendererConfig = {
46
- playgroundUrl: getPlaygroundUrl(cosmosConfig),
47
- rendererUrl: pickRendererUrl(cosmosConfig.rendererUrl, command),
46
+ webSocketUrl: mode === 'dev'
47
+ ? getWebSocketUrl(cosmosConfig, platform === 'native')
48
+ : null,
49
+ rendererUrl: platform === 'web'
50
+ ? pickRendererUrl(cosmosConfig.rendererUrl, mode)
51
+ : null,
48
52
  };
49
53
  const fileSource = generateUserImports({
50
54
  cosmosConfig,
@@ -17,8 +17,8 @@ export const fixturesJsonPlugin = {
17
17
  await fs.writeFile(path.join(exportPath, 'cosmos.fixtures.json'), JSON.stringify(json, null, 2));
18
18
  },
19
19
  };
20
- async function createFixtureItems(cosmosConfig, command) {
21
- const rendererUrl = pickRendererUrl(cosmosConfig.rendererUrl, command);
20
+ async function createFixtureItems(cosmosConfig, mode) {
21
+ const rendererUrl = pickRendererUrl(cosmosConfig.rendererUrl, mode);
22
22
  if (!rendererUrl) {
23
23
  return {
24
24
  rendererUrl: null,
@@ -1,8 +1,8 @@
1
1
  import { findNextAvailablePort } from '../shared/findNextAvailablePort.js';
2
2
  export const portRetryPlugin = {
3
3
  name: 'portRetry',
4
- async config({ cosmosConfig, command }) {
5
- if (command === 'export') {
4
+ async config({ cosmosConfig, mode }) {
5
+ if (mode === 'export') {
6
6
  return cosmosConfig;
7
7
  }
8
8
  const { port, portRetries } = cosmosConfig;
@@ -12,7 +12,7 @@ export function createCosmosConfig(rootDir, cosmosConfigInput = {}) {
12
12
  fixtureFileSuffix: getFixtureFileSuffix(cosmosConfigInput),
13
13
  fixturesDir: getFixturesDir(cosmosConfigInput),
14
14
  globalImports: getGlobalImports(cosmosConfigInput, rootDir),
15
- hostname: getHostname(cosmosConfigInput),
15
+ host: getHost(cosmosConfigInput),
16
16
  https: getHttps(cosmosConfigInput),
17
17
  httpsOptions: getHttpsOptions(cosmosConfigInput, rootDir),
18
18
  ignore: getIgnore(cosmosConfigInput),
@@ -76,8 +76,8 @@ function getExposeImports(cosmosConfigInput, rootDir) {
76
76
  ? path.resolve(rootDir, exposeImports)
77
77
  : exposeImports;
78
78
  }
79
- function getHostname({ hostname = null }) {
80
- return hostname;
79
+ function getHost({ host = null, hostname = null }) {
80
+ return host ?? hostname;
81
81
  }
82
82
  function getPort(cosmosConfigInput) {
83
83
  const cliArgs = getCliArgs();
@@ -1,2 +1,4 @@
1
1
  export declare function getCurrentDir(): string;
2
- export declare function importConfigFile(cosmosConfigPath: string): Promise<Partial<import("./types.js").CosmosConfig>>;
2
+ export declare function importConfigFile(cosmosConfigPath: string): Promise<Partial<import("./types.js").CosmosConfig & {
3
+ hostname: null | string;
4
+ }>>;
@@ -15,7 +15,7 @@ export type CosmosConfig = {
15
15
  fixtureFileSuffix: string;
16
16
  fixturesDir: string;
17
17
  globalImports: string[];
18
- hostname: null | string;
18
+ host: null | string;
19
19
  https: boolean;
20
20
  httpsOptions: null | HttpsOptions;
21
21
  ignore: string[];
@@ -34,5 +34,7 @@ export type CosmosConfig = {
34
34
  };
35
35
  };
36
36
  export type CosmosDomConfigInput = Partial<CosmosDomConfig>;
37
- export type CosmosConfigInput = Partial<CosmosConfig>;
37
+ export type CosmosConfigInput = Partial<CosmosConfig & {
38
+ hostname: null | string;
39
+ }>;
38
40
  export {};
@@ -1,11 +1,11 @@
1
1
  import express from 'express';
2
2
  import http from 'http';
3
- import { CosmosCommand, MessageType } from 'react-cosmos-core';
3
+ import { CosmosMode, MessageType } from 'react-cosmos-core';
4
4
  import { CosmosConfig } from '../cosmosConfig/types.js';
5
5
  export type CosmosPlatform = 'web' | 'native';
6
6
  export type CosmosConfigPluginArgs = {
7
7
  cosmosConfig: CosmosConfig;
8
- command: CosmosCommand;
8
+ mode: CosmosMode;
9
9
  platform: CosmosPlatform;
10
10
  };
11
11
  export type CosmosConfigPlugin = (args: CosmosConfigPluginArgs) => Promise<CosmosConfig> | CosmosConfig;
@@ -2,7 +2,7 @@ import http from 'http';
2
2
  import https from 'https';
3
3
  import { CosmosConfig } from '../cosmosConfig/types.js';
4
4
  type RequestListener = (request: http.IncomingMessage, response: http.ServerResponse) => void;
5
- export declare function createHttpServer(cosmosConfig: CosmosConfig, requestListener: RequestListener): Promise<{
5
+ export declare function createHttpServer(config: CosmosConfig, requestListener: RequestListener): Promise<{
6
6
  server: http.Server<typeof http.IncomingMessage, typeof http.ServerResponse> | https.Server<typeof http.IncomingMessage, typeof http.ServerResponse>;
7
7
  start: () => Promise<void>;
8
8
  stop: () => Promise<void>;
@@ -3,21 +3,20 @@ import http from 'http';
3
3
  import https from 'https';
4
4
  import pem from 'pem';
5
5
  import { getPlaygroundUrl } from '../shared/playgroundUrl.js';
6
- export async function createHttpServer(cosmosConfig, requestListener) {
7
- const { port, hostname, https: httpsEnabled } = cosmosConfig;
8
- const server = httpsEnabled
9
- ? https.createServer(await getHttpsOpts(cosmosConfig), requestListener)
6
+ export async function createHttpServer(config, requestListener) {
7
+ const server = config.https
8
+ ? https.createServer(await getHttpsOpts(config), requestListener)
10
9
  : http.createServer(requestListener);
11
10
  async function start() {
12
11
  await new Promise(resolve => {
13
- if (hostname === null) {
14
- server.listen(port, resolve);
12
+ if (config.host === null) {
13
+ server.listen(config.port, resolve);
15
14
  }
16
15
  else {
17
- server.listen(port, hostname, resolve);
16
+ server.listen(config.port, config.host, resolve);
18
17
  }
19
18
  });
20
- console.log(`[Cosmos] See you at ${getPlaygroundUrl(cosmosConfig)}`);
19
+ console.log(`[Cosmos] See you at ${getPlaygroundUrl(config)}`);
21
20
  }
22
21
  async function stop() {
23
22
  await new Promise(resolve => server.close(resolve));
@@ -23,7 +23,7 @@ export async function startDevServer(platform) {
23
23
  cosmosConfig = await applyServerConfigPlugins({
24
24
  cosmosConfig,
25
25
  serverPlugins,
26
- command: 'dev',
26
+ mode: 'dev',
27
27
  platform,
28
28
  });
29
29
  const app = await createExpressApp(platform, cosmosConfig, pluginConfigs);
@@ -21,7 +21,7 @@ export async function generateExport() {
21
21
  cosmosConfig = await applyServerConfigPlugins({
22
22
  cosmosConfig,
23
23
  serverPlugins,
24
- command: 'export',
24
+ mode: 'export',
25
25
  platform: 'web',
26
26
  });
27
27
  // Clear previous export (or other files at export path)
@@ -45,7 +45,7 @@ function getFlatFixtureTree(cosmosConfig, fixtures) {
45
45
  }
46
46
  function getPlaygroundFixtureUrl(cosmosConfig, fixtureId) {
47
47
  const baseUrl = getPlaygroundUrl(cosmosConfig);
48
- const query = buildPlaygroundQueryString({ fixtureId });
48
+ const query = buildPlaygroundQueryString({ fixture: fixtureId });
49
49
  return `${baseUrl}/${query}`;
50
50
  }
51
51
  function createFixtureElementGetter(fixture, fixtureOptions, fixturePath, decoratorsByPath) {
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@ export * from './getFixtures/getFixtures.js';
10
10
  export * from './shared/findNextAvailablePort.js';
11
11
  export * from './shared/playgroundUrl.js';
12
12
  export * from './shared/staticServer.js';
13
+ export * from './shared/webSocketUrl.js';
13
14
  export * from './testHelpers/cwd.js';
14
15
  export * from './userModules/findUserModulePaths.js';
15
16
  export * from './userModules/fixtureWatcher.js';
package/dist/index.js CHANGED
@@ -9,6 +9,7 @@ export * from './getFixtures/getFixtures.js';
9
9
  export * from './shared/findNextAvailablePort.js';
10
10
  export * from './shared/playgroundUrl.js';
11
11
  export * from './shared/staticServer.js';
12
+ export * from './shared/webSocketUrl.js';
12
13
  export * from './testHelpers/cwd.js';
13
14
  export * from './userModules/findUserModulePaths.js';
14
15
  export * from './userModules/fixtureWatcher.js';
@@ -1,11 +1,11 @@
1
- import { CosmosCommand } from 'react-cosmos-core';
1
+ import { CosmosMode } from 'react-cosmos-core';
2
2
  import { CosmosConfig } from '../cosmosConfig/types.js';
3
3
  import { CosmosPlatform, CosmosServerPlugin } from '../cosmosPlugin/types.js';
4
4
  type Args = {
5
5
  cosmosConfig: CosmosConfig;
6
6
  serverPlugins: CosmosServerPlugin[];
7
- command: CosmosCommand;
7
+ mode: CosmosMode;
8
8
  platform: CosmosPlatform;
9
9
  };
10
- export declare function applyServerConfigPlugins({ cosmosConfig, serverPlugins, command, platform, }: Args): Promise<CosmosConfig>;
10
+ export declare function applyServerConfigPlugins({ cosmosConfig, serverPlugins, mode, platform, }: Args): Promise<CosmosConfig>;
11
11
  export {};
@@ -1,8 +1,8 @@
1
- export async function applyServerConfigPlugins({ cosmosConfig, serverPlugins, command, platform, }) {
1
+ export async function applyServerConfigPlugins({ cosmosConfig, serverPlugins, mode, platform, }) {
2
2
  for (const plugin of serverPlugins) {
3
3
  if (plugin.config) {
4
4
  try {
5
- cosmosConfig = await plugin.config({ cosmosConfig, command, platform });
5
+ cosmosConfig = await plugin.config({ cosmosConfig, mode, platform });
6
6
  }
7
7
  catch (err) {
8
8
  console.log(`[Cosmos][plugin:${plugin.name}] Config hook failed`);
@@ -1,6 +1,6 @@
1
1
  export function getPlaygroundUrl(cosmosConfig) {
2
- const { hostname, port, https: httpsEnabled } = cosmosConfig;
2
+ const { host, port, https: httpsEnabled } = cosmosConfig;
3
3
  const protocol = httpsEnabled ? 'https' : 'http';
4
- const hostnameDisplay = hostname || 'localhost';
5
- return `${protocol}://${hostnameDisplay}:${port}`;
4
+ const hostDisplay = host || 'localhost';
5
+ return `${protocol}://${hostDisplay}:${port}`;
6
6
  }
@@ -0,0 +1,2 @@
1
+ import { CosmosConfig } from '../cosmosConfig/types.js';
2
+ export declare function getWebSocketUrl(config: CosmosConfig, ipAddress: boolean): string;
@@ -0,0 +1,22 @@
1
+ import * as os from 'node:os';
2
+ export function getWebSocketUrl(config, ipAddress) {
3
+ const protocol = config.https ? 'wss' : 'ws';
4
+ const host = config.host ?? (ipAddress ? getIpAddress() : 'localhost');
5
+ return `${protocol}://${host}:${config.port}`;
6
+ }
7
+ function getIpAddress() {
8
+ const nets = os.networkInterfaces();
9
+ for (const name of Object.keys(nets)) {
10
+ if (nets[name]) {
11
+ for (const net of nets[name]) {
12
+ // Skip over non-IPv4 and internal (i.e. 127.0.0.1) addresses
13
+ // 'IPv4' is in Node <= 17, from 18 it's a number 4 or 6
14
+ const familyV4Value = typeof net.family === 'string' ? 'IPv4' : 4;
15
+ if (net.family === familyV4Value && !net.internal) {
16
+ return net.address;
17
+ }
18
+ }
19
+ }
20
+ }
21
+ return '127.0.0.1';
22
+ }
@@ -4,7 +4,7 @@
4
4
  <meta charset="utf-8" />
5
5
  <meta
6
6
  name="viewport"
7
- content="width=device-width, initial-scale=1, shrink-to-fit=no"
7
+ content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"
8
8
  />
9
9
  <title>React Cosmos</title>
10
10
  <link rel="icon" href="_cosmos.ico" />
@@ -1 +1 @@
1
- {"root":["../src/client.ts","../src/index.ts","../src/vitest.ts","../src/@types/launch-editor.d.ts","../src/@types/mdx.d.ts","../src/@types/yargs.d.ts","../src/coreplugins/fixturewatcherplugin.ts","../src/coreplugins/fixturesjsonplugin.ts","../src/coreplugins/httpproxyplugin.ts","../src/coreplugins/index.ts","../src/coreplugins/openfileplugin.ts","../src/coreplugins/pluginendpointplugin.ts","../src/coreplugins/portretryplugin.ts","../src/cosmosconfig/createcosmosconfig.ts","../src/cosmosconfig/detectcosmosconfig.ts","../src/cosmosconfig/getcosmosconfigatpath.ts","../src/cosmosconfig/shared.ts","../src/cosmosconfig/types.ts","../src/cosmosplugin/findcosmospluginconfigs.ts","../src/cosmosplugin/pluginconfigs.ts","../src/cosmosplugin/readcosmospluginconfig.ts","../src/cosmosplugin/types.ts","../src/devserver/expressapp.ts","../src/devserver/httpserver.ts","../src/devserver/messagehandler.ts","../src/devserver/startdevserver.ts","../src/export/generateexport.ts","../src/getfixtures/getfixtures.ts","../src/getfixtures/importusermodules.ts","../src/shared/applyserverconfigplugins.ts","../src/shared/findnextavailableport.ts","../src/shared/getserverplugins.ts","../src/shared/importserverplugins.ts","../src/shared/logplugininfo.ts","../src/shared/playgroundhtml.ts","../src/shared/playgroundurl.ts","../src/shared/serverfixturelist.ts","../src/shared/staticpath.ts","../src/shared/staticserver.ts","../src/usermodules/findusermodulepaths.ts","../src/usermodules/fixturewatcher.ts","../src/usermodules/generateuserimports.ts","../src/usermodules/shared.ts","../src/usermodules/userimportslazytemplate.ts","../src/usermodules/userimportstemplate.ts","../src/utils/cli.ts","../src/utils/findup.ts","../src/utils/fs.ts","../src/utils/isnodeerror.ts","../src/utils/json.ts","../src/utils/requiremodule.ts","../src/utils/resolve.ts","../src/utils/resolveloose.ts","../src/utils/resolvesilent.ts","../src/utils/slash.ts"],"version":"5.7.2"}
1
+ {"root":["../src/client.ts","../src/index.ts","../src/vitest.ts","../src/@types/launch-editor.d.ts","../src/@types/mdx.d.ts","../src/@types/yargs.d.ts","../src/corePlugins/fixtureWatcherPlugin.ts","../src/corePlugins/fixturesJsonPlugin.ts","../src/corePlugins/httpProxyPlugin.ts","../src/corePlugins/index.ts","../src/corePlugins/openFilePlugin.ts","../src/corePlugins/pluginEndpointPlugin.ts","../src/corePlugins/portRetryPlugin.ts","../src/cosmosConfig/createCosmosConfig.ts","../src/cosmosConfig/detectCosmosConfig.ts","../src/cosmosConfig/getCosmosConfigAtPath.ts","../src/cosmosConfig/shared.ts","../src/cosmosConfig/types.ts","../src/cosmosPlugin/findCosmosPluginConfigs.ts","../src/cosmosPlugin/pluginConfigs.ts","../src/cosmosPlugin/readCosmosPluginConfig.ts","../src/cosmosPlugin/types.ts","../src/devServer/expressApp.ts","../src/devServer/httpServer.ts","../src/devServer/messageHandler.ts","../src/devServer/startDevServer.ts","../src/export/generateExport.ts","../src/getFixtures/getFixtures.ts","../src/getFixtures/importUserModules.ts","../src/shared/applyServerConfigPlugins.ts","../src/shared/findNextAvailablePort.ts","../src/shared/getServerPlugins.ts","../src/shared/importServerPlugins.ts","../src/shared/logPluginInfo.ts","../src/shared/playgroundHtml.ts","../src/shared/playgroundUrl.ts","../src/shared/serverFixtureList.ts","../src/shared/staticPath.ts","../src/shared/staticServer.ts","../src/shared/webSocketUrl.ts","../src/userModules/findUserModulePaths.ts","../src/userModules/fixtureWatcher.ts","../src/userModules/generateUserImports.ts","../src/userModules/shared.ts","../src/userModules/userImportsLazyTemplate.ts","../src/userModules/userImportsTemplate.ts","../src/utils/cli.ts","../src/utils/findUp.ts","../src/utils/fs.ts","../src/utils/isNodeError.ts","../src/utils/json.ts","../src/utils/requireModule.ts","../src/utils/resolve.ts","../src/utils/resolveLoose.ts","../src/utils/resolveSilent.ts","../src/utils/slash.ts"],"version":"5.7.3"}
@@ -19,12 +19,13 @@ export function userImportsLazyTemplate({ globalImports, modulePaths: { fixtureP
19
19
  let importGroups = [globalImportItems];
20
20
  if (typeScript) {
21
21
  importGroups.unshift([
22
- `import { RendererConfig, UserModuleWrappers } from 'react-cosmos-core';`,
22
+ `import type { RendererConfig, UserModuleWrappers } from 'react-cosmos-core';`,
23
23
  ]);
24
24
  }
25
25
  return `
26
- // This file is automatically generated by Cosmos. Add it to .gitignore and
27
- // only edit if you know what you're doing.
26
+ // NOTE: This file is auto-generated by React Cosmos.
27
+ // It imports all fixture and decorator modules, making them available to the
28
+ // React Cosmos renderer along with the renderer config.
28
29
  ${importsStr(importGroups)}
29
30
  export const rendererConfig${ts(': RendererConfig')} = ${rendererConfigStr};
30
31
 
@@ -21,12 +21,13 @@ export function userImportsTemplate({ globalImports, modulePaths: { fixturePaths
21
21
  let importGroups = [globalImportItems, fixtureImports, decoratorImports];
22
22
  if (typeScript) {
23
23
  importGroups.unshift([
24
- `import { RendererConfig, UserModuleWrappers } from 'react-cosmos-core';`,
24
+ `import type { RendererConfig, UserModuleWrappers } from 'react-cosmos-core';`,
25
25
  ]);
26
26
  }
27
27
  return `
28
- // This file is automatically generated by Cosmos. Add it to .gitignore and
29
- // only edit if you know what you're doing.
28
+ // NOTE: This file is auto-generated by React Cosmos.
29
+ // It imports all fixture and decorator modules, making them available to the
30
+ // React Cosmos renderer along with the renderer config.
30
31
  ${importsStr(importGroups)}
31
32
  export const rendererConfig${ts(': RendererConfig')} = ${rendererConfigStr};
32
33
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-cosmos",
3
- "version": "6.2.3",
3
+ "version": "6.2.4-canary.0ff5b03.0+0ff5b03",
4
4
  "description": "Sandbox for developing and testing UI components in isolation",
5
5
  "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos",
6
6
  "license": "MIT",
@@ -16,9 +16,9 @@
16
16
  "micromatch": "4.0.8",
17
17
  "open": "10.1.0",
18
18
  "pem": "1.15.1",
19
- "react-cosmos-core": "^6.2.0",
20
- "react-cosmos-renderer": "^6.2.0",
21
- "react-cosmos-ui": "^6.2.3",
19
+ "react-cosmos-core": "6.2.4-canary.0ff5b03.0+0ff5b03",
20
+ "react-cosmos-renderer": "6.2.4-canary.0ff5b03.0+0ff5b03",
21
+ "react-cosmos-ui": "6.2.4-canary.0ff5b03.0+0ff5b03",
22
22
  "ws": "8.18.0",
23
23
  "yargs": "17.7.2"
24
24
  },
@@ -27,5 +27,5 @@
27
27
  "cosmos-export": "./bin/cosmos-export.js",
28
28
  "cosmos-native": "./bin/cosmos-native.js"
29
29
  },
30
- "gitHead": "3fd36c822e406c3fd1973c20b13ae182973493fa"
30
+ "gitHead": "0ff5b03e72a598aa75d858fe01b5e9d7a89fbdc4"
31
31
  }