@lisergia/core 18.0.0 → 19.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 +11 -0
- package/package.json +2 -2
- package/src/Component.ts +11 -0
- package/src/Page.ts +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @lisergia/core@
|
|
3
|
+
> @lisergia/core@18.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.91 KB[39m
|
|
13
|
-
[32mESM[39m ⚡️ Build success in
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 17ms
|
|
14
14
|
[32mCJS[39m [1mdist/index.cjs [22m[32m16.15 KB[39m
|
|
15
|
-
[32mCJS[39m ⚡️ Build success in
|
|
15
|
+
[32mCJS[39m ⚡️ Build success in 18ms
|
|
16
16
|
DTS Build start
|
|
17
|
-
DTS ⚡️ Build success in
|
|
17
|
+
DTS ⚡️ Build success in 869ms
|
|
18
18
|
DTS dist/index.d.cts 5.82 KB
|
|
19
19
|
DTS dist/index.d.ts 5.82 KB
|
|
20
20
|
[1G[0K⠙[1G[0K
|
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lisergia/core",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.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": "19.0.0",
|
|
13
13
|
"auto-bind": "^5.0.1",
|
|
14
14
|
"gsap": "^3.13.0",
|
|
15
15
|
"lenis": "^1.3.1",
|
package/src/Component.ts
CHANGED
|
@@ -87,6 +87,10 @@ export class Component extends EventEmitter {
|
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
destroyElement() {
|
|
91
|
+
this.element = undefined
|
|
92
|
+
}
|
|
93
|
+
|
|
90
94
|
initElements(selectors?: ComponentSelectors) {
|
|
91
95
|
for (const key in selectors) {
|
|
92
96
|
const selector = selectors[key]
|
|
@@ -121,6 +125,10 @@ export class Component extends EventEmitter {
|
|
|
121
125
|
}
|
|
122
126
|
}
|
|
123
127
|
|
|
128
|
+
destroyElements() {
|
|
129
|
+
this.elements = {}
|
|
130
|
+
}
|
|
131
|
+
|
|
124
132
|
addEventListeners() {}
|
|
125
133
|
|
|
126
134
|
removeEventListeners() {}
|
|
@@ -129,5 +137,8 @@ export class Component extends EventEmitter {
|
|
|
129
137
|
super.destroy()
|
|
130
138
|
|
|
131
139
|
this.removeEventListeners()
|
|
140
|
+
|
|
141
|
+
this.destroyElements()
|
|
142
|
+
this.destroyElement()
|
|
132
143
|
}
|
|
133
144
|
}
|
package/src/Page.ts
CHANGED