creevey 0.8.1-sb7.4 → 0.8.2-fix-wait.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.
Files changed (64) hide show
  1. package/lib/cjs/client/addon/components/Tools.js +0 -2
  2. package/lib/cjs/client/addon/register.js +0 -2
  3. package/lib/cjs/client/addon/withCreevey.js +0 -4
  4. package/lib/cjs/client/web/142.js +2 -0
  5. package/lib/cjs/client/web/142.js.LICENSE.txt +12 -0
  6. package/lib/cjs/client/web/32.js +1 -0
  7. package/lib/cjs/client/web/551.js +1 -0
  8. package/lib/cjs/client/web/566.js +2 -0
  9. package/lib/cjs/client/web/566.js.LICENSE.txt +31 -0
  10. package/lib/cjs/client/web/691.js +2 -0
  11. package/lib/cjs/client/web/691.js.LICENSE.txt +8 -0
  12. package/lib/cjs/client/web/725.js +1 -0
  13. package/lib/cjs/client/web/main.js +1 -78
  14. package/lib/cjs/client/web/main.js.LICENSE.txt +15 -0
  15. package/lib/cjs/server/selenium/browser.js +10 -21
  16. package/lib/cjs/server/stories.js +0 -2
  17. package/lib/cjs/server/storybook/entry.js +0 -2
  18. package/lib/cjs/server/storybook/helpers.js +1 -1
  19. package/lib/cjs/server/storybook/providers/browser.js +0 -2
  20. package/lib/cjs/shared/index.js +0 -2
  21. package/lib/cjs/types.js +0 -3
  22. package/lib/esm/client/addon/Manager.js +0 -4
  23. package/lib/esm/client/addon/components/Tools.js +0 -2
  24. package/lib/esm/client/addon/register.js +0 -2
  25. package/lib/esm/client/addon/withCreevey.js +0 -4
  26. package/lib/esm/server/selenium/browser.js +11 -22
  27. package/lib/esm/server/stories.js +0 -2
  28. package/lib/esm/server/storybook/entry.js +0 -2
  29. package/lib/esm/server/storybook/helpers.js +1 -3
  30. package/lib/esm/server/storybook/providers/browser.js +0 -2
  31. package/lib/esm/server/storybook/providers/nodejs.js +0 -3
  32. package/lib/esm/shared/index.js +0 -2
  33. package/lib/esm/types.js +0 -3
  34. package/lib/types/client/addon/components/Addon.d.ts +0 -1
  35. package/lib/types/client/addon/components/Icons.d.ts +0 -1
  36. package/lib/types/client/addon/components/Panel.d.ts +0 -1
  37. package/lib/types/client/addon/components/TestSelect.d.ts +0 -1
  38. package/lib/types/client/addon/components/Tools.d.ts +0 -1
  39. package/lib/types/client/addon/decorator.d.ts +1 -1
  40. package/lib/types/client/shared/components/ImagesView/BlendView.d.ts +1 -3
  41. package/lib/types/client/shared/components/ImagesView/ImagesView.d.ts +0 -1
  42. package/lib/types/client/shared/components/ImagesView/SideBySideView.d.ts +1 -3
  43. package/lib/types/client/shared/components/ImagesView/SlideView.d.ts +1 -3
  44. package/lib/types/client/shared/components/ImagesView/SwapView.d.ts +1 -3
  45. package/lib/types/client/shared/components/PageFooter/PageFooter.d.ts +0 -1
  46. package/lib/types/client/shared/components/PageFooter/Paging.d.ts +0 -1
  47. package/lib/types/client/shared/components/PageHeader/ImagePreview.d.ts +1 -3
  48. package/lib/types/client/shared/components/PageHeader/PageHeader.d.ts +0 -1
  49. package/lib/types/client/shared/components/ResultsPage.d.ts +1 -3
  50. package/lib/types/client/web/CreeveyApp.d.ts +0 -1
  51. package/lib/types/client/web/CreeveyLoader.d.ts +1 -2
  52. package/lib/types/client/web/CreeveyView/SideBar/Checkbox.d.ts +1 -4
  53. package/lib/types/client/web/CreeveyView/SideBar/Search.d.ts +0 -1
  54. package/lib/types/client/web/CreeveyView/SideBar/SideBarHeader.d.ts +0 -1
  55. package/lib/types/client/web/CreeveyView/SideBar/SuiteLink.d.ts +14 -19
  56. package/lib/types/client/web/CreeveyView/SideBar/TestLink.d.ts +0 -1
  57. package/lib/types/client/web/CreeveyView/SideBar/TestStatusIcon.d.ts +1 -3
  58. package/lib/types/client/web/CreeveyView/SideBar/TestsStatus.d.ts +1 -3
  59. package/lib/types/client/web/CreeveyView/SideBar/Toggle.d.ts +0 -1
  60. package/lib/types/server/storybook/entry.d.ts +5 -4
  61. package/package.json +18 -21
  62. package/lib/cjs/client/web/19.js +0 -1
  63. package/lib/cjs/client/web/632.js +0 -43
  64. package/lib/cjs/client/web/794.js +0 -1
@@ -4,6 +4,21 @@ object-assign
4
4
  @license MIT
5
5
  */
6
6
 
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+
7
22
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
8
23
 
9
24
  /** @license React v0.20.2
@@ -40,10 +40,6 @@ var _utils = require("../utils");
40
40
 
41
41
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
42
42
 
43
- /* eslint-disable */
44
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
45
- //@ts-nocheck
46
- const storybookRootID = (0, _helpers.isStorybookVersionLessThan)(7) ? 'root' : 'storybook-root';
47
43
  const DOCKER_INTERNAL = 'host.docker.internal';
48
44
  let browserLogger = _logger.logger;
49
45
  let browserName = '';
@@ -120,10 +116,10 @@ function getUrlChecker(browser) {
120
116
  // We don't use any page load strategies except `NONE`
121
117
  // because other add significant delay and some of them don't work in earlier chrome versions
122
118
  // Browsers always load page successful even it's failed
123
- // So we just check `root` element
119
+ // So we just check `#root` element
124
120
 
125
- browserLogger.debug(`Checking ${_chalk.default.cyan(`#${storybookRootID}`)} existence on ${_chalk.default.magenta(url)}`);
126
- return source.includes(`id="${storybookRootID}"`);
121
+ browserLogger.debug(`Checking ${_chalk.default.cyan('#root')} existence on ${_chalk.default.magenta(url)}`);
122
+ return source.includes('<div id="root"></div>');
127
123
  } catch (error) {
128
124
  return false;
129
125
  }
@@ -140,19 +136,12 @@ async function waitForStorybook(browser) {
140
136
  isTimeout = true;
141
137
  }, 60000);
142
138
 
143
- while (wait) {
144
- if ((0, _helpers.isStorybookVersionLessThan)(7)) {
145
- wait = await browser.executeAsyncScript(function (SET_STORIES, callback) {
146
- if (typeof window.__STORYBOOK_ADDONS_CHANNEL__ == 'undefined') return callback(true);
147
- if (window.__STORYBOOK_ADDONS_CHANNEL__.last(SET_STORIES) == undefined) return callback(true);
148
- return callback(false);
149
- }, Events.SET_STORIES);
150
- } else {
151
- wait = await browser.executeAsyncScript(function (callback) {
152
- return callback(typeof window.__STORYBOOK_ADDONS_CHANNEL__ == 'undefined');
153
- });
154
- }
155
-
139
+ while (wait !== false) {
140
+ wait = await browser.executeAsyncScript(function (SET_STORIES, callback) {
141
+ if (typeof window.__STORYBOOK_ADDONS_CHANNEL__ == 'undefined') return callback(true);
142
+ if (window.__STORYBOOK_ADDONS_CHANNEL__.last(SET_STORIES) == undefined) return callback(true);
143
+ return callback(false);
144
+ }, Events.SET_STORIES);
156
145
  if (!wait) clearTimeout(initiateTimeout);
157
146
  }
158
147
 
@@ -592,7 +581,7 @@ async function switchStory() {
592
581
  parameters
593
582
  } = story;
594
583
  const {
595
- captureElement = `#${storybookRootID}`,
584
+ captureElement = '#root',
596
585
  waitForReady,
597
586
  ignoreElements
598
587
  } = parameters.creevey ?? {};
@@ -21,8 +21,6 @@ var _utils = require("./utils");
21
21
 
22
22
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
23
 
24
- /* eslint-disable */
25
- //@ts-nocheck
26
24
  function storyTestFabric(delay, testFn) {
27
25
  return async function storyTest() {
28
26
  delay ? await new Promise(resolve => setTimeout(resolve, delay)) : void 0;
@@ -9,8 +9,6 @@ var _addons = require("@storybook/addons");
9
9
 
10
10
  var _helpers = require("./helpers");
11
11
 
12
- /* eslint-disable */
13
- //@ts-nocheck
14
12
  const framework = (0, _helpers.getStorybookFramework)(); // eslint-disable-next-line @typescript-eslint/no-var-requires
15
13
 
16
14
  const core = require((0, _helpers.resolveFromStorybook)('@storybook/core-client'));
@@ -88,7 +88,7 @@ function getStorybookVersion() {
88
88
  // eslint-disable-next-line @typescript-eslint/no-var-requires
89
89
  const {
90
90
  version
91
- } = require(resolveFromStorybook('@storybook/core-server/package.json'));
91
+ } = require(resolveFromStorybook('@storybook/core/package.json'));
92
92
 
93
93
  return version;
94
94
  }
@@ -17,8 +17,6 @@ var _logger = require("../../logger");
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- /* eslint-disable */
21
- //@ts-nocheck
22
20
  const loadStories = async (_config, _options, storiesListener) => {
23
21
  if (_cluster.default.isPrimary) {
24
22
  return new Promise(resolve => {
@@ -9,8 +9,6 @@ var _lodash = require("lodash");
9
9
 
10
10
  var _serializeRegExp = require("./serializeRegExp");
11
11
 
12
- /* eslint-disable */
13
- //@ts-nocheck
14
12
  // NOTE: Copy-paste from storybook/api
15
13
  const combineParameters = function () {
16
14
  for (var _len = arguments.length, parameterSets = new Array(_len), _key = 0; _key < _len; _key++) {
package/lib/cjs/types.js CHANGED
@@ -17,9 +17,6 @@ exports.isWebpackMessage = isWebpackMessage;
17
17
  exports.isWorkerMessage = isWorkerMessage;
18
18
  exports.noop = noop;
19
19
 
20
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
21
- //@ts-nocheck
22
-
23
20
  /* eslint-disable @typescript-eslint/no-explicit-any */
24
21
 
25
22
  /* eslint-enable @typescript-eslint/no-explicit-any */
@@ -1,9 +1,5 @@
1
1
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
2
2
 
3
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4
- //@ts-nocheck
5
-
6
- /* eslint-disable */
7
3
  import { SET_STORIES, STORY_RENDERED } from '@storybook/core-events';
8
4
  import { denormalizeStoryParameters } from '../../shared';
9
5
  import { isDefined } from '../../types';
@@ -1,5 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
- //@ts-nocheck
3
1
  import React, { Fragment, useState, useEffect } from 'react';
4
2
  import { IconButton, Icons, Separator } from '@storybook/components';
5
3
  import { ForwardIcon, NextIcon } from './Icons';
@@ -1,5 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
- //@ts-nocheck
3
1
  import { addons, types } from '@storybook/addons';
4
2
  import React from 'react';
5
3
  import { Addon } from './components/Addon';
@@ -1,7 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
- // @ts-nocheck
3
-
4
- /* eslint-disable */
5
1
  import * as Events from '@storybook/core-events';
6
2
  import * as polyfill from 'event-source-polyfill';
7
3
  import { buildQueries, within } from '@storybook/testing-library';
@@ -1,6 +1,3 @@
1
- /* eslint-disable */
2
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
3
- //@ts-nocheck
4
1
  import chalk from 'chalk';
5
2
  import http from 'http';
6
3
  import https from 'https';
@@ -13,9 +10,8 @@ import { PageLoadStrategy } from 'selenium-webdriver/lib/capabilities';
13
10
  import { isDefined, noop } from '../../types';
14
11
  import { colors, logger } from '../logger';
15
12
  import { emitStoriesMessage, subscribeOn } from '../messages';
16
- import { importStorybookCoreEvents, isStorybookVersionLessThan } from '../storybook/helpers';
13
+ import { importStorybookCoreEvents } from '../storybook/helpers';
17
14
  import { isShuttingDown, LOCALHOST_REGEXP, runSequence } from '../utils';
18
- const storybookRootID = isStorybookVersionLessThan(7) ? 'root' : 'storybook-root';
19
15
  const DOCKER_INTERNAL = 'host.docker.internal';
20
16
  let browserLogger = logger;
21
17
  let browserName = '';
@@ -92,10 +88,10 @@ function getUrlChecker(browser) {
92
88
  // We don't use any page load strategies except `NONE`
93
89
  // because other add significant delay and some of them don't work in earlier chrome versions
94
90
  // Browsers always load page successful even it's failed
95
- // So we just check `root` element
91
+ // So we just check `#root` element
96
92
 
97
- browserLogger.debug(`Checking ${chalk.cyan(`#${storybookRootID}`)} existence on ${chalk.magenta(url)}`);
98
- return source.includes(`id="${storybookRootID}"`);
93
+ browserLogger.debug(`Checking ${chalk.cyan('#root')} existence on ${chalk.magenta(url)}`);
94
+ return source.includes('<div id="root"></div>');
99
95
  } catch (error) {
100
96
  return false;
101
97
  }
@@ -112,19 +108,12 @@ async function waitForStorybook(browser) {
112
108
  isTimeout = true;
113
109
  }, 60000);
114
110
 
115
- while (wait) {
116
- if (isStorybookVersionLessThan(7)) {
117
- wait = await browser.executeAsyncScript(function (SET_STORIES, callback) {
118
- if (typeof window.__STORYBOOK_ADDONS_CHANNEL__ == 'undefined') return callback(true);
119
- if (window.__STORYBOOK_ADDONS_CHANNEL__.last(SET_STORIES) == undefined) return callback(true);
120
- return callback(false);
121
- }, Events.SET_STORIES);
122
- } else {
123
- wait = await browser.executeAsyncScript(function (callback) {
124
- return callback(typeof window.__STORYBOOK_ADDONS_CHANNEL__ == 'undefined');
125
- });
126
- }
127
-
111
+ while (wait !== false) {
112
+ wait = await browser.executeAsyncScript(function (SET_STORIES, callback) {
113
+ if (typeof window.__STORYBOOK_ADDONS_CHANNEL__ == 'undefined') return callback(true);
114
+ if (window.__STORYBOOK_ADDONS_CHANNEL__.last(SET_STORIES) == undefined) return callback(true);
115
+ return callback(false);
116
+ }, Events.SET_STORIES);
128
117
  if (!wait) clearTimeout(initiateTimeout);
129
118
  }
130
119
 
@@ -559,7 +548,7 @@ export async function switchStory() {
559
548
  parameters
560
549
  } = story;
561
550
  const {
562
- captureElement = `#${storybookRootID}`,
551
+ captureElement = '#root',
563
552
  waitForReady,
564
553
  ignoreElements
565
554
  } = parameters.creevey ?? {};
@@ -1,5 +1,3 @@
1
- /* eslint-disable */
2
- //@ts-nocheck
3
1
  import path from 'path';
4
2
  import { mkdirSync, writeFileSync } from 'fs';
5
3
  import { createHash } from 'crypto';
@@ -1,5 +1,3 @@
1
- /* eslint-disable */
2
- //@ts-nocheck
3
1
  import { addons } from '@storybook/addons';
4
2
  import { getStorybookFramework, resolveFromStorybook } from './helpers';
5
3
  const framework = getStorybookFramework(); // eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -1,5 +1,3 @@
1
- /* eslint-disable */
2
- //@ts-nocheck
3
1
  import path from 'path';
4
2
  import resolveFrom from 'resolve-from';
5
3
  const supportedFrameworks = ['react', 'vue', 'vue3', 'angular', 'marionette', 'mithril', 'marko', 'html', 'svelte', 'riot', 'ember', 'preact', 'rax', 'aurelia', 'server', 'web-components'];
@@ -37,7 +35,7 @@ export function getStorybookVersion() {
37
35
  // eslint-disable-next-line @typescript-eslint/no-var-requires
38
36
  const {
39
37
  version
40
- } = require(resolveFromStorybook('@storybook/core-server/package.json'));
38
+ } = require(resolveFromStorybook('@storybook/core/package.json'));
41
39
 
42
40
  return version;
43
41
  }
@@ -1,5 +1,3 @@
1
- /* eslint-disable */
2
- //@ts-nocheck
3
1
  import cluster from 'cluster';
4
2
  import { loadStoriesFromBrowser } from '../../selenium';
5
3
  import { emitStoriesMessage, sendStoriesMessage, subscribeOn, subscribeOnWorker } from '../../messages';
@@ -1,6 +1,3 @@
1
- /* eslint-disable */
2
- //@ts-nocheck
3
-
4
1
  /* eslint-disable @typescript-eslint/no-var-requires, @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call,@typescript-eslint/no-unsafe-member-access,@typescript-eslint/ban-ts-comment */
5
2
  import path from 'path';
6
3
  import cluster from 'cluster';
@@ -1,5 +1,3 @@
1
- /* eslint-disable */
2
- //@ts-nocheck
3
1
  import { mapValues, mergeWith, cloneDeepWith } from 'lodash';
4
2
  import { deserializeRegExp, isSerializedRegExp, isRegExp, serializeRegExp } from './serializeRegExp'; // NOTE: Copy-paste from storybook/api
5
3
 
package/lib/esm/types.js CHANGED
@@ -1,6 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
- //@ts-nocheck
3
-
4
1
  /* eslint-disable @typescript-eslint/no-explicit-any */
5
2
 
6
3
  /* eslint-enable @typescript-eslint/no-explicit-any */
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CreeveyManager } from '../Manager';
3
2
  interface AddonProps {
4
3
  active?: boolean;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IconProps {
3
2
  width?: number;
4
3
  height?: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TestData } from '../../../types';
3
2
  interface PanelProps {
4
3
  tests: TestData[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TestData } from '../../../types';
3
2
  interface TestSelectProps {
4
3
  tests: TestData[];
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CreeveyManager } from '../Manager';
3
2
  interface ToolsProps {
4
3
  manager: CreeveyManager;
@@ -1 +1 @@
1
- export declare const decorators: import("@storybook/preview-api/dist/addons").MakeDecoratorResult[];
1
+ export declare const decorators: import("@storybook/addons").MakeDecoratorResult[];
@@ -1,5 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ViewPropsWithTheme } from './ImagesView';
3
- export declare const BlendView: React.FC<Pick<ViewPropsWithTheme, "diff" | "actual" | "expect"> & {
4
- theme?: import("@storybook/theming").Theme | undefined;
5
- }>;
3
+ export declare const BlendView: React.FC<import("@storybook/theming").AddOptionalTo<ViewPropsWithTheme, "theme">>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { Images, ImagesViewMode } from '../../../../types';
3
2
  import { Theme } from '@storybook/theming';
4
3
  export declare const themeBorderColors: {
@@ -1,5 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ViewPropsWithTheme } from './ImagesView';
3
- export declare const SideBySideView: React.FC<Pick<ViewPropsWithTheme, "diff" | "actual" | "expect"> & {
4
- theme?: import("@storybook/theming").Theme | undefined;
5
- }>;
3
+ export declare const SideBySideView: React.FC<import("@storybook/theming").AddOptionalTo<ViewPropsWithTheme, "theme">>;
@@ -1,5 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ViewPropsWithTheme } from './ImagesView';
3
- export declare const SlideView: React.FC<Pick<ViewPropsWithTheme, "diff" | "actual" | "expect"> & {
4
- theme?: import("@storybook/theming").Theme | undefined;
5
- }>;
3
+ export declare const SlideView: React.FC<import("@storybook/theming").AddOptionalTo<ViewPropsWithTheme, "theme">>;
@@ -1,5 +1,3 @@
1
1
  import React from 'react';
2
2
  import { ViewPropsWithTheme } from './ImagesView';
3
- export declare const SwapView: React.FC<Pick<ViewPropsWithTheme, "diff" | "actual" | "expect"> & {
4
- theme?: import("@storybook/theming").Theme | undefined;
5
- }>;
3
+ export declare const SwapView: React.FC<import("@storybook/theming").AddOptionalTo<ViewPropsWithTheme, "theme">>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface PageFooterProps {
3
2
  canApprove: boolean;
4
3
  retriesCount: number;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface PagingProps {
3
2
  activePage: number;
4
3
  onPageChange: (pageNumber: number) => void;
@@ -8,7 +8,5 @@ interface ImageSwapProps {
8
8
  theme: Theme;
9
9
  error?: boolean;
10
10
  }
11
- export declare const ImagePreview: React.FC<Pick<ImageSwapProps, "error" | "url" | "imageName" | "onClick" | "isActive"> & {
12
- theme?: Theme | undefined;
13
- }>;
11
+ export declare const ImagePreview: React.FC<import("@storybook/theming").AddOptionalTo<ImageSwapProps, "theme">>;
14
12
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ImagesViewMode, Images } from '../../../../types';
3
2
  interface PageHeaderProps {
4
3
  title: string[];
@@ -14,7 +14,5 @@ interface TestResultsProps {
14
14
  height?: string;
15
15
  }
16
16
  export declare function ResultsPageInternal({ id, path, results, approved, theme, onImageApprove, showTitle, height, }: TestResultsProps): JSX.Element;
17
- export declare const ResultsPage: React.FC<Pick<TestResultsProps, "results" | "id" | "path" | "approved" | "height" | "showTitle" | "onImageApprove"> & {
18
- theme?: Theme | undefined;
19
- }>;
17
+ export declare const ResultsPage: React.FC<import("@storybook/theming").AddOptionalTo<TestResultsProps, "theme">>;
20
18
  export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CreeveySuite } from '../../types';
3
2
  import { CreeveyClientApi } from '../shared/creeveyClientApi';
4
3
  export interface CreeveyAppProps {
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const rotate360: import("@storybook/theming/dist/create-df04f5c3").K;
1
+ export declare const rotate360: import("@storybook/theming").Keyframes;
3
2
  export declare function CreeveyLoader(): JSX.Element;
@@ -8,10 +8,7 @@ interface BooleanProps {
8
8
  interface CheckboxState {
9
9
  indeterminate: boolean;
10
10
  }
11
- export declare const CheckboxContainer: import("@storybook/theming").StyledComponent<{
12
- theme?: Theme | undefined;
13
- as?: React.ElementType<any> | undefined;
14
- }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
11
+ export declare const CheckboxContainer: import("@storybook/theming").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, Pick<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement>, keyof React.HTMLAttributes<HTMLDivElement>>, Theme>;
15
12
  export declare class Checkbox extends React.Component<BooleanProps, CheckboxState> {
16
13
  state: CheckboxState;
17
14
  handleIndeterminateChange: (value: boolean) => void;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface SearchProps {
3
2
  onChange: (arg: string) => void;
4
3
  value: string;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TestsStatusProps } from './TestsStatus';
3
2
  import { CreeveyViewFilter } from '../../../shared/helpers';
4
3
  interface SideBarHeaderProps {
@@ -6,33 +6,28 @@ export interface SuiteLinkProps {
6
6
  suite: CreeveySuite;
7
7
  'data-testid'?: string;
8
8
  }
9
- export declare const Container: React.FC<Pick<{
10
- theme?: Theme | undefined;
11
- as?: React.ElementType<any> | undefined;
12
- } & {
9
+ export declare const Container: React.FC<import("@storybook/theming").AddOptionalTo<Pick<React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & Pick<{
13
10
  theme: Theme;
14
11
  disabled?: boolean | undefined;
15
- } & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
16
- children?: React.ReactNode;
17
- }, "as" | keyof React.ClassAttributes<HTMLDivElement> | keyof React.HTMLAttributes<HTMLDivElement> | "disabled"> & {
18
- theme?: Theme | undefined;
19
- }>;
20
- export declare const Button: React.FC<Pick<{
12
+ }, "disabled"> & {
21
13
  theme?: Theme | undefined;
22
- as?: React.ElementType<any> | undefined;
23
14
  } & {
15
+ children?: React.ReactNode;
16
+ }, "key" | "theme" | keyof React.HTMLAttributes<HTMLDivElement> | "disabled"> & {
17
+ ref?: React.RefObject<HTMLDivElement> | ((instance: HTMLDivElement | null) => void) | null | undefined;
18
+ }, "theme">>;
19
+ export declare const Button: React.FC<import("@storybook/theming").AddOptionalTo<Pick<React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & Pick<{
24
20
  theme: Theme;
25
21
  active?: boolean | undefined;
26
22
  focused?: boolean | undefined;
27
- } & React.ClassAttributes<HTMLButtonElement> & React.ButtonHTMLAttributes<HTMLButtonElement> & {
28
- children?: React.ReactNode;
29
- }, "as" | "active" | keyof React.ClassAttributes<HTMLButtonElement> | keyof React.ButtonHTMLAttributes<HTMLButtonElement> | "focused"> & {
23
+ }, "active" | "focused"> & {
30
24
  theme?: Theme | undefined;
31
- }>;
32
- export declare const SuiteContainer: import("@storybook/theming").StyledComponent<{
33
- theme?: Theme | undefined;
34
- as?: React.ElementType<any> | undefined;
35
25
  } & {
26
+ children?: React.ReactNode;
27
+ }, "key" | "theme" | keyof React.ButtonHTMLAttributes<HTMLButtonElement> | "active" | "focused"> & {
28
+ ref?: ((instance: HTMLButtonElement | null) => void) | React.RefObject<HTMLButtonElement> | null | undefined;
29
+ }, "theme">>;
30
+ export declare const SuiteContainer: import("@storybook/theming").StyledComponent<React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {
36
31
  padding: number;
37
- }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
32
+ }, Theme>;
38
33
  export declare function SuiteLink({ title, suite, 'data-testid': dataTid }: SuiteLinkProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { CreeveyTest } from '../../../../types';
3
2
  export interface TestLinkProps {
4
3
  title: string;
@@ -7,6 +7,4 @@ export interface TestStatusIconProps {
7
7
  skip?: string | boolean;
8
8
  theme: Theme;
9
9
  }
10
- export declare const TestStatusIcon: React.FC<Pick<TestStatusIconProps, "skip" | "status" | "inverted"> & {
11
- theme?: Theme | undefined;
12
- }>;
10
+ export declare const TestStatusIcon: React.FC<import("@storybook/theming").AddOptionalTo<TestStatusIconProps, "theme">>;
@@ -6,6 +6,4 @@ export interface TestsStatusProps extends CreeveyTestsStatus {
6
6
  onClickByStatus: (value: TestStatus) => void;
7
7
  theme?: Theme;
8
8
  }
9
- export declare const TestsStatus: React.FC<Pick<TestsStatusProps, "onClickByStatus" | "successCount" | "failedCount" | "pendingCount" | "skippedCount"> & {
10
- theme?: Theme | undefined;
11
- }>;
9
+ export declare const TestsStatus: React.FC<import("@storybook/theming").AddOptionalTo<TestsStatusProps, "theme">>;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface ToggleProps {
3
2
  value?: boolean;
4
3
  onChange: (val: boolean) => void;
@@ -1,16 +1,17 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="webpack-env" />
3
- declare const start: typeof import("@storybook/preview-api/dist/core-client").start;
4
- export declare const channel: import("@storybook/channels/dist/main-c55d8855").C;
3
+ import type { StoryApi } from '@storybook/addons';
4
+ declare const start: typeof import("@storybook/core-client").start;
5
+ export declare const channel: import("@storybook/channels").Channel;
5
6
  declare type ClientApi = ReturnType<typeof start>['clientApi'];
6
7
  export declare const clientApi: ClientApi;
7
- export declare const forceReRender: () => void;
8
+ export declare const forceReRender: (() => never) | (() => void);
8
9
  export declare const storiesOf: (kind: string, m: NodeModule) => StoryApi;
9
10
  export declare const configure: (...args: unknown[]) => unknown;
10
11
  export declare const addDecorator: ClientApi['addDecorator'];
11
12
  export declare const addParameters: ClientApi['addParameters'];
12
13
  export declare const clearDecorators: ClientApi['clearDecorators'];
13
- export declare const setAddon: any;
14
+ export declare const setAddon: (() => never) | ((addon: any) => void);
14
15
  export declare const getStorybook: ClientApi['getStorybook'];
15
16
  export declare const raw: ClientApi['raw'];
16
17
  export {};