@ethlete/core 4.18.2 → 4.18.4
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.
|
@@ -2360,7 +2360,6 @@ const buildSignalEffects = (el, config) => {
|
|
|
2360
2360
|
});
|
|
2361
2361
|
}
|
|
2362
2362
|
}
|
|
2363
|
-
console.log('buildSignalEffects updated elements');
|
|
2364
2363
|
});
|
|
2365
2364
|
const effects = {};
|
|
2366
2365
|
const has = (tokens) => tokens in effects;
|
|
@@ -2376,7 +2375,6 @@ const buildSignalEffects = (el, config) => {
|
|
|
2376
2375
|
continue;
|
|
2377
2376
|
config.updateFn(el, tokenArray, signal());
|
|
2378
2377
|
}
|
|
2379
|
-
console.log('buildSignalEffects updated bindings');
|
|
2380
2378
|
});
|
|
2381
2379
|
});
|
|
2382
2380
|
};
|
|
@@ -2502,7 +2500,6 @@ const signalElementDimensions = (el) => {
|
|
|
2502
2500
|
? { inlineSize: devicePixelContentBoxSize.inlineSize, blockSize: devicePixelContentBoxSize.blockSize }
|
|
2503
2501
|
: null,
|
|
2504
2502
|
}));
|
|
2505
|
-
console.log('signalElementDimensions changes');
|
|
2506
2503
|
}
|
|
2507
2504
|
});
|
|
2508
2505
|
effect(() => {
|
|
@@ -2519,7 +2516,6 @@ const signalElementDimensions = (el) => {
|
|
|
2519
2516
|
}
|
|
2520
2517
|
observer.observe(els.currentElement);
|
|
2521
2518
|
}
|
|
2522
|
-
console.log('signalElementDimensions observe change');
|
|
2523
2519
|
}, { allowSignalWrites: true });
|
|
2524
2520
|
destroyRef.onDestroy(() => observer.disconnect());
|
|
2525
2521
|
return elementDimensionsSignal.asReadonly();
|
|
@@ -2536,7 +2532,6 @@ const signalElementMutations = (el, options) => {
|
|
|
2536
2532
|
return;
|
|
2537
2533
|
const entry = e[0];
|
|
2538
2534
|
if (entry) {
|
|
2539
|
-
console.log('signalElementMutations changes:', entry.type);
|
|
2540
2535
|
zone.run(() => elementMutationsSignal.set(entry));
|
|
2541
2536
|
}
|
|
2542
2537
|
});
|
|
@@ -2549,7 +2544,6 @@ const signalElementMutations = (el, options) => {
|
|
|
2549
2544
|
if (els.currentElement) {
|
|
2550
2545
|
observer.observe(els.currentElement, options);
|
|
2551
2546
|
}
|
|
2552
|
-
console.log('signalElementMutations observe change');
|
|
2553
2547
|
}, { allowSignalWrites: true });
|
|
2554
2548
|
destroyRef.onDestroy(() => observer.disconnect());
|
|
2555
2549
|
return elementMutationsSignal.asReadonly();
|
|
@@ -2596,7 +2590,6 @@ const signalElementScrollState = (el, options) => {
|
|
|
2596
2590
|
const { width, height } = dimensions.rect;
|
|
2597
2591
|
const canScrollHorizontally = scrollWidth > width;
|
|
2598
2592
|
const canScrollVertically = scrollHeight > height;
|
|
2599
|
-
console.log('signalElementScrollState changes:', canScrollHorizontally, canScrollVertically);
|
|
2600
2593
|
return {
|
|
2601
2594
|
canScroll: canScrollHorizontally || canScrollVertically,
|
|
2602
2595
|
canScrollHorizontally,
|
|
@@ -2644,7 +2637,6 @@ const signalElementIntersection = (el, options) => {
|
|
|
2644
2637
|
currentValues = [...currentValues, intersectionEntry];
|
|
2645
2638
|
}
|
|
2646
2639
|
}
|
|
2647
|
-
console.log('signalElementIntersection updateIntersections', currentValues.length);
|
|
2648
2640
|
zone.run(() => elementIntersectionSignal.set(currentValues));
|
|
2649
2641
|
};
|
|
2650
2642
|
const updateIntersectionObserver = (rendered, enabled, rootEl) => {
|
|
@@ -2722,13 +2714,11 @@ const signalElementIntersection = (el, options) => {
|
|
|
2722
2714
|
const rendered = isRendered();
|
|
2723
2715
|
const enabled = isEnabled();
|
|
2724
2716
|
untracked(() => updateIntersectionObserver(rendered, enabled, rootEl));
|
|
2725
|
-
console.log(`signalElementIntersection updateIntersectionObserver: ${rendered} ${enabled}`);
|
|
2726
2717
|
}, { allowSignalWrites: true });
|
|
2727
2718
|
effect(() => {
|
|
2728
2719
|
const els = elements();
|
|
2729
2720
|
const obs = observer();
|
|
2730
2721
|
untracked(() => updateObservedElements(obs, els));
|
|
2731
|
-
console.log(`signalElementIntersection updateObservedElements: ${els.currentElements.length}`);
|
|
2732
2722
|
});
|
|
2733
2723
|
destroyRef.onDestroy(() => observer()?.disconnect());
|
|
2734
2724
|
return elementIntersectionSignal.asReadonly();
|
|
@@ -2754,7 +2744,6 @@ const signalElementChildren = (el) => {
|
|
|
2754
2744
|
children.push(element);
|
|
2755
2745
|
}
|
|
2756
2746
|
}
|
|
2757
|
-
console.log(`signalElementChildren changes: ${children.length}`);
|
|
2758
2747
|
return children;
|
|
2759
2748
|
});
|
|
2760
2749
|
};
|
|
@@ -2878,7 +2867,7 @@ const createCanAnimateSignal = () => {
|
|
|
2878
2867
|
value.set(true);
|
|
2879
2868
|
});
|
|
2880
2869
|
return {
|
|
2881
|
-
state: value,
|
|
2870
|
+
state: value.asReadonly(),
|
|
2882
2871
|
};
|
|
2883
2872
|
};
|
|
2884
2873
|
const maybeSignalValue = (value) => {
|