@xaendar/core 0.7.9 → 0.7.10
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.
|
@@ -85,7 +85,7 @@ export declare type BaseWebComponentConstructor = Constructor<BaseWebComponent,
|
|
|
85
85
|
*/
|
|
86
86
|
declare type Block = {
|
|
87
87
|
condition?: NoArgsFunction<boolean>;
|
|
88
|
-
block: Function_2<[HTMLElement, Context, Node | null], Context>;
|
|
88
|
+
block: Function_2<[HTMLElement, Context, 'svg' | undefined, Node | null], Context>;
|
|
89
89
|
};
|
|
90
90
|
|
|
91
91
|
/**
|
|
@@ -334,7 +334,7 @@ export declare type EventOptions = Beautify<RequireOne<Omit<CustomEventInit, 'de
|
|
|
334
334
|
* `update` per aggiornare le variabili implicite in-place quando l'item
|
|
335
335
|
* viene riusato a un indice diverso.
|
|
336
336
|
*/
|
|
337
|
-
export declare function _for(parentNode: HTMLElement, parentContext: Context, condition: () => unknown[], trackExpression: Function_2<[unknown], ForKey>, forFn: Function_2<[HTMLElement, Context, unknown[], number, Node | null], {
|
|
337
|
+
export declare function _for(parentNode: HTMLElement, parentContext: Context, condition: () => unknown[], trackExpression: Function_2<[unknown], ForKey>, forFn: Function_2<[HTMLElement, Context, unknown[], number, 'svg' | undefined, Node | null], {
|
|
338
338
|
context: Context;
|
|
339
339
|
update?: (newIndex: number, items: unknown[]) => void;
|
|
340
340
|
}>): void;
|
|
@@ -689,7 +689,7 @@ export { Signal_2 as Signal }
|
|
|
689
689
|
*/
|
|
690
690
|
export declare function _switch(parentNode: HTMLElement, parentContext: Context, expression: NoArgsFunction<unknown>, blocks: Array<{
|
|
691
691
|
condition: unknown[] | null;
|
|
692
|
-
block: Function_2<[HTMLElement, Context, Node | null], Context>;
|
|
692
|
+
block: Function_2<[HTMLElement, Context, 'svg' | undefined, Node | null], Context>;
|
|
693
693
|
}>): void;
|
|
694
694
|
|
|
695
695
|
/**
|
package/dist/xaendar-core.es.js
CHANGED
|
@@ -729,7 +729,7 @@ function _for(parentNode, parentContext, condition, trackExpression, forFn) {
|
|
|
729
729
|
existing.update?.(i, items);
|
|
730
730
|
entry = existing;
|
|
731
731
|
} else {
|
|
732
|
-
const created = forFn(parentNode, parentContext, items, i, nextReference);
|
|
732
|
+
const created = forFn(parentNode, parentContext, items, i, parentContext.namespace, nextReference);
|
|
733
733
|
parentContext.addChild(created.context);
|
|
734
734
|
entry = created;
|
|
735
735
|
}
|
|
@@ -900,7 +900,7 @@ function checkAndUpdateState(parentNode, parentContext, state, newState, conditi
|
|
|
900
900
|
state.context.unlisten();
|
|
901
901
|
parentContext.removeChild(state.context);
|
|
902
902
|
}
|
|
903
|
-
const context = untracked(() => conditionalBlockFn(parentNode, parentContext, anchor));
|
|
903
|
+
const context = untracked(() => conditionalBlockFn(parentNode, parentContext, parentContext.namespace, anchor));
|
|
904
904
|
parentContext.addChild(context);
|
|
905
905
|
return {
|
|
906
906
|
activeBranch: newState,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xaendar/core",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.10",
|
|
4
4
|
"description": "A library containing core utils such as webcomponent base classes and theming support",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@xaendar/signals": "0.7.
|
|
20
|
-
"@xaendar/types": "0.7.
|
|
19
|
+
"@xaendar/signals": "0.7.10",
|
|
20
|
+
"@xaendar/types": "0.7.10"
|
|
21
21
|
}
|
|
22
22
|
}
|