@storybook/addon-docs
Advanced tools
Comparing version 0.0.0-pr-29301-sha-991d41fc to 0.0.0-pr-29302-sha-21f4ff11
/* eslint-disable no-underscore-dangle */ | ||
import { global } from '@storybook/global'; | ||
export const setCompodocJson = (compodocJson) => { | ||
// @ts-expect-error (Converted from ts-ignore) | ||
globalThis.__STORYBOOK_COMPODOC_JSON__ = compodocJson; | ||
global.__STORYBOOK_COMPODOC_JSON__ = compodocJson; | ||
}; |
@@ -1,1 +0,1 @@ | ||
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res};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 __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var DocsRenderer_exports={};__export(DocsRenderer_exports,{DocsRenderer:()=>DocsRenderer,defaultComponents:()=>defaultComponents});var import_react,import_blocks,import_react_dom_shim,defaultComponents,ErrorBoundary,DocsRenderer,init_DocsRenderer=__esm({"src/DocsRenderer.tsx"(){"use strict";import_react=__toESM(require("react")),import_blocks=require("@storybook/blocks"),import_react_dom_shim=require("@storybook/react-dom-shim"),defaultComponents={code:import_blocks.CodeOrSourceMdx,a:import_blocks.AnchorMdx,...import_blocks.HeadersMdx},ErrorBoundary=class extends import_react.Component{constructor(){super(...arguments);this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err)}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:import_react.default.createElement(import_react.default.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=import_blocks.Docs;return new Promise((resolve,reject)=>{import("@mdx-js/react").then(({MDXProvider})=>(0,import_react_dom_shim.renderElement)(import_react.default.createElement(ErrorBoundary,{showException:reject,key:Math.random()},import_react.default.createElement(MDXProvider,{components},import_react.default.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve())})},this.unmount=element=>{(0,import_react_dom_shim.unmountElement)(element)}}}}});var preview_exports={};__export(preview_exports,{parameters:()=>parameters});module.exports=__toCommonJS(preview_exports);var excludeTags=Object.entries(globalThis.TAGS_OPTIONS??{}).reduce((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc},{}),parameters={docs:{renderer:async()=>{let{DocsRenderer:DocsRenderer2}=await Promise.resolve().then(()=>(init_DocsRenderer(),DocsRenderer_exports));return new DocsRenderer2},stories:{filter:story=>(story.tags||[]).filter(tag=>excludeTags[tag]).length===0&&!story.parameters.docs?.disable}}};0&&(module.exports={parameters}); | ||
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __esm=(fn,res)=>function(){return fn&&(res=(0,fn[__getOwnPropNames(fn)[0]])(fn=0)),res};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 __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var DocsRenderer_exports={};__export(DocsRenderer_exports,{DocsRenderer:()=>DocsRenderer,defaultComponents:()=>defaultComponents});var import_react,import_blocks,import_react_dom_shim,defaultComponents,ErrorBoundary,DocsRenderer,init_DocsRenderer=__esm({"src/DocsRenderer.tsx"(){"use strict";import_react=__toESM(require("react")),import_blocks=require("@storybook/blocks"),import_react_dom_shim=require("@storybook/react-dom-shim"),defaultComponents={code:import_blocks.CodeOrSourceMdx,a:import_blocks.AnchorMdx,...import_blocks.HeadersMdx},ErrorBoundary=class extends import_react.Component{constructor(){super(...arguments);this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(err){let{showException}=this.props;showException(err)}render(){let{hasError}=this.state,{children}=this.props;return hasError?null:import_react.default.createElement(import_react.default.Fragment,null,children)}},DocsRenderer=class{constructor(){this.render=async(context,docsParameter,element)=>{let components={...defaultComponents,...docsParameter?.components},TDocs=import_blocks.Docs;return new Promise((resolve,reject)=>{import("@mdx-js/react").then(({MDXProvider})=>(0,import_react_dom_shim.renderElement)(import_react.default.createElement(ErrorBoundary,{showException:reject,key:Math.random()},import_react.default.createElement(MDXProvider,{components},import_react.default.createElement(TDocs,{context,docsParameter}))),element)).then(()=>resolve())})},this.unmount=element=>{(0,import_react_dom_shim.unmountElement)(element)}}}}});var preview_exports={};__export(preview_exports,{parameters:()=>parameters});module.exports=__toCommonJS(preview_exports);var import_global=require("@storybook/global"),excludeTags=Object.entries(import_global.global.TAGS_OPTIONS??{}).reduce((acc,entry)=>{let[tag,option]=entry;return option.excludeFromDocsStories&&(acc[tag]=!0),acc},{}),parameters={docs:{renderer:async()=>{let{DocsRenderer:DocsRenderer2}=await Promise.resolve().then(()=>(init_DocsRenderer(),DocsRenderer_exports));return new DocsRenderer2},stories:{filter:story=>(story.tags||[]).filter(tag=>excludeTags[tag]).length===0&&!story.parameters.docs?.disable}}};0&&(module.exports={parameters}); |
/* eslint-disable no-underscore-dangle */ | ||
import { global } from '@storybook/global'; | ||
export const setJSONDoc = (jsondoc) => { | ||
globalThis.__EMBER_GENERATED_DOC_JSON__ = jsondoc; | ||
global.__EMBER_GENERATED_DOC_JSON__ = jsondoc; | ||
}; |
{ | ||
"name": "@storybook/addon-docs", | ||
"version": "0.0.0-pr-29301-sha-991d41fc", | ||
"version": "0.0.0-pr-29302-sha-21f4ff11", | ||
"description": "Document component usage and properties in Markdown", | ||
@@ -101,7 +101,11 @@ "keywords": [ | ||
"@mdx-js/react": "^3.0.0", | ||
"@storybook/blocks": "0.0.0-pr-29301-sha-991d41fc", | ||
"@storybook/csf-plugin": "0.0.0-pr-29301-sha-991d41fc", | ||
"@storybook/react-dom-shim": "0.0.0-pr-29301-sha-991d41fc", | ||
"@storybook/blocks": "0.0.0-pr-29302-sha-21f4ff11", | ||
"@storybook/csf-plugin": "0.0.0-pr-29302-sha-21f4ff11", | ||
"@storybook/global": "^5.0.0", | ||
"@storybook/react-dom-shim": "0.0.0-pr-29302-sha-21f4ff11", | ||
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
"rehype-external-links": "^3.0.0", | ||
"rehype-slug": "^6.0.0", | ||
"ts-dedent": "^2.0.0" | ||
@@ -112,7 +116,4 @@ }, | ||
"@rollup/pluginutils": "^5.0.2", | ||
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"rehype-external-links": "^3.0.0", | ||
"rehype-slug": "^6.0.0", | ||
"typescript": "^5.3.2", | ||
@@ -122,3 +123,3 @@ "vite": "^4.0.4" | ||
"peerDependencies": { | ||
"storybook": "^0.0.0-pr-29301-sha-991d41fc" | ||
"storybook": "^0.0.0-pr-29302-sha-21f4ff11" | ||
}, | ||
@@ -125,0 +126,0 @@ "publishConfig": { |
Sorry, the diff of this file is too big to display
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
6
2181411
12
12310
+ Added@storybook/global@^5.0.0
+ Addedrehype-external-links@^3.0.0
+ Addedrehype-slug@^6.0.0
+ Added@babel/runtime@7.26.0(transitive)
+ Added@storybook/blocks@0.0.0-pr-29302-sha-21f4ff11(transitive)
+ Added@storybook/csf-plugin@0.0.0-pr-29302-sha-21f4ff11(transitive)
+ Added@storybook/global@5.0.0(transitive)
+ Added@storybook/react-dom-shim@0.0.0-pr-29302-sha-21f4ff11(transitive)
+ Added@types/hast@3.0.4(transitive)
+ Added@types/unist@3.0.3(transitive)
+ Added@ungap/structured-clone@1.2.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addeddequal@2.0.3(transitive)
+ Addedgithub-slugger@2.0.0(transitive)
+ Addedhast-util-heading-rank@3.0.0(transitive)
+ Addedhast-util-is-element@3.0.0(transitive)
+ Addedhast-util-to-string@3.0.1(transitive)
+ Addedis-absolute-url@4.0.1(transitive)
+ Addedmap-or-similar@1.5.0(transitive)
+ Addedmarkdown-to-jsx@7.7.0(transitive)
+ Addedmemoizerific@1.11.3(transitive)
+ Addedpolished@4.3.1(transitive)
+ Addedreact-colorful@5.6.1(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedrehype-external-links@3.0.0(transitive)
+ Addedrehype-slug@6.0.0(transitive)
+ Addedspace-separated-tokens@2.0.2(transitive)
+ Addedtelejson@7.2.0(transitive)
+ Addedunist-util-is@6.0.0(transitive)
+ Addedunist-util-visit@5.0.0(transitive)
+ Addedunist-util-visit-parents@6.0.1(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
- Removed@storybook/blocks@0.0.0-pr-29301-sha-991d41fc(transitive)
- Removed@storybook/csf-plugin@0.0.0-pr-29301-sha-991d41fc(transitive)
- Removed@storybook/react-dom-shim@0.0.0-pr-29301-sha-991d41fc(transitive)
Updated@storybook/react-dom-shim@0.0.0-pr-29302-sha-21f4ff11