@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/CHANGELOG.md CHANGED
@@ -1,14 +1,14 @@
1
1
  # @xyd-js/content
2
2
 
3
- ## 0.0.0-build-2acf05c-20251207022018
3
+ ## 0.0.0-build-83b15db-20251213220910
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - update all packages
8
8
  - Updated dependencies
9
- - @xyd-js/components@0.0.0-build-2acf05c-20251207022018
10
- - @xyd-js/context@0.0.0-build-2acf05c-20251207022018
11
- - @xyd-js/core@0.0.0-build-2acf05c-20251207022018
12
- - @xyd-js/gql@0.0.0-build-2acf05c-20251207022018
13
- - @xyd-js/openapi@0.0.0-build-2acf05c-20251207022018
14
- - @xyd-js/sources@0.0.0-build-2acf05c-20251207022018
9
+ - @xyd-js/components@0.0.0-build-83b15db-20251213220910
10
+ - @xyd-js/context@0.0.0-build-83b15db-20251213220910
11
+ - @xyd-js/core@0.0.0-build-83b15db-20251213220910
12
+ - @xyd-js/gql@0.0.0-build-83b15db-20251213220910
13
+ - @xyd-js/openapi@0.0.0-build-83b15db-20251213220910
14
+ - @xyd-js/sources@0.0.0-build-83b15db-20251213220910
package/dist/index.d.ts CHANGED
@@ -14,7 +14,8 @@ declare class ContentFS {
14
14
  private readonly remarkPlugins;
15
15
  private readonly rehypePlugins;
16
16
  private readonly recmaPlugins;
17
- constructor(settings: Settings, remarkPlugins: PluggableList, rehypePlugins: PluggableList, recmaPlugins: PluggableList);
17
+ private readonly remarkRehypeHandlers?;
18
+ constructor(settings: Settings, remarkPlugins: PluggableList, rehypePlugins: PluggableList, recmaPlugins: PluggableList, remarkRehypeHandlers?: any);
18
19
  compile(filePath: string): Promise<string>;
19
20
  compileContent(content: string, filePath?: string): Promise<string>;
20
21
  compileContentV2(content: string, filePath?: string): Promise<string>;
package/dist/index.js CHANGED
@@ -24,9 +24,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  mod
25
25
  ));
26
26
 
27
- // ../../node_modules/.pnpm/react@19.2.1/node_modules/react/cjs/react.production.js
27
+ // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.production.js
28
28
  var require_react_production = __commonJS({
29
- "../../node_modules/.pnpm/react@19.2.1/node_modules/react/cjs/react.production.js"(exports) {
29
+ "../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.production.js"(exports) {
30
30
  "use strict";
31
31
  var REACT_ELEMENT_TYPE = /* @__PURE__ */ Symbol.for("react.transitional.element");
32
32
  var REACT_PORTAL_TYPE = /* @__PURE__ */ Symbol.for("react.portal");
@@ -461,13 +461,13 @@ var require_react_production = __commonJS({
461
461
  exports.useTransition = function() {
462
462
  return ReactSharedInternals.H.useTransition();
463
463
  };
464
- exports.version = "19.2.1";
464
+ exports.version = "19.2.3";
465
465
  }
466
466
  });
467
467
 
468
- // ../../node_modules/.pnpm/react@19.2.1/node_modules/react/cjs/react.development.js
468
+ // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.development.js
469
469
  var require_react_development = __commonJS({
470
- "../../node_modules/.pnpm/react@19.2.1/node_modules/react/cjs/react.development.js"(exports, module) {
470
+ "../../node_modules/.pnpm/react@19.2.3/node_modules/react/cjs/react.development.js"(exports, module) {
471
471
  "use strict";
472
472
  "production" !== process.env.NODE_ENV && (function() {
473
473
  function defineDeprecationWarning(methodName, info) {
@@ -1431,15 +1431,15 @@ var require_react_development = __commonJS({
1431
1431
  exports.useTransition = function() {
1432
1432
  return resolveDispatcher().useTransition();
1433
1433
  };
1434
- exports.version = "19.2.1";
1434
+ exports.version = "19.2.3";
1435
1435
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1436
1436
  })();
1437
1437
  }
1438
1438
  });
1439
1439
 
1440
- // ../../node_modules/.pnpm/react@19.2.1/node_modules/react/index.js
1440
+ // ../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js
1441
1441
  var require_react = __commonJS({
1442
- "../../node_modules/.pnpm/react@19.2.1/node_modules/react/index.js"(exports, module) {
1442
+ "../../node_modules/.pnpm/react@19.2.3/node_modules/react/index.js"(exports, module) {
1443
1443
  "use strict";
1444
1444
  if (process.env.NODE_ENV === "production") {
1445
1445
  module.exports = require_react_production();
@@ -1456,11 +1456,12 @@ import fs, { writeFile } from "fs/promises";
1456
1456
  import { VFile } from "vfile";
1457
1457
  import { compile as mdxCompile } from "@mdx-js/mdx";
1458
1458
  var ContentFS = class {
1459
- constructor(settings, remarkPlugins, rehypePlugins, recmaPlugins) {
1459
+ constructor(settings, remarkPlugins, rehypePlugins, recmaPlugins, remarkRehypeHandlers) {
1460
1460
  this.settings = settings;
1461
1461
  this.remarkPlugins = remarkPlugins;
1462
1462
  this.rehypePlugins = rehypePlugins;
1463
1463
  this.recmaPlugins = recmaPlugins;
1464
+ this.remarkRehypeHandlers = remarkRehypeHandlers;
1464
1465
  }
1465
1466
  async compile(filePath) {
1466
1467
  await fs.access(filePath);
@@ -1479,7 +1480,12 @@ var ContentFS = class {
1479
1480
  recmaPlugins: this.recmaPlugins || [],
1480
1481
  development: false,
1481
1482
  outputFormat: "function-body",
1482
- jsx: false
1483
+ jsx: false,
1484
+ remarkRehypeOptions: {
1485
+ handlers: {
1486
+ ...this.remarkRehypeHandlers || {}
1487
+ }
1488
+ }
1483
1489
  // jsx: false,
1484
1490
  // outputFormat: "program", // needed for import/export
1485
1491
  });
@@ -1497,8 +1503,13 @@ var ContentFS = class {
1497
1503
  recmaPlugins: [],
1498
1504
  development: false,
1499
1505
  jsx: true,
1500
- outputFormat: "program"
1506
+ outputFormat: "program",
1501
1507
  // needed for import/export
1508
+ remarkRehypeOptions: {
1509
+ handlers: {
1510
+ ...this.remarkRehypeHandlers || {}
1511
+ }
1512
+ }
1502
1513
  });
1503
1514
  const tempPath = join(tmpdir(), `mdx-${Date.now()}.mjs`);
1504
1515
  await writeFile(tempPath, String(compiled), "utf8");