@hydraharness/harness-client-ui-theme 0.0.0-stage → 0.1.1-rc.7

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/lib/index.js ADDED
@@ -0,0 +1,79 @@
1
+ import { settingsNamespace } from "@hydraharness/harness-settings";
2
+ import z from "@hydraharness/schemastery";
3
+ //#region lib/types/theme-settings.js
4
+ /** Theme preferences stored in the Host user-settings document. */
5
+ /** Built-in preferences accepted at the registry and settings boundaries. */
6
+ const THEME_PREFERENCES = [
7
+ "light",
8
+ "dark",
9
+ "system"
10
+ ];
11
+ /** Settings namespace owned by the theme plugin. */
12
+ const THEME_SETTINGS_NAMESPACE = "ui-theme";
13
+ /** Field carrying the selected built-in theme preference. */
14
+ const THEME_PREFERENCE_FIELD = "preference";
15
+ /** Default preference when the user-settings document has no override. */
16
+ const DEFAULT_PREFERENCE = "system";
17
+ /** Durable theme schema; also the wire envelope the browser scope validates against. */
18
+ const ThemeSettingsSchema = z.object({ [THEME_PREFERENCE_FIELD]: z.union([...THEME_PREFERENCES]).default(DEFAULT_PREFERENCE) });
19
+ //#endregion
20
+ //#region lib/types/boot-theme.js
21
+ /**
22
+ * Theme bootstrap row for the browser's pre-plugin interval. Each index
23
+ * render embeds the current durable built-in preference; the browser resolves
24
+ * only `system`, then writes the same DOM fields ui-layout's ThemePresenter
25
+ * owns after the client plugin tree activates.
26
+ */
27
+ /** Build the inline script body for one schema-validated built-in preference. */
28
+ function bootThemeScript(preference) {
29
+ return `(() => {
30
+ const preference = ${JSON.stringify(preference)}
31
+ const systemDark = preference === 'system'
32
+ && typeof matchMedia !== 'undefined'
33
+ && matchMedia('(prefers-color-scheme: dark)').matches
34
+ const dark = preference === 'dark' || systemDark
35
+ document.documentElement.style.colorScheme = dark ? 'dark' : 'light'
36
+ document.body.toggleAttribute('data-ds-dark-theme', dark)
37
+ })()`;
38
+ }
39
+ /**
40
+ * The theme bootstrap as an injection row: an inline script immediately after
41
+ * the opening body tag, before the shell mount and module script.
42
+ * @param preference - Current Host-backed built-in preference.
43
+ * @returns the body script row.
44
+ */
45
+ function bootThemeInjection(preference = DEFAULT_PREFERENCE) {
46
+ return {
47
+ kind: "script",
48
+ placement: "body",
49
+ text: bootThemeScript(preference)
50
+ };
51
+ }
52
+ //#endregion
53
+ //#region lib/types/index.js
54
+ /** Host registration for the browser theme preference and pre-plugin palette. */
55
+ const THEME_NAMESPACE = settingsNamespace(THEME_SETTINGS_NAMESPACE);
56
+ /** Read the registered preference or use the schema default without a settings provider. */
57
+ function readPreference(ctx) {
58
+ const settings = ctx.get("settings");
59
+ if (settings === void 0) return DEFAULT_PREFERENCE;
60
+ const section = settings.get(THEME_NAMESPACE);
61
+ if (section === void 0) return DEFAULT_PREFERENCE;
62
+ return section.preference;
63
+ }
64
+ /**
65
+ * Register the durable theme section when the optional settings service is
66
+ * composed, and answer every index injection collection with the current
67
+ * theme bootstrap row.
68
+ * @param ctx - Host context that may acquire the settings service.
69
+ */
70
+ function apply(ctx) {
71
+ ctx.inject(["settings"], (settingsCtx) => {
72
+ settingsCtx.settings.register(THEME_NAMESPACE, ThemeSettingsSchema);
73
+ });
74
+ ctx.on("webserver/index-inject", (table) => {
75
+ table.push(bootThemeInjection(readPreference(ctx)));
76
+ });
77
+ }
78
+ //#endregion
79
+ export { DEFAULT_PREFERENCE, THEME_PREFERENCES, THEME_PREFERENCE_FIELD, THEME_SETTINGS_NAMESPACE, apply };
@@ -0,0 +1,25 @@
1
+ //#region lib/types/invariant.js
2
+ /**
3
+ * Package-owned invariant companion for `@hydraharness/harness-client-ui-theme`.
4
+ * @module @hydraharness/harness-client-ui-theme/invariant
5
+ */
6
+ const PACKAGE_NAME = "@hydraharness/harness-client-ui-theme";
7
+ /** Cordis companion plugin name. */
8
+ const name = "client-ui-theme-invariant";
9
+ /** Service required before the companion can reserve package ownership. */
10
+ const inject = ["invariants"];
11
+ /**
12
+ * No runtime invariant: the settings scope validates and publishes the durable
13
+ * theme section, while the registry emits `theme/change` synchronously with
14
+ * its own mutations. Store/registry agreement is covered directly by this
15
+ * package's Host, scope, and service behavior specs.
16
+ */
17
+ const install = () => {};
18
+ /**
19
+ * Register this package's invariant companion.
20
+ * @param ctx - Cordis context carrying the invariant service.
21
+ * @returns the installed registration's disposer after setup succeeds.
22
+ */
23
+ const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
24
+ //#endregion
25
+ export { apply, inject, name };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Theme bootstrap row for the browser's pre-plugin interval. Each index
3
+ * render embeds the current durable built-in preference; the browser resolves
4
+ * only `system`, then writes the same DOM fields ui-layout's ThemePresenter
5
+ * owns after the client plugin tree activates.
6
+ */
7
+ import type { IndexInjection } from '@hydraharness/harness-host-webserver';
8
+ import { type ThemePreference } from './theme-settings.ts';
9
+ /**
10
+ * The theme bootstrap as an injection row: an inline script immediately after
11
+ * the opening body tag, before the shell mount and module script.
12
+ * @param preference - Current Host-backed built-in preference.
13
+ * @returns the body script row.
14
+ */
15
+ export declare function bootThemeInjection(preference?: ThemePreference): IndexInjection;
16
+ //# sourceMappingURL=boot-theme.d.ts.map
@@ -0,0 +1,17 @@
1
+ import type { PropsLocale, PropsRuntime, PropsStore } from '@hydraharness/harness-client-ui-slots';
2
+ import type { ThemePreference } from '../theme-settings.ts';
3
+ import type { createAppearanceRowStore } from './settings-store.ts';
4
+ /** Injected business face: the preference write (t rides the standard locale seat). */
5
+ export interface AppearanceRowInjected {
6
+ /** Switch the theme preference. */
7
+ setTheme: (id: ThemePreference) => void;
8
+ }
9
+ /** Full component props: runtime share + store share + locale seat + injected face. */
10
+ export type AppearanceRowComponentProps = PropsRuntime<'settings.general.item'> & PropsStore<ReturnType<typeof createAppearanceRowStore>> & PropsLocale<'settings.theme'> & AppearanceRowInjected;
11
+ /**
12
+ * Render the Appearance row.
13
+ * @param props - composed slot props.
14
+ * @returns the row element tree.
15
+ */
16
+ export declare function AppearanceRow({ t, setTheme, useStore }: AppearanceRowComponentProps): import("react").JSX.Element;
17
+ //# sourceMappingURL=AppearanceRow.d.ts.map
@@ -0,0 +1,191 @@
1
+ /**
2
+ * Browser theme registry over the `--dsw-*` token stylesheets. The service
3
+ * owns the live theme preference (light/dark/system), resolves `system` through
4
+ * `prefers-color-scheme`, and publishes immutable snapshots; it never touches
5
+ * the DOM — ui-layout's presenter consumes the resolved snapshot. The Host
6
+ * settings scope loads and stores the preference in the user-settings
7
+ * document. The plugin also registers the Appearance preference row into the
8
+ * settings General section — the theme feature owns its own settings surface.
9
+ */
10
+ import type { Context } from '@hydraharness/cordis';
11
+ import type { ClientContext, SettingsScope } from '@hydraharness/harness-client-runtime/client';
12
+ import { type ThemeKey } from './locales.ts';
13
+ import { type ThemePreference, type ThemeSettings } from '../theme-settings.ts';
14
+ export type { AppearanceRowComponentProps, AppearanceRowInjected } from './AppearanceRow.tsx';
15
+ export type { AppearanceRowState } from './settings-store.ts';
16
+ export type { ThemeKey } from './locales.ts';
17
+ export type { ThemePreference, ThemeSettings } from '../theme-settings.ts';
18
+ /** Namespace owning this feature's settings-row copy. */
19
+ export declare const SETTINGS_NS = "settings.theme";
20
+ declare module '@hydraharness/harness-client-ui-slots' {
21
+ interface LocaleNamespaceMap {
22
+ /** The Appearance settings row's copy. */
23
+ 'settings.theme': ThemeKey;
24
+ }
25
+ }
26
+ /** Theme token dictionary: --dsw-alias-* overrides keyed by variable name. */
27
+ export type ThemeTokens = Record<string, string>;
28
+ /**
29
+ * One override-layer token value: both palette modes are mandatory (repeat
30
+ * the same value when the token is scheme-invariant) so an override never
31
+ * goes illegible when the user switches to the other scheme.
32
+ */
33
+ export interface ThemeTokenModes {
34
+ /** Value applied while the light base palette is active. */
35
+ light: string;
36
+ /** Value applied while the dark base palette is active. */
37
+ dark: string;
38
+ }
39
+ /** Override-layer dictionary: token names to per-mode value pairs. */
40
+ export type ThemeTokenOverrides = Record<string, ThemeTokenModes>;
41
+ /** One selectable theme: id, dark/light semantics, and alias-token overrides. */
42
+ export interface ThemeDefinition {
43
+ /** Theme id (the setTheme argument for concrete themes). */
44
+ id: string;
45
+ /**
46
+ * Which base palette this theme builds on. The presenter switches
47
+ * `body[data-ds-dark-theme]` from this field — never from the id.
48
+ */
49
+ colorScheme: 'light' | 'dark';
50
+ /** Alias-layer overrides applied as inline CSS variables over the base palette. */
51
+ tokens: ThemeTokens;
52
+ }
53
+ /** Immutable theme state published on every change. */
54
+ export interface ThemeSnapshot {
55
+ /** The persisted preference (may be `system`). */
56
+ preference: ThemePreference;
57
+ /**
58
+ * The resolved active theme (`system` resolved via prefers-color-scheme)
59
+ * with override layers folded into its tokens (seq order, later layers win
60
+ * per-token; each value picked for the active color scheme).
61
+ */
62
+ active: ThemeDefinition;
63
+ /** Registered themes in registration order. */
64
+ themes: readonly ThemeDefinition[];
65
+ /** Monotonic change counter (registry or active changes). */
66
+ revision: number;
67
+ }
68
+ /** One theme token exposed to pre-definition Cordis inspection. */
69
+ export interface ThemeTokenInspection {
70
+ /** Token name accepted by {@link ThemeService.overrideTokens}. */
71
+ name: string;
72
+ /** Intended visual role. */
73
+ description: string;
74
+ /** CSS value category. */
75
+ valueType: string;
76
+ /** Whether override layers must supply both palette modes. */
77
+ requiresLightAndDark: boolean;
78
+ /** CSS custom property consumed by UI styles. */
79
+ cssVariable?: string;
80
+ }
81
+ declare module '@hydraharness/cordis' {
82
+ interface Context {
83
+ theme: ThemeRuntime;
84
+ }
85
+ interface Events {
86
+ /**
87
+ * Theme state changed (preference switched, registry updated, or the OS
88
+ * color scheme changed while the preference is `system`).
89
+ * @param snapshot - Current immutable theme snapshot.
90
+ * @mode emit
91
+ */
92
+ 'theme/change'(snapshot: ThemeSnapshot): void;
93
+ }
94
+ }
95
+ /**
96
+ * Theme registry and preference owner. `light`/`dark` are built in (the base
97
+ * stylesheets carry both palettes); third-party themes register alias-layer
98
+ * overrides. Reads go through {@link getTheme}; preference writes only
99
+ * through {@link setTheme}; continuous sync only through the `theme/change`
100
+ * event. {@link overrideTokens} stacks partial token layers over the active
101
+ * theme without touching the registry.
102
+ * The service holds the `prefers-color-scheme` media query (environment
103
+ * sensing, not presentation) and re-emits when the OS scheme flips while the
104
+ * preference is `system`.
105
+ */
106
+ export declare class ThemeRuntime {
107
+ private readonly ctx;
108
+ private readonly host;
109
+ private themes;
110
+ private preference;
111
+ private revision;
112
+ private snapshot;
113
+ private readonly media;
114
+ /** Override layers by source; seq (monotonic) is the stacking order. */
115
+ private readonly overrides;
116
+ private overrideSeq;
117
+ /**
118
+ * @param ctx - owning context (change events are emitted on it; the
119
+ * media-query and scope listeners are released through ctx.effect on dispose).
120
+ * @param host - durable preference scope owned by the same plugin.
121
+ */
122
+ constructor(ctx: Context, host: SettingsScope<ThemeSettings>);
123
+ /**
124
+ * Read the current immutable theme snapshot.
125
+ * @returns the current snapshot (stable reference until the next change).
126
+ */
127
+ getTheme(): ThemeSnapshot;
128
+ /**
129
+ * Export the current token directory without reading DOM or computed styles.
130
+ * @returns stable JSON-safe token descriptions, including registered and override-only names.
131
+ */
132
+ exportInspectTokens(): ThemeTokenInspection[];
133
+ /**
134
+ * Switch the theme preference — the only user preference write entry.
135
+ * Built-in preferences are written through the settings scope and every
136
+ * accepted value emits `theme/change`.
137
+ * @param id - a registered theme id or `system`; unknown ids throw.
138
+ */
139
+ setTheme(id: string): void;
140
+ /** Adopt the scope's accepted durable preference without writing it back. */
141
+ private adopt;
142
+ /**
143
+ * Register a theme. Duplicate id throws (single occupant per id; the
144
+ * built-in pair counts; `system` is a preference, not a registrable id).
145
+ * @param definition - theme id, colorScheme, and alias-token overrides.
146
+ * @returns disposer. Disposing the theme backing the active preference
147
+ * resets the preference to the default so the UI never keeps tokens of an
148
+ * unregistered theme.
149
+ */
150
+ register(definition: ThemeDefinition): () => void;
151
+ /**
152
+ * Stack a token override layer on top of the active theme — the token-level
153
+ * analogue of slot shading: the base theme stays untouched, layers compose
154
+ * in seq order with later layers winning per-token, and removing a layer
155
+ * restores whatever it covered. Calling again with the same source replaces
156
+ * that source's whole layer and restacks it on top (effect re-registration
157
+ * semantics). Emits `theme/change` with the recomposed snapshot.
158
+ * @param source - layer identity; one layer per source (dynamic packages
159
+ * pass their package id — the façade pins it, so it also names the layer's
160
+ * origin for inspection).
161
+ * @param tokens - token-name → `{ light, dark }` value pairs. Validated at
162
+ * runtime (model-authored callers reach this boundary with untyped JS);
163
+ * a bare string value throws a teaching error.
164
+ * @returns disposer removing exactly the layer this call created; a no-op
165
+ * once the source has re-overridden (the newer layer is not torn down).
166
+ */
167
+ overrideTokens(source: string, tokens: ThemeTokenOverrides): () => void;
168
+ private buildSnapshot;
169
+ /**
170
+ * Fold the override layers into the active definition: seq order, later
171
+ * layers win per-token, each value picked for the active color scheme (the
172
+ * presenter consumes the composed snapshot and needs no override awareness).
173
+ * Without layers the registered definition passes through by identity.
174
+ */
175
+ private composeActive;
176
+ private publish;
177
+ }
178
+ /**
179
+ * Required services: settings transport plus slots/locale for the Appearance
180
+ * row. `remote` carries the forwarded settings invalidation that
181
+ * `ctx.settingsScope.bind(spec)` subscribes to on this context.
182
+ */
183
+ export declare const inject: string[];
184
+ /**
185
+ * Client plugin body: provide the theme service and register the
186
+ * feature-owned Appearance preference row into the General section's item
187
+ * slot (a feature owns its settings surface).
188
+ * @param ctx - client cordis context.
189
+ */
190
+ export declare function apply(ctx: ClientContext): void;
191
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,11 @@
1
+ /** `settings.theme` namespace dictionaries (the Appearance row's copy). */
2
+ /** English dictionary (the key-set source of truth). */
3
+ export declare const en: {
4
+ 'appearance.title': string;
5
+ 'appearance.light': string;
6
+ 'appearance.dark': string;
7
+ 'appearance.system': string;
8
+ };
9
+ /** The settings.theme namespace key union. */
10
+ export type ThemeKey = keyof typeof en;
11
+ //# sourceMappingURL=locales.d.ts.map
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Appearance row slot store: a mirror of the theme service snapshot. The
3
+ * plugin's apply-world change listener is the only writer; the row component
4
+ * reads via props.useStore.
5
+ */
6
+ import { type EngineStoreHandle } from '@hydraharness/harness-client-runtime/client';
7
+ import type { ThemePreference } from '../theme-settings.ts';
8
+ /** Store state mirrored from the theme snapshot. */
9
+ export interface AppearanceRowState {
10
+ /** Persisted preference (selection state reads this, never the resolved active theme). */
11
+ preference: ThemePreference;
12
+ /** Service revision; -1 until first sync so revision 0 lands as a change. */
13
+ revision: number;
14
+ }
15
+ /** Declared action shape giving the exported factory a stable return type. */
16
+ type AppearanceRowActions = {
17
+ sync: (draft: AppearanceRowState, preference: ThemePreference, revision: number) => void;
18
+ };
19
+ /**
20
+ * Declares the Appearance row state and write surface.
21
+ * @returns the store handle.
22
+ */
23
+ export declare function createAppearanceRowStore(): EngineStoreHandle<AppearanceRowState, AppearanceRowActions>;
24
+ export {};
25
+ //# sourceMappingURL=settings-store.d.ts.map
@@ -0,0 +1,7 @@
1
+ import type { Context } from '@hydraharness/cordis';
2
+ /**
3
+ * Mount the global theme sheets for exactly the owning plugin lifetime.
4
+ * @param ctx - Owning plugin context.
5
+ */
6
+ export declare function installThemeStyles(ctx: Context): void;
7
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1,11 @@
1
+ /** Host registration for the browser theme preference and pre-plugin palette. */
2
+ import type { Context } from '@hydraharness/cordis';
3
+ export { DEFAULT_PREFERENCE, THEME_PREFERENCE_FIELD, THEME_PREFERENCES, THEME_SETTINGS_NAMESPACE, type ThemePreference, type ThemeSettings, } from './theme-settings.ts';
4
+ /**
5
+ * Register the durable theme section when the optional settings service is
6
+ * composed, and answer every index injection collection with the current
7
+ * theme bootstrap row.
8
+ * @param ctx - Host context that may acquire the settings service.
9
+ */
10
+ export declare function apply(ctx: Context): void;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Package-owned invariant companion for `@hydraharness/harness-client-ui-theme`.
3
+ * @module @hydraharness/harness-client-ui-theme/invariant
4
+ */
5
+ import type { Context } from '@hydraharness/cordis';
6
+ /** Cordis companion plugin name. */
7
+ export declare const name = "client-ui-theme-invariant";
8
+ /** Service required before the companion can reserve package ownership. */
9
+ export declare const inject: string[];
10
+ /**
11
+ * Register this package's invariant companion.
12
+ * @param ctx - Cordis context carrying the invariant service.
13
+ * @returns the installed registration's disposer after setup succeeds.
14
+ */
15
+ export declare const apply: (ctx: Context) => Promise<() => void>;
16
+ //# sourceMappingURL=invariant.d.ts.map
@@ -0,0 +1,26 @@
1
+ /** Theme preferences stored in the Host user-settings document. */
2
+ import z from '@hydraharness/schemastery';
3
+ /** Built-in preferences accepted at the registry and settings boundaries. */
4
+ export declare const THEME_PREFERENCES: readonly ["light", "dark", "system"];
5
+ /** Settings namespace owned by the theme plugin. */
6
+ export declare const THEME_SETTINGS_NAMESPACE = "ui-theme";
7
+ /** Field carrying the selected built-in theme preference. */
8
+ export declare const THEME_PREFERENCE_FIELD = "preference";
9
+ /** Theme preference persisted by the product Appearance row. */
10
+ export type ThemePreference = typeof THEME_PREFERENCES[number];
11
+ /** Default preference when the user-settings document has no override. */
12
+ export declare const DEFAULT_PREFERENCE: ThemePreference;
13
+ /** Durable theme section shared by the Host schema and the browser scope. */
14
+ export interface ThemeSettings {
15
+ /** Selected built-in preference. */
16
+ preference: ThemePreference;
17
+ }
18
+ /** Durable theme schema; also the wire envelope the browser scope validates against. */
19
+ export declare const ThemeSettingsSchema: z<ThemeSettings>;
20
+ /**
21
+ * Narrow one wire or registry value to a persistable preference.
22
+ * @param value - value crossing the settings or registry boundary.
23
+ * @returns whether the value is a built-in preference.
24
+ */
25
+ export declare function isThemePreference(value: unknown): value is ThemePreference;
26
+ //# sourceMappingURL=theme-settings.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,91 @@
1
1
  {
2
2
  "name": "@hydraharness/harness-client-ui-theme",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "description": "Theme plugin: Host bootstrap for the pre-plugin palette; DOM-free ThemeRuntime for light/dark/system state; --dsw-* token styles and Appearance settings row",
4
+ "version": "0.1.1-rc.7",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/MaiHongPhong1902/Hydra-Harness.git",
11
+ "directory": "packages/client/ui-theme"
12
+ },
13
+ "type": "module",
14
+ "main": "lib/index.js",
15
+ "types": "lib/types/index.d.ts",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./lib/types/index.d.ts",
19
+ "default": "./lib/index.js"
20
+ },
21
+ "./invariant": {
22
+ "types": "./lib/types/invariant.d.ts",
23
+ "default": "./lib/invariant.js"
24
+ },
25
+ "./client": {
26
+ "types": "./lib/types/client/index.d.ts",
27
+ "default": "./lib/client.js"
28
+ },
29
+ "./src/*": "./src/*",
30
+ "./package.json": "./package.json"
31
+ },
32
+ "hydra": {
33
+ "plugin": {
34
+ "application": "Choose light, dark, or system appearance and apply a consistent palette throughout the app."
35
+ },
36
+ "client": {
37
+ "inject": [
38
+ "@hydraharness/harness-client-connection",
39
+ "@hydraharness/harness-client-runtime",
40
+ "@hydraharness/harness-client-locale",
41
+ "@hydraharness/harness-client-ui-settings",
42
+ "@hydraharness/harness-api-remotes"
43
+ ],
44
+ "platform": "web",
45
+ "immediately": true
46
+ }
47
+ },
48
+ "license": "MIT",
49
+ "peerDependencies": {
50
+ "@hydraharness/cordis": "^4.0.2",
51
+ "@hydraharness/harness-client-connection": "^0.1.1-rc.7",
52
+ "@hydraharness/harness-api-remotes": "^0.1.1-rc.7",
53
+ "@hydraharness/harness-client-locale": "^0.1.1-rc.7",
54
+ "@hydraharness/harness-client-runtime": "^0.1.1-rc.7",
55
+ "@hydraharness/harness-client-ui-settings": "^0.1.1-rc.7",
56
+ "@hydraharness/harness-host-webserver": "^0.1.1-rc.7",
57
+ "@hydraharness/harness-invariants": "^0.1.1-rc.7",
58
+ "@hydraharness/harness-settings": "^0.1.1-rc.7"
59
+ },
60
+ "devDependencies": {
61
+ "@types/react": "~18.3.1",
62
+ "react": "^18.2.0",
63
+ "@hydraharness/harness-api-remotes": "^0.1.1-rc.7",
64
+ "@hydraharness/cordis": "^4.0.2",
65
+ "@hydraharness/harness-client-connection": "^0.1.1-rc.7",
66
+ "@hydraharness/harness-client-locale": "^0.1.1-rc.7",
67
+ "@hydraharness/harness-client-runtime": "^0.1.1-rc.7",
68
+ "@hydraharness/harness-client-ui-primitives": "^0.1.1-rc.7",
69
+ "@hydraharness/harness-client-ui-settings": "^0.1.1-rc.7",
70
+ "@hydraharness/harness-invariants": "^0.1.1-rc.7",
71
+ "@hydraharness/harness-client-test-runtime": "^0.1.1-rc.7",
72
+ "@hydraharness/harness-host-webserver": "^0.1.1-rc.7",
73
+ "@hydraharness/harness-client-ui-slots": "^0.1.1-rc.7",
74
+ "@hydraharness/harness-settings": "^0.1.1-rc.7"
75
+ },
76
+ "files": [
77
+ "lib/index.js",
78
+ "lib/invariant.js",
79
+ "lib/client.js",
80
+ "lib/styles",
81
+ "lib/types/**/*.d.ts"
82
+ ],
83
+ "dependencies": {
84
+ "clsx": "^2.0.0",
85
+ "@hydraharness/schemastery": "^3.18.2"
86
+ },
87
+ "scripts": {
88
+ "bundle": "tsdown",
89
+ "watch": "tsdown --watch"
90
+ }
6
91
  }