Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jp-cen committed Jan 18, 2025
1 parent f01d831 commit 6035638
Show file tree
Hide file tree
Showing 7 changed files with 109 additions and 105 deletions.
140 changes: 70 additions & 70 deletions main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "make-md",
"name": "MAKE.md",
"version": "1.0.3",
"version": "1.0.4",
"minAppVersion": "0.16.0",
"description": "Make.md gives you everything you need to organize and personalize your notes.",
"author": "MAKE.md",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "make-md",
"version": "1.0.2",
"version": "1.0.4",
"description": "make.md",
"main": "main.js",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions src/adapters/obsidian/ui/WindowManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
MeasuringStrategy,
MouseSensor,
TouchSensor,
rectIntersection,
pointerWithin,
useSensor,
useSensors,
} from "@dnd-kit/core";
Expand Down Expand Up @@ -54,7 +54,7 @@ export const WindowManager = (props: { ui: ObsidianUI }) => {
onDragCancel={() => {
setDragActive(false);
}}
collisionDetection={rectIntersection}
collisionDetection={pointerWithin}
measuring={{
droppable: {
strategy: MeasuringStrategy.Always,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,35 +124,37 @@ export const FlowNodeView = (
) : (
<></>
))}
{props.state && expanded && props.state?.props?.value?.length > 0 ? (
<PathView
id={id}
superstate={props.superstate}
path={pathState?.path ?? props.state?.props?.value}
containerRef={props.containerRef}
styles={{}}
readOnly={true}
></PathView>
) : (
selectionMode > FrameEditorMode.Read && (
<div
className="mk-node-text-placeholder"
onClick={(e) => {
const rect = e.currentTarget.getBoundingClientRect();
props.superstate.ui.quickOpen(
BlinkMode.Open,
rect,
windowFromDocument(e.view.document),
(path) => {
updateValue(path);
}
);
}}
>
{i18n.hintText.selectNote}
</div>
)
)}
{props.state &&
expanded &&
(props.state?.props?.value?.length > 0 ? (
<PathView
id={id}
superstate={props.superstate}
path={pathState?.path ?? props.state?.props?.value}
containerRef={props.containerRef}
styles={{}}
readOnly={true}
></PathView>
) : (
selectionMode > FrameEditorMode.Read && (
<div
className="mk-node-text-placeholder"
onClick={(e) => {
const rect = e.currentTarget.getBoundingClientRect();
props.superstate.ui.quickOpen(
BlinkMode.Open,
rect,
windowFromDocument(e.view.document),
(path) => {
updateValue(path);
}
);
}}
>
{i18n.hintText.selectNote}
</div>
)
))}
</div>
);
};
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,8 @@ export const FrameEditorNodeView = (props: {
insertMode={
treeNode.node.type == "group"
? 1
: treeNode.node.type == "space"
: treeNode.node.type == "space" ||
treeNode.node.type == "container"
? -1
: 0
}
Expand Down
3 changes: 2 additions & 1 deletion src/core/superstate/superstate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,12 @@ public api: API;

allPaths.forEach(f => {
const cache = parsePathState(f.cache)

if (cache) {
this.pathsIndex.set(f.path, cache);
this.tagsMap.set(f.path, new Set(cache.tags))
this.spacesMap.set(f.path, new Set(cache.spaces))
this.linksMap.set(f.path, new Set(cache.outlinks))
}
});
if (this.settings.enhancedLogs)
console.log('Initial Cache Loaded')
Expand Down

0 comments on commit 6035638

Please sign in to comment.