@telus-uds/components-community.sticky 2.1.2 → 2.1.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.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,31 @@
1
1
  # Change Log - @telus-uds/components-community.sticky
2
2
 
3
- This log was last generated on Thu, 19 Dec 2024 04:54:39 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 22 Jan 2025 21:06:14 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 2.1.4
8
+
9
+ Wed, 22 Jan 2025 21:06:14 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @telus-uds/components-base to v2.5.0
14
+ - Bump @telus-uds/components-web to v3.4.0
15
+
16
+ ## 2.1.3
17
+
18
+ Fri, 10 Jan 2025 21:49:25 GMT
19
+
20
+ ### Patches
21
+
22
+ - Bump @telus-uds/components-base to v2.4.0
23
+ - Bump @telus-uds/components-web to v3.3.0
24
+ - Bump @telus-uds/system-theme-tokens to v3.3.0
25
+
7
26
  ## 2.1.2
8
27
 
9
- Thu, 19 Dec 2024 04:54:39 GMT
28
+ Thu, 19 Dec 2024 05:02:20 GMT
10
29
 
11
30
  ### Patches
12
31
 
package/lib/Sticky.js CHANGED
@@ -63,21 +63,18 @@ const Sticky = _ref2 => {
63
63
  }
64
64
  if (variant === 'default' || variant === 'hidden') {
65
65
  setObserver(createObserver(sentinelPositionRef, intersected => {
66
- var _stickyWrapperRef$cur, _stickyWrapperRef$cur2;
67
- (_stickyWrapperRef$cur = stickyWrapperRef.current) === null || _stickyWrapperRef$cur === void 0 || _stickyWrapperRef$cur.classList.toggle('sticky-mode', intersected);
68
- (_stickyWrapperRef$cur2 = stickyWrapperRef.current) === null || _stickyWrapperRef$cur2 === void 0 || _stickyWrapperRef$cur2.classList.toggle(position, intersected);
66
+ stickyWrapperRef.current?.classList.toggle('sticky-mode', intersected);
67
+ stickyWrapperRef.current?.classList.toggle(position, intersected);
69
68
  if (intersected) {
70
- var _stickyWrapperRef$cur3;
71
- (_stickyWrapperRef$cur3 = stickyWrapperRef.current) === null || _stickyWrapperRef$cur3 === void 0 || _stickyWrapperRef$cur3.classList.remove('pristine');
69
+ stickyWrapperRef.current?.classList.remove('pristine');
72
70
  }
73
71
  onStickThrottled(intersected);
74
72
  }, workWithViewport));
75
73
  }
76
74
  if (variant === 'alternate') {
77
75
  setObserver(createObserver(sentinelBottomRef, intersected => {
78
- var _stickyWrapperRef$cur4, _stickyWrapperRef$cur5;
79
- (_stickyWrapperRef$cur4 = stickyWrapperRef.current) === null || _stickyWrapperRef$cur4 === void 0 || _stickyWrapperRef$cur4.classList.toggle('sticky-mode', intersected);
80
- (_stickyWrapperRef$cur5 = stickyWrapperRef.current) === null || _stickyWrapperRef$cur5 === void 0 || _stickyWrapperRef$cur5.classList.toggle('bottom', intersected);
76
+ stickyWrapperRef.current?.classList.toggle('sticky-mode', intersected);
77
+ stickyWrapperRef.current?.classList.toggle('bottom', intersected);
81
78
  onStickThrottled(intersected);
82
79
  }, workWithViewport));
83
80
  }
package/package.json CHANGED
@@ -5,10 +5,10 @@
5
5
  "extends @telus-uds/browserslist-config"
6
6
  ],
7
7
  "dependencies": {
8
- "@telus-uds/components-base": "^2.3.0",
9
- "@telus-uds/components-web": "^3.2.1",
8
+ "@telus-uds/components-base": "^2.5.0",
9
+ "@telus-uds/components-web": "^3.4.0",
10
10
  "@telus-uds/system-constants": "^2.0.0",
11
- "@telus-uds/system-theme-tokens": "^3.2.0",
11
+ "@telus-uds/system-theme-tokens": "^3.3.0",
12
12
  "lodash.throttle": "^4.1.1",
13
13
  "prop-types": "^15.7.2",
14
14
  "styled-components": "^5.3.10"
@@ -51,5 +51,5 @@
51
51
  "standard-engine": {
52
52
  "skip": true
53
53
  },
54
- "version": "2.1.2"
54
+ "version": "2.1.4"
55
55
  }