Skip to content

Commit 409fbfd

Browse files
authored
rename DiscourseNode / DiscourseRelations (#271)
* rename DiscourseNode / DiscourseRelations * 1.33.0
1 parent 9b92f5a commit 409fbfd

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "query-builder",
3-
"version": "1.32.0",
3+
"version": "1.33.0",
44
"description": "Introduces new user interfaces for building queries in Roam",
55
"main": "./build/main.js",
66
"author": {

src/components/tldraw/CanvasDrawer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import getDiscourseNodes from "../../utils/getDiscourseNodes";
88
import getCurrentPageUid from "roamjs-components/dom/getCurrentPageUid";
99
import getBlockProps from "../../utils/getBlockProps";
1010
import { TLBaseShape } from "@tldraw/tldraw";
11-
import { DiscourseNodeShape } from "./DiscourseNode";
11+
import { DiscourseNodeShape } from "./DiscourseNodeUtil";
1212

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

src/components/tldraw/DiscourseNode.tsx renamed to src/components/tldraw/DiscourseNodeUtil.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { COLOR_ARRAY, DEFAULT_STYLE_PROPS, discourseContext } from "./Tldraw";
2424
import LabelDialog from "./LabelDialog";
2525
import { isPageUid } from "../../utils/isPageUid";
2626
import { loadImage } from "../../utils/loadImage";
27-
import { DiscourseRelationShape } from "./DiscourseRelations";
27+
import { DiscourseRelationShape } from "./DiscourseRelationsUtil";
2828

2929
// from @tldraw/editor/editor.css
3030
const COLOR_PALETTE: Record<string, string> = {
File renamed without changes.

src/components/tldraw/Tldraw.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ import calcCanvasNodeSizeAndImg from "../../utils/calcCanvasNodeSizeAndImg";
5151
import getPageTitleByPageUid from "roamjs-components/queries/getPageTitleByPageUid";
5252
import { useRoamStore } from "./useRoamStore";
5353
import { createUiOverrides } from "./uiOverrides";
54-
import { DiscourseNodeShape, DiscourseNodeUtil } from "./DiscourseNode";
54+
import { DiscourseNodeShape, DiscourseNodeUtil } from "./DiscourseNodeUtil";
5555
import {
5656
AddReferencedNodeType,
5757
DiscourseReferencedNodeShape,
5858
DiscourseReferencedNodeUtil,
5959
DiscourseRelationShape,
6060
DiscourseRelationUtil,
61-
} from "./DiscourseRelations";
61+
} from "./DiscourseRelationsUtil";
6262
import { isPageUid } from "../../utils/isPageUid";
6363

6464
declare global {

src/components/tldraw/uiOverrides.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import { getNewDiscourseNodeText } from "../../utils/formatUtils";
2121
import createDiscourseNode from "../../utils/createDiscourseNode";
2222
import calcCanvasNodeSizeAndImg from "../../utils/calcCanvasNodeSizeAndImg";
2323
import renderToast from "roamjs-components/components/Toast";
24-
import { AddReferencedNodeType } from "./DiscourseRelations";
24+
import { AddReferencedNodeType } from "./DiscourseRelationsUtil";
2525

2626
type TldrawAppRef = React.MutableRefObject<TldrawApp | undefined>;
2727
type CreateUiOverridesProps = {

0 commit comments

Comments
 (0)