@linear_non/stellar-libs 1.1.0 → 1.1.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linear_non/stellar-libs",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Reusable JavaScript libraries for Non-Linear Studio projects.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -25,7 +25,7 @@
25
25
  "author": "Non-Linear Studio",
26
26
  "license": "MIT",
27
27
  "dependencies": {
28
- "@linear_non/stellar-kit": "^2.1.21"
28
+ "@linear_non/stellar-kit": "3.0.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@linear_non/prettier-config": "^1.0.6",
@@ -125,8 +125,9 @@ export default class Smooth {
125
125
 
126
126
  update(elems) {
127
127
  kitStore.flags.isResizing = true
128
+ const root = kitStore.currentPage || document
128
129
  this.scroll.setScrollBounds()
129
- this.elems = elems || qsa("[data-smooth]")
130
+ this.elems = elems || qsa("[data-smooth]", root)
130
131
  this.scrollbar?.update()
131
132
  this.getSections()
132
133
  this.transformSections()
@@ -155,7 +156,8 @@ export default class Smooth {
155
156
  }
156
157
 
157
158
  init(elems) {
158
- this.elems = elems || qsa("[data-smooth]")
159
+ const root = kitStore.currentPage || document
160
+ this.elems = elems || qsa("[data-smooth]", root)
159
161
 
160
162
  this.scrollbar = new Scrollbar({
161
163
  container: kitStore.currentPage,