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.0 to 6.0.1-canary.15ea229.0

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.0",
"version": "6.0.1-canary.15ea229.0+15ea229",
"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.0",
"react-cosmos-ui": "6.0.1-canary.15ea229.0+15ea229",
"react-plugin": "3.0.0-alpha.4"
},
"gitHead": "db4fd8fd917598f1f16d4c291be76217436422ee"
"gitHead": "15ea22982db1f4b7f868c629f679fd5918f33be3"
}
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