@storybook/addon-docs
Advanced tools
Comparing version 0.0.0-pr-29311-sha-c4d3ed03 to 0.0.0-pr-29333-sha-c7603f3d
/* eslint-disable no-underscore-dangle */ | ||
import { global } from '@storybook/global'; | ||
export const setCompodocJson = (compodocJson) => { | ||
// @ts-expect-error (Converted from ts-ignore) | ||
global.__STORYBOOK_COMPODOC_JSON__ = compodocJson; | ||
globalThis.__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 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}); | ||
"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}); |
/* eslint-disable no-underscore-dangle */ | ||
import { global } from '@storybook/global'; | ||
export const setJSONDoc = (jsondoc) => { | ||
global.__EMBER_GENERATED_DOC_JSON__ = jsondoc; | ||
globalThis.__EMBER_GENERATED_DOC_JSON__ = jsondoc; | ||
}; |
{ | ||
"name": "@storybook/addon-docs", | ||
"version": "0.0.0-pr-29311-sha-c4d3ed03", | ||
"version": "0.0.0-pr-29333-sha-c7603f3d", | ||
"description": "Document component usage and properties in Markdown", | ||
@@ -101,11 +101,7 @@ "keywords": [ | ||
"@mdx-js/react": "^3.0.0", | ||
"@storybook/blocks": "0.0.0-pr-29311-sha-c4d3ed03", | ||
"@storybook/csf-plugin": "0.0.0-pr-29311-sha-c4d3ed03", | ||
"@storybook/global": "^5.0.0", | ||
"@storybook/react-dom-shim": "0.0.0-pr-29311-sha-c4d3ed03", | ||
"@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
"@storybook/blocks": "0.0.0-pr-29333-sha-c7603f3d", | ||
"@storybook/csf-plugin": "0.0.0-pr-29333-sha-c7603f3d", | ||
"@storybook/react-dom-shim": "0.0.0-pr-29333-sha-c7603f3d", | ||
"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" | ||
@@ -116,4 +112,7 @@ }, | ||
"@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", | ||
@@ -123,3 +122,3 @@ "vite": "^4.0.4" | ||
"peerDependencies": { | ||
"storybook": "^0.0.0-pr-29311-sha-c4d3ed03" | ||
"storybook": "^0.0.0-pr-29333-sha-c7603f3d" | ||
}, | ||
@@ -126,0 +125,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
2195080
8
12359
9
+ Added@storybook/blocks@0.0.0-pr-29333-sha-c7603f3d(transitive)
+ Added@storybook/csf-plugin@0.0.0-pr-29333-sha-c7603f3d(transitive)
+ Added@storybook/react-dom-shim@0.0.0-pr-29333-sha-c7603f3d(transitive)
- Removed@storybook/global@^5.0.0
- Removedrehype-external-links@^3.0.0
- Removedrehype-slug@^6.0.0
- Removed@babel/runtime@7.26.0(transitive)
- Removed@storybook/blocks@0.0.0-pr-29311-sha-c4d3ed03(transitive)
- Removed@storybook/csf-plugin@0.0.0-pr-29311-sha-c4d3ed03(transitive)
- Removed@storybook/global@5.0.0(transitive)
- Removed@storybook/react-dom-shim@0.0.0-pr-29311-sha-c4d3ed03(transitive)
- Removed@types/hast@3.0.4(transitive)
- Removed@types/unist@3.0.3(transitive)
- Removed@ungap/structured-clone@1.2.0(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removeddequal@2.0.3(transitive)
- Removedgithub-slugger@2.0.0(transitive)
- Removedhast-util-heading-rank@3.0.0(transitive)
- Removedhast-util-is-element@3.0.0(transitive)
- Removedhast-util-to-string@3.0.1(transitive)
- Removedis-absolute-url@4.0.1(transitive)
- Removedmap-or-similar@1.5.0(transitive)
- Removedmarkdown-to-jsx@7.7.0(transitive)
- Removedmemoizerific@1.11.3(transitive)
- Removedpolished@4.3.1(transitive)
- Removedreact-colorful@5.6.1(transitive)
- Removedregenerator-runtime@0.14.1(transitive)
- Removedrehype-external-links@3.0.0(transitive)
- Removedrehype-slug@6.0.0(transitive)
- Removedspace-separated-tokens@2.0.2(transitive)
- Removedtelejson@7.2.0(transitive)
- Removedunist-util-is@6.0.0(transitive)
- Removedunist-util-visit@5.0.0(transitive)
- Removedunist-util-visit-parents@6.0.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
Updated@storybook/react-dom-shim@0.0.0-pr-29333-sha-c7603f3d