@@ -22,7 +22,6 @@ export interface StringPreviewContentBlobTogglerProps extends Omit<
2222 /**
2323 * Use only parts of `content` in the preview.
2424 * `firstMarkdownSection` uses the content until the first double line return.
25- * Currently overwritten by `firstNonEmptyLineOnly`.
2625 */
2726 useOnly ?: "firstNonEmptyLine" | "firstMarkdownSection" ;
2827 /**
@@ -38,12 +37,6 @@ export interface StringPreviewContentBlobTogglerProps extends Omit<
3837 * This allows to add non-string elements to both the full-view content and the pure string content.
3938 */
4039 noTogglerContentSuffix ?: React . JSX . Element ;
41- /**
42- * If only the first non-empty line should be shown in the preview.
43- * This will in addition also be shortened according to `previewMaxLength`.
44- * @deprecated (v26) use `useOnly="firstNonEmptyLine"` instead
45- */
46- firstNonEmptyLineOnly ?: boolean ;
4740}
4841
4942/** Version of the content toggler for text centric content. */
@@ -59,16 +52,10 @@ export function StringPreviewContentBlobToggler({
5952 renderPreviewAsMarkdown = false ,
6053 allowedHtmlElementsInPreview,
6154 noTogglerContentSuffix,
62- firstNonEmptyLineOnly,
6355 ...otherContentBlobTogglerProps
6456} : StringPreviewContentBlobTogglerProps ) {
65- // need to test `firstNonEmptyLineOnly` until property is removed
66- const useOnlyTest : StringPreviewContentBlobTogglerProps [ "useOnly" ] = firstNonEmptyLineOnly
67- ? "firstNonEmptyLine"
68- : useOnly ;
69-
7057 let previewString = content ;
71- switch ( useOnlyTest ) {
58+ switch ( useOnly ) {
7259 case "firstNonEmptyLine" :
7360 previewString = useOnlyPart ( content , regexFirstNonEmptyLine ) ;
7461 break ;
0 commit comments