@quartz-community/tag-page 1.0.2 → 1.0.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.3
4
+
5
+ ### Patch Changes
6
+
7
+ - 046168d: Uses Quartz's own `preact` instead of bundling a second copy (`noExternal` in the build overrode the externals). Components now share one Preact instance with Quartz and other plugins, so hooks and context work across them, and the bundle is smaller.
8
+
3
9
  ## 1.0.2
4
10
 
5
11
  ### Patch Changes
@@ -1,3 +1,6 @@
1
+ import { jsx, jsxs, Fragment } from 'preact/jsx-runtime';
2
+ import { h } from 'preact';
3
+
1
4
  var __create = Object.create;
2
5
  var __defProp = Object.defineProperty;
3
6
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -56,8 +59,8 @@ var require_cjs = __commonJS({
56
59
  function updatePosition(str) {
57
60
  var lines = str.match(NEWLINE_REGEX);
58
61
  if (lines) lineno += lines.length;
59
- var i2 = str.lastIndexOf(NEWLINE);
60
- column = ~i2 ? str.length - i2 : column + str.length;
62
+ var i = str.lastIndexOf(NEWLINE);
63
+ column = ~i ? str.length - i : column + str.length;
61
64
  }
62
65
  function position3() {
63
66
  var start2 = { line: lineno, column };
@@ -88,22 +91,22 @@ var require_cjs = __commonJS({
88
91
  }
89
92
  }
90
93
  function match(re2) {
91
- var m2 = re2.exec(style);
92
- if (!m2) return;
93
- var str = m2[0];
94
+ var m = re2.exec(style);
95
+ if (!m) return;
96
+ var str = m[0];
94
97
  updatePosition(str);
95
98
  style = style.slice(str.length);
96
- return m2;
99
+ return m;
97
100
  }
98
101
  function whitespace2() {
99
102
  match(WHITESPACE_REGEX);
100
103
  }
101
104
  function comments(rules) {
102
- var c2;
105
+ var c;
103
106
  rules = rules || [];
104
- while (c2 = comment()) {
105
- if (c2 !== false) {
106
- rules.push(c2);
107
+ while (c = comment()) {
108
+ if (c !== false) {
109
+ rules.push(c);
107
110
  }
108
111
  }
109
112
  return rules;
@@ -111,18 +114,18 @@ var require_cjs = __commonJS({
111
114
  function comment() {
112
115
  var pos = position3();
113
116
  if (FORWARD_SLASH != style.charAt(0) || ASTERISK != style.charAt(1)) return;
114
- var i2 = 2;
115
- while (EMPTY_STRING != style.charAt(i2) && (ASTERISK != style.charAt(i2) || FORWARD_SLASH != style.charAt(i2 + 1))) {
116
- ++i2;
117
+ var i = 2;
118
+ while (EMPTY_STRING != style.charAt(i) && (ASTERISK != style.charAt(i) || FORWARD_SLASH != style.charAt(i + 1))) {
119
+ ++i;
117
120
  }
118
- i2 += 2;
119
- if (EMPTY_STRING === style.charAt(i2 - 1)) {
121
+ i += 2;
122
+ if (EMPTY_STRING === style.charAt(i - 1)) {
120
123
  return error("End of comment missing");
121
124
  }
122
- var str = style.slice(2, i2 - 2);
125
+ var str = style.slice(2, i - 2);
123
126
  column += 2;
124
127
  updatePosition(str);
125
- style = style.slice(i2);
128
+ style = style.slice(i);
126
129
  column += 2;
127
130
  return pos({
128
131
  type: TYPE_COMMENT,
@@ -272,9 +275,9 @@ function getDate(data) {
272
275
  return dates?.[defaultDateType];
273
276
  }
274
277
  function byDateAndAlphabetical() {
275
- return (f1, f22) => {
278
+ return (f1, f2) => {
276
279
  const f1Date = getDate(f1);
277
- const f2Date = getDate(f22);
280
+ const f2Date = getDate(f2);
278
281
  if (f1Date && f2Date) {
279
282
  return f2Date.getTime() - f1Date.getTime();
280
283
  } else if (f1Date && !f2Date) {
@@ -283,7 +286,7 @@ function byDateAndAlphabetical() {
283
286
  return 1;
284
287
  }
285
288
  const f1Title = (f1.frontmatter?.title ?? "").toLowerCase();
286
- const f2Title = (f22.frontmatter?.title ?? "").toLowerCase();
289
+ const f2Title = (f2.frontmatter?.title ?? "").toLowerCase();
287
290
  return f1Title.localeCompare(f2Title);
288
291
  };
289
292
  }
@@ -306,23 +309,23 @@ function joinSegments(...args) {
306
309
  }
307
310
  return joined;
308
311
  }
309
- function endsWith(s2, suffix) {
310
- return s2 === suffix || s2.endsWith("/" + suffix);
312
+ function endsWith(s, suffix) {
313
+ return s === suffix || s.endsWith("/" + suffix);
311
314
  }
312
- function trimSuffix(s2, suffix) {
313
- if (endsWith(s2, suffix)) {
314
- s2 = s2.slice(0, -suffix.length);
315
+ function trimSuffix(s, suffix) {
316
+ if (endsWith(s, suffix)) {
317
+ s = s.slice(0, -suffix.length);
315
318
  }
316
- return s2;
319
+ return s;
317
320
  }
318
- function stripSlashes(s2, onlyStripPrefix) {
319
- if (s2.startsWith("/")) {
320
- s2 = s2.substring(1);
321
+ function stripSlashes(s, onlyStripPrefix) {
322
+ if (s.startsWith("/")) {
323
+ s = s.substring(1);
321
324
  }
322
- if (!onlyStripPrefix && s2.endsWith("/")) {
323
- s2 = s2.slice(0, -1);
325
+ if (!onlyStripPrefix && s.endsWith("/")) {
326
+ s = s.slice(0, -1);
324
327
  }
325
- return s2;
328
+ return s;
326
329
  }
327
330
  function isFolderPath(fplike) {
328
331
  return fplike.endsWith("/") || endsWith(fplike, "index") || endsWith(fplike, "index.md") || endsWith(fplike, "index.html");
@@ -330,13 +333,13 @@ function isFolderPath(fplike) {
330
333
  function getAllSegmentPrefixes(path) {
331
334
  const segments = path.split("/");
332
335
  const results = [];
333
- for (let i2 = 0; i2 < segments.length; i2++) {
334
- results.push(segments.slice(0, i2 + 1).join("/"));
336
+ for (let i = 0; i < segments.length; i++) {
337
+ results.push(segments.slice(0, i + 1).join("/"));
335
338
  }
336
339
  return results;
337
340
  }
338
341
  function pathToRoot(slug2) {
339
- let rootPath = slug2.split("/").filter((x2) => x2 !== "").slice(0, -1).map((_2) => "..").join("/");
342
+ let rootPath = slug2.split("/").filter((x) => x !== "").slice(0, -1).map((_) => "..").join("/");
340
343
  if (rootPath.length === 0) {
341
344
  rootPath = ".";
342
345
  }
@@ -346,66 +349,26 @@ function resolveRelative(current, target) {
346
349
  const res = joinSegments(pathToRoot(current), simplifySlug(target));
347
350
  return res;
348
351
  }
349
-
350
- // node_modules/preact/dist/preact.mjs
351
- var n;
352
- var l;
353
- var u;
354
- var w = [];
355
- function k(l2, u3, t2) {
356
- var i2, r2, o2, e2 = {};
357
- for (o2 in u3) "key" == o2 ? i2 = u3[o2] : "ref" == o2 ? r2 = u3[o2] : e2[o2] = u3[o2];
358
- if (arguments.length > 2 && (e2.children = arguments.length > 3 ? n.call(arguments, 2) : t2), "function" == typeof l2 && null != l2.defaultProps) for (o2 in l2.defaultProps) void 0 === e2[o2] && (e2[o2] = l2.defaultProps[o2]);
359
- return x(l2, e2, i2, r2, null);
360
- }
361
- function x(n2, t2, i2, r2, o2) {
362
- var e2 = { type: n2, props: t2, key: i2, ref: r2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: null == o2 ? ++u : o2, __i: -1, __u: 0 };
363
- return null != l.vnode && l.vnode(e2), e2;
364
- }
365
- function S(n2) {
366
- return n2.children;
367
- }
368
- n = w.slice, l = { __e: function(n2, l2, u3, t2) {
369
- for (var i2, r2, o2; l2 = l2.__; ) if ((i2 = l2.__c) && !i2.__) try {
370
- if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
371
- } catch (l3) {
372
- n2 = l3;
373
- }
374
- throw n2;
375
- } }, u = 0, "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, Math.random().toString(8);
376
-
377
- // node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs
378
- var f2 = 0;
379
- function u2(e2, t2, n2, o2, i2, u3) {
380
- t2 || (t2 = {});
381
- var a2, c2, p2 = t2;
382
- if ("ref" in p2) for (c2 in p2 = {}, t2) "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
383
- var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f2, __i: -1, __u: 0, __source: i2, __self: u3 };
384
- if ("function" == typeof e2 && (a2 = e2.defaultProps)) for (c2 in a2) void 0 === p2[c2] && (p2[c2] = a2[c2]);
385
- return l.vnode && l.vnode(l2), l2;
386
- }
387
-
388
- // src/components/PageList.tsx
389
352
  function byDateAndAlphabeticalFolderFirst(_cfg) {
390
- return (f1, f22) => {
353
+ return (f1, f2) => {
391
354
  const f1IsFolder = isFolderPath(f1.slug ?? "");
392
- const f2IsFolder = isFolderPath(f22.slug ?? "");
355
+ const f2IsFolder = isFolderPath(f2.slug ?? "");
393
356
  if (f1IsFolder && !f2IsFolder) return -1;
394
357
  if (!f1IsFolder && f2IsFolder) return 1;
395
- if (f1.dates && f22.dates) {
396
- return (getDate(f22)?.getTime() ?? 0) - (getDate(f1)?.getTime() ?? 0);
397
- } else if (f1.dates && !f22.dates) {
358
+ if (f1.dates && f2.dates) {
359
+ return (getDate(f2)?.getTime() ?? 0) - (getDate(f1)?.getTime() ?? 0);
360
+ } else if (f1.dates && !f2.dates) {
398
361
  return -1;
399
- } else if (!f1.dates && f22.dates) {
362
+ } else if (!f1.dates && f2.dates) {
400
363
  return 1;
401
364
  }
402
365
  const f1Title = f1.frontmatter?.title?.toLowerCase() ?? "";
403
- const f2Title = f22.frontmatter?.title?.toLowerCase() ?? "";
366
+ const f2Title = f2.frontmatter?.title?.toLowerCase() ?? "";
404
367
  return f1Title.localeCompare(f2Title);
405
368
  };
406
369
  }
407
370
  function DateDisplay({ date, locale }) {
408
- return /* @__PURE__ */ u2("time", { dateTime: date.toISOString(), children: date.toLocaleDateString(locale, {
371
+ return /* @__PURE__ */ jsx("time", { dateTime: date.toISOString(), children: date.toLocaleDateString(locale, {
409
372
  year: "numeric",
410
373
  month: "short",
411
374
  day: "2-digit"
@@ -424,18 +387,18 @@ var PageList = ({
424
387
  list = list.slice(0, limit);
425
388
  }
426
389
  const fileSlug = fileData?.slug;
427
- return /* @__PURE__ */ u2("ul", { class: "section-ul", children: list.map((page) => {
390
+ return /* @__PURE__ */ jsx("ul", { class: "section-ul", children: list.map((page) => {
428
391
  const title = page.frontmatter?.title;
429
392
  const tags = page.frontmatter?.tags ?? [];
430
- return /* @__PURE__ */ u2("li", { class: "section-li", children: /* @__PURE__ */ u2("div", { class: "section", children: [
431
- /* @__PURE__ */ u2("p", { class: "meta", children: page.dates && getDate(page) && /* @__PURE__ */ u2(
393
+ return /* @__PURE__ */ jsx("li", { class: "section-li", children: /* @__PURE__ */ jsxs("div", { class: "section", children: [
394
+ /* @__PURE__ */ jsx("p", { class: "meta", children: page.dates && getDate(page) && /* @__PURE__ */ jsx(
432
395
  DateDisplay,
433
396
  {
434
397
  date: getDate(page),
435
398
  locale: cfg?.locale ?? "en-US"
436
399
  }
437
400
  ) }),
438
- /* @__PURE__ */ u2("div", { class: "desc", children: /* @__PURE__ */ u2("h3", { children: /* @__PURE__ */ u2(
401
+ /* @__PURE__ */ jsx("div", { class: "desc", children: /* @__PURE__ */ jsx("h3", { children: /* @__PURE__ */ jsx(
439
402
  "a",
440
403
  {
441
404
  href: resolveRelative(fileSlug ?? "", page.slug),
@@ -443,7 +406,7 @@ var PageList = ({
443
406
  children: title
444
407
  }
445
408
  ) }) }),
446
- /* @__PURE__ */ u2("ul", { class: "tags", children: tags.map((tag) => /* @__PURE__ */ u2("li", { children: /* @__PURE__ */ u2(
409
+ /* @__PURE__ */ jsx("ul", { class: "tags", children: tags.map((tag) => /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(
447
410
  "a",
448
411
  {
449
412
  class: "internal tag-link",
@@ -702,7 +665,7 @@ var aria = create({
702
665
  ariaValueText: null,
703
666
  role: null
704
667
  },
705
- transform(_2, property) {
668
+ transform(_, property) {
706
669
  return property === "role" ? property : "aria-" + property.slice(4).toLowerCase();
707
670
  }
708
671
  });
@@ -1667,7 +1630,7 @@ var xlink = create({
1667
1630
  xLinkType: null
1668
1631
  },
1669
1632
  space: "xlink",
1670
- transform(_2, property) {
1633
+ transform(_, property) {
1671
1634
  return "xlink:" + property.slice(5).toLowerCase();
1672
1635
  }
1673
1636
  });
@@ -1684,7 +1647,7 @@ var xmlns = create({
1684
1647
  var xml = create({
1685
1648
  properties: { xmlBase: null, xmlLang: null, xmlSpace: null },
1686
1649
  space: "xml",
1687
- transform(_2, property) {
1650
+ transform(_, property) {
1688
1651
  return "xml:" + property.slice(3).toLowerCase();
1689
1652
  }
1690
1653
  });
@@ -2074,7 +2037,7 @@ function root(state, node, key) {
2074
2037
  addChildren(props, createChildren(state, node));
2075
2038
  return state.create(node, state.Fragment, props, key);
2076
2039
  }
2077
- function text(_2, node) {
2040
+ function text(_, node) {
2078
2041
  return node.value;
2079
2042
  }
2080
2043
  function addNode(state, props, type, node) {
@@ -2090,11 +2053,11 @@ function addChildren(props, children) {
2090
2053
  }
2091
2054
  }
2092
2055
  }
2093
- function productionCreate(_2, jsx, jsxs) {
2056
+ function productionCreate(_, jsx4, jsxs4) {
2094
2057
  return create2;
2095
- function create2(_3, type, props, key) {
2058
+ function create2(_2, type, props, key) {
2096
2059
  const isStaticChildren = Array.isArray(props.children);
2097
- const fn = isStaticChildren ? jsxs : jsx;
2060
+ const fn = isStaticChildren ? jsxs4 : jsx4;
2098
2061
  return key ? fn(type, props, key) : fn(type, props);
2099
2062
  }
2100
2063
  }
@@ -2311,23 +2274,21 @@ function transformStyleToCssCasing(from) {
2311
2274
  function toDash($0) {
2312
2275
  return "-" + $0.toLowerCase();
2313
2276
  }
2314
-
2315
- // node_modules/@quartz-community/utils/dist/jsx.js
2316
2277
  function childrenToString(children) {
2317
2278
  if (typeof children === "string") return children;
2318
2279
  if (Array.isArray(children)) return children.map(childrenToString).join("");
2319
2280
  return String(children ?? "");
2320
2281
  }
2321
2282
  var builtinComponents = {
2322
- table: (props) => /* @__PURE__ */ u2("div", { class: "table-container", children: /* @__PURE__ */ u2("table", { ...props }) }),
2323
- style: ({ children, ...rest }) => k("style", { ...rest, dangerouslySetInnerHTML: { __html: childrenToString(children) } }),
2324
- script: ({ children, ...rest }) => k("script", { ...rest, dangerouslySetInnerHTML: { __html: childrenToString(children) } })
2283
+ table: (props) => /* @__PURE__ */ jsx("div", { class: "table-container", children: /* @__PURE__ */ jsx("table", { ...props }) }),
2284
+ style: ({ children, ...rest }) => h("style", { ...rest, dangerouslySetInnerHTML: { __html: childrenToString(children) } }),
2285
+ script: ({ children, ...rest }) => h("script", { ...rest, dangerouslySetInnerHTML: { __html: childrenToString(children) } })
2325
2286
  };
2326
2287
  function htmlToJsx(tree, components) {
2327
2288
  return toJsxRuntime(tree, {
2328
- Fragment: S,
2329
- jsx: u2,
2330
- jsxs: u2,
2289
+ Fragment,
2290
+ jsx: jsx,
2291
+ jsxs: jsxs,
2331
2292
  elementAttributeNameCase: "html",
2332
2293
  components: { ...builtinComponents, ...components }
2333
2294
  });
@@ -2801,8 +2762,8 @@ function i18n(locale) {
2801
2762
  // src/util/tags.ts
2802
2763
  function hasChildTags(tag, allTags) {
2803
2764
  const prefix = `${tag}/`;
2804
- for (const t2 of allTags) {
2805
- if (t2.startsWith(prefix)) return true;
2765
+ for (const t of allTags) {
2766
+ if (t.startsWith(prefix)) return true;
2806
2767
  }
2807
2768
  return false;
2808
2769
  }
@@ -2813,13 +2774,11 @@ function tagPageSlug(tag, allTags) {
2813
2774
 
2814
2775
  // src/components/styles/listPage.scss
2815
2776
  var listPage_default = "ul.section-ul {\n list-style: none;\n margin-top: 2em;\n padding-left: 0;\n}\n\nli.section-li {\n margin-bottom: 1em;\n}\nli.section-li > .section {\n display: grid;\n grid-template-columns: fit-content(8em) 3fr 1fr;\n}\n@media all and (max-width: 600px) {\n li.section-li > .section > .tags {\n display: none;\n }\n}\nli.section-li > .section > .desc > h3 > a {\n background-color: transparent;\n}\nli.section-li > .section .meta {\n margin: 0 1em 0 0;\n opacity: 0.6;\n}\n\n.popover .section {\n grid-template-columns: fit-content(8em) 1fr !important;\n}\n.popover .section > .tags {\n display: none;\n}";
2816
-
2817
- // src/components/TagContent.tsx
2818
2777
  var defaultOptions = {
2819
2778
  numPages: 10
2820
2779
  };
2821
2780
  function concatenateResources(...resources) {
2822
- const result = resources.filter((r2) => r2 !== void 0).flat();
2781
+ const result = resources.filter((r) => r !== void 0).flat();
2823
2782
  return result.length === 0 ? void 0 : result;
2824
2783
  }
2825
2784
  function isListed(file) {
@@ -2837,8 +2796,8 @@ var TagContent_default = ((opts) => {
2837
2796
  }
2838
2797
  let tag = simplifySlug(slug.slice("tags/".length));
2839
2798
  if (tag !== "/" && tag.endsWith("/")) tag = tag.slice(0, -1);
2840
- const allPagesWithTag = (t2) => allFiles.filter(isListed).filter(
2841
- (file) => (file.frontmatter?.tags ?? []).flatMap(getAllSegmentPrefixes).includes(t2)
2799
+ const allPagesWithTag = (t) => allFiles.filter(isListed).filter(
2800
+ (file) => (file.frontmatter?.tags ?? []).flatMap(getAllSegmentPrefixes).includes(t)
2842
2801
  );
2843
2802
  const hastRoot = tree;
2844
2803
  const content = hastRoot.children.length === 0 ? fd.description : htmlToJsx(hastRoot);
@@ -2849,16 +2808,16 @@ var TagContent_default = ((opts) => {
2849
2808
  ...new Set(
2850
2809
  allFiles.filter(isListed).flatMap((data) => data.frontmatter?.tags ?? []).flatMap(getAllSegmentPrefixes)
2851
2810
  )
2852
- ].sort((a2, b2) => a2.localeCompare(b2));
2811
+ ].sort((a, b) => a.localeCompare(b));
2853
2812
  const tagItemMap = /* @__PURE__ */ new Map();
2854
- for (const t2 of tags) {
2855
- tagItemMap.set(t2, allPagesWithTag(t2));
2813
+ for (const t of tags) {
2814
+ tagItemMap.set(t, allPagesWithTag(t));
2856
2815
  }
2857
- return /* @__PURE__ */ u2("div", { class: "popover-hint", children: [
2858
- /* @__PURE__ */ u2("article", { class: classes, children: /* @__PURE__ */ u2("div", { class: "markdown-preview-view markdown-rendered", children: /* @__PURE__ */ u2("p", { children: content }) }) }),
2859
- /* @__PURE__ */ u2("p", { children: i18n(locale).pages.tagContent.totalTags({ count: tags.length }) }),
2860
- /* @__PURE__ */ u2("div", { children: tags.map((t2) => {
2861
- const pages = tagItemMap.get(t2);
2816
+ return /* @__PURE__ */ jsxs("div", { class: "popover-hint", children: [
2817
+ /* @__PURE__ */ jsx("article", { class: classes, children: /* @__PURE__ */ jsx("div", { class: "markdown-preview-view markdown-rendered", children: /* @__PURE__ */ jsx("p", { children: content }) }) }),
2818
+ /* @__PURE__ */ jsx("p", { children: i18n(locale).pages.tagContent.totalTags({ count: tags.length }) }),
2819
+ /* @__PURE__ */ jsx("div", { children: tags.map((t) => {
2820
+ const pages = tagItemMap.get(t);
2862
2821
  const listProps = {
2863
2822
  ...props,
2864
2823
  allFiles: pages
@@ -2869,21 +2828,21 @@ var TagContent_default = ((opts) => {
2869
2828
  sort: options?.sort
2870
2829
  });
2871
2830
  const contentPage = allFiles.find(
2872
- (file) => file.slug === `tags/${t2}` || file.slug === `tags/${t2}/index`
2831
+ (file) => file.slug === `tags/${t}` || file.slug === `tags/${t}/index`
2873
2832
  );
2874
2833
  const root2 = contentPage?.filePath ? contentPage?.htmlAst : void 0;
2875
2834
  const tagDesc = !root2 || root2.children.length === 0 ? contentPage?.description : htmlToJsx(root2);
2876
- const tagListingPage = contentPage?.slug ?? tagPageSlug(t2, tags);
2835
+ const tagListingPage = contentPage?.slug ?? tagPageSlug(t, tags);
2877
2836
  const href = resolveRelative(slug, tagListingPage);
2878
- return /* @__PURE__ */ u2("div", { children: [
2879
- /* @__PURE__ */ u2("h2", { children: /* @__PURE__ */ u2("a", { class: "internal tag-link", href, children: t2 }) }),
2880
- tagDesc && /* @__PURE__ */ u2("p", { children: tagDesc }),
2881
- /* @__PURE__ */ u2("div", { class: "page-listing", children: [
2882
- /* @__PURE__ */ u2("p", { children: [
2837
+ return /* @__PURE__ */ jsxs("div", { children: [
2838
+ /* @__PURE__ */ jsx("h2", { children: /* @__PURE__ */ jsx("a", { class: "internal tag-link", href, children: t }) }),
2839
+ tagDesc && /* @__PURE__ */ jsx("p", { children: tagDesc }),
2840
+ /* @__PURE__ */ jsxs("div", { class: "page-listing", children: [
2841
+ /* @__PURE__ */ jsxs("p", { children: [
2883
2842
  i18n(locale).pages.tagContent.itemsUnderTag({ count: pages.length }),
2884
- pages.length > options.numPages && /* @__PURE__ */ u2(S, { children: [
2843
+ pages.length > options.numPages && /* @__PURE__ */ jsxs(Fragment, { children: [
2885
2844
  " ",
2886
- /* @__PURE__ */ u2("span", { children: i18n(locale).pages.tagContent.showingFirst({
2845
+ /* @__PURE__ */ jsx("span", { children: i18n(locale).pages.tagContent.showingFirst({
2887
2846
  count: options.numPages
2888
2847
  }) })
2889
2848
  ] })
@@ -2903,11 +2862,11 @@ var TagContent_default = ((opts) => {
2903
2862
  ...listProps,
2904
2863
  sort: options?.sort
2905
2864
  });
2906
- return /* @__PURE__ */ u2("div", { class: "popover-hint", children: [
2907
- /* @__PURE__ */ u2("article", { class: classes, children: /* @__PURE__ */ u2("div", { class: "markdown-preview-view markdown-rendered", children: content }) }),
2908
- /* @__PURE__ */ u2("div", { class: "page-listing", children: [
2909
- /* @__PURE__ */ u2("p", { children: i18n(locale).pages.tagContent.itemsUnderTag({ count: pages.length }) }),
2910
- /* @__PURE__ */ u2("div", { children: pageListContent })
2865
+ return /* @__PURE__ */ jsxs("div", { class: "popover-hint", children: [
2866
+ /* @__PURE__ */ jsx("article", { class: classes, children: /* @__PURE__ */ jsx("div", { class: "markdown-preview-view markdown-rendered", children: content }) }),
2867
+ /* @__PURE__ */ jsxs("div", { class: "page-listing", children: [
2868
+ /* @__PURE__ */ jsx("p", { children: i18n(locale).pages.tagContent.itemsUnderTag({ count: pages.length }) }),
2869
+ /* @__PURE__ */ jsx("div", { children: pageListContent })
2911
2870
  ] })
2912
2871
  ] });
2913
2872
  }