@superinterface/react 3.6.1 → 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.js CHANGED
@@ -4694,6 +4694,12 @@ var evaluate = /* @__PURE__ */ function() {
4694
4694
  return _ref2.apply(this, arguments);
4695
4695
  };
4696
4696
  }();
4697
+ var replaceExpressionsWithLiterals = function(_ref3) {
4698
+ var content = _ref3.content;
4699
+ return content.replace(/\{([^}]+)\}/g, function(_match, expression) {
4700
+ return "{'{'}".concat(expression, "{'}'}");
4701
+ });
4702
+ };
4697
4703
  var TextContent = function(t0) {
4698
4704
  var $ = _c23(13);
4699
4705
  var content = t0.content;
@@ -4718,7 +4724,7 @@ var TextContent = function(t0) {
4718
4724
  if ($[3] !== content || $[4] !== remarkPlugins) {
4719
4725
  t3 = function() {
4720
4726
  var compileMDX = /* @__PURE__ */ function() {
4721
- var _ref3 = _asyncToGenerator5(function() {
4727
+ var _ref4 = _asyncToGenerator5(function() {
4722
4728
  var compiled, code, module, MDXContent, t52, error;
4723
4729
  return _ts_generator(this, function(_state) {
4724
4730
  switch(_state.label){
@@ -4731,7 +4737,9 @@ var TextContent = function(t0) {
4731
4737
  ]);
4732
4738
  return [
4733
4739
  4,
4734
- compile(content.text.value, {
4740
+ compile(replaceExpressionsWithLiterals({
4741
+ content: content.text.value
4742
+ }), {
4735
4743
  outputFormat: "function-body",
4736
4744
  remarkPlugins: remarkPlugins,
4737
4745
  recmaPlugins: [
@@ -4743,7 +4751,6 @@ var TextContent = function(t0) {
4743
4751
  case 1:
4744
4752
  compiled = _state.sent();
4745
4753
  code = String(compiled);
4746
- console.log(code);
4747
4754
  return [
4748
4755
  4,
4749
4756
  evaluate({
@@ -4775,7 +4782,7 @@ var TextContent = function(t0) {
4775
4782
  });
4776
4783
  });
4777
4784
  return function compileMDX2() {
4778
- return _ref3.apply(this, arguments);
4785
+ return _ref4.apply(this, arguments);
4779
4786
  };
4780
4787
  }();
4781
4788
  compileMDX();