@htmlplus/element 3.1.1 → 3.1.3
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.
|
@@ -1112,7 +1112,7 @@ const request = (target, name, previous, callback) => {
|
|
|
1112
1112
|
// Calls the lifecycle's callback before the rendering phase.
|
|
1113
1113
|
call(target, LIFECYCLE_UPDATE, states);
|
|
1114
1114
|
// Renders template to the DOM.
|
|
1115
|
-
render(shadowRoot(target), () => call(target, METHOD_RENDER));
|
|
1115
|
+
render(shadowRoot(target), () => call(target, METHOD_RENDER) ?? null);
|
|
1116
1116
|
// Invokes requests' callback.
|
|
1117
1117
|
stacks.forEach((state) => {
|
|
1118
1118
|
state.callbacks.forEach((callback, index, callbacks) => {
|
package/dist/client.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { B as Bind, C as Consumer, D as Direction, E as Element, k as Event, H as Host, I as IsRTL, L as Listen, M as Method, l as Property, P as Provider, Q as Query, m as QueryAll, S as Slots, n as State, W as Watch, c as classes, d as direction, a as dispatch, g as getConfig, h as host, i as isCSSColor, b as isRTL, f as off, o as on, q as query, e as queryAll, j as setConfig, s as slots, t as toUnit } from './client-
|
|
1
|
+
export { B as Bind, C as Consumer, D as Direction, E as Element, k as Event, H as Host, I as IsRTL, L as Listen, M as Method, l as Property, P as Provider, Q as Query, m as QueryAll, S as Slots, n as State, W as Watch, c as classes, d as direction, a as dispatch, g as getConfig, h as host, i as isCSSColor, b as isRTL, f as off, o as on, q as query, e as queryAll, j as setConfig, s as slots, t as toUnit } from './client-BsD9JZY4.js';
|
|
2
2
|
import 'change-case';
|
|
3
3
|
import './constants.js';
|
package/dist/internal.js
CHANGED
package/dist/transformer.js
CHANGED
|
@@ -757,6 +757,16 @@ const customElement = (options) => {
|
|
|
757
757
|
}
|
|
758
758
|
}
|
|
759
759
|
|
|
760
|
+
declare module "react" {
|
|
761
|
+
namespace JSX {
|
|
762
|
+
interface IntrinsicElements {
|
|
763
|
+
"${context.elementTagName}": ${context.className}Events & ${context.className}Attributes & {
|
|
764
|
+
[key: string]: any;
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
}
|
|
769
|
+
|
|
760
770
|
export type ${context.className}Element = globalThis.${context.elementInterfaceName}
|
|
761
771
|
`, {
|
|
762
772
|
plugins: ['typescript'],
|