react-cosmos-dom
Advanced tools
Comparing version 6.0.0-canary.285c677.0 to 6.0.0-canary.28d8672.0
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { RendererConfig, UserModuleWrappers } from 'react-cosmos-core'; | ||
@@ -7,3 +7,3 @@ type Props = { | ||
}; | ||
export declare function DomFixtureLoader({ rendererConfig, moduleWrappers }: Props): JSX.Element; | ||
export declare function DomFixtureLoader({ rendererConfig, moduleWrappers }: Props): React.JSX.Element; | ||
export {}; |
@@ -7,3 +7,3 @@ import React from 'react'; | ||
}; | ||
export declare function DomRendererProvider({ children, rendererConfig }: Props): JSX.Element; | ||
export declare function DomRendererProvider({ children, rendererConfig }: Props): React.JSX.Element; | ||
export {}; |
@@ -20,5 +20,5 @@ import React from 'react'; | ||
componentDidUpdate(prevProps: Props): void; | ||
render(): string | number | boolean | React.ReactFragment | JSX.Element | null | undefined; | ||
renderError(error: string): JSX.Element; | ||
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined; | ||
renderError(error: string): React.JSX.Element; | ||
} | ||
export {}; |
@@ -5,3 +5,3 @@ import { isEqual } from 'lodash-es'; | ||
import { FixtureContext, } from 'react-cosmos-renderer/client'; | ||
class ErrorCatch extends React.Component { | ||
export class ErrorCatch extends React.Component { | ||
static contextType = FixtureContext; | ||
@@ -44,3 +44,2 @@ static prevContext = null; | ||
} | ||
export { ErrorCatch }; | ||
function fixtureChanged(f1, f2) { | ||
@@ -47,0 +46,0 @@ return !areNodesEqual(f1, f2, true); |
@@ -5,2 +5,3 @@ 'use client'; | ||
import { createNoopRendererConnect, createPostMessageConnect, createWebSocketsConnect, } from 'react-cosmos-renderer'; | ||
import { createWebSocketsUrl } from './createWebSocketsUrl.js'; | ||
export function useDomRendererConnect(playgroundUrl) { | ||
@@ -17,7 +18,4 @@ return React.useMemo(() => createDomRendererConnect(playgroundUrl), [playgroundUrl]); | ||
? createPostMessageConnect() | ||
: createWebSocketsConnect(getWebSocketsUrl(playgroundUrl)); | ||
: createWebSocketsConnect(createWebSocketsUrl(playgroundUrl)); | ||
} | ||
} | ||
function getWebSocketsUrl(playgroundUrl) { | ||
return playgroundUrl.replace(/^https?:/, 'ws:'); | ||
} |
{ | ||
"name": "react-cosmos-dom", | ||
"version": "6.0.0-canary.285c677.0+285c677", | ||
"version": "6.0.0-canary.28d8672.0+28d8672", | ||
"description": "React Cosmos DOM", | ||
@@ -10,7 +10,7 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-dom", | ||
"dependencies": { | ||
"lodash-es": "^4.17.21", | ||
"react-cosmos-core": "6.0.0-canary.285c677.0+285c677", | ||
"react-cosmos-renderer": "6.0.0-canary.285c677.0+285c677" | ||
"lodash-es": "4.17.21", | ||
"react-cosmos-core": "6.0.0-canary.28d8672.0+28d8672", | ||
"react-cosmos-renderer": "6.0.0-canary.28d8672.0+28d8672" | ||
}, | ||
"gitHead": "285c677258b718d7169aae5513671d659c2a7d8b" | ||
"gitHead": "28d867204eff3744a9731177b6827fa53dcd293e" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
12411
26
263
1