pawajs 2.0.4 → 2.0.6
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/CHANGELOG.md +3 -1
- package/index.js +1 -1
- package/package.json +1 -1
- package/pawaElement.js +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -21,4 +21,6 @@ CHANGELOG.md
|
|
|
21
21
|
+ version 1.5.1 stable
|
|
22
22
|
+ version 1.5.2 - added function dependencies
|
|
23
23
|
+ version 2.0.1 -2.0.2 made runEffect to be global or component capability
|
|
24
|
-
+ version 2.0.3 integrating HMR system
|
|
24
|
+
+ version 2.0.3 integrating HMR system
|
|
25
|
+
+ version 2.0.4 experimental of hmr
|
|
26
|
+
+ version 2.0.5 - 2.0.6 experimental of hmr
|
package/index.js
CHANGED
|
@@ -1241,7 +1241,7 @@ export const render = (el, contexts = {}, notRender, isName) => {
|
|
|
1241
1241
|
States(el, attr, getCurrentContext())
|
|
1242
1242
|
} else if (attrName.startsWith('out-') && !isAcomponent) {
|
|
1243
1243
|
documentEvent(el, attr)
|
|
1244
|
-
} else if (
|
|
1244
|
+
} else if (attrName.startsWith('after-[') && attrName.endsWith(']') && !isAcomponent) {
|
|
1245
1245
|
After(el, attr)
|
|
1246
1246
|
}
|
|
1247
1247
|
else if (attrName.startsWith('every-[') && attrName.endsWith(']') && !isAcomponent) {
|
package/package.json
CHANGED
package/pawaElement.js
CHANGED
|
@@ -78,9 +78,9 @@ export class PawaElement {
|
|
|
78
78
|
|
|
79
79
|
}catch(error){
|
|
80
80
|
throw new Error(`Error evaluating expression: ${expression}\n${error.message}`);
|
|
81
|
-
|
|
81
|
+
let element=this.#el || null
|
|
82
82
|
__pawaDev.setError({
|
|
83
|
-
el:
|
|
83
|
+
el:element,
|
|
84
84
|
msg:`from ${expression}`,
|
|
85
85
|
directives:directive,
|
|
86
86
|
stack:error.stack,
|
|
@@ -189,7 +189,7 @@ export class PawaElement {
|
|
|
189
189
|
const animate=this._exitAnimation().then(async () => {
|
|
190
190
|
await this._callUnmount()
|
|
191
191
|
this._out = true
|
|
192
|
-
this.
|
|
192
|
+
this.#el.remove()
|
|
193
193
|
if (callback) {
|
|
194
194
|
callback()
|
|
195
195
|
}
|
|
@@ -201,7 +201,7 @@ export class PawaElement {
|
|
|
201
201
|
} else {
|
|
202
202
|
this._callUnmount()
|
|
203
203
|
this._out=true
|
|
204
|
-
this.
|
|
204
|
+
this.#el.remove()
|
|
205
205
|
if (callback) {
|
|
206
206
|
callback()
|
|
207
207
|
}
|
|
@@ -225,9 +225,9 @@ export class PawaElement {
|
|
|
225
225
|
func()
|
|
226
226
|
})
|
|
227
227
|
this._deleteEffects()
|
|
228
|
-
Array.from(this.
|
|
228
|
+
Array.from(this.#el.childNodes).forEach(child => {
|
|
229
229
|
if (child.nodeType === 1) {
|
|
230
|
-
if (child?.
|
|
230
|
+
if (child?._template) {
|
|
231
231
|
child._out = true
|
|
232
232
|
child._deleteEffects()
|
|
233
233
|
child._callUnmount()
|