storybook 9.0.0-beta.6 → 9.0.0-beta.8

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.
Files changed (39) hide show
  1. package/dist/bin/index.cjs +44 -44
  2. package/dist/bin/index.js +44 -44
  3. package/dist/cli/bin/index.cjs +4184 -737
  4. package/dist/cli/bin/index.js +4198 -749
  5. package/dist/cli/index.cjs +25090 -21638
  6. package/dist/cli/index.d.ts +974 -1
  7. package/dist/cli/index.js +25330 -21876
  8. package/dist/common/index.cjs +4518 -4511
  9. package/dist/common/index.d.ts +7 -2
  10. package/dist/common/index.js +4528 -4521
  11. package/dist/core-server/index.cjs +3240 -3235
  12. package/dist/core-server/index.d.ts +22 -22
  13. package/dist/core-server/index.js +1288 -1283
  14. package/dist/core-server/presets/common-preset.cjs +1445 -1444
  15. package/dist/core-server/presets/common-preset.js +418 -417
  16. package/dist/manager/globals-runtime.js +8188 -8165
  17. package/dist/manager/runtime.js +1151 -1149
  18. package/dist/manager-api/index.cjs +1046 -1023
  19. package/dist/manager-api/index.d.ts +12 -1
  20. package/dist/manager-api/index.js +649 -626
  21. package/dist/preview/runtime.js +5389 -5388
  22. package/dist/preview-api/index.cjs +615 -614
  23. package/dist/preview-api/index.js +532 -531
  24. package/dist/server-errors.cjs +186 -171
  25. package/dist/server-errors.d.ts +11 -1
  26. package/dist/server-errors.js +167 -152
  27. package/dist/telemetry/index.cjs +4887 -1403
  28. package/dist/telemetry/index.d.ts +2 -1
  29. package/dist/telemetry/index.js +4923 -1437
  30. package/dist/test/index.d.ts +2 -6
  31. package/dist/test/index.js +2818 -2818
  32. package/dist/test/preview.cjs +648 -648
  33. package/dist/test/preview.js +837 -837
  34. package/dist/test/spy.cjs +112 -112
  35. package/dist/test/spy.d.ts +2 -6
  36. package/dist/test/spy.js +104 -104
  37. package/dist/types/index.cjs +4 -4
  38. package/dist/types/index.d.ts +2687 -2594
  39. package/package.json +3 -2
@@ -1,7 +1,7 @@
1
1
  import { TestingLibraryMatchers } from '@testing-library/jest-dom/matchers';
2
2
  import { AsymmetricMatchersContaining, JestAssertion, ExpectStatic, MatchersObject, MatcherState } from '@vitest/expect';
3
3
  import _userEvent, { userEvent as userEvent$1 } from '@testing-library/user-event';
4
- import { MockInstance, spyOn as spyOn$1, Mock as Mock$1, MaybeMocked, MaybeMockedDeep, MaybePartiallyMocked, MaybePartiallyMockedDeep } from '@vitest/spy';
4
+ import { MockInstance, spyOn as spyOn$1, Mock, MaybeMocked, MaybeMockedDeep, MaybePartiallyMocked, MaybePartiallyMockedDeep } from '@vitest/spy';
5
5
  export * from '@vitest/spy';
6
6
  export { isMockFunction, mocks } from '@vitest/spy';
7
7
 
@@ -1257,11 +1257,7 @@ type Listener = (mock: MockInstance, args: unknown[]) => void;
1257
1257
  declare function onMockCall(callback: Listener): () => void;
1258
1258
  declare const spyOn: typeof spyOn$1;
1259
1259
  type Procedure = (...args: any[]) => any;
1260
- type Mock<T extends Procedure | any[] = any[], R = any> = T extends Procedure ? Mock$1<T> : T extends any[] ? Mock$1<(...args: T) => R> : never;
1261
1260
  declare function fn<T extends Procedure = Procedure>(implementation?: T): Mock<T>;
1262
- declare function fn<TArgs extends any[] = any, R = any>(): Mock<(...args: TArgs) => R>;
1263
- declare function fn<TArgs extends any[] = any[], R = any>(implementation: (...args: TArgs) => R): Mock<(...args: TArgs) => R>;
1264
- declare function fn<TArgs extends any[] = any[], R = any>(implementation?: (...args: TArgs) => R): Mock<(...args: TArgs) => R>;
1265
1261
  /**
1266
1262
  * Calls [`.mockClear()`](https://vitest.dev/api/mock#mockclear) on every mocked function. This will
1267
1263
  * only empty `.mock` state, it will not reset implementation.
@@ -1325,4 +1321,4 @@ declare module 'storybook/internal/csf' {
1325
1321
  }
1326
1322
  declare const expect: Expect;
1327
1323
 
1328
- export { type Mock, type UserEvent, type UserEventObject, buildQueries, clearAllMocks, configure, createEvent, expect, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, fireEvent, fn, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, logRoles, mocked, onMockCall, prettyDOM, prettyFormat, queries, queryAllByAltText, queryAllByAttribute, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByAttribute, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, queryHelpers, resetAllMocks, restoreAllMocks, screen, spyOn, userEvent, waitFor, waitForElementToBeRemoved, within };
1324
+ export { type UserEvent, type UserEventObject, buildQueries, clearAllMocks, configure, createEvent, expect, findAllByAltText, findAllByDisplayValue, findAllByLabelText, findAllByPlaceholderText, findAllByRole, findAllByTestId, findAllByText, findAllByTitle, findByAltText, findByDisplayValue, findByLabelText, findByPlaceholderText, findByRole, findByTestId, findByText, findByTitle, fireEvent, fn, getAllByAltText, getAllByDisplayValue, getAllByLabelText, getAllByPlaceholderText, getAllByRole, getAllByTestId, getAllByText, getAllByTitle, getByAltText, getByDisplayValue, getByLabelText, getByPlaceholderText, getByRole, getByTestId, getByText, getByTitle, getConfig, getDefaultNormalizer, getElementError, getNodeText, getQueriesForElement, getRoles, getSuggestedQuery, isInaccessible, logDOM, logRoles, mocked, onMockCall, prettyDOM, prettyFormat, queries, queryAllByAltText, queryAllByAttribute, queryAllByDisplayValue, queryAllByLabelText, queryAllByPlaceholderText, queryAllByRole, queryAllByTestId, queryAllByText, queryAllByTitle, queryByAltText, queryByAttribute, queryByDisplayValue, queryByLabelText, queryByPlaceholderText, queryByRole, queryByTestId, queryByText, queryByTitle, queryHelpers, resetAllMocks, restoreAllMocks, screen, spyOn, userEvent, waitFor, waitForElementToBeRemoved, within };