react-cosmos 6.0.0-alpha.9 → 6.0.0-canary.118b8d9.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.
|
@@ -22,6 +22,7 @@ export function createCosmosConfig(rootDir, cosmosConfigInput = {}) {
|
|
|
22
22
|
userDepsFilePath: getUserDepsFilePath(cosmosConfigInput, rootDir),
|
|
23
23
|
watchDirs: getWatchDirs(cosmosConfigInput, rootDir),
|
|
24
24
|
rendererUrl: cosmosConfigInput.rendererUrl ?? null,
|
|
25
|
+
dom: getDomConfig(cosmosConfigInput.dom || {}),
|
|
25
26
|
ui: cosmosConfigInput.ui || {},
|
|
26
27
|
};
|
|
27
28
|
}
|
|
@@ -86,3 +87,9 @@ function getPlugins(cosmosConfigInput, rootDir) {
|
|
|
86
87
|
const { plugins = [] } = cosmosConfigInput;
|
|
87
88
|
return plugins.map(plugin => resolveLoose(rootDir, plugin));
|
|
88
89
|
}
|
|
90
|
+
function getDomConfig(cosmosConfigInput) {
|
|
91
|
+
const { containerQuerySelector = null } = cosmosConfigInput;
|
|
92
|
+
return {
|
|
93
|
+
containerQuerySelector,
|
|
94
|
+
};
|
|
95
|
+
}
|
|
@@ -2,10 +2,14 @@ interface HttpsOptions {
|
|
|
2
2
|
keyPath: string;
|
|
3
3
|
certPath: string;
|
|
4
4
|
}
|
|
5
|
+
export type CosmosDomConfig = {
|
|
6
|
+
containerQuerySelector: null | string;
|
|
7
|
+
};
|
|
5
8
|
export type CosmosConfig = {
|
|
6
9
|
exportPath: string;
|
|
7
10
|
detectLocalPlugins: boolean;
|
|
8
11
|
disablePlugins: boolean;
|
|
12
|
+
dom: CosmosDomConfig;
|
|
9
13
|
fixtureFileSuffix: string;
|
|
10
14
|
fixturesDir: string;
|
|
11
15
|
globalImports: string[];
|
|
@@ -26,5 +30,6 @@ export type CosmosConfig = {
|
|
|
26
30
|
[pluginName: string]: {};
|
|
27
31
|
};
|
|
28
32
|
};
|
|
33
|
+
export type CosmosDomConfigInput = Partial<CosmosDomConfig>;
|
|
29
34
|
export type CosmosConfigInput = Partial<CosmosConfig>;
|
|
30
35
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-cosmos",
|
|
3
|
-
"version": "6.0.0-
|
|
3
|
+
"version": "6.0.0-canary.118b8d9.0+118b8d9",
|
|
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",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"open": "^8.4.2",
|
|
18
18
|
"pem": "^1.14.6",
|
|
19
19
|
"pkg-up": "^4.0.0",
|
|
20
|
-
"react-cosmos-core": "^6.0.0-
|
|
21
|
-
"react-cosmos-ui": "^6.0.0-
|
|
20
|
+
"react-cosmos-core": "^6.0.0-canary.118b8d9.0+118b8d9",
|
|
21
|
+
"react-cosmos-ui": "^6.0.0-canary.118b8d9.0+118b8d9",
|
|
22
22
|
"ws": "^8.12.1",
|
|
23
23
|
"yargs": "^17.7.1"
|
|
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": "118b8d92996abb4ec43f6fe7db22eb6c1e1ccfbc"
|
|
31
31
|
}
|