@takemo101/mikan 0.0.10 → 0.0.11
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/bin.js +9 -6
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -107533,7 +107533,7 @@ var import_react20 = __toESM(require_react(), 1);
|
|
|
107533
107533
|
// package.json
|
|
107534
107534
|
var package_default = {
|
|
107535
107535
|
name: "@takemo101/mikan",
|
|
107536
|
-
version: "0.0.
|
|
107536
|
+
version: "0.0.11",
|
|
107537
107537
|
private: false,
|
|
107538
107538
|
type: "module",
|
|
107539
107539
|
bin: {
|
|
@@ -107922,7 +107922,7 @@ function Footer(props) {
|
|
|
107922
107922
|
const theme = props.theme ?? buildTuiTheme();
|
|
107923
107923
|
return import_react.default.createElement("text", {
|
|
107924
107924
|
id: "mikan-footer",
|
|
107925
|
-
style: { color: theme.base.muted, marginTop: "auto" },
|
|
107925
|
+
style: { color: theme.base.muted, flexShrink: 0, marginTop: "auto" },
|
|
107926
107926
|
content: [footerText(props.mode ?? "board"), props.message].filter(Boolean).join(" ")
|
|
107927
107927
|
});
|
|
107928
107928
|
}
|
|
@@ -108034,6 +108034,8 @@ function DetailPage(props) {
|
|
|
108034
108034
|
borderColor: theme.interactive.accent,
|
|
108035
108035
|
flexDirection: "column",
|
|
108036
108036
|
flexGrow: 1,
|
|
108037
|
+
flexShrink: 1,
|
|
108038
|
+
minHeight: 0,
|
|
108037
108039
|
overflow: "hidden"
|
|
108038
108040
|
}
|
|
108039
108041
|
}, import_react2.default.createElement("box", {
|
|
@@ -109021,13 +109023,13 @@ function Header(props) {
|
|
|
109021
109023
|
const theme = props.theme ?? buildTuiTheme();
|
|
109022
109024
|
return import_react20.default.createElement("text", {
|
|
109023
109025
|
id: "mikan-header",
|
|
109024
|
-
style: { color: theme.interactive.accent },
|
|
109026
|
+
style: { color: theme.interactive.accent, flexShrink: 0 },
|
|
109025
109027
|
content: `\uD83C\uDF4A mikan v${TUI_VERSION}`
|
|
109026
109028
|
});
|
|
109027
109029
|
}
|
|
109028
109030
|
async function launchTui(options = {}) {
|
|
109029
109031
|
const { createCliRenderer: createCliRenderer2 } = await init_core3().then(() => exports_core3);
|
|
109030
|
-
const { createRoot: createRoot2, useKeyboard: useKeyboard2 } = await init_react().then(() => exports_react);
|
|
109032
|
+
const { createRoot: createRoot2, useKeyboard: useKeyboard2, useTerminalDimensions: useTerminalDimensions2 } = await init_react().then(() => exports_react);
|
|
109031
109033
|
const renderer = await createCliRenderer2();
|
|
109032
109034
|
const pollMs = options.pollMs ?? 1000;
|
|
109033
109035
|
const root = createRoot2(renderer);
|
|
@@ -109036,6 +109038,7 @@ async function launchTui(options = {}) {
|
|
|
109036
109038
|
renderer.destroy();
|
|
109037
109039
|
};
|
|
109038
109040
|
function App() {
|
|
109041
|
+
const dimensions = useTerminalDimensions2();
|
|
109039
109042
|
const [model, setModel] = import_react20.default.useState(() => loadTuiModel(options.cwd));
|
|
109040
109043
|
const [selection, setSelection] = import_react20.default.useState({
|
|
109041
109044
|
columnIndex: 0,
|
|
@@ -109256,8 +109259,8 @@ async function launchTui(options = {}) {
|
|
|
109256
109259
|
return createTuiAppElement({
|
|
109257
109260
|
model,
|
|
109258
109261
|
selection,
|
|
109259
|
-
viewportHeight:
|
|
109260
|
-
viewportWidth:
|
|
109262
|
+
viewportHeight: dimensions.height,
|
|
109263
|
+
viewportWidth: dimensions.width,
|
|
109261
109264
|
columns: options.columns,
|
|
109262
109265
|
noteTextareaRef,
|
|
109263
109266
|
onNoteSubmit: submitNote,
|