@agent-native/core 0.146.1 → 0.146.3
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/corpus/README.md +1 -1
- package/corpus/templates/slides/actions/import-file.ts +144 -99
- package/corpus/templates/slides/app/components/editor/EditorToolbar.tsx +56 -23
- package/corpus/templates/slides/app/components/editor/SlideEditor.tsx +1 -0
- package/corpus/templates/slides/app/components/editor/SlideOverflowWarning.tsx +4 -1
- package/corpus/templates/slides/app/context/DeckContext.tsx +91 -25
- package/corpus/templates/slides/app/hooks/use-deck-role.ts +14 -4
- package/corpus/templates/slides/app/i18n/en-US.ts +2 -0
- package/corpus/templates/slides/app/pages/DeckEditor.tsx +19 -7
- package/corpus/templates/slides/app/pages/Index.tsx +11 -2
- package/corpus/templates/slides/app/root.tsx +5 -1
- package/corpus/templates/slides/package.json +1 -0
- package/corpus/templates/slides/server/handlers/import/html-converter.ts +9 -0
- package/corpus/templates/slides/server/handlers/import/pdf-fidelity-parser.ts +960 -0
- package/dist/file-upload/actions/upload-image.d.ts +1 -1
- package/dist/ingestion/pptx.d.ts +1 -0
- package/dist/ingestion/pptx.js +353 -28
- package/dist/notifications/routes.d.ts +1 -1
- package/dist/resources/handlers.d.ts +1 -1
- package/docs/content/docs-components.mdx +122 -11
- package/package.json +2 -2
|
@@ -191,6 +191,113 @@ Each card is a `###` heading (optionally linked) followed by the description. Ca
|
|
|
191
191
|
|
|
192
192
|
---
|
|
193
193
|
|
|
194
|
+
## Notice
|
|
195
|
+
|
|
196
|
+
<Notice tone="risk" title="Bold, not subtle">
|
|
197
|
+
|
|
198
|
+
Use `Notice` when a `Callout` would be too easy to skim past — something the reader must not miss, like a destructive action or a hard requirement. It shares the same five tones as `Callout` (`info`, `decision`, `risk`, `warning`, `success`) but renders as a filled card with an icon and optional title instead of a left-border note.
|
|
199
|
+
|
|
200
|
+
</Notice>
|
|
201
|
+
|
|
202
|
+
```mdx
|
|
203
|
+
<Notice tone="risk" title="Bold, not subtle">
|
|
204
|
+
|
|
205
|
+
Use `Notice` when a `Callout` would be too easy to skim past — something the reader must not miss, like a destructive action or a hard requirement.
|
|
206
|
+
|
|
207
|
+
</Notice>
|
|
208
|
+
```
|
|
209
|
+
|
|
210
|
+
`title` is optional — omit it for a shorter card with just the icon and body. Leave a blank line between the opening tag and the body, same as `Callout`. Reach for `Callout` first; use `Notice` only when a subtle left-border note isn't enough attention.
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## Banner
|
|
215
|
+
|
|
216
|
+
<Banner
|
|
217
|
+
tone="warning"
|
|
218
|
+
body="This page describes the v9 API. See [Migrating to v10](/docs/migrating-v10) for what changed."
|
|
219
|
+
/>
|
|
220
|
+
|
|
221
|
+
```mdx
|
|
222
|
+
<Banner
|
|
223
|
+
tone="warning"
|
|
224
|
+
body="This page describes the v9 API. See [Migrating to v10](/docs/migrating-v10) for what changed."
|
|
225
|
+
/>
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
`Banner` is self-closing — `body` is a flat attribute (kept short and single-purpose on purpose), not markdown children. Place it right under a page's title or a section heading — deprecated, beta, moved, version-scoped. For content the reader needs to actually read (not just notice), use `Notice` or `Callout` instead.
|
|
229
|
+
|
|
230
|
+
---
|
|
231
|
+
|
|
232
|
+
## Accordion
|
|
233
|
+
|
|
234
|
+
<Accordion>
|
|
235
|
+
|
|
236
|
+
### Do I need Toolkit to use Core?
|
|
237
|
+
|
|
238
|
+
No. Toolkit is optional shared UI — Core works standalone.
|
|
239
|
+
|
|
240
|
+
### Can I mix Templates and Toolkit?
|
|
241
|
+
|
|
242
|
+
Yes, most first-party templates already do.
|
|
243
|
+
|
|
244
|
+
### Where do I ask questions?
|
|
245
|
+
|
|
246
|
+
The `#agent-native` Discord channel, linked in the site header.
|
|
247
|
+
|
|
248
|
+
</Accordion>
|
|
249
|
+
|
|
250
|
+
```mdx
|
|
251
|
+
<Accordion>
|
|
252
|
+
|
|
253
|
+
### Do I need Toolkit to use Core?
|
|
254
|
+
|
|
255
|
+
No. Toolkit is optional shared UI — Core works standalone.
|
|
256
|
+
|
|
257
|
+
### Can I mix Templates and Toolkit?
|
|
258
|
+
|
|
259
|
+
Yes, most first-party templates already do.
|
|
260
|
+
|
|
261
|
+
</Accordion>
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
Same authoring shape as `Steps`/`Cards` — a `### Question` heading per item followed by its answer — but each item renders collapsed behind native `<details>`. Best for FAQ-style content where most readers only need one or two entries, not a full top-to-bottom read.
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
## Badge
|
|
269
|
+
|
|
270
|
+
<Badge label="Beta" color="orange" icon="rocket" />
|
|
271
|
+
|
|
272
|
+
<Badge label="Deprecated" color="red" />
|
|
273
|
+
|
|
274
|
+
<Badge label="v9.1+" color="blue" shape="pill" />
|
|
275
|
+
|
|
276
|
+
<Badge label="Server-only" color="gray" stroke />
|
|
277
|
+
|
|
278
|
+
```mdx
|
|
279
|
+
<Badge label="Beta" color="orange" icon="rocket" />
|
|
280
|
+
|
|
281
|
+
<Badge label="Deprecated" color="red" />
|
|
282
|
+
|
|
283
|
+
<Badge label="v9.1+" color="blue" shape="pill" />
|
|
284
|
+
|
|
285
|
+
<Badge label="Server-only" color="gray" stroke />
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
A small status chip for the top of a page or section. Self-closing, block-level only — **not** embeddable mid-sentence (the docs MDX pipeline only recognizes a custom component when its tag opens its own line, so `text <Badge label="x"/> more text` renders as literal text, not a chip). Place it on its own line, typically right after a heading. Leave a blank line between adjacent Badges (or any two block components) — without one, the scanner can't tell where one ends and the next begins and falls back to rendering literal text.
|
|
289
|
+
|
|
290
|
+
| Prop | Values |
|
|
291
|
+
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
292
|
+
| `color` | `gray` · `blue` · `green` · `yellow` · `orange` · `red` · `purple` · `white` · `surface` · `white-destructive` · `surface-destructive` |
|
|
293
|
+
| `size` | `xs` · `sm` · `md` · `lg` |
|
|
294
|
+
| `shape` | `rounded` (default) · `pill` |
|
|
295
|
+
| `icon` | one of a curated set — `circle-check`, `circle-info`, `alert-triangle`, `alert-octagon`, `ban`, `clock`, `star`, `flame`, `sparkles`, `lock`, `rocket` |
|
|
296
|
+
| `stroke` | `true` for an outlined, transparent-background variant |
|
|
297
|
+
| `disabled` | `true` to dim it for an inactive/unavailable state |
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
194
301
|
## Comparison
|
|
195
302
|
|
|
196
303
|
<Comparison>
|
|
@@ -478,14 +585,18 @@ Like `TabsBlock`, `Columns` is self-closing with a single JSON `columns` attribu
|
|
|
478
585
|
|
|
479
586
|
## When to use which component
|
|
480
587
|
|
|
481
|
-
| Situation
|
|
482
|
-
|
|
|
483
|
-
| Reader must not miss something
|
|
484
|
-
|
|
|
485
|
-
|
|
|
486
|
-
|
|
|
487
|
-
|
|
|
488
|
-
|
|
|
489
|
-
|
|
|
490
|
-
|
|
|
491
|
-
|
|
|
588
|
+
| Situation | Component |
|
|
589
|
+
| ----------------------------------------------------- | ------------------------------------ |
|
|
590
|
+
| Reader must not miss something, inline in prose | `Callout` (warning / info / success) |
|
|
591
|
+
| Reader must not miss something, standalone | `Notice` |
|
|
592
|
+
| Deprecated/beta/version notice at page or section top | `Banner` |
|
|
593
|
+
| Status or version tag at page or section top | `Badge` |
|
|
594
|
+
| Sequential procedure with titled steps | `Steps` |
|
|
595
|
+
| FAQ-style content, one answer at a time | `Accordion` |
|
|
596
|
+
| Navigation or feature overview grid | `Cards` |
|
|
597
|
+
| Before vs. after, old vs. new (prose) | `Comparison` |
|
|
598
|
+
| Same task in multiple tools or frameworks | `Tabs` |
|
|
599
|
+
| Side-by-side code (labeled columns) | `Columns` |
|
|
600
|
+
| Project directory structure | `FileTree` |
|
|
601
|
+
| Inline keyboard shortcut | `[[Key]]` |
|
|
602
|
+
| Architecture or flow diagram | Mermaid fence |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agent-native/core",
|
|
3
|
-
"version": "0.146.
|
|
3
|
+
"version": "0.146.3",
|
|
4
4
|
"description": "Framework for agent-native application development — where AI agents and UI share SQL state, actions, and context",
|
|
5
5
|
"homepage": "https://github.com/BuilderIO/agent-native#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
"yjs": "^13.6.31",
|
|
414
414
|
"zod": "^4.3.6",
|
|
415
415
|
"@agent-native/recap-cli": "0.5.3",
|
|
416
|
-
"@agent-native/toolkit": "^0.13.
|
|
416
|
+
"@agent-native/toolkit": "^0.13.5"
|
|
417
417
|
},
|
|
418
418
|
"devDependencies": {
|
|
419
419
|
"@ai-sdk/anthropic": "^3.0.71",
|