@lisergia/core 23.0.0 → 24.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@22.0.0 build
3
+ > @lisergia/core@24.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
+ ESM dist/index.js 14.32 KB
13
+ ESM ⚡️ Build success in 14ms
14
+ CJS dist/index.cjs 16.57 KB
15
+ CJS ⚡️ Build success in 14ms
12
16
  DTS Build start
13
- CJS dist/index.cjs 16.54 KB
14
- CJS ⚡️ Build success in 149ms
15
- ESM dist/index.js 14.28 KB
16
- ESM ⚡️ Build success in 149ms
17
- DTS ⚡️ Build success in 832ms
18
- DTS dist/index.d.cts 5.98 KB
19
- DTS dist/index.d.ts 5.98 KB
17
+ DTS ⚡️ Build success in 738ms
18
+ DTS dist/index.d.cts 6.01 KB
19
+ DTS dist/index.d.ts 6.01 KB
20
20
  ⠙
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @lisergia/core
2
2
 
3
+ ## 24.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Remove onPopState prevent default.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @lisergia/config-tsconfig@24.0.0
13
+
3
14
  ## 23.0.0
4
15
 
5
16
  ### Major Changes
package/dist/index.cjs CHANGED
@@ -360,6 +360,10 @@ var ApplicationManager = class extends Component {
360
360
  sprite.style.top = "0";
361
361
  document.body.appendChild(sprite);
362
362
  }
363
+ //
364
+ // Initialization.
365
+ //
366
+ IS_LINKS_ENABLED = true;
363
367
  initPage() {
364
368
  this.createPage();
365
369
  this.createLinks();
@@ -368,6 +372,9 @@ var ApplicationManager = class extends Component {
368
372
  // Links.
369
373
  //
370
374
  createLinks() {
375
+ if (!this.IS_LINKS_ENABLED) {
376
+ return;
377
+ }
371
378
  this.links = new Links(this);
372
379
  }
373
380
  //
@@ -444,9 +451,6 @@ var ApplicationManager = class extends Component {
444
451
  // Pop State.
445
452
  //
446
453
  onPopState(event) {
447
- if (event.state === null) {
448
- return event.preventDefault();
449
- }
450
454
  this.routePushState = false;
451
455
  this.route = document.location.pathname;
452
456
  this.routePushState = true;
package/dist/index.d.cts CHANGED
@@ -152,6 +152,7 @@ declare class ApplicationManager extends Component {
152
152
  pages: Map<string, new (args: PageParameters) => Page>;
153
153
  initRoutes(routes: Array<ApplicationRoute>): void;
154
154
  initSprites(url?: string): Promise<void>;
155
+ IS_LINKS_ENABLED: boolean;
155
156
  links: Links;
156
157
  initPage(): void;
157
158
  createLinks(): void;
package/dist/index.d.ts CHANGED
@@ -152,6 +152,7 @@ declare class ApplicationManager extends Component {
152
152
  pages: Map<string, new (args: PageParameters) => Page>;
153
153
  initRoutes(routes: Array<ApplicationRoute>): void;
154
154
  initSprites(url?: string): Promise<void>;
155
+ IS_LINKS_ENABLED: boolean;
155
156
  links: Links;
156
157
  initPage(): void;
157
158
  createLinks(): void;
package/dist/index.js CHANGED
@@ -317,6 +317,10 @@ var ApplicationManager = class extends Component {
317
317
  sprite.style.top = "0";
318
318
  document.body.appendChild(sprite);
319
319
  }
320
+ //
321
+ // Initialization.
322
+ //
323
+ IS_LINKS_ENABLED = true;
320
324
  initPage() {
321
325
  this.createPage();
322
326
  this.createLinks();
@@ -325,6 +329,9 @@ var ApplicationManager = class extends Component {
325
329
  // Links.
326
330
  //
327
331
  createLinks() {
332
+ if (!this.IS_LINKS_ENABLED) {
333
+ return;
334
+ }
328
335
  this.links = new Links(this);
329
336
  }
330
337
  //
@@ -401,9 +408,6 @@ var ApplicationManager = class extends Component {
401
408
  // Pop State.
402
409
  //
403
410
  onPopState(event) {
404
- if (event.state === null) {
405
- return event.preventDefault();
406
- }
407
411
  this.routePushState = false;
408
412
  this.route = document.location.pathname;
409
413
  this.routePushState = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lisergia/core",
3
- "version": "23.0.0",
3
+ "version": "24.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": "23.0.0",
12
+ "@lisergia/config-tsconfig": "24.0.0",
13
13
  "auto-bind": "^5.0.1",
14
14
  "gsap": "^3.13.0",
15
15
  "lenis": "^1.3.1",
package/src/App.ts CHANGED
@@ -281,10 +281,6 @@ export class ApplicationManager extends Component {
281
281
  // Pop State.
282
282
  //
283
283
  onPopState(event: PopStateEvent) {
284
- if (event.state === null) {
285
- return event.preventDefault()
286
- }
287
-
288
284
  this.routePushState = false
289
285
  this.route = document.location.pathname
290
286
  this.routePushState = true