artifactuse 0.1.29 → 0.2.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 CHANGED
@@ -4,6 +4,8 @@
4
4
 
5
5
  Artifactuse is a lightweight SDK that transforms AI-generated content into rich, interactive artifacts. Support for code previews, video editors, canvas/whiteboards, forms, social media previews, and more.
6
6
 
7
+ **[Live Demo](https://demo.artifactuse.com)**
8
+
7
9
  ## Features
8
10
 
9
11
  - 🎨 **Rich Content Detection** - Automatically detect and render code blocks, images, videos, maps, embeds, and more
@@ -441,7 +443,8 @@ By default, extracted code blocks render as compact artifact cards. With `inline
441
443
  provideArtifactuse({
442
444
  inlinePreview: {
443
445
  maxLines: 15,
444
- languages: ['smartdiff', 'html', 'javascript'],
446
+ languages: true, // all languages, or ['html', 'javascript', ...]
447
+ excludeLanguages: ['typescript', 'go'], // exclude from preview when languages: true
445
448
  minClickableLines: {
446
449
  lines: 10, // code < 10 lines is non-clickable
447
450
  ignoreLanguages: ['html', 'markdown'], // always clickable (panel renders preview)
@@ -641,7 +644,8 @@ provideArtifactuse({
641
644
  // Default: null (disabled — all extracted code shows as cards)
642
645
  inlinePreview: {
643
646
  maxLines: 15, // max lines before truncation
644
- languages: ['smartdiff', 'html', 'javascript', 'jsx'], // or true for all extracted languages
647
+ languages: true, // or ['smartdiff', 'html', 'javascript', 'jsx']
648
+ excludeLanguages: ['typescript', 'go'], // exclude from preview when languages: true
645
649
  minClickableLines: { // disable clicking for short code (optional)
646
650
  lines: 10, // code < N lines is non-clickable
647
651
  ignoreLanguages: ['html', 'markdown'], // always clickable (panel renders preview)
@@ -157,6 +157,8 @@ export namespace DEFAULT_PANELS {
157
157
  let whiteboard: string;
158
158
  let drawing: string;
159
159
  let json: string;
160
+ let csv: string;
161
+ let tsv: string;
160
162
  let svg: string;
161
163
  let diff: string;
162
164
  let patch: string;