@chromatic-com/cypress 0.6.11 → 0.6.12

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.
@@ -56,6 +56,7 @@ interface StoryIdentifier {
56
56
  interface Parameters {
57
57
  [name: string]: any;
58
58
  }
59
+ type ControlType = 'object' | 'boolean' | 'check' | 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select' | 'number' | 'range' | 'file' | 'color' | 'date' | 'text';
59
60
  type ConditionalTest = {
60
61
  truthy?: boolean;
61
62
  } | {
@@ -71,12 +72,118 @@ type ConditionalValue = {
71
72
  global: string;
72
73
  };
73
74
  type Conditional = ConditionalValue & ConditionalTest;
75
+ interface ControlBase {
76
+ [key: string]: any;
77
+ /**
78
+ * @see https://storybook.js.org/docs/api/arg-types#controltype
79
+ */
80
+ type?: ControlType;
81
+ disable?: boolean;
82
+ }
83
+ type Control = ControlType | false | (ControlBase & (ControlBase | {
84
+ type: 'color';
85
+ /**
86
+ * @see https://storybook.js.org/docs/api/arg-types#controlpresetcolors
87
+ */
88
+ presetColors?: string[];
89
+ } | {
90
+ type: 'file';
91
+ /**
92
+ * @see https://storybook.js.org/docs/api/arg-types#controlaccept
93
+ */
94
+ accept?: string;
95
+ } | {
96
+ type: 'inline-check' | 'radio' | 'inline-radio' | 'select' | 'multi-select';
97
+ /**
98
+ * @see https://storybook.js.org/docs/api/arg-types#controllabels
99
+ */
100
+ labels?: {
101
+ [options: string]: string;
102
+ };
103
+ } | {
104
+ type: 'number' | 'range';
105
+ /**
106
+ * @see https://storybook.js.org/docs/api/arg-types#controlmax
107
+ */
108
+ max?: number;
109
+ /**
110
+ * @see https://storybook.js.org/docs/api/arg-types#controlmin
111
+ */
112
+ min?: number;
113
+ /**
114
+ * @see https://storybook.js.org/docs/api/arg-types#controlstep
115
+ */
116
+ step?: number;
117
+ }));
74
118
  interface InputType {
75
- name?: string;
119
+ /**
120
+ * @see https://storybook.js.org/docs/api/arg-types#control
121
+ */
122
+ control?: Control;
123
+ /**
124
+ * @see https://storybook.js.org/docs/api/arg-types#description
125
+ */
76
126
  description?: string;
77
- defaultValue?: any;
78
- type?: SBType | SBScalarType['name'];
127
+ /**
128
+ * @see https://storybook.js.org/docs/api/arg-types#if
129
+ */
79
130
  if?: Conditional;
131
+ /**
132
+ * @see https://storybook.js.org/docs/api/arg-types#mapping
133
+ */
134
+ mapping?: {
135
+ [key: string]: any;
136
+ };
137
+ /**
138
+ * @see https://storybook.js.org/docs/api/arg-types#name
139
+ */
140
+ name?: string;
141
+ /**
142
+ * @see https://storybook.js.org/docs/api/arg-types#options
143
+ */
144
+ options?: readonly any[];
145
+ /**
146
+ * @see https://storybook.js.org/docs/api/arg-types#table
147
+ */
148
+ table?: {
149
+ [key: string]: unknown;
150
+ /**
151
+ * @see https://storybook.js.org/docs/api/arg-types#tablecategory
152
+ */
153
+ category?: string;
154
+ /**
155
+ * @see https://storybook.js.org/docs/api/arg-types#tabledefaultvalue
156
+ */
157
+ defaultValue?: {
158
+ summary?: string;
159
+ detail?: string;
160
+ };
161
+ /**
162
+ * @see https://storybook.js.org/docs/api/arg-types#tabledisable
163
+ */
164
+ disable?: boolean;
165
+ /**
166
+ * @see https://storybook.js.org/docs/api/arg-types#tablesubcategory
167
+ */
168
+ subcategory?: string;
169
+ /**
170
+ * @see https://storybook.js.org/docs/api/arg-types#tabletype
171
+ */
172
+ type?: {
173
+ summary?: string;
174
+ detail?: string;
175
+ };
176
+ };
177
+ /**
178
+ * @see https://storybook.js.org/docs/api/arg-types#type
179
+ */
180
+ type?: SBType | SBScalarType['name'];
181
+ /**
182
+ * @see https://storybook.js.org/docs/api/arg-types#defaultvalue
183
+ *
184
+ * @deprecated Use `table.defaultValue.summary` instead.
185
+ */
186
+ defaultValue?: any;
80
187
  [key: string]: any;
81
188
  }
82
189
  interface StrictInputType extends InputType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chromatic-com/cypress",
3
- "version": "0.6.11",
3
+ "version": "0.6.12",
4
4
  "description": "Chromatic Visual Regression Testing for Cypress",
5
5
  "repository": {
6
6
  "type": "git",
@@ -61,7 +61,7 @@
61
61
  },
62
62
  "devDependencies": {
63
63
  "@chromatic-com/shared-e2e": "workspace:*",
64
- "@storybook/types": "^8.0.0",
64
+ "@storybook/types": "^8.1.5",
65
65
  "cypress": "^13.4.0",
66
66
  "start-server-and-test": "^2.0.3"
67
67
  },
@@ -73,12 +73,12 @@
73
73
  },
74
74
  "dependencies": {
75
75
  "@segment/analytics-node": "^1.1.0",
76
- "@storybook/addon-essentials": "^8.0.0",
76
+ "@storybook/addon-essentials": "^8.1.5",
77
77
  "@storybook/csf": "^0.1.0",
78
- "@storybook/manager-api": "^8.0.0",
79
- "@storybook/server-webpack5": "^8.0.0",
78
+ "@storybook/manager-api": "^8.1.5",
79
+ "@storybook/server-webpack5": "^8.1.5",
80
80
  "chrome-remote-interface": "^0.33.0",
81
81
  "rrweb-snapshot": "^2.0.0-alpha.11",
82
- "storybook": "^8.0.0-alpha.16"
82
+ "storybook": "^8.1.5"
83
83
  }
84
84
  }