@hewel/zgui-build 0.1.2 → 0.1.4

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/README.md CHANGED
@@ -5,15 +5,22 @@ Build, watch, develop, and preview native zgui applications from Bun (≥ 1.4.4)
5
5
  ## Build and watch
6
6
 
7
7
  ```ts
8
- import { buildApplication, resolveApplication, watchApplication } from "@hewel/zgui-build";
8
+ import {
9
+ buildApplication,
10
+ resolveApplication,
11
+ syncCssModuleTypes,
12
+ watchApplication,
13
+ } from "@hewel/zgui-build";
9
14
 
10
15
  const app = await resolveApplication("./my-app");
11
16
  const options = {
12
17
  ...app,
13
18
  extraCapabilities: { namedSockets: ["status"] },
14
19
  capabilitiesFile: "./generated/plugin-capabilities.json",
20
+ cssModuleInclude: ["../../packages/sdk/src", "../../plugins/*/src"],
15
21
  };
16
22
 
23
+ await syncCssModuleTypes({ project: "./my-app/tsconfig.json", include: options.cssModuleInclude });
17
24
  const { dist, manifest } = await buildApplication(app.app, options);
18
25
  console.log(dist, manifest.id, manifest.buildId);
19
26
 
@@ -65,7 +72,15 @@ All four application APIs accept `extraCapabilities` and `capabilitiesFile`. The
65
72
 
66
73
  Each source is validated independently. `shellSurfaces` and `controlChannel` are ORed; `imagePrefixes`, `unixSockets`, `namedSockets`, and `commands` are merged by exact string and sorted. Duplicates within one source are errors. Host path templates, such as `$XDG_RUNTIME_DIR/host-${WAYLAND_DISPLAY}.sock`, are sealed verbatim. False flags and empty arrays are omitted from the manifest. Use only trusted overlays: their merged grants are sealed into the build ID.
67
74
 
68
- **Only the app's base `package.json` can declare `sessionLock: true`.** Either overlay source specifying it as `true` rejects the build even if the base already grants it. `false` or omission neither grants nor revokes the base declaration.
75
+ **Only the app's base `package.json` can declare `sessionLock: true` or `singleInstance: true`.** Either build-time overlay specifying either flag as `true` rejects the build even if the base already enables it. `false` or omission neither enables nor revokes the base declaration.
76
+
77
+ Build-time overlays may grant `shellSurfaces: true`. The runtime `--extensions-overlay`
78
+ is stricter: it cannot add `shellSurfaces`, `sessionLock`, or `singleInstance`.
79
+
80
+ `buildApplication(app, { bytecode: true })` resolves a compatible host through the
81
+ same prebuilt/Cargo lookup as `devApplication`. `packageApplication` compiles with
82
+ the same verified executable it ships. `resolveNativeHost` returns the absolute
83
+ `runRoot` for invoking the executable.
69
84
 
70
85
  ```sh
71
86
  zgui-js build ./my-app --watch --capabilities-file ./generated/plugin-capabilities.json
@@ -77,7 +92,14 @@ Install or link the build package and SDK dependencies in the consumer repositor
77
92
 
78
93
  `root` selects the SDK's default preview inputs and `bun.lock`/`Cargo.lock` provenance, not the app's working directory. The default is the SDK checkout for a linked build package or the shipped SDK resources for an installed tarball.
79
94
 
80
- On Linux `x86_64` (`glibc >= 2.39`), installing `@hewel/zgui-cli` automatically pulls the matching prebuilt `@hewel/zgui-host-linux-x64` binary via `optionalDependencies`, so `dev`, `preview`, and `package` resolve `zgui-host` with no Rust toolchain or explicit host flags. For custom host builds or platforms without a prebuilt host package, pass a matching checkout as `hostRoot` (or `--host-root <dir>`) to compile via Cargo, or pass a prebuilt binary as `hostExecutable` (or `--host-executable <path>`). The checkout and binary must match the package's host API and `lightningcss-v1` style profile.
95
+ On Linux `x86_64` (`glibc >= 2.39`), installing `@hewel/zgui-cli` automatically pulls the matching prebuilt `@hewel/zgui-host-linux-x64` binary via `optionalDependencies`, so `dev`, `preview`, and `package` resolve `zgui-host` with no Rust toolchain or explicit host flags. Host selection runs in deterministic precedence order:
96
+
97
+ 1. `--host-executable` / `ZGUI_JS_HOST_EXECUTABLE`
98
+ 2. Explicit `--host-root` (`hostRoot`)
99
+ 3. Verified installed platform package (`@hewel/zgui-host-<os>-<arch>`)
100
+ 4. Autodetected local Cargo checkout containing `crates/zgui-host`
101
+
102
+ For custom host builds or platforms without a prebuilt host package, pass a matching checkout as `hostRoot` (or `--host-root <dir>`) to compile via Cargo, or pass a prebuilt binary as `hostExecutable` (or `--host-executable <path>`). The checkout and binary must match the package's host API and `lightningcss-v1` style profile.
81
103
 
82
104
  For either CLI command, `--host-root <dir>` selects the checkout used to build the host and the working directory used to run it. `--host-executable <path>` skips Cargo and runs a prebuilt host; it can be combined with `--host-root` to set the host's working directory. Relative flag values resolve from the caller's current directory.
83
105
 
@@ -85,3 +107,20 @@ For either CLI command, `--host-root <dir>` selects the checkout used to build t
85
107
  zgui-js dev ./my-app --host-root ../zgui-js
86
108
  zgui-js preview ./my-app --watch --host-executable ../zgui-js/target/debug/zgui-host
87
109
  ```
110
+
111
+ ### Local two-repo edit loop (`link:`)
112
+
113
+ When actively developing `zgui-js` alongside an external consumer repo (such as a Wayland desktop shell):
114
+
115
+ 1. Install `zgui-js` dependencies in the checkout (`bun install --frozen-lockfile`).
116
+ 2. In the consumer repository, temporarily point `@hewel/zgui` and `@hewel/zgui-services` (plus `@hewel/zgui-build` if invoked programmatically, e.g. from a composer workspace package) at `link:../zgui-js/packages/<pkg>` across every workspace `package.json` that declares them, then run `bun install`. Leave `@hewel/zgui-cli` installed from npm or run `bun ../zgui-js/packages/cli/src/cli.ts ...` directly (its manifest uses `workspace:*` for internal packaging). Keep machine-local `link:` and lockfile edits uncommitted.
117
+ 3. Because a linked `@hewel/zgui-build` (or checkout CLI) sets `workspaceRoot` to the checkout, `buildApplication` rebuilds checkout `packages/ui/dist` and `packages/services/dist` on demand and `watchApplication` / `zgui-js dev` watches `packages/{ui,services}/src` for hot reloads.
118
+ 4. Select the local Rust host explicitly with `--host-root ../zgui-js` or `--host-executable` / `ZGUI_JS_HOST_EXECUTABLE` (`zgui-js doctor --json` reports the active executable and resolution source).
119
+ 5. **Single Solid runtime rule:** import reactive APIs through `@hewel/zgui` (which uses a single physical `solid-js` tree inside the checkout). If an app or third-party dependency bare-imports another installed copy of `solid-js`, the compiler rejects the duplicate graph and prints the conflicting paths; switch to packed `.tgz` tarballs in that case rather than weakening singleton validation.
120
+
121
+ ### Snapshot and pre-release verification (`.tgz` tarballs)
122
+
123
+ To verify exact npm-installed packaging without publishing to npmjs.org:
124
+
125
+ - **SDK-only snapshot:** run `bun pm pack --filename /tmp/zgui-local/zgui.tgz` inside `packages/ui` (and `packages/services` as needed) to run `prepack` builds cleanly and install those `.tgz` files into the consumer.
126
+ - **Full 6-package matrix:** run `cargo build -p zgui-host` then `bun run release:pack -- --out /tmp/zgui-local --host-binary ./target/debug/zgui-host`, and point consumer `dependencies`/`overrides` to the generated tarballs. Use distinct filenames or `bun install --force` when repacking the same SemVer version.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hewel/zgui-build",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Programmatic compiler, Lightning CSS Modules pipeline, tsrs typechecker, host resolver, and app packager for zgui-js",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/sdk/Cargo.lock CHANGED
@@ -586,6 +586,16 @@ version = "1.12.1"
586
586
  source = "registry+https://github.com/rust-lang/crates.io-index"
587
587
  checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
588
588
 
589
+ [[package]]
590
+ name = "calendrical_calculations"
591
+ version = "0.2.4"
592
+ source = "registry+https://github.com/rust-lang/crates.io-index"
593
+ checksum = "5abbd6eeda6885048d357edc66748eea6e0268e3dd11f326fff5bd248d779c26"
594
+ dependencies = [
595
+ "core_maths",
596
+ "displaydoc",
597
+ ]
598
+
589
599
  [[package]]
590
600
  name = "calloop"
591
601
  version = "0.13.0"
@@ -1188,6 +1198,17 @@ version = "0.1.15"
1188
1198
  source = "registry+https://github.com/rust-lang/crates.io-index"
1189
1199
  checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48"
1190
1200
 
1201
+ [[package]]
1202
+ name = "fixed_decimal"
1203
+ version = "0.7.3"
1204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1205
+ checksum = "2214fb00f669ee96bee5bb29dfb1ddabe058b2bc426817efc79afa03c9bc55ae"
1206
+ dependencies = [
1207
+ "displaydoc",
1208
+ "smallvec",
1209
+ "writeable",
1210
+ ]
1211
+
1191
1212
  [[package]]
1192
1213
  name = "flate2"
1193
1214
  version = "1.1.11"
@@ -1646,7 +1667,7 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
1646
1667
 
1647
1668
  [[package]]
1648
1669
  name = "host-services"
1649
- version = "0.1.2"
1670
+ version = "0.1.4"
1650
1671
  dependencies = [
1651
1672
  "bytes",
1652
1673
  "flate2",
@@ -1655,11 +1676,20 @@ dependencies = [
1655
1676
  "http-body-util",
1656
1677
  "hyper",
1657
1678
  "hyper-util",
1679
+ "icu_calendar",
1680
+ "icu_collator",
1681
+ "icu_datetime",
1682
+ "icu_locale",
1683
+ "icu_locale_core",
1684
+ "icu_time",
1685
+ "jiff",
1686
+ "jiff-icu",
1658
1687
  "js-runtime",
1659
1688
  "libc",
1660
1689
  "notify",
1661
1690
  "rquickjs",
1662
1691
  "rusqlite",
1692
+ "rustix 1.1.6",
1663
1693
  "rustls",
1664
1694
  "serde",
1665
1695
  "serde_json",
@@ -1669,6 +1699,7 @@ dependencies = [
1669
1699
  "tokio-tungstenite",
1670
1700
  "url",
1671
1701
  "webpki-roots",
1702
+ "writeable",
1672
1703
  "zbus",
1673
1704
  ]
1674
1705
 
@@ -1746,6 +1777,55 @@ dependencies = [
1746
1777
  "tokio",
1747
1778
  ]
1748
1779
 
1780
+ [[package]]
1781
+ name = "icu_calendar"
1782
+ version = "2.4.0"
1783
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1784
+ checksum = "a68ffb801cc7acb8dcae62da7c692c47934698d2dd4f479ddee1eb442763dea1"
1785
+ dependencies = [
1786
+ "calendrical_calculations",
1787
+ "displaydoc",
1788
+ "icu_calendar_data",
1789
+ "icu_locale_core",
1790
+ "icu_locale_fallback",
1791
+ "icu_provider",
1792
+ "ixdtf",
1793
+ "serde",
1794
+ "tinystr",
1795
+ "zerovec",
1796
+ ]
1797
+
1798
+ [[package]]
1799
+ name = "icu_calendar_data"
1800
+ version = "2.4.0"
1801
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1802
+ checksum = "514da54e79efa36b5976232d5b3d1d8ee1b47b19ab658f1b1ebe39221696c2d8"
1803
+
1804
+ [[package]]
1805
+ name = "icu_collator"
1806
+ version = "2.4.0"
1807
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1808
+ checksum = "24cb0205c419b2036da3f9082964905d6849b3f2130dd4a517940c45899a544b"
1809
+ dependencies = [
1810
+ "icu_collator_data",
1811
+ "icu_collections",
1812
+ "icu_locale_core",
1813
+ "icu_locale_fallback",
1814
+ "icu_normalizer",
1815
+ "icu_properties",
1816
+ "icu_provider",
1817
+ "smallvec",
1818
+ "utf16_iter",
1819
+ "utf8_iter",
1820
+ "zerovec",
1821
+ ]
1822
+
1823
+ [[package]]
1824
+ name = "icu_collator_data"
1825
+ version = "2.4.0"
1826
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1827
+ checksum = "183f47e821a327661c1ebe152f61d5b6c2000010d228cadbbf226e0e2b8c2634"
1828
+
1749
1829
  [[package]]
1750
1830
  name = "icu_collections"
1751
1831
  version = "2.4.0"
@@ -1760,6 +1840,73 @@ dependencies = [
1760
1840
  "zerovec",
1761
1841
  ]
1762
1842
 
1843
+ [[package]]
1844
+ name = "icu_datetime"
1845
+ version = "2.4.0"
1846
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1847
+ checksum = "3c338aa7ebff734470e216a4196fa84b123a366cc786c445741b6f5647412c3c"
1848
+ dependencies = [
1849
+ "displaydoc",
1850
+ "fixed_decimal",
1851
+ "icu_calendar",
1852
+ "icu_datetime_data",
1853
+ "icu_decimal",
1854
+ "icu_locale_core",
1855
+ "icu_locale_fallback",
1856
+ "icu_pattern",
1857
+ "icu_plurals",
1858
+ "icu_provider",
1859
+ "icu_time",
1860
+ "potential_utf",
1861
+ "tinystr",
1862
+ "writeable",
1863
+ "zerovec",
1864
+ ]
1865
+
1866
+ [[package]]
1867
+ name = "icu_datetime_data"
1868
+ version = "2.4.0"
1869
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1870
+ checksum = "4bddb757c2df1635453c4e8cb2d4ba7ad026e904893f29699315826c0951bbd9"
1871
+
1872
+ [[package]]
1873
+ name = "icu_decimal"
1874
+ version = "2.4.0"
1875
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1876
+ checksum = "1150ad5e272740670464934ee76facda43ef2e11f85c27b7ba76ccb33edf2d05"
1877
+ dependencies = [
1878
+ "displaydoc",
1879
+ "fixed_decimal",
1880
+ "icu_decimal_data",
1881
+ "icu_locale_core",
1882
+ "icu_locale_fallback",
1883
+ "icu_plurals",
1884
+ "icu_provider",
1885
+ "writeable",
1886
+ "zerovec",
1887
+ ]
1888
+
1889
+ [[package]]
1890
+ name = "icu_decimal_data"
1891
+ version = "2.4.0"
1892
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1893
+ checksum = "5595ab78370d48abd24a062f3db115d5108dd0b65634352036cae532aebb0df8"
1894
+
1895
+ [[package]]
1896
+ name = "icu_locale"
1897
+ version = "2.4.0"
1898
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1899
+ checksum = "fe8fa57bcddc15cb921582ee5259c5b77da39f946f188ca5213fad24d9241236"
1900
+ dependencies = [
1901
+ "icu_collections",
1902
+ "icu_locale_core",
1903
+ "icu_locale_data",
1904
+ "icu_locale_fallback",
1905
+ "icu_provider",
1906
+ "tinystr",
1907
+ "zerovec",
1908
+ ]
1909
+
1763
1910
  [[package]]
1764
1911
  name = "icu_locale_core"
1765
1912
  version = "2.4.0"
@@ -1774,6 +1921,12 @@ dependencies = [
1774
1921
  "zerovec",
1775
1922
  ]
1776
1923
 
1924
+ [[package]]
1925
+ name = "icu_locale_data"
1926
+ version = "2.4.0"
1927
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1928
+ checksum = "a64014dac577a11d8d2cee48517c73c1984bd72ab11031e934269bd3cefb2ad9"
1929
+
1777
1930
  [[package]]
1778
1931
  name = "icu_locale_fallback"
1779
1932
  version = "2.4.0"
@@ -1805,6 +1958,9 @@ dependencies = [
1805
1958
  "icu_properties",
1806
1959
  "icu_provider",
1807
1960
  "smallvec",
1961
+ "utf16_iter",
1962
+ "utf8_iter",
1963
+ "write16",
1808
1964
  "zerovec",
1809
1965
  ]
1810
1966
 
@@ -1814,6 +1970,38 @@ version = "2.4.0"
1814
1970
  source = "registry+https://github.com/rust-lang/crates.io-index"
1815
1971
  checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc"
1816
1972
 
1973
+ [[package]]
1974
+ name = "icu_pattern"
1975
+ version = "0.5.1"
1976
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1977
+ checksum = "bc43ce0e76ee8cb0482dc6e2dbb9b76278e8038f45daabf2a2877577e2ceb18f"
1978
+ dependencies = [
1979
+ "displaydoc",
1980
+ "either",
1981
+ "serde",
1982
+ "writeable",
1983
+ "zerovec",
1984
+ ]
1985
+
1986
+ [[package]]
1987
+ name = "icu_plurals"
1988
+ version = "2.4.0"
1989
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1990
+ checksum = "2ef046647b445acf95ce0f8083fa292467d3df649959fa9a20f3f8abfd957c5d"
1991
+ dependencies = [
1992
+ "fixed_decimal",
1993
+ "icu_locale_fallback",
1994
+ "icu_plurals_data",
1995
+ "icu_provider",
1996
+ "zerovec",
1997
+ ]
1998
+
1999
+ [[package]]
2000
+ name = "icu_plurals_data"
2001
+ version = "2.4.0"
2002
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2003
+ checksum = "d43ff7df2c1a1d41588a6ddcba354d513d4a3e10eec22c06fe56d13c12a848ea"
2004
+
1817
2005
  [[package]]
1818
2006
  name = "icu_properties"
1819
2007
  version = "2.4.0"
@@ -1876,6 +2064,31 @@ version = "2.4.0"
1876
2064
  source = "registry+https://github.com/rust-lang/crates.io-index"
1877
2065
  checksum = "913a7d294ad056474749152107309fdee3ec17d2482d1ab70fdc61a81c64b9a3"
1878
2066
 
2067
+ [[package]]
2068
+ name = "icu_time"
2069
+ version = "2.4.0"
2070
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2071
+ checksum = "17d45ee651f21433b1c6352311f2ad9b5253c26be0e25d9a0869cb8247b8cfde"
2072
+ dependencies = [
2073
+ "calendrical_calculations",
2074
+ "displaydoc",
2075
+ "icu_calendar",
2076
+ "icu_locale_core",
2077
+ "icu_provider",
2078
+ "icu_time_data",
2079
+ "ixdtf",
2080
+ "serde",
2081
+ "writeable",
2082
+ "zerotrie",
2083
+ "zerovec",
2084
+ ]
2085
+
2086
+ [[package]]
2087
+ name = "icu_time_data"
2088
+ version = "2.4.0"
2089
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2090
+ checksum = "a6d7d711f44237fa9300406ab6e521148594056862343370b5df265a0d15c088"
2091
+
1879
2092
  [[package]]
1880
2093
  name = "ident_case"
1881
2094
  version = "1.0.1"
@@ -1990,6 +2203,66 @@ version = "1.0.19"
1990
2203
  source = "registry+https://github.com/rust-lang/crates.io-index"
1991
2204
  checksum = "3bd1574e617a9a6c1f8f8181bd7e841e1f20e4277607ef28945765188d6284d4"
1992
2205
 
2206
+ [[package]]
2207
+ name = "ixdtf"
2208
+ version = "0.6.7"
2209
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2210
+ checksum = "4754a1731458af0443709c9667302793d3f63cc90ec4ba4c8259f2b9515478e5"
2211
+
2212
+ [[package]]
2213
+ name = "jiff"
2214
+ version = "1.0.3"
2215
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2216
+ checksum = "107f2e89536b6818514025f6787b0d94d819e54fe3b40365275fc753de485b3f"
2217
+ dependencies = [
2218
+ "jiff-core",
2219
+ "jiff-static",
2220
+ "jiff-tzdb",
2221
+ "log",
2222
+ "portable-atomic",
2223
+ "portable-atomic-util",
2224
+ "serde_core",
2225
+ "windows-link",
2226
+ ]
2227
+
2228
+ [[package]]
2229
+ name = "jiff-core"
2230
+ version = "1.0.2"
2231
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2232
+ checksum = "d44c923edf2bf456a982253f1a9ee1f6e89e421dffd0065d9b9a581da0def58f"
2233
+ dependencies = [
2234
+ "log",
2235
+ ]
2236
+
2237
+ [[package]]
2238
+ name = "jiff-icu"
2239
+ version = "1.0.0"
2240
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2241
+ checksum = "e23fad13729c57bfbf770e467e92ed700cd80941ee4c6ecbbae5dfbc38d9143f"
2242
+ dependencies = [
2243
+ "icu_calendar",
2244
+ "icu_time",
2245
+ "jiff",
2246
+ ]
2247
+
2248
+ [[package]]
2249
+ name = "jiff-static"
2250
+ version = "1.0.3"
2251
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2252
+ checksum = "4996f71e569e3a3e32b925c28ef8f0027dc30bb1d594b33eeda409eea185f5c8"
2253
+ dependencies = [
2254
+ "jiff-core",
2255
+ "proc-macro2",
2256
+ "quote",
2257
+ "syn 3.0.10",
2258
+ ]
2259
+
2260
+ [[package]]
2261
+ name = "jiff-tzdb"
2262
+ version = "1.0.0"
2263
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2264
+ checksum = "12e71a1b68a875a44a33bb7a1dd84392cb77145a3367a552a3cfe6a4f5cf3afc"
2265
+
1993
2266
  [[package]]
1994
2267
  name = "jni"
1995
2268
  version = "0.22.4"
@@ -2060,9 +2333,10 @@ dependencies = [
2060
2333
 
2061
2334
  [[package]]
2062
2335
  name = "js-runtime"
2063
- version = "0.1.2"
2336
+ version = "0.1.4"
2064
2337
  dependencies = [
2065
2338
  "rquickjs",
2339
+ "url",
2066
2340
  ]
2067
2341
 
2068
2342
  [[package]]
@@ -4623,7 +4897,7 @@ dependencies = [
4623
4897
 
4624
4898
  [[package]]
4625
4899
  name = "ui-bridge"
4626
- version = "0.1.2"
4900
+ version = "0.1.4"
4627
4901
  dependencies = [
4628
4902
  "js-runtime",
4629
4903
  "roxmltree 0.21.2",
@@ -4760,6 +5034,15 @@ version = "0.7.6"
4760
5034
  source = "registry+https://github.com/rust-lang/crates.io-index"
4761
5035
  checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
4762
5036
 
5037
+ [[package]]
5038
+ name = "utf16_iter"
5039
+ version = "1.1.0"
5040
+ source = "registry+https://github.com/rust-lang/crates.io-index"
5041
+ checksum = "1c7de35d9d8757dbc1f5125dc8b51438c68b4430546a735c3a9b91aaaaf9a18a"
5042
+ dependencies = [
5043
+ "utf_types",
5044
+ ]
5045
+
4763
5046
  [[package]]
4764
5047
  name = "utf8_iter"
4765
5048
  version = "1.1.0"
@@ -5586,11 +5869,20 @@ version = "0.57.1"
5586
5869
  source = "registry+https://github.com/rust-lang/crates.io-index"
5587
5870
  checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
5588
5871
 
5872
+ [[package]]
5873
+ name = "write16"
5874
+ version = "1.0.0"
5875
+ source = "registry+https://github.com/rust-lang/crates.io-index"
5876
+ checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936"
5877
+
5589
5878
  [[package]]
5590
5879
  name = "writeable"
5591
5880
  version = "0.6.4"
5592
5881
  source = "registry+https://github.com/rust-lang/crates.io-index"
5593
5882
  checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
5883
+ dependencies = [
5884
+ "either",
5885
+ ]
5594
5886
 
5595
5887
  [[package]]
5596
5888
  name = "wyz"
@@ -6119,11 +6411,18 @@ dependencies = [
6119
6411
 
6120
6412
  [[package]]
6121
6413
  name = "zgui-host"
6122
- version = "0.1.2"
6414
+ version = "0.1.4"
6123
6415
  dependencies = [
6124
6416
  "accesskit",
6125
6417
  "accesskit_consumer",
6126
6418
  "host-services",
6419
+ "icu_calendar",
6420
+ "icu_collator",
6421
+ "icu_datetime",
6422
+ "icu_locale_core",
6423
+ "icu_time",
6424
+ "jiff",
6425
+ "jiff-icu",
6127
6426
  "js-runtime",
6128
6427
  "libc",
6129
6428
  "parley",
@@ -6406,7 +6705,6 @@ dependencies = [
6406
6705
  [[package]]
6407
6706
  name = "zgui-render-wgpu"
6408
6707
  version = "0.1.0"
6409
- source = "git+https://github.com/zortax/zgui?rev=ee29c7dc66206eb04ba7bcf514058a278c9070ba#ee29c7dc66206eb04ba7bcf514058a278c9070ba"
6410
6708
  dependencies = [
6411
6709
  "ash",
6412
6710
  "bincode",
@@ -6414,6 +6712,7 @@ dependencies = [
6414
6712
  "futures",
6415
6713
  "naga",
6416
6714
  "rustc-hash 2.1.3",
6715
+ "rustix 1.1.6",
6417
6716
  "tracing",
6418
6717
  "web-time",
6419
6718
  "wgpu",
package/sdk/bun.lock CHANGED
@@ -8,6 +8,7 @@
8
8
  "@hewel/zgui": "workspace:*",
9
9
  "@hewel/zgui-build": "workspace:*",
10
10
  "@hewel/zgui-services": "workspace:*",
11
+ "eslint-plugin-solid": "0.20.1",
11
12
  "oxfmt": "0.79.0",
12
13
  "oxlint": "1.94.0",
13
14
  "solid-js": "2.0.1",
@@ -160,7 +161,7 @@
160
161
  },
161
162
  "packages/build": {
162
163
  "name": "@hewel/zgui-build",
163
- "version": "0.1.2",
164
+ "version": "0.1.4",
164
165
  "dependencies": {
165
166
  "@solidjs/compiler": "2.0.1",
166
167
  "lightningcss": "1.33.0",
@@ -175,7 +176,7 @@
175
176
  },
176
177
  "packages/cli": {
177
178
  "name": "@hewel/zgui-cli",
178
- "version": "0.1.2",
179
+ "version": "0.1.4",
179
180
  "bin": {
180
181
  "zgui-js": "./src/cli.ts",
181
182
  },
@@ -191,7 +192,7 @@
191
192
  },
192
193
  "packages/create-zgui-js": {
193
194
  "name": "create-zgui-js",
194
- "version": "0.1.2",
195
+ "version": "0.1.4",
195
196
  "bin": {
196
197
  "create-zgui-js": "./src/cli.ts",
197
198
  },
@@ -204,27 +205,37 @@
204
205
  },
205
206
  "packages/host-linux-arm64": {
206
207
  "name": "@hewel/zgui-host-linux-arm64",
207
- "version": "0.1.2",
208
+ "version": "0.1.4",
208
209
  },
209
210
  "packages/host-linux-x64": {
210
211
  "name": "@hewel/zgui-host-linux-x64",
211
- "version": "0.1.2",
212
+ "version": "0.1.4",
212
213
  },
213
214
  "packages/services": {
214
215
  "name": "@hewel/zgui-services",
215
- "version": "0.1.2",
216
+ "version": "0.1.4",
216
217
  "dependencies": {
218
+ "@hewel/zgui": "workspace:*",
217
219
  "solid-js": "2.0.1",
218
220
  },
219
221
  },
220
222
  "packages/ui": {
221
223
  "name": "@hewel/zgui",
222
- "version": "0.1.2",
224
+ "version": "0.1.4",
223
225
  "dependencies": {
224
226
  "@solidjs/signals": "2.0.1",
225
227
  "@solidjs/universal": "2.0.1",
226
228
  "solid-js": "2.0.1",
227
229
  },
230
+ "devDependencies": {
231
+ "oxlint": "1.94.0",
232
+ },
233
+ "peerDependencies": {
234
+ "eslint-plugin-solid": "^0.20.0",
235
+ },
236
+ "optionalPeers": [
237
+ "eslint-plugin-solid",
238
+ ],
228
239
  },
229
240
  },
230
241
  "packages": {
@@ -482,8 +493,26 @@
482
493
 
483
494
  "detect-libc": ["detect-libc@2.1.2", "", {}, "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ=="],
484
495
 
496
+ "entities": ["entities@6.0.1", "", {}, "sha512-aN97NXWF6AWBTahfVOIrB/NShkzi5H7F9r1s9mD3cDj4Ko5f2qhhVoYMibXF7GlLveb/D2ioWay8lxI97Ven3g=="],
497
+
498
+ "eslint-plugin-solid": ["eslint-plugin-solid@0.20.1", "", { "dependencies": { "eslint-visitor-keys": "^3.4.3", "estraverse": "^5.3.0", "is-html": "^2.0.0", "kebab-case": "^1.0.2", "known-css-properties": "^0.30.0", "parse5": "^7.3.0", "style-to-object": "^1.0.6", "validate-html-nesting": "^1.2.4" }, "peerDependencies": { "eslint": "^9.0.0 || ^10.0.0" }, "optionalPeers": ["eslint"] }, "sha512-HPBVDgkGCOqXpfMQUyMP273AXo/VUwm/hqvTWWovVSJKPBzrKhq7w04Yn0PtTgj9g+7ZdlcAAJ9dwgBGeJQ4Gg=="],
499
+
500
+ "eslint-visitor-keys": ["eslint-visitor-keys@3.4.3", "", {}, "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag=="],
501
+
502
+ "estraverse": ["estraverse@5.3.0", "", {}, "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA=="],
503
+
485
504
  "example-css-modules": ["example-css-modules@workspace:apps/examples/css-modules"],
486
505
 
506
+ "html-tags": ["html-tags@3.3.1", "", {}, "sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ=="],
507
+
508
+ "inline-style-parser": ["inline-style-parser@0.2.7", "", {}, "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA=="],
509
+
510
+ "is-html": ["is-html@2.0.0", "", { "dependencies": { "html-tags": "^3.0.0" } }, "sha512-S+OpgB5i7wzIue/YSE5hg0e5ZYfG3hhpNh9KGl6ayJ38p7ED6wxQLd1TV91xHpcTvw90KMJ9EwN3F/iNflHBVg=="],
511
+
512
+ "kebab-case": ["kebab-case@1.0.2", "", {}, "sha512-7n6wXq4gNgBELfDCpzKc+mRrZFs7D+wgfF5WRFLNAr4DA/qtr9Js8uOAVAfHhuLMfAcQ0pRKqbpjx+TcJVdE1Q=="],
513
+
514
+ "known-css-properties": ["known-css-properties@0.30.0", "", {}, "sha512-VSWXYUnsPu9+WYKkfmJyLKtIvaRJi1kXUqVmBACORXZQxT5oZDsoZ2vQP+bQFDnWtpI/4eq3MLoRMjI2fnLzTQ=="],
515
+
487
516
  "lightningcss": ["lightningcss@1.33.0", "", { "dependencies": { "detect-libc": "^2.0.3" }, "optionalDependencies": { "lightningcss-android-arm64": "1.33.0", "lightningcss-darwin-arm64": "1.33.0", "lightningcss-darwin-x64": "1.33.0", "lightningcss-freebsd-x64": "1.33.0", "lightningcss-linux-arm-gnueabihf": "1.33.0", "lightningcss-linux-arm64-gnu": "1.33.0", "lightningcss-linux-arm64-musl": "1.33.0", "lightningcss-linux-x64-gnu": "1.33.0", "lightningcss-linux-x64-musl": "1.33.0", "lightningcss-win32-arm64-msvc": "1.33.0", "lightningcss-win32-x64-msvc": "1.33.0" } }, "sha512-WkUDrojuJs0xkgGf2udWxa3yGBRxPtxUkB79i6aCZLRgc7PM8fZe9TosfPDcvEpQZbuFASnHYmRLBLUbmLOIIA=="],
488
517
 
489
518
  "lightningcss-android-arm64": ["lightningcss-android-arm64@1.33.0", "", { "os": "android", "cpu": "arm64" }, "sha512-gEpRTalKdosp4Bb8qWtc2iOgE5SeIHlpS1up9bFq2wAyYhl1UdTObYiHe98zEM9SQvSoqQZ1IQD0JNpg3Ml5pg=="],
@@ -512,6 +541,8 @@
512
541
 
513
542
  "oxlint": ["oxlint@1.94.0", "", { "optionalDependencies": { "@oxlint/binding-android-arm-eabi": "1.94.0", "@oxlint/binding-android-arm64": "1.94.0", "@oxlint/binding-darwin-arm64": "1.94.0", "@oxlint/binding-darwin-x64": "1.94.0", "@oxlint/binding-freebsd-x64": "1.94.0", "@oxlint/binding-linux-arm-gnueabihf": "1.94.0", "@oxlint/binding-linux-arm-musleabihf": "1.94.0", "@oxlint/binding-linux-arm64-gnu": "1.94.0", "@oxlint/binding-linux-arm64-musl": "1.94.0", "@oxlint/binding-linux-ppc64-gnu": "1.94.0", "@oxlint/binding-linux-riscv64-gnu": "1.94.0", "@oxlint/binding-linux-riscv64-musl": "1.94.0", "@oxlint/binding-linux-s390x-gnu": "1.94.0", "@oxlint/binding-linux-x64-gnu": "1.94.0", "@oxlint/binding-linux-x64-musl": "1.94.0", "@oxlint/binding-openharmony-arm64": "1.94.0", "@oxlint/binding-win32-arm64-msvc": "1.94.0", "@oxlint/binding-win32-ia32-msvc": "1.94.0", "@oxlint/binding-win32-x64-msvc": "1.94.0" }, "peerDependencies": { "oxlint-tsgolint": ">=7.0.2007", "vite-plus": "*" }, "optionalPeers": ["oxlint-tsgolint", "vite-plus"], "bin": { "oxlint": "bin/oxlint" } }, "sha512-Fnt+3wSKRhtLmvgRfxgRX0excSPCoyiXRol4eWKZLtXxWMQtwQ3KjKQUYXOw5loyinfnZfGzh4RCYf7opfL0vw=="],
514
543
 
544
+ "parse5": ["parse5@7.3.0", "", { "dependencies": { "entities": "^6.0.0" } }, "sha512-IInvU7fabl34qmi9gY8XOVxhYyMyuH2xUNpb2q8/Y+7552KlejkRvqvD19nMoUW/uQGGbqNpA6Tufu5FL5BZgw=="],
545
+
515
546
  "rolldown": ["rolldown@1.3.2", "", { "dependencies": { "@oxc-project/types": "=0.158.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm-eabi": "1.3.2", "@rolldown/binding-android-arm64": "1.3.2", "@rolldown/binding-darwin-arm64": "1.3.2", "@rolldown/binding-darwin-x64": "1.3.2", "@rolldown/binding-freebsd-x64": "1.3.2", "@rolldown/binding-linux-arm-gnueabihf": "1.3.2", "@rolldown/binding-linux-arm64-gnu": "1.3.2", "@rolldown/binding-linux-arm64-musl": "1.3.2", "@rolldown/binding-linux-ppc64-gnu": "1.3.2", "@rolldown/binding-linux-s390x-gnu": "1.3.2", "@rolldown/binding-linux-x64-gnu": "1.3.2", "@rolldown/binding-linux-x64-musl": "1.3.2", "@rolldown/binding-openharmony-arm64": "1.3.2", "@rolldown/binding-wasm32-wasi": "1.3.2", "@rolldown/binding-win32-arm64-msvc": "1.3.2", "@rolldown/binding-win32-x64-msvc": "1.3.2" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-EFHqbVkXiYZA6akmYm2bvJhNbEGdUwAResRhYwl/BO8QhB5KxsG+t3RVHJSIOy5jBEb0XCACvrIGnnl6Z8sMGA=="],
516
547
 
517
548
  "seroval": ["seroval@1.8.1", "", {}, "sha512-7z9x1flFYfZBz+LfDkXNfm5UIhZJ/97ASaV8Q1wctoVkeqVfv+tLPsWebeMXBNw6XprvwxDE5wC5Ylqmr+iSrA=="],
@@ -520,6 +551,8 @@
520
551
 
521
552
  "solid-js": ["solid-js@2.0.1", "", { "dependencies": { "@solidjs/signals": "^2.0.1", "seroval": "^1.8.0", "seroval-plugins": "^1.8.0" } }, "sha512-5bBwRCblIZ672y2H2aB5KIOfeP/N+acx1YoCjNCWYFc4ZI/Y7y7n/6N1kei8AgWmcJJQ1m5SV90rs3V8CPAnYQ=="],
522
553
 
554
+ "style-to-object": ["style-to-object@1.0.14", "", { "dependencies": { "inline-style-parser": "0.2.7" } }, "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw=="],
555
+
523
556
  "tinypool": ["tinypool@2.2.0", "", {}, "sha512-jBrmx4lYmaC9k/mgPbylxs7kBUxHtD8256up+HjLaDFfXScKJQyil+SWXSvhAtT7XHo+yTVlpB81PGmHP8oLSQ=="],
524
557
 
525
558
  "tslib": ["tslib@2.9.1", "", {}, "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA=="],
@@ -530,6 +563,8 @@
530
563
 
531
564
  "undici-types": ["undici-types@8.9.0", "", {}, "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg=="],
532
565
 
566
+ "validate-html-nesting": ["validate-html-nesting@1.2.4", "", {}, "sha512-doQi7e8EJ2OWneSG1aZpJluS6A49aZM0+EICXWKm1i6WvqTLmq0tpUcImc4KTWG50mORO0C4YDBtOCSYvElftw=="],
567
+
533
568
  "@rolldown/binding-wasm32-wasi/@emnapi/core": ["@emnapi/core@2.0.0-beta.2", "", { "dependencies": { "@emnapi/wasi-threads": "2.2.0", "tslib": "^2.4.0" } }, "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A=="],
534
569
 
535
570
  "@rolldown/binding-wasm32-wasi/@emnapi/runtime": ["@emnapi/runtime@2.0.0-beta.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw=="],