Skip to content

Commit

Permalink
rename DiscourseNode / DiscourseRelations (#271)
Browse files Browse the repository at this point in the history
* rename DiscourseNode / DiscourseRelations

* 1.33.0
  • Loading branch information
mdroidian committed Jul 2, 2024
1 parent 9b92f5a commit 409fbfd
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "query-builder",
"version": "1.32.0",
"version": "1.33.0",
"description": "Introduces new user interfaces for building queries in Roam",
"main": "./build/main.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/tldraw/CanvasDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import getDiscourseNodes from "../../utils/getDiscourseNodes";
import getCurrentPageUid from "roamjs-components/dom/getCurrentPageUid";
import getBlockProps from "../../utils/getBlockProps";
import { TLBaseShape } from "@tldraw/tldraw";
import { DiscourseNodeShape } from "./DiscourseNode";
import { DiscourseNodeShape } from "./DiscourseNodeUtil";

export type GroupedShapes = Record<string, DiscourseNodeShape[]>;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import { COLOR_ARRAY, DEFAULT_STYLE_PROPS, discourseContext } from "./Tldraw";
import LabelDialog from "./LabelDialog";
import { isPageUid } from "../../utils/isPageUid";
import { loadImage } from "../../utils/loadImage";
import { DiscourseRelationShape } from "./DiscourseRelations";
import { DiscourseRelationShape } from "./DiscourseRelationsUtil";

// from @tldraw/editor/editor.css
const COLOR_PALETTE: Record<string, string> = {
Expand Down
4 changes: 2 additions & 2 deletions src/components/tldraw/Tldraw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ import calcCanvasNodeSizeAndImg from "../../utils/calcCanvasNodeSizeAndImg";
import getPageTitleByPageUid from "roamjs-components/queries/getPageTitleByPageUid";
import { useRoamStore } from "./useRoamStore";
import { createUiOverrides } from "./uiOverrides";
import { DiscourseNodeShape, DiscourseNodeUtil } from "./DiscourseNode";
import { DiscourseNodeShape, DiscourseNodeUtil } from "./DiscourseNodeUtil";
import {
AddReferencedNodeType,
DiscourseReferencedNodeShape,
DiscourseReferencedNodeUtil,
DiscourseRelationShape,
DiscourseRelationUtil,
} from "./DiscourseRelations";
} from "./DiscourseRelationsUtil";
import { isPageUid } from "../../utils/isPageUid";

declare global {
Expand Down
2 changes: 1 addition & 1 deletion src/components/tldraw/uiOverrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { getNewDiscourseNodeText } from "../../utils/formatUtils";
import createDiscourseNode from "../../utils/createDiscourseNode";
import calcCanvasNodeSizeAndImg from "../../utils/calcCanvasNodeSizeAndImg";
import renderToast from "roamjs-components/components/Toast";
import { AddReferencedNodeType } from "./DiscourseRelations";
import { AddReferencedNodeType } from "./DiscourseRelationsUtil";

type TldrawAppRef = React.MutableRefObject<TldrawApp | undefined>;
type CreateUiOverridesProps = {
Expand Down

0 comments on commit 409fbfd

Please sign in to comment.