@fencyai/react 0.1.83 → 0.1.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/hooks/useListMemoryTypes/index.d.ts +2 -0
- package/dist/hooks/usePaginatedQuery/index.d.ts +51 -0
- package/dist/index.d.ts +3 -5
- package/dist/index.js +2830 -2919
- package/dist/types/ListMemoryTypesPage.d.ts +7 -0
- package/dist/types/{ListFilesParams.d.ts → ListMemoryTypesParams.d.ts} +1 -1
- package/dist/types/ListMemoryTypesResult.d.ts +9 -0
- package/dist/types/UseListMemoryTypes.d.ts +10 -0
- package/dist/types/UseListMemoryTypesProps.d.ts +3 -0
- package/dist/types/index.d.ts +5 -13
- package/package.json +4 -4
- package/dist/hooks/useCreateFiles/index.d.ts +0 -3
- package/dist/hooks/useListFiles/index.d.ts +0 -3
- package/dist/hooks/useSearchFiles/index.d.ts +0 -2
- package/dist/hooks/useWebsites/index.d.ts +0 -3
- package/dist/types/CreateFileParams.d.ts +0 -9
- package/dist/types/CreateWebsiteParams.d.ts +0 -5
- package/dist/types/ListFilesPage.d.ts +0 -8
- package/dist/types/ListFilesResult.d.ts +0 -9
- package/dist/types/SearchFilesParams.d.ts +0 -6
- package/dist/types/UseCreateFiles.d.ts +0 -6
- package/dist/types/UseCreateFilesProps.d.ts +0 -6
- package/dist/types/UseListFiles.d.ts +0 -10
- package/dist/types/UseListFilesProps.d.ts +0 -3
- package/dist/types/UseSearchFiles.d.ts +0 -6
- package/dist/types/UseWebsites.d.ts +0 -6
- package/dist/types/UseWebsitesProps.d.ts +0 -5
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ListMemoryTypesPage } from './ListMemoryTypesPage';
|
|
2
|
+
import { ListMemoryTypesParams } from './ListMemoryTypesParams';
|
|
3
|
+
import { ListMemoryTypesResult } from './ListMemoryTypesResult';
|
|
4
|
+
export interface UseListMemoryTypes {
|
|
5
|
+
listFirstPage: (params: ListMemoryTypesParams) => Promise<ListMemoryTypesResult>;
|
|
6
|
+
listNextPage: (params: ListMemoryTypesParams) => Promise<ListMemoryTypesResult>;
|
|
7
|
+
listPreviousPage: (params: ListMemoryTypesParams) => Promise<ListMemoryTypesResult>;
|
|
8
|
+
refetchCurrentPage: () => Promise<ListMemoryTypesResult>;
|
|
9
|
+
currentPage: ListMemoryTypesPage | null;
|
|
10
|
+
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -23,16 +23,8 @@ export * from './CreateStreamResponse';
|
|
|
23
23
|
export * from './StreamError';
|
|
24
24
|
export * from './UseStream';
|
|
25
25
|
export * from './UseStreamProps';
|
|
26
|
-
export * from './
|
|
27
|
-
export * from './
|
|
28
|
-
export * from './
|
|
29
|
-
export * from './
|
|
30
|
-
export * from './
|
|
31
|
-
export * from './UseWebsitesProps';
|
|
32
|
-
export * from './ListFilesPage';
|
|
33
|
-
export * from './ListFilesParams';
|
|
34
|
-
export * from './ListFilesResult';
|
|
35
|
-
export * from './UseListFiles';
|
|
36
|
-
export * from './UseListFilesProps';
|
|
37
|
-
export * from './SearchFilesParams';
|
|
38
|
-
export * from './UseSearchFiles';
|
|
26
|
+
export * from './ListMemoryTypesPage';
|
|
27
|
+
export * from './ListMemoryTypesParams';
|
|
28
|
+
export * from './ListMemoryTypesResult';
|
|
29
|
+
export * from './UseListMemoryTypes';
|
|
30
|
+
export * from './UseListMemoryTypesProps';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fencyai/react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.84",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "staklau <steinaageklaussen@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"prepublishOnly": "npm run build"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@fencyai/js": "^0.1.
|
|
35
|
+
"@fencyai/js": "^0.1.84",
|
|
36
36
|
"@types/jest": "^29.5.11",
|
|
37
37
|
"@types/node": "^20.10.5",
|
|
38
38
|
"@types/react": "^18.2.45",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"vite-plugin-lib-inject-css": "^2.1.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@fencyai/js": "^0.1.
|
|
49
|
+
"@fencyai/js": "^0.1.84",
|
|
50
50
|
"@radix-ui/react-popover": "^1.1.15",
|
|
51
51
|
"react": ">=16.8.0",
|
|
52
52
|
"react-markdown": "^10.1.0",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"optional": false
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "2097d91c002c61a2dcfcaafbe0407458dbb88739"
|
|
64
64
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PaginationDto } from '@fencyai/js/lib/openapi';
|
|
2
|
-
import { FencyListFileItem } from '@fencyai/js/lib/types/FencyListFileItem';
|
|
3
|
-
export interface ListFilesPage {
|
|
4
|
-
items: FencyListFileItem[];
|
|
5
|
-
hasNextPage: boolean;
|
|
6
|
-
hasPreviousPage: boolean;
|
|
7
|
-
pagination: PaginationDto;
|
|
8
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FileSearchIndexReady, FileTextContentReady, FileUploadCompleted } from './StreamData';
|
|
2
|
-
export interface UseCreateFilesProps {
|
|
3
|
-
onUploadCompleted?: (event: FileUploadCompleted) => void;
|
|
4
|
-
onTextContentReady?: (event: FileTextContentReady) => void;
|
|
5
|
-
onFileSearchIndexReady?: (event: FileSearchIndexReady) => void;
|
|
6
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ListFilesPage } from './ListFilesPage';
|
|
2
|
-
import { ListFilesParams } from './ListFilesParams';
|
|
3
|
-
import { ListFilesResult } from './ListFilesResult';
|
|
4
|
-
export interface UseListFiles {
|
|
5
|
-
listFirstPage: (params: ListFilesParams) => Promise<ListFilesResult>;
|
|
6
|
-
listNextPage: (params: ListFilesParams) => Promise<ListFilesResult>;
|
|
7
|
-
listPreviousPage: (params: ListFilesParams) => Promise<ListFilesResult>;
|
|
8
|
-
refetchCurrentPage: () => Promise<ListFilesResult>;
|
|
9
|
-
currentPage: ListFilesPage | null;
|
|
10
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FileSearchItem, SearchFilesResponse } from '@fencyai/js';
|
|
2
|
-
import { SearchFilesParams } from './SearchFilesParams';
|
|
3
|
-
export interface UseSearchFiles {
|
|
4
|
-
searchFiles: (params: SearchFilesParams) => Promise<SearchFilesResponse>;
|
|
5
|
-
searchResults?: FileSearchItem[];
|
|
6
|
-
}
|