@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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +11 -0
- package/dist/index.cjs +7 -3
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -3
- package/package.json +2 -2
- package/src/App.ts +0 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @lisergia/core@
|
|
3
|
+
> @lisergia/core@24.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
|
+
[32mESM[39m [1mdist/index.js [22m[32m14.32 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 14ms
|
|
14
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m16.57 KB[39m
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 14ms
|
|
12
16
|
DTS Build start
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
[32mESM[39m ⚡️ 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
|
[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
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": "
|
|
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": "
|
|
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
|