@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.
@@ -1,6 +1,6 @@
1
1
 
2
2
  
3
- > @lisergia/core@11.0.0 build
3
+ > @lisergia/core@14.0.0 build
4
4
  > tsup src/index.ts --format cjs,esm --dts
5
5
 
6
6
  CLI Building entry: src/index.ts
@@ -9,12 +9,12 @@
9
9
  CLI Target: node16
10
10
  CJS Build start
11
11
  ESM Build start
12
- CJS dist/index.cjs 15.83 KB
13
- CJS ⚡️ Build success in 17ms
14
- ESM dist/index.js 13.64 KB
15
- ESM ⚡️ Build success in 18ms
12
+ CJS dist/index.cjs 16.00 KB
13
+ CJS ⚡️ Build success in 34ms
14
+ ESM dist/index.js 13.77 KB
15
+ ESM ⚡️ Build success in 34ms
16
16
  DTS Build start
17
- DTS ⚡️ Build success in 783ms
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
  ⠙
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @lisergia/core
2
2
 
3
+ ## 15.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Fix Link class URL redirect and build from Changesets.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @lisergia/config-tsconfig@15.0.0
13
+
3
14
  ## 14.0.0
4
15
 
5
16
  ### Major Changes
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: newValue,
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
- ScrollTrigger.update();
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: newValue,
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": "14.0.0",
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": "14.0.0",
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",
package/src/Links.ts CHANGED
@@ -37,7 +37,7 @@ export class Links extends EventEmitter {
37
37
  }
38
38
 
39
39
  onLinkClick(href: string) {
40
- this.application.route = href
40
+ this.application.route = href.replace(window.location.origin, '')
41
41
  }
42
42
 
43
43
  refresh() {