@xyd-js/content 0.0.0-build-2acf05c-20251207022018 → 0.0.0-build-83b15db-20251213220910

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/vite.js CHANGED
@@ -28,9 +28,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  mod
29
29
  ));
30
30
 
31
- // ../../node_modules/.pnpm/react@19.2.1/node_modules/react/cjs/react.production.js
31
+ // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.production.js
32
32
  var require_react_production = __commonJS({
33
- "../../node_modules/.pnpm/react@19.2.1/node_modules/react/cjs/react.production.js"(exports) {
33
+ "../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.production.js"(exports) {
34
34
  "use strict";
35
35
  var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
36
36
  var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
@@ -465,13 +465,13 @@ var require_react_production = __commonJS({
465
465
  exports.useTransition = function() {
466
466
  return ReactSharedInternals.H.useTransition();
467
467
  };
468
- exports.version = "19.2.1";
468
+ exports.version = "19.2.3";
469
469
  }
470
470
  });
471
471
 
472
- // ../../node_modules/.pnpm/react@19.2.1/node_modules/react/cjs/react.development.js
472
+ // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.development.js
473
473
  var require_react_development = __commonJS({
474
- "../../node_modules/.pnpm/react@19.2.1/node_modules/react/cjs/react.development.js"(exports, module) {
474
+ "../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.development.js"(exports, module) {
475
475
  "use strict";
476
476
  "production" !== process.env.NODE_ENV && (function() {
477
477
  function defineDeprecationWarning(methodName, info) {
@@ -1435,15 +1435,15 @@ var require_react_development = __commonJS({
1435
1435
  exports.useTransition = function() {
1436
1436
  return resolveDispatcher().useTransition();
1437
1437
  };
1438
- exports.version = "19.2.1";
1438
+ exports.version = "19.2.3";
1439
1439
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1440
1440
  })();
1441
1441
  }
1442
1442
  });
1443
1443
 
1444
- // ../../node_modules/.pnpm/react@19.2.1/node_modules/react/index.js
1444
+ // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js
1445
1445
  var require_react = __commonJS({
1446
- "../../node_modules/.pnpm/react@19.2.1/node_modules/react/index.js"(exports, module) {
1446
+ "../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js"(exports, module) {
1447
1447
  "use strict";
1448
1448
  if (process.env.NODE_ENV === "production") {
1449
1449
  module.exports = require_react_production();
@@ -2721,6 +2721,9 @@ function injectCodeMeta(node, metaString) {
2721
2721
  if ((attributes2 == null ? void 0 : attributes2.title) === "false") {
2722
2722
  props.title = "";
2723
2723
  }
2724
+ if (attributes2) {
2725
+ props.attributes = JSON.stringify(attributes2);
2726
+ }
2724
2727
  node.data.hProperties = {
2725
2728
  ...node.data.hProperties || {},
2726
2729
  ...props
@@ -10704,11 +10707,12 @@ import fs3, { writeFile } from "fs/promises";
10704
10707
  import { VFile as VFile2 } from "vfile";
10705
10708
  import { compile as mdxCompile } from "@mdx-js/mdx";
10706
10709
  var ContentFS = class {
10707
- constructor(settings, remarkPlugins2, rehypePlugins, recmaPlugins) {
10710
+ constructor(settings, remarkPlugins2, rehypePlugins, recmaPlugins, remarkRehypeHandlers) {
10708
10711
  this.settings = settings;
10709
10712
  this.remarkPlugins = remarkPlugins2;
10710
10713
  this.rehypePlugins = rehypePlugins;
10711
10714
  this.recmaPlugins = recmaPlugins;
10715
+ this.remarkRehypeHandlers = remarkRehypeHandlers;
10712
10716
  }
10713
10717
  async compile(filePath) {
10714
10718
  await fs3.access(filePath);
@@ -10727,7 +10731,12 @@ var ContentFS = class {
10727
10731
  recmaPlugins: this.recmaPlugins || [],
10728
10732
  development: false,
10729
10733
  outputFormat: "function-body",
10730
- jsx: false
10734
+ jsx: false,
10735
+ remarkRehypeOptions: {
10736
+ handlers: {
10737
+ ...this.remarkRehypeHandlers || {}
10738
+ }
10739
+ }
10731
10740
  // jsx: false,
10732
10741
  // outputFormat: "program", // needed for import/export
10733
10742
  });
@@ -10745,8 +10754,13 @@ var ContentFS = class {
10745
10754
  recmaPlugins: [],
10746
10755
  development: false,
10747
10756
  jsx: true,
10748
- outputFormat: "program"
10757
+ outputFormat: "program",
10749
10758
  // needed for import/export
10759
+ remarkRehypeOptions: {
10760
+ handlers: {
10761
+ ...this.remarkRehypeHandlers || {}
10762
+ }
10763
+ }
10750
10764
  });
10751
10765
  const tempPath = join3(tmpdir(), `mdx-${Date.now()}.mjs`);
10752
10766
  await writeFile(tempPath, String(compiled), "utf8");
@@ -10779,7 +10793,7 @@ function mdCodeRehype(settings) {
10779
10793
  console.time("plugin:mdServerHighlight");
10780
10794
  const promises = [];
10781
10795
  visit11(tree, "element", (node) => {
10782
- var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F;
10796
+ var _a2, _b2, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I;
10783
10797
  if (node.tagName === "pre") {
10784
10798
  const code = node.children[0].children[0].value;
10785
10799
  const lang = (_e = (_d = (_c = (_b2 = (_a2 = node.children) == null ? void 0 : _a2[0]) == null ? void 0 : _b2.properties) == null ? void 0 : _c.className) == null ? void 0 : _d[0]) == null ? void 0 : _e.replace("language-", "");
@@ -10789,8 +10803,9 @@ function mdCodeRehype(settings) {
10789
10803
  const descriptionHead = (_t = (_s = (_r = node.children) == null ? void 0 : _r[0]) == null ? void 0 : _s.properties) == null ? void 0 : _t.descriptionHead;
10790
10804
  const descriptionContent = (_w = (_v = (_u = node.children) == null ? void 0 : _u[0]) == null ? void 0 : _v.properties) == null ? void 0 : _w.descriptionContent;
10791
10805
  const descriptionIcon = (_z = (_y = (_x = node.children) == null ? void 0 : _x[0]) == null ? void 0 : _y.properties) == null ? void 0 : _z.descriptionIcon;
10792
- const meta = (_C = (_B = (_A = node.children) == null ? void 0 : _A[0]) == null ? void 0 : _B.properties) == null ? void 0 : _C.meta;
10793
- const title = (_F = (_E = (_D = node.children) == null ? void 0 : _D[0]) == null ? void 0 : _E.properties) == null ? void 0 : _F.title;
10806
+ let attributes2 = (_C = (_B = (_A = node.children) == null ? void 0 : _A[0]) == null ? void 0 : _B.properties) == null ? void 0 : _C.attributes;
10807
+ const meta = (_F = (_E = (_D = node.children) == null ? void 0 : _D[0]) == null ? void 0 : _E.properties) == null ? void 0 : _F.meta;
10808
+ const title = (_I = (_H = (_G = node.children) == null ? void 0 : _G[0]) == null ? void 0 : _H.properties) == null ? void 0 : _I.title;
10794
10809
  const promise = (async () => {
10795
10810
  var _a3, _b3;
10796
10811
  let descriptionContentCode = "";
@@ -10818,7 +10833,8 @@ function mdCodeRehype(settings) {
10818
10833
  size,
10819
10834
  descriptionHead,
10820
10835
  descriptionContent: descriptionContentCode,
10821
- descriptionIcon
10836
+ descriptionIcon,
10837
+ attributes: attributes2
10822
10838
  };
10823
10839
  })();
10824
10840
  promises.push(promise);