@storybook/html
Advanced tools
Comparing version 0.0.0-pr-28800-sha-2528064a to 0.0.0-pr-28882-sha-90fe4bc9
@@ -0,4 +1,4 @@ | ||
import { SourceType } from 'storybook/internal/docs-tools'; | ||
import { DecoratorFunction, ArgTypesEnhancer } from 'storybook/internal/types'; | ||
import { SourceType } from 'storybook/internal/docs-tools'; | ||
import { H as HtmlRenderer } from './types-5d0e6702.js'; | ||
import { H as HtmlRenderer } from './types-19e12ec7.js'; | ||
@@ -5,0 +5,0 @@ declare const decorators: DecoratorFunction<HtmlRenderer>[]; |
@@ -1,2 +0,2 @@ | ||
import { H as HtmlRenderer, P as Parameters } from './types-5d0e6702.js'; | ||
import { H as HtmlRenderer, P as Parameters } from './types-19e12ec7.js'; | ||
import { ArgsStoryFn, RenderContext } from 'storybook/internal/types'; | ||
@@ -3,0 +3,0 @@ import 'storybook/internal/docs-tools'; |
@@ -1,2 +0,2 @@ | ||
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var entry_preview_exports={};__export(entry_preview_exports,{parameters:()=>parameters,render:()=>render,renderToCanvas:()=>renderToCanvas});module.exports=__toCommonJS(entry_preview_exports);var import_global=require("@storybook/global"),import_ts_dedent=require("ts-dedent"),import_preview_api=require("storybook/internal/preview-api"),{Node}=import_global.global,render=(args,context)=>{let{id,component:Component}=context;if(typeof Component=="string"){let output=Component;return Object.keys(args).forEach(key=>{output=output.replace(`{{${key}}}`,args[key])}),output}if(Component instanceof HTMLElement){let output=Component.cloneNode(!0);return Object.keys(args).forEach(key=>{output.setAttribute(key,typeof args[key]=="string"?args[key]:JSON.stringify(args[key]))}),output}if(typeof Component=="function")return Component(args,context);throw console.warn(import_ts_dedent.dedent` | ||
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var entry_preview_exports={};__export(entry_preview_exports,{parameters:()=>parameters,render:()=>render,renderToCanvas:()=>renderToCanvas});module.exports=__toCommonJS(entry_preview_exports);var import_preview_api=require("storybook/internal/preview-api"),import_global=require("@storybook/global"),import_ts_dedent=require("ts-dedent"),{Node}=import_global.global,render=(args,context)=>{let{id,component:Component}=context;if(typeof Component=="string"){let output=Component;return Object.keys(args).forEach(key=>{output=output.replace(`{{${key}}}`,args[key])}),output}if(Component instanceof HTMLElement){let output=Component.cloneNode(!0);return Object.keys(args).forEach(key=>{output.setAttribute(key,typeof args[key]=="string"?args[key]:JSON.stringify(args[key]))}),output}if(typeof Component=="function")return Component(args,context);throw console.warn(import_ts_dedent.dedent` | ||
Storybook's HTML renderer only supports rendering DOM elements and strings. | ||
@@ -3,0 +3,0 @@ Received: ${Component} |
import { Args, ComponentAnnotations, AnnotatedStoryFn, StoryAnnotations, StrictArgs, DecoratorFunction, LoaderFunction, StoryContext as StoryContext$1, ProjectAnnotations } from 'storybook/internal/types'; | ||
export { ArgTypes, Args, Parameters, StrictArgs } from 'storybook/internal/types'; | ||
import { H as HtmlRenderer } from './types-5d0e6702.js'; | ||
import { H as HtmlRenderer } from './types-19e12ec7.js'; | ||
import 'storybook/internal/docs-tools'; | ||
@@ -5,0 +5,0 @@ |
@@ -1,1 +0,1 @@ | ||
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var preset_exports={};__export(preset_exports,{previewAnnotations:()=>previewAnnotations});module.exports=__toCommonJS(preset_exports);var import_path=require("path"),previewAnnotations=async(input=[],options)=>{let docsEnabled=Object.keys(await options.presets.apply("docs",{},options)).length>0;return[].concat(input).concat([(0,import_path.join)(__dirname,"entry-preview.mjs")]).concat(docsEnabled?[(0,import_path.join)(__dirname,"entry-preview-docs.mjs")]:[])};0&&(module.exports={previewAnnotations}); | ||
"use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var preset_exports={};__export(preset_exports,{previewAnnotations:()=>previewAnnotations});module.exports=__toCommonJS(preset_exports);var import_node_path=require("path"),previewAnnotations=async(input=[],options)=>{let docsEnabled=Object.keys(await options.presets.apply("docs",{},options)).length>0;return[].concat(input).concat([(0,import_node_path.join)(__dirname,"entry-preview.mjs")]).concat(docsEnabled?[(0,import_node_path.join)(__dirname,"entry-preview-docs.mjs")]:[])};0&&(module.exports={previewAnnotations}); |
{ | ||
"name": "@storybook/html", | ||
"version": "0.0.0-pr-28800-sha-2528064a", | ||
"version": "0.0.0-pr-28882-sha-90fe4bc9", | ||
"description": "Storybook HTML renderer", | ||
@@ -25,5 +25,5 @@ "keywords": [ | ||
"types": "./dist/index.d.ts", | ||
"node": "./dist/index.js", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
"require": "./dist/index.js", | ||
"node": "./dist/index.js" | ||
}, | ||
@@ -47,11 +47,11 @@ "./preset": "./preset.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/bundle.ts" | ||
"check": "jiti ../../../scripts/prepare/check.ts", | ||
"prep": "jiti ../../../scripts/prepare/bundle.ts" | ||
}, | ||
"dependencies": { | ||
"@storybook/components": "^0.0.0-pr-28800-sha-2528064a", | ||
"@storybook/components": "^0.0.0-pr-28882-sha-90fe4bc9", | ||
"@storybook/global": "^5.0.0", | ||
"@storybook/manager-api": "^0.0.0-pr-28800-sha-2528064a", | ||
"@storybook/preview-api": "^0.0.0-pr-28800-sha-2528064a", | ||
"@storybook/theming": "^0.0.0-pr-28800-sha-2528064a", | ||
"@storybook/manager-api": "^0.0.0-pr-28882-sha-90fe4bc9", | ||
"@storybook/preview-api": "^0.0.0-pr-28882-sha-90fe4bc9", | ||
"@storybook/theming": "^0.0.0-pr-28882-sha-90fe4bc9", | ||
"ts-dedent": "^2.0.0" | ||
@@ -63,3 +63,3 @@ }, | ||
"peerDependencies": { | ||
"storybook": "^0.0.0-pr-28800-sha-2528064a" | ||
"storybook": "^0.0.0-pr-28882-sha-90fe4bc9" | ||
}, | ||
@@ -66,0 +66,0 @@ "engines": { |
import { fn } from '@storybook/test'; | ||
import { createButton } from './Button'; | ||
@@ -3,0 +4,0 @@ |
@@ -0,3 +1,3 @@ | ||
import { createButton } from './Button'; | ||
import './header.css'; | ||
import { createButton } from './Button'; | ||
@@ -4,0 +4,0 @@ export const createHeader = ({ user, onLogout, onLogin, onCreateAccount }) => { |
import { fn } from '@storybook/test'; | ||
import { createHeader } from './Header'; | ||
@@ -3,0 +4,0 @@ |
@@ -0,3 +1,3 @@ | ||
import { createHeader } from './Header'; | ||
import './page.css'; | ||
import { createHeader } from './Header'; | ||
@@ -4,0 +4,0 @@ export const createPage = () => { |
@@ -1,2 +0,3 @@ | ||
import { within, userEvent, expect } from '@storybook/test'; | ||
import { expect, userEvent, within } from '@storybook/test'; | ||
import { createPage } from './Page'; | ||
@@ -3,0 +4,0 @@ |
@@ -1,3 +0,4 @@ | ||
import type { StoryObj, Meta } from '@storybook/html'; | ||
import type { Meta, StoryObj } from '@storybook/html'; | ||
import { fn } from '@storybook/test'; | ||
import type { ButtonProps } from './Button'; | ||
@@ -4,0 +5,0 @@ import { createButton } from './Button'; |
import type { Meta, StoryObj } from '@storybook/html'; | ||
import { fn } from '@storybook/test'; | ||
import type { HeaderProps } from './Header'; | ||
@@ -4,0 +5,0 @@ import { createHeader } from './Header'; |
@@ -0,3 +1,3 @@ | ||
import { createButton } from './Button'; | ||
import './header.css'; | ||
import { createButton } from './Button'; | ||
@@ -4,0 +4,0 @@ export interface HeaderProps { |
import type { Meta, StoryObj } from '@storybook/html'; | ||
import { within, userEvent, expect } from '@storybook/test'; | ||
import { expect, userEvent, within } from '@storybook/test'; | ||
import { createPage } from './Page'; | ||
@@ -4,0 +5,0 @@ |
@@ -0,3 +1,3 @@ | ||
import { createHeader } from './Header'; | ||
import './page.css'; | ||
import { createHeader } from './Header'; | ||
@@ -4,0 +4,0 @@ type User = { |
@@ -1,3 +0,4 @@ | ||
import type { StoryObj, Meta } from '@storybook/html'; | ||
import type { Meta, StoryObj } from '@storybook/html'; | ||
import { fn } from '@storybook/test'; | ||
import type { ButtonProps } from './Button'; | ||
@@ -4,0 +5,0 @@ import { createButton } from './Button'; |
import type { Meta, StoryObj } from '@storybook/html'; | ||
import { fn } from '@storybook/test'; | ||
import type { HeaderProps } from './Header'; | ||
@@ -4,0 +5,0 @@ import { createHeader } from './Header'; |
@@ -0,3 +1,3 @@ | ||
import { createButton } from './Button'; | ||
import './header.css'; | ||
import { createButton } from './Button'; | ||
@@ -4,0 +4,0 @@ export interface HeaderProps { |
import type { Meta, StoryObj } from '@storybook/html'; | ||
import { within, userEvent, expect } from '@storybook/test'; | ||
import { expect, userEvent, within } from '@storybook/test'; | ||
import { createPage } from './Page'; | ||
@@ -4,0 +5,0 @@ |
@@ -0,3 +1,3 @@ | ||
import { createHeader } from './Header'; | ||
import './page.css'; | ||
import { createHeader } from './Header'; | ||
@@ -4,0 +4,0 @@ type User = { |
import { global as globalThis } from '@storybook/global'; | ||
import { Button } from './Button'; | ||
import { Pre } from './Pre'; | ||
import { Form } from './Form'; | ||
import { Html } from './Html'; | ||
import { Pre } from './Pre'; | ||
globalThis.Components = { Button, Pre, Form, Html }; | ||
globalThis.storybookRenderer = 'html'; |
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
43062