@fiddle-digital/string-tune 1.1.35 → 1.1.37
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/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +25 -11
- package/dist/index.d.ts +25 -11
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1394,12 +1394,13 @@ declare class StringModule implements IStringModule {
|
|
|
1394
1394
|
* 4. DOM existence checks - prevents operations on removed elements
|
|
1395
1395
|
*/
|
|
1396
1396
|
declare class StringCursor extends StringModule {
|
|
1397
|
-
protected enterObjectsMap: Map<string, StringObject>;
|
|
1398
|
-
protected enterObjects: Array<StringObject>;
|
|
1399
|
-
cursor: any;
|
|
1400
|
-
cursorContent: any;
|
|
1401
|
-
overCount: number;
|
|
1402
1397
|
private cursorPrev;
|
|
1398
|
+
private cursorPortals;
|
|
1399
|
+
private hoveredObjects;
|
|
1400
|
+
private globalListenersBound;
|
|
1401
|
+
private boundBeforeUnload;
|
|
1402
|
+
private boundPageHide;
|
|
1403
|
+
private boundVisibilityChange;
|
|
1403
1404
|
protected enabled: boolean;
|
|
1404
1405
|
constructor(context: StringContext);
|
|
1405
1406
|
initializeObject(globalId: number, object: StringObject, element: HTMLElement, attributes: Record<string, any>): void;
|
|
@@ -1413,9 +1414,27 @@ declare class StringCursor extends StringModule {
|
|
|
1413
1414
|
private safariNavigationCleanup;
|
|
1414
1415
|
private onElementRemovedFromDOM;
|
|
1415
1416
|
onObjectDisconnected(object: StringObject): void;
|
|
1417
|
+
onDOMRebuild(): void;
|
|
1418
|
+
onDOMMutate(added: NodeList, removed: NodeList): void;
|
|
1419
|
+
private collectCursorPortals;
|
|
1420
|
+
private resolvePortalId;
|
|
1421
|
+
private shouldRefreshPortals;
|
|
1422
|
+
private withPortalsForObject;
|
|
1423
|
+
private getPortalsForObject;
|
|
1424
|
+
private extractPortalIds;
|
|
1425
|
+
private incrementPortalHover;
|
|
1426
|
+
private decrementPortalHover;
|
|
1427
|
+
private restartPortalShowTimer;
|
|
1428
|
+
private clearPortalShowTimer;
|
|
1429
|
+
private updatePortalPosition;
|
|
1430
|
+
private handleRemovedNodes;
|
|
1431
|
+
private cleanupHoverTargets;
|
|
1432
|
+
private bindGlobalLifecycleListeners;
|
|
1433
|
+
private unbindGlobalLifecycleListeners;
|
|
1416
1434
|
private setMouseCoordinates;
|
|
1417
1435
|
private calculateOffset;
|
|
1418
1436
|
removeObject(id: string): void;
|
|
1437
|
+
destroy(): void;
|
|
1419
1438
|
}
|
|
1420
1439
|
|
|
1421
1440
|
declare class StringImpulse extends StringModule {
|
|
@@ -1461,10 +1480,6 @@ declare class StringSpotlight extends CursorReactiveModule {
|
|
|
1461
1480
|
private updateSpotlightState;
|
|
1462
1481
|
}
|
|
1463
1482
|
|
|
1464
|
-
/**
|
|
1465
|
-
* Module that handles lazy-loading of images with `string-lazy` attribute.
|
|
1466
|
-
* Aspect ratios are precomputed before the real source is revealed in view.
|
|
1467
|
-
*/
|
|
1468
1483
|
declare class StringLazy extends StringModule {
|
|
1469
1484
|
private isStartLoaded;
|
|
1470
1485
|
private loadingCount;
|
|
@@ -1475,9 +1490,8 @@ declare class StringLazy extends StringModule {
|
|
|
1475
1490
|
onObjectDisconnected(object: StringObject): void;
|
|
1476
1491
|
private ensureState;
|
|
1477
1492
|
private readSource;
|
|
1478
|
-
private prepareAspectRatio;
|
|
1479
|
-
private loadIntrinsicSize;
|
|
1480
1493
|
private handleInView;
|
|
1494
|
+
private prepareAspectRatio;
|
|
1481
1495
|
private maybeActivateImage;
|
|
1482
1496
|
private activateImage;
|
|
1483
1497
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1394,12 +1394,13 @@ declare class StringModule implements IStringModule {
|
|
|
1394
1394
|
* 4. DOM existence checks - prevents operations on removed elements
|
|
1395
1395
|
*/
|
|
1396
1396
|
declare class StringCursor extends StringModule {
|
|
1397
|
-
protected enterObjectsMap: Map<string, StringObject>;
|
|
1398
|
-
protected enterObjects: Array<StringObject>;
|
|
1399
|
-
cursor: any;
|
|
1400
|
-
cursorContent: any;
|
|
1401
|
-
overCount: number;
|
|
1402
1397
|
private cursorPrev;
|
|
1398
|
+
private cursorPortals;
|
|
1399
|
+
private hoveredObjects;
|
|
1400
|
+
private globalListenersBound;
|
|
1401
|
+
private boundBeforeUnload;
|
|
1402
|
+
private boundPageHide;
|
|
1403
|
+
private boundVisibilityChange;
|
|
1403
1404
|
protected enabled: boolean;
|
|
1404
1405
|
constructor(context: StringContext);
|
|
1405
1406
|
initializeObject(globalId: number, object: StringObject, element: HTMLElement, attributes: Record<string, any>): void;
|
|
@@ -1413,9 +1414,27 @@ declare class StringCursor extends StringModule {
|
|
|
1413
1414
|
private safariNavigationCleanup;
|
|
1414
1415
|
private onElementRemovedFromDOM;
|
|
1415
1416
|
onObjectDisconnected(object: StringObject): void;
|
|
1417
|
+
onDOMRebuild(): void;
|
|
1418
|
+
onDOMMutate(added: NodeList, removed: NodeList): void;
|
|
1419
|
+
private collectCursorPortals;
|
|
1420
|
+
private resolvePortalId;
|
|
1421
|
+
private shouldRefreshPortals;
|
|
1422
|
+
private withPortalsForObject;
|
|
1423
|
+
private getPortalsForObject;
|
|
1424
|
+
private extractPortalIds;
|
|
1425
|
+
private incrementPortalHover;
|
|
1426
|
+
private decrementPortalHover;
|
|
1427
|
+
private restartPortalShowTimer;
|
|
1428
|
+
private clearPortalShowTimer;
|
|
1429
|
+
private updatePortalPosition;
|
|
1430
|
+
private handleRemovedNodes;
|
|
1431
|
+
private cleanupHoverTargets;
|
|
1432
|
+
private bindGlobalLifecycleListeners;
|
|
1433
|
+
private unbindGlobalLifecycleListeners;
|
|
1416
1434
|
private setMouseCoordinates;
|
|
1417
1435
|
private calculateOffset;
|
|
1418
1436
|
removeObject(id: string): void;
|
|
1437
|
+
destroy(): void;
|
|
1419
1438
|
}
|
|
1420
1439
|
|
|
1421
1440
|
declare class StringImpulse extends StringModule {
|
|
@@ -1461,10 +1480,6 @@ declare class StringSpotlight extends CursorReactiveModule {
|
|
|
1461
1480
|
private updateSpotlightState;
|
|
1462
1481
|
}
|
|
1463
1482
|
|
|
1464
|
-
/**
|
|
1465
|
-
* Module that handles lazy-loading of images with `string-lazy` attribute.
|
|
1466
|
-
* Aspect ratios are precomputed before the real source is revealed in view.
|
|
1467
|
-
*/
|
|
1468
1483
|
declare class StringLazy extends StringModule {
|
|
1469
1484
|
private isStartLoaded;
|
|
1470
1485
|
private loadingCount;
|
|
@@ -1475,9 +1490,8 @@ declare class StringLazy extends StringModule {
|
|
|
1475
1490
|
onObjectDisconnected(object: StringObject): void;
|
|
1476
1491
|
private ensureState;
|
|
1477
1492
|
private readSource;
|
|
1478
|
-
private prepareAspectRatio;
|
|
1479
|
-
private loadIntrinsicSize;
|
|
1480
1493
|
private handleInView;
|
|
1494
|
+
private prepareAspectRatio;
|
|
1481
1495
|
private maybeActivateImage;
|
|
1482
1496
|
private activateImage;
|
|
1483
1497
|
}
|