@elizaos/ui 2.0.3-beta.4 → 2.0.3-beta.6
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/app-navigate-view.d.ts.map +1 -1
- package/app-navigate-view.js +1 -1
- package/cloud/api-keys/ApiKeysView.d.ts +6 -3
- package/cloud/api-keys/ApiKeysView.d.ts.map +1 -1
- package/cloud/api-keys/ApiKeysView.js +21 -29
- package/cloud/api-keys/copy-api-key.d.ts +1 -8
- package/cloud/api-keys/copy-api-key.d.ts.map +1 -1
- package/cloud/api-keys/copy-api-key.js +1 -10
- package/cloud/api-keys/index.d.ts +1 -1
- package/cloud/api-keys/index.d.ts.map +1 -1
- package/cloud/api-keys/index.js +1 -1
- package/cloud/shell/CloudRouterShell.d.ts +12 -0
- package/cloud/shell/CloudRouterShell.d.ts.map +1 -1
- package/cloud/shell/CloudRouterShell.js +38 -2
- package/cloud-ui/components/data-list/api-keys-table.d.ts +1 -2
- package/cloud-ui/components/data-list/api-keys-table.d.ts.map +1 -1
- package/cloud-ui/components/data-list/api-keys-table.js +3 -9
- package/cloud-ui/components/docs/api-route-explorer-client.d.ts.map +1 -1
- package/cloud-ui/components/docs/api-route-explorer-client.js +2 -1
- package/cloud-ui/components/layout/dashboard-route-page.d.ts.map +1 -1
- package/cloud-ui/components/layout/dashboard-route-page.js +3 -1
- package/components/config-ui/config-field.js +1 -1
- package/components/pages/Springboard.d.ts.map +1 -1
- package/components/pages/Springboard.js +34 -45
- package/components/pages/SpringboardSurface.d.ts.map +1 -1
- package/components/pages/SpringboardSurface.js +116 -6
- package/components/shell/ContinuousChatOverlay.d.ts.map +1 -1
- package/components/shell/ContinuousChatOverlay.js +207 -146
- package/components/shell/HomeSpringboardSurface.d.ts.map +1 -1
- package/components/shell/HomeSpringboardSurface.js +31 -76
- package/components/shell/use-pull-gesture.d.ts +6 -0
- package/components/shell/use-pull-gesture.d.ts.map +1 -1
- package/components/shell/use-pull-gesture.js +66 -27
- package/components/shell/useShellController.d.ts.map +1 -1
- package/components/shell/useShellController.js +13 -3
- package/components/views/ViewTileImage.d.ts +8 -8
- package/components/views/ViewTileImage.d.ts.map +1 -1
- package/components/views/ViewTileImage.js +38 -9
- package/config/boot-config-store.js +1 -1
- package/hooks/useHorizontalPager.d.ts +33 -0
- package/hooks/useHorizontalPager.d.ts.map +1 -0
- package/hooks/useHorizontalPager.js +226 -0
- package/hooks/useLayoutShiftMonitor.d.ts +2 -0
- package/hooks/useLayoutShiftMonitor.d.ts.map +1 -1
- package/hooks/useLayoutShiftMonitor.js +23 -0
- package/hooks/view-catalog.d.ts +3 -4
- package/hooks/view-catalog.d.ts.map +1 -1
- package/hooks/view-catalog.js +4 -6
- package/package.json +10 -10
- package/state/startup-telemetry.d.ts +6 -0
- package/state/startup-telemetry.d.ts.map +1 -1
- package/state/startup-telemetry.js +23 -2
- package/styles/base.css +6 -6
- package/styles/brand-gold.css +6 -5
- package/testing/layout-stability.d.ts +11 -3
- package/testing/layout-stability.d.ts.map +1 -1
- package/testing/layout-stability.js +29 -4
- package/testing/run-animation-frames-immediately.d.ts +2 -0
- package/testing/run-animation-frames-immediately.d.ts.map +1 -0
- package/testing/run-animation-frames-immediately.js +8 -0
- package/themes/presets.js +14 -14
- package/utils/cloud-agent-base.d.ts.map +1 -1
- package/utils/cloud-agent-base.js +6 -0
- package/widgets/registry.d.ts.map +1 -1
- package/widgets/registry.js +7 -0
- package/components/pages/automation-conversations.d.ts +0 -16
- package/components/pages/automation-conversations.d.ts.map +0 -1
- package/components/pages/automation-conversations.js +0 -204
- package/components/pages/automations-missing-creds.d.ts +0 -25
- package/components/pages/automations-missing-creds.d.ts.map +0 -1
- package/components/pages/automations-missing-creds.js +0 -39
- package/components/settings/desktop-workspace-audit-config.d.ts +0 -3
- package/components/settings/desktop-workspace-audit-config.d.ts.map +0 -1
- package/components/settings/desktop-workspace-audit-config.js +0 -171
- package/components/shell/first-run-theme.d.ts +0 -6
- package/components/shell/first-run-theme.d.ts.map +0 -1
- package/components/shell/first-run-theme.js +0 -31
- package/genui/use-json-render-message.d.ts +0 -20
- package/genui/use-json-render-message.d.ts.map +0 -1
- package/genui/use-json-render-message.js +0 -38
- package/state/first-run-restart.d.ts +0 -8
- package/state/first-run-restart.d.ts.map +0 -1
- package/state/first-run-restart.js +0 -8
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { useJsonRenderMessage as officialUseJsonRenderMessage } from "@json-render/react";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
function toDataParts(parts) {
|
|
4
|
-
if (!parts)
|
|
5
|
-
return [];
|
|
6
|
-
return Array.from(parts);
|
|
7
|
-
}
|
|
8
|
-
export function useJsonRenderMessage(parts, _validationOptions) {
|
|
9
|
-
const dataParts = useMemo(() => toDataParts(parts), [parts]);
|
|
10
|
-
const officialResult = officialUseJsonRenderMessage(dataParts);
|
|
11
|
-
return useMemo(() => {
|
|
12
|
-
const { spec: officialSpec, text: officialText, hasSpec } = officialResult;
|
|
13
|
-
if (!hasSpec || !officialSpec) {
|
|
14
|
-
return { spec: null, hasSpec: false, text: officialText ?? "" };
|
|
15
|
-
}
|
|
16
|
-
const { root, elements, state } = officialSpec;
|
|
17
|
-
const components = Object.entries(elements).map(([id, el]) => {
|
|
18
|
-
const record = el;
|
|
19
|
-
const type = record.type;
|
|
20
|
-
const props = record.props;
|
|
21
|
-
const children = record.children;
|
|
22
|
-
return {
|
|
23
|
-
id,
|
|
24
|
-
component: type ?? "unknown",
|
|
25
|
-
...(children ? { children } : {}),
|
|
26
|
-
...(props ? props : {}),
|
|
27
|
-
};
|
|
28
|
-
});
|
|
29
|
-
const spec = {
|
|
30
|
-
version: "0.1",
|
|
31
|
-
root: root ?? "",
|
|
32
|
-
components,
|
|
33
|
-
data: state,
|
|
34
|
-
};
|
|
35
|
-
return { spec, hasSpec: true, text: officialText ?? "" };
|
|
36
|
-
}, [officialResult]);
|
|
37
|
-
}
|
|
38
|
-
export { officialUseJsonRenderMessage as useOfficialJsonRenderMessage };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { AgentStatus, ElizaClient } from "../api/index.js";
|
|
2
|
-
/**
|
|
3
|
-
* First-run can overlap a runtime restart already in flight on slower boots.
|
|
4
|
-
* Use the waitable restart path so "already restarting" is treated as
|
|
5
|
-
* recoverable rather than surfacing a setup failure.
|
|
6
|
-
*/
|
|
7
|
-
export declare function restartAgentAfterFirstRun(client: Pick<ElizaClient, "restartAndWait">, maxWaitMs?: number): Promise<AgentStatus>;
|
|
8
|
-
//# sourceMappingURL=first-run-restart.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"first-run-restart.d.ts","sourceRoot":"","sources":["../../../../../src/state/first-run-restart.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAEvD;;;;GAIG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,gBAAgB,CAAC,EAC3C,SAAS,SAAU,GAClB,OAAO,CAAC,WAAW,CAAC,CAEtB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* First-run can overlap a runtime restart already in flight on slower boots.
|
|
3
|
-
* Use the waitable restart path so "already restarting" is treated as
|
|
4
|
-
* recoverable rather than surfacing a setup failure.
|
|
5
|
-
*/
|
|
6
|
-
export async function restartAgentAfterFirstRun(client, maxWaitMs = 120_000) {
|
|
7
|
-
return client.restartAndWait(maxWaitMs);
|
|
8
|
-
}
|