Skip to content

Commit bed3149

Browse files
committed
use new connectors
1 parent 8e5f6ed commit bed3149

File tree

3 files changed

+15
-233
lines changed

3 files changed

+15
-233
lines changed

apps/roam/src/components/settings/ExportSettings.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
11
import React from "react";
22
import {
3-
BlockPropFlagPanel,
4-
BlockPropNumberPanel,
5-
BlockPropSelectPanel,
6-
BlockPropMultiTextPanel,
7-
} from "./components/BlockPropGlobalSettingPanels";
3+
GlobalFlagPanel,
4+
GlobalNumberPanel,
5+
GlobalSelectPanel,
6+
GlobalMultiTextPanel,
7+
} from "./components/BlockPropSettingPanels";
88

99
const DiscourseGraphExport = () => {
1010
return (
1111
<div className="flex flex-col gap-4 p-1">
1212
<div>
13-
<BlockPropFlagPanel
13+
<GlobalFlagPanel
1414
title="remove special characters"
1515
description="Whether or not to remove the special characters in a file name"
1616
settingKeys={["Export", "Remove Special Characters"]}
1717
defaultValue={false}
1818
/>
1919

20-
<BlockPropFlagPanel
20+
<GlobalFlagPanel
2121
title="resolve block references"
2222
description="Replaces block references in the markdown content with the block's content"
2323
settingKeys={["Export", "Resolve Block References"]}
2424
defaultValue={false}
2525
/>
26-
<BlockPropFlagPanel
26+
<GlobalFlagPanel
2727
title="resolve block embeds"
2828
description="Replaces block embeds in the markdown content with the block's content tree"
2929
settingKeys={["Export", "Resolve Block Embeds"]}
3030
defaultValue={false}
3131
/>
3232

33-
<BlockPropFlagPanel
33+
<GlobalFlagPanel
3434
title="append referenced node"
3535
description="If a referenced node is defined in a node's format, it will be appended to the discourse context"
3636
settingKeys={["Export", "Append Referenced Node"]}
3737
defaultValue={false}
3838
/>
3939
</div>
4040
<div className="link-type-select-wrapper">
41-
<BlockPropSelectPanel
41+
<GlobalSelectPanel
4242
title="link type"
4343
description="How to format links that appear in your export."
4444
settingKeys={["Export", "Link Type"]}
4545
options={["alias", "wikilinks", "roam url"]}
4646
defaultValue="alias"
4747
/>
4848
</div>
49-
<BlockPropNumberPanel
49+
<GlobalNumberPanel
5050
title="max filename length"
5151
description="Set the maximum name length for markdown file exports"
5252
settingKeys={["Export", "Max Filename Length"]}
5353
defaultValue={64}
5454
min={1}
5555
/>
56-
<BlockPropMultiTextPanel
56+
<GlobalMultiTextPanel
5757
title="frontmatter"
5858
description="Specify all the lines that should go to the Frontmatter of the markdown file"
5959
settingKeys={["Export", "Frontmatter"]}

apps/roam/src/components/settings/SuggestiveModeSettings.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import getPageUidByPageTitle from "roamjs-components/queries/getPageUidByPageTit
88
import { DISCOURSE_CONFIG_PAGE_TITLE } from "~/utils/renderNodeConfigPage";
99
import { createOrUpdateDiscourseEmbedding } from "~/utils/syncDgNodesToSupabase";
1010
import { render as renderToast } from "roamjs-components/components/Toast";
11-
import { BlockPropFlagPanel } from "./components/BlockPropGlobalSettingPanels";
11+
import { GlobalFlagPanel } from "./components/BlockPropSettingPanels";
1212
import { getGlobalSetting } from "./utils/accessors";
1313

1414
const SuggestiveModeSettings = () => {
@@ -68,14 +68,14 @@ const SuggestiveModeSettings = () => {
6868
panel={
6969
<div className="flex flex-col gap-4 p-1">
7070
<div className="sync-config-settings">
71-
<BlockPropFlagPanel
71+
<GlobalFlagPanel
7272
title="Include Current Page Relations"
7373
description="Include relations from pages referenced on the current page"
7474
settingKeys={["Suggestive Mode", "Include Current Page Relations"]}
7575
onChange={setIncludePageRelations}
7676
/>
7777

78-
<BlockPropFlagPanel
78+
<GlobalFlagPanel
7979
title="Include Parent And Child Blocks"
8080
description={
8181
includePageRelations

apps/roam/src/components/settings/components/BlockPropGlobalSettingPanels.tsx

Lines changed: 0 additions & 218 deletions
This file was deleted.

0 commit comments

Comments
 (0)