react-cosmos-dom
Advanced tools
Comparing version 6.0.0-canary.79b931d.0 to 6.0.0-canary.7d0c249.0
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
import { RendererConfig, UserModuleWrappers } from 'react-cosmos-core'; | ||
@@ -7,4 +7,3 @@ type Props = { | ||
}; | ||
export declare function DomFixtureLoader({ rendererConfig, moduleWrappers }: Props): JSX.Element; | ||
export declare function renderDomMessage(msg: string): JSX.Element; | ||
export declare function DomFixtureLoader({ rendererConfig, moduleWrappers }: Props): React.JSX.Element; | ||
export {}; |
import React from 'react'; | ||
import { ClientFixtureLoader, DomRendererProvider, } from 'react-cosmos-renderer/client'; | ||
import { ClientFixtureLoader } from 'react-cosmos-renderer/client'; | ||
import { DomRendererProvider } from './DomRendererProvider.js'; | ||
import { ErrorCatch } from './ErrorCatch.js'; | ||
import { getSelectedFixtureId } from './selectedFixtureId.js'; | ||
export function DomFixtureLoader({ rendererConfig, moduleWrappers }) { | ||
return (React.createElement(DomRendererProvider, { playgroundUrl: rendererConfig.playgroundUrl }, | ||
React.createElement(ClientFixtureLoader, { moduleWrappers: moduleWrappers, globalDecorators: globalDecorators, selectedFixtureId: getSelectedFixtureId(), renderMessage: renderDomMessage }))); | ||
return (React.createElement(DomRendererProvider, { rendererConfig: rendererConfig }, | ||
React.createElement(ClientFixtureLoader, { moduleWrappers: moduleWrappers, globalDecorators: globalDecorators, renderMessage: renderMessage }))); | ||
} | ||
@@ -22,4 +22,4 @@ const globalDecorators = [ErrorCatch]; | ||
}; | ||
export function renderDomMessage(msg) { | ||
function renderMessage(msg) { | ||
return React.createElement("div", { style: containerStyle }, msg); | ||
} |
@@ -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 {}; |
export * from './DomFixtureLoader.js'; | ||
export * from './DomRendererConfig.js'; | ||
export * from './GlobalErrorHandler.js'; | ||
export * from './mountDomRenderer.js'; | ||
export * from './types.js'; | ||
export * from './reloadDomRenderer.js'; | ||
export * from './useDomRendererConnect.js'; | ||
export * from './useDomRendererId.js'; |
export * from './DomFixtureLoader.js'; | ||
export * from './DomRendererConfig.js'; | ||
export * from './GlobalErrorHandler.js'; | ||
export * from './mountDomRenderer.js'; | ||
export * from './types.js'; | ||
export * from './reloadDomRenderer.js'; | ||
export * from './useDomRendererConnect.js'; | ||
export * from './useDomRendererId.js'; |
import { UserModuleWrappers } from 'react-cosmos-core'; | ||
import { DomRendererConfig } from './types.js'; | ||
import { DomRendererConfig } from './DomRendererConfig.js'; | ||
type Args = { | ||
@@ -4,0 +4,0 @@ rendererConfig: DomRendererConfig; |
{ | ||
"name": "react-cosmos-dom", | ||
"version": "6.0.0-canary.79b931d.0+79b931d", | ||
"version": "6.0.0-canary.7d0c249.0+7d0c249", | ||
"description": "React Cosmos DOM", | ||
@@ -11,6 +11,6 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-dom", | ||
"lodash-es": "^4.17.21", | ||
"react-cosmos-core": "6.0.0-canary.79b931d.0+79b931d", | ||
"react-cosmos-renderer": "6.0.0-canary.79b931d.0+79b931d" | ||
"react-cosmos-core": "6.0.0-canary.7d0c249.0+7d0c249", | ||
"react-cosmos-renderer": "6.0.0-canary.7d0c249.0+7d0c249" | ||
}, | ||
"gitHead": "79b931da2a86e2599d2aaa37820c275f4e8ecb69" | ||
"gitHead": "7d0c249da9fbea799c3dfd6b38bd0f4e96b59c10" | ||
} |
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
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
12428
26
264