react-cosmos 6.2.3 → 6.2.4-canary.0c1e01c.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.
package/config.schema.json
CHANGED
|
@@ -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",
|
|
@@ -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/static/index.html
CHANGED
|
@@ -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,
|
|
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/
|
|
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.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-cosmos",
|
|
3
|
-
"version": "6.2.
|
|
3
|
+
"version": "6.2.4-canary.0c1e01c.0+0c1e01c",
|
|
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": "
|
|
20
|
-
"react-cosmos-renderer": "
|
|
21
|
-
"react-cosmos-ui": "
|
|
19
|
+
"react-cosmos-core": "6.2.4-canary.0c1e01c.0+0c1e01c",
|
|
20
|
+
"react-cosmos-renderer": "6.2.4-canary.0c1e01c.0+0c1e01c",
|
|
21
|
+
"react-cosmos-ui": "6.2.4-canary.0c1e01c.0+0c1e01c",
|
|
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": "
|
|
30
|
+
"gitHead": "0c1e01c1bf361a86d51ebc295994f842749b7cdd"
|
|
31
31
|
}
|