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

@storybook/addon-highlight

Package Overview
Dependencies
Maintainers
11
Versions
948
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@storybook/addon-highlight - npm Package Compare versions

Comparing version 0.0.0-pr-28483-sha-d7c2f6b8 to 0.0.0-pr-28492-sha-08d3f4f1

4

dist/preview.js
'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

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