@biggive/components 202401021340.0.0 → 202401021422.0.0

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/hydrate/index.js CHANGED
@@ -10707,7 +10707,11 @@ class BiggiveTotalizer {
10707
10707
  // We've seen the initial calculation exclude the ~30px per set of values end padding before,
10708
10708
  // and it's safe to err on the side of more copies to reduce the chance of abrupt early loop
10709
10709
  // ends, so we add a buffer of 40px to the calculation when deciding how many copies to use.
10710
- const sleeveCount = Math.max(1, Math.min(4, Math.ceil((2 * (40 + itemsWidth)) / containerWidth)));
10710
+ // const sleeveCount = Math.max(1, Math.min(4, Math.ceil((2 * (40 + itemsWidth)) / containerWidth)));
10711
+ // TODO Ultimately we'd like to get multiple copies working, or simplify. This
10712
+ // has proven very hard to iterate on pending a fix for DON-867 because
10713
+ // there is Angular-specific behaviour breaking the contents of copies.
10714
+ const sleeveCount = 1;
10711
10715
  this.host.style.setProperty('--ticker-end-left', `-${sleeveCount * 100}%`);
10712
10716
  const duration = Math.round((itemsWidth / 100) * sleeveCount);
10713
10717
  for (let ii = 1; ii <= sleeveCount; ii++) {
@@ -10736,12 +10740,9 @@ class BiggiveTotalizer {
10736
10740
  // Deep clone [all children of] the ticker items internal wrapper and append them, so the ticker can show items without
10737
10741
  // a blank break. Sleeve 2 and up will animate on delays per https://stackoverflow.com/a/45847760.
10738
10742
  setTimeout(() => {
10739
- tickerItemsInternalWrapper.childNodes.forEach((child) => {
10740
- console.log('Child element for cloning: ', child);
10741
- sleeve2 && sleeve2.appendChild(child.cloneNode(true)); // Deep clone all items.
10742
- sleeve3 && sleeve3.appendChild(child.cloneNode(true));
10743
- sleeve4 && sleeve4.appendChild(child.cloneNode(true));
10744
- });
10743
+ sleeve2 && sleeve2.appendChild(tickerItemsInternalWrapper.cloneNode(true));
10744
+ sleeve3 && sleeve3.appendChild(tickerItemsInternalWrapper.cloneNode(true));
10745
+ sleeve4 && sleeve4.appendChild(tickerItemsInternalWrapper.cloneNode(true));
10745
10746
  }, 800);
10746
10747
  setTimeout(() => {
10747
10748
  // In Angular contexts, it seems like we need to leave a little time before the calculations work.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@biggive/components",
3
3
  "_comment": "Version number below is automatically replaced during CircleCI build.",
4
- "version": "202401021340.0.0",
4
+ "version": "202401021422.0.0",
5
5
  "description": "Big Give Components",
6
6
  "main": "dist/index.cjs.js",
7
7
  "module": "dist/index.js",