react-cosmos-plugin-open-fixture
Advanced tools
Comparing version 6.0.0 to 6.0.1-canary.15ea229.0
@@ -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" | ||
} |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
39284
2
3