auto-component 0.0.38 → 0.0.39
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/package.json +1 -1
- package/src/index.jsx +2 -3
package/package.json
CHANGED
package/src/index.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable no-unused-vars */
|
|
2
2
|
/* eslint-disable react-hooks/exhaustive-deps */
|
|
3
|
-
import JSXParser from 'react-jsx-parser'
|
|
3
|
+
import { JSXParser } from 'react-jsx-parser'
|
|
4
4
|
import { useState, useEffect } from 'react'
|
|
5
5
|
// import beautify from 'js-beautify';
|
|
6
6
|
import './auto-component.css'
|
|
@@ -254,7 +254,6 @@ const responseHtml = responseData ? (
|
|
|
254
254
|
return (
|
|
255
255
|
|
|
256
256
|
<div className='auto-component exclude'>
|
|
257
|
-
|
|
258
257
|
<div>
|
|
259
258
|
{responseData ? (
|
|
260
259
|
// Use {} to directly interpolate the JSX code
|
|
@@ -263,7 +262,7 @@ const responseHtml = responseData ? (
|
|
|
263
262
|
'- auto component will be added here -'
|
|
264
263
|
)}
|
|
265
264
|
</div>
|
|
266
|
-
|
|
265
|
+
|
|
267
266
|
<div id="auto-component-ui">
|
|
268
267
|
<div id="auto-component-code-container" className={`${!activeTab ? 'auto-component-hidden' : ''} auto-component-code`}>
|
|
269
268
|
<pre id="auto-component-code">
|