react-ai-renderer 0.1.19 → 0.1.20

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
@@ -59209,7 +59209,6 @@ var ComponentPlaceholder = function (_a) {
59209
59209
  }
59210
59210
  } catch (e) {
59211
59211
  // 如果骨架图生成失败,继续使用默认占位内容
59212
- console.warn('Failed to generate skeleton:', e);
59213
59212
  }
59214
59213
  }
59215
59214
  // 默认占位内容
@@ -59418,7 +59417,6 @@ function ReactAIRenderer(_a) {
59418
59417
  if (!resultContent) return [3 /*break*/, 8];
59419
59418
  resultContent = fixMDXContent(resultContent);
59420
59419
  parsedData = parser.parse('magic', resultContent);
59421
- console.log('parsedData', parsedData);
59422
59420
  return [4 /*yield*/, Promise.all(parsedData.map(function (item) {
59423
59421
  return parseComponentRecursively(allComponentHandlers, item, scope);
59424
59422
  }))];
@@ -59770,7 +59768,6 @@ var getMermaid = function () {
59770
59768
  mermaidPromise = import('mermaid').then(function (module) {
59771
59769
  return module.default || module;
59772
59770
  }).catch(function (error) {
59773
- console.warn('Mermaid is not available. Install it to enable chart rendering.');
59774
59771
  return null;
59775
59772
  });
59776
59773
  return mermaidPromise;
@@ -59821,7 +59818,6 @@ function MermaidRenderer(_a) {
59821
59818
  if (!!mermaid.initialized) return [3 /*break*/, 4];
59822
59819
  // 设置全局错误处理函数
59823
59820
  mermaid.parseError = function (err) {
59824
- console.warn('Mermaid parse error:', err.message);
59825
59821
  };
59826
59822
  return [4 /*yield*/, mermaid.initialize({
59827
59823
  startOnLoad: false,
package/dist/index.js CHANGED
@@ -59187,7 +59187,6 @@ var ComponentPlaceholder = function (_a) {
59187
59187
  }
59188
59188
  } catch (e) {
59189
59189
  // 如果骨架图生成失败,继续使用默认占位内容
59190
- console.warn('Failed to generate skeleton:', e);
59191
59190
  }
59192
59191
  }
59193
59192
  // 默认占位内容
@@ -59396,7 +59395,6 @@ function ReactAIRenderer(_a) {
59396
59395
  if (!resultContent) return [3 /*break*/, 8];
59397
59396
  resultContent = fixMDXContent(resultContent);
59398
59397
  parsedData = parser.parse('magic', resultContent);
59399
- console.log('parsedData', parsedData);
59400
59398
  return [4 /*yield*/, Promise.all(parsedData.map(function (item) {
59401
59399
  return parseComponentRecursively(allComponentHandlers, item, scope);
59402
59400
  }))];
@@ -59748,7 +59746,6 @@ var getMermaid = function () {
59748
59746
  mermaidPromise = import('mermaid').then(function (module) {
59749
59747
  return module.default || module;
59750
59748
  }).catch(function (error) {
59751
- console.warn('Mermaid is not available. Install it to enable chart rendering.');
59752
59749
  return null;
59753
59750
  });
59754
59751
  return mermaidPromise;
@@ -59799,7 +59796,6 @@ function MermaidRenderer(_a) {
59799
59796
  if (!!mermaid.initialized) return [3 /*break*/, 4];
59800
59797
  // 设置全局错误处理函数
59801
59798
  mermaid.parseError = function (err) {
59802
- console.warn('Mermaid parse error:', err.message);
59803
59799
  };
59804
59800
  return [4 /*yield*/, mermaid.initialize({
59805
59801
  startOnLoad: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-ai-renderer",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",
@@ -79,6 +79,7 @@
79
79
  "@rollup/plugin-inject": "^5.0.5",
80
80
  "@rollup/plugin-json": "^6.1.0",
81
81
  "@rollup/plugin-node-resolve": "^15.0.0",
82
+ "@rollup/plugin-strip": "^3.0.4",
82
83
  "@rollup/plugin-typescript": "^11.0.0",
83
84
  "@types/node": "^18.19.0",
84
85
  "@types/react": "^18.2.0",