@happeouikit/content-renderer 3.2.26 → 3.2.28
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.cjs.js +7 -7
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +50 -49
- package/dist/index.es.js.map +1 -1
- package/dist/utils.d.ts +8 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -614,7 +614,7 @@ function lt(e) {
|
|
|
614
614
|
}
|
|
615
615
|
hr.parseTag = Va;
|
|
616
616
|
hr.parseAttr = $a;
|
|
617
|
-
var
|
|
617
|
+
var Za = Vr.FilterCSS, X = M, Ht = hr, Ya = Ht.parseTag, Xa = Ht.parseAttr, ze = Fr;
|
|
618
618
|
function Se(e) {
|
|
619
619
|
return e == null;
|
|
620
620
|
}
|
|
@@ -649,7 +649,7 @@ function rn(e) {
|
|
|
649
649
|
function Mt(e) {
|
|
650
650
|
e = en(e || {}), e.stripIgnoreTag && (e.onIgnoreTag && console.error(
|
|
651
651
|
'Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'
|
|
652
|
-
), e.onIgnoreTag = X.onIgnoreTagStripAll), e.whiteList || e.allowList ? e.whiteList = rn(e.whiteList || e.allowList) : e.whiteList = X.whiteList, this.attributeWrapSign = e.singleQuotedAttributeValue === !0 ? "'" : X.attributeWrapSign, e.onTag = e.onTag || X.onTag, e.onTagAttr = e.onTagAttr || X.onTagAttr, e.onIgnoreTag = e.onIgnoreTag || X.onIgnoreTag, e.onIgnoreTagAttr = e.onIgnoreTagAttr || X.onIgnoreTagAttr, e.safeAttrValue = e.safeAttrValue || X.safeAttrValue, e.escapeHtml = e.escapeHtml || X.escapeHtml, this.options = e, e.css === !1 ? this.cssFilter = !1 : (e.css = e.css || {}, this.cssFilter = new
|
|
652
|
+
), e.onIgnoreTag = X.onIgnoreTagStripAll), e.whiteList || e.allowList ? e.whiteList = rn(e.whiteList || e.allowList) : e.whiteList = X.whiteList, this.attributeWrapSign = e.singleQuotedAttributeValue === !0 ? "'" : X.attributeWrapSign, e.onTag = e.onTag || X.onTag, e.onTagAttr = e.onTagAttr || X.onTagAttr, e.onIgnoreTag = e.onIgnoreTag || X.onIgnoreTag, e.onIgnoreTagAttr = e.onIgnoreTagAttr || X.onIgnoreTagAttr, e.safeAttrValue = e.safeAttrValue || X.safeAttrValue, e.escapeHtml = e.escapeHtml || X.escapeHtml, this.options = e, e.css === !1 ? this.cssFilter = !1 : (e.css = e.css || {}, this.cssFilter = new Za(e.css));
|
|
653
653
|
}
|
|
654
654
|
Mt.prototype.process = function(e) {
|
|
655
655
|
if (e = e || "", e = e.toString(), !e)
|
|
@@ -661,7 +661,7 @@ Mt.prototype.process = function(e) {
|
|
|
661
661
|
u.stripIgnoreTagBody,
|
|
662
662
|
h
|
|
663
663
|
), h = y.onIgnoreTag);
|
|
664
|
-
var q =
|
|
664
|
+
var q = Ya(
|
|
665
665
|
e,
|
|
666
666
|
function(L, I, x, z, j) {
|
|
667
667
|
var N = {
|
|
@@ -852,7 +852,7 @@ Q.prototype = {
|
|
|
852
852
|
return s.j[e] = g, g;
|
|
853
853
|
}
|
|
854
854
|
};
|
|
855
|
-
const O = (e, i, u, t, s) => e.ta(i, u, t, s),
|
|
855
|
+
const O = (e, i, u, t, s) => e.ta(i, u, t, s), Z = (e, i, u, t, s) => e.tr(i, u, t, s), pt = (e, i, u, t, s) => e.ts(i, u, t, s), A = (e, i, u, t, s) => e.tt(i, u, t, s), ae = "WORD", Or = "UWORD", ke = "LOCALHOST", xr = "TLD", Hr = "UTLD", je = "SCHEME", fe = "SLASH_SCHEME", $r = "NUM", Bt = "WS", Gr = "NL", ve = "OPENBRACE", we = "CLOSEBRACE", xe = "OPENBRACKET", He = "CLOSEBRACKET", Me = "OPENPAREN", Ue = "CLOSEPAREN", Be = "OPENANGLEBRACKET", Ve = "CLOSEANGLEBRACKET", Fe = "FULLWIDTHLEFTPAREN", $e = "FULLWIDTHRIGHTPAREN", Ge = "LEFTCORNERBRACKET", We = "RIGHTCORNERBRACKET", Ke = "LEFTWHITECORNERBRACKET", Qe = "RIGHTWHITECORNERBRACKET", Ze = "FULLWIDTHLESSTHAN", Ye = "FULLWIDTHGREATERTHAN", Xe = "AMPERSAND", Je = "APOSTROPHE", er = "ASTERISK", se = "AT", rr = "BACKSLASH", tr = "BACKTICK", ar = "CARET", de = "COLON", Wr = "COMMA", nr = "DOLLAR", ee = "DOT", ir = "EQUALS", Kr = "EXCLAMATION", re = "HYPHEN", ur = "PERCENT", sr = "PIPE", dr = "PLUS", or = "POUND", cr = "QUERY", Qr = "QUOTE", Zr = "SEMI", te = "SLASH", ye = "TILDE", lr = "UNDERSCORE", Vt = "EMOJI", fr = "SYM";
|
|
856
856
|
var Ft = /* @__PURE__ */ Object.freeze({
|
|
857
857
|
__proto__: null,
|
|
858
858
|
WORD: ae,
|
|
@@ -879,8 +879,8 @@ var Ft = /* @__PURE__ */ Object.freeze({
|
|
|
879
879
|
RIGHTCORNERBRACKET: We,
|
|
880
880
|
LEFTWHITECORNERBRACKET: Ke,
|
|
881
881
|
RIGHTWHITECORNERBRACKET: Qe,
|
|
882
|
-
FULLWIDTHLESSTHAN:
|
|
883
|
-
FULLWIDTHGREATERTHAN:
|
|
882
|
+
FULLWIDTHLESSTHAN: Ze,
|
|
883
|
+
FULLWIDTHGREATERTHAN: Ye,
|
|
884
884
|
AMPERSAND: Xe,
|
|
885
885
|
APOSTROPHE: Je,
|
|
886
886
|
ASTERISK: er,
|
|
@@ -901,7 +901,7 @@ var Ft = /* @__PURE__ */ Object.freeze({
|
|
|
901
901
|
POUND: or,
|
|
902
902
|
QUERY: cr,
|
|
903
903
|
QUOTE: Qr,
|
|
904
|
-
SEMI:
|
|
904
|
+
SEMI: Zr,
|
|
905
905
|
SLASH: te,
|
|
906
906
|
TILDE: ye,
|
|
907
907
|
UNDERSCORE: lr,
|
|
@@ -916,31 +916,31 @@ function pn(e) {
|
|
|
916
916
|
const i = {};
|
|
917
917
|
Q.groups = i;
|
|
918
918
|
const u = new Q();
|
|
919
|
-
qe == null && (qe = mt(nn)), De == null && (De = mt(un)), A(u, "'", Je), A(u, "{", ve), A(u, "}", we), A(u, "[", xe), A(u, "]", He), A(u, "(", Me), A(u, ")", Ue), A(u, "<", Be), A(u, ">", Ve), A(u, "(", Fe), A(u, ")", $e), A(u, "「", Ge), A(u, "」", We), A(u, "『", Ke), A(u, "』", Qe), A(u, "<",
|
|
920
|
-
const t =
|
|
919
|
+
qe == null && (qe = mt(nn)), De == null && (De = mt(un)), A(u, "'", Je), A(u, "{", ve), A(u, "}", we), A(u, "[", xe), A(u, "]", He), A(u, "(", Me), A(u, ")", Ue), A(u, "<", Be), A(u, ">", Ve), A(u, "(", Fe), A(u, ")", $e), A(u, "「", Ge), A(u, "」", We), A(u, "『", Ke), A(u, "』", Qe), A(u, "<", Ze), A(u, ">", Ye), A(u, "&", Xe), A(u, "*", er), A(u, "@", se), A(u, "`", tr), A(u, "^", ar), A(u, ":", de), A(u, ",", Wr), A(u, "$", nr), A(u, ".", ee), A(u, "=", ir), A(u, "!", Kr), A(u, "-", re), A(u, "%", ur), A(u, "|", sr), A(u, "+", dr), A(u, "#", or), A(u, "?", cr), A(u, '"', Qr), A(u, "/", te), A(u, ";", Zr), A(u, "~", ye), A(u, "_", lr), A(u, "\\", rr);
|
|
920
|
+
const t = Z(u, Ar, $r, {
|
|
921
921
|
[zr]: !0
|
|
922
922
|
});
|
|
923
|
-
|
|
924
|
-
const s =
|
|
923
|
+
Z(t, Ar, t);
|
|
924
|
+
const s = Z(u, le, ae, {
|
|
925
925
|
[Nr]: !0
|
|
926
926
|
});
|
|
927
|
-
|
|
928
|
-
const h =
|
|
927
|
+
Z(s, le, s);
|
|
928
|
+
const h = Z(u, Er, Or, {
|
|
929
929
|
[jr]: !0
|
|
930
930
|
});
|
|
931
|
-
|
|
932
|
-
const g =
|
|
931
|
+
Z(h, le), Z(h, Er, h);
|
|
932
|
+
const g = Z(u, ht, Bt, {
|
|
933
933
|
[ft]: !0
|
|
934
934
|
});
|
|
935
935
|
A(u, gt, Gr, {
|
|
936
936
|
[ft]: !0
|
|
937
|
-
}), A(g, gt),
|
|
938
|
-
const m =
|
|
937
|
+
}), A(g, gt), Z(g, ht, g);
|
|
938
|
+
const m = Z(u, Tr, Vt, {
|
|
939
939
|
[Ut]: !0
|
|
940
940
|
});
|
|
941
|
-
|
|
941
|
+
Z(m, Tr, m), A(m, ln, m);
|
|
942
942
|
const b = A(m, fn);
|
|
943
|
-
|
|
943
|
+
Z(b, Tr, m);
|
|
944
944
|
const D = [[le, s]], C = [[le, null], [Er, h]];
|
|
945
945
|
for (let v = 0; v < qe.length; v++)
|
|
946
946
|
ne(u, qe[v], xr, ae, D);
|
|
@@ -1047,16 +1047,16 @@ const Ee = {
|
|
|
1047
1047
|
ignoreTags: [],
|
|
1048
1048
|
render: null
|
|
1049
1049
|
};
|
|
1050
|
-
function
|
|
1050
|
+
function Yr(e, i) {
|
|
1051
1051
|
i === void 0 && (i = null);
|
|
1052
1052
|
let u = pe({}, Ee);
|
|
1053
|
-
e && (u = pe(u, e instanceof
|
|
1053
|
+
e && (u = pe(u, e instanceof Yr ? e.o : e));
|
|
1054
1054
|
const t = u.ignoreTags, s = [];
|
|
1055
1055
|
for (let h = 0; h < t.length; h++)
|
|
1056
1056
|
s.push(t[h].toUpperCase());
|
|
1057
1057
|
this.o = u, i && (this.defaultRender = i), this.ignoreTags = s;
|
|
1058
1058
|
}
|
|
1059
|
-
|
|
1059
|
+
Yr.prototype = {
|
|
1060
1060
|
o: Ee,
|
|
1061
1061
|
/**
|
|
1062
1062
|
* @type string[]
|
|
@@ -1263,24 +1263,24 @@ const vt = gr("email", {
|
|
|
1263
1263
|
const e = this.tk;
|
|
1264
1264
|
return e.length >= 2 && e[0].t !== ke && e[1].t === de;
|
|
1265
1265
|
}
|
|
1266
|
-
}),
|
|
1266
|
+
}), Y = (e) => new Q(e);
|
|
1267
1267
|
function bn(e) {
|
|
1268
1268
|
let {
|
|
1269
1269
|
groups: i
|
|
1270
1270
|
} = e;
|
|
1271
|
-
const u = i.domain.concat([Xe, er, se, rr, tr, ar, nr, ir, re, $r, ur, sr, dr, or, te, fr, ye, lr]), t = [Je, de, Wr, ee, Kr, cr, Qr,
|
|
1271
|
+
const u = i.domain.concat([Xe, er, se, rr, tr, ar, nr, ir, re, $r, ur, sr, dr, or, te, fr, ye, lr]), t = [Je, de, Wr, ee, Kr, cr, Qr, Zr, Be, Ve, ve, we, He, xe, Me, Ue, Fe, $e, Ge, We, Ke, Qe, Ze, Ye], s = [Xe, Je, er, rr, tr, ar, nr, ir, re, ve, we, ur, sr, dr, or, cr, te, fr, ye, lr], h = Y(), g = A(h, ye);
|
|
1272
1272
|
O(g, s, g), O(g, i.domain, g);
|
|
1273
|
-
const m =
|
|
1273
|
+
const m = Y(), b = Y(), D = Y();
|
|
1274
1274
|
O(h, i.domain, m), O(h, i.scheme, b), O(h, i.slashscheme, D), O(m, s, g), O(m, i.domain, m);
|
|
1275
1275
|
const C = A(m, se);
|
|
1276
1276
|
A(g, se, C), A(b, se, C), A(D, se, C);
|
|
1277
1277
|
const v = A(g, ee);
|
|
1278
1278
|
O(v, s, g), O(v, i.domain, g);
|
|
1279
|
-
const y =
|
|
1279
|
+
const y = Y();
|
|
1280
1280
|
O(C, i.domain, y), O(y, i.domain, y);
|
|
1281
1281
|
const q = A(y, ee);
|
|
1282
1282
|
O(q, i.domain, y);
|
|
1283
|
-
const L =
|
|
1283
|
+
const L = Y(vt);
|
|
1284
1284
|
O(q, i.tld, L), O(q, i.utld, L), A(C, ke, L);
|
|
1285
1285
|
const I = A(y, re);
|
|
1286
1286
|
O(I, i.domain, y), O(L, i.domain, y), A(L, ee, q), A(L, re, I);
|
|
@@ -1288,11 +1288,11 @@ function bn(e) {
|
|
|
1288
1288
|
O(x, i.numeric, vt);
|
|
1289
1289
|
const z = A(m, re), j = A(m, ee);
|
|
1290
1290
|
O(z, i.domain, m), O(j, s, g), O(j, i.domain, m);
|
|
1291
|
-
const N =
|
|
1291
|
+
const N = Y(Pe);
|
|
1292
1292
|
O(j, i.tld, N), O(j, i.utld, N), O(N, i.domain, m), O(N, s, g), A(N, ee, j), A(N, re, z), A(N, se, C);
|
|
1293
|
-
const r = A(N, de), n =
|
|
1293
|
+
const r = A(N, de), n = Y(Pe);
|
|
1294
1294
|
O(r, i.numeric, n);
|
|
1295
|
-
const a =
|
|
1295
|
+
const a = Y(Pe), d = Y();
|
|
1296
1296
|
O(a, u, a), O(a, t, d), O(d, u, a), O(d, t, d), A(N, te, a), A(n, te, a);
|
|
1297
1297
|
const o = A(b, de), f = A(D, de), c = A(f, te), p = A(c, te);
|
|
1298
1298
|
O(b, i.domain, m), A(b, ee, j), A(b, re, z), O(D, i.domain, m), A(D, ee, j), A(D, re, z), O(o, i.domain, a), A(o, te, a), O(p, i.domain, a), O(p, u, a), A(p, te, a);
|
|
@@ -1311,15 +1311,15 @@ function bn(e) {
|
|
|
1311
1311
|
// 「」
|
|
1312
1312
|
[Ke, Qe],
|
|
1313
1313
|
// 『』
|
|
1314
|
-
[
|
|
1314
|
+
[Ze, Ye]
|
|
1315
1315
|
// <>
|
|
1316
1316
|
];
|
|
1317
1317
|
for (let k = 0; k < T.length; k++) {
|
|
1318
1318
|
const [_, E] = T[k], l = A(a, _);
|
|
1319
1319
|
A(d, _, l), A(l, E, a);
|
|
1320
|
-
const w =
|
|
1320
|
+
const w = Y(Pe);
|
|
1321
1321
|
O(l, u, w);
|
|
1322
|
-
const S =
|
|
1322
|
+
const S = Y();
|
|
1323
1323
|
O(l, t), O(w, u, w), O(w, t, S), O(S, u, w), O(S, t, S), A(w, E, a), A(S, E, a);
|
|
1324
1324
|
}
|
|
1325
1325
|
return A(h, ke, N), A(h, Gr, mn), {
|
|
@@ -2007,7 +2007,7 @@ function Rn(e, i) {
|
|
|
2007
2007
|
const Gt = "LinkifyResult", pr = "StartTag", Wt = "EndTag", Mr = "Chars", zn = "Comment", Nn = "Doctype";
|
|
2008
2008
|
function jn(e, i) {
|
|
2009
2009
|
i === void 0 && (i = {});
|
|
2010
|
-
const u = Rn(e), t = [], s = [], h = new
|
|
2010
|
+
const u = Rn(e), t = [], s = [], h = new Yr(i, xn);
|
|
2011
2011
|
for (let g = 0; g < u.length; g++) {
|
|
2012
2012
|
const m = u[g];
|
|
2013
2013
|
if (m.type === pr) {
|
|
@@ -2195,7 +2195,7 @@ var Fn = {
|
|
|
2195
2195
|
attribute: Lr,
|
|
2196
2196
|
body: _e.bodyRegExps.html5
|
|
2197
2197
|
}
|
|
2198
|
-
}, $n = he(he({}, _t), { all: _t.html5 }), rt = String.fromCharCode,
|
|
2198
|
+
}, $n = he(he({}, _t), { all: _t.html5 }), rt = String.fromCharCode, Zt = rt(65533), Gn = {
|
|
2199
2199
|
level: "all"
|
|
2200
2200
|
};
|
|
2201
2201
|
function Wn(e, i) {
|
|
@@ -2210,7 +2210,7 @@ function Wn(e, i) {
|
|
|
2210
2210
|
t = s;
|
|
2211
2211
|
else if (e[0] === "&" && e[1] === "#") {
|
|
2212
2212
|
var h = e[2], g = h == "x" || h == "X" ? parseInt(e.substr(3), 16) : parseInt(e.substr(2));
|
|
2213
|
-
t = g >= 1114111 ?
|
|
2213
|
+
t = g >= 1114111 ? Zt : g > 65535 ? Jr.fromCodePoint(g) : rt(Qt.numericUnicodeMap[g] || g);
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
2216
|
return t;
|
|
@@ -2239,7 +2239,7 @@ function Kn(e, i) {
|
|
|
2239
2239
|
I = z;
|
|
2240
2240
|
else if (L[0] === "&" && L[1] === "#") {
|
|
2241
2241
|
var j = L[2], N = j == "x" || j == "X" ? parseInt(L.substr(3), 16) : parseInt(L.substr(2));
|
|
2242
|
-
I = N >= 1114111 ?
|
|
2242
|
+
I = N >= 1114111 ? Zt : N > 65535 ? Jr.fromCodePoint(N) : rt(Qt.numericUnicodeMap[N] || N);
|
|
2243
2243
|
}
|
|
2244
2244
|
}
|
|
2245
2245
|
y += I, q = v.index + L.length;
|
|
@@ -2249,7 +2249,7 @@ function Kn(e, i) {
|
|
|
2249
2249
|
y = e;
|
|
2250
2250
|
return y;
|
|
2251
2251
|
}
|
|
2252
|
-
var
|
|
2252
|
+
var Yt = mr.decode = Kn;
|
|
2253
2253
|
const Qn = {
|
|
2254
2254
|
a: [
|
|
2255
2255
|
"class",
|
|
@@ -2353,11 +2353,11 @@ const Qn = {
|
|
|
2353
2353
|
"style",
|
|
2354
2354
|
"class"
|
|
2355
2355
|
]
|
|
2356
|
-
},
|
|
2356
|
+
}, Zn = "a11y-light", Yn = "https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&display=swap", Xn = [
|
|
2357
2357
|
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/highlight.min.js"
|
|
2358
2358
|
], Jn = [
|
|
2359
2359
|
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/default.min.css",
|
|
2360
|
-
`https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/${
|
|
2360
|
+
`https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.6.0/styles/${Zn}.min.css`
|
|
2361
2361
|
], kt = "PRE", ei = "CODE", ri = [
|
|
2362
2362
|
"javascript",
|
|
2363
2363
|
"html",
|
|
@@ -5124,13 +5124,13 @@ const ui = ii(), si = new RegExp(tt, "gi"), di = new RegExp(
|
|
|
5124
5124
|
}
|
|
5125
5125
|
}, pi = (e = "", i = "html") => {
|
|
5126
5126
|
let u = oa(e);
|
|
5127
|
-
return u = ca(u), i === "markdown" ? u = ui.makeHtml(u) : u = oi(u), u =
|
|
5127
|
+
return u = ca(u), i === "markdown" ? u = ui.makeHtml(u) : u = oi(u), u = Yt(u), u = mi(u), u = fi(u), u;
|
|
5128
5128
|
}, hi = () => {
|
|
5129
5129
|
const e = "ibmMonoOnDemand";
|
|
5130
5130
|
if (!document.getElementById(e)) {
|
|
5131
5131
|
const i = document.createElement("style");
|
|
5132
5132
|
i.id = e, i.appendChild(
|
|
5133
|
-
document.createTextNode(`@import url(${
|
|
5133
|
+
document.createTextNode(`@import url(${Yn});`)
|
|
5134
5134
|
), document.head.appendChild(i);
|
|
5135
5135
|
}
|
|
5136
5136
|
}, Tt = (e = "") => (
|
|
@@ -5145,7 +5145,7 @@ const ui = ii(), si = new RegExp(tt, "gi"), di = new RegExp(
|
|
|
5145
5145
|
code: []
|
|
5146
5146
|
}
|
|
5147
5147
|
}));
|
|
5148
|
-
},
|
|
5148
|
+
}, mi = (e) => e.replace(/<(?![a-zA-Z\/!])/g, "<"), Si = ({
|
|
5149
5149
|
content: e,
|
|
5150
5150
|
type: i,
|
|
5151
5151
|
widgetType: u = "post",
|
|
@@ -5206,7 +5206,7 @@ const ui = ii(), si = new RegExp(tt, "gi"), di = new RegExp(
|
|
|
5206
5206
|
languages: ri,
|
|
5207
5207
|
useBr: !0
|
|
5208
5208
|
}), a.forEach((d) => {
|
|
5209
|
-
const o = d.innerText, f = document.createElement(ei), c =
|
|
5209
|
+
const o = d.innerText, f = document.createElement(ei), c = Yt(o);
|
|
5210
5210
|
f.textContent = c, d.innerHTML = "", d.appendChild(f), window.hljs.highlightBlock(d);
|
|
5211
5211
|
}), L((d) => [...d, ...a]);
|
|
5212
5212
|
}));
|
|
@@ -5275,7 +5275,7 @@ const ui = ii(), si = new RegExp(tt, "gi"), di = new RegExp(
|
|
|
5275
5275
|
}, [e, i, b]);
|
|
5276
5276
|
return /* @__PURE__ */ ea(ra, { children: [
|
|
5277
5277
|
/* @__PURE__ */ Te(
|
|
5278
|
-
|
|
5278
|
+
vi,
|
|
5279
5279
|
{
|
|
5280
5280
|
className: `content-renderer ${u === "page" ? "fr-view pages-text" : ""}`,
|
|
5281
5281
|
ref: v,
|
|
@@ -5291,11 +5291,12 @@ const ui = ii(), si = new RegExp(tt, "gi"), di = new RegExp(
|
|
|
5291
5291
|
q.map((z) => {
|
|
5292
5292
|
let j = z.textContent ? Tt(z.textContent) : "", N = !1;
|
|
5293
5293
|
return z.tagName !== kt && (N = !0, j = `${window.location.href.split("#")[0]}#${z.id}`), ia.createPortal(
|
|
5294
|
-
/* @__PURE__ */ Te(
|
|
5294
|
+
/* @__PURE__ */ Te(bi, { className: "content-copy-btn", children: /* @__PURE__ */ Te(
|
|
5295
5295
|
ua,
|
|
5296
5296
|
{
|
|
5297
5297
|
icon: N ? /* @__PURE__ */ Te(fa, {}) : void 0,
|
|
5298
5298
|
colorScheme: "blank",
|
|
5299
|
+
clipboardCopyLabel: "Copy heading link",
|
|
5299
5300
|
clipboardContent: j,
|
|
5300
5301
|
onSaveToClipboard: C,
|
|
5301
5302
|
hideSuccessTooltip: !!C
|
|
@@ -5305,7 +5306,7 @@ const ui = ii(), si = new RegExp(tt, "gi"), di = new RegExp(
|
|
|
5305
5306
|
);
|
|
5306
5307
|
})
|
|
5307
5308
|
] });
|
|
5308
|
-
},
|
|
5309
|
+
}, bi = At.div`
|
|
5309
5310
|
position: absolute;
|
|
5310
5311
|
display: inline-block;
|
|
5311
5312
|
margin-inline-start: var(--space-sm);
|
|
@@ -5325,7 +5326,7 @@ const ui = ii(), si = new RegExp(tt, "gi"), di = new RegExp(
|
|
|
5325
5326
|
font-size: 12px;
|
|
5326
5327
|
line-height: 16px;
|
|
5327
5328
|
}
|
|
5328
|
-
`,
|
|
5329
|
+
`, vi = At(sa).attrs({ as: "div" })`
|
|
5329
5330
|
${({ createAnchors: e }) => e ? `
|
|
5330
5331
|
h1, h2, h3, h4, h5, h6 {
|
|
5331
5332
|
:hover button {
|
|
@@ -5919,6 +5920,6 @@ const ui = ii(), si = new RegExp(tt, "gi"), di = new RegExp(
|
|
|
5919
5920
|
}
|
|
5920
5921
|
`;
|
|
5921
5922
|
export {
|
|
5922
|
-
|
|
5923
|
+
Si as ContentRenderer
|
|
5923
5924
|
};
|
|
5924
5925
|
//# sourceMappingURL=index.es.js.map
|