@hachej/boring-deck 0.1.52 → 0.1.53
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/front/index.d.ts +1 -0
- package/dist/front/index.js +3 -2
- package/package.json +4 -4
package/dist/front/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ interface DeckPaneProps {
|
|
|
20
20
|
onError?: (error: DeckError) => void;
|
|
21
21
|
initialMode?: "read" | "edit" | "present";
|
|
22
22
|
getPresentHref?: (path: string) => string;
|
|
23
|
+
createIfMissing?: string;
|
|
23
24
|
}
|
|
24
25
|
declare function DeckPane(props: DeckPaneProps): react_jsx_runtime.JSX.Element;
|
|
25
26
|
|
package/dist/front/index.js
CHANGED
|
@@ -744,7 +744,8 @@ function FileBackedDeckPane({
|
|
|
744
744
|
widgets = [],
|
|
745
745
|
onError,
|
|
746
746
|
initialMode = "read",
|
|
747
|
-
getPresentHref
|
|
747
|
+
getPresentHref,
|
|
748
|
+
createIfMissing
|
|
748
749
|
}) {
|
|
749
750
|
const path = params?.path ?? "";
|
|
750
751
|
const hasSelectedPath = /\S/.test(path);
|
|
@@ -763,7 +764,7 @@ function FileBackedDeckPane({
|
|
|
763
764
|
onReloadFromServer,
|
|
764
765
|
setContent,
|
|
765
766
|
tabTitle
|
|
766
|
-
} = useFilePane({ path, panelId: api?.id });
|
|
767
|
+
} = useFilePane({ path, panelId: api?.id, createIfMissing });
|
|
767
768
|
const parsed = useMemo(() => content == null ? null : parseDeckContent(content, path), [content, path]);
|
|
768
769
|
useEffect(() => {
|
|
769
770
|
if (error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hachej/boring-deck",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.53",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Front-only markdown deck plugin scaffold for Boring workspace.",
|
|
@@ -48,12 +48,12 @@
|
|
|
48
48
|
"lucide-react": "^1.8.0",
|
|
49
49
|
"react-markdown": "^10.1.0",
|
|
50
50
|
"remark-gfm": "^4.0.1",
|
|
51
|
-
"@hachej/boring-ui-kit": "0.1.
|
|
51
|
+
"@hachej/boring-ui-kit": "0.1.53"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^18.0.0 || ^19.0.0",
|
|
55
55
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
56
|
-
"@hachej/boring-workspace": "0.1.
|
|
56
|
+
"@hachej/boring-workspace": "0.1.53"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"tsup": "^8.0.0",
|
|
68
68
|
"typescript": "^5.4.0",
|
|
69
69
|
"vitest": "^3.2.6",
|
|
70
|
-
"@hachej/boring-workspace": "0.1.
|
|
70
|
+
"@hachej/boring-workspace": "0.1.53"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "tsup",
|