stillflow.engine 0.4.5 → 0.4.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/dist/jsx-runtime.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { Binding } from "./stillflow-vm/binding.js";
|
|
2
2
|
export declare function jsx<T>(type: (properties: Record<string, any>, children: Binding<any>[]) => Binding<T>, properties: Record<string, any>): Binding<T>;
|
|
3
|
+
export declare function jsxs<T>(type: (properties: Record<string, any>, children: Binding<any>[]) => Binding<T>, properties: Record<string, any>): Binding<T>;
|
package/dist/jsx-runtime.js
CHANGED
|
@@ -16,6 +16,9 @@ class JSXDOMUtilities {
|
|
|
16
16
|
const dynamic_content = new Array();
|
|
17
17
|
const static_content = new Array();
|
|
18
18
|
const children = new Array();
|
|
19
|
+
if (Array.isArray(all) == false) {
|
|
20
|
+
all = [all];
|
|
21
|
+
}
|
|
19
22
|
for (const child of all) {
|
|
20
23
|
if (typeof child === 'string' || typeof child === 'number') {
|
|
21
24
|
static_content.push(child.toString());
|