@gxpl/sdk 0.0.13 → 0.0.14

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 (54) hide show
  1. package/lib/sdk/Client/Client.d.ts +3 -7
  2. package/lib/sdk/Client/Client.js +9 -38
  3. package/lib/sdk/schemas/project/Project.schema.d.ts +28 -57
  4. package/lib/sdk/schemas/project/Project.schema.js +7 -10
  5. package/lib/sdk/transitions/transitionMachine.d.ts +616 -0
  6. package/lib/sdk/transitions/transitionMachine.js +258 -0
  7. package/lib/sdk/transitions/utils/findRelation.d.ts +2 -0
  8. package/lib/sdk/transitions/utils/findRelation.js +10 -0
  9. package/lib/sdk/transitions/utils/getAvailableTransitions.d.ts +7 -0
  10. package/lib/sdk/transitions/utils/getAvailableTransitions.js +12 -0
  11. package/lib/sdk/transitions/utils/getAxis.d.ts +2 -0
  12. package/lib/sdk/transitions/utils/getAxis.js +6 -0
  13. package/lib/sdk/transitions/utils/getDeltaAndProgress.d.ts +11 -0
  14. package/lib/sdk/transitions/utils/getDeltaAndProgress.js +13 -0
  15. package/lib/sdk/transitions/utils/getScenesOnEnd.d.ts +21 -0
  16. package/lib/sdk/transitions/utils/getScenesOnEnd.js +30 -0
  17. package/lib/sdk/transitions/utils/getScenesOnInit.d.ts +6 -0
  18. package/lib/sdk/transitions/utils/getScenesOnInit.js +20 -0
  19. package/lib/sdk/transitions/utils/getScenesOnInstantTransition.d.ts +2 -0
  20. package/lib/sdk/transitions/utils/getScenesOnInstantTransition.js +38 -0
  21. package/lib/sdk/transitions/utils/getScenesOnProgressUpdate.d.ts +26 -0
  22. package/lib/sdk/transitions/utils/getScenesOnProgressUpdate.js +15 -0
  23. package/lib/sdk/transitions/utils/getScenesOnStart.d.ts +21 -0
  24. package/lib/sdk/transitions/utils/getScenesOnStart.js +52 -0
  25. package/lib/sdk/transitions/utils/isActiveSwipeTransition.d.ts +2 -0
  26. package/lib/sdk/transitions/utils/isActiveSwipeTransition.js +12 -0
  27. package/lib/sdk/transitions/utils/isOverThreshold.d.ts +1 -0
  28. package/lib/sdk/transitions/utils/isOverThreshold.js +6 -0
  29. package/lib/sdk/transitions/utils/isTransitionSuccess.d.ts +2 -0
  30. package/lib/sdk/transitions/utils/isTransitionSuccess.js +15 -0
  31. package/lib/sdk/transitions/utils/normalizeOpacity.d.ts +1 -0
  32. package/lib/sdk/transitions/utils/normalizeOpacity.js +8 -0
  33. package/lib/sdk/transitions/utils/types.d.ts +49 -0
  34. package/lib/sdk/transitions/utils/types.js +2 -0
  35. package/lib/sdk/types/project/Page.d.ts +0 -7
  36. package/lib/sdk/types/project/Project.d.ts +2 -0
  37. package/lib/sdk/types/project/Relation.d.ts +8 -0
  38. package/lib/sdk/types/project/Relation.js +2 -0
  39. package/lib/sdk-nextjs/components/Article.d.ts +9 -2
  40. package/lib/sdk-nextjs/components/Article.js +8 -5
  41. package/lib/sdk-nextjs/components/ArticleWrapper.d.ts +12 -1
  42. package/lib/sdk-nextjs/components/ArticleWrapper.js +155 -2
  43. package/lib/sdk-nextjs/components/Head.d.ts +0 -2
  44. package/lib/sdk-nextjs/components/Head.js +2 -1
  45. package/lib/sdk-nextjs/components/Page.d.ts +4 -7
  46. package/lib/sdk-nextjs/components/Page.js +13 -7
  47. package/lib/sdk-nextjs/components/Scenes/Scenes.d.ts +11 -0
  48. package/lib/sdk-nextjs/components/Scenes/Scenes.js +16 -0
  49. package/lib/sdk-nextjs/components/items/RectangleItem/RectangleItem.js +3 -3
  50. package/lib/sdk-nextjs/provider/CntrlSdkContext.d.ts +2 -2
  51. package/lib/sdk-nextjs/provider/CntrlSdkContext.js +4 -2
  52. package/lib/sdk-nextjs/provider/TransitionMachineContext.d.ts +2186 -0
  53. package/lib/sdk-nextjs/provider/TransitionMachineContext.js +6 -0
  54. package/package.json +3 -1
@@ -0,0 +1,2186 @@
1
+ export declare const TransitionMachineContext: {
2
+ useSelector: <T>(selector: (snapshot: import("xstate").MachineSnapshot<import("../../sdk/transitions/transitionMachine").TransitionContext, {
3
+ type: "SWIPE_PREPARE";
4
+ touchData: {
5
+ startX: number;
6
+ startY: number;
7
+ };
8
+ } | {
9
+ type: "TRANSITION_TRIGGER";
10
+ transition: "slide";
11
+ to: string;
12
+ direction: import("../../sdk/transitions/utils/types").Direction;
13
+ } | {
14
+ type: "TRANSITION_TRIGGER";
15
+ transition: "fade";
16
+ to: string;
17
+ } | {
18
+ type: "SWIPE_START";
19
+ direction: import("../../sdk/transitions/utils/types").Direction;
20
+ touchData: {
21
+ x: number;
22
+ y: number;
23
+ };
24
+ } | {
25
+ type: "SWIPE_CANCEL";
26
+ } | {
27
+ type: "SWIPE_END";
28
+ } | {
29
+ type: "SETTLE_END";
30
+ } | {
31
+ type: "SWIPE_PROGRESS_UPDATE";
32
+ touchData: {
33
+ x: number;
34
+ y: number;
35
+ };
36
+ }, {
37
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
38
+ }, "preparing" | "active" | "settling" | "instant_transitioning" | "transitioning", string, import("xstate").NonReducibleUnknown, import("xstate").MetaObject, {
39
+ readonly id: "transition";
40
+ readonly initial: "active";
41
+ readonly context: ({ input }: {
42
+ spawn: {
43
+ <TSrc extends "waitForNextFrame">(logic: TSrc, ...[options]: {
44
+ src: "waitForNextFrame";
45
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
46
+ id: string | undefined;
47
+ } extends infer T_1 ? T_1 extends {
48
+ src: "waitForNextFrame";
49
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
50
+ id: string | undefined;
51
+ } ? T_1 extends {
52
+ src: TSrc;
53
+ } ? import("xstate").ConditionalRequired<[options?: ({
54
+ id?: T_1["id"] | undefined;
55
+ systemId?: string;
56
+ input?: import("xstate").InputFrom<T_1["logic"]> | undefined;
57
+ syncSnapshot?: boolean;
58
+ } & { [K in import("xstate").RequiredActorOptions<T_1>]: unknown; }) | undefined], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T_1>>> : never : never : never): import("xstate").ActorRefFromLogic<import("xstate").GetConcreteByKey<{
59
+ src: "waitForNextFrame";
60
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
61
+ id: string | undefined;
62
+ }, "src", TSrc>["logic"]>;
63
+ <TLogic extends import("xstate").AnyActorLogic>(src: TLogic, ...[options]: import("xstate").ConditionalRequired<[options?: ({
64
+ id?: never;
65
+ systemId?: string;
66
+ input?: import("xstate").InputFrom<TLogic> | undefined;
67
+ syncSnapshot?: boolean;
68
+ } & { [K in import("xstate").RequiredLogicInput<TLogic>]: unknown; }) | undefined], import("xstate").IsNotNever<import("xstate").RequiredLogicInput<TLogic>>>): import("xstate").ActorRefFromLogic<TLogic>;
69
+ };
70
+ input: import("../../sdk/transitions/transitionMachine").TransitionMachineInput;
71
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("../../sdk/transitions/transitionMachine").TransitionContext, {
72
+ type: "SWIPE_PREPARE";
73
+ touchData: {
74
+ startX: number;
75
+ startY: number;
76
+ };
77
+ } | {
78
+ type: "TRANSITION_TRIGGER";
79
+ transition: "slide";
80
+ to: string;
81
+ direction: import("../../sdk/transitions/utils/types").Direction;
82
+ } | {
83
+ type: "TRANSITION_TRIGGER";
84
+ transition: "fade";
85
+ to: string;
86
+ } | {
87
+ type: "SWIPE_START";
88
+ direction: import("../../sdk/transitions/utils/types").Direction;
89
+ touchData: {
90
+ x: number;
91
+ y: number;
92
+ };
93
+ } | {
94
+ type: "SWIPE_CANCEL";
95
+ } | {
96
+ type: "SWIPE_END";
97
+ } | {
98
+ type: "SETTLE_END";
99
+ } | {
100
+ type: "SWIPE_PROGRESS_UPDATE";
101
+ touchData: {
102
+ x: number;
103
+ y: number;
104
+ };
105
+ }, Record<string, import("xstate").AnyActorRef | undefined>, import("xstate").StateValue, string, unknown, any, any>, {
106
+ type: "SWIPE_PREPARE";
107
+ touchData: {
108
+ startX: number;
109
+ startY: number;
110
+ };
111
+ } | {
112
+ type: "TRANSITION_TRIGGER";
113
+ transition: "slide";
114
+ to: string;
115
+ direction: import("../../sdk/transitions/utils/types").Direction;
116
+ } | {
117
+ type: "TRANSITION_TRIGGER";
118
+ transition: "fade";
119
+ to: string;
120
+ } | {
121
+ type: "SWIPE_START";
122
+ direction: import("../../sdk/transitions/utils/types").Direction;
123
+ touchData: {
124
+ x: number;
125
+ y: number;
126
+ };
127
+ } | {
128
+ type: "SWIPE_CANCEL";
129
+ } | {
130
+ type: "SWIPE_END";
131
+ } | {
132
+ type: "SETTLE_END";
133
+ } | {
134
+ type: "SWIPE_PROGRESS_UPDATE";
135
+ touchData: {
136
+ x: number;
137
+ y: number;
138
+ };
139
+ }, import("xstate").AnyEventObject>;
140
+ }) => {
141
+ input: import("../../sdk/transitions/transitionMachine").TransitionMachineInput;
142
+ transitionReady: {
143
+ north: boolean;
144
+ east: boolean;
145
+ south: boolean;
146
+ west: boolean;
147
+ };
148
+ transition: null;
149
+ scenes: import("../../sdk/transitions/utils/types").TransitionScene[];
150
+ };
151
+ readonly states: {
152
+ readonly active: {
153
+ readonly on: {
154
+ readonly SWIPE_PREPARE: {
155
+ readonly target: "preparing";
156
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
157
+ type: "SWIPE_PREPARE";
158
+ touchData: {
159
+ startX: number;
160
+ startY: number;
161
+ };
162
+ }, {
163
+ type: "SWIPE_PREPARE";
164
+ touchData: {
165
+ startX: number;
166
+ startY: number;
167
+ };
168
+ } | {
169
+ type: "TRANSITION_TRIGGER";
170
+ transition: "slide";
171
+ to: string;
172
+ direction: import("../../sdk/transitions/utils/types").Direction;
173
+ } | {
174
+ type: "TRANSITION_TRIGGER";
175
+ transition: "fade";
176
+ to: string;
177
+ } | {
178
+ type: "SWIPE_START";
179
+ direction: import("../../sdk/transitions/utils/types").Direction;
180
+ touchData: {
181
+ x: number;
182
+ y: number;
183
+ };
184
+ } | {
185
+ type: "SWIPE_CANCEL";
186
+ } | {
187
+ type: "SWIPE_END";
188
+ } | {
189
+ type: "SETTLE_END";
190
+ } | {
191
+ type: "SWIPE_PROGRESS_UPDATE";
192
+ touchData: {
193
+ x: number;
194
+ y: number;
195
+ };
196
+ }, undefined, {
197
+ src: "waitForNextFrame";
198
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
199
+ id: string | undefined;
200
+ }, never, never, never, never>;
201
+ };
202
+ readonly TRANSITION_TRIGGER: {
203
+ readonly target: "instant_transitioning";
204
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
205
+ type: "TRANSITION_TRIGGER";
206
+ transition: "slide";
207
+ to: string;
208
+ direction: import("../../sdk/transitions/utils/types").Direction;
209
+ } | {
210
+ type: "TRANSITION_TRIGGER";
211
+ transition: "fade";
212
+ to: string;
213
+ }, {
214
+ type: "SWIPE_PREPARE";
215
+ touchData: {
216
+ startX: number;
217
+ startY: number;
218
+ };
219
+ } | {
220
+ type: "TRANSITION_TRIGGER";
221
+ transition: "slide";
222
+ to: string;
223
+ direction: import("../../sdk/transitions/utils/types").Direction;
224
+ } | {
225
+ type: "TRANSITION_TRIGGER";
226
+ transition: "fade";
227
+ to: string;
228
+ } | {
229
+ type: "SWIPE_START";
230
+ direction: import("../../sdk/transitions/utils/types").Direction;
231
+ touchData: {
232
+ x: number;
233
+ y: number;
234
+ };
235
+ } | {
236
+ type: "SWIPE_CANCEL";
237
+ } | {
238
+ type: "SWIPE_END";
239
+ } | {
240
+ type: "SETTLE_END";
241
+ } | {
242
+ type: "SWIPE_PROGRESS_UPDATE";
243
+ touchData: {
244
+ x: number;
245
+ y: number;
246
+ };
247
+ }, undefined, {
248
+ src: "waitForNextFrame";
249
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
250
+ id: string | undefined;
251
+ }, never, never, never, never>;
252
+ };
253
+ };
254
+ };
255
+ readonly preparing: {
256
+ readonly on: {
257
+ readonly SWIPE_START: {
258
+ readonly target: "transitioning";
259
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
260
+ type: "SWIPE_START";
261
+ direction: import("../../sdk/transitions/utils/types").Direction;
262
+ touchData: {
263
+ x: number;
264
+ y: number;
265
+ };
266
+ }, {
267
+ type: "SWIPE_PREPARE";
268
+ touchData: {
269
+ startX: number;
270
+ startY: number;
271
+ };
272
+ } | {
273
+ type: "TRANSITION_TRIGGER";
274
+ transition: "slide";
275
+ to: string;
276
+ direction: import("../../sdk/transitions/utils/types").Direction;
277
+ } | {
278
+ type: "TRANSITION_TRIGGER";
279
+ transition: "fade";
280
+ to: string;
281
+ } | {
282
+ type: "SWIPE_START";
283
+ direction: import("../../sdk/transitions/utils/types").Direction;
284
+ touchData: {
285
+ x: number;
286
+ y: number;
287
+ };
288
+ } | {
289
+ type: "SWIPE_CANCEL";
290
+ } | {
291
+ type: "SWIPE_END";
292
+ } | {
293
+ type: "SETTLE_END";
294
+ } | {
295
+ type: "SWIPE_PROGRESS_UPDATE";
296
+ touchData: {
297
+ x: number;
298
+ y: number;
299
+ };
300
+ }, undefined, {
301
+ src: "waitForNextFrame";
302
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
303
+ id: string | undefined;
304
+ }, never, never, never, never>;
305
+ };
306
+ readonly SWIPE_CANCEL: {
307
+ readonly target: "active";
308
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
309
+ type: "SWIPE_CANCEL";
310
+ }, {
311
+ type: "SWIPE_PREPARE";
312
+ touchData: {
313
+ startX: number;
314
+ startY: number;
315
+ };
316
+ } | {
317
+ type: "TRANSITION_TRIGGER";
318
+ transition: "slide";
319
+ to: string;
320
+ direction: import("../../sdk/transitions/utils/types").Direction;
321
+ } | {
322
+ type: "TRANSITION_TRIGGER";
323
+ transition: "fade";
324
+ to: string;
325
+ } | {
326
+ type: "SWIPE_START";
327
+ direction: import("../../sdk/transitions/utils/types").Direction;
328
+ touchData: {
329
+ x: number;
330
+ y: number;
331
+ };
332
+ } | {
333
+ type: "SWIPE_CANCEL";
334
+ } | {
335
+ type: "SWIPE_END";
336
+ } | {
337
+ type: "SETTLE_END";
338
+ } | {
339
+ type: "SWIPE_PROGRESS_UPDATE";
340
+ touchData: {
341
+ x: number;
342
+ y: number;
343
+ };
344
+ }, undefined, {
345
+ src: "waitForNextFrame";
346
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
347
+ id: string | undefined;
348
+ }, never, never, never, never>;
349
+ };
350
+ };
351
+ };
352
+ readonly transitioning: {
353
+ readonly on: {
354
+ readonly SWIPE_PROGRESS_UPDATE: {
355
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
356
+ type: "SWIPE_PROGRESS_UPDATE";
357
+ touchData: {
358
+ x: number;
359
+ y: number;
360
+ };
361
+ }, {
362
+ type: "SWIPE_PREPARE";
363
+ touchData: {
364
+ startX: number;
365
+ startY: number;
366
+ };
367
+ } | {
368
+ type: "TRANSITION_TRIGGER";
369
+ transition: "slide";
370
+ to: string;
371
+ direction: import("../../sdk/transitions/utils/types").Direction;
372
+ } | {
373
+ type: "TRANSITION_TRIGGER";
374
+ transition: "fade";
375
+ to: string;
376
+ } | {
377
+ type: "SWIPE_START";
378
+ direction: import("../../sdk/transitions/utils/types").Direction;
379
+ touchData: {
380
+ x: number;
381
+ y: number;
382
+ };
383
+ } | {
384
+ type: "SWIPE_CANCEL";
385
+ } | {
386
+ type: "SWIPE_END";
387
+ } | {
388
+ type: "SETTLE_END";
389
+ } | {
390
+ type: "SWIPE_PROGRESS_UPDATE";
391
+ touchData: {
392
+ x: number;
393
+ y: number;
394
+ };
395
+ }, undefined, {
396
+ src: "waitForNextFrame";
397
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
398
+ id: string | undefined;
399
+ }, never, never, never, never>;
400
+ };
401
+ readonly SWIPE_END: {
402
+ readonly target: "settling";
403
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
404
+ type: "SWIPE_END";
405
+ }, {
406
+ type: "SWIPE_PREPARE";
407
+ touchData: {
408
+ startX: number;
409
+ startY: number;
410
+ };
411
+ } | {
412
+ type: "TRANSITION_TRIGGER";
413
+ transition: "slide";
414
+ to: string;
415
+ direction: import("../../sdk/transitions/utils/types").Direction;
416
+ } | {
417
+ type: "TRANSITION_TRIGGER";
418
+ transition: "fade";
419
+ to: string;
420
+ } | {
421
+ type: "SWIPE_START";
422
+ direction: import("../../sdk/transitions/utils/types").Direction;
423
+ touchData: {
424
+ x: number;
425
+ y: number;
426
+ };
427
+ } | {
428
+ type: "SWIPE_CANCEL";
429
+ } | {
430
+ type: "SWIPE_END";
431
+ } | {
432
+ type: "SETTLE_END";
433
+ } | {
434
+ type: "SWIPE_PROGRESS_UPDATE";
435
+ touchData: {
436
+ x: number;
437
+ y: number;
438
+ };
439
+ }, undefined, {
440
+ src: "waitForNextFrame";
441
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
442
+ id: string | undefined;
443
+ }, never, never, never, never>;
444
+ };
445
+ };
446
+ };
447
+ readonly instant_transitioning: {
448
+ readonly invoke: {
449
+ readonly src: "waitForNextFrame";
450
+ readonly onDone: {
451
+ readonly target: "settling";
452
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, import("xstate").DoneActorEvent<void, string>, {
453
+ type: "SWIPE_PREPARE";
454
+ touchData: {
455
+ startX: number;
456
+ startY: number;
457
+ };
458
+ } | {
459
+ type: "TRANSITION_TRIGGER";
460
+ transition: "slide";
461
+ to: string;
462
+ direction: import("../../sdk/transitions/utils/types").Direction;
463
+ } | {
464
+ type: "TRANSITION_TRIGGER";
465
+ transition: "fade";
466
+ to: string;
467
+ } | {
468
+ type: "SWIPE_START";
469
+ direction: import("../../sdk/transitions/utils/types").Direction;
470
+ touchData: {
471
+ x: number;
472
+ y: number;
473
+ };
474
+ } | {
475
+ type: "SWIPE_CANCEL";
476
+ } | {
477
+ type: "SWIPE_END";
478
+ } | {
479
+ type: "SETTLE_END";
480
+ } | {
481
+ type: "SWIPE_PROGRESS_UPDATE";
482
+ touchData: {
483
+ x: number;
484
+ y: number;
485
+ };
486
+ }, undefined, {
487
+ src: "waitForNextFrame";
488
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
489
+ id: string | undefined;
490
+ }, never, never, never, never>;
491
+ };
492
+ };
493
+ };
494
+ readonly settling: {
495
+ readonly on: {
496
+ readonly SETTLE_END: {
497
+ readonly target: "active";
498
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
499
+ type: "SETTLE_END";
500
+ }, {
501
+ type: "SWIPE_PREPARE";
502
+ touchData: {
503
+ startX: number;
504
+ startY: number;
505
+ };
506
+ } | {
507
+ type: "TRANSITION_TRIGGER";
508
+ transition: "slide";
509
+ to: string;
510
+ direction: import("../../sdk/transitions/utils/types").Direction;
511
+ } | {
512
+ type: "TRANSITION_TRIGGER";
513
+ transition: "fade";
514
+ to: string;
515
+ } | {
516
+ type: "SWIPE_START";
517
+ direction: import("../../sdk/transitions/utils/types").Direction;
518
+ touchData: {
519
+ x: number;
520
+ y: number;
521
+ };
522
+ } | {
523
+ type: "SWIPE_CANCEL";
524
+ } | {
525
+ type: "SWIPE_END";
526
+ } | {
527
+ type: "SETTLE_END";
528
+ } | {
529
+ type: "SWIPE_PROGRESS_UPDATE";
530
+ touchData: {
531
+ x: number;
532
+ y: number;
533
+ };
534
+ }, undefined, {
535
+ src: "waitForNextFrame";
536
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
537
+ id: string | undefined;
538
+ }, never, never, never, never>;
539
+ };
540
+ };
541
+ };
542
+ };
543
+ }>) => T, compare?: ((a: T, b: T) => boolean) | undefined) => T;
544
+ useActorRef: () => import("xstate").Actor<import("xstate").StateMachine<import("../../sdk/transitions/transitionMachine").TransitionContext, {
545
+ type: "SWIPE_PREPARE";
546
+ touchData: {
547
+ startX: number;
548
+ startY: number;
549
+ };
550
+ } | {
551
+ type: "TRANSITION_TRIGGER";
552
+ transition: "slide";
553
+ to: string;
554
+ direction: import("../../sdk/transitions/utils/types").Direction;
555
+ } | {
556
+ type: "TRANSITION_TRIGGER";
557
+ transition: "fade";
558
+ to: string;
559
+ } | {
560
+ type: "SWIPE_START";
561
+ direction: import("../../sdk/transitions/utils/types").Direction;
562
+ touchData: {
563
+ x: number;
564
+ y: number;
565
+ };
566
+ } | {
567
+ type: "SWIPE_CANCEL";
568
+ } | {
569
+ type: "SWIPE_END";
570
+ } | {
571
+ type: "SETTLE_END";
572
+ } | {
573
+ type: "SWIPE_PROGRESS_UPDATE";
574
+ touchData: {
575
+ x: number;
576
+ y: number;
577
+ };
578
+ }, {
579
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
580
+ }, {
581
+ src: "waitForNextFrame";
582
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
583
+ id: string | undefined;
584
+ }, never, never, never, "preparing" | "active" | "settling" | "instant_transitioning" | "transitioning", string, import("../../sdk/transitions/transitionMachine").TransitionMachineInput, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
585
+ readonly id: "transition";
586
+ readonly initial: "active";
587
+ readonly context: ({ input }: {
588
+ spawn: {
589
+ <TSrc extends "waitForNextFrame">(logic: TSrc, ...[options]: {
590
+ src: "waitForNextFrame";
591
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
592
+ id: string | undefined;
593
+ } extends infer T ? T extends {
594
+ src: "waitForNextFrame";
595
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
596
+ id: string | undefined;
597
+ } ? T extends {
598
+ src: TSrc;
599
+ } ? import("xstate").ConditionalRequired<[options?: ({
600
+ id?: T["id"] | undefined;
601
+ systemId?: string;
602
+ input?: import("xstate").InputFrom<T["logic"]> | undefined;
603
+ syncSnapshot?: boolean;
604
+ } & { [K in import("xstate").RequiredActorOptions<T>]: unknown; }) | undefined], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T>>> : never : never : never): import("xstate").ActorRefFromLogic<import("xstate").GetConcreteByKey<{
605
+ src: "waitForNextFrame";
606
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
607
+ id: string | undefined;
608
+ }, "src", TSrc>["logic"]>;
609
+ <TLogic extends import("xstate").AnyActorLogic>(src: TLogic, ...[options]: import("xstate").ConditionalRequired<[options?: ({
610
+ id?: never;
611
+ systemId?: string;
612
+ input?: import("xstate").InputFrom<TLogic> | undefined;
613
+ syncSnapshot?: boolean;
614
+ } & { [K in import("xstate").RequiredLogicInput<TLogic>]: unknown; }) | undefined], import("xstate").IsNotNever<import("xstate").RequiredLogicInput<TLogic>>>): import("xstate").ActorRefFromLogic<TLogic>;
615
+ };
616
+ input: import("../../sdk/transitions/transitionMachine").TransitionMachineInput;
617
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("../../sdk/transitions/transitionMachine").TransitionContext, {
618
+ type: "SWIPE_PREPARE";
619
+ touchData: {
620
+ startX: number;
621
+ startY: number;
622
+ };
623
+ } | {
624
+ type: "TRANSITION_TRIGGER";
625
+ transition: "slide";
626
+ to: string;
627
+ direction: import("../../sdk/transitions/utils/types").Direction;
628
+ } | {
629
+ type: "TRANSITION_TRIGGER";
630
+ transition: "fade";
631
+ to: string;
632
+ } | {
633
+ type: "SWIPE_START";
634
+ direction: import("../../sdk/transitions/utils/types").Direction;
635
+ touchData: {
636
+ x: number;
637
+ y: number;
638
+ };
639
+ } | {
640
+ type: "SWIPE_CANCEL";
641
+ } | {
642
+ type: "SWIPE_END";
643
+ } | {
644
+ type: "SETTLE_END";
645
+ } | {
646
+ type: "SWIPE_PROGRESS_UPDATE";
647
+ touchData: {
648
+ x: number;
649
+ y: number;
650
+ };
651
+ }, Record<string, import("xstate").AnyActorRef | undefined>, import("xstate").StateValue, string, unknown, any, any>, {
652
+ type: "SWIPE_PREPARE";
653
+ touchData: {
654
+ startX: number;
655
+ startY: number;
656
+ };
657
+ } | {
658
+ type: "TRANSITION_TRIGGER";
659
+ transition: "slide";
660
+ to: string;
661
+ direction: import("../../sdk/transitions/utils/types").Direction;
662
+ } | {
663
+ type: "TRANSITION_TRIGGER";
664
+ transition: "fade";
665
+ to: string;
666
+ } | {
667
+ type: "SWIPE_START";
668
+ direction: import("../../sdk/transitions/utils/types").Direction;
669
+ touchData: {
670
+ x: number;
671
+ y: number;
672
+ };
673
+ } | {
674
+ type: "SWIPE_CANCEL";
675
+ } | {
676
+ type: "SWIPE_END";
677
+ } | {
678
+ type: "SETTLE_END";
679
+ } | {
680
+ type: "SWIPE_PROGRESS_UPDATE";
681
+ touchData: {
682
+ x: number;
683
+ y: number;
684
+ };
685
+ }, import("xstate").AnyEventObject>;
686
+ }) => {
687
+ input: import("../../sdk/transitions/transitionMachine").TransitionMachineInput;
688
+ transitionReady: {
689
+ north: boolean;
690
+ east: boolean;
691
+ south: boolean;
692
+ west: boolean;
693
+ };
694
+ transition: null;
695
+ scenes: import("../../sdk/transitions/utils/types").TransitionScene[];
696
+ };
697
+ readonly states: {
698
+ readonly active: {
699
+ readonly on: {
700
+ readonly SWIPE_PREPARE: {
701
+ readonly target: "preparing";
702
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
703
+ type: "SWIPE_PREPARE";
704
+ touchData: {
705
+ startX: number;
706
+ startY: number;
707
+ };
708
+ }, {
709
+ type: "SWIPE_PREPARE";
710
+ touchData: {
711
+ startX: number;
712
+ startY: number;
713
+ };
714
+ } | {
715
+ type: "TRANSITION_TRIGGER";
716
+ transition: "slide";
717
+ to: string;
718
+ direction: import("../../sdk/transitions/utils/types").Direction;
719
+ } | {
720
+ type: "TRANSITION_TRIGGER";
721
+ transition: "fade";
722
+ to: string;
723
+ } | {
724
+ type: "SWIPE_START";
725
+ direction: import("../../sdk/transitions/utils/types").Direction;
726
+ touchData: {
727
+ x: number;
728
+ y: number;
729
+ };
730
+ } | {
731
+ type: "SWIPE_CANCEL";
732
+ } | {
733
+ type: "SWIPE_END";
734
+ } | {
735
+ type: "SETTLE_END";
736
+ } | {
737
+ type: "SWIPE_PROGRESS_UPDATE";
738
+ touchData: {
739
+ x: number;
740
+ y: number;
741
+ };
742
+ }, undefined, {
743
+ src: "waitForNextFrame";
744
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
745
+ id: string | undefined;
746
+ }, never, never, never, never>;
747
+ };
748
+ readonly TRANSITION_TRIGGER: {
749
+ readonly target: "instant_transitioning";
750
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
751
+ type: "TRANSITION_TRIGGER";
752
+ transition: "slide";
753
+ to: string;
754
+ direction: import("../../sdk/transitions/utils/types").Direction;
755
+ } | {
756
+ type: "TRANSITION_TRIGGER";
757
+ transition: "fade";
758
+ to: string;
759
+ }, {
760
+ type: "SWIPE_PREPARE";
761
+ touchData: {
762
+ startX: number;
763
+ startY: number;
764
+ };
765
+ } | {
766
+ type: "TRANSITION_TRIGGER";
767
+ transition: "slide";
768
+ to: string;
769
+ direction: import("../../sdk/transitions/utils/types").Direction;
770
+ } | {
771
+ type: "TRANSITION_TRIGGER";
772
+ transition: "fade";
773
+ to: string;
774
+ } | {
775
+ type: "SWIPE_START";
776
+ direction: import("../../sdk/transitions/utils/types").Direction;
777
+ touchData: {
778
+ x: number;
779
+ y: number;
780
+ };
781
+ } | {
782
+ type: "SWIPE_CANCEL";
783
+ } | {
784
+ type: "SWIPE_END";
785
+ } | {
786
+ type: "SETTLE_END";
787
+ } | {
788
+ type: "SWIPE_PROGRESS_UPDATE";
789
+ touchData: {
790
+ x: number;
791
+ y: number;
792
+ };
793
+ }, undefined, {
794
+ src: "waitForNextFrame";
795
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
796
+ id: string | undefined;
797
+ }, never, never, never, never>;
798
+ };
799
+ };
800
+ };
801
+ readonly preparing: {
802
+ readonly on: {
803
+ readonly SWIPE_START: {
804
+ readonly target: "transitioning";
805
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
806
+ type: "SWIPE_START";
807
+ direction: import("../../sdk/transitions/utils/types").Direction;
808
+ touchData: {
809
+ x: number;
810
+ y: number;
811
+ };
812
+ }, {
813
+ type: "SWIPE_PREPARE";
814
+ touchData: {
815
+ startX: number;
816
+ startY: number;
817
+ };
818
+ } | {
819
+ type: "TRANSITION_TRIGGER";
820
+ transition: "slide";
821
+ to: string;
822
+ direction: import("../../sdk/transitions/utils/types").Direction;
823
+ } | {
824
+ type: "TRANSITION_TRIGGER";
825
+ transition: "fade";
826
+ to: string;
827
+ } | {
828
+ type: "SWIPE_START";
829
+ direction: import("../../sdk/transitions/utils/types").Direction;
830
+ touchData: {
831
+ x: number;
832
+ y: number;
833
+ };
834
+ } | {
835
+ type: "SWIPE_CANCEL";
836
+ } | {
837
+ type: "SWIPE_END";
838
+ } | {
839
+ type: "SETTLE_END";
840
+ } | {
841
+ type: "SWIPE_PROGRESS_UPDATE";
842
+ touchData: {
843
+ x: number;
844
+ y: number;
845
+ };
846
+ }, undefined, {
847
+ src: "waitForNextFrame";
848
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
849
+ id: string | undefined;
850
+ }, never, never, never, never>;
851
+ };
852
+ readonly SWIPE_CANCEL: {
853
+ readonly target: "active";
854
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
855
+ type: "SWIPE_CANCEL";
856
+ }, {
857
+ type: "SWIPE_PREPARE";
858
+ touchData: {
859
+ startX: number;
860
+ startY: number;
861
+ };
862
+ } | {
863
+ type: "TRANSITION_TRIGGER";
864
+ transition: "slide";
865
+ to: string;
866
+ direction: import("../../sdk/transitions/utils/types").Direction;
867
+ } | {
868
+ type: "TRANSITION_TRIGGER";
869
+ transition: "fade";
870
+ to: string;
871
+ } | {
872
+ type: "SWIPE_START";
873
+ direction: import("../../sdk/transitions/utils/types").Direction;
874
+ touchData: {
875
+ x: number;
876
+ y: number;
877
+ };
878
+ } | {
879
+ type: "SWIPE_CANCEL";
880
+ } | {
881
+ type: "SWIPE_END";
882
+ } | {
883
+ type: "SETTLE_END";
884
+ } | {
885
+ type: "SWIPE_PROGRESS_UPDATE";
886
+ touchData: {
887
+ x: number;
888
+ y: number;
889
+ };
890
+ }, undefined, {
891
+ src: "waitForNextFrame";
892
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
893
+ id: string | undefined;
894
+ }, never, never, never, never>;
895
+ };
896
+ };
897
+ };
898
+ readonly transitioning: {
899
+ readonly on: {
900
+ readonly SWIPE_PROGRESS_UPDATE: {
901
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
902
+ type: "SWIPE_PROGRESS_UPDATE";
903
+ touchData: {
904
+ x: number;
905
+ y: number;
906
+ };
907
+ }, {
908
+ type: "SWIPE_PREPARE";
909
+ touchData: {
910
+ startX: number;
911
+ startY: number;
912
+ };
913
+ } | {
914
+ type: "TRANSITION_TRIGGER";
915
+ transition: "slide";
916
+ to: string;
917
+ direction: import("../../sdk/transitions/utils/types").Direction;
918
+ } | {
919
+ type: "TRANSITION_TRIGGER";
920
+ transition: "fade";
921
+ to: string;
922
+ } | {
923
+ type: "SWIPE_START";
924
+ direction: import("../../sdk/transitions/utils/types").Direction;
925
+ touchData: {
926
+ x: number;
927
+ y: number;
928
+ };
929
+ } | {
930
+ type: "SWIPE_CANCEL";
931
+ } | {
932
+ type: "SWIPE_END";
933
+ } | {
934
+ type: "SETTLE_END";
935
+ } | {
936
+ type: "SWIPE_PROGRESS_UPDATE";
937
+ touchData: {
938
+ x: number;
939
+ y: number;
940
+ };
941
+ }, undefined, {
942
+ src: "waitForNextFrame";
943
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
944
+ id: string | undefined;
945
+ }, never, never, never, never>;
946
+ };
947
+ readonly SWIPE_END: {
948
+ readonly target: "settling";
949
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
950
+ type: "SWIPE_END";
951
+ }, {
952
+ type: "SWIPE_PREPARE";
953
+ touchData: {
954
+ startX: number;
955
+ startY: number;
956
+ };
957
+ } | {
958
+ type: "TRANSITION_TRIGGER";
959
+ transition: "slide";
960
+ to: string;
961
+ direction: import("../../sdk/transitions/utils/types").Direction;
962
+ } | {
963
+ type: "TRANSITION_TRIGGER";
964
+ transition: "fade";
965
+ to: string;
966
+ } | {
967
+ type: "SWIPE_START";
968
+ direction: import("../../sdk/transitions/utils/types").Direction;
969
+ touchData: {
970
+ x: number;
971
+ y: number;
972
+ };
973
+ } | {
974
+ type: "SWIPE_CANCEL";
975
+ } | {
976
+ type: "SWIPE_END";
977
+ } | {
978
+ type: "SETTLE_END";
979
+ } | {
980
+ type: "SWIPE_PROGRESS_UPDATE";
981
+ touchData: {
982
+ x: number;
983
+ y: number;
984
+ };
985
+ }, undefined, {
986
+ src: "waitForNextFrame";
987
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
988
+ id: string | undefined;
989
+ }, never, never, never, never>;
990
+ };
991
+ };
992
+ };
993
+ readonly instant_transitioning: {
994
+ readonly invoke: {
995
+ readonly src: "waitForNextFrame";
996
+ readonly onDone: {
997
+ readonly target: "settling";
998
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, import("xstate").DoneActorEvent<void, string>, {
999
+ type: "SWIPE_PREPARE";
1000
+ touchData: {
1001
+ startX: number;
1002
+ startY: number;
1003
+ };
1004
+ } | {
1005
+ type: "TRANSITION_TRIGGER";
1006
+ transition: "slide";
1007
+ to: string;
1008
+ direction: import("../../sdk/transitions/utils/types").Direction;
1009
+ } | {
1010
+ type: "TRANSITION_TRIGGER";
1011
+ transition: "fade";
1012
+ to: string;
1013
+ } | {
1014
+ type: "SWIPE_START";
1015
+ direction: import("../../sdk/transitions/utils/types").Direction;
1016
+ touchData: {
1017
+ x: number;
1018
+ y: number;
1019
+ };
1020
+ } | {
1021
+ type: "SWIPE_CANCEL";
1022
+ } | {
1023
+ type: "SWIPE_END";
1024
+ } | {
1025
+ type: "SETTLE_END";
1026
+ } | {
1027
+ type: "SWIPE_PROGRESS_UPDATE";
1028
+ touchData: {
1029
+ x: number;
1030
+ y: number;
1031
+ };
1032
+ }, undefined, {
1033
+ src: "waitForNextFrame";
1034
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1035
+ id: string | undefined;
1036
+ }, never, never, never, never>;
1037
+ };
1038
+ };
1039
+ };
1040
+ readonly settling: {
1041
+ readonly on: {
1042
+ readonly SETTLE_END: {
1043
+ readonly target: "active";
1044
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1045
+ type: "SETTLE_END";
1046
+ }, {
1047
+ type: "SWIPE_PREPARE";
1048
+ touchData: {
1049
+ startX: number;
1050
+ startY: number;
1051
+ };
1052
+ } | {
1053
+ type: "TRANSITION_TRIGGER";
1054
+ transition: "slide";
1055
+ to: string;
1056
+ direction: import("../../sdk/transitions/utils/types").Direction;
1057
+ } | {
1058
+ type: "TRANSITION_TRIGGER";
1059
+ transition: "fade";
1060
+ to: string;
1061
+ } | {
1062
+ type: "SWIPE_START";
1063
+ direction: import("../../sdk/transitions/utils/types").Direction;
1064
+ touchData: {
1065
+ x: number;
1066
+ y: number;
1067
+ };
1068
+ } | {
1069
+ type: "SWIPE_CANCEL";
1070
+ } | {
1071
+ type: "SWIPE_END";
1072
+ } | {
1073
+ type: "SETTLE_END";
1074
+ } | {
1075
+ type: "SWIPE_PROGRESS_UPDATE";
1076
+ touchData: {
1077
+ x: number;
1078
+ y: number;
1079
+ };
1080
+ }, undefined, {
1081
+ src: "waitForNextFrame";
1082
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1083
+ id: string | undefined;
1084
+ }, never, never, never, never>;
1085
+ };
1086
+ };
1087
+ };
1088
+ };
1089
+ }>>;
1090
+ Provider: (props: {
1091
+ children: React.ReactNode;
1092
+ options?: import("xstate").ActorOptions<import("xstate").StateMachine<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1093
+ type: "SWIPE_PREPARE";
1094
+ touchData: {
1095
+ startX: number;
1096
+ startY: number;
1097
+ };
1098
+ } | {
1099
+ type: "TRANSITION_TRIGGER";
1100
+ transition: "slide";
1101
+ to: string;
1102
+ direction: import("../../sdk/transitions/utils/types").Direction;
1103
+ } | {
1104
+ type: "TRANSITION_TRIGGER";
1105
+ transition: "fade";
1106
+ to: string;
1107
+ } | {
1108
+ type: "SWIPE_START";
1109
+ direction: import("../../sdk/transitions/utils/types").Direction;
1110
+ touchData: {
1111
+ x: number;
1112
+ y: number;
1113
+ };
1114
+ } | {
1115
+ type: "SWIPE_CANCEL";
1116
+ } | {
1117
+ type: "SWIPE_END";
1118
+ } | {
1119
+ type: "SETTLE_END";
1120
+ } | {
1121
+ type: "SWIPE_PROGRESS_UPDATE";
1122
+ touchData: {
1123
+ x: number;
1124
+ y: number;
1125
+ };
1126
+ }, {
1127
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
1128
+ }, {
1129
+ src: "waitForNextFrame";
1130
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1131
+ id: string | undefined;
1132
+ }, never, never, never, "preparing" | "active" | "settling" | "instant_transitioning" | "transitioning", string, import("../../sdk/transitions/transitionMachine").TransitionMachineInput, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
1133
+ readonly id: "transition";
1134
+ readonly initial: "active";
1135
+ readonly context: ({ input }: {
1136
+ spawn: {
1137
+ <TSrc extends "waitForNextFrame">(logic: TSrc, ...[options]: {
1138
+ src: "waitForNextFrame";
1139
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1140
+ id: string | undefined;
1141
+ } extends infer T ? T extends {
1142
+ src: "waitForNextFrame";
1143
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1144
+ id: string | undefined;
1145
+ } ? T extends {
1146
+ src: TSrc;
1147
+ } ? import("xstate").ConditionalRequired<[options?: ({
1148
+ id?: T["id"] | undefined;
1149
+ systemId?: string;
1150
+ input?: import("xstate").InputFrom<T["logic"]> | undefined;
1151
+ syncSnapshot?: boolean;
1152
+ } & { [K in import("xstate").RequiredActorOptions<T>]: unknown; }) | undefined], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T>>> : never : never : never): import("xstate").ActorRefFromLogic<import("xstate").GetConcreteByKey<{
1153
+ src: "waitForNextFrame";
1154
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1155
+ id: string | undefined;
1156
+ }, "src", TSrc>["logic"]>;
1157
+ <TLogic extends import("xstate").AnyActorLogic>(src: TLogic, ...[options]: import("xstate").ConditionalRequired<[options?: ({
1158
+ id?: never;
1159
+ systemId?: string;
1160
+ input?: import("xstate").InputFrom<TLogic> | undefined;
1161
+ syncSnapshot?: boolean;
1162
+ } & { [K in import("xstate").RequiredLogicInput<TLogic>]: unknown; }) | undefined], import("xstate").IsNotNever<import("xstate").RequiredLogicInput<TLogic>>>): import("xstate").ActorRefFromLogic<TLogic>;
1163
+ };
1164
+ input: import("../../sdk/transitions/transitionMachine").TransitionMachineInput;
1165
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1166
+ type: "SWIPE_PREPARE";
1167
+ touchData: {
1168
+ startX: number;
1169
+ startY: number;
1170
+ };
1171
+ } | {
1172
+ type: "TRANSITION_TRIGGER";
1173
+ transition: "slide";
1174
+ to: string;
1175
+ direction: import("../../sdk/transitions/utils/types").Direction;
1176
+ } | {
1177
+ type: "TRANSITION_TRIGGER";
1178
+ transition: "fade";
1179
+ to: string;
1180
+ } | {
1181
+ type: "SWIPE_START";
1182
+ direction: import("../../sdk/transitions/utils/types").Direction;
1183
+ touchData: {
1184
+ x: number;
1185
+ y: number;
1186
+ };
1187
+ } | {
1188
+ type: "SWIPE_CANCEL";
1189
+ } | {
1190
+ type: "SWIPE_END";
1191
+ } | {
1192
+ type: "SETTLE_END";
1193
+ } | {
1194
+ type: "SWIPE_PROGRESS_UPDATE";
1195
+ touchData: {
1196
+ x: number;
1197
+ y: number;
1198
+ };
1199
+ }, Record<string, import("xstate").AnyActorRef | undefined>, import("xstate").StateValue, string, unknown, any, any>, {
1200
+ type: "SWIPE_PREPARE";
1201
+ touchData: {
1202
+ startX: number;
1203
+ startY: number;
1204
+ };
1205
+ } | {
1206
+ type: "TRANSITION_TRIGGER";
1207
+ transition: "slide";
1208
+ to: string;
1209
+ direction: import("../../sdk/transitions/utils/types").Direction;
1210
+ } | {
1211
+ type: "TRANSITION_TRIGGER";
1212
+ transition: "fade";
1213
+ to: string;
1214
+ } | {
1215
+ type: "SWIPE_START";
1216
+ direction: import("../../sdk/transitions/utils/types").Direction;
1217
+ touchData: {
1218
+ x: number;
1219
+ y: number;
1220
+ };
1221
+ } | {
1222
+ type: "SWIPE_CANCEL";
1223
+ } | {
1224
+ type: "SWIPE_END";
1225
+ } | {
1226
+ type: "SETTLE_END";
1227
+ } | {
1228
+ type: "SWIPE_PROGRESS_UPDATE";
1229
+ touchData: {
1230
+ x: number;
1231
+ y: number;
1232
+ };
1233
+ }, import("xstate").AnyEventObject>;
1234
+ }) => {
1235
+ input: import("../../sdk/transitions/transitionMachine").TransitionMachineInput;
1236
+ transitionReady: {
1237
+ north: boolean;
1238
+ east: boolean;
1239
+ south: boolean;
1240
+ west: boolean;
1241
+ };
1242
+ transition: null;
1243
+ scenes: import("../../sdk/transitions/utils/types").TransitionScene[];
1244
+ };
1245
+ readonly states: {
1246
+ readonly active: {
1247
+ readonly on: {
1248
+ readonly SWIPE_PREPARE: {
1249
+ readonly target: "preparing";
1250
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1251
+ type: "SWIPE_PREPARE";
1252
+ touchData: {
1253
+ startX: number;
1254
+ startY: number;
1255
+ };
1256
+ }, {
1257
+ type: "SWIPE_PREPARE";
1258
+ touchData: {
1259
+ startX: number;
1260
+ startY: number;
1261
+ };
1262
+ } | {
1263
+ type: "TRANSITION_TRIGGER";
1264
+ transition: "slide";
1265
+ to: string;
1266
+ direction: import("../../sdk/transitions/utils/types").Direction;
1267
+ } | {
1268
+ type: "TRANSITION_TRIGGER";
1269
+ transition: "fade";
1270
+ to: string;
1271
+ } | {
1272
+ type: "SWIPE_START";
1273
+ direction: import("../../sdk/transitions/utils/types").Direction;
1274
+ touchData: {
1275
+ x: number;
1276
+ y: number;
1277
+ };
1278
+ } | {
1279
+ type: "SWIPE_CANCEL";
1280
+ } | {
1281
+ type: "SWIPE_END";
1282
+ } | {
1283
+ type: "SETTLE_END";
1284
+ } | {
1285
+ type: "SWIPE_PROGRESS_UPDATE";
1286
+ touchData: {
1287
+ x: number;
1288
+ y: number;
1289
+ };
1290
+ }, undefined, {
1291
+ src: "waitForNextFrame";
1292
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1293
+ id: string | undefined;
1294
+ }, never, never, never, never>;
1295
+ };
1296
+ readonly TRANSITION_TRIGGER: {
1297
+ readonly target: "instant_transitioning";
1298
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1299
+ type: "TRANSITION_TRIGGER";
1300
+ transition: "slide";
1301
+ to: string;
1302
+ direction: import("../../sdk/transitions/utils/types").Direction;
1303
+ } | {
1304
+ type: "TRANSITION_TRIGGER";
1305
+ transition: "fade";
1306
+ to: string;
1307
+ }, {
1308
+ type: "SWIPE_PREPARE";
1309
+ touchData: {
1310
+ startX: number;
1311
+ startY: number;
1312
+ };
1313
+ } | {
1314
+ type: "TRANSITION_TRIGGER";
1315
+ transition: "slide";
1316
+ to: string;
1317
+ direction: import("../../sdk/transitions/utils/types").Direction;
1318
+ } | {
1319
+ type: "TRANSITION_TRIGGER";
1320
+ transition: "fade";
1321
+ to: string;
1322
+ } | {
1323
+ type: "SWIPE_START";
1324
+ direction: import("../../sdk/transitions/utils/types").Direction;
1325
+ touchData: {
1326
+ x: number;
1327
+ y: number;
1328
+ };
1329
+ } | {
1330
+ type: "SWIPE_CANCEL";
1331
+ } | {
1332
+ type: "SWIPE_END";
1333
+ } | {
1334
+ type: "SETTLE_END";
1335
+ } | {
1336
+ type: "SWIPE_PROGRESS_UPDATE";
1337
+ touchData: {
1338
+ x: number;
1339
+ y: number;
1340
+ };
1341
+ }, undefined, {
1342
+ src: "waitForNextFrame";
1343
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1344
+ id: string | undefined;
1345
+ }, never, never, never, never>;
1346
+ };
1347
+ };
1348
+ };
1349
+ readonly preparing: {
1350
+ readonly on: {
1351
+ readonly SWIPE_START: {
1352
+ readonly target: "transitioning";
1353
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1354
+ type: "SWIPE_START";
1355
+ direction: import("../../sdk/transitions/utils/types").Direction;
1356
+ touchData: {
1357
+ x: number;
1358
+ y: number;
1359
+ };
1360
+ }, {
1361
+ type: "SWIPE_PREPARE";
1362
+ touchData: {
1363
+ startX: number;
1364
+ startY: number;
1365
+ };
1366
+ } | {
1367
+ type: "TRANSITION_TRIGGER";
1368
+ transition: "slide";
1369
+ to: string;
1370
+ direction: import("../../sdk/transitions/utils/types").Direction;
1371
+ } | {
1372
+ type: "TRANSITION_TRIGGER";
1373
+ transition: "fade";
1374
+ to: string;
1375
+ } | {
1376
+ type: "SWIPE_START";
1377
+ direction: import("../../sdk/transitions/utils/types").Direction;
1378
+ touchData: {
1379
+ x: number;
1380
+ y: number;
1381
+ };
1382
+ } | {
1383
+ type: "SWIPE_CANCEL";
1384
+ } | {
1385
+ type: "SWIPE_END";
1386
+ } | {
1387
+ type: "SETTLE_END";
1388
+ } | {
1389
+ type: "SWIPE_PROGRESS_UPDATE";
1390
+ touchData: {
1391
+ x: number;
1392
+ y: number;
1393
+ };
1394
+ }, undefined, {
1395
+ src: "waitForNextFrame";
1396
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1397
+ id: string | undefined;
1398
+ }, never, never, never, never>;
1399
+ };
1400
+ readonly SWIPE_CANCEL: {
1401
+ readonly target: "active";
1402
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1403
+ type: "SWIPE_CANCEL";
1404
+ }, {
1405
+ type: "SWIPE_PREPARE";
1406
+ touchData: {
1407
+ startX: number;
1408
+ startY: number;
1409
+ };
1410
+ } | {
1411
+ type: "TRANSITION_TRIGGER";
1412
+ transition: "slide";
1413
+ to: string;
1414
+ direction: import("../../sdk/transitions/utils/types").Direction;
1415
+ } | {
1416
+ type: "TRANSITION_TRIGGER";
1417
+ transition: "fade";
1418
+ to: string;
1419
+ } | {
1420
+ type: "SWIPE_START";
1421
+ direction: import("../../sdk/transitions/utils/types").Direction;
1422
+ touchData: {
1423
+ x: number;
1424
+ y: number;
1425
+ };
1426
+ } | {
1427
+ type: "SWIPE_CANCEL";
1428
+ } | {
1429
+ type: "SWIPE_END";
1430
+ } | {
1431
+ type: "SETTLE_END";
1432
+ } | {
1433
+ type: "SWIPE_PROGRESS_UPDATE";
1434
+ touchData: {
1435
+ x: number;
1436
+ y: number;
1437
+ };
1438
+ }, undefined, {
1439
+ src: "waitForNextFrame";
1440
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1441
+ id: string | undefined;
1442
+ }, never, never, never, never>;
1443
+ };
1444
+ };
1445
+ };
1446
+ readonly transitioning: {
1447
+ readonly on: {
1448
+ readonly SWIPE_PROGRESS_UPDATE: {
1449
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1450
+ type: "SWIPE_PROGRESS_UPDATE";
1451
+ touchData: {
1452
+ x: number;
1453
+ y: number;
1454
+ };
1455
+ }, {
1456
+ type: "SWIPE_PREPARE";
1457
+ touchData: {
1458
+ startX: number;
1459
+ startY: number;
1460
+ };
1461
+ } | {
1462
+ type: "TRANSITION_TRIGGER";
1463
+ transition: "slide";
1464
+ to: string;
1465
+ direction: import("../../sdk/transitions/utils/types").Direction;
1466
+ } | {
1467
+ type: "TRANSITION_TRIGGER";
1468
+ transition: "fade";
1469
+ to: string;
1470
+ } | {
1471
+ type: "SWIPE_START";
1472
+ direction: import("../../sdk/transitions/utils/types").Direction;
1473
+ touchData: {
1474
+ x: number;
1475
+ y: number;
1476
+ };
1477
+ } | {
1478
+ type: "SWIPE_CANCEL";
1479
+ } | {
1480
+ type: "SWIPE_END";
1481
+ } | {
1482
+ type: "SETTLE_END";
1483
+ } | {
1484
+ type: "SWIPE_PROGRESS_UPDATE";
1485
+ touchData: {
1486
+ x: number;
1487
+ y: number;
1488
+ };
1489
+ }, undefined, {
1490
+ src: "waitForNextFrame";
1491
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1492
+ id: string | undefined;
1493
+ }, never, never, never, never>;
1494
+ };
1495
+ readonly SWIPE_END: {
1496
+ readonly target: "settling";
1497
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1498
+ type: "SWIPE_END";
1499
+ }, {
1500
+ type: "SWIPE_PREPARE";
1501
+ touchData: {
1502
+ startX: number;
1503
+ startY: number;
1504
+ };
1505
+ } | {
1506
+ type: "TRANSITION_TRIGGER";
1507
+ transition: "slide";
1508
+ to: string;
1509
+ direction: import("../../sdk/transitions/utils/types").Direction;
1510
+ } | {
1511
+ type: "TRANSITION_TRIGGER";
1512
+ transition: "fade";
1513
+ to: string;
1514
+ } | {
1515
+ type: "SWIPE_START";
1516
+ direction: import("../../sdk/transitions/utils/types").Direction;
1517
+ touchData: {
1518
+ x: number;
1519
+ y: number;
1520
+ };
1521
+ } | {
1522
+ type: "SWIPE_CANCEL";
1523
+ } | {
1524
+ type: "SWIPE_END";
1525
+ } | {
1526
+ type: "SETTLE_END";
1527
+ } | {
1528
+ type: "SWIPE_PROGRESS_UPDATE";
1529
+ touchData: {
1530
+ x: number;
1531
+ y: number;
1532
+ };
1533
+ }, undefined, {
1534
+ src: "waitForNextFrame";
1535
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1536
+ id: string | undefined;
1537
+ }, never, never, never, never>;
1538
+ };
1539
+ };
1540
+ };
1541
+ readonly instant_transitioning: {
1542
+ readonly invoke: {
1543
+ readonly src: "waitForNextFrame";
1544
+ readonly onDone: {
1545
+ readonly target: "settling";
1546
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, import("xstate").DoneActorEvent<void, string>, {
1547
+ type: "SWIPE_PREPARE";
1548
+ touchData: {
1549
+ startX: number;
1550
+ startY: number;
1551
+ };
1552
+ } | {
1553
+ type: "TRANSITION_TRIGGER";
1554
+ transition: "slide";
1555
+ to: string;
1556
+ direction: import("../../sdk/transitions/utils/types").Direction;
1557
+ } | {
1558
+ type: "TRANSITION_TRIGGER";
1559
+ transition: "fade";
1560
+ to: string;
1561
+ } | {
1562
+ type: "SWIPE_START";
1563
+ direction: import("../../sdk/transitions/utils/types").Direction;
1564
+ touchData: {
1565
+ x: number;
1566
+ y: number;
1567
+ };
1568
+ } | {
1569
+ type: "SWIPE_CANCEL";
1570
+ } | {
1571
+ type: "SWIPE_END";
1572
+ } | {
1573
+ type: "SETTLE_END";
1574
+ } | {
1575
+ type: "SWIPE_PROGRESS_UPDATE";
1576
+ touchData: {
1577
+ x: number;
1578
+ y: number;
1579
+ };
1580
+ }, undefined, {
1581
+ src: "waitForNextFrame";
1582
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1583
+ id: string | undefined;
1584
+ }, never, never, never, never>;
1585
+ };
1586
+ };
1587
+ };
1588
+ readonly settling: {
1589
+ readonly on: {
1590
+ readonly SETTLE_END: {
1591
+ readonly target: "active";
1592
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1593
+ type: "SETTLE_END";
1594
+ }, {
1595
+ type: "SWIPE_PREPARE";
1596
+ touchData: {
1597
+ startX: number;
1598
+ startY: number;
1599
+ };
1600
+ } | {
1601
+ type: "TRANSITION_TRIGGER";
1602
+ transition: "slide";
1603
+ to: string;
1604
+ direction: import("../../sdk/transitions/utils/types").Direction;
1605
+ } | {
1606
+ type: "TRANSITION_TRIGGER";
1607
+ transition: "fade";
1608
+ to: string;
1609
+ } | {
1610
+ type: "SWIPE_START";
1611
+ direction: import("../../sdk/transitions/utils/types").Direction;
1612
+ touchData: {
1613
+ x: number;
1614
+ y: number;
1615
+ };
1616
+ } | {
1617
+ type: "SWIPE_CANCEL";
1618
+ } | {
1619
+ type: "SWIPE_END";
1620
+ } | {
1621
+ type: "SETTLE_END";
1622
+ } | {
1623
+ type: "SWIPE_PROGRESS_UPDATE";
1624
+ touchData: {
1625
+ x: number;
1626
+ y: number;
1627
+ };
1628
+ }, undefined, {
1629
+ src: "waitForNextFrame";
1630
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1631
+ id: string | undefined;
1632
+ }, never, never, never, never>;
1633
+ };
1634
+ };
1635
+ };
1636
+ };
1637
+ }>> | undefined;
1638
+ machine?: never;
1639
+ logic?: import("xstate").StateMachine<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1640
+ type: "SWIPE_PREPARE";
1641
+ touchData: {
1642
+ startX: number;
1643
+ startY: number;
1644
+ };
1645
+ } | {
1646
+ type: "TRANSITION_TRIGGER";
1647
+ transition: "slide";
1648
+ to: string;
1649
+ direction: import("../../sdk/transitions/utils/types").Direction;
1650
+ } | {
1651
+ type: "TRANSITION_TRIGGER";
1652
+ transition: "fade";
1653
+ to: string;
1654
+ } | {
1655
+ type: "SWIPE_START";
1656
+ direction: import("../../sdk/transitions/utils/types").Direction;
1657
+ touchData: {
1658
+ x: number;
1659
+ y: number;
1660
+ };
1661
+ } | {
1662
+ type: "SWIPE_CANCEL";
1663
+ } | {
1664
+ type: "SWIPE_END";
1665
+ } | {
1666
+ type: "SETTLE_END";
1667
+ } | {
1668
+ type: "SWIPE_PROGRESS_UPDATE";
1669
+ touchData: {
1670
+ x: number;
1671
+ y: number;
1672
+ };
1673
+ }, {
1674
+ [x: string]: import("xstate").ActorRefFromLogic<import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>> | undefined;
1675
+ }, {
1676
+ src: "waitForNextFrame";
1677
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1678
+ id: string | undefined;
1679
+ }, never, never, never, "preparing" | "active" | "settling" | "instant_transitioning" | "transitioning", string, import("../../sdk/transitions/transitionMachine").TransitionMachineInput, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, {
1680
+ readonly id: "transition";
1681
+ readonly initial: "active";
1682
+ readonly context: ({ input }: {
1683
+ spawn: {
1684
+ <TSrc extends "waitForNextFrame">(logic: TSrc, ...[options]: {
1685
+ src: "waitForNextFrame";
1686
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1687
+ id: string | undefined;
1688
+ } extends infer T ? T extends {
1689
+ src: "waitForNextFrame";
1690
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1691
+ id: string | undefined;
1692
+ } ? T extends {
1693
+ src: TSrc;
1694
+ } ? import("xstate").ConditionalRequired<[options?: ({
1695
+ id?: T["id"] | undefined;
1696
+ systemId?: string;
1697
+ input?: import("xstate").InputFrom<T["logic"]> | undefined;
1698
+ syncSnapshot?: boolean;
1699
+ } & { [K in import("xstate").RequiredActorOptions<T>]: unknown; }) | undefined], import("xstate").IsNotNever<import("xstate").RequiredActorOptions<T>>> : never : never : never): import("xstate").ActorRefFromLogic<import("xstate").GetConcreteByKey<{
1700
+ src: "waitForNextFrame";
1701
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1702
+ id: string | undefined;
1703
+ }, "src", TSrc>["logic"]>;
1704
+ <TLogic extends import("xstate").AnyActorLogic>(src: TLogic, ...[options]: import("xstate").ConditionalRequired<[options?: ({
1705
+ id?: never;
1706
+ systemId?: string;
1707
+ input?: import("xstate").InputFrom<TLogic> | undefined;
1708
+ syncSnapshot?: boolean;
1709
+ } & { [K in import("xstate").RequiredLogicInput<TLogic>]: unknown; }) | undefined], import("xstate").IsNotNever<import("xstate").RequiredLogicInput<TLogic>>>): import("xstate").ActorRefFromLogic<TLogic>;
1710
+ };
1711
+ input: import("../../sdk/transitions/transitionMachine").TransitionMachineInput;
1712
+ self: import("xstate").ActorRef<import("xstate").MachineSnapshot<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1713
+ type: "SWIPE_PREPARE";
1714
+ touchData: {
1715
+ startX: number;
1716
+ startY: number;
1717
+ };
1718
+ } | {
1719
+ type: "TRANSITION_TRIGGER";
1720
+ transition: "slide";
1721
+ to: string;
1722
+ direction: import("../../sdk/transitions/utils/types").Direction;
1723
+ } | {
1724
+ type: "TRANSITION_TRIGGER";
1725
+ transition: "fade";
1726
+ to: string;
1727
+ } | {
1728
+ type: "SWIPE_START";
1729
+ direction: import("../../sdk/transitions/utils/types").Direction;
1730
+ touchData: {
1731
+ x: number;
1732
+ y: number;
1733
+ };
1734
+ } | {
1735
+ type: "SWIPE_CANCEL";
1736
+ } | {
1737
+ type: "SWIPE_END";
1738
+ } | {
1739
+ type: "SETTLE_END";
1740
+ } | {
1741
+ type: "SWIPE_PROGRESS_UPDATE";
1742
+ touchData: {
1743
+ x: number;
1744
+ y: number;
1745
+ };
1746
+ }, Record<string, import("xstate").AnyActorRef | undefined>, import("xstate").StateValue, string, unknown, any, any>, {
1747
+ type: "SWIPE_PREPARE";
1748
+ touchData: {
1749
+ startX: number;
1750
+ startY: number;
1751
+ };
1752
+ } | {
1753
+ type: "TRANSITION_TRIGGER";
1754
+ transition: "slide";
1755
+ to: string;
1756
+ direction: import("../../sdk/transitions/utils/types").Direction;
1757
+ } | {
1758
+ type: "TRANSITION_TRIGGER";
1759
+ transition: "fade";
1760
+ to: string;
1761
+ } | {
1762
+ type: "SWIPE_START";
1763
+ direction: import("../../sdk/transitions/utils/types").Direction;
1764
+ touchData: {
1765
+ x: number;
1766
+ y: number;
1767
+ };
1768
+ } | {
1769
+ type: "SWIPE_CANCEL";
1770
+ } | {
1771
+ type: "SWIPE_END";
1772
+ } | {
1773
+ type: "SETTLE_END";
1774
+ } | {
1775
+ type: "SWIPE_PROGRESS_UPDATE";
1776
+ touchData: {
1777
+ x: number;
1778
+ y: number;
1779
+ };
1780
+ }, import("xstate").AnyEventObject>;
1781
+ }) => {
1782
+ input: import("../../sdk/transitions/transitionMachine").TransitionMachineInput;
1783
+ transitionReady: {
1784
+ north: boolean;
1785
+ east: boolean;
1786
+ south: boolean;
1787
+ west: boolean;
1788
+ };
1789
+ transition: null;
1790
+ scenes: import("../../sdk/transitions/utils/types").TransitionScene[];
1791
+ };
1792
+ readonly states: {
1793
+ readonly active: {
1794
+ readonly on: {
1795
+ readonly SWIPE_PREPARE: {
1796
+ readonly target: "preparing";
1797
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1798
+ type: "SWIPE_PREPARE";
1799
+ touchData: {
1800
+ startX: number;
1801
+ startY: number;
1802
+ };
1803
+ }, {
1804
+ type: "SWIPE_PREPARE";
1805
+ touchData: {
1806
+ startX: number;
1807
+ startY: number;
1808
+ };
1809
+ } | {
1810
+ type: "TRANSITION_TRIGGER";
1811
+ transition: "slide";
1812
+ to: string;
1813
+ direction: import("../../sdk/transitions/utils/types").Direction;
1814
+ } | {
1815
+ type: "TRANSITION_TRIGGER";
1816
+ transition: "fade";
1817
+ to: string;
1818
+ } | {
1819
+ type: "SWIPE_START";
1820
+ direction: import("../../sdk/transitions/utils/types").Direction;
1821
+ touchData: {
1822
+ x: number;
1823
+ y: number;
1824
+ };
1825
+ } | {
1826
+ type: "SWIPE_CANCEL";
1827
+ } | {
1828
+ type: "SWIPE_END";
1829
+ } | {
1830
+ type: "SETTLE_END";
1831
+ } | {
1832
+ type: "SWIPE_PROGRESS_UPDATE";
1833
+ touchData: {
1834
+ x: number;
1835
+ y: number;
1836
+ };
1837
+ }, undefined, {
1838
+ src: "waitForNextFrame";
1839
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1840
+ id: string | undefined;
1841
+ }, never, never, never, never>;
1842
+ };
1843
+ readonly TRANSITION_TRIGGER: {
1844
+ readonly target: "instant_transitioning";
1845
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1846
+ type: "TRANSITION_TRIGGER";
1847
+ transition: "slide";
1848
+ to: string;
1849
+ direction: import("../../sdk/transitions/utils/types").Direction;
1850
+ } | {
1851
+ type: "TRANSITION_TRIGGER";
1852
+ transition: "fade";
1853
+ to: string;
1854
+ }, {
1855
+ type: "SWIPE_PREPARE";
1856
+ touchData: {
1857
+ startX: number;
1858
+ startY: number;
1859
+ };
1860
+ } | {
1861
+ type: "TRANSITION_TRIGGER";
1862
+ transition: "slide";
1863
+ to: string;
1864
+ direction: import("../../sdk/transitions/utils/types").Direction;
1865
+ } | {
1866
+ type: "TRANSITION_TRIGGER";
1867
+ transition: "fade";
1868
+ to: string;
1869
+ } | {
1870
+ type: "SWIPE_START";
1871
+ direction: import("../../sdk/transitions/utils/types").Direction;
1872
+ touchData: {
1873
+ x: number;
1874
+ y: number;
1875
+ };
1876
+ } | {
1877
+ type: "SWIPE_CANCEL";
1878
+ } | {
1879
+ type: "SWIPE_END";
1880
+ } | {
1881
+ type: "SETTLE_END";
1882
+ } | {
1883
+ type: "SWIPE_PROGRESS_UPDATE";
1884
+ touchData: {
1885
+ x: number;
1886
+ y: number;
1887
+ };
1888
+ }, undefined, {
1889
+ src: "waitForNextFrame";
1890
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1891
+ id: string | undefined;
1892
+ }, never, never, never, never>;
1893
+ };
1894
+ };
1895
+ };
1896
+ readonly preparing: {
1897
+ readonly on: {
1898
+ readonly SWIPE_START: {
1899
+ readonly target: "transitioning";
1900
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1901
+ type: "SWIPE_START";
1902
+ direction: import("../../sdk/transitions/utils/types").Direction;
1903
+ touchData: {
1904
+ x: number;
1905
+ y: number;
1906
+ };
1907
+ }, {
1908
+ type: "SWIPE_PREPARE";
1909
+ touchData: {
1910
+ startX: number;
1911
+ startY: number;
1912
+ };
1913
+ } | {
1914
+ type: "TRANSITION_TRIGGER";
1915
+ transition: "slide";
1916
+ to: string;
1917
+ direction: import("../../sdk/transitions/utils/types").Direction;
1918
+ } | {
1919
+ type: "TRANSITION_TRIGGER";
1920
+ transition: "fade";
1921
+ to: string;
1922
+ } | {
1923
+ type: "SWIPE_START";
1924
+ direction: import("../../sdk/transitions/utils/types").Direction;
1925
+ touchData: {
1926
+ x: number;
1927
+ y: number;
1928
+ };
1929
+ } | {
1930
+ type: "SWIPE_CANCEL";
1931
+ } | {
1932
+ type: "SWIPE_END";
1933
+ } | {
1934
+ type: "SETTLE_END";
1935
+ } | {
1936
+ type: "SWIPE_PROGRESS_UPDATE";
1937
+ touchData: {
1938
+ x: number;
1939
+ y: number;
1940
+ };
1941
+ }, undefined, {
1942
+ src: "waitForNextFrame";
1943
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1944
+ id: string | undefined;
1945
+ }, never, never, never, never>;
1946
+ };
1947
+ readonly SWIPE_CANCEL: {
1948
+ readonly target: "active";
1949
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1950
+ type: "SWIPE_CANCEL";
1951
+ }, {
1952
+ type: "SWIPE_PREPARE";
1953
+ touchData: {
1954
+ startX: number;
1955
+ startY: number;
1956
+ };
1957
+ } | {
1958
+ type: "TRANSITION_TRIGGER";
1959
+ transition: "slide";
1960
+ to: string;
1961
+ direction: import("../../sdk/transitions/utils/types").Direction;
1962
+ } | {
1963
+ type: "TRANSITION_TRIGGER";
1964
+ transition: "fade";
1965
+ to: string;
1966
+ } | {
1967
+ type: "SWIPE_START";
1968
+ direction: import("../../sdk/transitions/utils/types").Direction;
1969
+ touchData: {
1970
+ x: number;
1971
+ y: number;
1972
+ };
1973
+ } | {
1974
+ type: "SWIPE_CANCEL";
1975
+ } | {
1976
+ type: "SWIPE_END";
1977
+ } | {
1978
+ type: "SETTLE_END";
1979
+ } | {
1980
+ type: "SWIPE_PROGRESS_UPDATE";
1981
+ touchData: {
1982
+ x: number;
1983
+ y: number;
1984
+ };
1985
+ }, undefined, {
1986
+ src: "waitForNextFrame";
1987
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
1988
+ id: string | undefined;
1989
+ }, never, never, never, never>;
1990
+ };
1991
+ };
1992
+ };
1993
+ readonly transitioning: {
1994
+ readonly on: {
1995
+ readonly SWIPE_PROGRESS_UPDATE: {
1996
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
1997
+ type: "SWIPE_PROGRESS_UPDATE";
1998
+ touchData: {
1999
+ x: number;
2000
+ y: number;
2001
+ };
2002
+ }, {
2003
+ type: "SWIPE_PREPARE";
2004
+ touchData: {
2005
+ startX: number;
2006
+ startY: number;
2007
+ };
2008
+ } | {
2009
+ type: "TRANSITION_TRIGGER";
2010
+ transition: "slide";
2011
+ to: string;
2012
+ direction: import("../../sdk/transitions/utils/types").Direction;
2013
+ } | {
2014
+ type: "TRANSITION_TRIGGER";
2015
+ transition: "fade";
2016
+ to: string;
2017
+ } | {
2018
+ type: "SWIPE_START";
2019
+ direction: import("../../sdk/transitions/utils/types").Direction;
2020
+ touchData: {
2021
+ x: number;
2022
+ y: number;
2023
+ };
2024
+ } | {
2025
+ type: "SWIPE_CANCEL";
2026
+ } | {
2027
+ type: "SWIPE_END";
2028
+ } | {
2029
+ type: "SETTLE_END";
2030
+ } | {
2031
+ type: "SWIPE_PROGRESS_UPDATE";
2032
+ touchData: {
2033
+ x: number;
2034
+ y: number;
2035
+ };
2036
+ }, undefined, {
2037
+ src: "waitForNextFrame";
2038
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
2039
+ id: string | undefined;
2040
+ }, never, never, never, never>;
2041
+ };
2042
+ readonly SWIPE_END: {
2043
+ readonly target: "settling";
2044
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
2045
+ type: "SWIPE_END";
2046
+ }, {
2047
+ type: "SWIPE_PREPARE";
2048
+ touchData: {
2049
+ startX: number;
2050
+ startY: number;
2051
+ };
2052
+ } | {
2053
+ type: "TRANSITION_TRIGGER";
2054
+ transition: "slide";
2055
+ to: string;
2056
+ direction: import("../../sdk/transitions/utils/types").Direction;
2057
+ } | {
2058
+ type: "TRANSITION_TRIGGER";
2059
+ transition: "fade";
2060
+ to: string;
2061
+ } | {
2062
+ type: "SWIPE_START";
2063
+ direction: import("../../sdk/transitions/utils/types").Direction;
2064
+ touchData: {
2065
+ x: number;
2066
+ y: number;
2067
+ };
2068
+ } | {
2069
+ type: "SWIPE_CANCEL";
2070
+ } | {
2071
+ type: "SWIPE_END";
2072
+ } | {
2073
+ type: "SETTLE_END";
2074
+ } | {
2075
+ type: "SWIPE_PROGRESS_UPDATE";
2076
+ touchData: {
2077
+ x: number;
2078
+ y: number;
2079
+ };
2080
+ }, undefined, {
2081
+ src: "waitForNextFrame";
2082
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
2083
+ id: string | undefined;
2084
+ }, never, never, never, never>;
2085
+ };
2086
+ };
2087
+ };
2088
+ readonly instant_transitioning: {
2089
+ readonly invoke: {
2090
+ readonly src: "waitForNextFrame";
2091
+ readonly onDone: {
2092
+ readonly target: "settling";
2093
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, import("xstate").DoneActorEvent<void, string>, {
2094
+ type: "SWIPE_PREPARE";
2095
+ touchData: {
2096
+ startX: number;
2097
+ startY: number;
2098
+ };
2099
+ } | {
2100
+ type: "TRANSITION_TRIGGER";
2101
+ transition: "slide";
2102
+ to: string;
2103
+ direction: import("../../sdk/transitions/utils/types").Direction;
2104
+ } | {
2105
+ type: "TRANSITION_TRIGGER";
2106
+ transition: "fade";
2107
+ to: string;
2108
+ } | {
2109
+ type: "SWIPE_START";
2110
+ direction: import("../../sdk/transitions/utils/types").Direction;
2111
+ touchData: {
2112
+ x: number;
2113
+ y: number;
2114
+ };
2115
+ } | {
2116
+ type: "SWIPE_CANCEL";
2117
+ } | {
2118
+ type: "SWIPE_END";
2119
+ } | {
2120
+ type: "SETTLE_END";
2121
+ } | {
2122
+ type: "SWIPE_PROGRESS_UPDATE";
2123
+ touchData: {
2124
+ x: number;
2125
+ y: number;
2126
+ };
2127
+ }, undefined, {
2128
+ src: "waitForNextFrame";
2129
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
2130
+ id: string | undefined;
2131
+ }, never, never, never, never>;
2132
+ };
2133
+ };
2134
+ };
2135
+ readonly settling: {
2136
+ readonly on: {
2137
+ readonly SETTLE_END: {
2138
+ readonly target: "active";
2139
+ readonly actions: import("xstate").ActionFunction<import("../../sdk/transitions/transitionMachine").TransitionContext, {
2140
+ type: "SETTLE_END";
2141
+ }, {
2142
+ type: "SWIPE_PREPARE";
2143
+ touchData: {
2144
+ startX: number;
2145
+ startY: number;
2146
+ };
2147
+ } | {
2148
+ type: "TRANSITION_TRIGGER";
2149
+ transition: "slide";
2150
+ to: string;
2151
+ direction: import("../../sdk/transitions/utils/types").Direction;
2152
+ } | {
2153
+ type: "TRANSITION_TRIGGER";
2154
+ transition: "fade";
2155
+ to: string;
2156
+ } | {
2157
+ type: "SWIPE_START";
2158
+ direction: import("../../sdk/transitions/utils/types").Direction;
2159
+ touchData: {
2160
+ x: number;
2161
+ y: number;
2162
+ };
2163
+ } | {
2164
+ type: "SWIPE_CANCEL";
2165
+ } | {
2166
+ type: "SWIPE_END";
2167
+ } | {
2168
+ type: "SETTLE_END";
2169
+ } | {
2170
+ type: "SWIPE_PROGRESS_UPDATE";
2171
+ touchData: {
2172
+ x: number;
2173
+ y: number;
2174
+ };
2175
+ }, undefined, {
2176
+ src: "waitForNextFrame";
2177
+ logic: import("xstate").PromiseActorLogic<void, import("xstate").NonReducibleUnknown, import("xstate").EventObject>;
2178
+ id: string | undefined;
2179
+ }, never, never, never, never>;
2180
+ };
2181
+ };
2182
+ };
2183
+ };
2184
+ }> | undefined;
2185
+ }) => React.ReactElement<any, any>;
2186
+ };