@storybook/web-components 11.0.0-beta.3 → 11.0.0-beta.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.
@@ -1,20 +1,9 @@
1
- import CJS_COMPAT_NODE_URL_ixqjvdd3w7j from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ixqjvdd3w7j from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ixqjvdd3w7j from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_ixqjvdd3w7j.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ixqjvdd3w7j.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ixqjvdd3w7j.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
1
  import {
13
2
  DEFAULT_SLOT_NAME,
14
3
  parseStoryFile,
15
4
  resolveStoryComponent,
16
5
  toArgKey
17
- } from "./chunk-A2FVKW65.js";
6
+ } from "./chunk-KESDCAUK.js";
18
7
 
19
8
  // src/docgen/docgen-worker.ts
20
9
  import { createLazyDocgenMiddleware, loadTypeScriptCompilerApi } from "storybook/internal/common";
@@ -1,15 +1,3 @@
1
- import CJS_COMPAT_NODE_URL_ixqjvdd3w7j from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ixqjvdd3w7j from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ixqjvdd3w7j from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_ixqjvdd3w7j.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ixqjvdd3w7j.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ixqjvdd3w7j.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
-
13
1
  // src/docgen/component-docgen/resolve-component/resolve-component.ts
14
2
  import {
15
3
  isStringLiteral,
@@ -1,18 +1,7 @@
1
- import CJS_COMPAT_NODE_URL_ixqjvdd3w7j from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ixqjvdd3w7j from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ixqjvdd3w7j from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_ixqjvdd3w7j.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ixqjvdd3w7j.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ixqjvdd3w7j.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
1
  import {
13
2
  createDocgenProvider
14
- } from "../_node-chunks/chunk-W5USQLGE.js";
15
- import "../_node-chunks/chunk-A2FVKW65.js";
3
+ } from "../_node-chunks/chunk-62SDQIJM.js";
4
+ import "../_node-chunks/chunk-KESDCAUK.js";
16
5
  export {
17
6
  createDocgenProvider
18
7
  };
@@ -1,19 +1,8 @@
1
- import CJS_COMPAT_NODE_URL_ixqjvdd3w7j from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ixqjvdd3w7j from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ixqjvdd3w7j from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_ixqjvdd3w7j.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ixqjvdd3w7j.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ixqjvdd3w7j.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
1
  import {
13
2
  buildDocgenPayload,
14
3
  createDocgenProvider
15
- } from "../_node-chunks/chunk-W5USQLGE.js";
16
- import "../_node-chunks/chunk-A2FVKW65.js";
4
+ } from "../_node-chunks/chunk-62SDQIJM.js";
5
+ import "../_node-chunks/chunk-KESDCAUK.js";
17
6
  export {
18
7
  buildDocgenPayload,
19
8
  createDocgenProvider
package/dist/preset.js CHANGED
@@ -1,19 +1,8 @@
1
- import CJS_COMPAT_NODE_URL_ixqjvdd3w7j from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_ixqjvdd3w7j from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_ixqjvdd3w7j from "node:module";
4
-
5
- var __filename = CJS_COMPAT_NODE_URL_ixqjvdd3w7j.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_ixqjvdd3w7j.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_ixqjvdd3w7j.createRequire(import.meta.url);
8
-
9
- // ------------------------------------------------------------
10
- // end of CJS compatibility banner, injected by Storybook's esbuild configuration
11
- // ------------------------------------------------------------
12
1
  import {
13
2
  parseArgKey,
14
3
  parseStoryFile,
15
4
  resolveStoryComponent
16
- } from "./_node-chunks/chunk-A2FVKW65.js";
5
+ } from "./_node-chunks/chunk-KESDCAUK.js";
17
6
 
18
7
  // src/preset.ts
19
8
  import { fileURLToPath as fileURLToPath3 } from "node:url";
@@ -740,15 +729,15 @@ function renderSnippet(render, exportName, args) {
740
729
  let body = render.body, reads = argReads(render);
741
730
  if (!reads)
742
731
  return;
743
- let code = textOf(body), indent = /\n([ \t]*)[^\n]*$/.exec(code)?.[1] ?? "", dedent2 = (text) => indent ? text.replaceAll(`
732
+ let code = textOf(body), indent = /\n([ \t]*)[^\n]*$/.exec(code)?.[1] ?? "", dedent = (text) => indent ? text.replaceAll(`
744
733
  ${indent}`, `
745
734
  `) : text, print = (mark) => {
746
735
  let text = "", cursor = 0;
747
736
  for (let read of reads) {
748
737
  let { before, value, after, hole } = edit(read, args);
749
- text += dedent2(code.slice(cursor, read.node.start - body.start)), text += before + (mark && hole ? mark(hole, value) : value) + after, cursor = read.node.end - body.start;
738
+ text += dedent(code.slice(cursor, read.node.start - body.start)), text += before + (mark && hole ? mark(hole, value) : value) + after, cursor = read.node.end - body.start;
750
739
  }
751
- return text += dedent2(code.slice(cursor)), body.type === "BlockStatement" ? `const ${exportName} = ${render.async ? "async " : ""}() => ${text};` : text;
740
+ return text += dedent(code.slice(cursor)), body.type === "BlockStatement" ? `const ${exportName} = ${render.async ? "async " : ""}() => ${text};` : text;
752
741
  }, snippet = print();
753
742
  if (reads.some((read) => read.arg === void 0))
754
743
  return { snippet, template: void 0 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/web-components",
3
- "version": "11.0.0-beta.3",
3
+ "version": "11.0.0-beta.4",
4
4
  "description": "Storybook Web Components renderer: Develop, document, and test UI components in isolation",
5
5
  "keywords": [
6
6
  "storybook",
@@ -74,7 +74,7 @@
74
74
  },
75
75
  "peerDependencies": {
76
76
  "lit": "^2.0.0 || ^3.0.0",
77
- "storybook": "^11.0.0-beta.3",
77
+ "storybook": "^11.0.0-beta.4",
78
78
  "typescript": "^5.9.0 || ^6.0.0 || ^7.0.0"
79
79
  },
80
80
  "publishConfig": {