bearminion 1.8.0 → 1.9.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.
Files changed (86) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/astro.js +5 -5
  3. package/dist/cli.js +761 -25
  4. package/dist/content.js +2 -2
  5. package/dist/hash-BeBymBO1.js +59 -0
  6. package/dist/index.js +4 -4
  7. package/dist/marks-DPBilumg.js +174 -0
  8. package/dist/marks.js +1 -174
  9. package/dist/{page-NOFVEqn1.js → page-X-WnOu7-.js} +1 -1
  10. package/dist/{preview--S1QUrMM.js → preview-B_88I5Jm.js} +1 -1
  11. package/dist/{reload-BPkPoQ-P.js → reload-Dkp3xC0l.js} +1 -1
  12. package/dist/rich-text-70hddxMC.js +403 -0
  13. package/dist/rich-text.js +1 -403
  14. package/dist/{sections-manifest-CU-xBjMi.js → sections-manifest-CO9QfJPG.js} +1 -1
  15. package/dist/{theme-DFjHjgFO.js → theme-Dv7_7B56.js} +2 -2
  16. package/dist/ui/mount.js +20 -7
  17. package/package.json +4 -1
  18. package/registry/default/files/src/components/atoms/Button.astro +64 -0
  19. package/registry/default/files/src/components/atoms/Emphasis.astro +24 -0
  20. package/registry/default/files/src/components/atoms/Image.astro +78 -0
  21. package/registry/default/files/src/components/atoms/Typography.astro +53 -0
  22. package/registry/default/files/src/components/atoms/button.ts +31 -0
  23. package/registry/default/files/src/components/atoms/image.ts +34 -0
  24. package/registry/default/files/src/components/atoms/options.ts +39 -0
  25. package/registry/default/files/src/components/atoms/typography.ts +64 -0
  26. package/registry/default/files/src/components/molecules/CommandLine.astro +109 -0
  27. package/registry/default/files/src/components/molecules/MediaFrame.astro +71 -0
  28. package/registry/default/files/src/components/molecules/Pill.astro +24 -0
  29. package/registry/default/files/src/components/molecules/SectionHeader.astro +63 -0
  30. package/registry/default/files/src/components/molecules/SectionShell.astro +33 -0
  31. package/registry/default/files/src/components/sections/contact/Contact.astro +231 -0
  32. package/registry/default/files/src/components/sections/contact/definition.ts +52 -0
  33. package/registry/default/files/src/components/sections/contact/form.ts +313 -0
  34. package/registry/default/files/src/components/sections/contact/wireframe.ts +15 -0
  35. package/registry/default/files/src/components/sections/cta/Cta.astro +206 -0
  36. package/registry/default/files/src/components/sections/cta/definition.ts +49 -0
  37. package/registry/default/files/src/components/sections/cta/wireframe.ts +9 -0
  38. package/registry/default/files/src/components/sections/faq/Faq.astro +136 -0
  39. package/registry/default/files/src/components/sections/faq/definition.ts +54 -0
  40. package/registry/default/files/src/components/sections/faq/wireframe.ts +19 -0
  41. package/registry/default/files/src/components/sections/features/Features.astro +146 -0
  42. package/registry/default/files/src/components/sections/features/definition.ts +54 -0
  43. package/registry/default/files/src/components/sections/features/wireframe.ts +19 -0
  44. package/registry/default/files/src/components/sections/gallery/Gallery.astro +128 -0
  45. package/registry/default/files/src/components/sections/gallery/definition.ts +59 -0
  46. package/registry/default/files/src/components/sections/gallery/lightbox.ts +159 -0
  47. package/registry/default/files/src/components/sections/gallery/wireframe.ts +12 -0
  48. package/registry/default/files/src/components/sections/hero/Hero.astro +185 -0
  49. package/registry/default/files/src/components/sections/hero/HeroBadge.astro +26 -0
  50. package/registry/default/files/src/components/sections/hero/definition.ts +74 -0
  51. package/registry/default/files/src/components/sections/hero/wireframe.ts +12 -0
  52. package/registry/default/files/src/components/sections/logo-strip/LogoStrip.astro +107 -0
  53. package/registry/default/files/src/components/sections/logo-strip/definition.ts +30 -0
  54. package/registry/default/files/src/components/sections/logo-strip/wireframe.ts +11 -0
  55. package/registry/default/files/src/components/sections/media/Media.astro +118 -0
  56. package/registry/default/files/src/components/sections/media/MediaPlayer.astro +176 -0
  57. package/registry/default/files/src/components/sections/media/definition.ts +77 -0
  58. package/registry/default/files/src/components/sections/media/source.ts +3 -0
  59. package/registry/default/files/src/components/sections/media/wireframe.ts +9 -0
  60. package/registry/default/files/src/components/sections/pricing/Pricing.astro +210 -0
  61. package/registry/default/files/src/components/sections/pricing/definition.ts +62 -0
  62. package/registry/default/files/src/components/sections/pricing/wireframe.ts +18 -0
  63. package/registry/default/files/src/components/sections/shared.ts +13 -0
  64. package/registry/default/files/src/components/sections/stats/Stats.astro +110 -0
  65. package/registry/default/files/src/components/sections/stats/definition.ts +41 -0
  66. package/registry/default/files/src/components/sections/stats/wireframe.ts +15 -0
  67. package/registry/default/files/src/components/sections/steps/Steps.astro +139 -0
  68. package/registry/default/files/src/components/sections/steps/definition.ts +62 -0
  69. package/registry/default/files/src/components/sections/steps/icons.ts +27 -0
  70. package/registry/default/files/src/components/sections/steps/wireframe.ts +16 -0
  71. package/registry/default/files/src/components/sections/testimonials/Testimonials.astro +172 -0
  72. package/registry/default/files/src/components/sections/testimonials/definition.ts +42 -0
  73. package/registry/default/files/src/components/sections/testimonials/wireframe.ts +21 -0
  74. package/registry/default/files/src/components/sections/text/Text.astro +43 -0
  75. package/registry/default/files/src/components/sections/text/definition.ts +36 -0
  76. package/registry/default/files/src/components/sections/text/wireframe.ts +12 -0
  77. package/registry/default/files/src/components/sections/text-image/TextImage.astro +107 -0
  78. package/registry/default/files/src/components/sections/text-image/definition.ts +39 -0
  79. package/registry/default/files/src/components/sections/text-image/wireframe.ts +12 -0
  80. package/registry/default/files/src/lib/assets.ts +13 -0
  81. package/registry/default/files/src/lib/cn.ts +6 -0
  82. package/registry/default/files/src/lib/contact-form.ts +97 -0
  83. package/registry/default/files/src/lib/hidden-text.ts +32 -0
  84. package/registry/default/files/src/lib/image-url.ts +38 -0
  85. package/registry/default/files/src/lib/link-attrs.ts +74 -0
  86. package/registry/default/registry.json +670 -0
@@ -0,0 +1,403 @@
1
+ //#region src/rich-text.ts
2
+ const HEADING_LINE = /^(#{2,3})[ \t]+(\S.*)$/;
3
+ const BLOCKED_PROTOCOL = /^(?:javascript|data|vbscript):/i;
4
+ function renderRichText(markdown, options = {}) {
5
+ const headings = options.headings === true;
6
+ const text = markdown.replace(/\r\n/g, "\n");
7
+ return (headings ? text.split("\n").map((line) => HEADING_LINE.test(line.trim()) ? `\n\n${line.trim()}\n\n` : line).join("\n") : text).split(/\n{2,}/).filter((block) => block.trim() !== "").map((block) => {
8
+ const heading = headings ? HEADING_LINE.exec(block.trim()) : null;
9
+ if (heading) {
10
+ const tag = heading[1]?.length === 2 ? "h2" : "h3";
11
+ return `<${tag}>${renderInline((heading[2] ?? "").trim())}</${tag}>`;
12
+ }
13
+ const html = renderBlock(block);
14
+ return isListHtml(html) ? html : `<p>${html}</p>`;
15
+ }).join("");
16
+ }
17
+ /**
18
+ * Pasted HTML, reduced to what a rich field can hold. The HTML is parsed (never inserted), read back as the
19
+ * markdown subset, and rendered again, so only the renderer's own tags survive: no attributes, handlers or
20
+ * elements from the clipboard reach the page. Headings and images are dropped. Browser only.
21
+ */
22
+ function sanitizeRichHtml(html, options = {}) {
23
+ return renderRichText(markdownFromHtml(html, options), options);
24
+ }
25
+ /**
26
+ * Drop markdown images from pasted plain text, and headings too unless the field allows them. Then a heading of any
27
+ * level becomes the nearest one the field has: `#` is `##`, and `####` and deeper are `###`.
28
+ */
29
+ function stripPlainRich(text, options = {}) {
30
+ const withoutImages = text.replace(/!\[[^\]]*\]\([^)\n]*\)/g, "");
31
+ if (options.headings !== true) return withoutImages.replace(/^#{1,6}[ \t]+.*$/gm, "");
32
+ return withoutImages.replace(/^#{4,6}([ \t]+)/gm, "###$1").replace(/^#([ \t]+)/gm, "##$1");
33
+ }
34
+ function renderBlock(block) {
35
+ const lines = block.split("\n");
36
+ const items = lines.map((line) => parseListItem(line.trim()));
37
+ const filled = lines.every((line) => line.trim() !== "");
38
+ if (filled && items.length > 0 && items.every((item) => item?.kind === "ul")) return `<ul>${items.map((item) => `<li>${renderInline(item?.text ?? "")}</li>`).join("")}</ul>`;
39
+ if (filled && items.length > 0 && items.every((item) => item?.kind === "ol")) return `<ol>${items.map((item) => `<li>${renderInline(item?.text ?? "")}</li>`).join("")}</ol>`;
40
+ return lines.map((line) => renderInline(line)).join("<br>");
41
+ }
42
+ function parseListItem(line) {
43
+ const bullet = /^[-*]\s+(.*)$/.exec(line);
44
+ if (bullet) return {
45
+ kind: "ul",
46
+ text: bullet[1] ?? ""
47
+ };
48
+ const ordered = /^\d+\.\s+(.*)$/.exec(line);
49
+ if (ordered) return {
50
+ kind: "ol",
51
+ text: ordered[1] ?? ""
52
+ };
53
+ return null;
54
+ }
55
+ function isListHtml(html) {
56
+ return html.startsWith("<ul") || html.startsWith("<ol");
57
+ }
58
+ /** True when a link URL is safe to put in an href. */
59
+ function isSafeHref(url) {
60
+ return classifyHref(url) !== null;
61
+ }
62
+ function renderInline(source) {
63
+ let index = 0;
64
+ let html = "";
65
+ while (index < source.length) {
66
+ if (source[index] === "`") {
67
+ const end = source.indexOf("`", index + 1);
68
+ if (end > index + 1) {
69
+ html += `<code>${escapeHtml(source.slice(index + 1, end))}</code>`;
70
+ index = end + 1;
71
+ continue;
72
+ }
73
+ }
74
+ if (source.startsWith("***", index)) {
75
+ const end = source.indexOf("***", index + 3);
76
+ if (end !== -1) {
77
+ html += `<strong><em>${escapeHtml(source.slice(index + 3, end))}</em></strong>`;
78
+ index = end + 3;
79
+ continue;
80
+ }
81
+ }
82
+ if (source.startsWith("**", index)) {
83
+ const end = source.indexOf("**", index + 2);
84
+ if (end !== -1) {
85
+ html += `<strong>${renderInline(source.slice(index + 2, end))}</strong>`;
86
+ index = end + 2;
87
+ continue;
88
+ }
89
+ }
90
+ if (source[index] === "*" && source[index + 1] !== "*") {
91
+ const end = source.indexOf("*", index + 1);
92
+ if (end !== -1 && source[end + 1] !== "*") {
93
+ html += `<em>${renderInline(source.slice(index + 1, end))}</em>`;
94
+ index = end + 1;
95
+ continue;
96
+ }
97
+ }
98
+ if (source[index] === "[") {
99
+ const link = readLink(source, index);
100
+ if (link) {
101
+ html += link.html;
102
+ index = link.end;
103
+ continue;
104
+ }
105
+ }
106
+ html += escapeHtml(source[index] ?? "");
107
+ index += 1;
108
+ }
109
+ return html;
110
+ }
111
+ function readLink(source, start) {
112
+ const labelEnd = source.indexOf("]", start + 1);
113
+ if (labelEnd === -1 || source[labelEnd + 1] !== "(") return null;
114
+ let depth = 1;
115
+ let cursor = labelEnd + 2;
116
+ while (cursor < source.length && depth > 0) {
117
+ const char = source[cursor];
118
+ if (char === "(") depth += 1;
119
+ else if (char === ")") depth -= 1;
120
+ cursor += 1;
121
+ }
122
+ if (depth !== 0) return null;
123
+ const urlEnd = cursor - 1;
124
+ const label = renderInline(source.slice(start + 1, labelEnd));
125
+ const href = classifyHref(source.slice(labelEnd + 2, urlEnd));
126
+ let end = urlEnd + 1;
127
+ let flag;
128
+ if (source.startsWith("{new}", end)) {
129
+ flag = "new";
130
+ end += 5;
131
+ } else if (source.startsWith("{same}", end)) {
132
+ flag = "same";
133
+ end += 6;
134
+ }
135
+ if (!href) return {
136
+ html: label,
137
+ end
138
+ };
139
+ const blank = flag === "new" || flag !== "same" && href.external;
140
+ const mode = flag === "new" ? " data-new-tab=\"true\"" : flag === "same" ? " data-new-tab=\"false\"" : "";
141
+ const extra = blank ? " target=\"_blank\" rel=\"noopener noreferrer\"" : "";
142
+ return {
143
+ html: `<a href="${escapeAttr(href.url)}"${mode}${extra}>${label}</a>`,
144
+ end
145
+ };
146
+ }
147
+ function classifyHref(url) {
148
+ if (url === "" || /[\s"'<>`]/.test(url) || /[\u0000-\u001f]/.test(url)) return null;
149
+ if (BLOCKED_PROTOCOL.test(url.trim())) return null;
150
+ if (/^[a-z][a-z0-9+.-]*:/i.test(url) && !/^(?:https?|mailto|tel):/i.test(url)) return null;
151
+ return {
152
+ url,
153
+ external: /^https?:\/\//i.test(url)
154
+ };
155
+ }
156
+ function escapeHtml(value) {
157
+ return value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;");
158
+ }
159
+ function escapeAttr(value) {
160
+ return escapeHtml(value);
161
+ }
162
+ /**
163
+ * Turn the formatted DOM of a rich field back into the stored markdown subset. The HTML is parsed with
164
+ * `DOMParser`, which never runs scripts or loads resources. Browser only (the editor overlay).
165
+ */
166
+ function markdownFromHtml(html, options = {}) {
167
+ return cleanup(serialize(parseHtml(html, options.headings === true)));
168
+ }
169
+ /** Elements whose content is dropped with them. */
170
+ const DROPPED = /* @__PURE__ */ new Set([
171
+ "script",
172
+ "style",
173
+ "template",
174
+ "noscript",
175
+ "iframe",
176
+ "object",
177
+ "svg",
178
+ "math",
179
+ "img",
180
+ "picture",
181
+ "video",
182
+ "audio"
183
+ ]);
184
+ /** Headings a field without them drops, with their text. */
185
+ const HEADING_TAGS = /* @__PURE__ */ new Set([
186
+ "h1",
187
+ "h2",
188
+ "h3",
189
+ "h4",
190
+ "h5",
191
+ "h6"
192
+ ]);
193
+ function parseHtml(html, headings) {
194
+ const root = {
195
+ mark: "root",
196
+ children: []
197
+ };
198
+ const body = new DOMParser().parseFromString(`<!doctype html><body>${html}`, "text/html").body;
199
+ appendChildren(body, root, headings);
200
+ return root;
201
+ }
202
+ function appendChildren(parent, into, headings) {
203
+ for (const child of Array.from(parent.childNodes)) {
204
+ if (child.nodeType === TEXT_NODE) {
205
+ into.children.push({
206
+ mark: "text",
207
+ text: child.nodeValue ?? "",
208
+ children: []
209
+ });
210
+ continue;
211
+ }
212
+ if (child.nodeType !== ELEMENT_NODE) continue;
213
+ const element = child;
214
+ const name = element.tagName.toLowerCase();
215
+ if (DROPPED.has(name)) continue;
216
+ if (HEADING_TAGS.has(name) && !headings) continue;
217
+ if (name === "br") {
218
+ into.children.push({
219
+ mark: "text",
220
+ text: "\n",
221
+ children: []
222
+ });
223
+ continue;
224
+ }
225
+ const mark = blockOf(name) ?? markOf(name, element.getAttribute("style") ?? "");
226
+ if (!mark) {
227
+ appendChildren(element, into, headings);
228
+ continue;
229
+ }
230
+ const tab = mark === "link" ? element.getAttribute("data-new-tab") : null;
231
+ const node = {
232
+ mark,
233
+ children: [],
234
+ href: mark === "link" ? element.getAttribute("href") ?? "" : void 0,
235
+ newTab: tab === "true" ? "new" : tab === "false" ? "same" : void 0
236
+ };
237
+ into.children.push(node);
238
+ appendChildren(element, node, headings);
239
+ }
240
+ }
241
+ const ELEMENT_NODE = 1;
242
+ const TEXT_NODE = 3;
243
+ function blockOf(name) {
244
+ if (name === "h1" || name === "h2") return "h2";
245
+ if (name === "h3" || name === "h4" || name === "h5" || name === "h6") return "h3";
246
+ if (name === "ul") return "ul";
247
+ if (name === "ol") return "ol";
248
+ if (name === "li") return "li";
249
+ if (name === "p" || name === "div" || name === "blockquote") return "block";
250
+ return null;
251
+ }
252
+ function markOf(name, style) {
253
+ if (name === "strong" || name === "b") return "strong";
254
+ if (name === "em" || name === "i") return "em";
255
+ if (name === "code" || name === "kbd" || name === "samp") return "code";
256
+ if (name === "a") return "link";
257
+ if (name === "span") {
258
+ if (/font-weight\s*:\s*(?:bold|[7-9]00)/i.test(style)) return "strong";
259
+ if (/font-style\s*:\s*italic/i.test(style)) return "em";
260
+ }
261
+ return null;
262
+ }
263
+ function serialize(node) {
264
+ if (node.mark === "root") return serializeFlow(node.children);
265
+ return serializeInline(node);
266
+ }
267
+ function serializeFlow(nodes) {
268
+ let out = "";
269
+ for (const node of nodes) {
270
+ if (node.mark === "ul" || node.mark === "ol") {
271
+ const list = serializeList(node);
272
+ if (list === "") continue;
273
+ if (out.trim() !== "" && !out.endsWith("\n\n")) out = out.replace(/\n*$/, "\n\n");
274
+ out += `${list}\n\n`;
275
+ continue;
276
+ }
277
+ if (node.mark === "h2" || node.mark === "h3") {
278
+ const text = node.children.map((child) => serializeInline(child)).join("").replace(/\s*\n+\s*/g, " ").trim();
279
+ if (text === "") continue;
280
+ if (out.trim() !== "" && !out.endsWith("\n\n")) out = out.replace(/\n*$/, "\n\n");
281
+ out += `${node.mark === "h2" ? "##" : "###"} ${text}\n\n`;
282
+ continue;
283
+ }
284
+ if (node.mark === "block") {
285
+ const inner = serializeFlow(node.children).replace(/\n+$/, "");
286
+ if (inner === "") continue;
287
+ if (out.trim() !== "" && !out.endsWith("\n\n")) out = out.replace(/\n*$/, "\n\n");
288
+ out += `${inner}\n\n`;
289
+ continue;
290
+ }
291
+ out += serializeInline(node);
292
+ }
293
+ return out;
294
+ }
295
+ function serializeList(node) {
296
+ return node.children.filter((child) => child.mark === "li").map((item, index) => {
297
+ const text = listItemText(item).replace(/\n+/g, " ").trim();
298
+ return node.mark === "ol" ? `${index + 1}. ${text}` : `- ${text}`;
299
+ }).join("\n");
300
+ }
301
+ function listItemText(node) {
302
+ return node.children.map((child) => {
303
+ if (child.mark === "ul" || child.mark === "ol") return serializeList(child);
304
+ if (child.mark === "block") return serializeFlow(child.children);
305
+ return serializeInline(child);
306
+ }).join("");
307
+ }
308
+ function serializeInline(node) {
309
+ if (node.mark === "text") return node.text ?? "";
310
+ if (node.mark === "code") {
311
+ const text = plainText(node).replace(/`/g, "").replace(/\n+/g, " ");
312
+ return text.trim() === "" ? text : `\`${text}\``;
313
+ }
314
+ if (node.mark === "ul" || node.mark === "ol") return serializeList(node);
315
+ if (node.mark === "li" || node.mark === "block" || node.mark === "root" || node.mark === "h2" || node.mark === "h3") return serializeFlow(node.mark === "h2" || node.mark === "h3" ? [node] : node.children);
316
+ const inner = node.children.map((child) => serializeInline(child)).join("");
317
+ if (!inner) return "";
318
+ if (node.mark === "strong") return `**${inner}**`;
319
+ if (node.mark === "em") return `*${inner}*`;
320
+ if (node.mark === "link") {
321
+ const href = node.href ?? "";
322
+ if (!isSafeHref(href)) return inner;
323
+ return `[${inner}](${href})${node.newTab === "new" ? "{new}" : node.newTab === "same" ? "{same}" : ""}`;
324
+ }
325
+ return inner;
326
+ }
327
+ function plainText(node) {
328
+ if (node.mark === "text") return node.text ?? "";
329
+ return node.children.map((child) => plainText(child)).join("");
330
+ }
331
+ function cleanup(value) {
332
+ return value.replace(/\u00a0/g, " ").replace(/[ \t]+\n/g, "\n").replace(/\n{3,}/g, "\n\n").trim();
333
+ }
334
+ /** The nth markdown link, in source order. */
335
+ function richLinkAt(markdown, index) {
336
+ return listRichLinks(markdown)[index] ?? null;
337
+ }
338
+ /** Replace the nth markdown link. The label stays plain text. */
339
+ function updateRichLink(markdown, index, next) {
340
+ const span = locateRichLinks(markdown)[index];
341
+ if (!span || !isSafeHref(next.href)) return markdown;
342
+ const label = next.label.replace(/[[\]]/g, "");
343
+ const external = /^https?:\/\//i.test(next.href);
344
+ const flag = next.newTab ? "{new}" : external ? "{same}" : "";
345
+ return `${markdown.slice(0, span.start)}[${label}](${next.href})${flag}${markdown.slice(span.end)}`;
346
+ }
347
+ function listRichLinks(markdown) {
348
+ return locateRichLinks(markdown).map((span) => ({
349
+ label: span.label,
350
+ href: span.href,
351
+ newTab: span.flag === "new" || span.flag !== "same" && /^https?:\/\//i.test(span.href)
352
+ }));
353
+ }
354
+ function locateRichLinks(source) {
355
+ const found = [];
356
+ let index = 0;
357
+ while (index < source.length) {
358
+ if (source[index] === "[") {
359
+ const span = readLinkSpan(source, index);
360
+ if (span) {
361
+ found.push(span);
362
+ index = span.end;
363
+ continue;
364
+ }
365
+ }
366
+ index += 1;
367
+ }
368
+ return found;
369
+ }
370
+ function readLinkSpan(source, start) {
371
+ const labelEnd = source.indexOf("]", start + 1);
372
+ if (labelEnd === -1 || source[labelEnd + 1] !== "(") return null;
373
+ let depth = 1;
374
+ let cursor = labelEnd + 2;
375
+ while (cursor < source.length && depth > 0) {
376
+ const char = source[cursor];
377
+ if (char === "(") depth += 1;
378
+ else if (char === ")") depth -= 1;
379
+ cursor += 1;
380
+ }
381
+ if (depth !== 0) return null;
382
+ const urlEnd = cursor - 1;
383
+ const href = source.slice(labelEnd + 2, urlEnd);
384
+ if (!isSafeHref(href)) return null;
385
+ let end = urlEnd + 1;
386
+ let flag;
387
+ if (source.startsWith("{new}", end)) {
388
+ flag = "new";
389
+ end += 5;
390
+ } else if (source.startsWith("{same}", end)) {
391
+ flag = "same";
392
+ end += 6;
393
+ }
394
+ return {
395
+ start,
396
+ end,
397
+ label: source.slice(start + 1, labelEnd),
398
+ href,
399
+ flag
400
+ };
401
+ }
402
+ //#endregion
403
+ export { richLinkAt as a, updateRichLink as c, renderRichText as i, isSafeHref as n, sanitizeRichHtml as o, markdownFromHtml as r, stripPlainRich as s, escapeHtml as t };