@rise-x/apps-sdk 0.16.1 → 0.19.0
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 +132 -6
- package/build/breadcrumb.d.ts +49 -0
- package/build/breadcrumb.js +58 -0
- package/build/connectors/agents.js +1 -18
- package/build/connectors/types.d.ts +1 -0
- package/build/index.d.ts +1 -0
- package/build/index.js +4 -1
- package/build/ui/classes.json +42 -42
- package/build/ui/components/ai.d.ts +69 -5
- package/build/ui/components/alert-dialog.d.ts +4 -4
- package/build/ui/components/app-frame.d.ts +47 -7
- package/build/ui/components/asset-pill.d.ts +8 -0
- package/build/ui/components/badge.d.ts +35 -2
- package/build/ui/components/button.d.ts +4 -4
- package/build/ui/components/calendar.d.ts +2 -2
- package/build/ui/components/chat-input.d.ts +4 -4
- package/build/ui/components/data-table.d.ts +128 -13
- package/build/ui/components/data-view.d.ts +94 -0
- package/build/ui/components/date-picker.d.ts +23 -1
- package/build/ui/components/file-upload.d.ts +9 -1
- package/build/ui/components/filter-bar.d.ts +89 -0
- package/build/ui/components/floating-panel.d.ts +53 -0
- package/build/ui/components/item.d.ts +1 -1
- package/build/ui/components/journey.d.ts +165 -0
- package/build/ui/components/nav.d.ts +52 -2
- package/build/ui/components/page-header.d.ts +8 -8
- package/build/ui/components/person.d.ts +14 -0
- package/build/ui/components/record-summary.d.ts +17 -0
- package/build/ui/components/search-dialog.d.ts +56 -0
- package/build/ui/components/statistic.d.ts +2 -1
- package/build/ui/components/table.d.ts +10 -3
- package/build/ui/components/toggle.d.ts +1 -1
- package/build/ui/demo.html +45927 -25454
- package/build/ui/index.d.ts +8 -0
- package/build/ui/standalone.js +984 -69
- package/build/ui/styles.css +1 -1
- package/build/ui/theme.css +2 -1
- package/package.json +4 -2
- package/template/README.md +3 -3
- package/template/src/App.tsx +4 -1
package/build/ui/theme.css
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
/* Shimmering TEXT for Diana's live activity — the label of AiActivity. Its
|
|
37
|
-
* two neighbours cover neither case: AiWorking is a
|
|
37
|
+
* two neighbours cover neither case: AiWorking is a quiet grey chip, and
|
|
38
38
|
* AiShimmer blanks its text to act as a value placeholder — here the words
|
|
39
39
|
* have to stay readable while they glow. Built from the design system's own
|
|
40
40
|
* --ai-grad / --ai-text tokens rather than new colours. */
|
|
@@ -237,6 +237,7 @@
|
|
|
237
237
|
--color-brand: var(--brand);
|
|
238
238
|
--color-brand-text: var(--brand-text);
|
|
239
239
|
--color-brand-tint: var(--brand-tint);
|
|
240
|
+
--color-brand-foreground: var(--brand-foreground);
|
|
240
241
|
|
|
241
242
|
/* ---- semantic status. Separate from brand on purpose: a purple-branded
|
|
242
243
|
* ecosystem must still get a green success state. ---- */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rise-x/apps-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "SDK for building federated apps on top of the Rise-X Diana shell. Includes a CLI for scaffolding new apps.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Rise-X",
|
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
"@tailwindcss/postcss": "^4.3.3",
|
|
116
116
|
"@tanstack/react-table": "^8.21.3",
|
|
117
117
|
"@types/leaflet": "^1.9.12",
|
|
118
|
+
"border-beam": "^1.4.1",
|
|
118
119
|
"class-variance-authority": "^0.7.1",
|
|
119
120
|
"clsx": "^2.1.1",
|
|
120
121
|
"cmdk": "^1.1.1",
|
|
@@ -126,7 +127,8 @@
|
|
|
126
127
|
"react-resizable-panels": "^4.12.2",
|
|
127
128
|
"recharts": "^3.8.0",
|
|
128
129
|
"sonner": "^2.0.7",
|
|
129
|
-
"tailwindcss": "^4.3.3"
|
|
130
|
+
"tailwindcss": "^4.3.3",
|
|
131
|
+
"thinking-orbs": "^0.3.2"
|
|
130
132
|
},
|
|
131
133
|
"devDependencies": {
|
|
132
134
|
"@fontsource-variable/inter": "^5.3.0",
|
package/template/README.md
CHANGED
|
@@ -169,11 +169,11 @@ dark-mode switching included.
|
|
|
169
169
|
|
|
170
170
|
`src/lifecycle.ts` exports optional `onInstall`, `onUpdate`, `onUninstall` hooks. The shell loads this module via MF and invokes them:
|
|
171
171
|
|
|
172
|
-
- **`onInstall`** — first time
|
|
173
|
-
- **`onUpdate(ctx, { from, to })`** —
|
|
172
|
+
- **`onInstall`** — the first time the user opens the app on this device, before its first render.
|
|
173
|
+
- **`onUpdate(ctx, { from, to })`** — the first open after `manifest.version` changes, before the first render.
|
|
174
174
|
- **`onUninstall`** — eagerly when removed via the admin UI, or lazily when the reconciler detects the app is gone from the registry (e.g. removed on another device).
|
|
175
175
|
|
|
176
|
-
Each hook is best-effort — errors are logged, 10s timeout per invocation. Hooks you don't export are skipped silently.
|
|
176
|
+
An app the user never opens on a device gets neither `onInstall` nor `onUpdate` there. Each hook is best-effort — errors are logged, 10s timeout per invocation. If `onInstall` or `onUpdate` fails, the next open runs it again. Hooks you don't export are skipped silently.
|
|
177
177
|
|
|
178
178
|
## Storage
|
|
179
179
|
|
package/template/src/App.tsx
CHANGED
|
@@ -85,7 +85,10 @@ function Shell() {
|
|
|
85
85
|
// region.
|
|
86
86
|
<AppFrame mobileNav="tabs">
|
|
87
87
|
{/* Left rail: a borderless list on the page background — NOT a Card. */}
|
|
88
|
-
|
|
88
|
+
{/* storageKey: the rail's width and collapsed state are remembered per
|
|
89
|
+
key, and every app runs on the host's origin — so each app names
|
|
90
|
+
its own, or collapsing the rail in one collapses it in all. */}
|
|
91
|
+
<AppRail storageKey="__APP_SLUG__">
|
|
89
92
|
<Nav>
|
|
90
93
|
<NavItem
|
|
91
94
|
current={screen === "home"}
|