@solidjs/start 2.0.0-rc.3 → 2.0.0-rc.5
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 +48 -0
- package/dist/config/app-root-alias.d.ts +7 -0
- package/dist/config/app-root-alias.js +58 -0
- package/dist/config/constants.d.ts +1 -0
- package/dist/config/constants.js +1 -0
- package/dist/config/env.js +2 -2
- package/dist/config/fs-routes/index.js +3 -3
- package/dist/config/fs-routes/tree-shake.d.ts +27 -0
- package/dist/config/fs-routes/tree-shake.js +46 -1
- package/dist/config/index.d.ts +23 -0
- package/dist/config/index.js +14 -6
- package/dist/config/manifest.js +11 -2
- package/dist/directives/remove-unused-variables.js +2 -2
- package/dist/directives/xxhash32.js +5 -13
- package/dist/fns/handler.js +37 -12
- package/dist/fns/plugins.d.ts +34 -0
- package/dist/fns/plugins.js +33 -0
- package/dist/fns/serialization.js +35 -5
- package/dist/server/assets/render.jsx +1 -1
- package/dist/server/handler.js +9 -1
- package/dist/server/spa/StartServer.jsx +1 -1
- package/dist/shared/clientOnly.js +3 -1
- package/dist/shared/dev-toolbar/error-viewer/CodeView.jsx +1 -1
- package/dist/shared/dev-toolbar/functions/BlobViewer.css +1 -1
- package/dist/shared/dev-toolbar/functions/BlobViewer.d.ts +2 -2
- package/dist/shared/dev-toolbar/functions/BlobViewer.jsx +7 -11
- package/dist/shared/dev-toolbar/functions/FormDataViewer.d.ts +1 -1
- package/dist/shared/dev-toolbar/functions/FormDataViewer.jsx +7 -11
- package/dist/shared/dev-toolbar/functions/HeadersViewer.d.ts +1 -1
- package/dist/shared/dev-toolbar/functions/HeadersViewer.jsx +2 -2
- package/dist/shared/dev-toolbar/functions/HexViewer.d.ts +1 -1
- package/dist/shared/dev-toolbar/functions/HexViewer.jsx +7 -15
- package/dist/shared/dev-toolbar/functions/SerovalValue.css +0 -2
- package/dist/shared/dev-toolbar/functions/SerovalValue.d.ts +1 -1
- package/dist/shared/dev-toolbar/functions/SerovalValue.jsx +3 -3
- package/dist/shared/dev-toolbar/functions/SerovalViewer.css +0 -1
- package/dist/shared/dev-toolbar/functions/URLSearchParamsViewer.d.ts +1 -1
- package/dist/shared/dev-toolbar/functions/URLSearchParamsViewer.jsx +5 -7
- package/dist/shared/dev-toolbar/functions/styles.css +0 -1
- package/dist/shared/dev-toolbar/index.jsx +5 -0
- package/dist/shared/ui/Badge.css +0 -1
- package/dist/shared/ui/Badge.d.ts +3 -3
- package/dist/shared/ui/Badge.jsx +3 -3
- package/dist/shared/ui/Button.jsx +1 -1
- package/dist/shared/ui/Cascade.jsx +3 -3
- package/dist/shared/ui/Dialog.css +1 -2
- package/dist/shared/ui/Dialog.jsx +3 -3
- package/dist/shared/ui/IconButton.jsx +1 -1
- package/dist/shared/ui/Placeholder.css +1 -1
- package/dist/shared/ui/Placeholder.d.ts +2 -2
- package/dist/shared/ui/Placeholder.jsx +2 -4
- package/dist/shared/ui/Section.css +0 -1
- package/dist/shared/ui/Section.d.ts +2 -2
- package/dist/shared/ui/Section.jsx +3 -5
- package/dist/shared/ui/Select.jsx +3 -3
- package/dist/shared/ui/Table.d.ts +6 -6
- package/dist/shared/ui/Table.jsx +5 -5
- package/dist/shared/ui/Tabs.jsx +4 -4
- package/dist/shared/ui/Text.css +7 -3
- package/dist/shared/ui/Text.d.ts +8 -8
- package/dist/shared/ui/Text.jsx +9 -9
- package/package.json +28 -27
package/dist/shared/ui/Text.css
CHANGED
|
@@ -24,13 +24,17 @@
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
[data-start-text-font="sans"] {
|
|
27
|
-
font-family:
|
|
27
|
+
font-family:
|
|
28
|
+
system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
|
|
29
|
+
"Noto Color Emoji";
|
|
28
30
|
}
|
|
29
31
|
[data-start-text-font="serif"] {
|
|
30
|
-
font-family: ui-serif, Georgia, Cambria,
|
|
32
|
+
font-family: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
|
|
31
33
|
}
|
|
32
34
|
[data-start-text-font="mono"] {
|
|
33
|
-
font-family:
|
|
35
|
+
font-family:
|
|
36
|
+
ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New",
|
|
37
|
+
monospace;
|
|
34
38
|
}
|
|
35
39
|
|
|
36
40
|
[data-start-text-weight="thin"] {
|
package/dist/shared/ui/Text.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { type ComponentProps, type JSX } from
|
|
2
|
-
import
|
|
3
|
-
export type TextProps<T extends keyof JSX.IntrinsicElements =
|
|
1
|
+
import { type ComponentProps, type JSX } from "solid-js";
|
|
2
|
+
import "./Text.css";
|
|
3
|
+
export type TextProps<T extends keyof JSX.IntrinsicElements = "span"> = ComponentProps<T> & {
|
|
4
4
|
options?: {
|
|
5
5
|
as?: T;
|
|
6
|
-
size?:
|
|
7
|
-
font?:
|
|
8
|
-
weight?:
|
|
9
|
-
wrap?:
|
|
6
|
+
size?: "xs" | "sm" | "base" | "lg" | "xl" | "2xl";
|
|
7
|
+
font?: "sans" | "serif" | "mono";
|
|
8
|
+
weight?: "thin" | "extralight" | "light" | "normal" | "medium" | "semibold" | "bold" | "extrabold";
|
|
9
|
+
wrap?: "wrap" | "nowrap";
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
|
-
export declare function Text<T extends keyof JSX.IntrinsicElements =
|
|
12
|
+
export declare function Text<T extends keyof JSX.IntrinsicElements = "span">(props: TextProps<T>): JSX.Element;
|
package/dist/shared/ui/Text.jsx
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { createMemo, splitProps } from
|
|
2
|
-
import { Dynamic } from
|
|
3
|
-
import
|
|
1
|
+
import { createMemo, splitProps } from "solid-js";
|
|
2
|
+
import { Dynamic } from "solid-js/web";
|
|
3
|
+
import "./Text.css";
|
|
4
4
|
export function Text(props) {
|
|
5
|
-
const [current, rest] = splitProps(props, [
|
|
5
|
+
const [current, rest] = splitProps(props, ["options"]);
|
|
6
6
|
const customization = createMemo(() => {
|
|
7
7
|
const options = Object.assign({}, {
|
|
8
|
-
size:
|
|
9
|
-
font:
|
|
10
|
-
weight:
|
|
11
|
-
wrap:
|
|
8
|
+
size: "base",
|
|
9
|
+
font: "mono",
|
|
10
|
+
weight: "normal",
|
|
11
|
+
wrap: "wrap",
|
|
12
12
|
}, current.options);
|
|
13
13
|
const entries = Object.entries(options);
|
|
14
14
|
return Object.fromEntries(entries.map(([key, value]) => [`data-start-text-${key}`, value]));
|
|
15
15
|
});
|
|
16
|
-
return (<Dynamic component={(current.options?.as ||
|
|
16
|
+
return (<Dynamic component={(current.options?.as || "span")} {...rest} {...customization()}/>);
|
|
17
17
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solidjs/start",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
4
|
-
"type": "module",
|
|
5
|
-
"files": [
|
|
6
|
-
"dist",
|
|
7
|
-
"env.d.ts",
|
|
8
|
-
"CHANGELOG.md"
|
|
9
|
-
],
|
|
3
|
+
"version": "2.0.0-rc.5",
|
|
10
4
|
"repository": {
|
|
11
5
|
"type": "git",
|
|
12
6
|
"url": "git+https://github.com/solidjs/solid-start.git",
|
|
13
7
|
"directory": "packages/start"
|
|
14
8
|
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"env.d.ts",
|
|
12
|
+
"CHANGELOG.md"
|
|
13
|
+
],
|
|
14
|
+
"type": "module",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": "./dist/index.jsx",
|
|
17
17
|
"./config": "./dist/config/index.js",
|
|
@@ -24,50 +24,51 @@
|
|
|
24
24
|
"./http": "./dist/http/index.js",
|
|
25
25
|
"./env": "./env.d.ts",
|
|
26
26
|
"./fns/server": "./dist/fns/server.js",
|
|
27
|
-
"./fns/client": "./dist/fns/client.js"
|
|
27
|
+
"./fns/client": "./dist/fns/client.js",
|
|
28
|
+
"./serialization": "./dist/fns/plugins.js"
|
|
28
29
|
},
|
|
29
30
|
"publishConfig": {
|
|
30
31
|
"access": "public"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"@babel/core": "^7.29.
|
|
34
|
-
"@babel/traverse": "^7.29.
|
|
35
|
-
"@babel/types": "^7.29.
|
|
34
|
+
"@babel/core": "^7.29.7",
|
|
35
|
+
"@babel/traverse": "^7.29.7",
|
|
36
|
+
"@babel/types": "^7.29.7",
|
|
36
37
|
"@solidjs/meta": "^0.29.4",
|
|
37
38
|
"@types/babel__traverse": "^7.28.0",
|
|
38
39
|
"@types/micromatch": "^4.0.10",
|
|
39
|
-
"cookie-es": "^
|
|
40
|
-
"defu": "^6.1.
|
|
40
|
+
"cookie-es": "^3.1.1",
|
|
41
|
+
"defu": "^6.1.7",
|
|
41
42
|
"error-stack-parser": "^2.1.4",
|
|
42
43
|
"fast-glob": "^3.3.3",
|
|
43
44
|
"h3": "^2.0.1-rc.26",
|
|
44
45
|
"html-to-image": "^1.11.13",
|
|
45
46
|
"micromatch": "^4.0.8",
|
|
46
|
-
"oxc-parser": "^0.
|
|
47
|
-
"path-to-regexp": "^8.
|
|
47
|
+
"oxc-parser": "^0.141.0",
|
|
48
|
+
"path-to-regexp": "^8.4.2",
|
|
48
49
|
"pathe": "^2.0.3",
|
|
49
50
|
"radix3": "^1.1.2",
|
|
50
|
-
"seroval": "^1.5.
|
|
51
|
-
"seroval-plugins": "^1.5.
|
|
52
|
-
"shiki": "^
|
|
53
|
-
"solid-js": "^1.9.
|
|
51
|
+
"seroval": "^1.5.6",
|
|
52
|
+
"seroval-plugins": "^1.5.6",
|
|
53
|
+
"shiki": "^4.3.1",
|
|
54
|
+
"solid-js": "^1.9.14",
|
|
54
55
|
"source-map-js": "^1.2.1",
|
|
55
|
-
"srvx": "^0.12.
|
|
56
|
+
"srvx": "^0.12.4",
|
|
56
57
|
"terracotta": "^1.1.1",
|
|
57
|
-
"vite-plugin-solid": "^2.11.
|
|
58
|
-
},
|
|
59
|
-
"engines": {
|
|
60
|
-
"node": ">=24"
|
|
58
|
+
"vite-plugin-solid": "^2.11.13"
|
|
61
59
|
},
|
|
62
60
|
"devDependencies": {
|
|
63
61
|
"@types/babel__core": "^7.20.5",
|
|
64
|
-
"@types/node": "^
|
|
65
|
-
"vite": "^8.
|
|
66
|
-
"vitest": "^4.1.
|
|
62
|
+
"@types/node": "^26.1.1",
|
|
63
|
+
"vite": "^8.1.5",
|
|
64
|
+
"vitest": "^4.1.10"
|
|
67
65
|
},
|
|
68
66
|
"peerDependencies": {
|
|
69
67
|
"vite": "^8 || ^9"
|
|
70
68
|
},
|
|
69
|
+
"engines": {
|
|
70
|
+
"node": ">=24"
|
|
71
|
+
},
|
|
71
72
|
"scripts": {
|
|
72
73
|
"build": "pnpm validate-imports && tsc && node scripts/build.js",
|
|
73
74
|
"dev": "tsc --watch",
|