assign-gingerly 0.0.86 → 0.0.87
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/DX/paths.js +4 -0
- package/DX/paths.ts +6 -0
- package/inferencer/types/swipe-dismiss/types.d.ts +7 -4
- package/package.json +1 -1
package/DX/paths.js
CHANGED
|
@@ -38,6 +38,7 @@ const COMMAND_TOKEN_SUFFIXES = {
|
|
|
38
38
|
YEq: ' Y=',
|
|
39
39
|
MinusEq: ' -=',
|
|
40
40
|
Arrow: ' =>',
|
|
41
|
+
EqAmp: ' =&',
|
|
41
42
|
};
|
|
42
43
|
function serializePath(prefix) {
|
|
43
44
|
return prefix.length > 0 ? `?.${prefix}` : '?.';
|
|
@@ -287,6 +288,9 @@ export function smoothOver(value) {
|
|
|
287
288
|
export function doAssign(...pairs) {
|
|
288
289
|
return { assign: Object.assign({}, ...pairs) };
|
|
289
290
|
}
|
|
291
|
+
export function assign(...pairs) {
|
|
292
|
+
return Object.assign({}, ...pairs);
|
|
293
|
+
}
|
|
290
294
|
/**
|
|
291
295
|
* Compile-time loop expansion: generates one entry per key from a factory function.
|
|
292
296
|
* Creates a typed proxy internally — the factory receives both the key and the proxy.
|
package/DX/paths.ts
CHANGED
|
@@ -41,6 +41,7 @@ const COMMAND_TOKEN_SUFFIXES = {
|
|
|
41
41
|
YEq: ' Y=',
|
|
42
42
|
MinusEq: ' -=',
|
|
43
43
|
Arrow: ' =>',
|
|
44
|
+
EqAmp: ' =&',
|
|
44
45
|
} as const;
|
|
45
46
|
|
|
46
47
|
type CommandToken = keyof typeof COMMAND_TOKEN_SUFFIXES;
|
|
@@ -79,6 +80,7 @@ export type PathProxyCore = {
|
|
|
79
80
|
readonly YEq: PathProxy<any>;
|
|
80
81
|
readonly MinusEq: PathProxy<any>;
|
|
81
82
|
readonly Arrow: PathProxy<any>;
|
|
83
|
+
readonly EqAmp: PathProxy<any>;
|
|
82
84
|
};
|
|
83
85
|
|
|
84
86
|
export type PathProxy<T> = {
|
|
@@ -337,6 +339,10 @@ export function doAssign(...pairs: Record<string, any>[]): { assign: Record<stri
|
|
|
337
339
|
return { assign: Object.assign({}, ...pairs) };
|
|
338
340
|
}
|
|
339
341
|
|
|
342
|
+
export function assign(...pairs: Record<string, any>[]): Record<string, any>{
|
|
343
|
+
return Object.assign({}, ...pairs);
|
|
344
|
+
}
|
|
345
|
+
|
|
340
346
|
/**
|
|
341
347
|
* Compile-time loop expansion: generates one entry per key from a factory function.
|
|
342
348
|
* Creates a typed proxy internally — the factory receives both the key and the proxy.
|
|
@@ -17,16 +17,18 @@ export interface SwipeDismissProps {
|
|
|
17
17
|
distanceThreshold: number;
|
|
18
18
|
/** Velocity threshold in px/ms; a fast flick commits even under distanceThreshold. */
|
|
19
19
|
velocityThreshold: number;
|
|
20
|
-
|
|
21
|
-
handleSelector: string | null;
|
|
22
|
-
/** CSS selector for the panel that visually follows the drag. Defaults to the handle. */
|
|
23
|
-
panelSelector: string | null;
|
|
20
|
+
|
|
24
21
|
/** Called on every pointermove with the current delta and fraction of the threshold. */
|
|
25
22
|
onProgress: ((deltaPx: number, fraction: number) => void) | null;
|
|
26
23
|
/** Called when the gesture crosses the commit threshold. */
|
|
27
24
|
onCommit: (() => void) | null;
|
|
28
25
|
/** Called when the gesture is released before the commit threshold. */
|
|
29
26
|
onCancel: (() => void) | null;
|
|
27
|
+
|
|
28
|
+
/** Element used for dragging */
|
|
29
|
+
handle: Element;
|
|
30
|
+
/** Element used to open / close */
|
|
31
|
+
panel: Element;
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
/**
|
|
@@ -35,6 +37,7 @@ export interface SwipeDismissProps {
|
|
|
35
37
|
export interface AllProps extends SwipeDismissProps {
|
|
36
38
|
/** WeakRef to the host custom element. */
|
|
37
39
|
hostRef: WeakRef<Element>;
|
|
40
|
+
|
|
38
41
|
}
|
|
39
42
|
|
|
40
43
|
export type AP = AllProps;
|
package/package.json
CHANGED