@lukeashford/aurelius 2.15.1 → 2.16.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/llms.md CHANGED
@@ -101,7 +101,7 @@ Import from `@lukeashford/aurelius`:
101
101
  | Accordion | type, defaultValue, value, onValueChange, value, disabled |
102
102
  | Alert | variant (info, success, warning, error), title |
103
103
  | AttachmentPreview | attachments, onRemove, removable, maxVisible |
104
- | AudioCard | src, title, subtitle, playing, controls, volume, muted, loop, mediaClassName, contentClassName, playerProps |
104
+ | AudioCard | src, title, subtitle, playing, controls, volume, muted, loop, mediaClassName, contentClassName, playerProps, height |
105
105
  | Avatar | src, alt, name, size (xs, sm, md, lg, xl, 2xl), status (online, offline, busy) |
106
106
  | Badge | variant (default, gold, success, error, warning, info) |
107
107
  | BrandIcon | size (sm, md, lg), variant (solid, outline) |
@@ -122,12 +122,13 @@ Import from `@lukeashford/aurelius`:
122
122
  | InputGroup | children |
123
123
  | Label | required |
124
124
  | List | variant, ordered, leading, trailing, interactive, selected, disabled, primary, secondary |
125
- | MarkdownContent | content, sanitizeConfig, isStreaming, cursorClassName |
125
+ | MarkdownContent | content, isMarkdown, sanitizeConfig, isStreaming, cursorClassName |
126
126
  | Menu | children, open, onOpenChange, asChild, align, side, icon, destructive |
127
127
  | Message | variant (user, assistant), content, isStreaming, branchInfo, actions, hideActions |
128
128
  | Modal | isOpen, onClose, title, children, className |
129
129
  | Navbar | fixed, bordered, position, active, active |
130
130
  | Pagination | page, totalPages, onPageChange, siblingCount, showEdges |
131
+ | PdfCard | url, title, subtitle, height, mediaClassName, contentClassName |
131
132
  | Popover | children, trigger, position (top, bottom, left, right), align (start, center, end), open, onOpenChange, closeOnClickOutside |
132
133
  | Progress | value, max, size (sm, md, lg), variant (default, success, warning, error), showValue, formatValue, indeterminate |
133
134
  | Radio | label |
@@ -201,6 +202,8 @@ Import from `@lukeashford/aurelius`:
201
202
  - **error**: * Error message to display (when status is 'error')
202
203
 
203
204
  **MarkdownContent**
205
+ - **content**: * Content to display (can be Markdown or HTML)
206
+ - **isMarkdown**: * Whether the content should be treated as Markdown @default true
204
207
  - **isStreaming**: * When true, injects a streaming cursor at the end of the content
205
208
  - **cursorClassName**: * Additional classes for the streaming cursor
206
209
 
@@ -219,6 +222,16 @@ Import from `@lukeashford/aurelius`:
219
222
  - **actions**: * Actions configuration (shows action bar if provided)
220
223
  - **hideActions**: * Whether to hide actions (e.g., during streaming)
221
224
 
225
+ **PdfCard**
226
+ A card for displaying PDF documents with an embedded viewer.
227
+
228
+ - **url**: * URL of the PDF file
229
+ - **title**: * Title of the document
230
+ - **subtitle**: * Subtitle or document metadata
231
+ - **height**: * Height of the PDF viewer
232
+ - **mediaClassName**: * Optional class name for the media container
233
+ - **contentClassName**: * Optional class name for the content container
234
+
222
235
  **Popover**
223
236
  - **trigger**: The trigger element
224
237
  - **position**: Position relative to trigger
@@ -237,9 +250,24 @@ Follows standard screenplay formatting conventions:
237
250
  - Dialogue: indented from both sides
238
251
  - Transitions: uppercase, right-aligned
239
252
 
253
+ @example
254
+ ```tsx
255
+ <ScriptCard
256
+ title="The Arrival"
257
+ elements={[
258
+ { type: 'scene-heading', content: 'EXT. SPACE STATION - NIGHT' },
259
+ { type: 'action', content: 'A lone ship approaches the docking bay.' },
260
+ { type: 'character', content: 'PILOT' },
261
+ { type: 'dialogue', content: 'Requesting permission to land.' }
262
+ ]}
263
+ />
264
+ ```
265
+
266
+ - **ScriptElement.type**: * The type of script element (e.g., 'scene-heading', 'character', 'dialogue')
267
+ - **ScriptElement.content**: * The text content of the element
240
268
  - **title**: * Title of the script (shown at top)
241
269
  - **subtitle**: * Subtitle/metadata (e.g., "30-second spot • Directed by AI Creative")
242
- - **elements**: * Array of script elements in order
270
+ - **elements**: * Array of script elements in order. Available types: 'scene-heading', 'action', 'character', 'dialogue', 'parenthetical', 'transition', 'title', 'subtitle'
243
271
  - **maxHeight**: * Maximum height before scrolling (default: 16rem / 256px)
244
272
 
245
273
  **Stepper**
@@ -472,12 +500,12 @@ designed for event-driven architectures like SSE streams.
472
500
  const { artifacts, scheduleArtifact, showArtifact, removeArtifact } = useArtifacts()
473
501
 
474
502
  // When SSE operator.started event arrives
475
- scheduleArtifact({ id: operatorId, type: 'image' })
503
+ scheduleArtifact({ id: operatorId, type: 'IMAGE' })
476
504
 
477
505
  // When SSE artifact.created event arrives
478
506
  showArtifact(artifactId, {
479
- type: 'image',
480
- src: 'https://example.com/image.png',
507
+ type: 'IMAGE',
508
+ url: 'https://example.com/image.png',
481
509
  title: 'Generated Image',
482
510
  })
483
511
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukeashford/aurelius",
3
- "version": "2.15.1",
3
+ "version": "2.16.0",
4
4
  "description": "Design system for Aurelius applications — A cohesive visual language for creative technologists",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -37,7 +37,9 @@
37
37
  "prepublishOnly": "npm run build",
38
38
  "dev:demo": "npm --prefix demo run dev",
39
39
  "dev:all": "concurrently -k \"npm run dev\" \"npm run dev:demo\"",
40
- "test": "npm run build && npm --prefix demo run test && npm --prefix demo run test:e2e"
40
+ "test": "npm run build && npm --prefix demo run test && npm --prefix demo run test:e2e",
41
+ "test:all": "npm run lint && npm run test",
42
+ "testUpdate:all": "npm run lint && npm run build && npm --prefix demo run test:update && npm --prefix demo run test:e2e:update-snapshots"
41
43
  },
42
44
  "peerDependencies": {
43
45
  "@eslint/css": ">=0.9.0",
@@ -45,8 +47,8 @@
45
47
  "@typescript-eslint/parser": ">=8.0.0",
46
48
  "eslint": ">=9.0.0",
47
49
  "eslint-plugin-better-tailwindcss": ">=4.0.0-beta",
48
- "react": "^18.0.0 || ^19.0.0",
49
- "react-dom": "^18.0.0 || ^19.0.0",
50
+ "react": "^19.0.0",
51
+ "react-dom": "^19.0.0",
50
52
  "tailwind-csstree": ">=0.1.0",
51
53
  "tailwindcss": ">=4.0.0"
52
54
  },
@@ -86,6 +88,7 @@
86
88
  "@testing-library/user-event": "^14.5.2",
87
89
  "@types/dompurify": "^3.0.5",
88
90
  "@types/jest": "^29.5.14",
91
+ "@types/marked": "^5.0.2",
89
92
  "@types/node": "^20.0.0",
90
93
  "@types/react": "^19.2.7",
91
94
  "@types/react-dom": "^19.2.3",
@@ -128,6 +131,7 @@
128
131
  "clsx": "^2.1.1",
129
132
  "dompurify": "^3.3.1",
130
133
  "lucide-react": "^0.555.0",
134
+ "marked": "^15.0.12",
131
135
  "react-player": "^3.4.0",
132
136
  "tailwind-merge": "^3.4.0"
133
137
  }