@nordcraft/runtime 1.0.58 → 1.0.59

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.
@@ -1,36 +0,0 @@
1
- export type DragState = {
2
- /**
3
- * Dragging elements within the initial container is a reorder operation while dragging elements outside the initial container is an insert operation.
4
- * While they share some common properties, we need to differentiate between the two to handle them differently.
5
- */
6
- mode: 'reorder' | 'insert'
7
- elementType: 'element' | 'component' | 'text'
8
- copy?: HTMLElement
9
- element: HTMLElement
10
- repeatedNodes: HTMLElement[]
11
- offset: Point
12
- lastCursorPosition: Point
13
- initialContainer: HTMLElement
14
- initialNextSibling: Element | null
15
- initialRect: DOMRect
16
- reorderPermutations: Array<{
17
- nextSibling: Node | null
18
- rect: DOMRect
19
- }>
20
- isTransitioning: boolean
21
- selectedInsertAreaIndex?: number
22
- insertAreas?: Array<InsertArea>
23
- destroying: boolean
24
- }
25
-
26
- export type InsertArea = {
27
- layout: 'block' | 'inline'
28
- parent: Element
29
- index: number
30
- center: Point
31
- size: number
32
- direction: 1 | -1
33
- }
34
-
35
- export type Point = { x: number; y: number }
36
- export type Line = { x1: number; y1: number; x2: number; y2: number }