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

react-cosmos-plugin-open-fixture

Package Overview
Dependencies
Maintainers
1
Versions
258
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-cosmos-plugin-open-fixture - npm Package Compare versions

Comparing version 6.0.1-canary.f771e1d.0 to 6.0.1

4

dist/index.js

@@ -7,3 +7,3 @@ import React, { useCallback, useEffect } from 'react';

});
namedPlug('rendererAction', 'editFixture', ({ pluginContext, slotProps }) => {
namedPlug('rendererAction', 'openFixture', ({ pluginContext, slotProps }) => {
const { getMethodsOf } = pluginContext;

@@ -14,3 +14,3 @@ const core = getMethodsOf('core');

useEffect(() => {
return core.registerCommands({ editFixture: onOpen });
return core.registerCommands({ openFixture: onOpen });
}, [core, onOpen]);

@@ -17,0 +17,0 @@ if (!devServerOn) {

import React from 'react';
import { EditIcon, IconButton32 } from 'react-cosmos-ui';
export function OpenFixtureButton({ onClick }) {
return (React.createElement(IconButton32, { icon: React.createElement(EditIcon, null), title: "Open fixture source", onClick: onClick }));
return (React.createElement(IconButton32, { icon: React.createElement(EditIcon, null), title: "Open fixture source (S)", onClick: onClick }));
}

@@ -51,3 +51,3 @@ /******/ (() => { // webpackBootstrap

function OpenFixtureButton({ onClick }) {
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_cosmos_ui__WEBPACK_IMPORTED_MODULE_1__.IconButton32, { icon: react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_cosmos_ui__WEBPACK_IMPORTED_MODULE_2__.EditIcon, null), title: "Open fixture source", onClick: onClick }));
return (react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_cosmos_ui__WEBPACK_IMPORTED_MODULE_1__.IconButton32, { icon: react__WEBPACK_IMPORTED_MODULE_0__.createElement(react_cosmos_ui__WEBPACK_IMPORTED_MODULE_2__.EditIcon, null), title: "Open fixture source (S)", onClick: onClick }));
}

@@ -533,3 +533,3 @@

});
namedPlug('rendererAction', 'editFixture', ({ pluginContext, slotProps }) => {
namedPlug('rendererAction', 'openFixture', ({ pluginContext, slotProps }) => {
const { getMethodsOf } = pluginContext;

@@ -540,3 +540,3 @@ const core = getMethodsOf('core');

(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
return core.registerCommands({ editFixture: onOpen });
return core.registerCommands({ openFixture: onOpen });
}, [core, onOpen]);

@@ -543,0 +543,0 @@ if (!devServerOn) {

{
"name": "react-cosmos-plugin-open-fixture",
"version": "6.0.1-canary.f771e1d.0+f771e1d",
"version": "6.0.1",
"description": "React Cosmos plugin for opening fixture source files",

@@ -10,6 +10,6 @@ "repository": "https://github.com/react-cosmos/react-cosmos/tree/main/packages/react-cosmos-plugin-open-fixture",

"devDependencies": {
"react-cosmos-ui": "6.0.1-canary.f771e1d.0+f771e1d",
"react-cosmos-ui": "^6.0.1",
"react-plugin": "3.0.0-alpha.4"
},
"gitHead": "f771e1d50c52b3096ce54466c3799e32c1668052"
"gitHead": "669726cb1f790c143bf66ebd890b73a191d3f788"
}
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