storybook 9.0.0-alpha.2 → 9.0.0-alpha.20

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 (159) hide show
  1. package/README.md +1 -1
  2. package/assets/docs/addon-backgrounds.gif +0 -0
  3. package/assets/docs/addon-controls-args-annotated.png +0 -0
  4. package/assets/docs/addon-controls-args-background-color.png +0 -0
  5. package/assets/docs/addon-controls-args-background-string.png +0 -0
  6. package/assets/docs/addon-controls-args-docs.png +0 -0
  7. package/assets/docs/addon-controls-args-logging.png +0 -0
  8. package/assets/docs/addon-controls-args-no-annotation.png +0 -0
  9. package/assets/docs/addon-controls-args-reflow-slider.png +0 -0
  10. package/assets/docs/addon-controls-args-reflow.png +0 -0
  11. package/assets/docs/addon-controls-args-template.png +0 -0
  12. package/assets/docs/addon-controls-expanded.png +0 -0
  13. package/assets/docs/addon-controls-hero.gif +0 -0
  14. package/assets/docs/addon-controls-install.png +0 -0
  15. package/assets/docs/hero.gif +0 -0
  16. package/assets/docs/highlight.png +0 -0
  17. package/assets/docs/viewport.png +0 -0
  18. package/bin/index.cjs +2 -2
  19. package/dist/actions/decorator.d.ts +6 -0
  20. package/dist/actions/decorator.js +138 -0
  21. package/dist/actions/index.cjs +126 -0
  22. package/dist/actions/index.d.ts +102 -0
  23. package/dist/actions/index.js +111 -0
  24. package/dist/actions/preview.cjs +164 -0
  25. package/dist/actions/preview.d.ts +54 -0
  26. package/dist/actions/preview.js +155 -0
  27. package/dist/backgrounds/index.cjs +148 -0
  28. package/dist/backgrounds/index.d.ts +91 -0
  29. package/dist/backgrounds/index.js +130 -0
  30. package/dist/backgrounds/preview.cjs +143 -0
  31. package/dist/backgrounds/preview.d.ts +54 -0
  32. package/dist/backgrounds/preview.js +127 -0
  33. package/dist/bin/index.cjs +66 -89
  34. package/dist/bin/index.js +62 -85
  35. package/dist/builder-manager/index.cjs +523 -540
  36. package/dist/builder-manager/index.js +544 -561
  37. package/dist/channels/index.cjs +1026 -981
  38. package/dist/channels/index.js +1194 -1165
  39. package/dist/cli/bin/index.cjs +483 -483
  40. package/dist/cli/bin/index.js +495 -495
  41. package/dist/cli/index.cjs +2279 -2295
  42. package/dist/cli/index.d.ts +4 -8
  43. package/dist/cli/index.js +740 -756
  44. package/dist/client-logger/index.cjs +56 -88
  45. package/dist/client-logger/index.js +41 -47
  46. package/dist/common/index.cjs +2496 -2480
  47. package/dist/common/index.d.ts +5 -29
  48. package/dist/common/index.js +2679 -2663
  49. package/dist/component-testing/index.cjs +23 -0
  50. package/dist/component-testing/index.d.ts +3 -0
  51. package/dist/component-testing/index.js +5 -0
  52. package/dist/component-testing/preview.cjs +40 -0
  53. package/dist/component-testing/preview.d.ts +5 -0
  54. package/dist/component-testing/preview.js +25 -0
  55. package/dist/components/index.cjs +11709 -20418
  56. package/dist/components/index.d.ts +94 -346
  57. package/dist/components/index.js +5827 -19157
  58. package/dist/controls/decorator.d.ts +5 -0
  59. package/dist/controls/decorator.js +8 -0
  60. package/dist/controls/index.cjs +26 -0
  61. package/dist/controls/index.d.ts +39 -0
  62. package/dist/controls/index.js +6 -0
  63. package/dist/controls/preview.cjs +26 -0
  64. package/dist/controls/preview.d.ts +54 -0
  65. package/dist/controls/preview.js +9 -0
  66. package/dist/core-events/index.cjs +91 -106
  67. package/dist/core-events/index.d.ts +139 -104
  68. package/dist/core-events/index.js +79 -94
  69. package/dist/core-server/index.cjs +14413 -13924
  70. package/dist/core-server/index.d.ts +270 -3
  71. package/dist/core-server/index.js +14003 -13519
  72. package/dist/core-server/presets/common-manager.css +170 -0
  73. package/dist/core-server/presets/common-manager.js +12099 -17
  74. package/dist/core-server/presets/common-preset.cjs +2760 -2914
  75. package/dist/core-server/presets/common-preset.js +2852 -3007
  76. package/dist/csf/index.cjs +76 -120
  77. package/dist/csf/index.d.ts +2 -6
  78. package/dist/csf/index.js +69 -113
  79. package/dist/csf-tools/index.cjs +412 -403
  80. package/dist/csf-tools/index.d.ts +0 -4
  81. package/dist/csf-tools/index.js +410 -401
  82. package/dist/docs-tools/index.cjs +2569 -575
  83. package/dist/docs-tools/index.d.ts +2 -2
  84. package/dist/docs-tools/index.js +2557 -564
  85. package/dist/highlight/index.cjs +27 -0
  86. package/dist/highlight/index.d.ts +17 -0
  87. package/dist/highlight/index.js +7 -0
  88. package/dist/highlight/preview.cjs +81 -0
  89. package/dist/highlight/preview.d.ts +54 -0
  90. package/dist/highlight/preview.js +67 -0
  91. package/dist/instrumenter/index.cjs +2207 -2342
  92. package/dist/instrumenter/index.d.ts +8 -7
  93. package/dist/instrumenter/index.js +2438 -2620
  94. package/dist/manager/globals-module-info.cjs +290 -151
  95. package/dist/manager/globals-module-info.d.ts +1 -1
  96. package/dist/manager/globals-module-info.js +274 -135
  97. package/dist/manager/globals-runtime.js +60016 -28331
  98. package/dist/manager/globals.cjs +23 -19
  99. package/dist/manager/globals.d.ts +8 -5
  100. package/dist/manager/globals.js +10 -6
  101. package/dist/manager/runtime.js +4645 -3946
  102. package/dist/manager-api/index.cjs +4228 -3833
  103. package/dist/manager-api/index.d.ts +398 -102
  104. package/dist/manager-api/index.js +3676 -3291
  105. package/dist/manager-errors.d.ts +25 -1
  106. package/dist/manager-errors.js +42 -26
  107. package/dist/measure/index.cjs +474 -0
  108. package/dist/measure/index.d.ts +66 -0
  109. package/dist/measure/index.js +462 -0
  110. package/dist/measure/preview.cjs +464 -0
  111. package/dist/measure/preview.d.ts +59 -0
  112. package/dist/measure/preview.js +448 -0
  113. package/dist/outline/index.cjs +528 -0
  114. package/dist/outline/index.d.ts +66 -0
  115. package/dist/outline/index.js +500 -0
  116. package/dist/outline/preview.cjs +518 -0
  117. package/dist/outline/preview.d.ts +59 -0
  118. package/dist/outline/preview.js +486 -0
  119. package/dist/preview/globals.cjs +21 -17
  120. package/dist/preview/globals.d.ts +4 -1
  121. package/dist/preview/globals.js +6 -2
  122. package/dist/preview/runtime.js +45697 -6618
  123. package/dist/preview-api/index.cjs +1363 -1898
  124. package/dist/preview-api/index.d.ts +449 -498
  125. package/dist/preview-api/index.js +1622 -2095
  126. package/dist/preview-errors.cjs +99 -82
  127. package/dist/preview-errors.d.ts +25 -1
  128. package/dist/preview-errors.js +110 -94
  129. package/dist/router/index.cjs +847 -871
  130. package/dist/router/index.js +193 -199
  131. package/dist/server-errors.cjs +156 -125
  132. package/dist/server-errors.d.ts +28 -2
  133. package/dist/server-errors.js +150 -119
  134. package/dist/telemetry/index.cjs +1050 -1977
  135. package/dist/telemetry/index.d.ts +26 -5
  136. package/dist/telemetry/index.js +1085 -2008
  137. package/dist/test/index.cjs +35686 -0
  138. package/dist/test/index.d.ts +186 -0
  139. package/dist/test/index.js +33752 -0
  140. package/dist/test/preview.cjs +15870 -0
  141. package/dist/test/preview.d.ts +54 -0
  142. package/dist/test/preview.js +14441 -0
  143. package/dist/test/spy.cjs +258 -0
  144. package/dist/test/spy.d.ts +66 -0
  145. package/dist/test/spy.js +240 -0
  146. package/dist/theming/create.cjs +79 -2269
  147. package/dist/theming/create.js +67 -841
  148. package/dist/theming/index.cjs +1065 -3232
  149. package/dist/theming/index.js +951 -1719
  150. package/dist/types/index.cjs +11 -12
  151. package/dist/types/index.d.ts +612 -157
  152. package/dist/types/index.js +1 -2
  153. package/dist/viewport/index.cjs +310 -0
  154. package/dist/viewport/index.d.ts +320 -0
  155. package/dist/viewport/index.js +290 -0
  156. package/dist/viewport/preview.cjs +35 -0
  157. package/dist/viewport/preview.d.ts +68 -0
  158. package/dist/viewport/preview.js +19 -0
  159. package/package.json +359 -12
@@ -1,7 +1,6 @@
1
1
  // src/types/modules/addons.ts
2
2
  var r = /* @__PURE__ */ ((e) => (e.TAB = "tab", e.PANEL = "panel", e.TOOL = "tool", e.TOOLEXTRA = "toolextra", e.PREVIEW = "preview", e.experimental_PAGE =
3
- "page", e.experimental_SIDEBAR_BOTTOM = "sidebar-bottom", e.experimental_SIDEBAR_TOP = "sidebar-top", e.experimental_TEST_PROVIDER = "test-p\
4
- rovider", e))(r || {});
3
+ "page", e.experimental_TEST_PROVIDER = "test-provider", e))(r || {});
5
4
  export {
6
5
  r as Addon_TypesEnum
7
6
  };
@@ -0,0 +1,310 @@
1
+ "use strict";
2
+ var o = Object.defineProperty;
3
+ var n = Object.getOwnPropertyDescriptor;
4
+ var l = Object.getOwnPropertyNames;
5
+ var m = Object.prototype.hasOwnProperty;
6
+ var a = (t, e) => {
7
+ for (var i in e)
8
+ o(t, i, { get: e[i], enumerable: !0 });
9
+ }, y = (t, e, i, x) => {
10
+ if (e && typeof e == "object" || typeof e == "function")
11
+ for (let p of l(e))
12
+ !m.call(t, p) && p !== i && o(t, p, { get: () => e[p], enumerable: !(x = n(e, p)) || x.enumerable });
13
+ return t;
14
+ };
15
+ var r = (t) => y(o({}, "__esModule", { value: !0 }), t);
16
+
17
+ // src/viewport/index.ts
18
+ var T = {};
19
+ a(T, {
20
+ ADDON_ID: () => h,
21
+ DEFAULT_VIEWPORT: () => g,
22
+ INITIAL_VIEWPORTS: () => b,
23
+ MINIMAL_VIEWPORTS: () => I,
24
+ PANEL_ID: () => d,
25
+ PARAM_KEY: () => s,
26
+ TOOL_ID: () => w,
27
+ initialGlobals: () => A,
28
+ responsiveViewport: () => S
29
+ });
30
+ module.exports = r(T);
31
+
32
+ // src/viewport/constants.ts
33
+ var h = "storybook/viewport", s = "viewport", d = `${h}/panel`, w = `${h}/tool`;
34
+
35
+ // src/viewport/defaults.ts
36
+ var P = {
37
+ iphone5: {
38
+ name: "iPhone 5",
39
+ styles: {
40
+ height: "568px",
41
+ width: "320px"
42
+ },
43
+ type: "mobile"
44
+ },
45
+ iphone6: {
46
+ name: "iPhone 6",
47
+ styles: {
48
+ height: "667px",
49
+ width: "375px"
50
+ },
51
+ type: "mobile"
52
+ },
53
+ iphone6p: {
54
+ name: "iPhone 6 Plus",
55
+ styles: {
56
+ height: "736px",
57
+ width: "414px"
58
+ },
59
+ type: "mobile"
60
+ },
61
+ iphone8p: {
62
+ name: "iPhone 8 Plus",
63
+ styles: {
64
+ height: "736px",
65
+ width: "414px"
66
+ },
67
+ type: "mobile"
68
+ },
69
+ iphonex: {
70
+ name: "iPhone X",
71
+ styles: {
72
+ height: "812px",
73
+ width: "375px"
74
+ },
75
+ type: "mobile"
76
+ },
77
+ iphonexr: {
78
+ name: "iPhone XR",
79
+ styles: {
80
+ height: "896px",
81
+ width: "414px"
82
+ },
83
+ type: "mobile"
84
+ },
85
+ iphonexsmax: {
86
+ name: "iPhone XS Max",
87
+ styles: {
88
+ height: "896px",
89
+ width: "414px"
90
+ },
91
+ type: "mobile"
92
+ },
93
+ iphonese2: {
94
+ name: "iPhone SE (2nd generation)",
95
+ styles: {
96
+ height: "667px",
97
+ width: "375px"
98
+ },
99
+ type: "mobile"
100
+ },
101
+ iphone12mini: {
102
+ name: "iPhone 12 mini",
103
+ styles: {
104
+ height: "812px",
105
+ width: "375px"
106
+ },
107
+ type: "mobile"
108
+ },
109
+ iphone12: {
110
+ name: "iPhone 12",
111
+ styles: {
112
+ height: "844px",
113
+ width: "390px"
114
+ },
115
+ type: "mobile"
116
+ },
117
+ iphone12promax: {
118
+ name: "iPhone 12 Pro Max",
119
+ styles: {
120
+ height: "926px",
121
+ width: "428px"
122
+ },
123
+ type: "mobile"
124
+ },
125
+ iphoneSE3: {
126
+ name: "iPhone SE 3rd generation",
127
+ styles: {
128
+ height: "667px",
129
+ width: "375px"
130
+ },
131
+ type: "mobile"
132
+ },
133
+ iphone13: {
134
+ name: "iPhone 13",
135
+ styles: {
136
+ height: "844px",
137
+ width: "390px"
138
+ },
139
+ type: "mobile"
140
+ },
141
+ iphone13pro: {
142
+ name: "iPhone 13 Pro",
143
+ styles: {
144
+ height: "844px",
145
+ width: "390px"
146
+ },
147
+ type: "mobile"
148
+ },
149
+ iphone13promax: {
150
+ name: "iPhone 13 Pro Max",
151
+ styles: {
152
+ height: "926px",
153
+ width: "428px"
154
+ },
155
+ type: "mobile"
156
+ },
157
+ iphone14: {
158
+ name: "iPhone 14",
159
+ styles: {
160
+ height: "844px",
161
+ width: "390px"
162
+ },
163
+ type: "mobile"
164
+ },
165
+ iphone14pro: {
166
+ name: "iPhone 14 Pro",
167
+ styles: {
168
+ height: "852px",
169
+ width: "393px"
170
+ },
171
+ type: "mobile"
172
+ },
173
+ iphone14promax: {
174
+ name: "iPhone 14 Pro Max",
175
+ styles: {
176
+ height: "932px",
177
+ width: "430px"
178
+ },
179
+ type: "mobile"
180
+ },
181
+ ipad: {
182
+ name: "iPad",
183
+ styles: {
184
+ height: "1024px",
185
+ width: "768px"
186
+ },
187
+ type: "tablet"
188
+ },
189
+ ipad10p: {
190
+ name: "iPad Pro 10.5-in",
191
+ styles: {
192
+ height: "1112px",
193
+ width: "834px"
194
+ },
195
+ type: "tablet"
196
+ },
197
+ ipad11p: {
198
+ name: "iPad Pro 11-in",
199
+ styles: {
200
+ height: "1194px",
201
+ width: "834px"
202
+ },
203
+ type: "tablet"
204
+ },
205
+ ipad12p: {
206
+ name: "iPad Pro 12.9-in",
207
+ styles: {
208
+ height: "1366px",
209
+ width: "1024px"
210
+ },
211
+ type: "tablet"
212
+ },
213
+ galaxys5: {
214
+ name: "Galaxy S5",
215
+ styles: {
216
+ height: "640px",
217
+ width: "360px"
218
+ },
219
+ type: "mobile"
220
+ },
221
+ galaxys9: {
222
+ name: "Galaxy S9",
223
+ styles: {
224
+ height: "740px",
225
+ width: "360px"
226
+ },
227
+ type: "mobile"
228
+ },
229
+ nexus5x: {
230
+ name: "Nexus 5X",
231
+ styles: {
232
+ height: "660px",
233
+ width: "412px"
234
+ },
235
+ type: "mobile"
236
+ },
237
+ nexus6p: {
238
+ name: "Nexus 6P",
239
+ styles: {
240
+ height: "732px",
241
+ width: "412px"
242
+ },
243
+ type: "mobile"
244
+ },
245
+ pixel: {
246
+ name: "Pixel",
247
+ styles: {
248
+ height: "960px",
249
+ width: "540px"
250
+ },
251
+ type: "mobile"
252
+ },
253
+ pixelxl: {
254
+ name: "Pixel XL",
255
+ styles: {
256
+ height: "1280px",
257
+ width: "720px"
258
+ },
259
+ type: "mobile"
260
+ }
261
+ }, b = P, g = "responsive", I = {
262
+ mobile1: {
263
+ name: "Small mobile",
264
+ styles: {
265
+ height: "568px",
266
+ width: "320px"
267
+ },
268
+ type: "mobile"
269
+ },
270
+ mobile2: {
271
+ name: "Large mobile",
272
+ styles: {
273
+ height: "896px",
274
+ width: "414px"
275
+ },
276
+ type: "mobile"
277
+ },
278
+ tablet: {
279
+ name: "Tablet",
280
+ styles: {
281
+ height: "1112px",
282
+ width: "834px"
283
+ },
284
+ type: "tablet"
285
+ },
286
+ desktop: {
287
+ name: "Desktop",
288
+ styles: {
289
+ height: "1024px",
290
+ width: "1280px"
291
+ },
292
+ type: "desktop"
293
+ }
294
+ };
295
+
296
+ // src/viewport/preview.ts
297
+ var f = require("storybook/preview-api");
298
+ var A = {
299
+ [s]: { value: void 0, isRotated: !1 }
300
+ };
301
+
302
+ // src/viewport/responsiveViewport.tsx
303
+ var S = {
304
+ name: "Reset viewport",
305
+ styles: {
306
+ height: "100%",
307
+ width: "100%"
308
+ },
309
+ type: "desktop"
310
+ };
@@ -0,0 +1,320 @@
1
+ import { NormalizedProjectAnnotations, ProjectAnnotations, ComposedStoryFn } from 'storybook/internal/types';
2
+
3
+ declare const ADDON_ID = "storybook/viewport";
4
+ declare const PARAM_KEY = "viewport";
5
+ declare const PANEL_ID = "storybook/viewport/panel";
6
+ declare const TOOL_ID = "storybook/viewport/tool";
7
+
8
+ interface Viewport {
9
+ name: string;
10
+ styles: ViewportStyles;
11
+ type: 'desktop' | 'mobile' | 'tablet' | 'other';
12
+ }
13
+ interface ViewportStyles {
14
+ height: string;
15
+ width: string;
16
+ }
17
+ type ViewportMap = Record<string, Viewport>;
18
+ type GlobalState = {
19
+ /**
20
+ * When set, the viewport is applied and cannot be changed using the toolbar. Must match the key
21
+ * of one of the available viewports.
22
+ */
23
+ value: string | undefined;
24
+ /**
25
+ * When true the viewport applied will be rotated 90°, e.g. it will rotate from portrait to
26
+ * landscape orientation.
27
+ */
28
+ isRotated: boolean;
29
+ };
30
+ type GlobalStateUpdate = Partial<GlobalState>;
31
+ interface ViewportParameters {
32
+ /**
33
+ * Viewport configuration
34
+ *
35
+ * @see https://storybook.js.org/docs/essentials/viewport#parameters
36
+ */
37
+ viewport: {
38
+ /**
39
+ * Remove the addon panel and disable the addon's behavior . If you wish to turn off this addon
40
+ * for the entire Storybook, you should do so when registering addon-essentials
41
+ *
42
+ * @see https://storybook.js.org/docs/essentials/index#disabling-addons
43
+ */
44
+ disable?: boolean;
45
+ /**
46
+ * Specify the available viewports. The width and height values must include the unit, e.g.
47
+ * '320px'.
48
+ */
49
+ options: Record<string, Viewport>;
50
+ };
51
+ }
52
+ interface ViewportGlobals {
53
+ /**
54
+ * Viewport configuration
55
+ *
56
+ * @see https://storybook.js.org/docs/essentials/viewport#globals
57
+ */
58
+ viewport: {
59
+ [key: string]: GlobalState | GlobalState['value'];
60
+ };
61
+ }
62
+
63
+ declare const INITIAL_VIEWPORTS_DATA: {
64
+ readonly iphone5: {
65
+ readonly name: "iPhone 5";
66
+ readonly styles: {
67
+ readonly height: "568px";
68
+ readonly width: "320px";
69
+ };
70
+ readonly type: "mobile";
71
+ };
72
+ readonly iphone6: {
73
+ readonly name: "iPhone 6";
74
+ readonly styles: {
75
+ readonly height: "667px";
76
+ readonly width: "375px";
77
+ };
78
+ readonly type: "mobile";
79
+ };
80
+ readonly iphone6p: {
81
+ readonly name: "iPhone 6 Plus";
82
+ readonly styles: {
83
+ readonly height: "736px";
84
+ readonly width: "414px";
85
+ };
86
+ readonly type: "mobile";
87
+ };
88
+ readonly iphone8p: {
89
+ readonly name: "iPhone 8 Plus";
90
+ readonly styles: {
91
+ readonly height: "736px";
92
+ readonly width: "414px";
93
+ };
94
+ readonly type: "mobile";
95
+ };
96
+ readonly iphonex: {
97
+ readonly name: "iPhone X";
98
+ readonly styles: {
99
+ readonly height: "812px";
100
+ readonly width: "375px";
101
+ };
102
+ readonly type: "mobile";
103
+ };
104
+ readonly iphonexr: {
105
+ readonly name: "iPhone XR";
106
+ readonly styles: {
107
+ readonly height: "896px";
108
+ readonly width: "414px";
109
+ };
110
+ readonly type: "mobile";
111
+ };
112
+ readonly iphonexsmax: {
113
+ readonly name: "iPhone XS Max";
114
+ readonly styles: {
115
+ readonly height: "896px";
116
+ readonly width: "414px";
117
+ };
118
+ readonly type: "mobile";
119
+ };
120
+ readonly iphonese2: {
121
+ readonly name: "iPhone SE (2nd generation)";
122
+ readonly styles: {
123
+ readonly height: "667px";
124
+ readonly width: "375px";
125
+ };
126
+ readonly type: "mobile";
127
+ };
128
+ readonly iphone12mini: {
129
+ readonly name: "iPhone 12 mini";
130
+ readonly styles: {
131
+ readonly height: "812px";
132
+ readonly width: "375px";
133
+ };
134
+ readonly type: "mobile";
135
+ };
136
+ readonly iphone12: {
137
+ readonly name: "iPhone 12";
138
+ readonly styles: {
139
+ readonly height: "844px";
140
+ readonly width: "390px";
141
+ };
142
+ readonly type: "mobile";
143
+ };
144
+ readonly iphone12promax: {
145
+ readonly name: "iPhone 12 Pro Max";
146
+ readonly styles: {
147
+ readonly height: "926px";
148
+ readonly width: "428px";
149
+ };
150
+ readonly type: "mobile";
151
+ };
152
+ readonly iphoneSE3: {
153
+ readonly name: "iPhone SE 3rd generation";
154
+ readonly styles: {
155
+ readonly height: "667px";
156
+ readonly width: "375px";
157
+ };
158
+ readonly type: "mobile";
159
+ };
160
+ readonly iphone13: {
161
+ readonly name: "iPhone 13";
162
+ readonly styles: {
163
+ readonly height: "844px";
164
+ readonly width: "390px";
165
+ };
166
+ readonly type: "mobile";
167
+ };
168
+ readonly iphone13pro: {
169
+ readonly name: "iPhone 13 Pro";
170
+ readonly styles: {
171
+ readonly height: "844px";
172
+ readonly width: "390px";
173
+ };
174
+ readonly type: "mobile";
175
+ };
176
+ readonly iphone13promax: {
177
+ readonly name: "iPhone 13 Pro Max";
178
+ readonly styles: {
179
+ readonly height: "926px";
180
+ readonly width: "428px";
181
+ };
182
+ readonly type: "mobile";
183
+ };
184
+ readonly iphone14: {
185
+ readonly name: "iPhone 14";
186
+ readonly styles: {
187
+ readonly height: "844px";
188
+ readonly width: "390px";
189
+ };
190
+ readonly type: "mobile";
191
+ };
192
+ readonly iphone14pro: {
193
+ readonly name: "iPhone 14 Pro";
194
+ readonly styles: {
195
+ readonly height: "852px";
196
+ readonly width: "393px";
197
+ };
198
+ readonly type: "mobile";
199
+ };
200
+ readonly iphone14promax: {
201
+ readonly name: "iPhone 14 Pro Max";
202
+ readonly styles: {
203
+ readonly height: "932px";
204
+ readonly width: "430px";
205
+ };
206
+ readonly type: "mobile";
207
+ };
208
+ readonly ipad: {
209
+ readonly name: "iPad";
210
+ readonly styles: {
211
+ readonly height: "1024px";
212
+ readonly width: "768px";
213
+ };
214
+ readonly type: "tablet";
215
+ };
216
+ readonly ipad10p: {
217
+ readonly name: "iPad Pro 10.5-in";
218
+ readonly styles: {
219
+ readonly height: "1112px";
220
+ readonly width: "834px";
221
+ };
222
+ readonly type: "tablet";
223
+ };
224
+ readonly ipad11p: {
225
+ readonly name: "iPad Pro 11-in";
226
+ readonly styles: {
227
+ readonly height: "1194px";
228
+ readonly width: "834px";
229
+ };
230
+ readonly type: "tablet";
231
+ };
232
+ readonly ipad12p: {
233
+ readonly name: "iPad Pro 12.9-in";
234
+ readonly styles: {
235
+ readonly height: "1366px";
236
+ readonly width: "1024px";
237
+ };
238
+ readonly type: "tablet";
239
+ };
240
+ readonly galaxys5: {
241
+ readonly name: "Galaxy S5";
242
+ readonly styles: {
243
+ readonly height: "640px";
244
+ readonly width: "360px";
245
+ };
246
+ readonly type: "mobile";
247
+ };
248
+ readonly galaxys9: {
249
+ readonly name: "Galaxy S9";
250
+ readonly styles: {
251
+ readonly height: "740px";
252
+ readonly width: "360px";
253
+ };
254
+ readonly type: "mobile";
255
+ };
256
+ readonly nexus5x: {
257
+ readonly name: "Nexus 5X";
258
+ readonly styles: {
259
+ readonly height: "660px";
260
+ readonly width: "412px";
261
+ };
262
+ readonly type: "mobile";
263
+ };
264
+ readonly nexus6p: {
265
+ readonly name: "Nexus 6P";
266
+ readonly styles: {
267
+ readonly height: "732px";
268
+ readonly width: "412px";
269
+ };
270
+ readonly type: "mobile";
271
+ };
272
+ readonly pixel: {
273
+ readonly name: "Pixel";
274
+ readonly styles: {
275
+ readonly height: "960px";
276
+ readonly width: "540px";
277
+ };
278
+ readonly type: "mobile";
279
+ };
280
+ readonly pixelxl: {
281
+ readonly name: "Pixel XL";
282
+ readonly styles: {
283
+ readonly height: "1280px";
284
+ readonly width: "720px";
285
+ };
286
+ readonly type: "mobile";
287
+ };
288
+ };
289
+ type InitialViewportKeys = keyof typeof INITIAL_VIEWPORTS_DATA;
290
+ declare const INITIAL_VIEWPORTS: ViewportMap;
291
+ declare const DEFAULT_VIEWPORT = "responsive";
292
+ declare const MINIMAL_VIEWPORTS: ViewportMap;
293
+
294
+ declare global {
295
+ interface SymbolConstructor {
296
+ readonly observable: symbol;
297
+ }
298
+ }
299
+
300
+ declare global {
301
+ var globalProjectAnnotations: NormalizedProjectAnnotations<any>;
302
+ var defaultProjectAnnotations: ProjectAnnotations<any>;
303
+ }
304
+ type WrappedStoryRef = {
305
+ __pw_type: 'jsx' | 'importRef';
306
+ };
307
+ type UnwrappedJSXStoryRef = {
308
+ __pw_type: 'jsx';
309
+ type: UnwrappedImportStoryRef;
310
+ };
311
+ type UnwrappedImportStoryRef = ComposedStoryFn;
312
+ declare global {
313
+ function __pwUnwrapObject(storyRef: WrappedStoryRef): Promise<UnwrappedJSXStoryRef | UnwrappedImportStoryRef>;
314
+ }
315
+
316
+ declare const initialGlobals: Record<string, GlobalState>;
317
+
318
+ declare const responsiveViewport: Viewport;
319
+
320
+ export { ADDON_ID, DEFAULT_VIEWPORT, type GlobalState, type GlobalStateUpdate, INITIAL_VIEWPORTS, type InitialViewportKeys, MINIMAL_VIEWPORTS, PANEL_ID, PARAM_KEY, TOOL_ID, type Viewport, type ViewportGlobals, type ViewportMap, type ViewportParameters, type ViewportStyles, initialGlobals, responsiveViewport };