react-cosmos-plugin-vite 7.2.0 → 7.2.1-canary.0004fe7.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.
@@ -1,4 +1,4 @@
1
- import { CosmosConfig } from 'react-cosmos';
1
+ import type { CosmosConfig } from 'react-cosmos';
2
2
  export type CosmosViteConfig = {
3
3
  configPath: string | false;
4
4
  mainScriptUrl: string | null;
@@ -1,7 +1,7 @@
1
- import { CosmosConfig } from 'react-cosmos';
2
- import { CosmosMode } from 'react-cosmos-core';
3
- import { Plugin } from 'vite';
4
- import { CosmosViteConfig } from './createCosmosViteConfig.js';
1
+ import type { CosmosConfig } from 'react-cosmos';
2
+ import type { CosmosMode } from 'react-cosmos-core';
3
+ import type { Plugin } from 'vite';
4
+ import type { CosmosViteConfig } from './createCosmosViteConfig.js';
5
5
  export declare const rendererResolvedModuleId: string;
6
6
  export declare const userImportsVirtualModuleId = "virtual:cosmos-imports";
7
7
  export declare const userImportsResolvedModuleId: string;
@@ -1,2 +1,2 @@
1
- import { CosmosConfig, CosmosConfigPluginArgs } from 'react-cosmos';
2
- export declare function viteConfigPlugin({ config, mode, }: CosmosConfigPluginArgs): Promise<CosmosConfig>;
1
+ import type { CosmosConfig, CosmosConfigPluginArgs } from 'react-cosmos';
2
+ export declare function viteConfigPlugin({ config, mode }: CosmosConfigPluginArgs): Promise<CosmosConfig>;
@@ -1,5 +1,5 @@
1
1
  import path from 'node:path';
2
- import { findNextAvailablePort, } from 'react-cosmos';
2
+ import { findNextAvailablePort } from 'react-cosmos';
3
3
  import { RENDERER_FILENAME } from './constants.js';
4
4
  import { getCosmosVitePort } from './createCosmosViteConfig.js';
5
5
  export async function viteConfigPlugin({ config, mode, }) {
@@ -1,2 +1,2 @@
1
- import { DevServerPluginArgs } from 'react-cosmos';
2
- export declare function viteDevServerPlugin({ config, platform, }: DevServerPluginArgs): Promise<(() => void) | undefined>;
1
+ import type { DevServerPluginArgs } from 'react-cosmos';
2
+ export declare function viteDevServerPlugin({ config, platform }: DevServerPluginArgs): Promise<(() => void) | undefined>;
@@ -1,4 +1,4 @@
1
- import { getHttpsCreds, startFixtureWatcher, } from 'react-cosmos';
1
+ import { getHttpsCreds, startFixtureWatcher } from 'react-cosmos';
2
2
  import { pickRendererUrl } from 'react-cosmos-core';
3
3
  import { createServer } from 'vite';
4
4
  import { createCosmosViteConfig } from './createCosmosViteConfig.js';
@@ -1,2 +1,2 @@
1
- import { ExportPluginArgs } from 'react-cosmos';
1
+ import type { ExportPluginArgs } from 'react-cosmos';
2
2
  export declare function viteExportPlugin({ config }: ExportPluginArgs): Promise<void>;
@@ -1,3 +1,3 @@
1
- import { CosmosServerPlugin } from 'react-cosmos';
1
+ import type { CosmosServerPlugin } from 'react-cosmos';
2
2
  declare const viteServerPlugin: CosmosServerPlugin;
3
3
  export default viteServerPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-cosmos-plugin-vite",
3
- "version": "7.2.0",
3
+ "version": "7.2.1-canary.0004fe7.0+0004fe7",
4
4
  "description": "Vite plugin for React Cosmos",
5
5
  "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-plugin-vite",
6
6
  "license": "MIT",
@@ -8,8 +8,8 @@
8
8
  "main": "cosmos.plugin.json",
9
9
  "dependencies": {
10
10
  "parse5": "7.3.0",
11
- "react-cosmos-core": "^7.2.0",
12
- "react-cosmos-dom": "^7.2.0"
11
+ "react-cosmos-core": "7.2.1-canary.0004fe7.0+0004fe7",
12
+ "react-cosmos-dom": "7.2.1-canary.0004fe7.0+0004fe7"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": ">=18",
@@ -17,5 +17,5 @@
17
17
  "react-dom": ">=18",
18
18
  "vite": "*"
19
19
  },
20
- "gitHead": "c1f63d79b3235011fb9f1a919378b95a59fff02e"
20
+ "gitHead": "0004fe756e5584e482ea2acd8a2e7d29cdac2675"
21
21
  }
@@ -0,0 +1 @@
1
+ {"version":"7.0.0-dev.20260417.1","root":["./src/constants.ts","./src/createCosmosViteConfig.ts","./src/createViteRendererIndex.ts","./src/dom.ts","./src/reactCosmosViteRollupPlugin.ts","./src/viteConfigPlugin.ts","./src/viteDevServerPlugin.ts","./src/viteExportPlugin.ts","./src/viteServerPlugin.ts","./src/indexHtml/createIndexHtml.ts","./src/indexHtml/defaultMainScriptUrl.ts","./src/indexHtml/ensureMainScriptUrl.ts","./src/indexHtml/findMainScriptUrl.ts","./src/indexHtml/getHtmlScriptUrls.ts"]}
@@ -1 +0,0 @@
1
- {"root":["../src/constants.ts","../src/createcosmosviteconfig.ts","../src/createviterendererindex.ts","../src/dom.ts","../src/reactcosmosviterollupplugin.ts","../src/viteconfigplugin.ts","../src/vitedevserverplugin.ts","../src/viteexportplugin.ts","../src/viteserverplugin.ts","../src/indexhtml/createindexhtml.ts","../src/indexhtml/defaultmainscripturl.ts","../src/indexhtml/ensuremainscripturl.ts","../src/indexhtml/findmainscripturl.ts","../src/indexhtml/gethtmlscripturls.ts"],"version":"5.9.3"}