@interactjs/types
Advanced tools
Comparing version 1.9.4 to 1.9.5
{ | ||
"name": "@interactjs/types", | ||
"version": "1.9.4", | ||
"version": "1.9.5", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@interactjs/actions": "1.9.4", | ||
"@interactjs/auto-scroll": "1.9.4", | ||
"@interactjs/auto-start": "1.9.4", | ||
"@interactjs/core": "1.9.4", | ||
"@interactjs/dev-tools": "1.9.4", | ||
"@interactjs/inertia": "1.9.4", | ||
"@interactjs/interact": "1.9.4", | ||
"@interactjs/modifiers": "1.9.4", | ||
"@interactjs/pointer-events": "1.9.4", | ||
"@interactjs/reflow": "1.9.4", | ||
"@interactjs/utils": "1.9.4" | ||
"@interactjs/actions": "1.9.5", | ||
"@interactjs/arrange": "1.9.5", | ||
"@interactjs/auto-scroll": "1.9.5", | ||
"@interactjs/auto-start": "1.9.5", | ||
"@interactjs/core": "1.9.5", | ||
"@interactjs/dev-tools": "1.9.5", | ||
"@interactjs/inertia": "1.9.5", | ||
"@interactjs/interact": "1.9.5", | ||
"@interactjs/modifiers": "1.9.5", | ||
"@interactjs/pointer-events": "1.9.5", | ||
"@interactjs/reflow": "1.9.5", | ||
"@interactjs/symbol-tree": "1.9.5", | ||
"@interactjs/utils": "1.9.5" | ||
}, | ||
"devDependencies": { | ||
"@interactjs/_dev": "1.9.4" | ||
"@interactjs/_dev": "1.9.5" | ||
}, | ||
@@ -24,3 +26,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "090f296d" | ||
"gitHead": "cb94f9a0" | ||
} |
@@ -25,8 +25,19 @@ // Type definitions for interact.js | ||
import '@interactjs/auto-start/InteractableMethods' | ||
import '@interactjs/core/InteractStatic' | ||
import '@interactjs/core/interactablePreventDefault' | ||
import '@interactjs/dev-tools' | ||
import '@interactjs/inertia' | ||
import '@interactjs/interactions' | ||
import '@interactjs/modifiers' | ||
import '@interactjs/pointer-events/interactableTargets' | ||
import '@interactjs/pointer-events/base' | ||
import '@interactjs/reflow' | ||
import * as arrange from '@interactjs/arrange' | ||
import SymbolTree from '@interactjs/symbol-tree' | ||
import _ElementState from '@interactjs/utils/ElementState' | ||
declare namespace InteractPro { | ||
} | ||
declare namespace Interact { | ||
@@ -38,2 +49,3 @@ type OrBoolean<T> = { | ||
export type Element = HTMLElement | SVGElement | ||
export type Context = Document | Element | ||
export type EventTarget = Window | Document | Element | ||
@@ -235,2 +247,42 @@ export type Target = Interact.EventTarget | string | ||
} | ||
type ArrayElementType<T> = T extends Array<infer P> ? P : never | ||
export type ElementState = _ElementState | ||
export namespace Arrange { | ||
export type Mode = arrange.ArrangeMode | ||
export type ArrangeEvent = arrange.ArrangeEvent | ||
export interface State { | ||
active: boolean | ||
mode: arrange.ArrangeMode | ||
relativePoint: Interact.Point | ||
ending: boolean | ||
tree: typeof SymbolTree | ||
startPos: Position | ||
prevPos: Position | ||
rejected: Position | ||
finalPos: Position | ||
prevSwap?: Swap | ||
prevDropzone?: ArrayElementType<Interact.Interaction['dropState']['activeDrops']> | ||
draggableChild: ElementState | ||
feedbackChild: ElementState | ||
mirroring: boolean | ||
dropzones: Interact.Interaction['dropState']['activeDrops'] | ||
updatePromise: PromiseLike<void> | ||
movedDuringDisplacement: boolean | ||
} | ||
export interface Position { | ||
dropzone: Interact.Interactable | ||
parent: Element | ||
index: number | ||
} | ||
export interface Swap { | ||
child: ElementState | ||
parent: Element | ||
} | ||
} | ||
} | ||
@@ -237,0 +289,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43447
489
13
+ Added@interactjs/arrange@1.9.5
+ Added@interactjs/actions@1.9.5(transitive)
+ Added@interactjs/arrange@1.9.5(transitive)
+ Added@interactjs/auto-scroll@1.9.5(transitive)
+ Added@interactjs/auto-start@1.9.5(transitive)
+ Added@interactjs/core@1.9.5(transitive)
+ Added@interactjs/dev-tools@1.9.5(transitive)
+ Added@interactjs/inertia@1.9.5(transitive)
+ Added@interactjs/interact@1.9.5(transitive)
+ Added@interactjs/modifiers@1.9.5(transitive)
+ Added@interactjs/offset@1.9.5(transitive)
+ Added@interactjs/pointer-events@1.9.5(transitive)
+ Added@interactjs/reflow@1.9.5(transitive)
+ Added@interactjs/snappers@1.9.5(transitive)
+ Added@interactjs/symbol-tree@1.9.5(transitive)
+ Added@interactjs/utils@1.9.5(transitive)
- Removed@interactjs/actions@1.9.4(transitive)
- Removed@interactjs/auto-scroll@1.9.4(transitive)
- Removed@interactjs/auto-start@1.9.4(transitive)
- Removed@interactjs/core@1.9.4(transitive)
- Removed@interactjs/dev-tools@1.9.4(transitive)
- Removed@interactjs/inertia@1.9.4(transitive)
- Removed@interactjs/interact@1.9.4(transitive)
- Removed@interactjs/modifiers@1.9.4(transitive)
- Removed@interactjs/offset@1.9.4(transitive)
- Removed@interactjs/pointer-events@1.9.4(transitive)
- Removed@interactjs/reflow@1.9.4(transitive)
- Removed@interactjs/utils@1.9.4(transitive)
Updated@interactjs/actions@1.9.5
Updated@interactjs/auto-start@1.9.5
Updated@interactjs/core@1.9.5
Updated@interactjs/dev-tools@1.9.5
Updated@interactjs/inertia@1.9.5
Updated@interactjs/interact@1.9.5
Updated@interactjs/modifiers@1.9.5
Updated@interactjs/reflow@1.9.5
Updated@interactjs/utils@1.9.5