@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.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: [
@@ -4774,7 +4782,7 @@ var TextContent = function(t0) {
4774
4782
  });
4775
4783
  });
4776
4784
  return function compileMDX2() {
4777
- return _ref3.apply(this, arguments);
4785
+ return _ref4.apply(this, arguments);
4778
4786
  };
4779
4787
  }();
4780
4788
  compileMDX();