@flow-os/router 0.0.51-dev.1772054584 → 0.0.51-dev.1772055700
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/config/index.html +17 -0
- package/package.json +4 -2
- package/src/jsx-runtime/index.ts +2 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="it">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8"/>
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
6
|
+
<title>Flow</title>
|
|
7
|
+
<style>html,body{margin:0;padding:0;min-height:100vh}#app{min-height:100vh;box-sizing:border-box}*,*::before,*::after{box-sizing:inherit}</style>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="app"></div>
|
|
11
|
+
<script type="module">
|
|
12
|
+
import { run } from '@flow-os/router';
|
|
13
|
+
import Root from '/client/root.tsx';
|
|
14
|
+
run(Root, import.meta.glob('./client/routes/**/*.{ts,tsx}'));
|
|
15
|
+
</script>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flow-os/router",
|
|
3
|
-
"version": "0.0.51-dev.
|
|
3
|
+
"version": "0.0.51-dev.1772055700",
|
|
4
4
|
"license": "PolyForm-Shield-1.0.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -25,5 +25,7 @@
|
|
|
25
25
|
"default": "./src/jsx-runtime/index.ts"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
|
-
"dependencies": {
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@flow-os/style": "0.0.1"
|
|
30
|
+
}
|
|
29
31
|
}
|
package/src/jsx-runtime/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference path="./types.d.ts" />
|
|
1
2
|
/** Minimal JSX runtime: creates DOM nodes. No React. */
|
|
2
3
|
export const Fragment = Symbol.for('flow.fragment');
|
|
3
4
|
|
|
@@ -35,7 +36,7 @@ function applyProps(el: HTMLElement, props: Props): void {
|
|
|
35
36
|
if (classNameProp != null) el.className = String(classNameProp);
|
|
36
37
|
if (styleProp != null && typeof styleProp === 'object') {
|
|
37
38
|
for (const [k, v] of Object.entries(styleProp)) {
|
|
38
|
-
if (v != null) (el.style as Record<string, string>)[k] = String(v);
|
|
39
|
+
if (v != null) (el.style as unknown as Record<string, string>)[k] = String(v);
|
|
39
40
|
}
|
|
40
41
|
}
|
|
41
42
|
for (const [k, v] of Object.entries(rest)) {
|