@lisergia/core 9.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.
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +22 -0
- package/package.json +3 -2
- package/src/Page.ts +9 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @lisergia/core@
|
|
3
|
+
> @lisergia/core@10.0.0 build
|
|
4
4
|
> tsup src/index.ts --format cjs,esm --dts
|
|
5
5
|
|
|
6
6
|
[1G[0K[34mCLI[39m Building entry: src/index.ts
|
|
@@ -10,11 +10,11 @@
|
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
12
|
[32mESM[39m [1mdist/index.js [22m[32m13.40 KB[39m
|
|
13
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 22ms
|
|
14
14
|
[32mCJS[39m [1mdist/index.cjs [22m[32m15.54 KB[39m
|
|
15
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 22ms
|
|
16
16
|
DTS Build start
|
|
17
|
-
DTS ⚡️ Build success in
|
|
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
|
[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
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
|
+
|
|
14
|
+
## 10.0.0
|
|
15
|
+
|
|
16
|
+
### Major Changes
|
|
17
|
+
|
|
18
|
+
- Update ESLint configuration with sort.
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
- @lisergia/config-tsconfig@10.0.0
|
|
24
|
+
|
|
3
25
|
## 9.0.0
|
|
4
26
|
|
|
5
27
|
### Major Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lisergia/core",
|
|
3
|
-
"version": "
|
|
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": "
|
|
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)
|