@foblex/m-render 2.7.2 → 2.7.3
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/fesm2022/{foblex-m-render-cookie-popup.component-BZZxqp3j.mjs → foblex-m-render-cookie-popup.component-CqwZv5lc.mjs} +3 -2
- package/fesm2022/foblex-m-render-cookie-popup.component-CqwZv5lc.mjs.map +1 -0
- package/fesm2022/foblex-m-render.mjs +16 -442
- package/fesm2022/foblex-m-render.mjs.map +1 -1
- package/lib/common/index.d.ts +0 -1
- package/lib/documentation-page/components/markdown-container/f-markdown/components/f-code-group/f-code-view/utils/parse-language.d.ts +0 -1
- package/lib/documentation-page/components/markdown-container/f-markdown/index.d.ts +0 -1
- package/package.json +1 -1
- package/fesm2022/foblex-m-render-cookie-popup.component-BZZxqp3j.mjs.map +0 -1
- package/lib/common/utils/copy-to-clipboard.d.ts +0 -2
- package/lib/common/utils/document-element.d.ts +0 -2
- package/lib/common/utils/index.d.ts +0 -6
- package/lib/common/utils/local-storage.d.ts +0 -2
- package/lib/common/utils/location.d.ts +0 -2
- package/lib/common/utils/platform.d.ts +0 -2
- package/lib/common/utils/window.d.ts +0 -2
- package/lib/documentation-page/components/markdown-container/f-markdown/highlight/highlight.service.d.ts +0 -14
- package/lib/documentation-page/components/markdown-container/f-markdown/highlight/index.d.ts +0 -2
- package/lib/documentation-page/components/markdown-container/f-markdown/highlight/mark-code-focused-blocks.post-processor.d.ts +0 -10
- package/lib/documentation-page/components/markdown-container/f-markdown/highlight/theme.d.ts +0 -2
package/lib/common/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foblex/m-render",
|
|
3
|
-
"version": "2.7.
|
|
3
|
+
"version": "2.7.3",
|
|
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",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"foblex-m-render-cookie-popup.component-BZZxqp3j.mjs","sources":["../../../../libs/m-render/src/lib/analytics/cookie-popup/cookie-popup.component.ts","../../../../libs/m-render/src/lib/analytics/cookie-popup/cookie-popup.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, signal } from '@angular/core';\nimport { LOCAL_STORAGE } from '../../common';\nimport { GTagService } from '../g-tag.service';\n\nexport const F_ACCEPT_COOKIES_KEY = 'm-accepts-cookies';\n\n@Component({\n selector: 'cookie-popup',\n standalone: true,\n templateUrl: './cookie-popup.component.html',\n styleUrls: ['./cookie-popup.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class CookiePopupComponent {\n private readonly _localStorage = inject(LOCAL_STORAGE);\n private readonly _gtag = inject(GTagService, { optional: true });\n\n private readonly _consentValue = signal<string | null>(null);\n\n protected readonly showPopup = computed(() =>\n this._gtag !== null &&\n this._consentValue() !== 'true' &&\n this._consentValue() !== 'false',\n );\n\n constructor() {\n try {\n const value = this._localStorage?.getItem(F_ACCEPT_COOKIES_KEY);\n this._consentValue.set(value);\n } catch {\n this._consentValue.set(null);\n }\n }\n\n protected accept(): void {\n try {\n this._localStorage?.setItem(F_ACCEPT_COOKIES_KEY, 'true');\n } catch { /* empty */ }\n\n this._gtag?.updateConsent(true);\n this._consentValue.set('true');\n }\n}\n\n","@if (showPopup()) {\n <div class=\"docs-cookies-popup docs-invert-mode\">\n <p>This site uses cookies from Google to deliver its services and to analyze traffic.</p>\n\n <div>\n <a href=\"https://policies.google.com/technologies/cookies\" target=\"_blank\" rel=\"noopener\">\n <button class=\"f-button\" [attr.text]=\"'Learn more'\" aria-label=\"Learn More\">\n Learn more\n </button>\n </a>\n <button\n (click)=\"accept()\"\n class=\"f-button\"\n [attr.text]=\"'Ok, Got it'\"\n aria-label=\"Ok, Got it\">\n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A,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FDPa,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAPhC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,cAAc,EACZ,UAAA,EAAA,IAAI,EAGC,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,ooBAAA,EAAA,MAAA,EAAA,CAAA,+sBAAA,CAAA,EAAA;;;;;"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class HighlightService {
|
|
4
|
-
private readonly _isBrowser;
|
|
5
|
-
private readonly _window;
|
|
6
|
-
private readonly _highlighter$;
|
|
7
|
-
highlight(element: HTMLElement, lang: string, content: string): Observable<HTMLElement>;
|
|
8
|
-
private _highlightCodeBlock;
|
|
9
|
-
private _renderCode;
|
|
10
|
-
private _preprocessFocus;
|
|
11
|
-
private _postProcess;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HighlightService, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HighlightService>;
|
|
14
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
export declare class MarkCodeFocusedBlocksPostProcessor {
|
|
3
|
-
private _window;
|
|
4
|
-
constructor(_window: Window);
|
|
5
|
-
handle(element: HTMLElement): Observable<HTMLElement>;
|
|
6
|
-
private _applyOpacity;
|
|
7
|
-
private _getElementColor;
|
|
8
|
-
private _createRgbaString;
|
|
9
|
-
private _getRgbValues;
|
|
10
|
-
}
|