|
1 | 1 | import React from "react"; |
2 | 2 | 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"; |
8 | 8 |
|
9 | 9 | const DiscourseGraphExport = () => { |
10 | 10 | return ( |
11 | 11 | <div className="flex flex-col gap-4 p-1"> |
12 | 12 | <div> |
13 | | - <BlockPropFlagPanel |
| 13 | + <GlobalFlagPanel |
14 | 14 | title="remove special characters" |
15 | 15 | description="Whether or not to remove the special characters in a file name" |
16 | 16 | settingKeys={["Export", "Remove Special Characters"]} |
17 | 17 | defaultValue={false} |
18 | 18 | /> |
19 | 19 |
|
20 | | - <BlockPropFlagPanel |
| 20 | + <GlobalFlagPanel |
21 | 21 | title="resolve block references" |
22 | 22 | description="Replaces block references in the markdown content with the block's content" |
23 | 23 | settingKeys={["Export", "Resolve Block References"]} |
24 | 24 | defaultValue={false} |
25 | 25 | /> |
26 | | - <BlockPropFlagPanel |
| 26 | + <GlobalFlagPanel |
27 | 27 | title="resolve block embeds" |
28 | 28 | description="Replaces block embeds in the markdown content with the block's content tree" |
29 | 29 | settingKeys={["Export", "Resolve Block Embeds"]} |
30 | 30 | defaultValue={false} |
31 | 31 | /> |
32 | 32 |
|
33 | | - <BlockPropFlagPanel |
| 33 | + <GlobalFlagPanel |
34 | 34 | title="append referenced node" |
35 | 35 | description="If a referenced node is defined in a node's format, it will be appended to the discourse context" |
36 | 36 | settingKeys={["Export", "Append Referenced Node"]} |
37 | 37 | defaultValue={false} |
38 | 38 | /> |
39 | 39 | </div> |
40 | 40 | <div className="link-type-select-wrapper"> |
41 | | - <BlockPropSelectPanel |
| 41 | + <GlobalSelectPanel |
42 | 42 | title="link type" |
43 | 43 | description="How to format links that appear in your export." |
44 | 44 | settingKeys={["Export", "Link Type"]} |
45 | 45 | options={["alias", "wikilinks", "roam url"]} |
46 | 46 | defaultValue="alias" |
47 | 47 | /> |
48 | 48 | </div> |
49 | | - <BlockPropNumberPanel |
| 49 | + <GlobalNumberPanel |
50 | 50 | title="max filename length" |
51 | 51 | description="Set the maximum name length for markdown file exports" |
52 | 52 | settingKeys={["Export", "Max Filename Length"]} |
53 | 53 | defaultValue={64} |
54 | 54 | min={1} |
55 | 55 | /> |
56 | | - <BlockPropMultiTextPanel |
| 56 | + <GlobalMultiTextPanel |
57 | 57 | title="frontmatter" |
58 | 58 | description="Specify all the lines that should go to the Frontmatter of the markdown file" |
59 | 59 | settingKeys={["Export", "Frontmatter"]} |
|
0 commit comments