@lisergia/core 14.0.0 → 15.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 +6 -6
- package/CHANGELOG.md +11 -0
- package/dist/index.cjs +5 -3
- package/dist/index.js +4 -2
- package/package.json +2 -2
- package/src/Links.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @lisergia/core@
|
|
3
|
+
> @lisergia/core@14.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
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
[34mCLI[39m Target: node16
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[34mESM[39m Build start
|
|
12
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
13
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
-
[32mESM[39m [1mdist/index.js [22m[32m13.
|
|
15
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m16.00 KB[39m
|
|
13
|
+
[32mCJS[39m ⚡️ Build success in 34ms
|
|
14
|
+
[32mESM[39m [1mdist/index.js [22m[32m13.77 KB[39m
|
|
15
|
+
[32mESM[39m ⚡️ Build success in 34ms
|
|
16
16
|
DTS Build start
|
|
17
|
-
DTS ⚡️ Build success in
|
|
17
|
+
DTS ⚡️ Build success in 825ms
|
|
18
18
|
DTS dist/index.d.cts 5.76 KB
|
|
19
19
|
DTS dist/index.d.ts 5.76 KB
|
|
20
20
|
[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -233,7 +233,7 @@ var Links = class extends EventEmitter {
|
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
onLinkClick(href) {
|
|
236
|
-
this.application.route = href;
|
|
236
|
+
this.application.route = href.replace(window.location.origin, "");
|
|
237
237
|
}
|
|
238
238
|
refresh() {
|
|
239
239
|
this.addEventListeners();
|
|
@@ -382,8 +382,9 @@ var ApplicationManager = class extends Component {
|
|
|
382
382
|
//
|
|
383
383
|
route = window.location.pathname;
|
|
384
384
|
onRouteChange({ oldValue, newValue }) {
|
|
385
|
+
const href = newValue.replace(window.location.origin, "");
|
|
385
386
|
this.onRouteChangeRequest({
|
|
386
|
-
href
|
|
387
|
+
href,
|
|
387
388
|
pushState: true
|
|
388
389
|
});
|
|
389
390
|
}
|
|
@@ -458,6 +459,7 @@ var Application = new ApplicationManager();
|
|
|
458
459
|
var import_lenis = __toESM(require("lenis"), 1);
|
|
459
460
|
var import_mobx3 = require("mobx");
|
|
460
461
|
var import_gsap = __toESM(require("gsap"), 1);
|
|
462
|
+
var import_ScrollTrigger = __toESM(require("gsap/src/ScrollTrigger"), 1);
|
|
461
463
|
var import_tempus = __toESM(require("tempus"), 1);
|
|
462
464
|
var Page = class extends Component {
|
|
463
465
|
datasets = [];
|
|
@@ -548,7 +550,7 @@ var Page = class extends Component {
|
|
|
548
550
|
});
|
|
549
551
|
import_gsap.default.ticker.lagSmoothing(0);
|
|
550
552
|
this.lenis.on("scroll", (event) => {
|
|
551
|
-
|
|
553
|
+
import_ScrollTrigger.default.update();
|
|
552
554
|
this.onScroll(event.scroll);
|
|
553
555
|
this.emitter.emit("scroll", event);
|
|
554
556
|
});
|
package/dist/index.js
CHANGED
|
@@ -190,7 +190,7 @@ var Links = class extends EventEmitter {
|
|
|
190
190
|
});
|
|
191
191
|
}
|
|
192
192
|
onLinkClick(href) {
|
|
193
|
-
this.application.route = href;
|
|
193
|
+
this.application.route = href.replace(window.location.origin, "");
|
|
194
194
|
}
|
|
195
195
|
refresh() {
|
|
196
196
|
this.addEventListeners();
|
|
@@ -339,8 +339,9 @@ var ApplicationManager = class extends Component {
|
|
|
339
339
|
//
|
|
340
340
|
route = window.location.pathname;
|
|
341
341
|
onRouteChange({ oldValue, newValue }) {
|
|
342
|
+
const href = newValue.replace(window.location.origin, "");
|
|
342
343
|
this.onRouteChangeRequest({
|
|
343
|
-
href
|
|
344
|
+
href,
|
|
344
345
|
pushState: true
|
|
345
346
|
});
|
|
346
347
|
}
|
|
@@ -415,6 +416,7 @@ var Application = new ApplicationManager();
|
|
|
415
416
|
import Lenis from "lenis";
|
|
416
417
|
import { makeObservable as makeObservable2, observable as observable2 } from "mobx";
|
|
417
418
|
import GSAP from "gsap";
|
|
419
|
+
import ScrollTrigger from "gsap/src/ScrollTrigger";
|
|
418
420
|
import Tempus from "tempus";
|
|
419
421
|
var Page = class extends Component {
|
|
420
422
|
datasets = [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lisergia/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -9,7 +9,7 @@
|
|
|
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": "15.0.0",
|
|
13
13
|
"auto-bind": "^5.0.1",
|
|
14
14
|
"gsap": "^3.13.0",
|
|
15
15
|
"lenis": "^1.3.1",
|