foldkit 0.106.0 → 0.108.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -4
- package/dist/devTools/overlay.d.ts +1 -1
- package/dist/devTools/overlay.d.ts.map +1 -1
- package/dist/devTools/overlay.js +11 -12
- package/dist/devTools/webSocketBridge.d.ts +2 -2
- package/dist/devTools/webSocketBridge.d.ts.map +1 -1
- package/dist/devTools/webSocketBridge.js +9 -0
- package/dist/html/index.d.ts +5 -1
- package/dist/html/index.d.ts.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/port/index.d.ts +2 -0
- package/dist/port/index.d.ts.map +1 -0
- package/dist/port/index.js +1 -0
- package/dist/port/port.d.ts +143 -0
- package/dist/port/port.d.ts.map +1 -0
- package/dist/port/port.js +156 -0
- package/dist/port/public.d.ts +3 -0
- package/dist/port/public.d.ts.map +1 -0
- package/dist/port/public.js +1 -0
- package/dist/runtime/browserListeners.d.ts +3 -3
- package/dist/runtime/browserListeners.d.ts.map +1 -1
- package/dist/runtime/browserListeners.js +23 -5
- package/dist/runtime/crashUI.d.ts.map +1 -1
- package/dist/runtime/crashUI.js +1 -3
- package/dist/runtime/public.d.ts +2 -2
- package/dist/runtime/public.d.ts.map +1 -1
- package/dist/runtime/public.js +1 -1
- package/dist/runtime/runtime.d.ts +172 -28
- package/dist/runtime/runtime.d.ts.map +1 -1
- package/dist/runtime/runtime.js +462 -62
- package/dist/runtime/subscription.d.ts +6 -1
- package/dist/runtime/subscription.d.ts.map +1 -1
- package/dist/ui/dragAndDrop/index.d.ts +212 -246
- package/dist/ui/dragAndDrop/index.d.ts.map +1 -1
- package/dist/ui/slider/index.d.ts +124 -179
- package/dist/ui/slider/index.d.ts.map +1 -1
- package/dist/ui/virtualList/index.d.ts +28 -38
- package/dist/ui/virtualList/index.d.ts.map +1 -1
- package/package.json +5 -1
|
@@ -5,7 +5,12 @@ type SubscriptionBrand = {
|
|
|
5
5
|
type DependenciesSchema<Dependencies> = Schema.Schema<Dependencies> & {
|
|
6
6
|
readonly fields: Schema.Struct.Fields;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* The entry shape produced by helpers like `Subscription.persistent` and
|
|
10
|
+
* `Port.subscription` before branding. Pass values of this shape into
|
|
11
|
+
* `Subscription.make` as entry values.
|
|
12
|
+
*/
|
|
13
|
+
export type EntryWithoutKeepAlive<Model, Message, Dependencies, Services> = {
|
|
9
14
|
readonly dependenciesSchema: DependenciesSchema<Dependencies>;
|
|
10
15
|
readonly modelToDependencies: (model: Model) => Dependencies;
|
|
11
16
|
readonly keepAliveEquivalence?: never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/runtime/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAU,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEjE,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,cAAc,EAAE,KAAK,CAAA;CAC/B,CAAA;AAED,KAAK,kBAAkB,CAAC,YAAY,IAAI,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG;IACpE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAA;CACtC,CAAA;AAED,
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/runtime/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAU,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEjE,KAAK,iBAAiB,GAAG;IACvB,QAAQ,CAAC,cAAc,EAAE,KAAK,CAAA;CAC/B,CAAA;AAED,KAAK,kBAAkB,CAAC,YAAY,IAAI,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,GAAG;IACpE,QAAQ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CAAC,CAAC,CAAC,SAAS,YAAY,CACxE,GAAG,EACH,GAAG,EACH,MAAM,YAAY,EAClB,MAAM,QAAQ,CACf,GACG,YAAY,CAAC,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,CAAC,GAChE,KAAK,GAkCA,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Effect, Equivalence, Option, Schema as S, Stream } from 'effect';
|
|
2
2
|
import * as Command from '../../command/index.js';
|
|
3
3
|
import { type Attribute } from '../../html/index.js';
|
|
4
|
+
import * as Subscription from '../../runtime/subscription.js';
|
|
4
5
|
declare const DropTarget: S.Struct<{
|
|
5
6
|
readonly containerId: S.String;
|
|
6
7
|
readonly index: S.Number;
|
|
@@ -153,292 +154,257 @@ type UpdateReturn = readonly [
|
|
|
153
154
|
export declare const update: (model: Model, message: Message) => UpdateReturn;
|
|
154
155
|
/** Document-level subscriptions for pointer and keyboard events during drag operations. */
|
|
155
156
|
export declare const subscriptions: {
|
|
156
|
-
readonly documentPointer: {
|
|
157
|
-
readonly
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
readonly
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
readonly id: string;
|
|
165
|
-
readonly orientation: "Vertical" | "Horizontal";
|
|
166
|
-
readonly activationThreshold: number;
|
|
167
|
-
readonly dragState: {
|
|
168
|
-
readonly _tag: "Idle";
|
|
169
|
-
} | {
|
|
170
|
-
readonly _tag: "Pending";
|
|
171
|
-
readonly itemId: string;
|
|
172
|
-
readonly containerId: string;
|
|
173
|
-
readonly index: number;
|
|
174
|
-
readonly origin: {
|
|
175
|
-
readonly screenX: number;
|
|
176
|
-
readonly screenY: number;
|
|
177
|
-
};
|
|
178
|
-
} | {
|
|
179
|
-
readonly _tag: "Dragging";
|
|
180
|
-
readonly itemId: string;
|
|
181
|
-
readonly sourceContainerId: string;
|
|
182
|
-
readonly sourceIndex: number;
|
|
183
|
-
readonly origin: {
|
|
184
|
-
readonly screenX: number;
|
|
185
|
-
readonly screenY: number;
|
|
186
|
-
};
|
|
187
|
-
readonly current: {
|
|
188
|
-
readonly clientX: number;
|
|
189
|
-
readonly clientY: number;
|
|
190
|
-
};
|
|
191
|
-
readonly maybeDropTarget: Option.Option<{
|
|
192
|
-
readonly containerId: string;
|
|
193
|
-
readonly index: number;
|
|
194
|
-
}>;
|
|
195
|
-
} | {
|
|
196
|
-
readonly _tag: "KeyboardDragging";
|
|
197
|
-
readonly itemId: string;
|
|
198
|
-
readonly sourceContainerId: string;
|
|
199
|
-
readonly sourceIndex: number;
|
|
200
|
-
readonly targetContainerId: string;
|
|
201
|
-
readonly targetIndex: number;
|
|
202
|
-
};
|
|
203
|
-
}) => {
|
|
204
|
-
readonly dragActivity: "Idle" | "Active";
|
|
205
|
-
readonly orientation: "Vertical" | "Horizontal";
|
|
206
|
-
};
|
|
207
|
-
readonly keepAliveEquivalence?: never;
|
|
208
|
-
readonly dependenciesToStream: (dependencies: {
|
|
209
|
-
readonly dragActivity: "Idle" | "Active";
|
|
210
|
-
readonly orientation: "Vertical" | "Horizontal";
|
|
211
|
-
}) => Stream.Stream<{
|
|
212
|
-
readonly _tag: "CancelledDrag";
|
|
213
|
-
} | {
|
|
214
|
-
readonly _tag: "PressedDraggable";
|
|
157
|
+
readonly documentPointer: Subscription.EntryWithoutKeepAlive<{
|
|
158
|
+
readonly id: string;
|
|
159
|
+
readonly orientation: "Vertical" | "Horizontal";
|
|
160
|
+
readonly activationThreshold: number;
|
|
161
|
+
readonly dragState: {
|
|
162
|
+
readonly _tag: "Idle";
|
|
163
|
+
} | {
|
|
164
|
+
readonly _tag: "Pending";
|
|
215
165
|
readonly itemId: string;
|
|
216
166
|
readonly containerId: string;
|
|
217
167
|
readonly index: number;
|
|
218
|
-
readonly
|
|
219
|
-
|
|
168
|
+
readonly origin: {
|
|
169
|
+
readonly screenX: number;
|
|
170
|
+
readonly screenY: number;
|
|
171
|
+
};
|
|
220
172
|
} | {
|
|
221
|
-
readonly _tag: "
|
|
222
|
-
readonly
|
|
223
|
-
readonly
|
|
224
|
-
readonly
|
|
225
|
-
readonly
|
|
173
|
+
readonly _tag: "Dragging";
|
|
174
|
+
readonly itemId: string;
|
|
175
|
+
readonly sourceContainerId: string;
|
|
176
|
+
readonly sourceIndex: number;
|
|
177
|
+
readonly origin: {
|
|
178
|
+
readonly screenX: number;
|
|
179
|
+
readonly screenY: number;
|
|
180
|
+
};
|
|
181
|
+
readonly current: {
|
|
182
|
+
readonly clientX: number;
|
|
183
|
+
readonly clientY: number;
|
|
184
|
+
};
|
|
226
185
|
readonly maybeDropTarget: Option.Option<{
|
|
227
186
|
readonly containerId: string;
|
|
228
187
|
readonly index: number;
|
|
229
188
|
}>;
|
|
230
189
|
} | {
|
|
231
|
-
readonly _tag: "
|
|
232
|
-
} | {
|
|
233
|
-
readonly _tag: "ActivatedKeyboardDrag";
|
|
190
|
+
readonly _tag: "KeyboardDragging";
|
|
234
191
|
readonly itemId: string;
|
|
235
|
-
readonly
|
|
236
|
-
readonly
|
|
237
|
-
} | {
|
|
238
|
-
readonly _tag: "ResolvedKeyboardMove";
|
|
192
|
+
readonly sourceContainerId: string;
|
|
193
|
+
readonly sourceIndex: number;
|
|
239
194
|
readonly targetContainerId: string;
|
|
240
195
|
readonly targetIndex: number;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
196
|
+
};
|
|
197
|
+
}, {
|
|
198
|
+
readonly _tag: "CancelledDrag";
|
|
199
|
+
} | {
|
|
200
|
+
readonly _tag: "PressedDraggable";
|
|
201
|
+
readonly itemId: string;
|
|
202
|
+
readonly containerId: string;
|
|
203
|
+
readonly index: number;
|
|
204
|
+
readonly screenX: number;
|
|
205
|
+
readonly screenY: number;
|
|
206
|
+
} | {
|
|
207
|
+
readonly _tag: "MovedPointer";
|
|
208
|
+
readonly screenX: number;
|
|
209
|
+
readonly screenY: number;
|
|
210
|
+
readonly clientX: number;
|
|
211
|
+
readonly clientY: number;
|
|
212
|
+
readonly maybeDropTarget: Option.Option<{
|
|
213
|
+
readonly containerId: string;
|
|
214
|
+
readonly index: number;
|
|
215
|
+
}>;
|
|
216
|
+
} | {
|
|
217
|
+
readonly _tag: "ReleasedPointer";
|
|
218
|
+
} | {
|
|
219
|
+
readonly _tag: "ActivatedKeyboardDrag";
|
|
220
|
+
readonly itemId: string;
|
|
221
|
+
readonly containerId: string;
|
|
222
|
+
readonly index: number;
|
|
223
|
+
} | {
|
|
224
|
+
readonly _tag: "ResolvedKeyboardMove";
|
|
225
|
+
readonly targetContainerId: string;
|
|
226
|
+
readonly targetIndex: number;
|
|
227
|
+
} | {
|
|
228
|
+
readonly _tag: "ConfirmedKeyboardDrop";
|
|
229
|
+
} | {
|
|
230
|
+
readonly _tag: "PressedArrowKey";
|
|
231
|
+
readonly direction: "Left" | "Right" | "Up" | "Down" | "NextContainer" | "PreviousContainer";
|
|
232
|
+
} | {
|
|
233
|
+
readonly _tag: "AdvancedAutoScrollFrame";
|
|
234
|
+
} | {
|
|
235
|
+
readonly _tag: "CompletedFocusItem";
|
|
236
|
+
}, {
|
|
237
|
+
readonly dragActivity: "Idle" | "Active";
|
|
238
|
+
readonly orientation: "Vertical" | "Horizontal";
|
|
239
|
+
}, never> & {
|
|
252
240
|
readonly __subscription: never;
|
|
253
241
|
};
|
|
254
|
-
readonly documentEscape: {
|
|
255
|
-
readonly
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
readonly
|
|
262
|
-
readonly orientation: "Vertical" | "Horizontal";
|
|
263
|
-
readonly activationThreshold: number;
|
|
264
|
-
readonly dragState: {
|
|
265
|
-
readonly _tag: "Idle";
|
|
266
|
-
} | {
|
|
267
|
-
readonly _tag: "Pending";
|
|
268
|
-
readonly itemId: string;
|
|
269
|
-
readonly containerId: string;
|
|
270
|
-
readonly index: number;
|
|
271
|
-
readonly origin: {
|
|
272
|
-
readonly screenX: number;
|
|
273
|
-
readonly screenY: number;
|
|
274
|
-
};
|
|
275
|
-
} | {
|
|
276
|
-
readonly _tag: "Dragging";
|
|
277
|
-
readonly itemId: string;
|
|
278
|
-
readonly sourceContainerId: string;
|
|
279
|
-
readonly sourceIndex: number;
|
|
280
|
-
readonly origin: {
|
|
281
|
-
readonly screenX: number;
|
|
282
|
-
readonly screenY: number;
|
|
283
|
-
};
|
|
284
|
-
readonly current: {
|
|
285
|
-
readonly clientX: number;
|
|
286
|
-
readonly clientY: number;
|
|
287
|
-
};
|
|
288
|
-
readonly maybeDropTarget: Option.Option<{
|
|
289
|
-
readonly containerId: string;
|
|
290
|
-
readonly index: number;
|
|
291
|
-
}>;
|
|
292
|
-
} | {
|
|
293
|
-
readonly _tag: "KeyboardDragging";
|
|
294
|
-
readonly itemId: string;
|
|
295
|
-
readonly sourceContainerId: string;
|
|
296
|
-
readonly sourceIndex: number;
|
|
297
|
-
readonly targetContainerId: string;
|
|
298
|
-
readonly targetIndex: number;
|
|
299
|
-
};
|
|
300
|
-
}) => {
|
|
301
|
-
readonly dragActivity: "Idle" | "Active";
|
|
302
|
-
};
|
|
303
|
-
readonly keepAliveEquivalence?: never;
|
|
304
|
-
readonly dependenciesToStream: (dependencies: {
|
|
305
|
-
readonly dragActivity: "Idle" | "Active";
|
|
306
|
-
}) => Stream.Stream<{
|
|
307
|
-
readonly _tag: "CancelledDrag";
|
|
308
|
-
} | {
|
|
309
|
-
readonly _tag: "PressedDraggable";
|
|
242
|
+
readonly documentEscape: Subscription.EntryWithoutKeepAlive<{
|
|
243
|
+
readonly id: string;
|
|
244
|
+
readonly orientation: "Vertical" | "Horizontal";
|
|
245
|
+
readonly activationThreshold: number;
|
|
246
|
+
readonly dragState: {
|
|
247
|
+
readonly _tag: "Idle";
|
|
248
|
+
} | {
|
|
249
|
+
readonly _tag: "Pending";
|
|
310
250
|
readonly itemId: string;
|
|
311
251
|
readonly containerId: string;
|
|
312
252
|
readonly index: number;
|
|
313
|
-
readonly
|
|
314
|
-
|
|
253
|
+
readonly origin: {
|
|
254
|
+
readonly screenX: number;
|
|
255
|
+
readonly screenY: number;
|
|
256
|
+
};
|
|
315
257
|
} | {
|
|
316
|
-
readonly _tag: "
|
|
317
|
-
readonly
|
|
318
|
-
readonly
|
|
319
|
-
readonly
|
|
320
|
-
readonly
|
|
258
|
+
readonly _tag: "Dragging";
|
|
259
|
+
readonly itemId: string;
|
|
260
|
+
readonly sourceContainerId: string;
|
|
261
|
+
readonly sourceIndex: number;
|
|
262
|
+
readonly origin: {
|
|
263
|
+
readonly screenX: number;
|
|
264
|
+
readonly screenY: number;
|
|
265
|
+
};
|
|
266
|
+
readonly current: {
|
|
267
|
+
readonly clientX: number;
|
|
268
|
+
readonly clientY: number;
|
|
269
|
+
};
|
|
321
270
|
readonly maybeDropTarget: Option.Option<{
|
|
322
271
|
readonly containerId: string;
|
|
323
272
|
readonly index: number;
|
|
324
273
|
}>;
|
|
325
274
|
} | {
|
|
326
|
-
readonly _tag: "
|
|
327
|
-
} | {
|
|
328
|
-
readonly _tag: "ActivatedKeyboardDrag";
|
|
275
|
+
readonly _tag: "KeyboardDragging";
|
|
329
276
|
readonly itemId: string;
|
|
330
|
-
readonly
|
|
331
|
-
readonly
|
|
332
|
-
} | {
|
|
333
|
-
readonly _tag: "ResolvedKeyboardMove";
|
|
277
|
+
readonly sourceContainerId: string;
|
|
278
|
+
readonly sourceIndex: number;
|
|
334
279
|
readonly targetContainerId: string;
|
|
335
280
|
readonly targetIndex: number;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
}
|
|
281
|
+
};
|
|
282
|
+
}, {
|
|
283
|
+
readonly _tag: "CancelledDrag";
|
|
284
|
+
} | {
|
|
285
|
+
readonly _tag: "PressedDraggable";
|
|
286
|
+
readonly itemId: string;
|
|
287
|
+
readonly containerId: string;
|
|
288
|
+
readonly index: number;
|
|
289
|
+
readonly screenX: number;
|
|
290
|
+
readonly screenY: number;
|
|
291
|
+
} | {
|
|
292
|
+
readonly _tag: "MovedPointer";
|
|
293
|
+
readonly screenX: number;
|
|
294
|
+
readonly screenY: number;
|
|
295
|
+
readonly clientX: number;
|
|
296
|
+
readonly clientY: number;
|
|
297
|
+
readonly maybeDropTarget: Option.Option<{
|
|
298
|
+
readonly containerId: string;
|
|
299
|
+
readonly index: number;
|
|
300
|
+
}>;
|
|
301
|
+
} | {
|
|
302
|
+
readonly _tag: "ReleasedPointer";
|
|
303
|
+
} | {
|
|
304
|
+
readonly _tag: "ActivatedKeyboardDrag";
|
|
305
|
+
readonly itemId: string;
|
|
306
|
+
readonly containerId: string;
|
|
307
|
+
readonly index: number;
|
|
308
|
+
} | {
|
|
309
|
+
readonly _tag: "ResolvedKeyboardMove";
|
|
310
|
+
readonly targetContainerId: string;
|
|
311
|
+
readonly targetIndex: number;
|
|
312
|
+
} | {
|
|
313
|
+
readonly _tag: "ConfirmedKeyboardDrop";
|
|
314
|
+
} | {
|
|
315
|
+
readonly _tag: "PressedArrowKey";
|
|
316
|
+
readonly direction: "Left" | "Right" | "Up" | "Down" | "NextContainer" | "PreviousContainer";
|
|
317
|
+
} | {
|
|
318
|
+
readonly _tag: "AdvancedAutoScrollFrame";
|
|
319
|
+
} | {
|
|
320
|
+
readonly _tag: "CompletedFocusItem";
|
|
321
|
+
}, {
|
|
322
|
+
readonly dragActivity: "Idle" | "Active";
|
|
323
|
+
}, never> & {
|
|
347
324
|
readonly __subscription: never;
|
|
348
325
|
};
|
|
349
|
-
readonly documentKeyboard: {
|
|
350
|
-
readonly
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
readonly
|
|
357
|
-
readonly orientation: "Vertical" | "Horizontal";
|
|
358
|
-
readonly activationThreshold: number;
|
|
359
|
-
readonly dragState: {
|
|
360
|
-
readonly _tag: "Idle";
|
|
361
|
-
} | {
|
|
362
|
-
readonly _tag: "Pending";
|
|
363
|
-
readonly itemId: string;
|
|
364
|
-
readonly containerId: string;
|
|
365
|
-
readonly index: number;
|
|
366
|
-
readonly origin: {
|
|
367
|
-
readonly screenX: number;
|
|
368
|
-
readonly screenY: number;
|
|
369
|
-
};
|
|
370
|
-
} | {
|
|
371
|
-
readonly _tag: "Dragging";
|
|
372
|
-
readonly itemId: string;
|
|
373
|
-
readonly sourceContainerId: string;
|
|
374
|
-
readonly sourceIndex: number;
|
|
375
|
-
readonly origin: {
|
|
376
|
-
readonly screenX: number;
|
|
377
|
-
readonly screenY: number;
|
|
378
|
-
};
|
|
379
|
-
readonly current: {
|
|
380
|
-
readonly clientX: number;
|
|
381
|
-
readonly clientY: number;
|
|
382
|
-
};
|
|
383
|
-
readonly maybeDropTarget: Option.Option<{
|
|
384
|
-
readonly containerId: string;
|
|
385
|
-
readonly index: number;
|
|
386
|
-
}>;
|
|
387
|
-
} | {
|
|
388
|
-
readonly _tag: "KeyboardDragging";
|
|
389
|
-
readonly itemId: string;
|
|
390
|
-
readonly sourceContainerId: string;
|
|
391
|
-
readonly sourceIndex: number;
|
|
392
|
-
readonly targetContainerId: string;
|
|
393
|
-
readonly targetIndex: number;
|
|
394
|
-
};
|
|
395
|
-
}) => {
|
|
396
|
-
readonly dragActivity: "Idle" | "Active";
|
|
397
|
-
};
|
|
398
|
-
readonly keepAliveEquivalence?: never;
|
|
399
|
-
readonly dependenciesToStream: (dependencies: {
|
|
400
|
-
readonly dragActivity: "Idle" | "Active";
|
|
401
|
-
}) => Stream.Stream<{
|
|
402
|
-
readonly _tag: "CancelledDrag";
|
|
403
|
-
} | {
|
|
404
|
-
readonly _tag: "PressedDraggable";
|
|
326
|
+
readonly documentKeyboard: Subscription.EntryWithoutKeepAlive<{
|
|
327
|
+
readonly id: string;
|
|
328
|
+
readonly orientation: "Vertical" | "Horizontal";
|
|
329
|
+
readonly activationThreshold: number;
|
|
330
|
+
readonly dragState: {
|
|
331
|
+
readonly _tag: "Idle";
|
|
332
|
+
} | {
|
|
333
|
+
readonly _tag: "Pending";
|
|
405
334
|
readonly itemId: string;
|
|
406
335
|
readonly containerId: string;
|
|
407
336
|
readonly index: number;
|
|
408
|
-
readonly
|
|
409
|
-
|
|
337
|
+
readonly origin: {
|
|
338
|
+
readonly screenX: number;
|
|
339
|
+
readonly screenY: number;
|
|
340
|
+
};
|
|
410
341
|
} | {
|
|
411
|
-
readonly _tag: "
|
|
412
|
-
readonly
|
|
413
|
-
readonly
|
|
414
|
-
readonly
|
|
415
|
-
readonly
|
|
342
|
+
readonly _tag: "Dragging";
|
|
343
|
+
readonly itemId: string;
|
|
344
|
+
readonly sourceContainerId: string;
|
|
345
|
+
readonly sourceIndex: number;
|
|
346
|
+
readonly origin: {
|
|
347
|
+
readonly screenX: number;
|
|
348
|
+
readonly screenY: number;
|
|
349
|
+
};
|
|
350
|
+
readonly current: {
|
|
351
|
+
readonly clientX: number;
|
|
352
|
+
readonly clientY: number;
|
|
353
|
+
};
|
|
416
354
|
readonly maybeDropTarget: Option.Option<{
|
|
417
355
|
readonly containerId: string;
|
|
418
356
|
readonly index: number;
|
|
419
357
|
}>;
|
|
420
358
|
} | {
|
|
421
|
-
readonly _tag: "
|
|
422
|
-
} | {
|
|
423
|
-
readonly _tag: "ActivatedKeyboardDrag";
|
|
359
|
+
readonly _tag: "KeyboardDragging";
|
|
424
360
|
readonly itemId: string;
|
|
425
|
-
readonly
|
|
426
|
-
readonly
|
|
427
|
-
} | {
|
|
428
|
-
readonly _tag: "ResolvedKeyboardMove";
|
|
361
|
+
readonly sourceContainerId: string;
|
|
362
|
+
readonly sourceIndex: number;
|
|
429
363
|
readonly targetContainerId: string;
|
|
430
364
|
readonly targetIndex: number;
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
}
|
|
365
|
+
};
|
|
366
|
+
}, {
|
|
367
|
+
readonly _tag: "CancelledDrag";
|
|
368
|
+
} | {
|
|
369
|
+
readonly _tag: "PressedDraggable";
|
|
370
|
+
readonly itemId: string;
|
|
371
|
+
readonly containerId: string;
|
|
372
|
+
readonly index: number;
|
|
373
|
+
readonly screenX: number;
|
|
374
|
+
readonly screenY: number;
|
|
375
|
+
} | {
|
|
376
|
+
readonly _tag: "MovedPointer";
|
|
377
|
+
readonly screenX: number;
|
|
378
|
+
readonly screenY: number;
|
|
379
|
+
readonly clientX: number;
|
|
380
|
+
readonly clientY: number;
|
|
381
|
+
readonly maybeDropTarget: Option.Option<{
|
|
382
|
+
readonly containerId: string;
|
|
383
|
+
readonly index: number;
|
|
384
|
+
}>;
|
|
385
|
+
} | {
|
|
386
|
+
readonly _tag: "ReleasedPointer";
|
|
387
|
+
} | {
|
|
388
|
+
readonly _tag: "ActivatedKeyboardDrag";
|
|
389
|
+
readonly itemId: string;
|
|
390
|
+
readonly containerId: string;
|
|
391
|
+
readonly index: number;
|
|
392
|
+
} | {
|
|
393
|
+
readonly _tag: "ResolvedKeyboardMove";
|
|
394
|
+
readonly targetContainerId: string;
|
|
395
|
+
readonly targetIndex: number;
|
|
396
|
+
} | {
|
|
397
|
+
readonly _tag: "ConfirmedKeyboardDrop";
|
|
398
|
+
} | {
|
|
399
|
+
readonly _tag: "PressedArrowKey";
|
|
400
|
+
readonly direction: "Left" | "Right" | "Up" | "Down" | "NextContainer" | "PreviousContainer";
|
|
401
|
+
} | {
|
|
402
|
+
readonly _tag: "AdvancedAutoScrollFrame";
|
|
403
|
+
} | {
|
|
404
|
+
readonly _tag: "CompletedFocusItem";
|
|
405
|
+
}, {
|
|
406
|
+
readonly dragActivity: "Idle" | "Active";
|
|
407
|
+
}, never> & {
|
|
442
408
|
readonly __subscription: never;
|
|
443
409
|
};
|
|
444
410
|
readonly autoScroll: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/dragAndDrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAEN,WAAW,EAEX,MAAM,EAEN,MAAM,IAAI,CAAC,EACX,MAAM,EAEP,MAAM,QAAQ,CAAA;AAEf,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAA;AAEjD,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,qBAAqB,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ui/dragAndDrop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAEN,WAAW,EAEX,MAAM,EAEN,MAAM,IAAI,CAAC,EACX,MAAM,EAEP,MAAM,QAAQ,CAAA;AAEf,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAA;AAEjD,OAAO,EAAE,KAAK,SAAS,EAAQ,MAAM,qBAAqB,CAAA;AAE1D,OAAO,KAAK,YAAY,MAAM,+BAA+B,CAAA;AAkB7D,QAAA,MAAM,UAAU;;;EAGd,CAAA;AA8BF,mHAAmH;AACnH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKhB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAA;AAIrC,sDAAsD;AACtD,eAAO,MAAM,gBAAgB;;;;;;EAM3B,CAAA;AACF,yEAAyE;AACzE,eAAO,MAAM,YAAY;;;;;;;;;EAMvB,CAAA;AACF,gCAAgC;AAChC,eAAO,MAAM,eAAe,6EAAuB,CAAA;AACnD,wCAAwC;AACxC,eAAO,MAAM,aAAa,2EAAqB,CAAA;AAC/C,mFAAmF;AACnF,eAAO,MAAM,qBAAqB;;;;EAIhC,CAAA;AACF,gFAAgF;AAChF,eAAO,MAAM,oBAAoB;;;EAG/B,CAAA;AACF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