valtech-components 2.0.966 → 2.0.969
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/esm2022/lib/components/organisms/form/form.component.mjs +6 -1
- package/esm2022/lib/services/markdown-article/beautify-legal-article.mjs +118 -0
- package/esm2022/lib/version.mjs +2 -2
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/valtech-components.mjs +125 -2
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/services/markdown-article/beautify-legal-article.d.ts +14 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ArticleMetadata } from '../../components/organisms/article/types';
|
|
2
|
+
/**
|
|
3
|
+
* Post-processes the raw `ArticleMetadata` from `LegalContentService` /
|
|
4
|
+
* `parseMarkdownArticle` for better visual hierarchy in legal / markdown docs:
|
|
5
|
+
*
|
|
6
|
+
* - Renders inline `**bold**` markdown as `<strong>` HTML.
|
|
7
|
+
* - Groups the doc metadata line (`**Last updated:** … **Version:** …`)
|
|
8
|
+
* into a styled inline text block at the top.
|
|
9
|
+
* - Sets per-element spacing presets so paragraphs/sections breathe.
|
|
10
|
+
*
|
|
11
|
+
* Pure, side-effect-free — usable from any app or a Node script. Reusable for
|
|
12
|
+
* any markdown-driven article (legal, docs, blog), not only legal pages.
|
|
13
|
+
*/
|
|
14
|
+
export declare function beautifyLegalArticle(article: ArticleMetadata): ArticleMetadata;
|
package/lib/version.d.ts
CHANGED
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -300,6 +300,7 @@ export * from './lib/services/meta';
|
|
|
300
300
|
export * from './lib/services/markdown-article/markdown-article-parser';
|
|
301
301
|
export * from './lib/services/markdown-article/markdown-article-parser.service';
|
|
302
302
|
export * from './lib/services/markdown-article/legal-content.service';
|
|
303
|
+
export * from './lib/services/markdown-article/beautify-legal-article';
|
|
303
304
|
export * from './lib/services/legal-link/legal-link.service';
|
|
304
305
|
export * from './lib/services/firebase';
|
|
305
306
|
export * from './lib/services/auth';
|