@readme/markdown 6.75.0-beta.24 → 6.75.0-beta.25

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/main.js CHANGED
@@ -59562,6 +59562,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
59562
59562
 
59563
59563
  __webpack_require__(2787);
59564
59564
 
59565
+
59565
59566
  var unimplemented = browser_default()('mdx:unimplemented');
59566
59567
 
59567
59568
  var utils = {
@@ -59584,7 +59585,7 @@ var reactProcessor = function (opts) {
59584
59585
  };
59585
59586
  var index_compile = function (text, opts) {
59586
59587
  if (opts === void 0) { opts = {}; }
59587
- return String(compileSync(text, index_assign({ outputFormat: 'function-body', providerImportSource: '#', remarkPlugins: [callouts] }, opts)));
59588
+ return String(compileSync(text, index_assign({ outputFormat: 'function-body', providerImportSource: '#', remarkPlugins: [callouts] }, opts))).replace(/await import\(_resolveDynamicMdxSpecifier\('react'\)\)/, 'arguments[0].imports.React');
59588
59589
  };
59589
59590
  var index_run = function (code, _opts) {
59590
59591
  if (_opts === void 0) { _opts = {}; }
@@ -59595,7 +59596,7 @@ var index_run = function (code, _opts) {
59595
59596
  case 0:
59596
59597
  Fragment = jsx_runtime.Fragment;
59597
59598
  components = _opts.components, opts = __rest(_opts, ["components"]);
59598
- return [4 /*yield*/, run(code, index_assign(index_assign(index_assign({}, jsx_runtime_namespaceObject), { Fragment: Fragment, baseUrl: '', useMDXComponents: makeUseMDXComponents(components) }), opts))];
59599
+ return [4 /*yield*/, run(code, index_assign(index_assign(index_assign({}, jsx_runtime_namespaceObject), { Fragment: Fragment, baseUrl: "file:///home/runner/work/markdown/markdown/index.tsx", imports: { React: (external_amd_react_commonjs_react_commonjs2_react_root_React_umd_react_default()) }, useMDXComponents: makeUseMDXComponents(components) }), opts))];
59599
59600
  case 1:
59600
59601
  file = _a.sent();
59601
59602
  return [2 /*return*/, (file === null || file === void 0 ? void 0 : file.default) || (function () { return null; })];
package/dist/main.node.js CHANGED
@@ -61078,6 +61078,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
61078
61078
 
61079
61079
  __webpack_require__(787);
61080
61080
 
61081
+
61081
61082
  var unimplemented = src_default()('mdx:unimplemented');
61082
61083
 
61083
61084
  var utils = {
@@ -61100,7 +61101,7 @@ var reactProcessor = function (opts) {
61100
61101
  };
61101
61102
  var index_compile = function (text, opts) {
61102
61103
  if (opts === void 0) { opts = {}; }
61103
- return String(compileSync(text, index_assign({ outputFormat: 'function-body', providerImportSource: '#', remarkPlugins: [callouts] }, opts)));
61104
+ return String(compileSync(text, index_assign({ outputFormat: 'function-body', providerImportSource: '#', remarkPlugins: [callouts] }, opts))).replace(/await import\(_resolveDynamicMdxSpecifier\('react'\)\)/, 'arguments[0].imports.React');
61104
61105
  };
61105
61106
  var index_run = function (code, _opts) {
61106
61107
  if (_opts === void 0) { _opts = {}; }
@@ -61111,7 +61112,7 @@ var index_run = function (code, _opts) {
61111
61112
  case 0:
61112
61113
  Fragment = jsx_runtime.Fragment;
61113
61114
  components = _opts.components, opts = __rest(_opts, ["components"]);
61114
- return [4 /*yield*/, run(code, index_assign(index_assign(index_assign({}, jsx_runtime_namespaceObject), { Fragment: Fragment, baseUrl: '', useMDXComponents: makeUseMDXComponents(components) }), opts))];
61115
+ return [4 /*yield*/, run(code, index_assign(index_assign(index_assign({}, jsx_runtime_namespaceObject), { Fragment: Fragment, baseUrl: "file:///home/runner/work/markdown/markdown/index.tsx", imports: { React: react }, useMDXComponents: makeUseMDXComponents(components) }), opts))];
61115
61116
  case 1:
61116
61117
  file = _a.sent();
61117
61118
  return [2 /*return*/, (file === null || file === void 0 ? void 0 : file.default) || (function () { return null; })];
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@readme/markdown",
3
3
  "description": "ReadMe's React-based Markdown parser",
4
4
  "author": "Rafe Goldberg <rafe@readme.io>",
5
- "version": "6.75.0-beta.24",
5
+ "version": "6.75.0-beta.25",
6
6
  "main": "dist/main.node.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "browser": "dist/main.js",
@@ -71,8 +71,9 @@
71
71
  "@readme/eslint-config": "^14.0.0",
72
72
  "@semantic-release/changelog": "^6.0.3",
73
73
  "@semantic-release/git": "^10.0.1",
74
- "@testing-library/jest-dom": "^5.17.0",
74
+ "@testing-library/jest-dom": "^6.4.2",
75
75
  "@testing-library/react": "^12.1.2",
76
+ "@testing-library/user-event": "^14.5.2",
76
77
  "@types/mdast": "^4.0.3",
77
78
  "@types/mdx": "^2.0.12",
78
79
  "babel-jest": "^29.5.0",