react-cosmos-plugin-open-fixture
Advanced tools
Comparing version 6.0.1-canary.f771e1d.0 to 6.0.1
@@ -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" | ||
} |
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
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
1
2
39235