You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorialkit.dev/src/content/docs/reference/configuration.mdx
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,15 +103,29 @@ type I18nText = {
103
103
*
104
104
* @default'This action is not allowed'
105
105
*/
106
-
fileTreeActionNotAllowed?:string,
106
+
fileTreeActionNotAllowedText?:string,
107
107
108
108
/**
109
-
* Text shown on dialog describing allowed patterns when file or folder createion failed.
109
+
* Text shown on dialog when user attempts create file or folder that already exists on filesystem but is not visible on file tree, e.g. template files.
110
+
*
111
+
* @default'File exists on filesystem already'
112
+
*/
113
+
fileTreeFileExistsAlreadyText?:string,
114
+
115
+
/**
116
+
* Text shown on dialog describing allowed patterns when file or folder creation failed.
110
117
*
111
118
* @default'Created files and folders must match following patterns:'
Copy file name to clipboardExpand all lines: docs/tutorialkit.dev/src/content/docs/reference/react-components.mdx
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,13 +107,15 @@ A component to list files in a tree view.
107
107
108
108
*`onFileSelect: (file: string) => void` - A callback that will be called when a file is clicked. The path of the file that was clicked will be passed as an argument.
109
109
110
-
*`onFileChange: (event: FileChangeEvent) => void` - An optional callback that will be called when a new file or folder is created from the file tree's context menu. When callback is not passed, file tree does not allow adding new files.
110
+
*`onFileChange: (event: FileChangeEvent) => Promise<void>` - An optional callback that will be called when a new file or folder is created from the file tree's context menu. This callback should throw errors with `FilesystemError` messages.
0 commit comments