storybook 10.0.0-beta.8 → 10.0.0-rc.0
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/dist/_browser-chunks/{chunk-AM4PZYVQ.js → chunk-HMIIJ6UD.js} +59 -6
- package/dist/_browser-chunks/chunk-SHR3NNR3.js +5810 -0
- package/dist/_browser-chunks/{syntaxhighlighter-RJW7FE3A.js → syntaxhighlighter-R46XOLMC.js} +2 -3
- package/dist/_node-chunks/{builder-manager-Y34L3HC4.js → builder-manager-5DZV3NH5.js} +12 -12
- package/dist/_node-chunks/camelcase-KM3CILTP.js +18 -0
- package/dist/_node-chunks/{chunk-MIJKYKSO.js → chunk-2IRRHUY6.js} +8 -8
- package/dist/_node-chunks/{chunk-6NAUDAPE.js → chunk-3KLEDJFU.js} +8 -8
- package/dist/_node-chunks/{chunk-3VCGPS3V.js → chunk-4JI3GYTR.js} +7 -7
- package/dist/_node-chunks/{chunk-JEIQPNWQ.js → chunk-4T2EX3QY.js} +7 -7
- package/dist/_node-chunks/{chunk-7Q5EKYUL.js → chunk-6KTXQPVV.js} +7 -7
- package/dist/_node-chunks/{chunk-CL53RP5L.js → chunk-73JE2442.js} +8 -8
- package/dist/_node-chunks/{chunk-AND2M2X5.js → chunk-7GOR4BTB.js} +7 -7
- package/dist/_node-chunks/{chunk-FRTUAT3V.js → chunk-7L4E5FAU.js} +6 -6
- package/dist/_node-chunks/{chunk-SOIRRZYG.js → chunk-ATTQ5B3H.js} +7 -7
- package/dist/_node-chunks/{chunk-5SPDSTWP.js → chunk-B3BVSZUX.js} +7 -7
- package/dist/_node-chunks/{chunk-YMZK6547.js → chunk-BGGGKRRK.js} +7 -7
- package/dist/_node-chunks/{chunk-6SXRGPL6.js → chunk-CZLSJXUC.js} +7 -7
- package/dist/_node-chunks/{chunk-AZWKFSEJ.js → chunk-DXXS374Q.js} +29 -26
- package/dist/_node-chunks/{chunk-EMCS3ZKS.js → chunk-G3DNEVQF.js} +6 -6
- package/dist/_node-chunks/{chunk-DRNU7FEF.js → chunk-H3EQM2KY.js} +12 -12
- package/dist/_node-chunks/{chunk-4QSDBUYK.js → chunk-IDR56JX5.js} +8 -8
- package/dist/_node-chunks/{chunk-TL5UYDH2.js → chunk-KNGDROKF.js} +7 -7
- package/dist/_node-chunks/{chunk-JG7IEUS3.js → chunk-L7POFJNQ.js} +7 -7
- package/dist/_node-chunks/{chunk-CZLW5B2W.js → chunk-MDI6XQQU.js} +7 -7
- package/dist/_node-chunks/chunk-MG4NC3KA.js +61 -0
- package/dist/_node-chunks/chunk-MOBEL6SU.js +18 -0
- package/dist/_node-chunks/{chunk-T5VNV7FG.js → chunk-NEHX365L.js} +7 -7
- package/dist/_node-chunks/{chunk-O33XSHQE.js → chunk-OAWO55XX.js} +7 -7
- package/dist/_node-chunks/{chunk-7JZFWQN4.js → chunk-OYXXB4OM.js} +14 -10
- package/dist/_node-chunks/{chunk-IE2VBA4V.js → chunk-PVOTH5U7.js} +9 -9
- package/dist/_node-chunks/{chunk-HRBWZFVH.js → chunk-R4L65Z37.js} +7 -7
- package/dist/_node-chunks/{chunk-F43CI3CD.js → chunk-VAUJQGO5.js} +10 -10
- package/dist/_node-chunks/{chunk-LKGWQEHR.js → chunk-WEVLMQUC.js} +7 -7
- package/dist/_node-chunks/{chunk-UORO6DG4.js → chunk-WFKQH23S.js} +9 -9
- package/dist/_node-chunks/{chunk-4SIVISOF.js → chunk-XKXC26XV.js} +18 -15
- package/dist/_node-chunks/{chunk-WS3L7DA7.js → chunk-ZH4LFYU3.js} +7 -7
- package/dist/_node-chunks/{dist-RINWIIFC.js → dist-UT73SVAT.js} +9 -9
- package/dist/_node-chunks/{globby-G3CLKE4Y.js → globby-ZQ3RX3ZV.js} +9 -9
- package/dist/_node-chunks/{lib-67I574Z7.js → lib-HX5MMWWS.js} +7 -7
- package/dist/_node-chunks/{mdx-N42X6CFJ-6DP2YFMY.js → mdx-N42X6CFJ-MCLYGNM2.js} +8 -8
- package/dist/_node-chunks/{p-limit-JBOY5PGK.js → p-limit-WFKT3URN.js} +7 -7
- package/dist/_node-chunks/{plugin-5XCSTKS6.js → plugin-MYXI4RLY.js} +11 -11
- package/dist/_node-chunks/{plugin-2IR6AOYP.js → plugin-ZWOPAFXY.js} +10 -10
- package/dist/_node-chunks/{webpack-inject-mocker-runtime-plugin-5FUND5HJ.js → webpack-inject-mocker-runtime-plugin-QKV56QIS.js} +10 -10
- package/dist/_node-chunks/{webpack-mock-plugin-JVWSZ2PI.js → webpack-mock-plugin-I6AWAO5P.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 +77 -12
- package/dist/cli/index.js +21 -20
- package/dist/common/index.d.ts +5 -3
- package/dist/common/index.js +20 -20
- package/dist/components/index.js +74 -5746
- package/dist/core-server/index.js +49 -40
- package/dist/core-server/presets/common-manager.js +523 -29
- package/dist/core-server/presets/common-override-preset.js +9 -9
- package/dist/core-server/presets/common-preset.js +22 -22
- 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/index.js +2 -2
- package/dist/csf-tools/index.js +9 -9
- package/dist/manager/globals-runtime.js +24 -21
- package/dist/manager/runtime.js +68 -45
- package/dist/manager-api/index.d.ts +1 -1
- package/dist/manager-api/index.js +24 -21
- package/dist/node-logger/index.js +18 -15
- package/dist/preview-api/index.d.ts +68 -67
- package/dist/preview-api/index.js +5 -5
- package/dist/server-errors.js +10 -10
- package/dist/telemetry/index.js +23 -23
- package/dist/types/index.d.ts +3 -1
- package/package.json +1 -1
- package/dist/_browser-chunks/chunk-GJ67EE65.js +0 -67
- package/dist/_node-chunks/camelcase-W6EWLMZP.js +0 -18
- package/dist/_node-chunks/chunk-T46D5USU.js +0 -18
- package/dist/_node-chunks/chunk-USP6T4QU.js +0 -62
- package/dist/_browser-chunks/{chunk-OQ6NCFPL.js → chunk-PS3AOQI4.js} +5 -5
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_puee7uitcer from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_puee7uitcer from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_puee7uitcer from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_puee7uitcer.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_puee7uitcer.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_puee7uitcer.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
|
glob
|
|
14
|
-
} from "../../_node-chunks/chunk-
|
|
14
|
+
} from "../../_node-chunks/chunk-NEHX365L.js";
|
|
15
15
|
import {
|
|
16
16
|
slash
|
|
17
|
-
} from "../../_node-chunks/chunk-
|
|
17
|
+
} from "../../_node-chunks/chunk-R4L65Z37.js";
|
|
18
18
|
import {
|
|
19
19
|
__name
|
|
20
|
-
} from "../../_node-chunks/chunk-
|
|
20
|
+
} from "../../_node-chunks/chunk-7L4E5FAU.js";
|
|
21
21
|
|
|
22
22
|
// src/core-server/utils/remove-mdx-entries.ts
|
|
23
23
|
import { isAbsolute, join, relative } from "node:path";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_puee7uitcer from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_puee7uitcer from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_puee7uitcer from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_puee7uitcer.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_puee7uitcer.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_puee7uitcer.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -12,33 +12,33 @@ var require = CJS_COMPAT_NODE_MODULE_7kszd2fgfzq.createRequire(import.meta.url);
|
|
|
12
12
|
import {
|
|
13
13
|
parseStaticDir,
|
|
14
14
|
sendTelemetryError
|
|
15
|
-
} from "../../_node-chunks/chunk-
|
|
16
|
-
import "../../_node-chunks/chunk-
|
|
15
|
+
} from "../../_node-chunks/chunk-H3EQM2KY.js";
|
|
16
|
+
import "../../_node-chunks/chunk-BGGGKRRK.js";
|
|
17
17
|
import {
|
|
18
18
|
invariant
|
|
19
|
-
} from "../../_node-chunks/chunk-
|
|
19
|
+
} from "../../_node-chunks/chunk-ATTQ5B3H.js";
|
|
20
20
|
import {
|
|
21
21
|
resolvePackageDir
|
|
22
|
-
} from "../../_node-chunks/chunk-
|
|
22
|
+
} from "../../_node-chunks/chunk-OYXXB4OM.js";
|
|
23
23
|
import {
|
|
24
24
|
join
|
|
25
|
-
} from "../../_node-chunks/chunk-
|
|
26
|
-
import "../../_node-chunks/chunk-
|
|
25
|
+
} from "../../_node-chunks/chunk-ZH4LFYU3.js";
|
|
26
|
+
import "../../_node-chunks/chunk-KNGDROKF.js";
|
|
27
27
|
import {
|
|
28
28
|
loadConfig
|
|
29
|
-
} from "../../_node-chunks/chunk-
|
|
29
|
+
} from "../../_node-chunks/chunk-2IRRHUY6.js";
|
|
30
30
|
import {
|
|
31
31
|
require_dist
|
|
32
|
-
} from "../../_node-chunks/chunk-
|
|
32
|
+
} from "../../_node-chunks/chunk-B3BVSZUX.js";
|
|
33
33
|
import {
|
|
34
34
|
require_picocolors
|
|
35
|
-
} from "../../_node-chunks/chunk-
|
|
35
|
+
} from "../../_node-chunks/chunk-4T2EX3QY.js";
|
|
36
36
|
import {
|
|
37
37
|
__commonJS,
|
|
38
38
|
__name,
|
|
39
39
|
__require,
|
|
40
40
|
__toESM
|
|
41
|
-
} from "../../_node-chunks/chunk-
|
|
41
|
+
} from "../../_node-chunks/chunk-7L4E5FAU.js";
|
|
42
42
|
|
|
43
43
|
// ../node_modules/shell-quote/quote.js
|
|
44
44
|
var require_quote = __commonJS({
|
|
@@ -699,7 +699,7 @@ var import_ts_dedent = __toESM(require_dist(), 1);
|
|
|
699
699
|
|
|
700
700
|
// src/core-server/utils/get-component-variable-name.ts
|
|
701
701
|
var getComponentVariableName = /* @__PURE__ */ __name(async (name) => {
|
|
702
|
-
const camelCase = await import("../../_node-chunks/camelcase-
|
|
702
|
+
const camelCase = await import("../../_node-chunks/camelcase-KM3CILTP.js");
|
|
703
703
|
const camelCased = camelCase.default(name.replace(/^[^a-zA-Z_$]*/, ""), { pascalCase: true });
|
|
704
704
|
const sanitized = camelCased.replace(/[^a-zA-Z_$]+/, "");
|
|
705
705
|
return sanitized;
|
|
@@ -1046,7 +1046,7 @@ async function searchFiles({
|
|
|
1046
1046
|
ignoredFiles = IGNORED_FILES,
|
|
1047
1047
|
fileExtensions = FILE_EXTENSIONS
|
|
1048
1048
|
}) {
|
|
1049
|
-
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-
|
|
1049
|
+
const { globby, isDynamicPattern } = await import("../../_node-chunks/globby-ZQ3RX3ZV.js");
|
|
1050
1050
|
const hasSearchSpecialGlobChars = isDynamicPattern(searchQuery, { cwd });
|
|
1051
1051
|
const hasFileExtensionRegex = /(\.[a-z]+)$/i;
|
|
1052
1052
|
const searchQueryHasExtension = hasFileExtensionRegex.test(searchQuery);
|
|
@@ -1793,8 +1793,8 @@ var viteFinal = /* @__PURE__ */ __name(async (existing, options) => {
|
|
|
1793
1793
|
if (!previewConfigPath) {
|
|
1794
1794
|
return existing;
|
|
1795
1795
|
}
|
|
1796
|
-
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-
|
|
1797
|
-
const { viteMockPlugin } = await import("../../_node-chunks/plugin-
|
|
1796
|
+
const { viteInjectMockerRuntime } = await import("../../_node-chunks/plugin-MYXI4RLY.js");
|
|
1797
|
+
const { viteMockPlugin } = await import("../../_node-chunks/plugin-ZWOPAFXY.js");
|
|
1798
1798
|
const coreOptions = await options.presets.apply("core");
|
|
1799
1799
|
return {
|
|
1800
1800
|
...existing,
|
|
@@ -1812,8 +1812,8 @@ var webpackFinal = /* @__PURE__ */ __name(async (config, options) => {
|
|
|
1812
1812
|
if (!previewConfigPath) {
|
|
1813
1813
|
return config;
|
|
1814
1814
|
}
|
|
1815
|
-
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-
|
|
1816
|
-
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-
|
|
1815
|
+
const { WebpackMockPlugin } = await import("../../_node-chunks/webpack-mock-plugin-I6AWAO5P.js");
|
|
1816
|
+
const { WebpackInjectMockerRuntimePlugin } = await import("../../_node-chunks/webpack-inject-mocker-runtime-plugin-QKV56QIS.js");
|
|
1817
1817
|
config.plugins = config.plugins || [];
|
|
1818
1818
|
config.module.rules.push({
|
|
1819
1819
|
test: /preview\.(t|j)sx?$/,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_puee7uitcer from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_puee7uitcer from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_puee7uitcer from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_puee7uitcer.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_puee7uitcer.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_puee7uitcer.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
|
rewriteSbMockImportCalls
|
|
14
|
-
} from "../../../../_node-chunks/chunk-
|
|
15
|
-
import "../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../_node-chunks/chunk-3KLEDJFU.js";
|
|
15
|
+
import "../../../../_node-chunks/chunk-ZH4LFYU3.js";
|
|
16
16
|
import {
|
|
17
17
|
__name
|
|
18
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
+
} from "../../../../_node-chunks/chunk-7L4E5FAU.js";
|
|
19
19
|
|
|
20
20
|
// src/core-server/presets/webpack/loaders/storybook-mock-transform-loader.ts
|
|
21
21
|
import { logger } from "storybook/internal/node-logger";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_puee7uitcer from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_puee7uitcer from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_puee7uitcer from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_puee7uitcer.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_puee7uitcer.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_puee7uitcer.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
|
getAutomockCode
|
|
14
|
-
} from "../../../../_node-chunks/chunk-
|
|
14
|
+
} from "../../../../_node-chunks/chunk-7GOR4BTB.js";
|
|
15
15
|
import {
|
|
16
16
|
babelParser
|
|
17
|
-
} from "../../../../_node-chunks/chunk-
|
|
18
|
-
import "../../../../_node-chunks/chunk-
|
|
17
|
+
} from "../../../../_node-chunks/chunk-3KLEDJFU.js";
|
|
18
|
+
import "../../../../_node-chunks/chunk-ZH4LFYU3.js";
|
|
19
19
|
import {
|
|
20
20
|
__name
|
|
21
|
-
} from "../../../../_node-chunks/chunk-
|
|
21
|
+
} from "../../../../_node-chunks/chunk-7L4E5FAU.js";
|
|
22
22
|
|
|
23
23
|
// src/core-server/presets/webpack/loaders/webpack-automock-loader.ts
|
|
24
24
|
function webpackAutomockLoader(source) {
|
package/dist/csf/index.js
CHANGED
|
@@ -10,8 +10,7 @@ import {
|
|
|
10
10
|
mountDestructured,
|
|
11
11
|
normalizeArrays,
|
|
12
12
|
normalizeProjectAnnotations
|
|
13
|
-
} from "../_browser-chunks/chunk-
|
|
14
|
-
import "../_browser-chunks/chunk-LYCSRYYR.js";
|
|
13
|
+
} from "../_browser-chunks/chunk-PS3AOQI4.js";
|
|
15
14
|
import "../_browser-chunks/chunk-Y3M7TW6K.js";
|
|
16
15
|
import {
|
|
17
16
|
combineParameters
|
|
@@ -22,6 +21,7 @@ import {
|
|
|
22
21
|
invariant
|
|
23
22
|
} from "../_browser-chunks/chunk-FUOHXXZT.js";
|
|
24
23
|
import "../_browser-chunks/chunk-F4Q6SGTB.js";
|
|
24
|
+
import "../_browser-chunks/chunk-LYCSRYYR.js";
|
|
25
25
|
import "../_browser-chunks/chunk-QK3L5AXO.js";
|
|
26
26
|
import "../_browser-chunks/chunk-JJZMHC3A.js";
|
|
27
27
|
import "../_browser-chunks/chunk-NVV6MIOE.js";
|
package/dist/csf-tools/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import CJS_COMPAT_NODE_URL_puee7uitcer from 'node:url';
|
|
2
|
+
import CJS_COMPAT_NODE_PATH_puee7uitcer from 'node:path';
|
|
3
|
+
import CJS_COMPAT_NODE_MODULE_puee7uitcer from "node:module";
|
|
4
4
|
|
|
5
|
-
var __filename =
|
|
6
|
-
var __dirname =
|
|
7
|
-
var require =
|
|
5
|
+
var __filename = CJS_COMPAT_NODE_URL_puee7uitcer.fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = CJS_COMPAT_NODE_PATH_puee7uitcer.dirname(__filename);
|
|
7
|
+
var require = CJS_COMPAT_NODE_MODULE_puee7uitcer.createRequire(import.meta.url);
|
|
8
8
|
|
|
9
9
|
// ------------------------------------------------------------
|
|
10
10
|
// end of CJS compatibility banner, injected by Storybook's esbuild configuration
|
|
@@ -38,9 +38,9 @@ import {
|
|
|
38
38
|
vitestTransform,
|
|
39
39
|
writeConfig,
|
|
40
40
|
writeCsf
|
|
41
|
-
} from "../_node-chunks/chunk-
|
|
42
|
-
import "../_node-chunks/chunk-
|
|
43
|
-
import "../_node-chunks/chunk-
|
|
41
|
+
} from "../_node-chunks/chunk-2IRRHUY6.js";
|
|
42
|
+
import "../_node-chunks/chunk-B3BVSZUX.js";
|
|
43
|
+
import "../_node-chunks/chunk-7L4E5FAU.js";
|
|
44
44
|
export {
|
|
45
45
|
BadMetaError,
|
|
46
46
|
ConfigFile,
|
|
@@ -147910,12 +147910,12 @@ var init12 = /* @__PURE__ */ __name(({
|
|
|
147910
147910
|
return parameters2 || void 0;
|
|
147911
147911
|
}, "getCurrentParameter"),
|
|
147912
147912
|
jumpToComponent: /* @__PURE__ */ __name((direction) => {
|
|
147913
|
-
const {
|
|
147913
|
+
const { filteredIndex, storyId, refs, refId } = store2.getState();
|
|
147914
147914
|
const story = api.getData(storyId, refId);
|
|
147915
147915
|
if (!story) {
|
|
147916
147916
|
return;
|
|
147917
147917
|
}
|
|
147918
|
-
const hash4 = refId ? refs[refId].
|
|
147918
|
+
const hash4 = refId ? refs[refId].filteredIndex || {} : filteredIndex;
|
|
147919
147919
|
if (!hash4) {
|
|
147920
147920
|
return;
|
|
147921
147921
|
}
|
|
@@ -147925,12 +147925,12 @@ var init12 = /* @__PURE__ */ __name(({
|
|
|
147925
147925
|
}
|
|
147926
147926
|
}, "jumpToComponent"),
|
|
147927
147927
|
jumpToStory: /* @__PURE__ */ __name((direction) => {
|
|
147928
|
-
const {
|
|
147928
|
+
const { filteredIndex, storyId, refs, refId } = store2.getState();
|
|
147929
147929
|
const story = api.getData(storyId, refId);
|
|
147930
147930
|
if (!story) {
|
|
147931
147931
|
return;
|
|
147932
147932
|
}
|
|
147933
|
-
const hash4 = story.refId ? refs[story.refId].
|
|
147933
|
+
const hash4 = story.refId ? refs[story.refId].filteredIndex : filteredIndex;
|
|
147934
147934
|
if (!hash4) {
|
|
147935
147935
|
return;
|
|
147936
147936
|
}
|
|
@@ -147953,10 +147953,19 @@ var init12 = /* @__PURE__ */ __name(({
|
|
|
147953
147953
|
}, "selectFirstStory"),
|
|
147954
147954
|
selectStory: /* @__PURE__ */ __name((titleOrId = void 0, name = void 0, options = {}) => {
|
|
147955
147955
|
const { ref } = options;
|
|
147956
|
-
const { storyId, index: index4, refs } = store2.getState();
|
|
147957
|
-
const
|
|
147956
|
+
const { storyId, index: index4, filteredIndex, refs, settings } = store2.getState();
|
|
147957
|
+
const gotoStory = /* @__PURE__ */ __name((entry) => {
|
|
147958
|
+
if (entry?.type === "docs" || entry?.type === "story") {
|
|
147959
|
+
store2.setState({ settings: { ...settings, lastTrackedStoryId: entry.id } });
|
|
147960
|
+
navigate(`/${entry.type}/${entry.refId ? `${entry.refId}_${entry.id}` : entry.id}`);
|
|
147961
|
+
return true;
|
|
147962
|
+
}
|
|
147963
|
+
return false;
|
|
147964
|
+
}, "gotoStory");
|
|
147958
147965
|
const kindSlug = storyId?.split("--", 2)[0];
|
|
147959
|
-
|
|
147966
|
+
const hash4 = ref ? refs[ref].index : index4;
|
|
147967
|
+
const filteredHash = ref ? refs[ref].filteredIndex : filteredIndex;
|
|
147968
|
+
if (!hash4 || !filteredHash) {
|
|
147960
147969
|
return;
|
|
147961
147970
|
}
|
|
147962
147971
|
if (!name) {
|
|
@@ -147964,26 +147973,20 @@ var init12 = /* @__PURE__ */ __name(({
|
|
|
147964
147973
|
if (!entry) {
|
|
147965
147974
|
throw new Error(`Unknown id or title: '${titleOrId}'`);
|
|
147966
147975
|
}
|
|
147967
|
-
|
|
147968
|
-
|
|
147969
|
-
}
|
|
147970
|
-
const leafEntry = api.findLeafEntry(hash4, entry.id);
|
|
147971
|
-
const fullId = leafEntry.refId ? `${leafEntry.refId}_${leafEntry.id}` : leafEntry.id;
|
|
147972
|
-
navigate(`/${leafEntry.type}/${fullId}`);
|
|
147976
|
+
if (!gotoStory(entry)) {
|
|
147977
|
+
gotoStory(api.findLeafEntry(filteredHash, entry.id));
|
|
147978
|
+
}
|
|
147973
147979
|
} else if (!titleOrId) {
|
|
147974
|
-
|
|
147975
|
-
api.selectStory(id, void 0, options);
|
|
147980
|
+
gotoStory(hash4[toId(kindSlug, name)]);
|
|
147976
147981
|
} else {
|
|
147977
147982
|
const id = ref ? `${ref}_${toId(titleOrId, name)}` : toId(titleOrId, name);
|
|
147978
147983
|
if (hash4[id]) {
|
|
147979
|
-
|
|
147984
|
+
gotoStory(hash4[id]);
|
|
147980
147985
|
} else {
|
|
147981
147986
|
const entry = hash4[sanitize(titleOrId)];
|
|
147982
147987
|
if (entry?.type === "component") {
|
|
147983
147988
|
const foundId = entry.children.find((childId) => hash4[childId].name === name);
|
|
147984
|
-
|
|
147985
|
-
api.selectStory(foundId, void 0, options);
|
|
147986
|
-
}
|
|
147989
|
+
gotoStory(foundId ? hash4[foundId] : void 0);
|
|
147987
147990
|
}
|
|
147988
147991
|
}
|
|
147989
147992
|
}
|
|
@@ -147993,7 +147996,7 @@ var init12 = /* @__PURE__ */ __name(({
|
|
|
147993
147996
|
if (entry.type === "docs" || entry.type === "story") {
|
|
147994
147997
|
return entry;
|
|
147995
147998
|
}
|
|
147996
|
-
const childStoryId = entry.children[0];
|
|
147999
|
+
const childStoryId = entry.children.find((childId) => index4[childId]) || entry.children[0];
|
|
147997
148000
|
return api.findLeafEntry(index4, childStoryId);
|
|
147998
148001
|
},
|
|
147999
148002
|
findLeafStoryId(index4, storyId) {
|
|
@@ -148528,7 +148531,7 @@ var import_memoizerific10 = __toESM(require_memoizerific(), 1);
|
|
|
148528
148531
|
var import_semver = __toESM(require_semver2(), 1);
|
|
148529
148532
|
|
|
148530
148533
|
// src/manager-api/version.ts
|
|
148531
|
-
var version = "10.0.0-
|
|
148534
|
+
var version = "10.0.0-rc.0";
|
|
148532
148535
|
|
|
148533
148536
|
// src/manager-api/modules/versions.ts
|
|
148534
148537
|
var { VERSIONCHECK } = scope;
|
package/dist/manager/runtime.js
CHANGED
|
@@ -126,7 +126,7 @@ var require_react_fast_compare = __commonJS({
|
|
|
126
126
|
var hasMap = typeof Map === "function";
|
|
127
127
|
var hasSet = typeof Set === "function";
|
|
128
128
|
var hasArrayBuffer = typeof ArrayBuffer === "function" && !!ArrayBuffer.isView;
|
|
129
|
-
function
|
|
129
|
+
function equal2(a2, b2) {
|
|
130
130
|
if (a2 === b2) return true;
|
|
131
131
|
if (a2 && b2 && typeof a2 == "object" && typeof b2 == "object") {
|
|
132
132
|
if (a2.constructor !== b2.constructor) return false;
|
|
@@ -135,7 +135,7 @@ var require_react_fast_compare = __commonJS({
|
|
|
135
135
|
length = a2.length;
|
|
136
136
|
if (length != b2.length) return false;
|
|
137
137
|
for (i2 = length; i2-- !== 0; )
|
|
138
|
-
if (!
|
|
138
|
+
if (!equal2(a2[i2], b2[i2])) return false;
|
|
139
139
|
return true;
|
|
140
140
|
}
|
|
141
141
|
var it;
|
|
@@ -146,7 +146,7 @@ var require_react_fast_compare = __commonJS({
|
|
|
146
146
|
if (!b2.has(i2.value[0])) return false;
|
|
147
147
|
it = a2.entries();
|
|
148
148
|
while (!(i2 = it.next()).done)
|
|
149
|
-
if (!
|
|
149
|
+
if (!equal2(i2.value[1], b2.get(i2.value[0]))) return false;
|
|
150
150
|
return true;
|
|
151
151
|
}
|
|
152
152
|
if (hasSet && a2 instanceof Set && b2 instanceof Set) {
|
|
@@ -176,16 +176,16 @@ var require_react_fast_compare = __commonJS({
|
|
|
176
176
|
if ((keys2[i2] === "_owner" || keys2[i2] === "__v" || keys2[i2] === "__o") && a2.$$typeof) {
|
|
177
177
|
continue;
|
|
178
178
|
}
|
|
179
|
-
if (!
|
|
179
|
+
if (!equal2(a2[keys2[i2]], b2[keys2[i2]])) return false;
|
|
180
180
|
}
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
183
|
return a2 !== a2 && b2 !== b2;
|
|
184
184
|
}
|
|
185
|
-
__name(
|
|
185
|
+
__name(equal2, "equal");
|
|
186
186
|
module.exports = /* @__PURE__ */ __name(function isEqual2(a2, b2) {
|
|
187
187
|
try {
|
|
188
|
-
return
|
|
188
|
+
return equal2(a2, b2);
|
|
189
189
|
} catch (error) {
|
|
190
190
|
if ((error.message || "").match(/stack|recursion/i)) {
|
|
191
191
|
console.warn("react-fast-compare cannot handle circular refs");
|
|
@@ -9218,7 +9218,8 @@ function ShareMenu({
|
|
|
9218
9218
|
baseUrl,
|
|
9219
9219
|
storyId,
|
|
9220
9220
|
queryParams,
|
|
9221
|
-
qrUrl
|
|
9221
|
+
qrUrl,
|
|
9222
|
+
isDevelopment
|
|
9222
9223
|
}) {
|
|
9223
9224
|
const api = useStorybookApi();
|
|
9224
9225
|
const shortcutKeys = api.getShortcutKeys();
|
|
@@ -9255,12 +9256,12 @@ function ShareMenu({
|
|
|
9255
9256
|
{
|
|
9256
9257
|
id: "qr-section",
|
|
9257
9258
|
// @ts-expect-error (non strict)
|
|
9258
|
-
content: react_default.createElement(QRContainer, null, react_default.createElement(QRImage, { value: qrUrl }), react_default.createElement(QRContent, null, react_default.createElement(QRTitle, null, "Scan
|
|
9259
|
+
content: react_default.createElement(QRContainer, null, react_default.createElement(QRImage, { value: qrUrl }), react_default.createElement(QRContent, null, react_default.createElement(QRTitle, null, "Scan to open"), react_default.createElement(QRDescription, null, isDevelopment ? "Device must be on the same network." : "View story on another device.")))
|
|
9259
9260
|
}
|
|
9260
9261
|
]);
|
|
9261
9262
|
return baseLinks;
|
|
9262
|
-
}, [baseUrl, storyId, queryParams, copied, qrUrl, enableShortcuts, copyStoryLink]);
|
|
9263
|
-
return react_default.createElement(TooltipLinkList, { links });
|
|
9263
|
+
}, [baseUrl, storyId, queryParams, copied, qrUrl, enableShortcuts, copyStoryLink, isDevelopment]);
|
|
9264
|
+
return react_default.createElement(TooltipLinkList, { links, style: { width: 210 } });
|
|
9264
9265
|
}
|
|
9265
9266
|
__name(ShareMenu, "ShareMenu");
|
|
9266
9267
|
var shareTool = {
|
|
@@ -9270,13 +9271,14 @@ var shareTool = {
|
|
|
9270
9271
|
match: /* @__PURE__ */ __name(({ viewMode, tabId }) => viewMode === "story" && !tabId, "match"),
|
|
9271
9272
|
render: /* @__PURE__ */ __name(() => {
|
|
9272
9273
|
return react_default.createElement(Consumer, { filter: mapper3 }, ({ baseUrl, storyId, queryParams }) => {
|
|
9273
|
-
const
|
|
9274
|
+
const isDevelopment = scope.CONFIG_TYPE === "DEVELOPMENT";
|
|
9275
|
+
const storyUrl = scope.STORYBOOK_NETWORK_ADDRESS ? new URL(window.location.search, scope.STORYBOOK_NETWORK_ADDRESS).href : window.location.href;
|
|
9274
9276
|
return storyId ? react_default.createElement(
|
|
9275
9277
|
WithTooltip,
|
|
9276
9278
|
{
|
|
9277
9279
|
hasChrome: true,
|
|
9278
9280
|
placement: "bottom",
|
|
9279
|
-
tooltip: react_default.createElement(ShareMenu, { ...{ baseUrl, storyId, queryParams, qrUrl: storyUrl } })
|
|
9281
|
+
tooltip: react_default.createElement(ShareMenu, { ...{ baseUrl, storyId, queryParams, qrUrl: storyUrl, isDevelopment } })
|
|
9280
9282
|
},
|
|
9281
9283
|
react_default.createElement(IconButton, { title: "Share" }, react_default.createElement(ShareIcon, null))
|
|
9282
9284
|
) : null;
|
|
@@ -12470,10 +12472,18 @@ var initializeExpanded = /* @__PURE__ */ __name(({
|
|
|
12470
12472
|
data,
|
|
12471
12473
|
initialExpanded,
|
|
12472
12474
|
highlightedRef,
|
|
12473
|
-
rootIds
|
|
12475
|
+
rootIds,
|
|
12476
|
+
selectedStoryId
|
|
12474
12477
|
}) => {
|
|
12475
|
-
const
|
|
12476
|
-
|
|
12478
|
+
const selectedStory = selectedStoryId && data[selectedStoryId];
|
|
12479
|
+
const candidates = [...rootIds];
|
|
12480
|
+
if (highlightedRef.current?.refId === refId) {
|
|
12481
|
+
candidates.push(...getAncestorIds(data, highlightedRef.current?.itemId));
|
|
12482
|
+
}
|
|
12483
|
+
if (selectedStory && "children" in selectedStory && selectedStory.children?.length) {
|
|
12484
|
+
candidates.push(selectedStoryId);
|
|
12485
|
+
}
|
|
12486
|
+
return candidates.reduce(
|
|
12477
12487
|
// @ts-expect-error (non strict)
|
|
12478
12488
|
(acc, id) => Object.assign(acc, { [id]: id in initialExpanded ? initialExpanded[id] : true }),
|
|
12479
12489
|
{}
|
|
@@ -12497,7 +12507,7 @@ var useExpanded = /* @__PURE__ */ __name(({
|
|
|
12497
12507
|
const [expanded, setExpanded] = useReducer(
|
|
12498
12508
|
(state, { ids, value }) => ids.reduce((acc, id) => Object.assign(acc, { [id]: value }), { ...state }),
|
|
12499
12509
|
// @ts-expect-error (non strict)
|
|
12500
|
-
{ refId, data, highlightedRef, rootIds, initialExpanded },
|
|
12510
|
+
{ refId, data, highlightedRef, rootIds, initialExpanded, selectedStoryId },
|
|
12501
12511
|
initializeExpanded
|
|
12502
12512
|
);
|
|
12503
12513
|
const getElementByDataItemId = useCallback(
|
|
@@ -17988,7 +17998,7 @@ var TagsFilterPanel = /* @__PURE__ */ __name(({
|
|
|
17988
17998
|
title: "Learn how to add tags",
|
|
17989
17999
|
icon: react_default.createElement(DocumentIcon, null),
|
|
17990
18000
|
right: react_default.createElement(ShareAltIcon, null),
|
|
17991
|
-
href: api.getDocsUrl({ subpath: "writing-stories/tags#
|
|
18001
|
+
href: api.getDocsUrl({ subpath: "writing-stories/tags#custom-tags" })
|
|
17992
18002
|
}
|
|
17993
18003
|
]);
|
|
17994
18004
|
}
|
|
@@ -18046,6 +18056,17 @@ var BUILT_IN_TAGS = /* @__PURE__ */ new Set([
|
|
|
18046
18056
|
"play-fn",
|
|
18047
18057
|
"test-fn"
|
|
18048
18058
|
]);
|
|
18059
|
+
var add = /* @__PURE__ */ __name((set2, id) => {
|
|
18060
|
+
const copy3 = new Set(set2);
|
|
18061
|
+
copy3.add(id);
|
|
18062
|
+
return copy3;
|
|
18063
|
+
}, "add");
|
|
18064
|
+
var remove = /* @__PURE__ */ __name((set2, id) => {
|
|
18065
|
+
const copy3 = new Set(set2);
|
|
18066
|
+
copy3.delete(id);
|
|
18067
|
+
return copy3;
|
|
18068
|
+
}, "remove");
|
|
18069
|
+
var equal = /* @__PURE__ */ __name((left, right) => left.size === right.size && (/* @__PURE__ */ new Set([...left, ...right])).size === left.size, "equal");
|
|
18049
18070
|
var Wrapper4 = styled.div({
|
|
18050
18071
|
position: "relative"
|
|
18051
18072
|
});
|
|
@@ -18068,16 +18089,19 @@ var TagSelected = styled(Badge)(({ theme }) => ({
|
|
|
18068
18089
|
}));
|
|
18069
18090
|
var TagsFilter = /* @__PURE__ */ __name(({ api, indexJson, isDevelopment, tagPresets }) => {
|
|
18070
18091
|
const filtersById = useMemo(() => {
|
|
18071
|
-
const userTagsCounts = Object.values(indexJson.entries).reduce(
|
|
18072
|
-
entry
|
|
18073
|
-
|
|
18074
|
-
|
|
18075
|
-
|
|
18076
|
-
|
|
18077
|
-
|
|
18078
|
-
|
|
18092
|
+
const userTagsCounts = Object.values(indexJson.entries).reduce(
|
|
18093
|
+
(acc, entry) => {
|
|
18094
|
+
entry.tags?.forEach((tag) => {
|
|
18095
|
+
if (!BUILT_IN_TAGS.has(tag)) {
|
|
18096
|
+
acc[tag] = (acc[tag] || 0) + 1;
|
|
18097
|
+
}
|
|
18098
|
+
});
|
|
18099
|
+
return acc;
|
|
18100
|
+
},
|
|
18101
|
+
{}
|
|
18102
|
+
);
|
|
18079
18103
|
const userFilters = Object.fromEntries(
|
|
18080
|
-
|
|
18104
|
+
Object.entries(userTagsCounts).map(([tag, count]) => {
|
|
18081
18105
|
const filterFn = /* @__PURE__ */ __name((entry, excluded) => excluded ? !entry.tags?.includes(tag) : !!entry.tags?.includes(tag), "filterFn");
|
|
18082
18106
|
return [tag, { id: tag, type: "tag", title: tag, count, filterFn }];
|
|
18083
18107
|
})
|
|
@@ -18152,19 +18176,18 @@ var TagsFilter = /* @__PURE__ */ __name(({ api, indexJson, isDevelopment, tagPre
|
|
|
18152
18176
|
}, [api, includedFilters, excludedFilters, filtersById]);
|
|
18153
18177
|
const toggleFilter = useCallback(
|
|
18154
18178
|
(id, selected, excluded) => {
|
|
18155
|
-
const set2 = /* @__PURE__ */ new Set([id]);
|
|
18156
18179
|
if (excluded === true) {
|
|
18157
|
-
setExcludedFilters(excludedFilters
|
|
18158
|
-
setIncludedFilters(includedFilters
|
|
18180
|
+
setExcludedFilters(add(excludedFilters, id));
|
|
18181
|
+
setIncludedFilters(remove(includedFilters, id));
|
|
18159
18182
|
} else if (excluded === false) {
|
|
18160
|
-
setIncludedFilters(includedFilters
|
|
18161
|
-
setExcludedFilters(excludedFilters
|
|
18183
|
+
setIncludedFilters(add(includedFilters, id));
|
|
18184
|
+
setExcludedFilters(remove(excludedFilters, id));
|
|
18162
18185
|
} else if (selected) {
|
|
18163
|
-
setIncludedFilters(includedFilters
|
|
18164
|
-
setExcludedFilters(excludedFilters
|
|
18186
|
+
setIncludedFilters(add(includedFilters, id));
|
|
18187
|
+
setExcludedFilters(remove(excludedFilters, id));
|
|
18165
18188
|
} else {
|
|
18166
|
-
setIncludedFilters(includedFilters
|
|
18167
|
-
setExcludedFilters(excludedFilters
|
|
18189
|
+
setIncludedFilters(remove(includedFilters, id));
|
|
18190
|
+
setExcludedFilters(remove(excludedFilters, id));
|
|
18168
18191
|
}
|
|
18169
18192
|
},
|
|
18170
18193
|
[includedFilters, excludedFilters]
|
|
@@ -18208,7 +18231,7 @@ var TagsFilter = /* @__PURE__ */ __name(({ api, indexJson, isDevelopment, tagPre
|
|
|
18208
18231
|
setAllFilters,
|
|
18209
18232
|
resetFilters,
|
|
18210
18233
|
isDevelopment,
|
|
18211
|
-
isDefaultSelection: includedFilters
|
|
18234
|
+
isDefaultSelection: equal(includedFilters, defaultIncluded) && equal(excludedFilters, defaultExcluded),
|
|
18212
18235
|
hasDefaultSelection: defaultIncluded.size > 0 || defaultExcluded.size > 0
|
|
18213
18236
|
}
|
|
18214
18237
|
),
|
|
@@ -20488,7 +20511,7 @@ function reject(source, predicate = identity) {
|
|
|
20488
20511
|
__name(reject, "reject");
|
|
20489
20512
|
|
|
20490
20513
|
// ../node_modules/es-toolkit/dist/array/remove.mjs
|
|
20491
|
-
function
|
|
20514
|
+
function remove2(arr, shouldRemoveElement) {
|
|
20492
20515
|
const originalArr = arr.slice();
|
|
20493
20516
|
const removed = [];
|
|
20494
20517
|
let resultIndex = 0;
|
|
@@ -20506,13 +20529,13 @@ function remove(arr, shouldRemoveElement) {
|
|
|
20506
20529
|
arr.length = resultIndex;
|
|
20507
20530
|
return removed;
|
|
20508
20531
|
}
|
|
20509
|
-
__name(
|
|
20532
|
+
__name(remove2, "remove");
|
|
20510
20533
|
|
|
20511
20534
|
// ../node_modules/es-toolkit/dist/compat/array/remove.mjs
|
|
20512
|
-
function
|
|
20513
|
-
return
|
|
20535
|
+
function remove3(arr, shouldRemoveElement = identity) {
|
|
20536
|
+
return remove2(arr, iteratee(shouldRemoveElement));
|
|
20514
20537
|
}
|
|
20515
|
-
__name(
|
|
20538
|
+
__name(remove3, "remove");
|
|
20516
20539
|
|
|
20517
20540
|
// ../node_modules/es-toolkit/dist/compat/array/reverse.mjs
|
|
20518
20541
|
function reverse(array) {
|
|
@@ -21867,7 +21890,7 @@ function toString(value) {
|
|
|
21867
21890
|
__name(toString, "toString");
|
|
21868
21891
|
|
|
21869
21892
|
// ../node_modules/es-toolkit/dist/compat/math/add.mjs
|
|
21870
|
-
function
|
|
21893
|
+
function add2(value, other) {
|
|
21871
21894
|
if (value === void 0 && other === void 0) {
|
|
21872
21895
|
return 0;
|
|
21873
21896
|
}
|
|
@@ -21883,7 +21906,7 @@ function add(value, other) {
|
|
|
21883
21906
|
}
|
|
21884
21907
|
return value + other;
|
|
21885
21908
|
}
|
|
21886
|
-
__name(
|
|
21909
|
+
__name(add2, "add");
|
|
21887
21910
|
|
|
21888
21911
|
// ../node_modules/es-toolkit/dist/compat/_internal/decimalAdjust.mjs
|
|
21889
21912
|
function decimalAdjust(type, number, precision = 0) {
|
|
@@ -24834,7 +24857,7 @@ __name(uniqueId, "uniqueId");
|
|
|
24834
24857
|
// ../node_modules/es-toolkit/dist/compat/compat.mjs
|
|
24835
24858
|
var compat_exports = {};
|
|
24836
24859
|
__export(compat_exports, {
|
|
24837
|
-
add: () =>
|
|
24860
|
+
add: () => add2,
|
|
24838
24861
|
after: () => after2,
|
|
24839
24862
|
ary: () => ary2,
|
|
24840
24863
|
assign: () => assign,
|
|
@@ -25040,7 +25063,7 @@ __export(compat_exports, {
|
|
|
25040
25063
|
reduce: () => reduce,
|
|
25041
25064
|
reduceRight: () => reduceRight,
|
|
25042
25065
|
reject: () => reject,
|
|
25043
|
-
remove: () =>
|
|
25066
|
+
remove: () => remove3,
|
|
25044
25067
|
repeat: () => repeat,
|
|
25045
25068
|
replace: () => replace,
|
|
25046
25069
|
rest: () => rest2,
|
|
@@ -393,7 +393,7 @@ interface SubState$5 {
|
|
|
393
393
|
|
|
394
394
|
declare const isMacLike: () => boolean;
|
|
395
395
|
declare const controlOrMetaSymbol: () => "⌘" | "ctrl";
|
|
396
|
-
declare const controlOrMetaKey: () => "
|
|
396
|
+
declare const controlOrMetaKey: () => "control" | "meta";
|
|
397
397
|
declare const optionOrAltSymbol: () => "⌥" | "alt";
|
|
398
398
|
declare const isShortcutTaken: (arr1: string[], arr2: string[]) => boolean;
|
|
399
399
|
type KeyboardEventLike = Pick<KeyboardEvent, 'altKey' | 'ctrlKey' | 'metaKey' | 'shiftKey' | 'key' | 'code' | 'keyCode' | 'preventDefault'>;
|