@burdenoff/fe-libs 2026.719.6 → 2026.720.2
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/dist/node_modules/ccount/index.js +10 -0
- package/dist/node_modules/hast-util-sanitize/lib/index.js +161 -0
- package/dist/node_modules/hast-util-sanitize/lib/schema.js +74 -0
- package/dist/node_modules/longest-streak/index.js +9 -0
- package/dist/node_modules/markdown-table/index.js +59 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +61 -0
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +7 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +26 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +129 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +97 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +49 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +137 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +36 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +24 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +23 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +28 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +19 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +23 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +41 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +18 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +26 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +25 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-info.js +38 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +8 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +12 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +174 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +193 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +96 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +43 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +20 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +201 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +34 -0
- package/dist/node_modules/rehype-sanitize/lib/index.js +9 -0
- package/dist/node_modules/remark-gfm/lib/index.js +10 -0
- package/dist/shared/components/Markdown.d.ts +22 -0
- package/dist/shared/components/Markdown.d.ts.map +1 -0
- package/dist/shared/components/Markdown.js +38 -0
- package/dist/shared/components/assistantWidget/AssistantWidget.d.ts.map +1 -1
- package/dist/shared/components/assistantWidget/AssistantWidget.js +255 -204
- package/dist/shared/components/assistantWidget/types.d.ts +20 -0
- package/dist/shared/components/assistantWidget/types.d.ts.map +1 -1
- package/dist/shared/components/index.d.ts +2 -0
- package/dist/shared/components/index.d.ts.map +1 -1
- package/dist/shared/graphql/fetch.d.ts.map +1 -1
- package/dist/shared/pages/LegalPage.js +1 -1
- package/dist/shared-components.js +2 -1
- package/dist/shared.js +59 -58
- package/package.json +7 -1
- package/dist/shared/components/LegalPage.d.ts +0 -19
- package/dist/shared/components/LegalPage.d.ts.map +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region node_modules/micromark-extension-gfm-table/lib/edit-map.js
|
|
2
|
+
var e = class {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.map = [];
|
|
5
|
+
}
|
|
6
|
+
add(e, n, r) {
|
|
7
|
+
t(this, e, n, r);
|
|
8
|
+
}
|
|
9
|
+
consume(e) {
|
|
10
|
+
/* c8 ignore next 3 -- `resolve` is never called without tables, so without edits. */
|
|
11
|
+
if (this.map.sort(function(e, t) {
|
|
12
|
+
return e[0] - t[0];
|
|
13
|
+
}), this.map.length === 0) return;
|
|
14
|
+
let t = this.map.length, n = [];
|
|
15
|
+
for (; t > 0;) --t, n.push(e.slice(this.map[t][0] + this.map[t][1]), this.map[t][2]), e.length = this.map[t][0];
|
|
16
|
+
n.push(e.slice()), e.length = 0;
|
|
17
|
+
let r = n.pop();
|
|
18
|
+
for (; r;) {
|
|
19
|
+
for (let t of r) e.push(t);
|
|
20
|
+
r = n.pop();
|
|
21
|
+
}
|
|
22
|
+
this.map.length = 0;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
function t(e, t, n, r) {
|
|
26
|
+
let i = 0;
|
|
27
|
+
if (!(n === 0 && r.length === 0)) {
|
|
28
|
+
for (; i < e.map.length;) {
|
|
29
|
+
if (e.map[i][0] === t) {
|
|
30
|
+
e.map[i][1] += n, e.map[i][2].push(...r);
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
i += 1;
|
|
34
|
+
}
|
|
35
|
+
e.map.push([
|
|
36
|
+
t,
|
|
37
|
+
n,
|
|
38
|
+
r
|
|
39
|
+
]);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { e as EditMap };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region node_modules/micromark-extension-gfm-table/lib/infer.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = !1, r = [];
|
|
4
|
+
for (; t < e.length;) {
|
|
5
|
+
let i = e[t];
|
|
6
|
+
if (n) {
|
|
7
|
+
if (i[0] === "enter") i[1].type === "tableContent" && r.push(e[t + 1][1].type === "tableDelimiterMarker" ? "left" : "none");
|
|
8
|
+
else if (i[1].type === "tableContent") {
|
|
9
|
+
if (e[t - 1][1].type === "tableDelimiterMarker") {
|
|
10
|
+
let e = r.length - 1;
|
|
11
|
+
r[e] = r[e] === "left" ? "center" : "right";
|
|
12
|
+
}
|
|
13
|
+
} else if (i[1].type === "tableDelimiterRow") break;
|
|
14
|
+
} else i[0] === "enter" && i[1].type === "tableDelimiterRow" && (n = !0);
|
|
15
|
+
t += 1;
|
|
16
|
+
}
|
|
17
|
+
return r;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { e as gfmTableAlign };
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { markdownLineEnding as e, markdownLineEndingOrSpace as t, markdownSpace as n } from "../../micromark-util-character/index.js";
|
|
2
|
+
import { factorySpace as r } from "../../micromark-factory-space/index.js";
|
|
3
|
+
import { EditMap as i } from "./edit-map.js";
|
|
4
|
+
import { gfmTableAlign as a } from "./infer.js";
|
|
5
|
+
//#region node_modules/micromark-extension-gfm-table/lib/syntax.js
|
|
6
|
+
function o() {
|
|
7
|
+
return { flow: { null: {
|
|
8
|
+
name: "table",
|
|
9
|
+
tokenize: s,
|
|
10
|
+
resolveAll: c
|
|
11
|
+
} } };
|
|
12
|
+
}
|
|
13
|
+
function s(i, a, o) {
|
|
14
|
+
let s = this, c = 0, l = 0, u;
|
|
15
|
+
return d;
|
|
16
|
+
function d(e) {
|
|
17
|
+
let t = s.events.length - 1;
|
|
18
|
+
for (; t > -1;) {
|
|
19
|
+
let e = s.events[t][1].type;
|
|
20
|
+
if (e === "lineEnding" || e === "linePrefix") t--;
|
|
21
|
+
else break;
|
|
22
|
+
}
|
|
23
|
+
let n = t > -1 ? s.events[t][1].type : null, r = n === "tableHead" || n === "tableRow" ? E : f;
|
|
24
|
+
return r === E && s.parser.lazy[s.now().line] ? o(e) : r(e);
|
|
25
|
+
}
|
|
26
|
+
function f(e) {
|
|
27
|
+
return i.enter("tableHead"), i.enter("tableRow"), p(e);
|
|
28
|
+
}
|
|
29
|
+
function p(e) {
|
|
30
|
+
return e === 124 ? m(e) : (u = !0, l += 1, m(e));
|
|
31
|
+
}
|
|
32
|
+
function m(t) {
|
|
33
|
+
return t === null ? o(t) : e(t) ? l > 1 ? (l = 0, s.interrupt = !0, i.exit("tableRow"), i.enter("lineEnding"), i.consume(t), i.exit("lineEnding"), _) : o(t) : n(t) ? r(i, m, "whitespace")(t) : (l += 1, u && (u = !1, c += 1), t === 124 ? (i.enter("tableCellDivider"), i.consume(t), i.exit("tableCellDivider"), u = !0, m) : (i.enter("data"), h(t)));
|
|
34
|
+
}
|
|
35
|
+
function h(e) {
|
|
36
|
+
return e === null || e === 124 || t(e) ? (i.exit("data"), m(e)) : (i.consume(e), e === 92 ? g : h);
|
|
37
|
+
}
|
|
38
|
+
function g(e) {
|
|
39
|
+
return e === 92 || e === 124 ? (i.consume(e), h) : h(e);
|
|
40
|
+
}
|
|
41
|
+
function _(e) {
|
|
42
|
+
return s.interrupt = !1, s.parser.lazy[s.now().line] ? o(e) : (i.enter("tableDelimiterRow"), u = !1, n(e) ? r(i, v, "linePrefix", s.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(e) : v(e));
|
|
43
|
+
}
|
|
44
|
+
function v(e) {
|
|
45
|
+
return e === 45 || e === 58 ? b(e) : e === 124 ? (u = !0, i.enter("tableCellDivider"), i.consume(e), i.exit("tableCellDivider"), y) : T(e);
|
|
46
|
+
}
|
|
47
|
+
function y(e) {
|
|
48
|
+
return n(e) ? r(i, b, "whitespace")(e) : b(e);
|
|
49
|
+
}
|
|
50
|
+
function b(t) {
|
|
51
|
+
return t === 58 ? (l += 1, u = !0, i.enter("tableDelimiterMarker"), i.consume(t), i.exit("tableDelimiterMarker"), x) : t === 45 ? (l += 1, x(t)) : t === null || e(t) ? w(t) : T(t);
|
|
52
|
+
}
|
|
53
|
+
function x(e) {
|
|
54
|
+
return e === 45 ? (i.enter("tableDelimiterFiller"), S(e)) : T(e);
|
|
55
|
+
}
|
|
56
|
+
function S(e) {
|
|
57
|
+
return e === 45 ? (i.consume(e), S) : e === 58 ? (u = !0, i.exit("tableDelimiterFiller"), i.enter("tableDelimiterMarker"), i.consume(e), i.exit("tableDelimiterMarker"), C) : (i.exit("tableDelimiterFiller"), C(e));
|
|
58
|
+
}
|
|
59
|
+
function C(e) {
|
|
60
|
+
return n(e) ? r(i, w, "whitespace")(e) : w(e);
|
|
61
|
+
}
|
|
62
|
+
function w(t) {
|
|
63
|
+
return t === 124 ? v(t) : t === null || e(t) ? !u || c !== l ? T(t) : (i.exit("tableDelimiterRow"), i.exit("tableHead"), a(t)) : T(t);
|
|
64
|
+
}
|
|
65
|
+
function T(e) {
|
|
66
|
+
return o(e);
|
|
67
|
+
}
|
|
68
|
+
function E(e) {
|
|
69
|
+
return i.enter("tableRow"), D(e);
|
|
70
|
+
}
|
|
71
|
+
function D(t) {
|
|
72
|
+
return t === 124 ? (i.enter("tableCellDivider"), i.consume(t), i.exit("tableCellDivider"), D) : t === null || e(t) ? (i.exit("tableRow"), a(t)) : n(t) ? r(i, D, "whitespace")(t) : (i.enter("data"), O(t));
|
|
73
|
+
}
|
|
74
|
+
function O(e) {
|
|
75
|
+
return e === null || e === 124 || t(e) ? (i.exit("data"), D(e)) : (i.consume(e), e === 92 ? k : O);
|
|
76
|
+
}
|
|
77
|
+
function k(e) {
|
|
78
|
+
return e === 92 || e === 124 ? (i.consume(e), O) : O(e);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
function c(e, t) {
|
|
82
|
+
let n = -1, r = !0, o = 0, s = [
|
|
83
|
+
0,
|
|
84
|
+
0,
|
|
85
|
+
0,
|
|
86
|
+
0
|
|
87
|
+
], c = [
|
|
88
|
+
0,
|
|
89
|
+
0,
|
|
90
|
+
0,
|
|
91
|
+
0
|
|
92
|
+
], d = !1, f = 0, p, m, h, g = new i();
|
|
93
|
+
for (; ++n < e.length;) {
|
|
94
|
+
let i = e[n], a = i[1];
|
|
95
|
+
i[0] === "enter" ? a.type === "tableHead" ? (d = !1, f !== 0 && (u(g, t, f, p, m), m = void 0, f = 0), p = {
|
|
96
|
+
type: "table",
|
|
97
|
+
start: Object.assign({}, a.start),
|
|
98
|
+
end: Object.assign({}, a.end)
|
|
99
|
+
}, g.add(n, 0, [[
|
|
100
|
+
"enter",
|
|
101
|
+
p,
|
|
102
|
+
t
|
|
103
|
+
]])) : a.type === "tableRow" || a.type === "tableDelimiterRow" ? (r = !0, h = void 0, s = [
|
|
104
|
+
0,
|
|
105
|
+
0,
|
|
106
|
+
0,
|
|
107
|
+
0
|
|
108
|
+
], c = [
|
|
109
|
+
0,
|
|
110
|
+
n + 1,
|
|
111
|
+
0,
|
|
112
|
+
0
|
|
113
|
+
], d && (d = !1, m = {
|
|
114
|
+
type: "tableBody",
|
|
115
|
+
start: Object.assign({}, a.start),
|
|
116
|
+
end: Object.assign({}, a.end)
|
|
117
|
+
}, g.add(n, 0, [[
|
|
118
|
+
"enter",
|
|
119
|
+
m,
|
|
120
|
+
t
|
|
121
|
+
]])), o = a.type === "tableDelimiterRow" ? 2 : m ? 3 : 1) : o && (a.type === "data" || a.type === "tableDelimiterMarker" || a.type === "tableDelimiterFiller") ? (r = !1, c[2] === 0 && (s[1] !== 0 && (c[0] = c[1], h = l(g, t, s, o, void 0, h), s = [
|
|
122
|
+
0,
|
|
123
|
+
0,
|
|
124
|
+
0,
|
|
125
|
+
0
|
|
126
|
+
]), c[2] = n)) : a.type === "tableCellDivider" && (r ? r = !1 : (s[1] !== 0 && (c[0] = c[1], h = l(g, t, s, o, void 0, h)), s = c, c = [
|
|
127
|
+
s[1],
|
|
128
|
+
n,
|
|
129
|
+
0,
|
|
130
|
+
0
|
|
131
|
+
])) : a.type === "tableHead" ? (d = !0, f = n) : a.type === "tableRow" || a.type === "tableDelimiterRow" ? (f = n, s[1] === 0 ? c[1] !== 0 && (h = l(g, t, c, o, n, h)) : (c[0] = c[1], h = l(g, t, s, o, n, h)), o = 0) : o && (a.type === "data" || a.type === "tableDelimiterMarker" || a.type === "tableDelimiterFiller") && (c[3] = n);
|
|
132
|
+
}
|
|
133
|
+
for (f !== 0 && u(g, t, f, p, m), g.consume(t.events), n = -1; ++n < t.events.length;) {
|
|
134
|
+
let e = t.events[n];
|
|
135
|
+
e[0] === "enter" && e[1].type === "table" && (e[1]._align = a(t.events, n));
|
|
136
|
+
}
|
|
137
|
+
return e;
|
|
138
|
+
}
|
|
139
|
+
function l(e, t, n, r, i, a) {
|
|
140
|
+
let o = r === 1 ? "tableHeader" : r === 2 ? "tableDelimiter" : "tableData";
|
|
141
|
+
n[0] !== 0 && (a.end = Object.assign({}, d(t.events, n[0])), e.add(n[0], 0, [[
|
|
142
|
+
"exit",
|
|
143
|
+
a,
|
|
144
|
+
t
|
|
145
|
+
]]));
|
|
146
|
+
let s = d(t.events, n[1]);
|
|
147
|
+
if (a = {
|
|
148
|
+
type: o,
|
|
149
|
+
start: Object.assign({}, s),
|
|
150
|
+
end: Object.assign({}, s)
|
|
151
|
+
}, e.add(n[1], 0, [[
|
|
152
|
+
"enter",
|
|
153
|
+
a,
|
|
154
|
+
t
|
|
155
|
+
]]), n[2] !== 0) {
|
|
156
|
+
let i = d(t.events, n[2]), a = d(t.events, n[3]), o = {
|
|
157
|
+
type: "tableContent",
|
|
158
|
+
start: Object.assign({}, i),
|
|
159
|
+
end: Object.assign({}, a)
|
|
160
|
+
};
|
|
161
|
+
if (e.add(n[2], 0, [[
|
|
162
|
+
"enter",
|
|
163
|
+
o,
|
|
164
|
+
t
|
|
165
|
+
]]), r !== 2) {
|
|
166
|
+
let r = t.events[n[2]], i = t.events[n[3]];
|
|
167
|
+
if (r[1].end = Object.assign({}, i[1].end), r[1].type = "chunkText", r[1].contentType = "text", n[3] > n[2] + 1) {
|
|
168
|
+
let t = n[2] + 1, r = n[3] - n[2] - 1;
|
|
169
|
+
e.add(t, r, []);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
e.add(n[3] + 1, 0, [[
|
|
173
|
+
"exit",
|
|
174
|
+
o,
|
|
175
|
+
t
|
|
176
|
+
]]);
|
|
177
|
+
}
|
|
178
|
+
return i !== void 0 && (a.end = Object.assign({}, d(t.events, i)), e.add(i, 0, [[
|
|
179
|
+
"exit",
|
|
180
|
+
a,
|
|
181
|
+
t
|
|
182
|
+
]]), a = void 0), a;
|
|
183
|
+
}
|
|
184
|
+
function u(e, t, n, r, i) {
|
|
185
|
+
let a = [], o = d(t.events, n);
|
|
186
|
+
i && (i.end = Object.assign({}, o), a.push([
|
|
187
|
+
"exit",
|
|
188
|
+
i,
|
|
189
|
+
t
|
|
190
|
+
])), r.end = Object.assign({}, o), a.push([
|
|
191
|
+
"exit",
|
|
192
|
+
r,
|
|
193
|
+
t
|
|
194
|
+
]), e.add(n + 1, 0, a);
|
|
195
|
+
}
|
|
196
|
+
function d(e, t) {
|
|
197
|
+
let n = e[t], r = n[0] === "enter" ? "start" : "end";
|
|
198
|
+
return n[1][r];
|
|
199
|
+
}
|
|
200
|
+
//#endregion
|
|
201
|
+
export { o as gfmTable };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { markdownLineEnding as e, markdownLineEndingOrSpace as t, markdownSpace as n } from "../../micromark-util-character/index.js";
|
|
2
|
+
import { factorySpace as r } from "../../micromark-factory-space/index.js";
|
|
3
|
+
//#region node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js
|
|
4
|
+
var i = {
|
|
5
|
+
name: "tasklistCheck",
|
|
6
|
+
tokenize: o
|
|
7
|
+
};
|
|
8
|
+
function a() {
|
|
9
|
+
return { text: { 91: i } };
|
|
10
|
+
}
|
|
11
|
+
function o(r, i, a) {
|
|
12
|
+
let o = this;
|
|
13
|
+
return c;
|
|
14
|
+
function c(e) {
|
|
15
|
+
return o.previous !== null || !o._gfmTasklistFirstContentOfListItem ? a(e) : (r.enter("taskListCheck"), r.enter("taskListCheckMarker"), r.consume(e), r.exit("taskListCheckMarker"), l);
|
|
16
|
+
}
|
|
17
|
+
function l(e) {
|
|
18
|
+
return t(e) ? (r.enter("taskListCheckValueUnchecked"), r.consume(e), r.exit("taskListCheckValueUnchecked"), u) : e === 88 || e === 120 ? (r.enter("taskListCheckValueChecked"), r.consume(e), r.exit("taskListCheckValueChecked"), u) : a(e);
|
|
19
|
+
}
|
|
20
|
+
function u(e) {
|
|
21
|
+
return e === 93 ? (r.enter("taskListCheckMarker"), r.consume(e), r.exit("taskListCheckMarker"), r.exit("taskListCheck"), d) : a(e);
|
|
22
|
+
}
|
|
23
|
+
function d(t) {
|
|
24
|
+
return e(t) ? i(t) : n(t) ? r.check({ tokenize: s }, i, a)(t) : a(t);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
function s(e, t, n) {
|
|
28
|
+
return r(e, i, "whitespace");
|
|
29
|
+
function i(e) {
|
|
30
|
+
return e === null ? n(e) : t(e);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
//#endregion
|
|
34
|
+
export { a as gfmTaskListItem };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { gfmFromMarkdown as e, gfmToMarkdown as t } from "../../mdast-util-gfm/lib/index.js";
|
|
2
|
+
import { gfm as n } from "../../micromark-extension-gfm/index.js";
|
|
3
|
+
//#region node_modules/remark-gfm/lib/index.js
|
|
4
|
+
var r = {};
|
|
5
|
+
function i(i) {
|
|
6
|
+
let a = this, o = i || r, s = a.data(), c = s.micromarkExtensions ||= [], l = s.fromMarkdownExtensions ||= [], u = s.toMarkdownExtensions ||= [];
|
|
7
|
+
c.push(n(o)), l.push(e()), u.push(t(o));
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { i as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Components } from 'react-markdown';
|
|
3
|
+
export interface MarkdownProps {
|
|
4
|
+
/** Markdown source to render. */
|
|
5
|
+
children: string;
|
|
6
|
+
/** Additional classes for the wrapper element. */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** Render without a wrapping block element, suitable for inline content. */
|
|
9
|
+
inline?: boolean;
|
|
10
|
+
/** Optional react-markdown component overrides. */
|
|
11
|
+
components?: Components;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Shared markdown renderer.
|
|
15
|
+
*
|
|
16
|
+
* - Uses `react-markdown` for standards-compliant parsing.
|
|
17
|
+
* - Enables GitHub Flavored Markdown (tables, task lists, strikethrough, autolinks).
|
|
18
|
+
* - Sanitizes HTML via `rehype-sanitize` so raw markup in markdown is stripped.
|
|
19
|
+
* - External links open in a new tab with safe rel attributes.
|
|
20
|
+
*/
|
|
21
|
+
export declare function Markdown({ children, className, inline, components }: MarkdownProps): ReactNode;
|
|
22
|
+
//# sourceMappingURL=Markdown.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Markdown.d.ts","sourceRoot":"","sources":["../../../src/shared/components/Markdown.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,WAAW,aAAa;IAC5B,iCAAiC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,kDAAkD;IAClD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mDAAmD;IACnD,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB;AAmBD;;;;;;;GAOG;AACH,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,aAAa,GAAG,SAAS,CAiB9F"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Markdown as e } from "../../node_modules/react-markdown/lib/index.js";
|
|
2
|
+
import t from "../../node_modules/remark-gfm/lib/index.js";
|
|
3
|
+
import n from "../../node_modules/rehype-sanitize/lib/index.js";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region src/shared/components/Markdown.tsx
|
|
6
|
+
var i = { a: ({ href: e, children: t, ...n }) => {
|
|
7
|
+
let i = e?.startsWith("http://") || e?.startsWith("https://");
|
|
8
|
+
return /* @__PURE__ */ r("a", {
|
|
9
|
+
href: e,
|
|
10
|
+
...n,
|
|
11
|
+
...i ? {
|
|
12
|
+
target: "_blank",
|
|
13
|
+
rel: "noopener noreferrer"
|
|
14
|
+
} : { rel: "noopener noreferrer" },
|
|
15
|
+
children: t
|
|
16
|
+
});
|
|
17
|
+
} };
|
|
18
|
+
function a({ children: a, className: o, inline: s, components: c }) {
|
|
19
|
+
let l = /* @__PURE__ */ r(e, {
|
|
20
|
+
remarkPlugins: [t],
|
|
21
|
+
rehypePlugins: [n],
|
|
22
|
+
components: {
|
|
23
|
+
...i,
|
|
24
|
+
...c
|
|
25
|
+
},
|
|
26
|
+
...s ? {
|
|
27
|
+
disallowedElements: ["p"],
|
|
28
|
+
unwrapDisallowed: !0
|
|
29
|
+
} : {},
|
|
30
|
+
children: a
|
|
31
|
+
});
|
|
32
|
+
return r(s ? "span" : "div", {
|
|
33
|
+
className: o,
|
|
34
|
+
children: l
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { a as Markdown };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantWidget.d.ts","sourceRoot":"","sources":["../../../../src/shared/components/assistantWidget/AssistantWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAML,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AssistantWidget.d.ts","sourceRoot":"","sources":["../../../../src/shared/components/assistantWidget/AssistantWidget.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAML,KAAK,EAAE,EAER,MAAM,OAAO,CAAC;AAmBf,OAAO,KAAK,EAGV,kBAAkB,EAEnB,MAAM,SAAS,CAAC;AAEjB;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC,kDAAkD;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,SAAS,EAAE,kBAAkB,CAAC;IAC9B,iFAAiF;IACjF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B;;;OAGG;IACH,KAAK,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC9B,+EAA+E;IAC/E,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,2BAA2B;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kEAAkE;IAClE,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAChC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,4EAA4E;IAC5E,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,8EAA8E;AAC9E,eAAO,MAAM,6BAA6B,+BAA+B,CAAC;AA0D1E,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA+xBpD,CAAC"}
|