@storybook/addon-designs
Advanced tools
Comparing version 7.0.9 to 7.0.10--canary.cae3482.0
@@ -0,1 +1,2 @@ | ||
import React from "react"; | ||
import type { CSSProperties, FC } from "react"; | ||
@@ -9,2 +10,3 @@ import { Of } from "@storybook/blocks"; | ||
collapsable?: boolean; | ||
children?: React.ReactNode; | ||
defaultCollapsed?: boolean; | ||
@@ -11,0 +13,0 @@ placeholder?: string; |
import { Component, ErrorInfo } from "react"; | ||
import { jsx } from "@storybook/theming"; | ||
type State = { | ||
@@ -8,8 +9,10 @@ hasError: false; | ||
}; | ||
export declare class ErrorBoundary extends Component { | ||
export declare class ErrorBoundary extends Component<{ | ||
children: React.ReactNode; | ||
}> { | ||
state: State; | ||
static getDerivedStateFromError(error: unknown): State; | ||
componentDidCatch(error: unknown, info: ErrorInfo): void; | ||
render(): import("react").ReactNode; | ||
render(): string | number | boolean | jsx.JSX.Element | Iterable<import("react").ReactNode> | null | undefined; | ||
} | ||
export {}; |
@@ -28,7 +28,7 @@ "use strict"; | ||
render: function (_a) { | ||
var active = _a.active, key = _a.key; | ||
var active = _a.active; | ||
if (!active) { | ||
return (0, theming_1.jsx)("noscript", { key: key }); | ||
return (0, theming_1.jsx)("noscript", null); | ||
} | ||
return ((0, theming_1.jsx)(ErrorBoundary_1.ErrorBoundary, { key: key }, | ||
return ((0, theming_1.jsx)(ErrorBoundary_1.ErrorBoundary, null, | ||
(0, theming_1.jsx)(Wrapper_1.Wrapper, { active: true }))); | ||
@@ -35,0 +35,0 @@ }, |
@@ -0,1 +1,2 @@ | ||
import React from "react"; | ||
import type { CSSProperties, FC } from "react"; | ||
@@ -9,2 +10,3 @@ import { Of } from "@storybook/blocks"; | ||
collapsable?: boolean; | ||
children?: React.ReactNode; | ||
defaultCollapsed?: boolean; | ||
@@ -11,0 +13,0 @@ placeholder?: string; |
import { Component, ErrorInfo } from "react"; | ||
import { jsx } from "@storybook/theming"; | ||
type State = { | ||
@@ -8,8 +9,10 @@ hasError: false; | ||
}; | ||
export declare class ErrorBoundary extends Component { | ||
export declare class ErrorBoundary extends Component<{ | ||
children: React.ReactNode; | ||
}> { | ||
state: State; | ||
static getDerivedStateFromError(error: unknown): State; | ||
componentDidCatch(error: unknown, info: ErrorInfo): void; | ||
render(): import("react").ReactNode; | ||
render(): string | number | boolean | jsx.JSX.Element | Iterable<import("react").ReactNode> | null | undefined; | ||
} | ||
export {}; |
@@ -26,7 +26,7 @@ import { addons, types, useParameter } from "@storybook/manager-api"; | ||
render: function (_a) { | ||
var active = _a.active, key = _a.key; | ||
var active = _a.active; | ||
if (!active) { | ||
return jsx("noscript", { key: key }); | ||
return jsx("noscript", null); | ||
} | ||
return (jsx(ErrorBoundary, { key: key }, | ||
return (jsx(ErrorBoundary, null, | ||
jsx(Wrapper, { active: true }))); | ||
@@ -33,0 +33,0 @@ }, |
{ | ||
"name": "@storybook/addon-designs", | ||
"version": "7.0.9", | ||
"version": "7.0.10--canary.cae3482.0", | ||
"description": "Storybook addon for embedding your design preview in addon panel", | ||
@@ -27,22 +27,23 @@ "main": "cjs/index.js", | ||
"@figspec/components": "^1.0.0", | ||
"@storybook/addon-docs": "^7.0.7", | ||
"@storybook/components": "^7.0.7", | ||
"@storybook/core-events": "^7.0.7", | ||
"@storybook/manager-api": "^7.0.7", | ||
"@storybook/preview-api": "^7.0.7", | ||
"@storybook/theming": "^7.0.7", | ||
"@types/react": "^17.0.0", | ||
"@types/react-dom": "^17.0.0", | ||
"@storybook/addon-docs": "8.0.0-alpha.10", | ||
"@storybook/components": "8.0.0-alpha.10", | ||
"@storybook/core-events": "8.0.0-alpha.10", | ||
"@storybook/manager-api": "8.0.0-alpha.10", | ||
"@storybook/preview-api": "8.0.0-alpha.10", | ||
"@storybook/theming": "8.0.0-alpha.10", | ||
"@types/react": "^18.2.0", | ||
"@types/react-dom": "^18.2.0", | ||
"@types/webpack-env": "^1.13.9", | ||
"auto": "^11.0.1", | ||
"figma-js": "^1.13.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"typescript": "^4.7.3" | ||
}, | ||
"peerDependencies": { | ||
"@storybook/addon-docs": "^7.0.0", | ||
"@storybook/addons": "^7.0.0", | ||
"@storybook/components": "^7.0.0", | ||
"@storybook/manager-api": "^7.0.0", | ||
"@storybook/preview-api": "^7.0.0", | ||
"@storybook/theming": "^7.0.0", | ||
"@storybook/addon-docs": "8.0.0-alpha.10", | ||
"@storybook/components": "8.0.0-alpha.10", | ||
"@storybook/manager-api": "8.0.0-alpha.10", | ||
"@storybook/preview-api": "8.0.0-alpha.10", | ||
"@storybook/theming": "8.0.0-alpha.10", | ||
"react": "^16.8.0 || ^17.0.0 || ^18.0.0", | ||
@@ -49,0 +50,0 @@ "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0" |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
113209
8
2422
16
2