@storybook/addon-highlight
Advanced tools
Comparing version 0.0.0-pr-28483-sha-d7c2f6b8 to 0.0.0-pr-28492-sha-08d3f4f1
'use strict'; | ||
var coreEvents = require('storybook/internal/core-events'); | ||
var previewApi = require('storybook/internal/preview-api'); | ||
var global = require('@storybook/global'); | ||
var previewApi = require('storybook/internal/preview-api'); | ||
var coreEvents = require('storybook/internal/core-events'); | ||
@@ -7,0 +7,0 @@ var ADDON_ID="storybook/highlight",HIGHLIGHT_STYLE_ID="storybookHighlight",HIGHLIGHT=`${ADDON_ID}/add`,RESET_HIGHLIGHT=`${ADDON_ID}/reset`;var{document}=global.global,highlightStyle=(color="#FF4785",style="dashed")=>` |
{ | ||
"name": "@storybook/addon-highlight", | ||
"version": "0.0.0-pr-28483-sha-d7c2f6b8", | ||
"version": "0.0.0-pr-28492-sha-08d3f4f1", | ||
"description": "Highlight DOM nodes within your stories", | ||
@@ -29,3 +29,2 @@ "keywords": [ | ||
"types": "./dist/index.d.ts", | ||
"node": "./dist/index.js", | ||
"import": "./dist/index.mjs", | ||
@@ -52,4 +51,4 @@ "require": "./dist/index.js" | ||
"scripts": { | ||
"check": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/check.ts", | ||
"prep": "node --loader ../../../scripts/node_modules/esbuild-register/loader.js -r ../../../scripts/node_modules/esbuild-register/register.js ../../../scripts/prepare/addon-bundle.ts" | ||
"check": "jiti ../../../scripts/prepare/check.ts", | ||
"prep": "jiti ../../../scripts/prepare/addon-bundle.ts" | ||
}, | ||
@@ -64,3 +63,3 @@ "dependencies": { | ||
"peerDependencies": { | ||
"storybook": "^0.0.0-pr-28483-sha-d7c2f6b8" | ||
"storybook": "^0.0.0-pr-28492-sha-08d3f4f1" | ||
}, | ||
@@ -67,0 +66,0 @@ "publishConfig": { |
@@ -35,3 +35,2 @@ # Storybook Addon Highlight | ||
// .storybook/main.ts | ||
// Replace your-framework with the framework you are using (e.g., react-webpack5, vue3-vite) | ||
@@ -53,7 +52,5 @@ import type { StorybookConfig } from '@storybook/your-framework'; | ||
// MyComponent.stories.ts | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { useChannel } from '@storybook/preview-api'; | ||
import { HIGHLIGHT } from '@storybook/addon-highlight'; | ||
import { MyComponent } from './MyComponent'; | ||
@@ -87,7 +84,5 @@ | ||
// MyComponent.stories.ts|tsx | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { useChannel } from '@storybook/preview-api'; | ||
import { HIGHLIGHT, RESET_HIGHLIGHT } from '@storybook/addon-highlight'; | ||
import { MyComponent } from './MyComponent'; | ||
@@ -122,7 +117,5 @@ | ||
// MyComponent.stories.ts | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
import { useChannel } from '@storybook/preview-api'; | ||
import { HIGHLIGHT } from '@storybook/addon-highlight'; | ||
import { MyComponent } from './MyComponent'; | ||
@@ -129,0 +122,0 @@ |
Sorry, the diff of this file is not supported yet
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
9089
140