@oxide/react-asciidoc 1.0.1 → 1.0.2--canary.2fabc82.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.
@@ -262,18 +262,18 @@ function $e() {
262
262
  if (L && g && typeof L.stack == "string") {
263
263
  for (var h = L.stack.split(`
264
264
  `), T = g.stack.split(`
265
- `), N = h.length - 1, k = T.length - 1; N >= 1 && k >= 0 && h[N] !== T[k]; )
265
+ `), A = h.length - 1, k = T.length - 1; A >= 1 && k >= 0 && h[A] !== T[k]; )
266
266
  k--;
267
- for (; N >= 1 && k >= 0; N--, k--)
268
- if (h[N] !== T[k]) {
269
- if (N !== 1 || k !== 1)
267
+ for (; A >= 1 && k >= 0; A--, k--)
268
+ if (h[A] !== T[k]) {
269
+ if (A !== 1 || k !== 1)
270
270
  do
271
- if (N--, k--, k < 0 || h[N] !== T[k]) {
271
+ if (A--, k--, k < 0 || h[A] !== T[k]) {
272
272
  var _ = `
273
- ` + h[N].replace(" at new ", " at ");
273
+ ` + h[A].replace(" at new ", " at ");
274
274
  return t.displayName && _.includes("<anonymous>") && (_ = _.replace("<anonymous>", t.displayName)), typeof t == "function" && sr.set(t, _), _;
275
275
  }
276
- while (N >= 1 && k >= 0);
276
+ while (A >= 1 && k >= 0);
277
277
  break;
278
278
  }
279
279
  }
@@ -339,8 +339,8 @@ function $e() {
339
339
  throw T.name = "Invariant Violation", T;
340
340
  }
341
341
  h = t[v](l, v, g, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
342
- } catch (N) {
343
- h = N;
342
+ } catch (A) {
343
+ h = A;
344
344
  }
345
345
  h && !(h instanceof Error) && (lr(x), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", g || "React class", p, v, typeof h), lr(null)), h instanceof Error && !(h.message in Pr) && (Pr[h.message] = !0, lr(x), E("Failed %s type: %s", p, h.message), lr(null));
346
346
  }
@@ -457,9 +457,9 @@ function $e() {
457
457
  for (q in l)
458
458
  Z.call(l, q) && !qe.hasOwnProperty(q) && (v[q] = l[q]);
459
459
  if (t && t.defaultProps) {
460
- var N = t.defaultProps;
461
- for (q in N)
462
- v[q] === void 0 && (v[q] = N[q]);
460
+ var A = t.defaultProps;
461
+ for (q in A)
462
+ v[q] === void 0 && (v[q] = A[q]);
463
463
  }
464
464
  if (h || T) {
465
465
  var k = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
@@ -587,8 +587,8 @@ Check the top-level render call using <` + p + ">.");
587
587
  (t === void 0 || typeof t == "object" && t !== null && Object.keys(t).length === 0) && (h += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
588
588
  var T = Re();
589
589
  T ? h += T : h += Gr();
590
- var N;
591
- t === null ? N = "null" : gr(t) ? N = "array" : t !== void 0 && t.$$typeof === a ? (N = "<" + (U(t.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : N = typeof t, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", N, h);
590
+ var A;
591
+ t === null ? A = "null" : gr(t) ? A = "array" : t !== void 0 && t.$$typeof === a ? (A = "<" + (U(t.type) || "Unknown") + " />", h = " Did you accidentally export a JSX literal instead of a component?") : A = typeof t, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", A, h);
592
592
  }
593
593
  var k = Se(t, l, p, x, q);
594
594
  if (k == null)
@@ -724,7 +724,7 @@ var ae = { exports: {} };
724
724
  })();
725
725
  })(ae);
726
726
  var Ye = ae.exports;
727
- const A = /* @__PURE__ */ Be(Ye);
727
+ const N = /* @__PURE__ */ Be(Ye);
728
728
  var nr = {}, cr = {};
729
729
  Object.defineProperty(cr, "__esModule", { value: !0 });
730
730
  cr.bodyRegExps = { xml: /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g, html4: /&notin;|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g, html5: /&centerdot;|&copysr;|&divideontimes;|&gtcc;|&gtcir;|&gtdot;|&gtlPar;|&gtquest;|&gtrapprox;|&gtrarr;|&gtrdot;|&gtreqless;|&gtreqqless;|&gtrless;|&gtrsim;|&ltcc;|&ltcir;|&ltdot;|&lthree;|&ltimes;|&ltlarr;|&ltquest;|&ltrPar;|&ltri;|&ltrie;|&ltrif;|&notin;|&notinE;|&notindot;|&notinva;|&notinvb;|&notinvc;|&notni;|&notniva;|&notnivb;|&notnivc;|&parallel;|&timesb;|&timesbar;|&timesd;|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g };
@@ -1005,7 +1005,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1005
1005
  return /* @__PURE__ */ e.jsxs(
1006
1006
  "div",
1007
1007
  {
1008
- className: A("qlist qanda", r.role),
1008
+ className: N("qlist qanda", r.role),
1009
1009
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1010
1010
  children: [
1011
1011
  /* @__PURE__ */ e.jsx(S, { text: r.title }),
@@ -1022,7 +1022,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1022
1022
  );
1023
1023
  if (r.style === "horizontal") {
1024
1024
  const o = r.attributes.labelwidth, n = r.attributes.itemwidth;
1025
- return /* @__PURE__ */ e.jsxs("div", { className: A("hdlist", r.role), children: [
1025
+ return /* @__PURE__ */ e.jsxs("div", { className: N("hdlist", r.role), children: [
1026
1026
  /* @__PURE__ */ e.jsx(S, { text: r.title }),
1027
1027
  /* @__PURE__ */ e.jsxs("table", { children: [
1028
1028
  (o || n) && /* @__PURE__ */ e.jsxs("colgroup", { children: [
@@ -1051,7 +1051,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1051
1051
  /* @__PURE__ */ e.jsx(
1052
1052
  "td",
1053
1053
  {
1054
- className: A(
1054
+ className: N(
1055
1055
  "hdlist1",
1056
1056
  er(r.attributes, "strong") ? "strong" : ""
1057
1057
  ),
@@ -1070,7 +1070,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1070
1070
  ] })
1071
1071
  ] });
1072
1072
  } else
1073
- return /* @__PURE__ */ e.jsxs("div", { className: A("dlist", r.style, r.role), children: [
1073
+ return /* @__PURE__ */ e.jsxs("div", { className: N("dlist", r.style, r.role), children: [
1074
1074
  /* @__PURE__ */ e.jsx(S, { text: r.title }),
1075
1075
  /* @__PURE__ */ e.jsx("dl", { children: r.items.map((o, n) => {
1076
1076
  const { terms: u, dd: m } = a(o);
@@ -1188,7 +1188,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1188
1188
  return /* @__PURE__ */ e.jsxs(
1189
1189
  "div",
1190
1190
  {
1191
- className: A("exampleblock", r.role),
1191
+ className: N("exampleblock", r.role),
1192
1192
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1193
1193
  ...r.id ? { id: r.id } : {},
1194
1194
  children: [
@@ -1208,7 +1208,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1208
1208
  ),
1209
1209
  G(
1210
1210
  `h${r.level + 1}`,
1211
- { className: A(r.role, r.style) },
1211
+ { className: N(r.role, r.style) },
1212
1212
  D(r.title || "")
1213
1213
  )
1214
1214
  ] }), ct = ({ node: r }) => {
@@ -1247,7 +1247,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1247
1247
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1248
1248
  children: [
1249
1249
  /* @__PURE__ */ e.jsx(S, { text: r.title }),
1250
- /* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("pre", { className: A("highlight", o ? " nowrap" : ""), children: n ? /* @__PURE__ */ e.jsx(
1250
+ /* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("pre", { className: N("highlight", o ? " nowrap" : ""), children: n ? /* @__PURE__ */ e.jsx(
1251
1251
  "code",
1252
1252
  {
1253
1253
  className: n ? `language-${n}` : "",
@@ -1268,7 +1268,15 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1268
1268
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1269
1269
  children: [
1270
1270
  /* @__PURE__ */ e.jsx(S, { text: r.title }),
1271
- /* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx("pre", { className: o ? " nowrap" : "", children: /* @__PURE__ */ e.jsx("code", { dangerouslySetInnerHTML: { __html: r.source } }) }) })
1271
+ /* @__PURE__ */ e.jsx("div", { className: "content", children: /* @__PURE__ */ e.jsx(
1272
+ "pre",
1273
+ {
1274
+ className: N("highlight !block", o ? "nowrap" : ""),
1275
+ dangerouslySetInnerHTML: {
1276
+ __html: r.content || ""
1277
+ }
1278
+ }
1279
+ ) })
1272
1280
  ]
1273
1281
  }
1274
1282
  );
@@ -1288,7 +1296,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1288
1296
  }, dt = ({ node: r }) => /* @__PURE__ */ e.jsxs(
1289
1297
  "div",
1290
1298
  {
1291
- className: A("olist", r.role, r.style),
1299
+ className: N("olist", r.role, r.style),
1292
1300
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1293
1301
  children: [
1294
1302
  /* @__PURE__ */ e.jsx(S, { text: r.title }),
@@ -1311,7 +1319,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1311
1319
  return a === "abstract" ? /* @__PURE__ */ e.jsxs(
1312
1320
  "div",
1313
1321
  {
1314
- className: A("quoteblock abstract", r.role),
1322
+ className: N("quoteblock abstract", r.role),
1315
1323
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1316
1324
  children: [
1317
1325
  /* @__PURE__ */ e.jsx(S, { text: r.title }),
@@ -1321,7 +1329,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1321
1329
  ) : /* @__PURE__ */ e.jsxs(
1322
1330
  "div",
1323
1331
  {
1324
- className: A("openblock", a && a !== "open" ? a : "", r.role),
1332
+ className: N("openblock", a && a !== "open" ? a : "", r.role),
1325
1333
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1326
1334
  children: [
1327
1335
  /* @__PURE__ */ e.jsx(S, { text: r.title }),
@@ -1333,7 +1341,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1333
1341
  "div",
1334
1342
  {
1335
1343
  ...r.id ? { id: r.id } : {},
1336
- className: A("paragraph", r.role),
1344
+ className: N("paragraph", r.role),
1337
1345
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1338
1346
  children: [
1339
1347
  /* @__PURE__ */ e.jsx(S, { text: r.title }),
@@ -1362,7 +1370,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1362
1370
  "div",
1363
1371
  {
1364
1372
  ...r.id ? { id: r.id } : {},
1365
- className: A("quoteblock", r.role),
1373
+ className: N("quoteblock", r.role),
1366
1374
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1367
1375
  children: [
1368
1376
  /* @__PURE__ */ e.jsx(S, { text: r.title }),
@@ -1404,7 +1412,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1404
1412
  /* @__PURE__ */ e.jsx(
1405
1413
  "h1",
1406
1414
  {
1407
- className: A("sect0", r.role),
1415
+ className: N("sect0", r.role),
1408
1416
  "data-sectnum": n,
1409
1417
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1410
1418
  children: o
@@ -1414,7 +1422,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1414
1422
  ] }) : /* @__PURE__ */ e.jsxs(
1415
1423
  "div",
1416
1424
  {
1417
- className: A(`sect${r.level}`, r.role),
1425
+ className: N(`sect${r.level}`, r.role),
1418
1426
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1419
1427
  children: [
1420
1428
  G(`h${r.level + 1}`, { "data-sectnum": n }, o),
@@ -1425,7 +1433,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1425
1433
  }, yt = ({ node: r }) => /* @__PURE__ */ e.jsx(
1426
1434
  "div",
1427
1435
  {
1428
- className: A("sidebarblock", r.role),
1436
+ className: N("sidebarblock", r.role),
1429
1437
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1430
1438
  children: /* @__PURE__ */ e.jsxs("div", { className: "content", children: [
1431
1439
  /* @__PURE__ */ e.jsx(S, { text: r.title }),
@@ -1441,7 +1449,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1441
1449
  n && o.push("stripes-" + n);
1442
1450
  let u = er(r.attributes, "autowidth"), m = parseInt(`${r.attributes.tablepcwidth}`), i = null;
1443
1451
  u && !P(r.attributes, "width") ? o.push("fit-content") : m === 100 ? o.push("stretch") : i = `${m}%`, P(r.attributes, "float") && o.push(`${r.attributes.float}`), r.role && o.push(r.role || "");
1444
- const c = (d) => A(
1452
+ const c = (d) => N(
1445
1453
  "tableblock",
1446
1454
  `halign-${d.attributes.halign}`,
1447
1455
  `valign-${d.attributes.valign}`
@@ -1449,7 +1457,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1449
1457
  return /* @__PURE__ */ e.jsxs(
1450
1458
  "table",
1451
1459
  {
1452
- className: A("tableblock", ...o),
1460
+ className: N("tableblock", ...o),
1453
1461
  style: { width: i || void 0 },
1454
1462
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1455
1463
  children: [
@@ -1511,7 +1519,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1511
1519
  const { document: a } = I(), s = a.attributes || {}, o = a.sections && a.sections.length > 0;
1512
1520
  let n = r.id || "toc";
1513
1521
  const u = r.title ? r.title : s["toc-title"], m = s["toc-placement"], i = s.toc !== void 0, c = r.attributes.levels ? parseInt(`${r.attributes.levels}`) : void 0;
1514
- return m === "macro" && o && i ? /* @__PURE__ */ e.jsxs("div", { id: n, className: A("toc", r.role), children: [
1522
+ return m === "macro" && o && i ? /* @__PURE__ */ e.jsxs("div", { id: n, className: N("toc", r.role), children: [
1515
1523
  /* @__PURE__ */ e.jsx("div", { id: `${n}title`, className: "title", children: D(`${u}` || "") }),
1516
1524
  a.sections && /* @__PURE__ */ e.jsx(ur, { sections: a.sections, opts: { tocLevels: c } })
1517
1525
  ] }) : null;
@@ -1521,7 +1529,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1521
1529
  "div",
1522
1530
  {
1523
1531
  ...r.id ? { id: r.id } : {},
1524
- className: A("ulist", r.style, r.role, a && "checklist"),
1532
+ className: N("ulist", r.style, r.role, a && "checklist"),
1525
1533
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1526
1534
  children: [
1527
1535
  /* @__PURE__ */ e.jsx(S, { text: r.title }),
@@ -1529,7 +1537,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1529
1537
  a && s.attributes.checkbox && /* @__PURE__ */ e.jsx(
1530
1538
  "i",
1531
1539
  {
1532
- className: A(
1540
+ className: N(
1533
1541
  "fa",
1534
1542
  s.attributes.checked ? "fa-check-square-o" : "fa-square-o"
1535
1543
  )
@@ -1550,7 +1558,7 @@ const er = (r, a) => r[`${a}-option`] !== void 0, or = (r, a, s = void 0, o, n)
1550
1558
  "div",
1551
1559
  {
1552
1560
  ...r.id ? { id: r.id } : {},
1553
- className: A("verseblock", r.role),
1561
+ className: N("verseblock", r.role),
1554
1562
  ...r.lineNumber ? { "data-lineno": r.lineNumber } : {},
1555
1563
  children: [
1556
1564
  /* @__PURE__ */ e.jsx(S, { text: r.title }),