@baleada/logic 0.24.17 → 0.24.19
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/lib/index.cjs +56 -347
- package/lib/index.d.ts +37 -114
- package/lib/index.js +53 -338
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1190,7 +1190,7 @@ type FetchMethodOptions = Omit<FetchOptions, 'method'>;
|
|
|
1190
1190
|
/**
|
|
1191
1191
|
* [Docs](https://baleada.dev/docs/logic/classes/fetchable)
|
|
1192
1192
|
*/
|
|
1193
|
-
declare class Fetchable {
|
|
1193
|
+
declare class Fetchable<ResolveableValue> {
|
|
1194
1194
|
private computedArrayBuffer;
|
|
1195
1195
|
private computedBlob;
|
|
1196
1196
|
private computedFormData;
|
|
@@ -1213,7 +1213,7 @@ declare class Fetchable {
|
|
|
1213
1213
|
get arrayBuffer(): Resolveable<ArrayBuffer>;
|
|
1214
1214
|
get blob(): Resolveable<Blob>;
|
|
1215
1215
|
get formData(): Resolveable<FormData>;
|
|
1216
|
-
get json(): Resolveable<
|
|
1216
|
+
get json(): Resolveable<ResolveableValue>;
|
|
1217
1217
|
get text(): Resolveable<string>;
|
|
1218
1218
|
private computedResource;
|
|
1219
1219
|
setResource(resource: string): this;
|
|
@@ -1546,133 +1546,56 @@ declare class Konami extends Listenable<KonamiType, KonamiMetadata> {
|
|
|
1546
1546
|
get metadata(): KeychordMetadata;
|
|
1547
1547
|
}
|
|
1548
1548
|
|
|
1549
|
-
type
|
|
1550
|
-
type
|
|
1551
|
-
type
|
|
1549
|
+
type PointerpressType = 'pointerdown' | 'pointerout' | 'pointerup';
|
|
1550
|
+
type PointerpressMetadata = PointerStartMetadata & PointerMoveMetadata & PointerTimeMetadata;
|
|
1551
|
+
type PointerpressOptions = {
|
|
1552
1552
|
minDuration?: number;
|
|
1553
1553
|
minDistance?: number;
|
|
1554
|
-
onDown?:
|
|
1555
|
-
onMove?:
|
|
1556
|
-
onOut?:
|
|
1557
|
-
onUp?:
|
|
1554
|
+
onDown?: PointerpressHook;
|
|
1555
|
+
onMove?: PointerpressHook;
|
|
1556
|
+
onOut?: PointerpressHook;
|
|
1557
|
+
onUp?: PointerpressHook;
|
|
1558
1558
|
};
|
|
1559
|
-
type
|
|
1560
|
-
type
|
|
1559
|
+
type PointerpressHook = (api: PointerpressHookApi) => any;
|
|
1560
|
+
type PointerpressHookApi = HookApi<PointerpressType, PointerpressMetadata>;
|
|
1561
1561
|
/**
|
|
1562
|
-
* [Docs](https://baleada.dev/docs/logic/factories/
|
|
1562
|
+
* [Docs](https://baleada.dev/docs/logic/factories/pointerpress)
|
|
1563
1563
|
*/
|
|
1564
|
-
declare function
|
|
1565
|
-
|
|
1566
|
-
effect: RecognizeableEffect<"
|
|
1567
|
-
stop: (target: RecognizeableStopTarget<
|
|
1564
|
+
declare function createPointerpress(options?: PointerpressOptions): {
|
|
1565
|
+
pointerdown: {
|
|
1566
|
+
effect: RecognizeableEffect<"pointerdown", PointerpressMetadata>;
|
|
1567
|
+
stop: (target: RecognizeableStopTarget<PointerpressType>) => void;
|
|
1568
1568
|
};
|
|
1569
|
-
|
|
1570
|
-
|
|
1569
|
+
pointerout: RecognizeableEffect<"pointerout", PointerpressMetadata>;
|
|
1570
|
+
pointerup: RecognizeableEffect<"pointerup", PointerpressMetadata>;
|
|
1571
1571
|
};
|
|
1572
|
-
declare class
|
|
1573
|
-
constructor(options?:
|
|
1574
|
-
get metadata():
|
|
1572
|
+
declare class Pointerpress extends Listenable<PointerpressType, PointerpressMetadata> {
|
|
1573
|
+
constructor(options?: PointerpressOptions);
|
|
1574
|
+
get metadata(): PointerpressMetadata;
|
|
1575
1575
|
}
|
|
1576
1576
|
|
|
1577
|
-
type
|
|
1578
|
-
type
|
|
1579
|
-
type
|
|
1577
|
+
type PointerhoverType = 'pointerover' | 'pointerout';
|
|
1578
|
+
type PointerhoverMetadata = (PointerStartMetadata & PointerMoveMetadata & PointerTimeMetadata);
|
|
1579
|
+
type PointerhoverOptions = {
|
|
1580
1580
|
minDuration?: number;
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
onDown?: MousereleaseHook;
|
|
1584
|
-
onMove?: MousereleaseHook;
|
|
1585
|
-
onOut?: MousereleaseHook;
|
|
1586
|
-
onUp?: MousereleaseHook;
|
|
1587
|
-
};
|
|
1588
|
-
type MousereleaseHook = (api: MousereleaseHookApi) => any;
|
|
1589
|
-
type MousereleaseHookApi = HookApi<MousereleaseType, MousereleaseMetadata>;
|
|
1590
|
-
/**
|
|
1591
|
-
* [Docs](https://baleada.dev/docs/logic/factories/mouserelease)
|
|
1592
|
-
*/
|
|
1593
|
-
declare function createMouserelease(options?: MousereleaseOptions): {
|
|
1594
|
-
mousedown: {
|
|
1595
|
-
effect: RecognizeableEffect<"mousedown", MousereleaseMetadata>;
|
|
1596
|
-
stop: (target: RecognizeableStopTarget<MousereleaseType>) => void;
|
|
1597
|
-
};
|
|
1598
|
-
mouseout: RecognizeableEffect<"mouseout", MousereleaseMetadata>;
|
|
1599
|
-
mouseup: RecognizeableEffect<"mouseup", MousereleaseMetadata>;
|
|
1600
|
-
};
|
|
1601
|
-
declare class Mouserelease extends Listenable<MousereleaseType, MousereleaseMetadata> {
|
|
1602
|
-
constructor(options?: MousereleaseOptions);
|
|
1603
|
-
get metadata(): MousereleaseMetadata;
|
|
1604
|
-
}
|
|
1605
|
-
|
|
1606
|
-
type TouchpressType = 'touchstart' | 'touchmove' | 'touchcancel' | 'touchend';
|
|
1607
|
-
type TouchpressMetadata = PointerStartMetadata & PointerMoveMetadata & PointerTimeMetadata;
|
|
1608
|
-
type TouchpressOptions = {
|
|
1609
|
-
minDuration?: number;
|
|
1610
|
-
minDistance?: number;
|
|
1611
|
-
onStart?: TouchpressHook;
|
|
1612
|
-
onMove?: TouchpressHook;
|
|
1613
|
-
onCancel?: TouchpressHook;
|
|
1614
|
-
onEnd?: TouchpressHook;
|
|
1615
|
-
};
|
|
1616
|
-
type TouchpressHook = (api: TouchpressHookApi) => any;
|
|
1617
|
-
type TouchpressHookApi = HookApi<TouchpressType, TouchpressMetadata>;
|
|
1618
|
-
declare function createTouchpress(options?: TouchpressOptions): {
|
|
1619
|
-
touchstart: RecognizeableEffect<"touchstart", TouchpressMetadata>;
|
|
1620
|
-
touchmove: RecognizeableEffect<"touchmove", TouchpressMetadata>;
|
|
1621
|
-
touchcancel: RecognizeableEffect<"touchcancel", TouchpressMetadata>;
|
|
1622
|
-
touchend: RecognizeableEffect<"touchend", TouchpressMetadata>;
|
|
1623
|
-
};
|
|
1624
|
-
declare class Touchpress extends Listenable<TouchpressType, TouchpressMetadata> {
|
|
1625
|
-
constructor(options?: TouchpressOptions);
|
|
1626
|
-
get metadata(): TouchpressMetadata;
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
type TouchreleaseType = 'touchstart' | 'touchmove' | 'touchcancel' | 'touchend';
|
|
1630
|
-
type TouchreleaseMetadata = PointerStartMetadata & PointerMoveMetadata & PointerTimeMetadata;
|
|
1631
|
-
type TouchreleaseOptions = {
|
|
1632
|
-
minDuration?: number;
|
|
1633
|
-
minDistance?: number;
|
|
1634
|
-
minVelocity?: number;
|
|
1635
|
-
onStart?: TouchreleaseHook;
|
|
1636
|
-
onMove?: TouchreleaseHook;
|
|
1637
|
-
onCancel?: TouchreleaseHook;
|
|
1638
|
-
onEnd?: TouchreleaseHook;
|
|
1639
|
-
};
|
|
1640
|
-
type TouchreleaseHook = (api: TouchreleaseHookApi) => any;
|
|
1641
|
-
type TouchreleaseHookApi = HookApi<TouchreleaseType, TouchreleaseMetadata>;
|
|
1642
|
-
declare function createTouchrelease(options?: TouchreleaseOptions): {
|
|
1643
|
-
touchstart: RecognizeableEffect<"touchstart", TouchreleaseMetadata>;
|
|
1644
|
-
touchmove: RecognizeableEffect<"touchmove", TouchreleaseMetadata>;
|
|
1645
|
-
touchcancel: RecognizeableEffect<"touchcancel", TouchreleaseMetadata>;
|
|
1646
|
-
touchend: RecognizeableEffect<"touchend", TouchreleaseMetadata>;
|
|
1647
|
-
};
|
|
1648
|
-
declare class Touchrelease extends Listenable<TouchreleaseType, TouchreleaseMetadata> {
|
|
1649
|
-
constructor(options?: TouchreleaseOptions);
|
|
1650
|
-
get metadata(): TouchreleaseMetadata;
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
type HoverType = 'mouseover' | 'mouseout' | 'touchstart';
|
|
1654
|
-
type HoverMetadata = (PointerStartMetadata & PointerMoveMetadata & PointerTimeMetadata);
|
|
1655
|
-
type HoverOptions = {
|
|
1656
|
-
minDuration?: number;
|
|
1657
|
-
onOver?: HoverHook;
|
|
1658
|
-
onOut?: HoverHook;
|
|
1581
|
+
onOver?: PointerhoverHook;
|
|
1582
|
+
onOut?: PointerhoverHook;
|
|
1659
1583
|
};
|
|
1660
|
-
type
|
|
1661
|
-
type
|
|
1584
|
+
type PointerhoverHook = (api: PointerhoverHookApi) => any;
|
|
1585
|
+
type PointerhoverHookApi = HookApi<PointerhoverType, PointerhoverMetadata>;
|
|
1662
1586
|
/**
|
|
1663
|
-
* [Docs](https://baleada.dev/docs/logic/factories/
|
|
1587
|
+
* [Docs](https://baleada.dev/docs/logic/factories/pointerhover)
|
|
1664
1588
|
*/
|
|
1665
|
-
declare function
|
|
1666
|
-
|
|
1667
|
-
effect: RecognizeableEffect<"
|
|
1589
|
+
declare function createPointerhover(options?: PointerhoverOptions): {
|
|
1590
|
+
pointerover: {
|
|
1591
|
+
effect: RecognizeableEffect<"pointerover", PointerhoverMetadata>;
|
|
1668
1592
|
stop: () => void;
|
|
1669
1593
|
};
|
|
1670
|
-
|
|
1671
|
-
touchstart: RecognizeableEffect<"touchstart", HoverMetadata>;
|
|
1594
|
+
pointerout: RecognizeableEffect<"pointerout", PointerhoverMetadata>;
|
|
1672
1595
|
};
|
|
1673
|
-
declare class
|
|
1674
|
-
constructor(options?:
|
|
1675
|
-
get metadata():
|
|
1596
|
+
declare class Pointerhover extends Listenable<PointerhoverType, PointerhoverMetadata> {
|
|
1597
|
+
constructor(options?: PointerhoverOptions);
|
|
1598
|
+
get metadata(): PointerhoverMetadata;
|
|
1676
1599
|
}
|
|
1677
1600
|
|
|
1678
|
-
export { AnimateFrame, AnimateFrameEffect, AnimateOptions, Animateable, AnimateableKeyframe, AnimateableOptions, AnimateableStatus, Broadcastable, BroadcastableOptions, BroadcastableStatus, ColorInterpolationMethod, Compareable, CompareableOptions, CompareableStatus, CompleteOptions, Completeable, CompleteableOptions, CompleteableStatus, Copyable, CopyableOptions, CopyableStatus, CreateStepsOptions$1 as CreateDirectedAcyclicStepsOptions, CreateFocusableOptions, CreateGraphOptions, CreateKeycomboMatchOptions, CreateMixOptions, CreatePathConfig, CreateResultsOptions, Delayable, DelayableEffect, DelayableOptions, DelayableStatus, Drawable, DrawableOptions, DrawableStatus, DrawableStroke, Fetchable, FetchableOptions, FetchableStatus, Fullscreenable, FullscreenableGetElement, FullscreenableOptions, FullscreenableStatus, Grantable, GrantableOptions, GrantableStatus,
|
|
1601
|
+
export { AnimateFrame, AnimateFrameEffect, AnimateOptions, Animateable, AnimateableKeyframe, AnimateableOptions, AnimateableStatus, Broadcastable, BroadcastableOptions, BroadcastableStatus, ColorInterpolationMethod, Compareable, CompareableOptions, CompareableStatus, CompleteOptions, Completeable, CompleteableOptions, CompleteableStatus, Copyable, CopyableOptions, CopyableStatus, CreateStepsOptions$1 as CreateDirectedAcyclicStepsOptions, CreateFocusableOptions, CreateGraphOptions, CreateKeycomboMatchOptions, CreateMixOptions, CreatePathConfig, CreateResultsOptions, Delayable, DelayableEffect, DelayableOptions, DelayableStatus, Drawable, DrawableOptions, DrawableStatus, DrawableStroke, Fetchable, FetchableOptions, FetchableStatus, Fullscreenable, FullscreenableGetElement, FullscreenableOptions, FullscreenableStatus, Grantable, GrantableOptions, GrantableStatus, Keychord, KeychordHook, KeychordHookApi, KeychordMetadata, KeychordOptions, KeychordType, Keypress, KeypressHook, KeypressHookApi, KeypressMetadata, KeypressOptions, KeypressType, Keyrelease, KeyreleaseHook, KeyreleaseHookApi, KeyreleaseMetadata, KeyreleaseOptions, KeyreleaseType, Konami, KonamiHook, KonamiHookApi, KonamiMetadata, KonamiOptions, KonamiType, ListenEffect, ListenEffectParam, ListenOptions, Listenable, ListenableActive, ListenableKeycombo, ListenableMousecombo, ListenableOptions, ListenablePointercombo, ListenableStatus, ListenableSupportedEventType, ListenableSupportedType, MixColor, Navigateable, NavigateableOptions, NavigateableStatus, PickOptions, Pickable, PickableOptions, PickableStatus, Pointerhover, PointerhoverHook, PointerhoverHookApi, PointerhoverMetadata, PointerhoverOptions, PointerhoverType, Pointerpress, PointerpressHook, PointerpressHookApi, PointerpressMetadata, PointerpressOptions, PointerpressType, Potentiality, RecognizeOptions, Recognizeable, RecognizeableEffect, RecognizeableEffectConfig, RecognizeableOptions, RecognizeableStatus, RecognizeableStopTarget, Resolveable, ResolveableOptions, ResolveableStatus, Shareable, ShareableOptions, ShareableStatus, Storeable, StoreableOptions, StoreableStatus, ToGraphYielded, createFormat$2 as createArrayFormat, createClear$1 as createAssociativeArrayClear, createDelete$1 as createAssociativeArrayDelete, createHas$1 as createAssociativeArrayHas, createKeys$1 as createAssociativeArrayKeys, createSet$1 as createAssociativeArraySet, createValue$1 as createAssociativeArrayValue, createValues as createAssociativeArrayValues, createBreadthPathConfig, createChildren, createClamp, createClear, createClip, createClone, createComputedStyle, createConcat, createFormat$1 as createDateFormat, createAncestor$1 as createDecisionTreeAncestor, createCommonAncestors$1 as createDecisionTreeCommonAncestors, createNodeDepthFirstSteps$1 as createDecisionTreeNodeDepthFirstSteps, createPath$1 as createDecisionTreePath, createDepthFirstSteps$1 as createDecisionTreeSteps, createTree$1 as createDecisionTreeTree, createDeepEqual, createDeepMerge, createDelete, createDepthPathConfig, createDetermine, createAncestor$2 as createDirectedAcyclicAncestor, createAncestor as createDirectedAcyclicAsyncAncestor, createCommonAncestors as createDirectedAcyclicAsyncCommonAncestors, createDepthFirstSteps as createDirectedAcyclicAsyncDepthFirstSteps, createLayers as createDirectedAcyclicAsyncLayers, createNodeDepthFirstSteps as createDirectedAcyclicAsyncNodeDepthFirstSteps, createPath as createDirectedAcyclicAsyncPath, createTree as createDirectedAcyclicAsyncTree, createCommonAncestors$2 as createDirectedAcyclicCommonAncestors, createDepthFirstSteps$2 as createDirectedAcyclicDepthFirstSteps, createLayers$1 as createDirectedAcyclicLayers, createNodeDepthFirstSteps$2 as createDirectedAcyclicNodeDepthFirstSteps, createPath$2 as createDirectedAcyclicPath, createRoots as createDirectedAcyclicRoots, createTree$2 as createDirectedAcyclicTree, createEntries, createEqual, createEvery, createFilter, createFilterAsync, createFindAsync, createFindIndexAsync, createFocusable, createForEachAsync, createGraph, createGreater, createGreaterOrEqual, createHas, createIncoming, createIndegree, createInsert, createKeychord, createKeycomboMatch, createKeypress, createKeyrelease, createKeys, createKonami, createLess, createLessOrEqual, createList, createMap, createMapAsync, createMix, createNumber, createFormat as createNumberFormat, createOmit, createOnlyChild, createOutdegree, createOutgoing, createPick, createPointerhover, createPointerpress, createReduce, createReduceAsync, createRemove, createReorder, createReplace, createResults, createReverse, createRoot, createSanitize, createSet, createShuffle, createSiblings, createSlice, createSlug, createSome, createSort, createSwap, createTerminal, createTotalSiblings, createFind as createTreeFind, createTry, createTryAsync, createUnique, createValue, easingsNetInBack, easingsNetInCirc, easingsNetInCubic, easingsNetInExpo, easingsNetInOutBack, easingsNetInOutCirc, easingsNetInOutCubic, easingsNetInOutExpo, easingsNetInOutQuad, easingsNetInOutQuint, easingsNetInOutSine, easingsNetInQuad, easingsNetInQuart, easingsNetInQuint, easingsNetInSine, easingsNetOutBack, easingsNetOutCirc, easingsNetOutCubic, easingsNetOutExpo, easingsNetOutQuad, easingsNetOutQuint, easingsNetOutSine, linear, materialAccelerated, materialDecelerated, materialStandard, toD, toFlattenedD, toMessageListenParams, verouEase, verouEaseIn, verouEaseInOut, verouEaseOut };
|