From fca9d3c8fb36ebe9202fae684604069c85507e96 Mon Sep 17 00:00:00 2001 From: redhoodsu Date: Tue, 29 Oct 2024 17:26:30 +0800 Subject: [PATCH] release(logcat): v0.2.2 --- index.json | 2 +- src/logcat/package.json | 2 +- src/logcat/react.tsx | 3 ++- src/logcat/story.js | 3 ++- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/index.json b/index.json index c41dfdf..6e0557e 100644 --- a/index.json +++ b/index.json @@ -163,7 +163,7 @@ }, "logcat": { "react": true, - "version": "0.2.1", + "version": "0.2.2", "style": true, "icon": false, "test": true, diff --git a/src/logcat/package.json b/src/logcat/package.json index 9a4a538..7fa6b4e 100644 --- a/src/logcat/package.json +++ b/src/logcat/package.json @@ -1,6 +1,6 @@ { "name": "logcat", - "version": "0.2.1", + "version": "0.2.2", "description": "Android logcat viewer", "luna": { "react": true diff --git a/src/logcat/react.tsx b/src/logcat/react.tsx index 47ba5cc..e039836 100644 --- a/src/logcat/react.tsx +++ b/src/logcat/react.tsx @@ -14,12 +14,13 @@ const LunaLogcat: FC = (props) => { const logcat = useRef() useEffect(() => { - const { maxNum, wrapLongLines, filter, entries } = props + const { maxNum, wrapLongLines, filter, entries, view } = props logcat.current = new Logcat(logcatRef.current!, { filter, maxNum, wrapLongLines, entries, + view, }) props.onCreate && props.onCreate(logcat.current) diff --git a/src/logcat/story.js b/src/logcat/story.js index 53a746f..08b44ab 100644 --- a/src/logcat/story.js +++ b/src/logcat/story.js @@ -29,7 +29,7 @@ const def = story( readme, story: __STORY__, ReactComponent() { - const { wrapLongLines, maxNum, filter } = createKnobs() + const { wrapLongLines, maxNum, filter, view } = createKnobs() return ( each(logs, (log) => logcat.append(log))} /> )