@storybook/svelte 11.0.0-rc.1 → 11.0.0-rc.2

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,11 @@
1
- import {
2
- sourceDecorator
3
- } from "./chunk-BMWD75KG.js";
4
- import {
5
- __export
6
- } from "./chunk-4BE7D4DS.js";
7
-
8
- // src/entry-preview-docs.ts
9
- var entry_preview_docs_exports = {};
10
- __export(entry_preview_docs_exports, {
11
- decorators: () => decorators,
12
- parameters: () => parameters
13
- });
14
- import { getSourceSnippetRuntime } from "storybook/internal/docs-tools";
1
+ // src/docs/register-print-hole.ts
2
+ import { registerPrintHole } from "storybook/internal/docs-tools/snippets";
15
3
 
16
4
  // src/docs/print-hole.ts
17
- import { printValue, unknownHoleKind } from "storybook/internal/docs-tools";
5
+ import {
6
+ printValue,
7
+ unknownHoleKind
8
+ } from "storybook/internal/docs-tools/snippets";
18
9
 
19
10
  // src/snippet-values.ts
20
11
  var isPlain = (value) => !/[{}<>"\\&\r\n\t]/.test(value), escapeAttribute = (value) => value.replaceAll("&", "&amp;").replaceAll('"', "&quot;").replaceAll("'", "&#39;");
@@ -75,11 +66,5 @@ function propValue(value, name) {
75
66
  };
76
67
  }
77
68
 
78
- // src/entry-preview-docs.ts
79
- var snippetRuntime = getSourceSnippetRuntime(), decorators = snippetRuntime === "preview" ? [sourceDecorator] : [], parameters = snippetRuntime === "server" ? { docs: { source: { printHole } } } : {};
80
-
81
- export {
82
- decorators,
83
- parameters,
84
- entry_preview_docs_exports
85
- };
69
+ // src/docs/register-print-hole.ts
70
+ registerPrintHole(printHole);
@@ -0,0 +1,19 @@
1
+ import {
2
+ sourceDecorator
3
+ } from "./chunk-BMWD75KG.js";
4
+ import {
5
+ __export
6
+ } from "./chunk-4BE7D4DS.js";
7
+
8
+ // src/entry-preview-docs.ts
9
+ var entry_preview_docs_exports = {};
10
+ __export(entry_preview_docs_exports, {
11
+ decorators: () => decorators
12
+ });
13
+ import { getSourceSnippetRuntime } from "storybook/internal/docs-tools";
14
+ var snippetRuntime = getSourceSnippetRuntime(), decorators = snippetRuntime === "preview" ? [sourceDecorator] : [];
15
+
16
+ export {
17
+ decorators,
18
+ entry_preview_docs_exports
19
+ };
@@ -0,0 +1,2 @@
1
+ import "../_browser-chunks/chunk-C5MSZ7BS.js";
2
+ import "../_browser-chunks/chunk-4BE7D4DS.js";
@@ -1,10 +1,9 @@
1
1
  import {
2
- decorators,
3
- parameters
4
- } from "./_browser-chunks/chunk-JSFXTARB.js";
2
+ decorators
3
+ } from "./_browser-chunks/chunk-RXNABRNU.js";
4
+ import "./_browser-chunks/chunk-C5MSZ7BS.js";
5
5
  import "./_browser-chunks/chunk-BMWD75KG.js";
6
6
  import "./_browser-chunks/chunk-4BE7D4DS.js";
7
7
  export {
8
- decorators,
9
- parameters
8
+ decorators
10
9
  };
package/dist/index.js CHANGED
@@ -4,7 +4,8 @@ import {
4
4
  } from "./_browser-chunks/chunk-SPDFOPD5.js";
5
5
  import {
6
6
  entry_preview_docs_exports
7
- } from "./_browser-chunks/chunk-JSFXTARB.js";
7
+ } from "./_browser-chunks/chunk-RXNABRNU.js";
8
+ import "./_browser-chunks/chunk-C5MSZ7BS.js";
8
9
  import "./_browser-chunks/chunk-BMWD75KG.js";
9
10
  import "./_browser-chunks/chunk-4BE7D4DS.js";
10
11
 
package/dist/preset.js CHANGED
@@ -927,7 +927,8 @@ var experimental_storyDocsProvider = createWorkerGatedStoryDocsProvider({
927
927
  label: "Svelte",
928
928
  docgenWorker: fileURLToPath2(import.meta.resolve(DOCGEN_WORKER_SPECIFIER)),
929
929
  storyFileTest: SVELTE_DOCGEN_STORY_FILE_TEST_REGEXP,
930
- build: (input) => buildStoryDocsPayload(input)
930
+ build: (input) => buildStoryDocsPayload(input),
931
+ printHole: fileURLToPath2(import.meta.resolve("@storybook/svelte/internal/register-print-hole"))
931
932
  });
932
933
 
933
934
  // src/preset.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/svelte",
3
- "version": "11.0.0-rc.1",
3
+ "version": "11.0.0-rc.2",
4
4
  "description": "Storybook Svelte renderer: Develop, document, and test UI components in isolation.",
5
5
  "keywords": [
6
6
  "storybook",
@@ -41,6 +41,7 @@
41
41
  },
42
42
  "./internal/docgen-worker": "./dist/docgen/docgen-worker.js",
43
43
  "./internal/PreviewRender.svelte": "./static/PreviewRender.svelte",
44
+ "./internal/register-print-hole": "./dist/docs/register-print-hole.js",
44
45
  "./internal/svelte-csf/addon-check": {
45
46
  "types": "./dist/svelte-csf/addon-check.d.ts",
46
47
  "code": "./src/svelte-csf/addon-check.ts",
@@ -105,7 +106,7 @@
105
106
  "zimmerframe": "^1.1.2"
106
107
  },
107
108
  "peerDependencies": {
108
- "storybook": "^11.0.0-rc.1",
109
+ "storybook": "^11.0.0-rc.2",
109
110
  "svelte": "^5.0.0",
110
111
  "typescript": "^5.9.0 || ^6.0.0 || ^7.0.0"
111
112
  },