@lisergia/core 10.0.0 → 11.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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @lisergia/core@6.0.0 build
3
+ > @lisergia/core@10.0.0 build
4
4
  > tsup src/index.ts --format cjs,esm --dts
5
5
 
6
6
  CLI Building entry: src/index.ts
@@ -10,11 +10,11 @@
10
10
  CJS Build start
11
11
  ESM Build start
12
12
  ESM dist/index.js 13.40 KB
13
- ESM ⚡️ Build success in 117ms
13
+ ESM ⚡️ Build success in 22ms
14
14
  CJS dist/index.cjs 15.54 KB
15
- CJS ⚡️ Build success in 117ms
15
+ CJS ⚡️ Build success in 22ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 835ms
17
+ DTS ⚡️ Build success in 764ms
18
18
  DTS dist/index.d.cts 5.74 KB
19
19
  DTS dist/index.d.ts 5.74 KB
20
20
  ⠙
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @lisergia/core
2
2
 
3
+ ## 11.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Add GSAP with lagSmoothing fix.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @lisergia/config-tsconfig@11.0.0
13
+
3
14
  ## 10.0.0
4
15
 
5
16
  ### Major Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lisergia/core",
3
- "version": "10.0.0",
3
+ "version": "11.0.0",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -9,8 +9,9 @@
9
9
  "dev": "tsup src/index.ts --format cjs,esm --dts --watch"
10
10
  },
11
11
  "dependencies": {
12
- "@lisergia/config-tsconfig": "10.0.0",
12
+ "@lisergia/config-tsconfig": "11.0.0",
13
13
  "auto-bind": "^5.0.1",
14
+ "gsap": "^3.13.0",
14
15
  "lenis": "^1.3.1",
15
16
  "mobx": "^6.13.7",
16
17
  "nanoevents": "^9.1.0",
package/src/Page.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import Lenis, { LenisOptions } from 'lenis'
2
2
  import { makeObservable, observable } from 'mobx'
3
+ import GSAP from 'gsap'
3
4
  import Tempus from 'tempus'
4
5
 
5
6
  import { ApplicationManager } from './App'
@@ -144,7 +145,15 @@ export class Page extends Component {
144
145
  ...this.scrollOptions,
145
146
  })
146
147
 
148
+ GSAP.ticker.add((time) => {
149
+ this.lenis.raf(time * 1000)
150
+ })
151
+
152
+ GSAP.ticker.lagSmoothing(0)
153
+
147
154
  this.lenis.on('scroll', (event) => {
155
+ ScrollTrigger.update()
156
+
148
157
  this.onScroll(event.scroll)
149
158
 
150
159
  this.emitter.emit('scroll', event)