react-cosmos 6.0.0-beta.6 → 6.0.0-beta.7
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/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://reactcosmos.org"><img alt="Cosmos" width="150" height="150" src="
|
|
2
|
+
<a href="https://reactcosmos.org"><img alt="Cosmos" width="150" height="150" src="cosmos.png"></a>
|
|
3
3
|
<h1 align="center">React Cosmos</h1>
|
|
4
4
|
</p>
|
|
5
5
|
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
|
|
15
15
|
## Getting Started
|
|
16
16
|
|
|
17
|
-
Choose one of the [Getting Started](/docs/
|
|
17
|
+
Choose one of the [Getting Started](https://reactcosmos.org/docs/getting-started) guides to dive into React Cosmos.
|
|
18
18
|
|
|
19
|
-
> Check out the [Next.js integration](/docs/getting-started/next
|
|
19
|
+
> Check out the [Next.js integration](https://reactcosmos.org/docs/getting-started/next) to get started with React Server Components.
|
|
20
20
|
|
|
21
|
-
Visit [docs
|
|
21
|
+
Visit [reactcosmos.org/docs](https://reactcosmos.org/docs) to view the full documentation.
|
|
22
22
|
|
|
23
23
|
## Community
|
|
24
24
|
|
|
@@ -53,9 +53,9 @@ export async function startDevServer(platform) {
|
|
|
53
53
|
sendMessage: msgHandler.sendMessage,
|
|
54
54
|
});
|
|
55
55
|
if (typeof pluginReturn === 'function') {
|
|
56
|
-
pluginCleanupCallbacks.push(() => {
|
|
56
|
+
pluginCleanupCallbacks.push(async () => {
|
|
57
57
|
try {
|
|
58
|
-
pluginReturn();
|
|
58
|
+
await pluginReturn();
|
|
59
59
|
}
|
|
60
60
|
catch (err) {
|
|
61
61
|
// Log when a plugin fails to clean up, but continue to attempt
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import { replaceKeys } from 'react-cosmos-core';
|
|
3
3
|
import { slash } from '../utils/slash.js';
|
|
4
|
-
//
|
|
4
|
+
// NOTE: These can be made configurable if a proper need arises
|
|
5
5
|
const FIXTURE_PATTERNS = [
|
|
6
6
|
'**/<fixturesDir>/**/*.{js,jsx,ts,tsx,md,mdx}',
|
|
7
|
-
'
|
|
7
|
+
'**/{*.,}<fixtureFileSuffix>.{js,jsx,ts,tsx,md,mdx}',
|
|
8
8
|
];
|
|
9
9
|
const DECORATOR_PATTERNS = ['**/cosmos.decorator.{js,jsx,ts,tsx}'];
|
|
10
10
|
export function getFixturePatterns(fixturesDir, fixtureFileSuffix) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-cosmos",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.7",
|
|
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,9 +17,9 @@
|
|
|
17
17
|
"open": "^8.4.2",
|
|
18
18
|
"pem": "^1.14.7",
|
|
19
19
|
"pkg-up": "^4.0.0",
|
|
20
|
-
"react-cosmos-core": "6.0.0-beta.
|
|
21
|
-
"react-cosmos-renderer": "6.0.0-beta.
|
|
22
|
-
"react-cosmos-ui": "6.0.0-beta.
|
|
20
|
+
"react-cosmos-core": "6.0.0-beta.7",
|
|
21
|
+
"react-cosmos-renderer": "6.0.0-beta.7",
|
|
22
|
+
"react-cosmos-ui": "6.0.0-beta.7",
|
|
23
23
|
"ws": "^8.13.0",
|
|
24
24
|
"yargs": "^17.7.2"
|
|
25
25
|
},
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"cosmos-export": "./bin/cosmos-export.js",
|
|
29
29
|
"cosmos-native": "./bin/cosmos-native.js"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "0d57027263ffb3d55fa1feb31db3640db2e89cc9"
|
|
32
32
|
}
|