@superinterface/react 3.6.2 → 3.6.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/dist/index.cjs CHANGED
@@ -4847,6 +4847,12 @@ var evaluate = /* @__PURE__ */ function() {
4847
4847
  return _ref2.apply(this, arguments);
4848
4848
  };
4849
4849
  }();
4850
+ var replaceExpressionsWithLiterals = function(_ref3) {
4851
+ var content = _ref3.content;
4852
+ return content.replace(/\{([^}]+)\}/g, function(_match, expression) {
4853
+ return "{'{'}".concat(expression, "{'}'}");
4854
+ });
4855
+ };
4850
4856
  var TextContent = function(t0) {
4851
4857
  var $ = (0, import_react_compiler_runtime23.c)(13);
4852
4858
  var content = t0.content;
@@ -4871,7 +4877,7 @@ var TextContent = function(t0) {
4871
4877
  if ($[3] !== content || $[4] !== remarkPlugins) {
4872
4878
  t3 = function() {
4873
4879
  var compileMDX = /* @__PURE__ */ function() {
4874
- var _ref3 = _asyncToGenerator5(function() {
4880
+ var _ref4 = _asyncToGenerator5(function() {
4875
4881
  var compiled, code, module2, MDXContent, t52, error;
4876
4882
  return _ts_generator(this, function(_state) {
4877
4883
  switch(_state.label){
@@ -4884,7 +4890,9 @@ var TextContent = function(t0) {
4884
4890
  ]);
4885
4891
  return [
4886
4892
  4,
4887
- (0, import_mdx.compile)(content.text.value, {
4893
+ (0, import_mdx.compile)(replaceExpressionsWithLiterals({
4894
+ content: content.text.value
4895
+ }), {
4888
4896
  outputFormat: "function-body",
4889
4897
  remarkPlugins: remarkPlugins,
4890
4898
  recmaPlugins: [
@@ -4927,7 +4935,7 @@ var TextContent = function(t0) {
4927
4935
  });
4928
4936
  });
4929
4937
  return function compileMDX2() {
4930
- return _ref3.apply(this, arguments);
4938
+ return _ref4.apply(this, arguments);
4931
4939
  };
4932
4940
  }();
4933
4941
  compileMDX();