@flytedan/flytebot-design-system 0.71.1 → 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/index.js CHANGED
@@ -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 = hideEscapes(String(src == null ? "" : src)), guard = 0;
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: inlineNodes(g(1), ctx, key()) }, key()) : /* @__PURE__ */ jsx54("span", { children: d(g(1)) }, key()));
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: inlineNodes(g(1), ctx, key()) }) }, key()));
5257
- else if (kind === "strong") out.push(/* @__PURE__ */ jsx54("strong", { children: inlineNodes(g(1) || g(2), ctx, key()) }, key()));
5258
- else if (kind === "em") out.push(/* @__PURE__ */ jsx54("em", { children: inlineNodes(g(1) || g(2), ctx, key()) }, key()));
5259
- else if (kind === "del") out.push(/* @__PURE__ */ jsx54("del", { children: inlineNodes(g(1), ctx, key()) }, key()));
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)));