storybook 9.0.0-beta.6 → 9.0.0-beta.7

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.
@@ -35702,7 +35702,8 @@ s(A2, "useStoriesJson");
35702
35702
 
35703
35703
  // src/core-server/utils/summarizeIndex.ts
35704
35704
  var S2 = require("storybook/internal/telemetry");
35705
- var Rj = /(page|screen)/i, Nj = /* @__PURE__ */ s((e) => Rj.test(e), "isPageStory"), Lj = /* @__PURE__ */ s((e) => [
35705
+ var Rj = /(page|screen)/i;
35706
+ var Nj = /* @__PURE__ */ s((e) => Rj.test(e), "isPageStory"), Lj = /* @__PURE__ */ s((e) => [
35706
35707
  "example-introduction--docs",
35707
35708
  "configure-your-project--docs",
35708
35709
  "example-button--docs",
@@ -35717,16 +35718,17 @@ var Rj = /(page|screen)/i, Nj = /* @__PURE__ */ s((e) => Rj.test(e), "isPageStor
35717
35718
  "example-page--logged-out"
35718
35719
  ].includes(e.id), "isCLIExampleEntry");
35719
35720
  function Tu(e) {
35720
- let t = 0, r = /* @__PURE__ */ new Set(), i = 0, n = 0, o = 0, a = 0, u = 0, l = 0, c = 0, p = 0;
35721
- Object.values(e.entries).forEach((f) => {
35722
- Lj(f) ? (f.type === "story" && (i += 1), f.type === "docs" && (a += 1)) : (0, S2.isExampleStoryId)(f.id) ? (f.type === "story" && (n += 1),
35723
- f.type === "docs" && (o += 1)) : f.type === "story" ? (t += 1, r.add(f.title), Nj(f.title) && (u += 1), f.tags?.includes(Iv) && (l += 1)) :
35724
- f.type === "docs" && (en(f) ? p += 1 : f.tags?.includes(Gn) && (c += 1));
35721
+ let t = 0, r = /* @__PURE__ */ new Set(), i = 0, n = 0, o = 0, a = 0, u = 0, l = 0, c = 0, p = 0, h = 0, f = 0;
35722
+ Object.values(e.entries).forEach((m) => {
35723
+ Lj(m) ? (m.type === "story" && (i += 1), m.type === "docs" && (a += 1)) : (0, S2.isExampleStoryId)(m.id) ? (m.type === "story" && (n += 1),
35724
+ m.type === "docs" && (o += 1)) : m.type === "story" ? (t += 1, r.add(m.title), Nj(m.title) && (u += 1), m.tags?.includes(Iv) && (l += 1),
35725
+ m.tags?.includes("svelte-csf-v4") ? h += 1 : m.tags?.includes("svelte-csf-v5") && (f += 1)) : m.type === "docs" && (en(m) ? p += 1 : m.tags?.
35726
+ includes(Gn) && (c += 1));
35725
35727
  });
35726
- let h = r.size;
35728
+ let d = r.size;
35727
35729
  return {
35728
35730
  storyCount: t,
35729
- componentCount: h,
35731
+ componentCount: d,
35730
35732
  pageStoryCount: u,
35731
35733
  playStoryCount: l,
35732
35734
  autodocsCount: c,
@@ -35735,6 +35737,8 @@ function Tu(e) {
35735
35737
  exampleDocsCount: a,
35736
35738
  onboardingStoryCount: n,
35737
35739
  onboardingDocsCount: o,
35740
+ svelteCsfV4Count: h,
35741
+ svelteCsfV5Count: f,
35738
35742
  version: e.v
35739
35743
  };
35740
35744
  }
@@ -491,28 +491,6 @@ type StatusStoreByTypeId = StatusStore & {
491
491
  typeId: StatusTypeId;
492
492
  };
493
493
 
494
- declare global {
495
- interface SymbolConstructor {
496
- readonly observable: symbol;
497
- }
498
- }
499
-
500
- declare global {
501
- var globalProjectAnnotations: NormalizedProjectAnnotations<any>;
502
- var defaultProjectAnnotations: ProjectAnnotations<any>;
503
- }
504
- type WrappedStoryRef = {
505
- __pw_type: 'jsx' | 'importRef';
506
- };
507
- type UnwrappedJSXStoryRef = {
508
- __pw_type: 'jsx';
509
- type: UnwrappedImportStoryRef;
510
- };
511
- type UnwrappedImportStoryRef = ComposedStoryFn;
512
- declare global {
513
- function __pwUnwrapObject(storyRef: WrappedStoryRef): Promise<UnwrappedJSXStoryRef | UnwrappedImportStoryRef>;
514
- }
515
-
516
494
  type TestProviderState = 'test-provider-state:pending' | 'test-provider-state:running' | 'test-provider-state:succeeded' | 'test-provider-state:crashed';
517
495
  type TestProviderId = string;
518
496
  type TestProviderStateByProviderId = Record<TestProviderId, TestProviderState>;
@@ -705,6 +683,28 @@ type TestProviderStoreById = BaseTestProviderStore & {
705
683
  testProviderId: TestProviderId;
706
684
  };
707
685
 
686
+ declare global {
687
+ interface SymbolConstructor {
688
+ readonly observable: symbol;
689
+ }
690
+ }
691
+
692
+ declare global {
693
+ var globalProjectAnnotations: NormalizedProjectAnnotations<any>;
694
+ var defaultProjectAnnotations: ProjectAnnotations<any>;
695
+ }
696
+ type WrappedStoryRef = {
697
+ __pw_type: 'jsx' | 'importRef';
698
+ };
699
+ type UnwrappedJSXStoryRef = {
700
+ __pw_type: 'jsx';
701
+ type: UnwrappedImportStoryRef;
702
+ };
703
+ type UnwrappedImportStoryRef = ComposedStoryFn;
704
+ declare global {
705
+ function __pwUnwrapObject(storyRef: WrappedStoryRef): Promise<UnwrappedJSXStoryRef | UnwrappedImportStoryRef>;
706
+ }
707
+
708
708
  declare const fullStatusStore: StatusStore & {
709
709
  selectStatuses: (statuses: Status[]) => void;
710
710
  typeId: undefined;
@@ -35723,7 +35723,8 @@ s(_C, "useStoriesJson");
35723
35723
 
35724
35724
  // src/core-server/utils/summarizeIndex.ts
35725
35725
  import { isExampleStoryId as cj } from "storybook/internal/telemetry";
35726
- var pj = /(page|screen)/i, hj = /* @__PURE__ */ s((e) => pj.test(e), "isPageStory"), fj = /* @__PURE__ */ s((e) => [
35726
+ var pj = /(page|screen)/i;
35727
+ var hj = /* @__PURE__ */ s((e) => pj.test(e), "isPageStory"), fj = /* @__PURE__ */ s((e) => [
35727
35728
  "example-introduction--docs",
35728
35729
  "configure-your-project--docs",
35729
35730
  "example-button--docs",
@@ -35738,16 +35739,17 @@ var pj = /(page|screen)/i, hj = /* @__PURE__ */ s((e) => pj.test(e), "isPageStor
35738
35739
  "example-page--logged-out"
35739
35740
  ].includes(e.id), "isCLIExampleEntry");
35740
35741
  function uu(e) {
35741
- let t = 0, r = /* @__PURE__ */ new Set(), i = 0, n = 0, o = 0, a = 0, u = 0, l = 0, c = 0, p = 0;
35742
- Object.values(e.entries).forEach((f) => {
35743
- fj(f) ? (f.type === "story" && (i += 1), f.type === "docs" && (a += 1)) : cj(f.id) ? (f.type === "story" && (n += 1), f.type === "docs" &&
35744
- (o += 1)) : f.type === "story" ? (t += 1, r.add(f.title), hj(f.title) && (u += 1), f.tags?.includes($b) && (l += 1)) : f.type === "docs" &&
35745
- (Ui(f) ? p += 1 : f.tags?.includes(Nn) && (c += 1));
35742
+ let t = 0, r = /* @__PURE__ */ new Set(), i = 0, n = 0, o = 0, a = 0, u = 0, l = 0, c = 0, p = 0, h = 0, f = 0;
35743
+ Object.values(e.entries).forEach((m) => {
35744
+ fj(m) ? (m.type === "story" && (i += 1), m.type === "docs" && (a += 1)) : cj(m.id) ? (m.type === "story" && (n += 1), m.type === "docs" &&
35745
+ (o += 1)) : m.type === "story" ? (t += 1, r.add(m.title), hj(m.title) && (u += 1), m.tags?.includes($b) && (l += 1), m.tags?.includes("s\
35746
+ velte-csf-v4") ? h += 1 : m.tags?.includes("svelte-csf-v5") && (f += 1)) : m.type === "docs" && (Ui(m) ? p += 1 : m.tags?.includes(Nn) && (c +=
35747
+ 1));
35746
35748
  });
35747
- let h = r.size;
35749
+ let d = r.size;
35748
35750
  return {
35749
35751
  storyCount: t,
35750
- componentCount: h,
35752
+ componentCount: d,
35751
35753
  pageStoryCount: u,
35752
35754
  playStoryCount: l,
35753
35755
  autodocsCount: c,
@@ -35756,6 +35758,8 @@ function uu(e) {
35756
35758
  exampleDocsCount: a,
35757
35759
  onboardingStoryCount: n,
35758
35760
  onboardingDocsCount: o,
35761
+ svelteCsfV4Count: h,
35762
+ svelteCsfV5Count: f,
35759
35763
  version: e.v
35760
35764
  };
35761
35765
  }