An open-source, self-hosted system for apps built with web technologies.
Release System 0.1.73
zohayrslileh92e5e9bd0a00
diff --git a/bun.lock b/bun.lockindex a7da934..051a11c 100644--- a/bun.lock+++ b/bun.lock@@ -8,7 +8,7 @@"@fontsource/roboto": "^5.3.0","@hono/node-server": "^2.1.1","@phreshos/core": "^0.1.52",- "@phreshos/react-ui": "^0.1.25",+ "@phreshos/react-ui": "^0.1.26","@the-link/core": "^0.3.0","@the-link/http": "^0.1.1","@the-link/ipc": "^0.2.1",@@ -246,7 +246,7 @@"@phreshos/core": ["@phreshos/[email protected]", "", {}, "sha512-FXndIP8YMYdRqSD2itQ766XjXf/9XmMt2sjegftS/tOmzGx66Dt9AfW4DdGYtSaDDRrmFm02ljH6TN7dqCBOaA=="],- "@phreshos/react-ui": ["@phreshos/[email protected]", "", { "dependencies": { "@base-ui/react": "^1.7.0", "@phreshos/core": "^0.1.52", "colorjs.io": "^0.7.1", "motion": "^13.2.0", "react-aria-components": "^1.20.0" }, "peerDependencies": { "react": "^19.2.0", "react-dom": "^19.2.0" } }, "sha512-OelKCOXi4f4txBNhrP/V+KttWrIRBCtomlyRrlPZCpO7UezeJUTXw5BnowfaJp+O1enDM52xx9KxNVbqvzG55A=="],+ "@phreshos/react-ui": ["@phreshos/[email protected]", "", { "dependencies": { "@base-ui/react": "^1.7.0", "@phreshos/core": "^0.1.52", "colorjs.io": "^0.7.1", "motion": "^13.2.0", "react-aria-components": "^1.20.0" }, "peerDependencies": { "react": "^19.2.0", "react-dom": "^19.2.0" } }, "sha512-4/ecoY+16i1TiKAyQyHSAHgNcySeDMWsG+/ugpUrcAUYNebkmFKTfSkxUUft8yA4QPngkwMupWeeMFB1b77HKQ=="],"@react-types/shared": ["@react-types/[email protected]", "", { "peerDependencies": { "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, "sha512-AzsuD9OfxTOZMMvTRhlN3oHBwOmFN7tDh27LzqmHt4+uOgPhJT7ZM7/kVs/8/o0WxayMUIk3hBmCFRHv1FUoag=="],diff --git a/package.json b/package.jsonindex 0bcf451..319c6bd 100644--- a/package.json+++ b/package.json@@ -1,7 +1,7 @@{"name": "phreshos","displayName": "PhreshOS",- "version": "0.1.72",+ "version": "0.1.73","description": "The PhreshOS server, desktop, and authoritative system runtime.","type": "module","private": true,@@ -37,7 +37,7 @@"@fontsource/roboto": "^5.3.0","@hono/node-server": "^2.1.1","@phreshos/core": "^0.1.52",- "@phreshos/react-ui": "^0.1.25",+ "@phreshos/react-ui": "^0.1.26","@the-link/core": "^0.3.0","@the-link/http": "^0.1.1","@the-link/ipc": "^0.2.1",diff --git a/source/client/view/structure/structure.tsx b/source/client/view/structure/structure.tsxindex 3c06aa6..794fcd7 100644--- a/source/client/view/structure/structure.tsx+++ b/source/client/view/structure/structure.tsx@@ -2,7 +2,7 @@ import { ReactTunnel } from "@the-link/react"import { useProperty } from "@the-link/react"import { LinkManagerSnapshot } from "@server/core/link-manager/link-manager"import LinkManager from "@client/core/link-manager/link-manager"-import { AppearanceProvider, useThemedValue } from "@phreshos/react-ui"+import { UIProvider, useThemedValue } from "@phreshos/react-ui"import Loading from "../components/loading"import Alert from "../components/alert"import { ApplicationContext, LinkManagerContext } from "../contexts"@@ -123,7 +123,7 @@ function ConnectedDesktop({ linkManager }: { linkManager: LinkManager }) {return <LinkManagerContext.Provider value={linkManager}>- <AppearanceProvider appearance={appearance} preferences={preferences}>+ <UIProvider appearance={appearance} preferences={preferences}><ConnectedAppearance>@@ -131,7 +131,7 @@ function ConnectedDesktop({ linkManager }: { linkManager: LinkManager }) {</ConnectedAppearance>- </AppearanceProvider>+ </UIProvider></LinkManagerContext.Provider>}diff --git a/tests/desktop-replacements.test.tsx b/tests/desktop-replacements.test.tsxindex 3a3c3eb..cbd475e 100644--- a/tests/desktop-replacements.test.tsx+++ b/tests/desktop-replacements.test.tsx@@ -1,6 +1,6 @@import { expect, test, vi } from "vitest"import { renderToStaticMarkup } from "react-dom/server"-import { AppearanceProvider } from "@phreshos/react-ui"+import { UIProvider } from "@phreshos/react-ui"import type Process from "@client/core/link-manager/auth-manager/process-manager/process"import Workspace from "@client/view/structure/desktop/desktop"import type { ReactNode } from "react"@@ -45,7 +45,7 @@ vi.mock("@client/view/structure/desktop/windows/process-window", () => ({}))test("Desktop replaces its default wallpaper with the running Client and restores the fallback after stop", () => {- const render = () => renderToStaticMarkup(<AppearanceProvider preferences={{ theme: "light", animations: true }}><Workspace /></AppearanceProvider>)+ const render = () => renderToStaticMarkup(<UIProvider preferences={{ theme: "light", animations: true }}><Workspace /></UIProvider>)fixture.processes.clear()fixture.pane.mockClear()fixture.fallback.mockClear()@@ -78,7 +78,7 @@ test("Desktop replaces its default wallpaper with the running Client and restore})test("Desktop replaces the built-in Start Menu in its existing host and restores the fallback after stop", () => {- const render = () => renderToStaticMarkup(<AppearanceProvider preferences={{ theme: "light", animations: true }}><Workspace /></AppearanceProvider>)+ const render = () => renderToStaticMarkup(<UIProvider preferences={{ theme: "light", animations: true }}><Workspace /></UIProvider>)fixture.processes.clear()fixture.pane.mockClear()fixture.startMenu.mockClear()diff --git a/tests/panel.test.tsx b/tests/panel.test.tsxindex b5f62b7..dd5d7f0 100644--- a/tests/panel.test.tsx+++ b/tests/panel.test.tsx@@ -2,7 +2,7 @@ import assert from "node:assert/strict"import type { ReactNode } from "react"import { renderToStaticMarkup } from "react-dom/server"import { defaultAppearance } from "@phreshos/core"-import { AppearanceProvider } from "@phreshos/react-ui"+import { UIProvider } from "@phreshos/react-ui"import CredentialsForm from "@client/view/structure/authentication/credentials-form"import TaskbarSurface, { taskbarSurfaceClassName } from "@client/view/structure/desktop/taskbar/taskbar-surface"import Launcher from "@client/view/structure/desktop/taskbar/launcher/launcher"@@ -23,7 +23,7 @@ test("panel contract", async () => {function markup(children: ReactNode) {return renderToStaticMarkup(<ApplicationContext.Provider value={application}>- <AppearanceProvider appearance={defaultAppearance} preferences={{ theme: "light", animations: true }}>{children}</AppearanceProvider>+ <UIProvider appearance={defaultAppearance} preferences={{ theme: "light", animations: true }}>{children}</UIProvider></ApplicationContext.Provider>)}diff --git a/tests/start-menu-search.test.tsx b/tests/start-menu-search.test.tsxindex 4666591..f3f34ca 100644--- a/tests/start-menu-search.test.tsx+++ b/tests/start-menu-search.test.tsx@@ -1,6 +1,6 @@import assert from "node:assert/strict"import { renderToStaticMarkup } from "react-dom/server"-import { AppearanceProvider } from "@phreshos/react-ui"+import { UIProvider } from "@phreshos/react-ui"import { defaultAppearance } from "@phreshos/core"import Program from "@server/core/link-manager/auth-manager/program-manager/program"import SearchBar from "@client/view/structure/desktop/taskbar/launcher/search-bar"@@ -38,7 +38,7 @@ test("start menu search contract", async () => {assert(!matchesProcess(null, undefined, searchTerms("notes")))assert(!matchesProcess("daily draft", program, searchTerms("missing")))- const footer = renderToStaticMarkup(<AppearanceProvider appearance={defaultAppearance} preferences={{ theme: "light", animations: true }}><SearchBar query="notes" onChange={() => {}} /></AppearanceProvider>)+ const footer = renderToStaticMarkup(<UIProvider appearance={defaultAppearance} preferences={{ theme: "light", animations: true }}><SearchBar query="notes" onChange={() => {}} /></UIProvider>)assert.match(footer, /<div class="react-aria-TextField"/)assert.match(footer, /<input\b/)diff --git a/tests/wallpaper-source.test.tsx b/tests/wallpaper-source.test.tsxindex fb28a73..f576eba 100644--- a/tests/wallpaper-source.test.tsx+++ b/tests/wallpaper-source.test.tsx@@ -1,6 +1,6 @@import assert from "node:assert/strict"import { renderToStaticMarkup } from "react-dom/server"-import { AppearanceProvider } from "@phreshos/react-ui"+import { UIProvider } from "@phreshos/react-ui"import { defaultAppearance } from "@phreshos/core"import { ApplicationContext } from "@client/view/contexts"import Application from "@client/core/application"@@ -18,9 +18,9 @@ test("wallpaper source contract", () => {function render(file: string) {return renderToStaticMarkup(<ApplicationContext.Provider value={application}>- <AppearanceProvider appearance={defaultAppearance} preferences={{ theme: "dark", animations: true }}>+ <UIProvider appearance={defaultAppearance} preferences={{ theme: "dark", animations: true }}><WallpaperBackground file={file} />- </AppearanceProvider>+ </UIProvider></ApplicationContext.Provider>)}