storybook 9.0.0-alpha.3 → 9.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/actions/decorator.d.ts +6 -0
- package/dist/actions/decorator.js +139 -0
- package/dist/actions/index.cjs +127 -0
- package/dist/actions/index.d.ts +105 -0
- package/dist/actions/index.js +112 -0
- package/dist/actions/manager.js +1196 -0
- package/dist/actions/preview.cjs +165 -0
- package/dist/actions/preview.d.ts +55 -0
- package/dist/actions/preview.js +156 -0
- package/dist/bin/index.cjs +63 -64
- package/dist/bin/index.js +63 -64
- package/dist/channels/index.cjs +207 -230
- package/dist/channels/index.js +302 -304
- package/dist/cli/bin/index.cjs +405 -405
- package/dist/cli/bin/index.js +410 -410
- package/dist/client-logger/index.cjs +56 -88
- package/dist/client-logger/index.js +41 -47
- package/dist/common/index.cjs +65 -67
- package/dist/common/index.d.ts +1 -4
- package/dist/common/index.js +65 -67
- package/dist/components/index.cjs +9413 -11578
- package/dist/components/index.d.ts +92 -92
- package/dist/components/index.js +6768 -7544
- package/dist/core-events/index.d.ts +138 -25
- package/dist/core-server/index.cjs +5241 -5265
- package/dist/core-server/index.js +5353 -5375
- package/dist/core-server/presets/common-manager.js +11 -19
- package/dist/core-server/presets/common-preset.cjs +243 -242
- package/dist/core-server/presets/common-preset.js +379 -378
- package/dist/csf/index.cjs +76 -120
- package/dist/csf/index.d.ts +1 -3
- package/dist/csf/index.js +69 -113
- package/dist/docs-tools/index.cjs +1 -1
- package/dist/docs-tools/index.d.ts +2 -2
- package/dist/docs-tools/index.js +1 -1
- package/dist/instrumenter/index.cjs +1260 -1289
- package/dist/instrumenter/index.js +1344 -1348
- package/dist/manager/globals-module-info.cjs +272 -135
- package/dist/manager/globals-module-info.d.ts +1 -1
- package/dist/manager/globals-module-info.js +257 -120
- package/dist/manager/globals-runtime.js +59553 -22371
- package/dist/manager/globals.cjs +23 -19
- package/dist/manager/globals.d.ts +8 -5
- package/dist/manager/globals.js +10 -6
- package/dist/manager/runtime.js +129 -129
- package/dist/manager-api/index.cjs +1182 -1205
- package/dist/manager-api/index.d.ts +2 -2
- package/dist/manager-api/index.js +1010 -1008
- package/dist/preview/globals.cjs +21 -17
- package/dist/preview/globals.d.ts +4 -1
- package/dist/preview/globals.js +6 -2
- package/dist/preview/runtime.js +43946 -6546
- package/dist/preview-api/index.cjs +1243 -1239
- package/dist/preview-api/index.d.ts +104 -60
- package/dist/preview-api/index.js +1310 -1270
- package/dist/router/index.cjs +847 -871
- package/dist/router/index.js +193 -199
- package/dist/test/index.cjs +10068 -10205
- package/dist/test/index.d.ts +4 -4
- package/dist/test/index.js +9741 -9623
- package/dist/test/preview.cjs +15870 -0
- package/dist/test/preview.d.ts +54 -0
- package/dist/test/preview.js +14441 -0
- package/dist/test/spy.cjs +258 -0
- package/dist/test/spy.d.ts +66 -0
- package/dist/test/spy.js +240 -0
- package/dist/theming/create.cjs +79 -2269
- package/dist/theming/create.js +67 -841
- package/dist/theming/index.cjs +1065 -3232
- package/dist/theming/index.js +951 -1719
- package/dist/types/index.d.ts +242 -242
- package/package.json +134 -3
package/dist/manager/runtime.js
CHANGED
|
@@ -1898,18 +1898,6 @@ TELEMETRY_ERROR: $v, TESTING_MODULE_CANCEL_TEST_RUN_REQUEST: Uv, TESTING_MODULE_
|
|
|
1898
1898
|
TESTING_MODULE_PROGRESS_REPORT: sn, TESTING_MODULE_RUN_ALL_REQUEST: Yv, TESTING_MODULE_RUN_REQUEST: qv, TOGGLE_WHATS_NEW_NOTIFICATIONS: Qv, UNHANDLED_ERRORS_WHILE_PLAYING: Xv,
|
|
1899
1899
|
UPDATE_GLOBALS: Zv, UPDATE_QUERY_PARAMS: Jv, UPDATE_STORY_ARGS: ex } = __STORYBOOK_CORE_EVENTS__;
|
|
1900
1900
|
|
|
1901
|
-
// global-externals:storybook/internal/manager-api
|
|
1902
|
-
var ox = __STORYBOOK_API__, { ActiveTabs: rx, Consumer: he, ManagerContext: nx, Provider: ws, RequestResponseError: ix, addons: Ge, combineParameters: sx,
|
|
1903
|
-
controlOrMetaKey: ax, controlOrMetaSymbol: lx, eventMatchesShortcut: ux, eventToShortcut: Ts, experimental_MockUniversalStore: cx, experimental_UniversalStore: px,
|
|
1904
|
-
experimental_requestResponse: Po, experimental_useUniversalStore: dx, isMacLike: fx, isShortcutTaken: mx, keyToSymbol: hx, merge: Ao, mockChannel: gx,
|
|
1905
|
-
optionOrAltSymbol: yx, shortcutMatchesShortcut: Cs, shortcutToHumanString: Ye, types: ve, useAddonState: bx, useArgTypes: vx, useArgs: xx, useChannel: ks,
|
|
1906
|
-
useGlobalTypes: Sx, useGlobals: Ix, useParameter: Ex, useSharedState: _x, useStoryPrepared: wx, useStorybookApi: oe, useStorybookState: Pe } = __STORYBOOK_API__;
|
|
1907
|
-
|
|
1908
|
-
// global-externals:storybook/internal/theming
|
|
1909
|
-
var Cx = __STORYBOOK_THEMING__, { CacheProvider: kx, ClassNames: Ox, Global: Kt, ThemeProvider: an, background: Px, color: Os, convert: Ax, create: Dx,
|
|
1910
|
-
createCache: Mx, createGlobal: Ps, createReset: Lx, css: Nx, darken: Fx, ensure: As, ignoreSsrWarning: Rx, isPropValid: Hx, jsx: Bx, keyframes: It,
|
|
1911
|
-
lighten: zx, styled: x, themes: Wx, typography: jx, useTheme: Ae, withTheme: Ds } = __STORYBOOK_THEMING__;
|
|
1912
|
-
|
|
1913
1901
|
// ../node_modules/@storybook/global/dist/index.mjs
|
|
1914
1902
|
var se = (() => {
|
|
1915
1903
|
let e;
|
|
@@ -1918,35 +1906,47 @@ var se = (() => {
|
|
|
1918
1906
|
})();
|
|
1919
1907
|
|
|
1920
1908
|
// global-externals:@storybook/icons
|
|
1921
|
-
var
|
|
1922
|
-
AlertIcon:
|
|
1923
|
-
ArrowRightIcon:
|
|
1924
|
-
ArrowUpIcon:
|
|
1925
|
-
BoldIcon:
|
|
1926
|
-
BrowserIcon:
|
|
1927
|
-
ChangedIcon:
|
|
1928
|
-
ChevronSmallRightIcon:
|
|
1929
|
-
ClearIcon:
|
|
1930
|
-
CommentIcon:
|
|
1931
|
-
ControlsIcon:
|
|
1932
|
-
DiscordIcon:
|
|
1933
|
-
ExpandAltIcon:
|
|
1934
|
-
FailedIcon:
|
|
1935
|
-
GitlabIcon:
|
|
1936
|
-
HeartHollowIcon:
|
|
1937
|
-
LightningOffIcon:
|
|
1938
|
-
LockIcon:
|
|
1939
|
-
MoonIcon:
|
|
1940
|
-
PhotoDragIcon:
|
|
1941
|
-
PlayIcon:
|
|
1942
|
-
PullRequestIcon:
|
|
1943
|
-
RewindIcon:
|
|
1944
|
-
SidebarAltToggleIcon:
|
|
1945
|
-
StatusIcon:
|
|
1946
|
-
StructureIcon:
|
|
1947
|
-
TimerIcon:
|
|
1948
|
-
UnpinIcon:
|
|
1949
|
-
WandIcon:
|
|
1909
|
+
var rx = __STORYBOOK_ICONS__, { AccessibilityAltIcon: nx, AccessibilityIcon: ix, AccessibilityIgnoredIcon: sx, AddIcon: ax, AdminIcon: lx, AlertAltIcon: ux,
|
|
1910
|
+
AlertIcon: Po, AlignLeftIcon: cx, AlignRightIcon: px, AppleIcon: dx, ArrowBottomLeftIcon: fx, ArrowBottomRightIcon: mx, ArrowDownIcon: hx, ArrowLeftIcon: ws,
|
|
1911
|
+
ArrowRightIcon: gx, ArrowSolidDownIcon: yx, ArrowSolidLeftIcon: bx, ArrowSolidRightIcon: vx, ArrowSolidUpIcon: xx, ArrowTopLeftIcon: Sx, ArrowTopRightIcon: Ix,
|
|
1912
|
+
ArrowUpIcon: Ex, AzureDevOpsIcon: _x, BackIcon: wx, BasketIcon: Tx, BatchAcceptIcon: Cx, BatchDenyIcon: kx, BeakerIcon: Ox, BellIcon: Px, BitbucketIcon: Ax,
|
|
1913
|
+
BoldIcon: Dx, BookIcon: Mx, BookmarkHollowIcon: Lx, BookmarkIcon: Nx, BottomBarIcon: Ao, BottomBarToggleIcon: Ts, BoxIcon: Fx, BranchIcon: Rx,
|
|
1914
|
+
BrowserIcon: Hx, ButtonIcon: Bx, CPUIcon: zx, CalendarIcon: Wx, CameraIcon: jx, CameraStabilizeIcon: Vx, CategoryIcon: Kx, CertificateIcon: $x,
|
|
1915
|
+
ChangedIcon: Ux, ChatIcon: Gx, CheckIcon: We, ChevronDownIcon: Kt, ChevronLeftIcon: Yx, ChevronRightIcon: Cs, ChevronSmallDownIcon: qx, ChevronSmallLeftIcon: Qx,
|
|
1916
|
+
ChevronSmallRightIcon: Xx, ChevronSmallUpIcon: ks, ChevronUpIcon: Zx, ChromaticIcon: Jx, ChromeIcon: eS, CircleHollowIcon: tS, CircleIcon: Os,
|
|
1917
|
+
ClearIcon: oS, CloseAltIcon: Do, CloseIcon: Ge, CloudHollowIcon: rS, CloudIcon: nS, CogIcon: an, CollapseIcon: Ps, CommandIcon: iS, CommentAddIcon: sS,
|
|
1918
|
+
CommentIcon: aS, CommentsIcon: lS, CommitIcon: uS, CompassIcon: cS, ComponentDrivenIcon: pS, ComponentIcon: ln, ContrastIcon: dS, ContrastIgnoredIcon: fS,
|
|
1919
|
+
ControlsIcon: mS, CopyIcon: hS, CreditIcon: gS, CrossIcon: yS, DashboardIcon: bS, DatabaseIcon: vS, DeleteIcon: xS, DiamondIcon: SS, DirectionIcon: IS,
|
|
1920
|
+
DiscordIcon: ES, DocChartIcon: _S, DocListIcon: wS, DocumentIcon: $t, DownloadIcon: TS, DragIcon: CS, EditIcon: kS, EllipsisIcon: As, EmailIcon: OS,
|
|
1921
|
+
ExpandAltIcon: Ds, ExpandIcon: Ms, EyeCloseIcon: Ls, EyeIcon: Ns, FaceHappyIcon: PS, FaceNeutralIcon: AS, FaceSadIcon: DS, FacebookIcon: MS,
|
|
1922
|
+
FailedIcon: Fs, FastForwardIcon: LS, FigmaIcon: NS, FilterIcon: Rs, FlagIcon: FS, FolderIcon: RS, FormIcon: HS, GDriveIcon: BS, GithubIcon: Mo,
|
|
1923
|
+
GitlabIcon: zS, GlobeIcon: un, GoogleIcon: WS, GraphBarIcon: jS, GraphLineIcon: VS, GraphqlIcon: KS, GridAltIcon: $S, GridIcon: US, GrowIcon: GS,
|
|
1924
|
+
HeartHollowIcon: YS, HeartIcon: Hs, HomeIcon: qS, HourglassIcon: QS, InfoIcon: Bs, ItalicIcon: XS, JumpToIcon: ZS, KeyIcon: JS, LightningIcon: zs,
|
|
1925
|
+
LightningOffIcon: eI, LinkBrokenIcon: tI, LinkIcon: Ws, LinkedinIcon: oI, LinuxIcon: rI, ListOrderedIcon: nI, ListUnorderedIcon: iI, LocationIcon: sI,
|
|
1926
|
+
LockIcon: Lo, MarkdownIcon: aI, MarkupIcon: js, MediumIcon: lI, MemoryIcon: uI, MenuIcon: No, MergeIcon: cI, MirrorIcon: pI, MobileIcon: dI,
|
|
1927
|
+
MoonIcon: fI, NutIcon: mI, OutboxIcon: hI, OutlineIcon: gI, PaintBrushIcon: yI, PaperClipIcon: bI, ParagraphIcon: vI, PassedIcon: xI, PhoneIcon: SI,
|
|
1928
|
+
PhotoDragIcon: II, PhotoIcon: EI, PhotoStabilizeIcon: _I, PinAltIcon: wI, PinIcon: TI, PlayAllHollowIcon: Vs, PlayBackIcon: CI, PlayHollowIcon: Ks,
|
|
1929
|
+
PlayIcon: kI, PlayNextIcon: OI, PlusIcon: $s, PointerDefaultIcon: PI, PointerHandIcon: AI, PowerIcon: DI, PrintIcon: MI, ProceedIcon: LI, ProfileIcon: NI,
|
|
1930
|
+
PullRequestIcon: FI, QuestionIcon: RI, RSSIcon: HI, RedirectIcon: BI, ReduxIcon: zI, RefreshIcon: WI, ReplyIcon: jI, RepoIcon: VI, RequestChangeIcon: KI,
|
|
1931
|
+
RewindIcon: $I, RulerIcon: UI, SaveIcon: GI, SearchIcon: Fo, ShareAltIcon: at, ShareIcon: YI, ShieldIcon: qI, SideBySideIcon: QI, SidebarAltIcon: Ro,
|
|
1932
|
+
SidebarAltToggleIcon: XI, SidebarIcon: ZI, SidebarToggleIcon: JI, SpeakerIcon: eE, StackedIcon: tE, StarHollowIcon: oE, StarIcon: rE, StatusFailIcon: Us,
|
|
1933
|
+
StatusIcon: nE, StatusPassIcon: Gs, StatusWarnIcon: Ys, StickerIcon: iE, StopAltHollowIcon: sE, StopAltIcon: qs, StopIcon: aE, StorybookIcon: Qs,
|
|
1934
|
+
StructureIcon: lE, SubtractIcon: uE, SunIcon: cE, SupportIcon: pE, SwitchAltIcon: dE, SyncIcon: mt, TabletIcon: fE, ThumbsUpIcon: mE, TimeIcon: Xs,
|
|
1935
|
+
TimerIcon: hE, TransferIcon: gE, TrashIcon: Zs, TwitterIcon: yE, TypeIcon: bE, UbuntuIcon: vE, UndoIcon: xE, UnfoldIcon: SE, UnlockIcon: IE,
|
|
1936
|
+
UnpinIcon: EE, UploadIcon: _E, UserAddIcon: wE, UserAltIcon: TE, UserIcon: CE, UsersIcon: kE, VSCodeIcon: OE, VerifiedIcon: PE, VideoIcon: AE,
|
|
1937
|
+
WandIcon: Js, WatchIcon: DE, WindowsIcon: ME, WrenchIcon: LE, XIcon: NE, YoutubeIcon: FE, ZoomIcon: ea, ZoomOutIcon: ta, ZoomResetIcon: oa, iconList: RE } = __STORYBOOK_ICONS__;
|
|
1938
|
+
|
|
1939
|
+
// global-externals:storybook/manager-api
|
|
1940
|
+
var BE = __STORYBOOK_API__, { ActiveTabs: zE, Consumer: he, ManagerContext: WE, Provider: ra, RequestResponseError: jE, addons: Ye, combineParameters: VE,
|
|
1941
|
+
controlOrMetaKey: KE, controlOrMetaSymbol: $E, eventMatchesShortcut: UE, eventToShortcut: na, experimental_MockUniversalStore: GE, experimental_UniversalStore: YE,
|
|
1942
|
+
experimental_requestResponse: Ho, experimental_useUniversalStore: qE, isMacLike: QE, isShortcutTaken: XE, keyToSymbol: ZE, merge: Bo, mockChannel: JE,
|
|
1943
|
+
optionOrAltSymbol: e_, shortcutMatchesShortcut: ia, shortcutToHumanString: qe, types: ve, useAddonState: t_, useArgTypes: o_, useArgs: r_, useChannel: sa,
|
|
1944
|
+
useGlobalTypes: n_, useGlobals: i_, useParameter: s_, useSharedState: a_, useStoryPrepared: l_, useStorybookApi: oe, useStorybookState: Pe } = __STORYBOOK_API__;
|
|
1945
|
+
|
|
1946
|
+
// global-externals:storybook/theming
|
|
1947
|
+
var c_ = __STORYBOOK_THEMING__, { CacheProvider: p_, ClassNames: d_, Global: Ut, ThemeProvider: cn, background: f_, color: aa, convert: m_, create: h_,
|
|
1948
|
+
createCache: g_, createGlobal: la, createReset: y_, css: b_, darken: v_, ensure: ua, ignoreSsrWarning: x_, isPropValid: S_, jsx: I_, keyframes: It,
|
|
1949
|
+
lighten: E_, styled: x, themes: __, typography: w_, useTheme: Ae, withTheme: ca } = __STORYBOOK_THEMING__;
|
|
1950
1950
|
|
|
1951
1951
|
// global-externals:react-dom/client
|
|
1952
1952
|
var C_ = __REACT_DOM_CLIENT__, { createRoot: pa, hydrateRoot: k_ } = __REACT_DOM_CLIENT__;
|
|
@@ -3048,7 +3048,7 @@ var Lf = It({
|
|
|
3048
3048
|
t.preventDefault(), t.stopPropagation(), e();
|
|
3049
3049
|
}
|
|
3050
3050
|
},
|
|
3051
|
-
/* @__PURE__ */ s.createElement(
|
|
3051
|
+
/* @__PURE__ */ s.createElement(Do, { size: 12 })
|
|
3052
3052
|
), "DismissNotificationItem"), qT = x.div({
|
|
3053
3053
|
height: 48
|
|
3054
3054
|
}), Vf = /* @__PURE__ */ a(({
|
|
@@ -3372,16 +3372,16 @@ var ul = /* @__PURE__ */ a(() => {
|
|
|
3372
3372
|
unmountOnExit: !0
|
|
3373
3373
|
},
|
|
3374
3374
|
(i) => /* @__PURE__ */ s.createElement(Qf, { ref: o, state: i, transitionDuration: 300 }, /* @__PURE__ */ s.createElement(Jf, { onClick: () => t(
|
|
3375
|
-
!1), title: "Close about section" }, /* @__PURE__ */ s.createElement(
|
|
3375
|
+
!1), title: "Close about section" }, /* @__PURE__ */ s.createElement(ws, null), "Back"), /* @__PURE__ */ s.createElement(Xf, null, /* @__PURE__ */ s.
|
|
3376
3376
|
createElement(al, { href: "https://github.com/storybookjs/storybook", target: "_blank" }, /* @__PURE__ */ s.createElement(ll, null, /* @__PURE__ */ s.
|
|
3377
|
-
createElement(
|
|
3377
|
+
createElement(Mo, null), /* @__PURE__ */ s.createElement("span", null, "Github")), /* @__PURE__ */ s.createElement(at, { width: 12 })), /* @__PURE__ */ s.
|
|
3378
3378
|
createElement(
|
|
3379
3379
|
al,
|
|
3380
3380
|
{
|
|
3381
3381
|
href: "https://storybook.js.org/docs/react/get-started/install/",
|
|
3382
3382
|
target: "_blank"
|
|
3383
3383
|
},
|
|
3384
|
-
/* @__PURE__ */ s.createElement(ll, null, /* @__PURE__ */ s.createElement(
|
|
3384
|
+
/* @__PURE__ */ s.createElement(ll, null, /* @__PURE__ */ s.createElement(Qs, null), /* @__PURE__ */ s.createElement("span", null, "Do\
|
|
3385
3385
|
cumentation")),
|
|
3386
3386
|
/* @__PURE__ */ s.createElement(at, { width: 12 })
|
|
3387
3387
|
)), /* @__PURE__ */ s.createElement(sr, null), /* @__PURE__ */ s.createElement(Zf, null, "Open source software maintained by", " ", /* @__PURE__ */ s.
|
|
@@ -3586,8 +3586,8 @@ var nm = /* @__PURE__ */ a(() => {
|
|
|
3586
3586
|
let { isMobileMenuOpen: i, isMobilePanelOpen: n, setMobileMenuOpen: r, setMobilePanelOpen: l } = ge(), u = nm();
|
|
3587
3587
|
return /* @__PURE__ */ s.createElement(im, null, /* @__PURE__ */ s.createElement(cl, null, e), n ? /* @__PURE__ */ s.createElement(il, null,
|
|
3588
3588
|
t) : /* @__PURE__ */ s.createElement(sm, { className: "sb-bar" }, /* @__PURE__ */ s.createElement(am, { onClick: () => r(!i), title: "Open\
|
|
3589
|
-
navigation menu" }, /* @__PURE__ */ s.createElement(
|
|
3590
|
-
te, { onClick: () => l(!0), title: "Open addon panel" }, /* @__PURE__ */ s.createElement(
|
|
3589
|
+
navigation menu" }, /* @__PURE__ */ s.createElement(No, null), /* @__PURE__ */ s.createElement(lm, null, u)), o && /* @__PURE__ */ s.createElement(
|
|
3590
|
+
te, { onClick: () => l(!0), title: "Open addon panel" }, /* @__PURE__ */ s.createElement(Ts, null))));
|
|
3591
3591
|
}, "MobileNavigation"), im = x.div(({ theme: e }) => ({
|
|
3592
3592
|
bottom: 0,
|
|
3593
3593
|
left: 0,
|
|
@@ -4042,7 +4042,7 @@ var Fn = Hn, Rn = s.memo(
|
|
|
4042
4042
|
description: /* @__PURE__ */ s.createElement(s.Fragment, null, "Integrate your tools with Storybook to connect workflows and unl\
|
|
4043
4043
|
ock advanced features."),
|
|
4044
4044
|
footer: /* @__PURE__ */ s.createElement(Me, { href: "https://storybook.js.org/integrations", target: "_blank", withArrow: !0 }, /* @__PURE__ */ s.
|
|
4045
|
-
createElement(
|
|
4045
|
+
createElement($t, null), " Explore integrations catalog")
|
|
4046
4046
|
}
|
|
4047
4047
|
),
|
|
4048
4048
|
tools: /* @__PURE__ */ s.createElement(gm, null, l ? /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
@@ -4050,20 +4050,20 @@ ock advanced features."),
|
|
|
4050
4050
|
{
|
|
4051
4051
|
key: "position",
|
|
4052
4052
|
onClick: o.togglePosition,
|
|
4053
|
-
title: `Change addon orientation [${
|
|
4053
|
+
title: `Change addon orientation [${qe(
|
|
4054
4054
|
t.panelPosition
|
|
4055
4055
|
)}]`
|
|
4056
4056
|
},
|
|
4057
|
-
n === "bottom" ? /* @__PURE__ */ s.createElement(
|
|
4057
|
+
n === "bottom" ? /* @__PURE__ */ s.createElement(Ro, null) : /* @__PURE__ */ s.createElement(Ao, null)
|
|
4058
4058
|
), /* @__PURE__ */ s.createElement(
|
|
4059
4059
|
te,
|
|
4060
4060
|
{
|
|
4061
4061
|
key: "visibility",
|
|
4062
4062
|
onClick: o.toggleVisibility,
|
|
4063
|
-
title: `Hide addons [${
|
|
4063
|
+
title: `Hide addons [${qe(t.togglePanel)}]`
|
|
4064
4064
|
},
|
|
4065
|
-
/* @__PURE__ */ s.createElement(
|
|
4066
|
-
)) : /* @__PURE__ */ s.createElement(te, { onClick: () => u(!1), title: "Close addon panel" }, /* @__PURE__ */ s.createElement(
|
|
4065
|
+
/* @__PURE__ */ s.createElement(Ge, null)
|
|
4066
|
+
)) : /* @__PURE__ */ s.createElement(te, { onClick: () => u(!1), title: "Close addon panel" }, /* @__PURE__ */ s.createElement(Ge, null))),
|
|
4067
4067
|
id: "storybook-panel-root"
|
|
4068
4068
|
},
|
|
4069
4069
|
Object.entries(e).map(([c, p]) => (
|
|
@@ -4084,7 +4084,7 @@ var gm = x.div({
|
|
|
4084
4084
|
// src/manager/container/Panel.tsx
|
|
4085
4085
|
var ym = /* @__PURE__ */ a((e) => {
|
|
4086
4086
|
let t = oe(), o = Pe(), [i, n] = $(t.getCurrentStoryData());
|
|
4087
|
-
|
|
4087
|
+
sa(
|
|
4088
4088
|
{
|
|
4089
4089
|
[Sl]: () => {
|
|
4090
4090
|
n(t.getCurrentStoryData());
|
|
@@ -4214,7 +4214,7 @@ var Km = /* @__PURE__ */ a((e, t) => e && t[e] ? `storybook-ref-${e}` : "storybo
|
|
|
4214
4214
|
let b = `${h.url}/iframe.html?id=${l}&viewMode=${o}&refId=${h.id}${c}`;
|
|
4215
4215
|
d[y] = b;
|
|
4216
4216
|
}
|
|
4217
|
-
}), /* @__PURE__ */ s.createElement(_e, null, /* @__PURE__ */ s.createElement(
|
|
4217
|
+
}), /* @__PURE__ */ s.createElement(_e, null, /* @__PURE__ */ s.createElement(Ut, { styles: Gm }), /* @__PURE__ */ s.createElement(he, { filter: Um },
|
|
4218
4218
|
({ isFullscreen: h, isNavShown: y, selectedStoryId: f }) => h || !y || !f ? null : /* @__PURE__ */ s.createElement($m, { asChild: !0 }, /* @__PURE__ */ s.
|
|
4219
4219
|
createElement("a", { href: `#${f}`, tabIndex: 0, title: "Skip to sidebar" }, "Skip to sidebar"))), Object.entries(d).map(([h, y]) => /* @__PURE__ */ s.
|
|
4220
4220
|
createElement(_e, { key: h }, /* @__PURE__ */ s.createElement(
|
|
@@ -4244,7 +4244,7 @@ var Ym = /* @__PURE__ */ a(({ api: e, state: t }) => ({
|
|
|
4244
4244
|
match: /* @__PURE__ */ a(({ viewMode: e, tabId: t }) => e === "story" && !t, "match"),
|
|
4245
4245
|
render: /* @__PURE__ */ a(() => /* @__PURE__ */ s.createElement(he, { filter: Ym }, ({ isVisible: e, toggle: t, singleStory: o, panelPosition: i }) => !o &&
|
|
4246
4246
|
!e && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(te, { "aria-label": "Show addons", key: "addons", onClick: t,
|
|
4247
|
-
title: "Show addons" }, i === "bottom" ? /* @__PURE__ */ s.createElement(
|
|
4247
|
+
title: "Show addons" }, i === "bottom" ? /* @__PURE__ */ s.createElement(Ao, null) : /* @__PURE__ */ s.createElement(Ro, null)))), "render")
|
|
4248
4248
|
};
|
|
4249
4249
|
|
|
4250
4250
|
// src/manager/components/preview/tools/copy.tsx
|
|
@@ -4270,7 +4270,7 @@ var { PREVIEW_URL: Jm, document: eh } = se, th = /* @__PURE__ */ a(({ state: e }
|
|
|
4270
4270
|
onClick: () => (0, Ul.default)(Qt(e, t, o)),
|
|
4271
4271
|
title: "Copy canvas link"
|
|
4272
4272
|
},
|
|
4273
|
-
/* @__PURE__ */ s.createElement(
|
|
4273
|
+
/* @__PURE__ */ s.createElement(Ws, null)
|
|
4274
4274
|
) : null), "render")
|
|
4275
4275
|
};
|
|
4276
4276
|
|
|
@@ -4358,9 +4358,9 @@ var go = 1, Ql = jt({ value: go, set: /* @__PURE__ */ a((e) => {
|
|
|
4358
4358
|
a(Yn, "ZoomProvider");
|
|
4359
4359
|
var fr = Yn, { Consumer: Gn } = Ql, sh = no(/* @__PURE__ */ a(function({ zoomIn: t, zoomOut: o, reset: i }) {
|
|
4360
4360
|
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(te, { key: "zoomin", onClick: t, title: "Zoom in" },
|
|
4361
|
-
/* @__PURE__ */ s.createElement(
|
|
4362
|
-
createElement(
|
|
4363
|
-
|
|
4361
|
+
/* @__PURE__ */ s.createElement(ea, null)), /* @__PURE__ */ s.createElement(te, { key: "zoomout", onClick: o, title: "Zoom out" }, /* @__PURE__ */ s.
|
|
4362
|
+
createElement(ta, null)), /* @__PURE__ */ s.createElement(te, { key: "zoomreset", onClick: i, title: "Reset zoom" }, /* @__PURE__ */ s.createElement(
|
|
4363
|
+
oa, null)));
|
|
4364
4364
|
}, "Zoom"));
|
|
4365
4365
|
var ah = no(/* @__PURE__ */ a(function({
|
|
4366
4366
|
set: t,
|
|
@@ -4401,7 +4401,7 @@ var Xl = {
|
|
|
4401
4401
|
var uh = /* @__PURE__ */ a(({ api: e, state: t }) => ({
|
|
4402
4402
|
toggle: e.toggleFullscreen,
|
|
4403
4403
|
isFullscreen: e.getIsFullscreen(),
|
|
4404
|
-
shortcut:
|
|
4404
|
+
shortcut: qe(e.getShortcutKeys().fullScreen),
|
|
4405
4405
|
hasPanel: Object.keys(e.getElements(Te.PANEL)).length > 0,
|
|
4406
4406
|
singleStory: t.singleStory
|
|
4407
4407
|
}), "fullScreenMapper"), Jl = {
|
|
@@ -4421,7 +4421,7 @@ var uh = /* @__PURE__ */ a(({ api: e, state: t }) => ({
|
|
|
4421
4421
|
title: `${o ? "Exit full screen" : "Go full screen"} [${i}]`,
|
|
4422
4422
|
"aria-label": o ? "Exit full screen" : "Go full screen"
|
|
4423
4423
|
},
|
|
4424
|
-
o ? /* @__PURE__ */ s.createElement(
|
|
4424
|
+
o ? /* @__PURE__ */ s.createElement(Ge, null) : /* @__PURE__ */ s.createElement(Ms, null)
|
|
4425
4425
|
));
|
|
4426
4426
|
}, "render")
|
|
4427
4427
|
};
|
|
@@ -4455,8 +4455,8 @@ bar" }, /* @__PURE__ */ s.createElement(dh, null, /* @__PURE__ */ s.createElemen
|
|
|
4455
4455
|
)));
|
|
4456
4456
|
}, "Tools"));
|
|
4457
4457
|
function ch(e, t) {
|
|
4458
|
-
let o = t?.type === "story" && t?.prepared ? t?.parameters : {}, i = "toolbar" in o ? o.toolbar : void 0, { toolbar: n } =
|
|
4459
|
-
r =
|
|
4458
|
+
let o = t?.type === "story" && t?.prepared ? t?.parameters : {}, i = "toolbar" in o ? o.toolbar : void 0, { toolbar: n } = Ye.getConfig(),
|
|
4459
|
+
r = Bo(
|
|
4460
4460
|
n || {},
|
|
4461
4461
|
i || {}
|
|
4462
4462
|
);
|
|
@@ -4660,7 +4660,7 @@ var gh = /* @__PURE__ */ a(({ baseUrl: e, withLoader: t, wrappers: o }) => /* @_
|
|
|
4660
4660
|
j(() => {
|
|
4661
4661
|
if (se.CONFIG_TYPE === "DEVELOPMENT")
|
|
4662
4662
|
try {
|
|
4663
|
-
|
|
4663
|
+
Ye.getChannel().on(Ss, (v) => {
|
|
4664
4664
|
y(v);
|
|
4665
4665
|
});
|
|
4666
4666
|
} catch {
|
|
@@ -4684,9 +4684,9 @@ var gh = /* @__PURE__ */ a(({ baseUrl: e, withLoader: t, wrappers: o }) => /* @_
|
|
|
4684
4684
|
))));
|
|
4685
4685
|
}), "Canvas");
|
|
4686
4686
|
function cu(e, t) {
|
|
4687
|
-
let { previewTabs: o } =
|
|
4687
|
+
let { previewTabs: o } = Ye.getConfig(), i = t ? t.previewTabs : void 0;
|
|
4688
4688
|
if (o || i) {
|
|
4689
|
-
let n =
|
|
4689
|
+
let n = Bo(o || {}, i || {}), r = Object.keys(n).map((l, u) => ({
|
|
4690
4690
|
index: u,
|
|
4691
4691
|
...typeof n[l] == "string" ? { title: n[l] } : n[l],
|
|
4692
4692
|
id: l
|
|
@@ -4725,7 +4725,7 @@ var yh = /* @__PURE__ */ a(({ api: e, state: t }) => ({
|
|
|
4725
4725
|
match: /* @__PURE__ */ a(({ viewMode: e }) => ["story", "docs"].includes(e), "match"),
|
|
4726
4726
|
render: /* @__PURE__ */ a(() => /* @__PURE__ */ s.createElement(he, { filter: yh }, ({ isVisible: e, toggle: t, singleStory: o }) => !o &&
|
|
4727
4727
|
!e && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(te, { "aria-label": "Show sidebar", key: "menu", onClick: t,
|
|
4728
|
-
title: "Show sidebar" }, /* @__PURE__ */ s.createElement(
|
|
4728
|
+
title: "Show sidebar" }, /* @__PURE__ */ s.createElement(No, null)), /* @__PURE__ */ s.createElement(qt, null))), "render")
|
|
4729
4729
|
};
|
|
4730
4730
|
|
|
4731
4731
|
// src/manager/container/Preview.tsx
|
|
@@ -5533,11 +5533,11 @@ createElement(Ru, { style: { width: "90px" } }), /* @__PURE__ */ s.createElement
|
|
|
5533
5533
|
dingSkeleton");
|
|
5534
5534
|
|
|
5535
5535
|
// src/manager/components/sidebar/FileSearchList.tsx
|
|
5536
|
-
var Bu = x(
|
|
5536
|
+
var Bu = x(Cs)(({ theme: e }) => ({
|
|
5537
5537
|
display: "none",
|
|
5538
5538
|
alignSelf: "center",
|
|
5539
5539
|
color: e.color.mediumdark
|
|
5540
|
-
})), zh = x(
|
|
5540
|
+
})), zh = x(Kt)(({ theme: e }) => ({
|
|
5541
5541
|
display: "none",
|
|
5542
5542
|
alignSelf: "center",
|
|
5543
5543
|
color: e.color.mediumdark
|
|
@@ -5602,7 +5602,7 @@ var Bu = x(Ns)(({ theme: e }) => ({
|
|
|
5602
5602
|
error: _,
|
|
5603
5603
|
disabled: I.exportedComponents === null || I.exportedComponents?.length === 0
|
|
5604
5604
|
},
|
|
5605
|
-
/* @__PURE__ */ s.createElement(Cu, { error: _ }, /* @__PURE__ */ s.createElement(
|
|
5605
|
+
/* @__PURE__ */ s.createElement(Cu, { error: _ }, /* @__PURE__ */ s.createElement(ln, null)),
|
|
5606
5606
|
/* @__PURE__ */ s.createElement(Tu, null, /* @__PURE__ */ s.createElement(ku, { error: _ }, I.filepath.split("/").at(-1)), /* @__PURE__ */ s.
|
|
5607
5607
|
createElement(Ou, null, I.filepath)),
|
|
5608
5608
|
m ? /* @__PURE__ */ s.createElement(zh, null) : /* @__PURE__ */ s.createElement(Bu, null)
|
|
@@ -5647,7 +5647,7 @@ var Bu = x(Ns)(({ theme: e }) => ({
|
|
|
5647
5647
|
});
|
|
5648
5648
|
}
|
|
5649
5649
|
},
|
|
5650
|
-
/* @__PURE__ */ s.createElement(Du, null, /* @__PURE__ */ s.createElement(
|
|
5650
|
+
/* @__PURE__ */ s.createElement(Du, null, /* @__PURE__ */ s.createElement(ln, null), v.default ? /* @__PURE__ */ s.createElement(
|
|
5651
5651
|
s.Fragment, null, /* @__PURE__ */ s.createElement(Mu, null, I.filepath.split("/").at(-1)?.split(".")?.at(0)), /* @__PURE__ */ s.
|
|
5652
5652
|
createElement(Lu, null, "Default export")) : v.name),
|
|
5653
5653
|
/* @__PURE__ */ s.createElement(Bu, null)
|
|
@@ -5810,7 +5810,7 @@ var Wh = 418, jh = x(Et)(() => ({
|
|
|
5810
5810
|
"> div": {
|
|
5811
5811
|
padding: 0
|
|
5812
5812
|
}
|
|
5813
|
-
}), Qh = x(
|
|
5813
|
+
}), Qh = x(Do)({
|
|
5814
5814
|
position: "absolute",
|
|
5815
5815
|
top: 4,
|
|
5816
5816
|
right: -24,
|
|
@@ -5848,7 +5848,7 @@ var Wh = 418, jh = x(Et)(() => ({
|
|
|
5848
5848
|
/* @__PURE__ */ s.createElement(Vh, { height: o === "" ? g.height : h }, /* @__PURE__ */ s.createElement(Kh, { ref: d }, /* @__PURE__ */ s.
|
|
5849
5849
|
createElement(Et.Header, null, /* @__PURE__ */ s.createElement(Et.Title, null, "Add a new story"), /* @__PURE__ */ s.createElement(Et.Description,
|
|
5850
5850
|
null, "We will create a new story for your component")), /* @__PURE__ */ s.createElement(Uh, null, /* @__PURE__ */ s.createElement(Gh, null,
|
|
5851
|
-
/* @__PURE__ */ s.createElement(
|
|
5851
|
+
/* @__PURE__ */ s.createElement(Fo, null)), /* @__PURE__ */ s.createElement(
|
|
5852
5852
|
$h,
|
|
5853
5853
|
{
|
|
5854
5854
|
placeholder: "./components/**/*.tsx",
|
|
@@ -5999,7 +5999,7 @@ var Xh = /* @__PURE__ */ a((e) => JSON.stringify(e, (t, o) => typeof o == "funct
|
|
|
5999
5999
|
}), t(!1);
|
|
6000
6000
|
}, [g, t]), I = A(() => {
|
|
6001
6001
|
i(!0);
|
|
6002
|
-
let m =
|
|
6002
|
+
let m = Ye.getChannel(), v = /* @__PURE__ */ a((S) => {
|
|
6003
6003
|
S.id === u && (S.success ? y(S.payload.files) : d({ error: S.error }), m.off(Oo, v), i(!1), c.current = null);
|
|
6004
6004
|
}, "set");
|
|
6005
6005
|
return m.on(Oo, v), u !== "" && c.current !== u ? (c.current = u, m.emit(xs, {
|
|
@@ -6017,7 +6017,7 @@ var Xh = /* @__PURE__ */ a((e) => JSON.stringify(e, (t, o) => typeof o == "funct
|
|
|
6017
6017
|
selectedItemId: T
|
|
6018
6018
|
}) => {
|
|
6019
6019
|
try {
|
|
6020
|
-
let C =
|
|
6020
|
+
let C = Ye.getChannel(), k = await Ho(C, bs, vs, {
|
|
6021
6021
|
componentExportName: m,
|
|
6022
6022
|
componentFilePath: v,
|
|
6023
6023
|
componentIsDefaultExport: S,
|
|
@@ -6027,10 +6027,10 @@ var Xh = /* @__PURE__ */ a((e) => JSON.stringify(e, (t, o) => typeof o == "funct
|
|
|
6027
6027
|
let w = k.storyId;
|
|
6028
6028
|
await xr(g.selectStory, w);
|
|
6029
6029
|
try {
|
|
6030
|
-
let P = (await
|
|
6030
|
+
let P = (await Ho(C, ms, hs, {
|
|
6031
6031
|
storyId: w
|
|
6032
6032
|
})).argTypes, D = ju(P);
|
|
6033
|
-
await
|
|
6033
|
+
await Ho(
|
|
6034
6034
|
C,
|
|
6035
6035
|
Is,
|
|
6036
6036
|
Es,
|
|
@@ -6078,7 +6078,7 @@ var Xh = /* @__PURE__ */ a((e) => JSON.stringify(e, (t, o) => typeof o == "funct
|
|
|
6078
6078
|
|
|
6079
6079
|
// src/manager/components/sidebar/HighlightStyles.tsx
|
|
6080
6080
|
var Ku = /* @__PURE__ */ a(({ refId: e, itemId: t }) => /* @__PURE__ */ s.createElement(
|
|
6081
|
-
|
|
6081
|
+
Ut,
|
|
6082
6082
|
{
|
|
6083
6083
|
styles: ({ color: o }) => {
|
|
6084
6084
|
let i = we(0.85, o.secondary);
|
|
@@ -6227,7 +6227,7 @@ var { window: oc } = se, tg = x.div(({ theme: e }) => ({
|
|
|
6227
6227
|
his Storybook."), /* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(me, { small: !0, gray: !0, onClick: n }, /* @__PURE__ */ s.
|
|
6228
6228
|
createElement(mt, null), "Refresh now"))) : /* @__PURE__ */ s.createElement(_e, null, /* @__PURE__ */ s.createElement(Jn, null, "Sign in t\
|
|
6229
6229
|
o browse this Storybook."), /* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(me, { small: !0, gray: !0, onClick: r },
|
|
6230
|
-
/* @__PURE__ */ s.createElement(
|
|
6230
|
+
/* @__PURE__ */ s.createElement(Lo, null), "Sign in")))));
|
|
6231
6231
|
}, "AuthBlock"), nc = /* @__PURE__ */ a(({ error: e }) => /* @__PURE__ */ s.createElement(vo, null, /* @__PURE__ */ s.createElement(lt, null,
|
|
6232
6232
|
/* @__PURE__ */ s.createElement(tg, null, "Oh no! Something went wrong loading this Storybook.", /* @__PURE__ */ s.createElement("br", null),
|
|
6233
6233
|
/* @__PURE__ */ s.createElement(
|
|
@@ -6235,7 +6235,7 @@ o browse this Storybook."), /* @__PURE__ */ s.createElement("div", null, /* @__P
|
|
|
6235
6235
|
{
|
|
6236
6236
|
tooltip: /* @__PURE__ */ s.createElement(og, null, /* @__PURE__ */ s.createElement(Va, { error: e }))
|
|
6237
6237
|
},
|
|
6238
|
-
/* @__PURE__ */ s.createElement(Me, { isButton: !0 }, "View error ", /* @__PURE__ */ s.createElement(
|
|
6238
|
+
/* @__PURE__ */ s.createElement(Me, { isButton: !0 }, "View error ", /* @__PURE__ */ s.createElement(Kt, null))
|
|
6239
6239
|
), " ", /* @__PURE__ */ s.createElement(Me, { withArrow: !0, href: "https://storybook.js.org/docs", cancel: !1, target: "_blank" }, "View do\
|
|
6240
6240
|
cs")))), "ErrorBlock"), rg = x(lt)({
|
|
6241
6241
|
display: "flex"
|
|
@@ -6344,7 +6344,7 @@ var { document: ig, window: sg } = se, ag = x.aside(({ theme: e }) => ({
|
|
|
6344
6344
|
let i = Object.entries(t).find(([n, r]) => r === e);
|
|
6345
6345
|
return i && i[0] ? i[0] : "current";
|
|
6346
6346
|
}, [e, t]);
|
|
6347
|
-
return /* @__PURE__ */ s.createElement(cg, null, /* @__PURE__ */ s.createElement("span", null, o), /* @__PURE__ */ s.createElement(
|
|
6347
|
+
return /* @__PURE__ */ s.createElement(cg, null, /* @__PURE__ */ s.createElement("span", null, o), /* @__PURE__ */ s.createElement(Kt, null));
|
|
6348
6348
|
}, "CurrentVersion"), ac = s.memo(
|
|
6349
6349
|
cs(
|
|
6350
6350
|
({ state: e, ...t }, o) => {
|
|
@@ -6369,7 +6369,7 @@ ready" && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.cr
|
|
|
6369
6369
|
hg, null)))
|
|
6370
6370
|
},
|
|
6371
6371
|
/* @__PURE__ */ s.createElement(lg, { "data-action": "toggle-indicator", "aria-label": "toggle indicator" }, /* @__PURE__ */ s.createElement(
|
|
6372
|
-
|
|
6372
|
+
un, null))
|
|
6373
6373
|
), t.versions && Object.keys(t.versions).length ? /* @__PURE__ */ s.createElement(
|
|
6374
6374
|
be,
|
|
6375
6375
|
{
|
|
@@ -6397,12 +6397,12 @@ ready" && /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.cr
|
|
|
6397
6397
|
)
|
|
6398
6398
|
), dg = /* @__PURE__ */ a(({ url: e, componentCount: t, leafCount: o }) => {
|
|
6399
6399
|
let i = Ae();
|
|
6400
|
-
return /* @__PURE__ */ s.createElement(Nt, { href: e.replace(/\/?$/, "/index.html"), target: "_blank" }, /* @__PURE__ */ s.createElement(
|
|
6400
|
+
return /* @__PURE__ */ s.createElement(Nt, { href: e.replace(/\/?$/, "/index.html"), target: "_blank" }, /* @__PURE__ */ s.createElement(un,
|
|
6401
6401
|
{ color: i.color.secondary }), /* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(Lt, null, "View external Story\
|
|
6402
6402
|
book"), /* @__PURE__ */ s.createElement("div", null, "Explore ", t, " components and ", o, " stories in a new browser tab.")));
|
|
6403
6403
|
}, "ReadyMessage"), fg = /* @__PURE__ */ a(({ url: e }) => {
|
|
6404
6404
|
let t = Ae();
|
|
6405
|
-
return /* @__PURE__ */ s.createElement(Nt, { href: e, target: "_blank" }, /* @__PURE__ */ s.createElement(
|
|
6405
|
+
return /* @__PURE__ */ s.createElement(Nt, { href: e, target: "_blank" }, /* @__PURE__ */ s.createElement(js, { color: t.color.secondary }),
|
|
6406
6406
|
/* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(Lt, null, "View source code")));
|
|
6407
6407
|
}, "SourceCodeMessage"), mg = /* @__PURE__ */ a(({ loginUrl: e, id: t }) => {
|
|
6408
6408
|
let o = Ae(), i = A((n) => {
|
|
@@ -6411,28 +6411,28 @@ book"), /* @__PURE__ */ s.createElement("div", null, "Explore ", t, " components
|
|
|
6411
6411
|
r ? r.closed && (clearInterval(l), ig.location.reload()) : clearInterval(l);
|
|
6412
6412
|
}, 1e3);
|
|
6413
6413
|
}, []);
|
|
6414
|
-
return /* @__PURE__ */ s.createElement(Nt, { onClick: i }, /* @__PURE__ */ s.createElement(
|
|
6414
|
+
return /* @__PURE__ */ s.createElement(Nt, { onClick: i }, /* @__PURE__ */ s.createElement(Lo, { color: o.color.gold }), /* @__PURE__ */ s.
|
|
6415
6415
|
createElement("div", null, /* @__PURE__ */ s.createElement(Lt, null, "Log in required"), /* @__PURE__ */ s.createElement("div", null, "You\
|
|
6416
6416
|
need to authenticate to view this Storybook's components.")));
|
|
6417
6417
|
}, "LoginRequiredMessage"), hg = /* @__PURE__ */ a(() => {
|
|
6418
6418
|
let e = Ae();
|
|
6419
6419
|
return /* @__PURE__ */ s.createElement(Nt, { href: "https://storybook.js.org/docs/sharing/storybook-composition", target: "_blank" }, /* @__PURE__ */ s.
|
|
6420
|
-
createElement(
|
|
6420
|
+
createElement($t, { color: e.color.green }), /* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(Lt, null, "Read \
|
|
6421
6421
|
Composition docs"), /* @__PURE__ */ s.createElement("div", null, "Learn how to combine multiple Storybooks into one.")));
|
|
6422
6422
|
}, "ReadDocsMessage"), gg = /* @__PURE__ */ a(({ url: e }) => {
|
|
6423
6423
|
let t = Ae();
|
|
6424
|
-
return /* @__PURE__ */ s.createElement(Nt, { href: e.replace(/\/?$/, "/index.html"), target: "_blank" }, /* @__PURE__ */ s.createElement(
|
|
6424
|
+
return /* @__PURE__ */ s.createElement(Nt, { href: e.replace(/\/?$/, "/index.html"), target: "_blank" }, /* @__PURE__ */ s.createElement(Po,
|
|
6425
6425
|
{ color: t.color.negative }), /* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(Lt, null, "Something went wrong"),
|
|
6426
6426
|
/* @__PURE__ */ s.createElement("div", null, "This external Storybook didn't load. Debug it in a new tab now.")));
|
|
6427
6427
|
}, "ErrorOccurredMessage"), yg = /* @__PURE__ */ a(({ url: e }) => {
|
|
6428
6428
|
let t = Ae();
|
|
6429
|
-
return /* @__PURE__ */ s.createElement(Nt, { href: e.replace(/\/?$/, "/index.html"), target: "_blank" }, /* @__PURE__ */ s.createElement(
|
|
6429
|
+
return /* @__PURE__ */ s.createElement(Nt, { href: e.replace(/\/?$/, "/index.html"), target: "_blank" }, /* @__PURE__ */ s.createElement(Xs,
|
|
6430
6430
|
{ color: t.color.secondary }), /* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(Lt, null, "Please wait"), /* @__PURE__ */ s.
|
|
6431
6431
|
createElement("div", null, "This Storybook is loading.")));
|
|
6432
6432
|
}, "LoadingMessage"), bg = /* @__PURE__ */ a(() => {
|
|
6433
6433
|
let e = Ae();
|
|
6434
6434
|
return /* @__PURE__ */ s.createElement(Nt, { href: "https://storybook.js.org/docs/sharing/storybook-composition", target: "_blank" }, /* @__PURE__ */ s.
|
|
6435
|
-
createElement(
|
|
6435
|
+
createElement(zs, { color: e.color.gold }), /* @__PURE__ */ s.createElement("div", null, /* @__PURE__ */ s.createElement(Lt, null, "Reduce\
|
|
6436
6436
|
lag"), /* @__PURE__ */ s.createElement("div", null, "Learn how to speed up Composition performance.")));
|
|
6437
6437
|
}, "PerformanceDegradedMessage");
|
|
6438
6438
|
|
|
@@ -6523,7 +6523,7 @@ ning" ? /* @__PURE__ */ s.createElement("use", { xlinkHref: `#${mc}` }) : e ===
|
|
|
6523
6523
|
#${hc}` }) : null, "UseSymbol");
|
|
6524
6524
|
|
|
6525
6525
|
// src/manager/utils/status.tsx
|
|
6526
|
-
var xg = x(
|
|
6526
|
+
var xg = x(Os)({
|
|
6527
6527
|
// specificity hack
|
|
6528
6528
|
"&&&": {
|
|
6529
6529
|
width: 6,
|
|
@@ -6662,7 +6662,7 @@ var Eg = {
|
|
|
6662
6662
|
},
|
|
6663
6663
|
tooltip: /* @__PURE__ */ s.createElement(Tg, { context: e, links: t })
|
|
6664
6664
|
},
|
|
6665
|
-
/* @__PURE__ */ s.createElement(wg, { type: "button", status: "pending" }, /* @__PURE__ */ s.createElement(
|
|
6665
|
+
/* @__PURE__ */ s.createElement(wg, { type: "button", status: "pending" }, /* @__PURE__ */ s.createElement(As, null))
|
|
6666
6666
|
) : null
|
|
6667
6667
|
}, [e, u, r, p, t]);
|
|
6668
6668
|
}, "useContextMenu"), Tg = /* @__PURE__ */ a(({
|
|
@@ -7053,13 +7053,13 @@ var Dg = x.div((e) => ({
|
|
|
7053
7053
|
}
|
|
7054
7054
|
})), Ng = /* @__PURE__ */ a((e) => {
|
|
7055
7055
|
let t = Ae();
|
|
7056
|
-
return /* @__PURE__ */ s.createElement(
|
|
7056
|
+
return /* @__PURE__ */ s.createElement(Gs, { ...e, color: t.color.positive });
|
|
7057
7057
|
}, "SuccessStatusIcon"), Fg = /* @__PURE__ */ a((e) => {
|
|
7058
7058
|
let t = Ae();
|
|
7059
|
-
return /* @__PURE__ */ s.createElement(
|
|
7059
|
+
return /* @__PURE__ */ s.createElement(Us, { ...e, color: t.color.negative });
|
|
7060
7060
|
}, "ErrorStatusIcon"), Rg = /* @__PURE__ */ a((e) => {
|
|
7061
7061
|
let t = Ae();
|
|
7062
|
-
return /* @__PURE__ */ s.createElement(
|
|
7062
|
+
return /* @__PURE__ */ s.createElement(Ys, { ...e, color: t.color.warning });
|
|
7063
7063
|
}, "WarnStatusIcon"), Hg = /* @__PURE__ */ a((e) => {
|
|
7064
7064
|
let t = Ae();
|
|
7065
7065
|
return /* @__PURE__ */ s.createElement(mt, { ...e, size: 12, color: t.color.defaultText });
|
|
@@ -7214,7 +7214,7 @@ var Ac = ["success", "error", "warn", "pending", "unknown"], Dc = s.memo(/* @__P
|
|
|
7214
7214
|
C.preventDefault(), d();
|
|
7215
7215
|
}
|
|
7216
7216
|
},
|
|
7217
|
-
p ? /* @__PURE__ */ s.createElement(
|
|
7217
|
+
p ? /* @__PURE__ */ s.createElement(Ps, null) : /* @__PURE__ */ s.createElement(Ds, null)
|
|
7218
7218
|
)
|
|
7219
7219
|
);
|
|
7220
7220
|
if (t.type === "component" || t.type === "group") {
|
|
@@ -7632,7 +7632,7 @@ var Kg = x(Xo)(({ theme: e }) => ({
|
|
|
7632
7632
|
outline: 0,
|
|
7633
7633
|
borderColor: e.color.secondary
|
|
7634
7634
|
}
|
|
7635
|
-
})), Wc =
|
|
7635
|
+
})), Wc = ca(({ theme: e }) => {
|
|
7636
7636
|
let { title: t = "Storybook", url: o = "./", image: i, target: n } = e.brand, r = n || (o === "./" ? "" : "_blank");
|
|
7637
7637
|
if (i === null)
|
|
7638
7638
|
return t === null ? null : o ? /* @__PURE__ */ s.createElement(zc, { href: o, target: r, dangerouslySetInnerHTML: { __html: t } }) : /* @__PURE__ */ s.
|
|
@@ -7685,7 +7685,7 @@ var jc = x(te)(({ highlighted: e, theme: t }) => ({
|
|
|
7685
7685
|
active: !1,
|
|
7686
7686
|
onClick: o
|
|
7687
7687
|
},
|
|
7688
|
-
/* @__PURE__ */ s.createElement(
|
|
7688
|
+
/* @__PURE__ */ s.createElement(an, null)
|
|
7689
7689
|
), /* @__PURE__ */ s.createElement(
|
|
7690
7690
|
te,
|
|
7691
7691
|
{
|
|
@@ -7693,7 +7693,7 @@ var jc = x(te)(({ highlighted: e, theme: t }) => ({
|
|
|
7693
7693
|
"aria-label": "Close menu",
|
|
7694
7694
|
onClick: () => l(!1)
|
|
7695
7695
|
},
|
|
7696
|
-
/* @__PURE__ */ s.createElement(
|
|
7696
|
+
/* @__PURE__ */ s.createElement(Ge, null)
|
|
7697
7697
|
)) : /* @__PURE__ */ s.createElement(
|
|
7698
7698
|
be,
|
|
7699
7699
|
{
|
|
@@ -7710,7 +7710,7 @@ var jc = x(te)(({ highlighted: e, theme: t }) => ({
|
|
|
7710
7710
|
highlighted: t,
|
|
7711
7711
|
active: i
|
|
7712
7712
|
},
|
|
7713
|
-
/* @__PURE__ */ s.createElement(
|
|
7713
|
+
/* @__PURE__ */ s.createElement(an, null)
|
|
7714
7714
|
)
|
|
7715
7715
|
);
|
|
7716
7716
|
}, "SidebarMenu");
|
|
@@ -10089,7 +10089,7 @@ var { document: $y } = se, Zi = 50, Uy = {
|
|
|
10089
10089
|
searchBarContent: l,
|
|
10090
10090
|
searchFieldContent: u
|
|
10091
10091
|
}) {
|
|
10092
|
-
let c = oe(), p = Y(null), [d, g] = $("Find components"), [h, y] = $(!1), f = c ?
|
|
10092
|
+
let c = oe(), p = Y(null), [d, g] = $("Find components"), [h, y] = $(!1), f = c ? qe(c.getShortcutKeys().search) : "/", b = A(() => {
|
|
10093
10093
|
let E = o.entries.reduce((T, [C, { index: k, status: w }]) => {
|
|
10094
10094
|
let O = Ir(k || {}, w);
|
|
10095
10095
|
return k && T.push(
|
|
@@ -10211,12 +10211,12 @@ var { document: $y } = se, Zi = 50, Uy = {
|
|
|
10211
10211
|
...N({ refKey: "" }, { suppressRefError: !0 }),
|
|
10212
10212
|
className: "search-field"
|
|
10213
10213
|
},
|
|
10214
|
-
/* @__PURE__ */ s.createElement(Qy, null, /* @__PURE__ */ s.createElement(
|
|
10214
|
+
/* @__PURE__ */ s.createElement(Qy, null, /* @__PURE__ */ s.createElement(Fo, null)),
|
|
10215
10215
|
/* @__PURE__ */ s.createElement(Xy, { ...z }),
|
|
10216
10216
|
!S && i && !E && /* @__PURE__ */ s.createElement(Zy, null, f === "\u2318 K" ? /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.
|
|
10217
10217
|
createElement(Jy, null, "\u2318"), "K") : f),
|
|
10218
10218
|
/* @__PURE__ */ s.createElement(eb, null, E && /* @__PURE__ */ s.createElement(te, { onClick: () => w() }, /* @__PURE__ */ s.createElement(
|
|
10219
|
-
|
|
10219
|
+
Ge, null)), u)
|
|
10220
10220
|
), l), /* @__PURE__ */ s.createElement(tb, { tabIndex: 0, id: "storybook-explorer-menu" }, t({
|
|
10221
10221
|
query: V,
|
|
10222
10222
|
results: X,
|
|
@@ -10402,7 +10402,7 @@ lt-recentlyOpened" }, "Recently opened", /* @__PURE__ */ s.createElement(
|
|
|
10402
10402
|
className: "search-result-recentlyOpened-clear",
|
|
10403
10403
|
onClick: h
|
|
10404
10404
|
},
|
|
10405
|
-
/* @__PURE__ */ s.createElement(
|
|
10405
|
+
/* @__PURE__ */ s.createElement(Zs, null)
|
|
10406
10406
|
)), o.length === 0 && t && /* @__PURE__ */ s.createElement("li", null, /* @__PURE__ */ s.createElement(sb, null, /* @__PURE__ */ s.createElement(
|
|
10407
10407
|
"strong", null, "No components found"), /* @__PURE__ */ s.createElement("br", null), /* @__PURE__ */ s.createElement("small", null, "Find \
|
|
10408
10408
|
components by name or path."))), o.map((y, f) => {
|
|
@@ -10456,7 +10456,7 @@ var fb = x.div({
|
|
|
10456
10456
|
color: e.textMutedColor
|
|
10457
10457
|
})), bb = x($a)({
|
|
10458
10458
|
margin: 2
|
|
10459
|
-
}), vb = x(
|
|
10459
|
+
}), vb = x(qs)({
|
|
10460
10460
|
width: 10
|
|
10461
10461
|
}), ld = /* @__PURE__ */ a(({ ...e }) => {
|
|
10462
10462
|
let t = e.description, o = e.title, i = oe();
|
|
@@ -10503,7 +10503,7 @@ odule-description" }, /* @__PURE__ */ s.createElement(t, { ...e }))), /* @__PURE
|
|
|
10503
10503
|
onClick: () => i.runTestProvider(e.id),
|
|
10504
10504
|
disabled: e.crashed || e.running
|
|
10505
10505
|
},
|
|
10506
|
-
/* @__PURE__ */ s.createElement(
|
|
10506
|
+
/* @__PURE__ */ s.createElement(Ks, null)
|
|
10507
10507
|
)
|
|
10508
10508
|
))));
|
|
10509
10509
|
}, "LegacyRender");
|
|
@@ -10670,7 +10670,7 @@ var Ji = 500, xb = It({
|
|
|
10670
10670
|
},
|
|
10671
10671
|
disabled: _
|
|
10672
10672
|
},
|
|
10673
|
-
/* @__PURE__ */ s.createElement(
|
|
10673
|
+
/* @__PURE__ */ s.createElement(Vs, null),
|
|
10674
10674
|
_ ? "Running..." : "Run tests"
|
|
10675
10675
|
), /* @__PURE__ */ s.createElement(Tb, null, S && /* @__PURE__ */ s.createElement(
|
|
10676
10676
|
be,
|
|
@@ -10694,7 +10694,7 @@ var Ji = 500, xb = It({
|
|
|
10694
10694
|
"aria-label": h ? "Expand testing module" : "Collapse testing module"
|
|
10695
10695
|
},
|
|
10696
10696
|
/* @__PURE__ */ s.createElement(
|
|
10697
|
-
|
|
10697
|
+
ks,
|
|
10698
10698
|
{
|
|
10699
10699
|
style: {
|
|
10700
10700
|
transform: h ? "none" : "rotate(180deg)",
|
|
@@ -10970,7 +10970,7 @@ var Wb = "tags-filter", jb = /* @__PURE__ */ new Set([
|
|
|
10970
10970
|
closeOnOutsideClick: !0
|
|
10971
10971
|
},
|
|
10972
10972
|
/* @__PURE__ */ s.createElement(Vb, null, /* @__PURE__ */ s.createElement(te, { key: "tags", title: "Tag filters", active: c, onClick: g },
|
|
10973
|
-
/* @__PURE__ */ s.createElement(
|
|
10973
|
+
/* @__PURE__ */ s.createElement(Rs, null)), n.length > 0 && /* @__PURE__ */ s.createElement(Kb, null))
|
|
10974
10974
|
);
|
|
10975
10975
|
}, "TagsFilter");
|
|
10976
10976
|
|
|
@@ -11125,7 +11125,7 @@ var st = "storybook_internal", $b = x.nav(({ theme: e }) => ({
|
|
|
11125
11125
|
},
|
|
11126
11126
|
variant: "outline"
|
|
11127
11127
|
},
|
|
11128
|
-
/* @__PURE__ */ s.createElement(
|
|
11128
|
+
/* @__PURE__ */ s.createElement($s, null)
|
|
11129
11129
|
)
|
|
11130
11130
|
), /* @__PURE__ */ s.createElement(
|
|
11131
11131
|
Vu,
|
|
@@ -11197,13 +11197,13 @@ var Zb = {
|
|
|
11197
11197
|
}
|
|
11198
11198
|
`
|
|
11199
11199
|
), Be = /* @__PURE__ */ a(({ keys: e }) => /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(Jb, null, e.map(
|
|
11200
|
-
(t, o) => /* @__PURE__ */ s.createElement(e0, { key: t },
|
|
11200
|
+
(t, o) => /* @__PURE__ */ s.createElement(e0, { key: t }, qe([t]))))), "Shortcut"), bd = /* @__PURE__ */ a((e, t, o, i, n, r, l) => {
|
|
11201
11201
|
let u = t.getShortcutKeys(), c = K(
|
|
11202
11202
|
() => ({
|
|
11203
11203
|
id: "about",
|
|
11204
11204
|
title: "About your Storybook",
|
|
11205
11205
|
onClick: /* @__PURE__ */ a(() => t.changeSettingsTab("about"), "onClick"),
|
|
11206
|
-
icon: /* @__PURE__ */ s.createElement(
|
|
11206
|
+
icon: /* @__PURE__ */ s.createElement(Bs, null)
|
|
11207
11207
|
}),
|
|
11208
11208
|
[t]
|
|
11209
11209
|
), p = K(() => ({
|
|
@@ -11217,7 +11217,7 @@ var Zb = {
|
|
|
11217
11217
|
title: "What's new?",
|
|
11218
11218
|
onClick: /* @__PURE__ */ a(() => t.changeSettingsTab("whats-new"), "onClick"),
|
|
11219
11219
|
right: d && g && /* @__PURE__ */ s.createElement(Go, { status: "positive" }, "Check it out"),
|
|
11220
|
-
icon: /* @__PURE__ */ s.createElement(
|
|
11220
|
+
icon: /* @__PURE__ */ s.createElement(Js, null)
|
|
11221
11221
|
}),
|
|
11222
11222
|
[t, d, g]
|
|
11223
11223
|
), y = K(
|
|
@@ -11429,7 +11429,7 @@ var t0 = s.memo(/* @__PURE__ */ a(function({ onMenuClick: t }) {
|
|
|
11429
11429
|
// src/manager/App.tsx
|
|
11430
11430
|
var xd = /* @__PURE__ */ a(({ managerLayoutState: e, setManagerLayoutState: t, pages: o, hasTab: i }) => {
|
|
11431
11431
|
let { setMobileAboutOpen: n } = ge();
|
|
11432
|
-
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(
|
|
11432
|
+
return /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement(Ut, { styles: la }), /* @__PURE__ */ s.createElement(
|
|
11433
11433
|
vl,
|
|
11434
11434
|
{
|
|
11435
11435
|
hasTab: i,
|
|
@@ -11499,8 +11499,8 @@ var o0 = x.div({
|
|
|
11499
11499
|
})), Id = /* @__PURE__ */ a(({ onNavigateToWhatsNew: e }) => /* @__PURE__ */ s.createElement(o0, null, /* @__PURE__ */ s.createElement(r0, null,
|
|
11500
11500
|
/* @__PURE__ */ s.createElement(Xo, { alt: "Storybook" })), /* @__PURE__ */ s.createElement(sr, { onNavigateToWhatsNew: e }), /* @__PURE__ */ s.
|
|
11501
11501
|
createElement(n0, null, /* @__PURE__ */ s.createElement(i0, null, /* @__PURE__ */ s.createElement(me, { asChild: !0 }, /* @__PURE__ */ s.createElement(
|
|
11502
|
-
"a", { href: "https://github.com/storybookjs/storybook" }, /* @__PURE__ */ s.createElement(
|
|
11503
|
-
me, { asChild: !0 }, /* @__PURE__ */ s.createElement("a", { href: "https://storybook.js.org/docs" }, /* @__PURE__ */ s.createElement(
|
|
11502
|
+
"a", { href: "https://github.com/storybookjs/storybook" }, /* @__PURE__ */ s.createElement(Mo, null), "GitHub")), /* @__PURE__ */ s.createElement(
|
|
11503
|
+
me, { asChild: !0 }, /* @__PURE__ */ s.createElement("a", { href: "https://storybook.js.org/docs" }, /* @__PURE__ */ s.createElement($t, { style: {
|
|
11504
11504
|
display: "inline", marginRight: 5 } }), "Documentation"))), /* @__PURE__ */ s.createElement("div", null, "Open source software maintained by",
|
|
11505
11505
|
" ", /* @__PURE__ */ s.createElement(Sd, { href: "https://www.chromatic.com/" }, "Chromatic"), " and the", " ", /* @__PURE__ */ s.createElement(
|
|
11506
11506
|
Sd, { href: "https://github.com/storybookjs/storybook/graphs/contributors" }, "Storybook Community")))), "AboutScreen");
|
|
@@ -11653,11 +11653,11 @@ var is = class is extends Fe {
|
|
|
11653
11653
|
let { activeFeature: i, shortcutKeys: n } = this.state;
|
|
11654
11654
|
if (o.key === "Backspace")
|
|
11655
11655
|
return this.restoreDefault();
|
|
11656
|
-
let r =
|
|
11656
|
+
let r = na(o);
|
|
11657
11657
|
if (!r)
|
|
11658
11658
|
return !1;
|
|
11659
11659
|
let l = !!Object.entries(n).find(
|
|
11660
|
-
([u, { shortcut: c }]) => u !== i && c &&
|
|
11660
|
+
([u, { shortcut: c }]) => u !== i && c && ia(r, c)
|
|
11661
11661
|
);
|
|
11662
11662
|
return this.setState({
|
|
11663
11663
|
shortcutKeys: { ...n, [i]: { shortcut: r, error: l } }
|
|
@@ -11718,7 +11718,7 @@ var is = class is extends Fe {
|
|
|
11718
11718
|
onBlur: this.onBlur,
|
|
11719
11719
|
onFocus: this.onFocus(r),
|
|
11720
11720
|
onKeyDown: this.onKeyDown,
|
|
11721
|
-
value: l ?
|
|
11721
|
+
value: l ? qe(l) : "",
|
|
11722
11722
|
placeholder: "Type keys",
|
|
11723
11723
|
readOnly: !0
|
|
11724
11724
|
}
|
|
@@ -11814,10 +11814,10 @@ var Cd = x.div({
|
|
|
11814
11814
|
o(), r("Copied!"), setTimeout(() => r("Copy Link"), 4e3);
|
|
11815
11815
|
}, "copyLink");
|
|
11816
11816
|
return /* @__PURE__ */ s.createElement(x0, null, /* @__PURE__ */ s.createElement("div", { style: { display: "flex", alignItems: "center", gap: 10 } },
|
|
11817
|
-
/* @__PURE__ */ s.createElement(
|
|
11817
|
+
/* @__PURE__ */ s.createElement(Hs, { color: i.color.mediumdark }), /* @__PURE__ */ s.createElement("div", null, "Share this with your tea\
|
|
11818
11818
|
m."), /* @__PURE__ */ s.createElement(me, { onClick: l, size: "small", variant: "ghost" }, n)), e ? /* @__PURE__ */ s.createElement(me, { size: "\
|
|
11819
|
-
small", variant: "ghost", onClick: t }, /* @__PURE__ */ s.createElement(
|
|
11820
|
-
{ size: "small", variant: "ghost", onClick: t }, /* @__PURE__ */ s.createElement(
|
|
11819
|
+
small", variant: "ghost", onClick: t }, /* @__PURE__ */ s.createElement(Ls, null), "Hide notifications") : /* @__PURE__ */ s.createElement(me,
|
|
11820
|
+
{ size: "small", variant: "ghost", onClick: t }, /* @__PURE__ */ s.createElement(Ns, null), "Show notifications"));
|
|
11821
11821
|
}, "WhatsNewFooter"), I0 = x.iframe(
|
|
11822
11822
|
{
|
|
11823
11823
|
position: "absolute",
|
|
@@ -11833,7 +11833,7 @@ small", variant: "ghost", onClick: t }, /* @__PURE__ */ s.createElement(js, null
|
|
|
11833
11833
|
background: "white"
|
|
11834
11834
|
},
|
|
11835
11835
|
({ isLoaded: e }) => ({ visibility: e ? "visible" : "hidden" })
|
|
11836
|
-
), E0 = x((e) => /* @__PURE__ */ s.createElement(
|
|
11836
|
+
), E0 = x((e) => /* @__PURE__ */ s.createElement(Po, { ...e }))(({ theme: e }) => ({
|
|
11837
11837
|
color: e.textMutedColor,
|
|
11838
11838
|
width: 32,
|
|
11839
11839
|
height: 32,
|
|
@@ -11935,7 +11935,7 @@ uts", changeTab: e })), /* @__PURE__ */ s.createElement(
|
|
|
11935
11935
|
onClick: (n) => (n.preventDefault(), t()),
|
|
11936
11936
|
title: "Close settings page"
|
|
11937
11937
|
},
|
|
11938
|
-
/* @__PURE__ */ s.createElement(
|
|
11938
|
+
/* @__PURE__ */ s.createElement(Ge, null)
|
|
11939
11939
|
)), /* @__PURE__ */ s.createElement(O0, { vertical: !0, horizontal: !1 }, /* @__PURE__ */ s.createElement(so, { path: "about" }, /* @__PURE__ */ s.
|
|
11940
11940
|
createElement(Ed, { key: "about" })), /* @__PURE__ */ s.createElement(so, { path: "whats-new" }, /* @__PURE__ */ s.createElement(Pd, { key: "\
|
|
11941
11941
|
whats-new" })), /* @__PURE__ */ s.createElement(so, { path: "shortcuts" }, /* @__PURE__ */ s.createElement(Td, { key: "shortcuts" }))))), "P\
|
|
@@ -11960,13 +11960,13 @@ ages"), A0 = /* @__PURE__ */ a(() => {
|
|
|
11960
11960
|
};
|
|
11961
11961
|
|
|
11962
11962
|
// src/manager/index.tsx
|
|
11963
|
-
|
|
11963
|
+
cn.displayName = "ThemeProvider";
|
|
11964
11964
|
ht.displayName = "HelmetProvider";
|
|
11965
11965
|
var D0 = /* @__PURE__ */ a(({ provider: e }) => /* @__PURE__ */ s.createElement(ht, { key: "helmet.Provider" }, /* @__PURE__ */ s.createElement(
|
|
11966
11966
|
fa, { key: "location.provider" }, /* @__PURE__ */ s.createElement(M0, { provider: e }))), "Root"), M0 = /* @__PURE__ */ a(({ provider: e }) => {
|
|
11967
11967
|
let t = ha();
|
|
11968
11968
|
return /* @__PURE__ */ s.createElement(Wo, { key: "location.consumer" }, (o) => /* @__PURE__ */ s.createElement(
|
|
11969
|
-
|
|
11969
|
+
ra,
|
|
11970
11970
|
{
|
|
11971
11971
|
key: "manager",
|
|
11972
11972
|
provider: e,
|
|
@@ -11984,7 +11984,7 @@ fa, { key: "location.provider" }, /* @__PURE__ */ s.createElement(M0, { provider
|
|
|
11984
11984
|
() => [Dd, ...Object.values(r.getElements(ve.experimental_PAGE))],
|
|
11985
11985
|
[Object.keys(r.getElements(ve.experimental_PAGE)).join()]
|
|
11986
11986
|
);
|
|
11987
|
-
return /* @__PURE__ */ s.createElement(
|
|
11987
|
+
return /* @__PURE__ */ s.createElement(cn, { key: "theme.provider", theme: ua(n.theme) }, /* @__PURE__ */ s.createElement(Wa, null, /* @__PURE__ */ s.
|
|
11988
11988
|
createElement(
|
|
11989
11989
|
xd,
|
|
11990
11990
|
{
|
|
@@ -12014,7 +12014,7 @@ var L0 = "CORE/WS_DISCONNECTED", ls = class ls extends Wt {
|
|
|
12014
12014
|
super();
|
|
12015
12015
|
this.wsDisconnected = !1;
|
|
12016
12016
|
let o = fs({ page: "manager" });
|
|
12017
|
-
|
|
12017
|
+
Ye.setChannel(o), o.emit(gs), this.addons = Ye, this.channel = o, se.__STORYBOOK_ADDONS_CHANNEL__ = o;
|
|
12018
12018
|
}
|
|
12019
12019
|
getElements(o) {
|
|
12020
12020
|
return this.addons.getElements(o);
|
|
@@ -12030,7 +12030,7 @@ var L0 = "CORE/WS_DISCONNECTED", ls = class ls extends Wt {
|
|
|
12030
12030
|
headline: i.code === 3008 ? "Server timed out" : "Connection lost",
|
|
12031
12031
|
subHeadline: "Please restart your Storybook server and reload the page"
|
|
12032
12032
|
},
|
|
12033
|
-
icon: /* @__PURE__ */ s.createElement(
|
|
12033
|
+
icon: /* @__PURE__ */ s.createElement(Fs, { color: aa.negative }),
|
|
12034
12034
|
link: void 0
|
|
12035
12035
|
});
|
|
12036
12036
|
});
|