@foblex/m-render 3.0.2 → 4.0.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/assets/styles/_alert.scss +9 -4
- package/assets/styles/_badge.scss +6 -5
- package/assets/styles/_button.scss +13 -4
- package/assets/styles/_code-group.scss +47 -0
- package/assets/styles/_code-highlight.scss +15 -34
- package/assets/styles/_code-view.scss +51 -33
- package/assets/styles/_doc-text.scss +27 -23
- package/assets/styles/_icons.scss +3 -3
- package/assets/styles/_preview-group.scss +9 -0
- package/assets/styles/_table.scss +32 -11
- package/assets/styles/_variables.scss +225 -140
- package/assets/styles/styles.scss +5 -0
- package/fesm2022/foblex-m-render.mjs +141 -38
- package/fesm2022/foblex-m-render.mjs.map +1 -1
- package/package.json +1 -1
- package/types/foblex-m-render.d.ts +26 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foblex/m-render",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "MRender is a static site generator designed for creating fast and user-friendly documentation sites based on Markdown files. MarkEngine supports extended Markdown syntax and can render Angular components directly from Markdown files.",
|
|
5
5
|
"author": "Siarhei Huzarevich",
|
|
6
6
|
"license": "MIT",
|
|
@@ -1022,15 +1022,26 @@ declare const DOCUMENTATION_ROUTES: Routes;
|
|
|
1022
1022
|
declare function provideHeader(...configuration: Partial<IHeaderConfiguration>[]): Partial<IHasHeaderConfiguration>;
|
|
1023
1023
|
interface IHeaderConfiguration {
|
|
1024
1024
|
search?: boolean;
|
|
1025
|
+
searchConfiguration?: IHeaderSearchConfiguration;
|
|
1025
1026
|
navigation?: IHeaderMenuLink[];
|
|
1026
1027
|
mediaLinks?: IMediaLink[];
|
|
1027
1028
|
}
|
|
1028
1029
|
interface IHasHeaderConfiguration {
|
|
1029
1030
|
header?: IHeaderConfiguration;
|
|
1030
1031
|
}
|
|
1032
|
+
interface IHeaderSearchConfiguration {
|
|
1033
|
+
appId: string;
|
|
1034
|
+
apiKey: string;
|
|
1035
|
+
indexName: string;
|
|
1036
|
+
placeholder?: string;
|
|
1037
|
+
insights?: boolean;
|
|
1038
|
+
searchParameters?: Record<string, unknown>;
|
|
1039
|
+
}
|
|
1031
1040
|
|
|
1032
1041
|
declare function provideHeaderSearch(search?: boolean): Partial<IHeaderConfiguration>;
|
|
1033
1042
|
|
|
1043
|
+
declare function provideHeaderSearchAlgolia(configuration: IHeaderSearchConfiguration): Partial<IHeaderConfiguration>;
|
|
1044
|
+
|
|
1034
1045
|
declare function provideHeaderMediaLinks(mediaLinks: IMediaLink[]): Partial<IHeaderConfiguration>;
|
|
1035
1046
|
|
|
1036
1047
|
declare function provideHeaderNavigation(navigation: IHeaderMenuLink[]): Partial<IHeaderConfiguration>;
|
|
@@ -1116,12 +1127,14 @@ interface ContainerData {
|
|
|
1116
1127
|
declare class CodeView implements OnInit {
|
|
1117
1128
|
private readonly _httpClient;
|
|
1118
1129
|
private readonly _destroyRef;
|
|
1119
|
-
private
|
|
1130
|
+
private _copyFeedbackTimeout;
|
|
1120
1131
|
readonly data: i0.InputSignal<ContainerData | undefined>;
|
|
1121
1132
|
protected readonly height: i0.Signal<string | undefined>;
|
|
1122
1133
|
protected readonly content: i0.WritableSignal<string>;
|
|
1123
1134
|
protected readonly visibleLanguage: i0.WritableSignal<string>;
|
|
1124
1135
|
protected readonly syntaxLanguage: i0.WritableSignal<string>;
|
|
1136
|
+
protected readonly copyButtonLabel: i0.WritableSignal<string>;
|
|
1137
|
+
constructor();
|
|
1125
1138
|
ngOnInit(): void;
|
|
1126
1139
|
private _updateLanguage;
|
|
1127
1140
|
private _updateNotExistingData;
|
|
@@ -1129,6 +1142,7 @@ declare class CodeView implements OnInit {
|
|
|
1129
1142
|
private _loadCodeByLink;
|
|
1130
1143
|
protected onCopyClick(): void;
|
|
1131
1144
|
private _copyContentToClipboard;
|
|
1145
|
+
private _setCopiedFeedback;
|
|
1132
1146
|
static ɵfac: i0.ɵɵFactoryDeclaration<CodeView, never>;
|
|
1133
1147
|
static ɵcmp: i0.ɵɵComponentDeclaration<CodeView, "code-view", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1134
1148
|
}
|
|
@@ -1315,9 +1329,16 @@ declare class FBrandLinkComponent {
|
|
|
1315
1329
|
static ɵcmp: i0.ɵɵComponentDeclaration<FBrandLinkComponent, "f-brand-link", never, { "title": { "alias": "title"; "required": true; "isSignal": true; }; "logo": { "alias": "logo"; "required": true; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "logoAlt": { "alias": "logoAlt"; "required": false; "isSignal": true; }; "href": { "alias": "href"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1316
1330
|
}
|
|
1317
1331
|
|
|
1318
|
-
declare class FSearchButtonComponent {
|
|
1332
|
+
declare class FSearchButtonComponent implements AfterViewInit, OnDestroy {
|
|
1333
|
+
readonly configuration: i0.InputSignal<IHeaderSearchConfiguration | undefined>;
|
|
1334
|
+
private readonly _isBrowser;
|
|
1335
|
+
private readonly _document;
|
|
1336
|
+
private readonly _containerRef;
|
|
1337
|
+
private _instance;
|
|
1338
|
+
ngAfterViewInit(): Promise<void>;
|
|
1339
|
+
ngOnDestroy(): void;
|
|
1319
1340
|
static ɵfac: i0.ɵɵFactoryDeclaration<FSearchButtonComponent, never>;
|
|
1320
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FSearchButtonComponent, "f-search-button", never, {}, {}, never, never, true, never>;
|
|
1341
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FSearchButtonComponent, "f-search-button", never, { "configuration": { "alias": "configuration"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1321
1342
|
}
|
|
1322
1343
|
|
|
1323
1344
|
declare class FCheckboxComponent {
|
|
@@ -1371,5 +1392,5 @@ declare class ThemeButtonComponent implements OnInit {
|
|
|
1371
1392
|
|
|
1372
1393
|
declare function provideTheme(): Provider[];
|
|
1373
1394
|
|
|
1374
|
-
export { AVAILABLE_LANGUAGES, ActivateTocByHash, ActivateTocByHashRequest, CalculateAbsoluteTopToContainer, CalculateAbsoluteTopToContainerRequest, CalculateHashFromScrollPosition, CalculateTableOfContent, CalculateTableOfContentRequest, CodeGroup, CodeView, DEFAULT_MARKDOWN_PAGE_LAYOUT_OPTIONS, DOCUMENTATION_CONFIGURATION, DOCUMENTATION_ROUTES, DOCUMENT_ELEMENT, DYNAMIC_COMPONENTS_MODULE_PROVIDERS, Documentation, DocumentationStore, DropdownMenu, DynamicComponentsStore, EMarkdownContainerType, EParsedContainerType, EXTERNAL_COMPONENT_PROVIDER, ExternalComponent, FBrandLinkComponent, FCheckboxComponent, FHomePageButtonsRowComponent, FHomePageFeaturesComponent, FHomePageFooterComponent, FHomePageHeaderComponent, FHomePageHeroComponent, FHomePageMembershipsComponent, FMetaService, FNavigationItemComponent, FRadioButtonComponent, FSearchButtonComponent, F_PREVIEW_NAVIGATION_PROVIDER, FooterNavigationButton, GTAG_CONFIG, GTagService, GetPreviousNextPageNavigationHandler, GetPreviousNextPageNavigationRequest, GetPreviousNextPageNavigationResponse, HEADER_CONFIGURATION_PROVIDER, HOME_PAGE_CONFIGURATION, HOME_ROUTES, HamburgerButton, HandleNavigationLinksHandler, HandleNavigationLinksRequest, HeaderComponent, HeaderMenuBase, Highlight, HighlightService, HomeRootComponent, HomeStore, IS_BROWSER_PLATFORM, InlineMenu, LOCAL_STORAGE, LOCATION, MEDIA_LINKS_PROVIDER, MExecution, MarkCodeFocusedBlocksPostProcessor, MarkdownFooter, MarkdownRenderer, MarkdownRouter, MarkdownService, MediaLinks, Mediatr, NavigationGroupComponent, NavigationPanelComponent, ParseAlerts, ParseAngularExampleWithCodeLinks, ParseGroupedCodeItems, ParsePreviewGroup, ParseShowcase, ParseSingleCodeItem, PopoverService, PreviewActionBar, PreviewCard, PreviewCardBase, PreviewGroupService, RenderDynamicComponent, RenderDynamicComponentRequest, RenderExternalComponent, RenderExternalComponentRequest, RenderInternalComponents, RenderInternalComponentsRequest, SCROLLABLE_CONTAINER, SHOWCASE_DATA, ScrollToElementInContainer, ScrollToElementInContainerRequest, ScrollableContainer, Showcase, ShowcaseItem, TABLE_OF_CONTENT_MODULE_PROVIDERS, TOGGLE_NAVIGATION_COMPONENT, TableOfContent, TableOfContentData, TableOfContentItemsComponent, ThemeButtonComponent, ThemeService, UNIVERSAL_THEME, WINDOW, calculateMarkdownUrl, coerceComponentHeight, copyToClipboard, defineLazyComponent, defineNavigationGroup, encodeDataAttr, extractComponent, getContent, getLanguageLoader, isClosingToken, isOpeningToken, parseComponentTag, parseFileLinkLine, parseIframeUrl, parseSingleBracketText, provide404Markdown, provideBackground, provideComponents, provideDirectory, provideDocumentation, provideFooterNavigation, provideGTag, provideHeader, provideHeaderMediaLinks, provideHeaderNavigation, provideHeaderSearch, provideHero, provideHomeButtons, provideHomeFeatures, provideHomeFooter, provideHomePage, provideImage, provideLanguage, provideLogo, provideMeta, provideNavigation, provideShowcase, provideTableOfContent, provideTheme, provideTitle, resolveHighlightLanguage };
|
|
1375
|
-
export type { ConsentState, GTagConfig, HighlightLanguage, IDocumentationConfiguration, IDocumentationFooterConfiguration, IDynamicComponentInstance, IDynamicComponentItem, IExampleViewData, IExecution, IHandler, IHasHeaderConfiguration, IHeaderConfiguration, IHeaderConfigurationStore, IHeaderMenuLink, IHomePageConfiguration, IHomePageFeature, IHomePageFooter, IHomePageHero, IHomePageLink, IHomePageMembership, ILanguageConfiguration, ILink, ILogoConfiguration, IMarkdownContainerData, IMarkdownFooterLink, IMarkdownFooterNavigation, IMarkdownFrontMatterData, IMarkdownFrontMatterParseResult, IMarkdownItToken, IMarkdownOriginData, IMarkdownPageLayoutOptions, IMediaLink, IMediaLinksProvider, IMetaData, INavigationGroup, INavigationItem, INavigationItemBadge, IParsedContainerData, IPreviewNavigationGroup, IPreviewNavigationService, IScrollableContainer, ISeoOverrides, IShowcaseItem, ITableOfContent, ITableOfContentItem, ITitleConfiguration, IToggleNavigationComponent };
|
|
1395
|
+
export { AVAILABLE_LANGUAGES, ActivateTocByHash, ActivateTocByHashRequest, CalculateAbsoluteTopToContainer, CalculateAbsoluteTopToContainerRequest, CalculateHashFromScrollPosition, CalculateTableOfContent, CalculateTableOfContentRequest, CodeGroup, CodeView, DEFAULT_MARKDOWN_PAGE_LAYOUT_OPTIONS, DOCUMENTATION_CONFIGURATION, DOCUMENTATION_ROUTES, DOCUMENT_ELEMENT, DYNAMIC_COMPONENTS_MODULE_PROVIDERS, Documentation, DocumentationStore, DropdownMenu, DynamicComponentsStore, EMarkdownContainerType, EParsedContainerType, EXTERNAL_COMPONENT_PROVIDER, ExternalComponent, FBrandLinkComponent, FCheckboxComponent, FHomePageButtonsRowComponent, FHomePageFeaturesComponent, FHomePageFooterComponent, FHomePageHeaderComponent, FHomePageHeroComponent, FHomePageMembershipsComponent, FMetaService, FNavigationItemComponent, FRadioButtonComponent, FSearchButtonComponent, F_PREVIEW_NAVIGATION_PROVIDER, FooterNavigationButton, GTAG_CONFIG, GTagService, GetPreviousNextPageNavigationHandler, GetPreviousNextPageNavigationRequest, GetPreviousNextPageNavigationResponse, HEADER_CONFIGURATION_PROVIDER, HOME_PAGE_CONFIGURATION, HOME_ROUTES, HamburgerButton, HandleNavigationLinksHandler, HandleNavigationLinksRequest, HeaderComponent, HeaderMenuBase, Highlight, HighlightService, HomeRootComponent, HomeStore, IS_BROWSER_PLATFORM, InlineMenu, LOCAL_STORAGE, LOCATION, MEDIA_LINKS_PROVIDER, MExecution, MarkCodeFocusedBlocksPostProcessor, MarkdownFooter, MarkdownRenderer, MarkdownRouter, MarkdownService, MediaLinks, Mediatr, NavigationGroupComponent, NavigationPanelComponent, ParseAlerts, ParseAngularExampleWithCodeLinks, ParseGroupedCodeItems, ParsePreviewGroup, ParseShowcase, ParseSingleCodeItem, PopoverService, PreviewActionBar, PreviewCard, PreviewCardBase, PreviewGroupService, RenderDynamicComponent, RenderDynamicComponentRequest, RenderExternalComponent, RenderExternalComponentRequest, RenderInternalComponents, RenderInternalComponentsRequest, SCROLLABLE_CONTAINER, SHOWCASE_DATA, ScrollToElementInContainer, ScrollToElementInContainerRequest, ScrollableContainer, Showcase, ShowcaseItem, TABLE_OF_CONTENT_MODULE_PROVIDERS, TOGGLE_NAVIGATION_COMPONENT, TableOfContent, TableOfContentData, TableOfContentItemsComponent, ThemeButtonComponent, ThemeService, UNIVERSAL_THEME, WINDOW, calculateMarkdownUrl, coerceComponentHeight, copyToClipboard, defineLazyComponent, defineNavigationGroup, encodeDataAttr, extractComponent, getContent, getLanguageLoader, isClosingToken, isOpeningToken, parseComponentTag, parseFileLinkLine, parseIframeUrl, parseSingleBracketText, provide404Markdown, provideBackground, provideComponents, provideDirectory, provideDocumentation, provideFooterNavigation, provideGTag, provideHeader, provideHeaderMediaLinks, provideHeaderNavigation, provideHeaderSearch, provideHeaderSearchAlgolia, provideHero, provideHomeButtons, provideHomeFeatures, provideHomeFooter, provideHomePage, provideImage, provideLanguage, provideLogo, provideMeta, provideNavigation, provideShowcase, provideTableOfContent, provideTheme, provideTitle, resolveHighlightLanguage };
|
|
1396
|
+
export type { ConsentState, GTagConfig, HighlightLanguage, IDocumentationConfiguration, IDocumentationFooterConfiguration, IDynamicComponentInstance, IDynamicComponentItem, IExampleViewData, IExecution, IHandler, IHasHeaderConfiguration, IHeaderConfiguration, IHeaderConfigurationStore, IHeaderMenuLink, IHeaderSearchConfiguration, IHomePageConfiguration, IHomePageFeature, IHomePageFooter, IHomePageHero, IHomePageLink, IHomePageMembership, ILanguageConfiguration, ILink, ILogoConfiguration, IMarkdownContainerData, IMarkdownFooterLink, IMarkdownFooterNavigation, IMarkdownFrontMatterData, IMarkdownFrontMatterParseResult, IMarkdownItToken, IMarkdownOriginData, IMarkdownPageLayoutOptions, IMediaLink, IMediaLinksProvider, IMetaData, INavigationGroup, INavigationItem, INavigationItemBadge, IParsedContainerData, IPreviewNavigationGroup, IPreviewNavigationService, IScrollableContainer, ISeoOverrides, IShowcaseItem, ITableOfContent, ITableOfContentItem, ITitleConfiguration, IToggleNavigationComponent };
|