@flytedan/flytebot-design-system 0.71.0 → 0.71.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/chunk-CGCQNBCR.js +42 -0
- package/dist/chunk-CGCQNBCR.js.map +1 -0
- package/dist/index.cjs +25 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -7
- package/dist/index.js.map +1 -1
- package/dist/markdown.cjs +16 -1
- package/dist/markdown.cjs.map +1 -1
- package/dist/markdown.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-476HCG2A.js +0 -27
- package/dist/chunk-476HCG2A.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
markdownToText,
|
|
4
4
|
showEscapes,
|
|
5
5
|
showEscapesRaw
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-CGCQNBCR.js";
|
|
7
7
|
import {
|
|
8
8
|
US_STATES,
|
|
9
9
|
US_STATE_CODES,
|
|
@@ -5229,8 +5229,11 @@ var INLINE = [
|
|
|
5229
5229
|
["bare", /(?<![\w@/])(https?:\/\/[^\s<>()]+[^\s<>().,;:!?])/]
|
|
5230
5230
|
];
|
|
5231
5231
|
function inlineNodes(src, ctx, keyBase) {
|
|
5232
|
+
return hiddenInlineNodes(hideEscapes(String(src == null ? "" : src)), ctx, keyBase);
|
|
5233
|
+
}
|
|
5234
|
+
function hiddenInlineNodes(hidden, ctx, keyBase) {
|
|
5232
5235
|
const out = [];
|
|
5233
|
-
let rest =
|
|
5236
|
+
let rest = hidden, guard = 0;
|
|
5234
5237
|
const d = showEscapes;
|
|
5235
5238
|
const key = () => keyBase + "-" + out.length;
|
|
5236
5239
|
while (rest && guard++ < 800) {
|
|
@@ -5250,13 +5253,13 @@ function inlineNodes(src, ctx, keyBase) {
|
|
|
5250
5253
|
out.push(ctx.allowImages && src2 ? /* @__PURE__ */ jsx54("img", { className: "fd-md-img", src: src2, alt: d(g(1) || ""), title: g(3) ? d(g(3)) : void 0, loading: "lazy" }, key()) : /* @__PURE__ */ jsx54("span", { className: "fd-md-imgalt", children: d(g(1) || "image") }, key()));
|
|
5251
5254
|
} else if (kind === "link") {
|
|
5252
5255
|
const href = safeHref(d(g(2)));
|
|
5253
|
-
out.push(href ? /* @__PURE__ */ jsx54("a", { href, title: g(3) ? d(g(3)) : void 0, target: /^https?:/i.test(href) ? "_blank" : void 0, rel: "noopener noreferrer", onClick: ctx.onLinkClick, children:
|
|
5256
|
+
out.push(href ? /* @__PURE__ */ jsx54("a", { href, title: g(3) ? d(g(3)) : void 0, target: /^https?:/i.test(href) ? "_blank" : void 0, rel: "noopener noreferrer", onClick: ctx.onLinkClick, children: hiddenInlineNodes(g(1), ctx, key()) }, key()) : /* @__PURE__ */ jsx54("span", { children: d(g(1)) }, key()));
|
|
5254
5257
|
} else if (kind === "cite") {
|
|
5255
5258
|
out.push(ctx.renderCitation ? /* @__PURE__ */ jsx54(React35.Fragment, { children: ctx.renderCitation(d(g(1))) }, key()) : /* @__PURE__ */ jsx54("sup", { className: "fd-md-cite", children: d(g(1)) }, key()));
|
|
5256
|
-
} else if (kind === "strongem") out.push(/* @__PURE__ */ jsx54("strong", { children: /* @__PURE__ */ jsx54("em", { children:
|
|
5257
|
-
else if (kind === "strong") out.push(/* @__PURE__ */ jsx54("strong", { children:
|
|
5258
|
-
else if (kind === "em") out.push(/* @__PURE__ */ jsx54("em", { children:
|
|
5259
|
-
else if (kind === "del") out.push(/* @__PURE__ */ jsx54("del", { children:
|
|
5259
|
+
} else if (kind === "strongem") out.push(/* @__PURE__ */ jsx54("strong", { children: /* @__PURE__ */ jsx54("em", { children: hiddenInlineNodes(g(1), ctx, key()) }) }, key()));
|
|
5260
|
+
else if (kind === "strong") out.push(/* @__PURE__ */ jsx54("strong", { children: hiddenInlineNodes(g(1) || g(2), ctx, key()) }, key()));
|
|
5261
|
+
else if (kind === "em") out.push(/* @__PURE__ */ jsx54("em", { children: hiddenInlineNodes(g(1) || g(2), ctx, key()) }, key()));
|
|
5262
|
+
else if (kind === "del") out.push(/* @__PURE__ */ jsx54("del", { children: hiddenInlineNodes(g(1), ctx, key()) }, key()));
|
|
5260
5263
|
else if (kind === "autolink" || kind === "bare") {
|
|
5261
5264
|
const href = safeHref(d(g(1)));
|
|
5262
5265
|
out.push(href ? /* @__PURE__ */ jsx54("a", { href, target: "_blank", rel: "noopener noreferrer", onClick: ctx.onLinkClick, children: d(g(1)).replace(/^mailto:/, "") }, key()) : d(g(1)));
|