@omegagrid/markdown 0.2.5

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.
@@ -0,0 +1,2 @@
1
+ export * from './markdownView';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./markdownView"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B"}
@@ -0,0 +1,23 @@
1
+ import { Container, Layout } from '@omegagrid/core';
2
+ import { LitElement } from 'lit';
3
+ import MarkdownIt from 'markdown-it';
4
+ export declare class MarkdownView extends LitElement implements Layout {
5
+ static md: MarkdownIt;
6
+ static styles: import("lit").CSSResult[];
7
+ content: string;
8
+ contentWidth: number;
9
+ padding: number;
10
+ scrollable: boolean;
11
+ markdownRoot: HTMLDivElement;
12
+ container: Container;
13
+ get theme(): string;
14
+ onStyleChange: () => void;
15
+ constructor();
16
+ initSyntaxHighlighting(): void;
17
+ updated(props: Map<string, unknown>): void;
18
+ connectedCallback(): void;
19
+ disconnectedCallback(): void;
20
+ render: () => import("lit-html").TemplateResult<1>;
21
+ layout(): void;
22
+ }
23
+ //# sourceMappingURL=markdownView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdownView.d.ts","sourceRoot":"","sources":["../../src/components/markdownView.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwB,MAAM,EAAY,MAAM,iBAAiB,CAAC;AACpF,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAEvC,OAAO,UAAU,MAAM,aAAa,CAAC;AAKrC,qBAEa,YAAa,SAAQ,UAAW,YAAW,MAAM;IAE7D,MAAM,CAAC,EAAE,EAAE,UAAU,CAAC;IAEtB,MAAM,CAAC,MAAM,4BAAW;IAGxB,OAAO,EAAE,MAAM,CAAC;IAGhB,YAAY,EAAE,MAAM,CAAC;IAGrB,OAAO,SAAM;IAGb,UAAU,UAAS;IAGnB,YAAY,EAAE,cAAc,CAAC;IAG7B,SAAS,EAAE,SAAS,CAAC;IAErB,IAAI,KAAK,WAAgD;IAEzD,aAAa,aAEZ;;IAOD,sBAAsB;IAkBtB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAOnC,iBAAiB;IAKjB,oBAAoB;IAIpB,MAAM,6CAqBJ;IAEF,MAAM;CAIN"}
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ var MarkdownView_1;
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.MarkdownView = void 0;
14
+ const core_1 = require("@omegagrid/core");
15
+ const lit_1 = require("lit");
16
+ const decorators_js_1 = require("lit/decorators.js");
17
+ const markdown_it_1 = __importDefault(require("markdown-it"));
18
+ const markdownView_style_1 = require("./markdownView.style");
19
+ const style_map_js_1 = require("lit/directives/style-map.js");
20
+ let MarkdownView = MarkdownView_1 = class MarkdownView extends lit_1.LitElement {
21
+ get theme() { return (0, core_1.getStyleManager)().currentThemeName; }
22
+ constructor() {
23
+ super();
24
+ this.padding = 10;
25
+ this.scrollable = false;
26
+ this.onStyleChange = () => {
27
+ //this.editor.updateOptions({theme: this.theme});
28
+ };
29
+ this.render = () => (0, lit_1.html) `
30
+ ${this.scrollable ? (0, lit_1.html) `
31
+ <og-container>
32
+ <div
33
+ slot="content"
34
+ id="markdown"
35
+ style="${(0, style_map_js_1.styleMap)({
36
+ width: this.contentWidth ? core_1.dom.numToPixels(this.contentWidth) : null,
37
+ padding: core_1.dom.numToPixels(this.padding)
38
+ })}">
39
+ </div>
40
+ </og-container>
41
+ ` : (0, lit_1.html) `
42
+ <div
43
+ id="markdown"
44
+ style="${(0, style_map_js_1.styleMap)({
45
+ width: this.contentWidth ? core_1.dom.numToPixels(this.contentWidth) : null,
46
+ padding: core_1.dom.numToPixels(this.padding)
47
+ })}">
48
+ </div>
49
+ `}
50
+ `;
51
+ MarkdownView_1.md = MarkdownView_1.md || new markdown_it_1.default({ html: true });
52
+ }
53
+ initSyntaxHighlighting() {
54
+ const codeBlocks = this.markdownRoot.querySelectorAll('pre code');
55
+ const re = new RegExp('^language-(.*)');
56
+ codeBlocks.forEach((block) => {
57
+ const m = block.className.match(re);
58
+ if (m && m[1]) {
59
+ const highlighter = core_1.dom.createElement('og-highlighter');
60
+ //highlighter.style.height = '300px';
61
+ highlighter.language = m[1];
62
+ highlighter.content = block.textContent;
63
+ highlighter.copy = true;
64
+ highlighter.scrollable = true;
65
+ block.innerHTML = '';
66
+ block.parentElement.parentElement.replaceChild(highlighter, block.parentElement);
67
+ }
68
+ });
69
+ }
70
+ updated(props) {
71
+ if (props.has('content')) {
72
+ this.markdownRoot.innerHTML = MarkdownView_1.md.render(this.content);
73
+ this.initSyntaxHighlighting();
74
+ }
75
+ }
76
+ connectedCallback() {
77
+ super.connectedCallback();
78
+ (0, core_1.getStyleManager)().addEventListener('change', this.onStyleChange);
79
+ }
80
+ disconnectedCallback() {
81
+ (0, core_1.getStyleManager)().removeEventListener('change', this.onStyleChange);
82
+ }
83
+ layout() {
84
+ }
85
+ };
86
+ exports.MarkdownView = MarkdownView;
87
+ MarkdownView.styles = [markdownView_style_1.style];
88
+ __decorate([
89
+ (0, decorators_js_1.property)({ type: String })
90
+ ], MarkdownView.prototype, "content", void 0);
91
+ __decorate([
92
+ (0, decorators_js_1.property)({ type: Number })
93
+ ], MarkdownView.prototype, "contentWidth", void 0);
94
+ __decorate([
95
+ (0, decorators_js_1.property)({ type: Number })
96
+ ], MarkdownView.prototype, "padding", void 0);
97
+ __decorate([
98
+ (0, decorators_js_1.property)({ type: Boolean })
99
+ ], MarkdownView.prototype, "scrollable", void 0);
100
+ __decorate([
101
+ (0, decorators_js_1.query)('#markdown')
102
+ ], MarkdownView.prototype, "markdownRoot", void 0);
103
+ __decorate([
104
+ (0, decorators_js_1.query)('og-container')
105
+ ], MarkdownView.prototype, "container", void 0);
106
+ exports.MarkdownView = MarkdownView = MarkdownView_1 = __decorate([
107
+ (0, decorators_js_1.customElement)('og-markdown'),
108
+ (0, core_1.stylable)({ vars: ['text-*', 'font-*', 'border-*'] })
109
+ ], MarkdownView);
110
+ //# sourceMappingURL=markdownView.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdown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C;IAED,oBAAoB;QACnB,IAAA,sBAAe,GAAE,CAAC,mBAAmB,CAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;IACrE,CAAC;IAyBD,MAAM;IAEN,CAAC;;AA9FW,oCAAY;AAIjB,mBAAM,GAAG,CAAC,0BAAK,CAAC,AAAV,CAAW;AAGxB;IADC,IAAA,wBAAQ,EAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;6CACT;AAGhB;IADC,IAAA,wBAAQ,EAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;kDACJ;AAGrB;IADC,IAAA,wBAAQ,EAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;6CACZ;AAGb;IADC,IAAA,wBAAQ,EAAC,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;gDACP;AAGnB;IADC,IAAA,qBAAK,EAAC,WAAW,CAAC;kDACU;AAG7B;IADC,IAAA,qBAAK,EAAC,cAAc,CAAC;+CACD;uBAtBT,YAAY;IAFxB,IAAA,6BAAa,EAAC,aAAa,CAAC;IAC5B,IAAA,eAAQ,EAAC,EAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,CAAC,EAAC,CAAC;GACtC,YAAY,CAgGxB"}
@@ -0,0 +1,2 @@
1
+ export declare const style: import("lit").CSSResult;
2
+ //# sourceMappingURL=markdownView.style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdownView.style.d.ts","sourceRoot":"","sources":["../../src/components/markdownView.style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,KAAK,yBA2CjB,CAAC"}
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.style = void 0;
4
+ const lit_1 = require("lit");
5
+ exports.style = (0, lit_1.css) `
6
+ * {
7
+ box-sizing: border-box;
8
+ }
9
+
10
+ :host {
11
+ display: block;
12
+ overflow: hidden;
13
+ user-select: text;
14
+ color: var(--text-color);
15
+ font-size: var(--font-size);
16
+ }
17
+
18
+ og-container {
19
+ height: 100%;
20
+ }
21
+
22
+ h1 {
23
+ font-size: 1.5em;
24
+ }
25
+
26
+ h2 {
27
+ font-size: 1.3em;
28
+ }
29
+
30
+ h3 {
31
+ font-size: 1.1em;
32
+ }
33
+
34
+ h4 {
35
+ font-size: 1em;
36
+ }
37
+
38
+ a {
39
+ color: #688DC8;
40
+ }
41
+
42
+ og-highlighter {
43
+ border: 1px solid var(--border-color);
44
+ }
45
+
46
+
47
+
48
+ `;
49
+ //# sourceMappingURL=markdownView.style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"markdownView.style.js","sourceRoot":"","sources":["../../src/components/markdownView.style.ts"],"names":[],"mappings":";;;AAAA,6BAA0B;AAEb,QAAA,KAAK,GAAG,IAAA,SAAG,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CvB,CAAC"}
@@ -0,0 +1,42 @@
1
+ declare const _default: {
2
+ LOCALE: string;
3
+ PREFIX: string;
4
+ DEFAULT_ACCENT_COLOR: string;
5
+ DEFAULT_ACCENT_COLOR_2: import("color")<string | number | ArrayLike<number> | import("color")<string | number | ArrayLike<number> | import("color")<string | number | ArrayLike<number> | import("color")<string | number | ArrayLike<number> | import("color")<string | number | ArrayLike<number> | import("color")<string | number | ArrayLike<number> | import("color")<string | number | ArrayLike<number> | import("color")<string | number | ArrayLike<number> | import("color")<string | number | ArrayLike<number> | import("color")<string | number | ArrayLike<number> | import("color")<string | number | ArrayLike<number> | import("color")<any> | {
6
+ [key: string]: any;
7
+ }> | {
8
+ [key: string]: any;
9
+ }> | {
10
+ [key: string]: any;
11
+ }> | {
12
+ [key: string]: any;
13
+ }> | {
14
+ [key: string]: any;
15
+ }> | {
16
+ [key: string]: any;
17
+ }> | {
18
+ [key: string]: any;
19
+ }> | {
20
+ [key: string]: any;
21
+ }> | {
22
+ [key: string]: any;
23
+ }> | {
24
+ [key: string]: any;
25
+ }> | {
26
+ [key: string]: any;
27
+ }>;
28
+ SIZER_SIZE: number;
29
+ SLIDER_SIZE: number;
30
+ SLIDER_MIN_LENGTH: number;
31
+ EXPANDER_SIZE: number;
32
+ LIST_ITEM_HEIGHT: number;
33
+ LIST_RENDERING_TRESHOLD: number;
34
+ LIST_AUTOSCROLL_TRESHOLD: number;
35
+ LIST_AUTOSCROLL_DELAY: number;
36
+ DEFAULT_TEXT_HIGHLIGHT_COLOR: string;
37
+ TOOLTIP_MARGIN: number;
38
+ MENU_ITEM_HEIGHT: number;
39
+ COLORPICKER_COLOR_SIZE: number;
40
+ };
41
+ export default _default;
42
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,wBAEE"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const core_1 = require("@omegagrid/core");
4
+ exports.default = {
5
+ ...core_1.constants
6
+ };
7
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;AAAA,0CAA6D;AAE7D,kBAAe;IACd,GAAG,gBAAa;CAChB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./components"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@omegagrid/markdown",
3
+ "version": "0.2.5",
4
+ "license": "UNLICENSED",
5
+ "description": "Markdown view webcomponent",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
8
+ "files": [
9
+ "./dist/**/*"
10
+ ],
11
+ "repository": {
12
+ "type": "git",
13
+ "url": "https://github.com/cechi/omegagrid.git"
14
+ },
15
+ "bugs": "https://github.com/cechi/omegagrid/issues",
16
+ "author": {
17
+ "name": "Petr Čechura",
18
+ "email": "p.cechura@gmail.com",
19
+ "url": "https://cechura.eu"
20
+ },
21
+ "scripts": {
22
+ "watch": "tsc --watch",
23
+ "build": "tsc",
24
+ "test": "jest --passWithNoTests",
25
+ "lint": "eslint **/src/**/*.ts",
26
+ "_prepack": "yarn build",
27
+ "_prepublish": "yarn test && yarn lint"
28
+ },
29
+ "dependencies": {
30
+ "@fortawesome/fontawesome-svg-core": "6.4.2",
31
+ "@lit/localize": "^0.12.1",
32
+ "@omegagrid/code": "^0.2.5",
33
+ "@omegagrid/core": "^0.2.5",
34
+ "@riovir/wc-fontawesome": "^0.1.9",
35
+ "lit": "^3.1.1",
36
+ "markdown-it": "^14.1.0",
37
+ "ts-debounce": "^4.0.0"
38
+ },
39
+ "devDependencies": {
40
+ "@types/jest": "^29.5.11",
41
+ "@types/markdown-it": "^13.0.7",
42
+ "@types/node": "^20.11.5",
43
+ "@typescript-eslint/eslint-plugin": "^6.19.0",
44
+ "@typescript-eslint/parser": "^6.19.0",
45
+ "eslint": "^8.56.0",
46
+ "jest": "^29.7.0",
47
+ "jest-environment-jsdom": "^29.7.0",
48
+ "ts-jest": "^29.1.1",
49
+ "ts-node": "^10.9.2",
50
+ "typescript": "5.3.2"
51
+ }
52
+ }