@arbidocs/react 0.3.145 → 0.3.147
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/index.cjs +6 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -21
- package/dist/index.d.ts +8 -21
- package/dist/index.js +6 -15
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -594,14 +594,13 @@ var arbiQueryKeys = {
|
|
|
594
594
|
sessions: () => ["arbi", "sessions"],
|
|
595
595
|
health: () => ["arbi", "health"],
|
|
596
596
|
tasks: () => ["arbi", "tasks"],
|
|
597
|
-
|
|
597
|
+
facts: (workspaceId) => ["arbi", "facts", workspaceId],
|
|
598
598
|
configs: () => ["arbi", "configs"],
|
|
599
599
|
activity: () => ["arbi", "activity"],
|
|
600
600
|
projects: () => ["arbi", "projects"],
|
|
601
601
|
projectUsage: (projectExtId, monthsBack) => ["arbi", "projectUsage", projectExtId, monthsBack],
|
|
602
602
|
projectInvoices: (projectExtId) => ["arbi", "projectInvoices", projectExtId],
|
|
603
|
-
userUsageToday: () => ["arbi", "userUsageToday"]
|
|
604
|
-
workspaceChronology: (workspaceId) => ["arbi", "workspaceChronology", workspaceId]
|
|
603
|
+
userUsageToday: () => ["arbi", "userUsageToday"]
|
|
605
604
|
};
|
|
606
605
|
function useWorkspaces(options) {
|
|
607
606
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
@@ -696,11 +695,11 @@ function useTasks(options) {
|
|
|
696
695
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
697
696
|
});
|
|
698
697
|
}
|
|
699
|
-
function
|
|
698
|
+
function useFacts(workspaceId, options) {
|
|
700
699
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
701
700
|
return reactQuery.useQuery({
|
|
702
|
-
queryKey: arbiQueryKeys.
|
|
703
|
-
queryFn: () => arbi.
|
|
701
|
+
queryKey: arbiQueryKeys.facts(workspaceId ?? ""),
|
|
702
|
+
queryFn: () => arbi.facts.list({ pinnedOnly: options?.pinnedOnly }),
|
|
704
703
|
enabled: (options?.enabled ?? true) && !!workspaceId && arbi.hasWorkspace
|
|
705
704
|
});
|
|
706
705
|
}
|
|
@@ -817,14 +816,6 @@ function useUserUsageToday(options) {
|
|
|
817
816
|
enabled: options?.enabled ?? arbi.isLoggedIn
|
|
818
817
|
});
|
|
819
818
|
}
|
|
820
|
-
function useWorkspaceChronology(workspaceId, options) {
|
|
821
|
-
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
822
|
-
return reactQuery.useQuery({
|
|
823
|
-
queryKey: arbiQueryKeys.workspaceChronology(workspaceId ?? ""),
|
|
824
|
-
queryFn: () => arbi.workspaces.chronology(workspaceId),
|
|
825
|
-
enabled: (options?.enabled ?? true) && !!workspaceId && arbi.hasWorkspace
|
|
826
|
-
});
|
|
827
|
-
}
|
|
828
819
|
function WorkspaceScreen({ theme, labels, onSelect }) {
|
|
829
820
|
const arbi = chunkZMTLGO3K_cjs.useArbi();
|
|
830
821
|
const { data: workspaces, isLoading } = useWorkspaces();
|
|
@@ -7314,8 +7305,8 @@ exports.useConversations = useConversations;
|
|
|
7314
7305
|
exports.useDeleteAgents = useDeleteAgents;
|
|
7315
7306
|
exports.useDirectMessages = useDirectMessages;
|
|
7316
7307
|
exports.useDocuments = useDocuments;
|
|
7308
|
+
exports.useFacts = useFacts;
|
|
7317
7309
|
exports.useHealth = useHealth;
|
|
7318
|
-
exports.useMemories = useMemories;
|
|
7319
7310
|
exports.useNotify = useNotify;
|
|
7320
7311
|
exports.useParsedDocument = useParsedDocument;
|
|
7321
7312
|
exports.useProjectInvoices = useProjectInvoices;
|
|
@@ -7328,7 +7319,6 @@ exports.useTags = useTags;
|
|
|
7328
7319
|
exports.useTasks = useTasks;
|
|
7329
7320
|
exports.useThumbnails = useThumbnails;
|
|
7330
7321
|
exports.useUserUsageToday = useUserUsageToday;
|
|
7331
|
-
exports.useWorkspaceChronology = useWorkspaceChronology;
|
|
7332
7322
|
exports.useWorkspaceDocs = useWorkspaceDocs;
|
|
7333
7323
|
exports.useWorkspaces = useWorkspaces;
|
|
7334
7324
|
exports.userDisplayName = userDisplayName;
|