Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-cosmos-dom

Package Overview
Dependencies
Maintainers
1
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cosmos-dom - npm Package Compare versions

Comparing version 6.0.0-canary.79b931d.0 to 6.0.0-canary.7d0c249.0

dist/createWebSocketsUrl.d.ts

5

dist/DomFixtureLoader.d.ts

@@ -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 {};

10

dist/DomFixtureLoader.js
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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc