storybook 10.0.0-beta.5 → 10.0.0-beta.6
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/assets/server/openBrowser.applescript +94 -0
- package/dist/_browser-chunks/{WithTooltip-ERFLZL6W.js → WithTooltip-SK46ZJ2J.js} +1 -1
- package/dist/_browser-chunks/{chunk-EOILZP2R.js → chunk-BOOOPFZF.js} +7 -2
- package/dist/_node-chunks/{builder-manager-ZTS4EIKQ.js → builder-manager-V33CQT2M.js} +21 -151
- package/dist/_node-chunks/camelcase-BZ55OCHI.js +18 -0
- package/dist/_node-chunks/{chunk-WCSHG2QT.js → chunk-2DMFI367.js} +7 -7
- package/dist/_node-chunks/{chunk-VQN4WAIA.js → chunk-4TOI4VSK.js} +7 -7
- package/dist/_node-chunks/{chunk-TBWOUVTA.js → chunk-55VWKF63.js} +709 -935
- package/dist/_node-chunks/{chunk-P3TWEOO5.js → chunk-5IEY46LQ.js} +7 -7
- package/dist/_node-chunks/{chunk-EIHJ5J3O.js → chunk-6PTV7XGR.js} +8 -8
- package/dist/_node-chunks/{chunk-D7SDB4XE.js → chunk-7NJGTQ3W.js} +8 -8
- package/dist/_node-chunks/{chunk-4VDRH7SM.js → chunk-7WH7AGOR.js} +7 -7
- package/dist/_node-chunks/{chunk-AK5PHLUA.js → chunk-A7CUP23N.js} +7 -7
- package/dist/_node-chunks/{chunk-K4YETNYJ.js → chunk-B3AMFGAL.js} +7 -7
- package/dist/_node-chunks/{chunk-PIKDGR3O.js → chunk-BNOZ3EKF.js} +7 -7
- package/dist/_node-chunks/{chunk-F7YW5W6B.js → chunk-DC7OWBHB.js} +12 -12
- package/dist/_node-chunks/{chunk-VX5P3IYA.js → chunk-E6TLN2J2.js} +7 -7
- package/dist/_node-chunks/{chunk-TVKUJ3SE.js → chunk-EAOPWIKA.js} +8 -8
- package/dist/_node-chunks/{chunk-TKN5TEZV.js → chunk-EY5PTUZL.js} +13 -13
- package/dist/_node-chunks/{chunk-DZJNLBBL.js → chunk-F3PO67U3.js} +7 -7
- package/dist/_node-chunks/chunk-FDDJHDCE.js +62 -0
- package/dist/_node-chunks/{chunk-KZB7ELL6.js → chunk-HEBHWRWL.js} +7 -7
- package/dist/_node-chunks/{chunk-VWSUFVUF.js → chunk-HPFXREVG.js} +7 -7
- package/dist/_node-chunks/{chunk-OC3TVLYU.js → chunk-IINJT47N.js} +7 -7
- package/dist/_node-chunks/{chunk-J3DQMIO4.js → chunk-JNHUDBJL.js} +7 -7
- package/dist/_node-chunks/{chunk-SW3VZAH7.js → chunk-JOXYGIZK.js} +9 -9
- package/dist/_node-chunks/{chunk-P7YMEOXF.js → chunk-MLBTKECD.js} +7 -7
- package/dist/_node-chunks/{chunk-UTCFHTQH.js → chunk-NJXBURX7.js} +7 -7
- package/dist/_node-chunks/{chunk-H52PBBSK.js → chunk-NKZ4UPPV.js} +7 -7
- package/dist/_node-chunks/{chunk-F3WE3456.js → chunk-NUVGSFQI.js} +7 -7
- package/dist/_node-chunks/chunk-R5DIBOM6.js +18 -0
- package/dist/_node-chunks/{chunk-ACUNHBEO.js → chunk-RIPA4LFD.js} +22 -22
- package/dist/_node-chunks/{chunk-KU3JBNPY.js → chunk-TJIMCNYJ.js} +8 -8
- package/dist/_node-chunks/{chunk-4KRR46V2.js → chunk-UYKQJMQY.js} +15 -15
- package/dist/_node-chunks/{chunk-3VVGIILJ.js → chunk-VQH4ZFTS.js} +8 -8
- package/dist/_node-chunks/{chunk-QHIU5I7C.js → chunk-VSC6LSCQ.js} +6 -6
- package/dist/_node-chunks/{chunk-2VMDKLSW.js → chunk-XZTBG2TG.js} +6 -6
- package/dist/_node-chunks/{dist-OGRBL76N.js → dist-CGGAYWME.js} +9 -9
- package/dist/_node-chunks/{globby-65LOULA6.js → globby-3IFB7BJC.js} +17 -13
- package/dist/_node-chunks/{lib-TF7JCT3A.js → lib-IT6OBSID.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-6ZJEUZMZ.js → mdx-N42X6CFJ-WM36SSZ6.js} +8 -8
- package/dist/_node-chunks/{p-limit-PF7JSPDT.js → p-limit-3V5XIKA7.js} +7 -7
- package/dist/_node-chunks/{plugin-LGHGAC6J.js → plugin-3YREMMJJ.js} +10 -10
- package/dist/_node-chunks/{plugin-A6XAWMXN.js → plugin-GJUBUKCT.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-HDSEOU3Z.js → webpack-inject-mocker-runtime-plugin-DCJQFJQ5.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-ZJJVMJUS.js → webpack-mock-plugin-XJNFAHBI.js} +9 -9
- package/dist/babel/index.js +11 -11
- package/dist/bin/core.js +11 -11
- package/dist/bin/dispatcher.js +11 -11
- package/dist/bin/loader.js +8 -8
- package/dist/cli/index.js +27 -22
- package/dist/common/index.js +21 -21
- package/dist/components/index.js +3 -3
- package/dist/core-events/index.d.ts +18 -2
- package/dist/core-events/index.js +7 -1
- package/dist/core-server/index.js +1104 -999
- package/dist/core-server/presets/common-manager.js +67 -27
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +691 -29
- package/dist/core-server/presets/webpack/loaders/storybook-mock-transform-loader.js +9 -9
- package/dist/core-server/presets/webpack/loaders/webpack-automock-loader.js +10 -10
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +1250 -972
- package/dist/manager/globals.d.ts +0 -4
- package/dist/manager/globals.js +1 -6
- package/dist/manager/runtime.js +1724 -464
- package/dist/manager-api/index.d.ts +2 -0
- package/dist/manager-api/index.js +284 -48
- package/dist/node-logger/index.js +14 -14
- package/dist/preview/runtime.js +7 -1
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.d.ts +1 -1
- package/dist/telemetry/index.js +24 -24
- package/dist/types/index.d.ts +4 -0
- package/package.json +5 -4
- package/dist/_node-chunks/camelcase-K3BM7RII.js +0 -18
- package/dist/_node-chunks/chunk-7LG5CLCT.js +0 -18
- package/dist/_node-chunks/chunk-DWJ7TV2O.js +0 -62
- package/dist/_node-chunks/default-browser-id-4RZZMHJE.js +0 -1719
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
(*
|
|
2
|
+
Copyright (c) 2015-present, Facebook, Inc.
|
|
3
|
+
This source code is licensed under the MIT license found in the
|
|
4
|
+
LICENSE file in the root directory of this source tree.
|
|
5
|
+
*)
|
|
6
|
+
|
|
7
|
+
property targetTab: null
|
|
8
|
+
property targetTabIndex: -1
|
|
9
|
+
property targetWindow: null
|
|
10
|
+
property theProgram: "Google Chrome"
|
|
11
|
+
|
|
12
|
+
on run argv
|
|
13
|
+
set theURL to item 1 of argv
|
|
14
|
+
set matchURL to item 2 of argv
|
|
15
|
+
|
|
16
|
+
-- Allow requested program to be optional,
|
|
17
|
+
-- default to Google Chrome
|
|
18
|
+
if (count of argv) > 2 then
|
|
19
|
+
set theProgram to item 3 of argv
|
|
20
|
+
end if
|
|
21
|
+
|
|
22
|
+
using terms from application "Google Chrome"
|
|
23
|
+
tell application theProgram
|
|
24
|
+
|
|
25
|
+
if (count every window) = 0 then
|
|
26
|
+
make new window
|
|
27
|
+
end if
|
|
28
|
+
|
|
29
|
+
-- 1: Looking for tab running debugger
|
|
30
|
+
-- then, Reload debugging tab if found
|
|
31
|
+
-- then return
|
|
32
|
+
set found to my lookupTabWithUrl(matchURL)
|
|
33
|
+
if found then
|
|
34
|
+
set targetWindow's active tab index to targetTabIndex
|
|
35
|
+
tell targetTab to reload
|
|
36
|
+
tell targetWindow to activate
|
|
37
|
+
set index of targetWindow to 1
|
|
38
|
+
return
|
|
39
|
+
end if
|
|
40
|
+
|
|
41
|
+
-- 2: Looking for Empty tab
|
|
42
|
+
-- In case debugging tab was not found
|
|
43
|
+
-- We try to find an empty tab instead
|
|
44
|
+
set found to my lookupTabWithUrl("chrome://newtab/")
|
|
45
|
+
if found then
|
|
46
|
+
set targetWindow's active tab index to targetTabIndex
|
|
47
|
+
set URL of targetTab to theURL
|
|
48
|
+
tell targetWindow to activate
|
|
49
|
+
return
|
|
50
|
+
end if
|
|
51
|
+
|
|
52
|
+
-- 3: Create new tab
|
|
53
|
+
-- both debugging and empty tab were not found
|
|
54
|
+
-- make a new tab with url
|
|
55
|
+
tell window 1
|
|
56
|
+
activate
|
|
57
|
+
make new tab with properties {URL:theURL}
|
|
58
|
+
end tell
|
|
59
|
+
end tell
|
|
60
|
+
end using terms from
|
|
61
|
+
end run
|
|
62
|
+
|
|
63
|
+
-- Function:
|
|
64
|
+
-- Lookup tab with given url
|
|
65
|
+
-- if found, store tab, index, and window in properties
|
|
66
|
+
-- (properties were declared on top of file)
|
|
67
|
+
on lookupTabWithUrl(lookupUrl)
|
|
68
|
+
using terms from application "Google Chrome"
|
|
69
|
+
tell application theProgram
|
|
70
|
+
-- Find a tab with the given url
|
|
71
|
+
set found to false
|
|
72
|
+
set theTabIndex to -1
|
|
73
|
+
repeat with theWindow in every window
|
|
74
|
+
set theTabIndex to 0
|
|
75
|
+
repeat with theTab in every tab of theWindow
|
|
76
|
+
set theTabIndex to theTabIndex + 1
|
|
77
|
+
if (theTab's URL as string) contains lookupUrl then
|
|
78
|
+
-- assign tab, tab index, and window to properties
|
|
79
|
+
set targetTab to theTab
|
|
80
|
+
set targetTabIndex to theTabIndex
|
|
81
|
+
set targetWindow to theWindow
|
|
82
|
+
set found to true
|
|
83
|
+
exit repeat
|
|
84
|
+
end if
|
|
85
|
+
end repeat
|
|
86
|
+
|
|
87
|
+
if found then
|
|
88
|
+
exit repeat
|
|
89
|
+
end if
|
|
90
|
+
end repeat
|
|
91
|
+
end tell
|
|
92
|
+
end using terms from
|
|
93
|
+
return found
|
|
94
|
+
end lookupTabWithUrl
|
|
@@ -2290,7 +2290,12 @@ var WithToolTipState = /* @__PURE__ */ __name(({
|
|
|
2290
2290
|
);
|
|
2291
2291
|
useEffect6(() => {
|
|
2292
2292
|
const hide2 = /* @__PURE__ */ __name(() => onVisibilityChange(false), "hide");
|
|
2293
|
-
|
|
2293
|
+
const handleKeyDown = /* @__PURE__ */ __name((e) => {
|
|
2294
|
+
if (e.key === "Escape") {
|
|
2295
|
+
hide2();
|
|
2296
|
+
}
|
|
2297
|
+
}, "handleKeyDown");
|
|
2298
|
+
document2.addEventListener("keydown", handleKeyDown, false);
|
|
2294
2299
|
const iframes = Array.from(document2.getElementsByTagName("iframe"));
|
|
2295
2300
|
const unbinders = [];
|
|
2296
2301
|
iframes.forEach((iframe) => {
|
|
@@ -2315,7 +2320,7 @@ var WithToolTipState = /* @__PURE__ */ __name(({
|
|
|
2315
2320
|
});
|
|
2316
2321
|
});
|
|
2317
2322
|
return () => {
|
|
2318
|
-
document2.removeEventListener("keydown",
|
|
2323
|
+
document2.removeEventListener("keydown", handleKeyDown);
|
|
2319
2324
|
unbinders.forEach((unbind) => {
|
|
2320
2325
|
unbind();
|
|
2321
2326
|
});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0v1evul49qdo from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0v1evul49qdo from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0v1evul49qdo.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,23 +13,23 @@ import {
|
|
|
13
13
|
BROWSER_TARGETS,
|
|
14
14
|
NODE_TARGET,
|
|
15
15
|
SUPPORTED_FEATURES
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VSC6LSCQ.js";
|
|
17
17
|
import {
|
|
18
18
|
require_build
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-4TOI4VSK.js";
|
|
20
20
|
import {
|
|
21
21
|
resolveModulePath
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2DMFI367.js";
|
|
23
23
|
import {
|
|
24
24
|
resolvePackageDir
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-TJIMCNYJ.js";
|
|
26
26
|
import {
|
|
27
27
|
join,
|
|
28
28
|
parse
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-7WH7AGOR.js";
|
|
30
30
|
import {
|
|
31
31
|
slash
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-JNHUDBJL.js";
|
|
33
33
|
import {
|
|
34
34
|
__commonJS,
|
|
35
35
|
__esm,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
__require,
|
|
39
39
|
__toCommonJS,
|
|
40
40
|
__toESM
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-XZTBG2TG.js";
|
|
42
42
|
|
|
43
43
|
// ../node_modules/tslib/tslib.es6.mjs
|
|
44
44
|
var tslib_es6_exports = {};
|
|
@@ -1721,6 +1721,7 @@ var exports_default = {
|
|
|
1721
1721
|
"DownloadIcon",
|
|
1722
1722
|
"DragIcon",
|
|
1723
1723
|
"EditIcon",
|
|
1724
|
+
"EditorIcon",
|
|
1724
1725
|
"EllipsisIcon",
|
|
1725
1726
|
"EmailIcon",
|
|
1726
1727
|
"ExpandAltIcon",
|
|
@@ -2113,65 +2114,6 @@ var exports_default = {
|
|
|
2113
2114
|
"resetComponents",
|
|
2114
2115
|
"withReset"
|
|
2115
2116
|
],
|
|
2116
|
-
"storybook/internal/core-errors": [
|
|
2117
|
-
"ARGTYPES_INFO_REQUEST",
|
|
2118
|
-
"ARGTYPES_INFO_RESPONSE",
|
|
2119
|
-
"CHANNEL_CREATED",
|
|
2120
|
-
"CHANNEL_WS_DISCONNECT",
|
|
2121
|
-
"CONFIG_ERROR",
|
|
2122
|
-
"CREATE_NEW_STORYFILE_REQUEST",
|
|
2123
|
-
"CREATE_NEW_STORYFILE_RESPONSE",
|
|
2124
|
-
"CURRENT_STORY_WAS_SET",
|
|
2125
|
-
"DOCS_PREPARED",
|
|
2126
|
-
"DOCS_RENDERED",
|
|
2127
|
-
"FILE_COMPONENT_SEARCH_REQUEST",
|
|
2128
|
-
"FILE_COMPONENT_SEARCH_RESPONSE",
|
|
2129
|
-
"FORCE_REMOUNT",
|
|
2130
|
-
"FORCE_RE_RENDER",
|
|
2131
|
-
"GLOBALS_UPDATED",
|
|
2132
|
-
"NAVIGATE_URL",
|
|
2133
|
-
"PLAY_FUNCTION_THREW_EXCEPTION",
|
|
2134
|
-
"PRELOAD_ENTRIES",
|
|
2135
|
-
"PREVIEW_BUILDER_PROGRESS",
|
|
2136
|
-
"PREVIEW_KEYDOWN",
|
|
2137
|
-
"REGISTER_SUBSCRIPTION",
|
|
2138
|
-
"REQUEST_WHATS_NEW_DATA",
|
|
2139
|
-
"RESET_STORY_ARGS",
|
|
2140
|
-
"RESULT_WHATS_NEW_DATA",
|
|
2141
|
-
"SAVE_STORY_REQUEST",
|
|
2142
|
-
"SAVE_STORY_RESPONSE",
|
|
2143
|
-
"SELECT_STORY",
|
|
2144
|
-
"SET_CONFIG",
|
|
2145
|
-
"SET_CURRENT_STORY",
|
|
2146
|
-
"SET_FILTER",
|
|
2147
|
-
"SET_GLOBALS",
|
|
2148
|
-
"SET_INDEX",
|
|
2149
|
-
"SET_STORIES",
|
|
2150
|
-
"SET_WHATS_NEW_CACHE",
|
|
2151
|
-
"SHARED_STATE_CHANGED",
|
|
2152
|
-
"SHARED_STATE_SET",
|
|
2153
|
-
"STORIES_COLLAPSE_ALL",
|
|
2154
|
-
"STORIES_EXPAND_ALL",
|
|
2155
|
-
"STORY_ARGS_UPDATED",
|
|
2156
|
-
"STORY_CHANGED",
|
|
2157
|
-
"STORY_ERRORED",
|
|
2158
|
-
"STORY_FINISHED",
|
|
2159
|
-
"STORY_HOT_UPDATED",
|
|
2160
|
-
"STORY_INDEX_INVALIDATED",
|
|
2161
|
-
"STORY_MISSING",
|
|
2162
|
-
"STORY_PREPARED",
|
|
2163
|
-
"STORY_RENDERED",
|
|
2164
|
-
"STORY_RENDER_PHASE_CHANGED",
|
|
2165
|
-
"STORY_SPECIFIED",
|
|
2166
|
-
"STORY_THREW_EXCEPTION",
|
|
2167
|
-
"STORY_UNCHANGED",
|
|
2168
|
-
"TELEMETRY_ERROR",
|
|
2169
|
-
"TOGGLE_WHATS_NEW_NOTIFICATIONS",
|
|
2170
|
-
"UNHANDLED_ERRORS_WHILE_PLAYING",
|
|
2171
|
-
"UPDATE_GLOBALS",
|
|
2172
|
-
"UPDATE_QUERY_PARAMS",
|
|
2173
|
-
"UPDATE_STORY_ARGS"
|
|
2174
|
-
],
|
|
2175
2117
|
"storybook/internal/core-events": [
|
|
2176
2118
|
"ARGTYPES_INFO_REQUEST",
|
|
2177
2119
|
"ARGTYPES_INFO_RESPONSE",
|
|
@@ -2189,6 +2131,8 @@ var exports_default = {
|
|
|
2189
2131
|
"FORCE_RE_RENDER",
|
|
2190
2132
|
"GLOBALS_UPDATED",
|
|
2191
2133
|
"NAVIGATE_URL",
|
|
2134
|
+
"OPEN_IN_EDITOR_REQUEST",
|
|
2135
|
+
"OPEN_IN_EDITOR_RESPONSE",
|
|
2192
2136
|
"PLAY_FUNCTION_THREW_EXCEPTION",
|
|
2193
2137
|
"PRELOAD_ENTRIES",
|
|
2194
2138
|
"PREVIEW_BUILDER_PROGRESS",
|
|
@@ -2253,79 +2197,7 @@ var exports_default = {
|
|
|
2253
2197
|
"stringifyQuery",
|
|
2254
2198
|
"useNavigate"
|
|
2255
2199
|
],
|
|
2256
|
-
"storybook/internal/types": ["Addon_TypesEnum"]
|
|
2257
|
-
"storybook/internal/manager-api": [
|
|
2258
|
-
"ActiveTabs",
|
|
2259
|
-
"Consumer",
|
|
2260
|
-
"ManagerContext",
|
|
2261
|
-
"Provider",
|
|
2262
|
-
"RequestResponseError",
|
|
2263
|
-
"addons",
|
|
2264
|
-
"combineParameters",
|
|
2265
|
-
"controlOrMetaKey",
|
|
2266
|
-
"controlOrMetaSymbol",
|
|
2267
|
-
"eventMatchesShortcut",
|
|
2268
|
-
"eventToShortcut",
|
|
2269
|
-
"experimental_MockUniversalStore",
|
|
2270
|
-
"experimental_UniversalStore",
|
|
2271
|
-
"experimental_getStatusStore",
|
|
2272
|
-
"experimental_getTestProviderStore",
|
|
2273
|
-
"experimental_requestResponse",
|
|
2274
|
-
"experimental_useStatusStore",
|
|
2275
|
-
"experimental_useTestProviderStore",
|
|
2276
|
-
"experimental_useUniversalStore",
|
|
2277
|
-
"internal_fullStatusStore",
|
|
2278
|
-
"internal_fullTestProviderStore",
|
|
2279
|
-
"internal_universalStatusStore",
|
|
2280
|
-
"internal_universalTestProviderStore",
|
|
2281
|
-
"isMacLike",
|
|
2282
|
-
"isShortcutTaken",
|
|
2283
|
-
"keyToSymbol",
|
|
2284
|
-
"merge",
|
|
2285
|
-
"mockChannel",
|
|
2286
|
-
"optionOrAltSymbol",
|
|
2287
|
-
"shortcutMatchesShortcut",
|
|
2288
|
-
"shortcutToHumanString",
|
|
2289
|
-
"types",
|
|
2290
|
-
"useAddonState",
|
|
2291
|
-
"useArgTypes",
|
|
2292
|
-
"useArgs",
|
|
2293
|
-
"useChannel",
|
|
2294
|
-
"useGlobalTypes",
|
|
2295
|
-
"useGlobals",
|
|
2296
|
-
"useParameter",
|
|
2297
|
-
"useSharedState",
|
|
2298
|
-
"useStoryPrepared",
|
|
2299
|
-
"useStorybookApi",
|
|
2300
|
-
"useStorybookState"
|
|
2301
|
-
],
|
|
2302
|
-
"storybook/internal/theming": [
|
|
2303
|
-
"CacheProvider",
|
|
2304
|
-
"ClassNames",
|
|
2305
|
-
"Global",
|
|
2306
|
-
"ThemeProvider",
|
|
2307
|
-
"background",
|
|
2308
|
-
"color",
|
|
2309
|
-
"convert",
|
|
2310
|
-
"create",
|
|
2311
|
-
"createCache",
|
|
2312
|
-
"createGlobal",
|
|
2313
|
-
"createReset",
|
|
2314
|
-
"css",
|
|
2315
|
-
"darken",
|
|
2316
|
-
"ensure",
|
|
2317
|
-
"ignoreSsrWarning",
|
|
2318
|
-
"isPropValid",
|
|
2319
|
-
"jsx",
|
|
2320
|
-
"keyframes",
|
|
2321
|
-
"lighten",
|
|
2322
|
-
"styled",
|
|
2323
|
-
"themes",
|
|
2324
|
-
"typography",
|
|
2325
|
-
"useTheme",
|
|
2326
|
-
"withTheme"
|
|
2327
|
-
],
|
|
2328
|
-
"storybook/internal/theming/create": ["create", "themes"]
|
|
2200
|
+
"storybook/internal/types": ["Addon_TypesEnum"]
|
|
2329
2201
|
};
|
|
2330
2202
|
|
|
2331
2203
|
// src/manager/globals/globals.ts
|
|
@@ -2341,15 +2213,10 @@ var globalsNameReferenceMap = {
|
|
|
2341
2213
|
"storybook/internal/channels": "__STORYBOOK_CHANNELS__",
|
|
2342
2214
|
"storybook/internal/client-logger": "__STORYBOOK_CLIENT_LOGGER__",
|
|
2343
2215
|
"storybook/internal/components": "__STORYBOOK_COMPONENTS__",
|
|
2344
|
-
"storybook/internal/core-errors": "__STORYBOOK_CORE_EVENTS__",
|
|
2345
2216
|
"storybook/internal/core-events": "__STORYBOOK_CORE_EVENTS__",
|
|
2346
2217
|
"storybook/internal/manager-errors": "__STORYBOOK_CORE_EVENTS_MANAGER_ERRORS__",
|
|
2347
2218
|
"storybook/internal/router": "__STORYBOOK_ROUTER__",
|
|
2348
|
-
"storybook/internal/types": "__STORYBOOK_TYPES__"
|
|
2349
|
-
// @deprecated TODO: delete in 9.1
|
|
2350
|
-
"storybook/internal/manager-api": "__STORYBOOK_API__",
|
|
2351
|
-
"storybook/internal/theming": "__STORYBOOK_THEMING__",
|
|
2352
|
-
"storybook/internal/theming/create": "__STORYBOOK_THEMING_CREATE__"
|
|
2219
|
+
"storybook/internal/types": "__STORYBOOK_TYPES__"
|
|
2353
2220
|
};
|
|
2354
2221
|
var globalPackages = Object.keys(globalsNameReferenceMap);
|
|
2355
2222
|
|
|
@@ -2501,6 +2368,9 @@ var buildFrameworkGlobalsFromOptions = /* @__PURE__ */ __name(async (options) =>
|
|
|
2501
2368
|
if (framework) {
|
|
2502
2369
|
globals.STORYBOOK_FRAMEWORK = framework;
|
|
2503
2370
|
}
|
|
2371
|
+
if (options.networkAddress) {
|
|
2372
|
+
globals.STORYBOOK_NETWORK_ADDRESS = options.networkAddress;
|
|
2373
|
+
}
|
|
2504
2374
|
return globals;
|
|
2505
2375
|
}, "buildFrameworkGlobalsFromOptions");
|
|
2506
2376
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0v1evul49qdo from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0v1evul49qdo from "node:module";
|
|
4
|
+
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0v1evul49qdo.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.createRequire(import.meta.url);
|
|
8
|
+
|
|
9
|
+
// ------------------------------------------------------------
|
|
10
|
+
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
|
+
// ------------------------------------------------------------
|
|
12
|
+
import {
|
|
13
|
+
camelCase
|
|
14
|
+
} from "./chunk-A7CUP23N.js";
|
|
15
|
+
import "./chunk-XZTBG2TG.js";
|
|
16
|
+
export {
|
|
17
|
+
camelCase as default
|
|
18
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0v1evul49qdo from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0v1evul49qdo from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0v1evul49qdo.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
11
11
|
// ------------------------------------------------------------
|
|
12
12
|
import {
|
|
13
13
|
__name
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-XZTBG2TG.js";
|
|
15
15
|
|
|
16
16
|
// ../node_modules/exsolve/dist/index.mjs
|
|
17
17
|
import fs, { realpathSync, statSync, lstatSync } from "node:fs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_0v1evul49qdo from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_0v1evul49qdo from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_0v1evul49qdo from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_0v1evul49qdo.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_0v1evul49qdo.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_0v1evul49qdo.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
__commonJS,
|
|
14
14
|
__name,
|
|
15
15
|
__require
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XZTBG2TG.js";
|
|
17
17
|
|
|
18
18
|
// ../node_modules/totalist/sync/index.js
|
|
19
19
|
var require_sync = __commonJS({
|