artifactuse 0.1.29 → 0.1.30
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 +4 -2
- package/dist/{index-DogWZVep.js → index-BH35XKmt.js} +253 -253
- package/dist/index.js +1 -1
- package/dist/react/index.js +1 -1
- package/dist/svelte/index.js +71 -71
- package/dist/vue/index.js +1 -1
- package/dist/vue2/index.js +6 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -441,7 +441,8 @@ By default, extracted code blocks render as compact artifact cards. With `inline
|
|
|
441
441
|
provideArtifactuse({
|
|
442
442
|
inlinePreview: {
|
|
443
443
|
maxLines: 15,
|
|
444
|
-
languages:
|
|
444
|
+
languages: true, // all languages, or ['html', 'javascript', ...]
|
|
445
|
+
excludeLanguages: ['typescript', 'go'], // exclude from preview when languages: true
|
|
445
446
|
minClickableLines: {
|
|
446
447
|
lines: 10, // code < 10 lines is non-clickable
|
|
447
448
|
ignoreLanguages: ['html', 'markdown'], // always clickable (panel renders preview)
|
|
@@ -641,7 +642,8 @@ provideArtifactuse({
|
|
|
641
642
|
// Default: null (disabled — all extracted code shows as cards)
|
|
642
643
|
inlinePreview: {
|
|
643
644
|
maxLines: 15, // max lines before truncation
|
|
644
|
-
languages: ['smartdiff', 'html', 'javascript', 'jsx']
|
|
645
|
+
languages: true, // or ['smartdiff', 'html', 'javascript', 'jsx']
|
|
646
|
+
excludeLanguages: ['typescript', 'go'], // exclude from preview when languages: true
|
|
645
647
|
minClickableLines: { // disable clicking for short code (optional)
|
|
646
648
|
lines: 10, // code < N lines is non-clickable
|
|
647
649
|
ignoreLanguages: ['html', 'markdown'], // always clickable (panel renders preview)
|