forlogic-core 3.0.4 → 3.0.6

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/types.d.ts CHANGED
@@ -67,10 +67,14 @@ export interface CrudManager<T extends BaseEntity> {
67
67
  searchTerm: string;
68
68
  sortField: string;
69
69
  sortDirection: SortDirection;
70
+ /** `true` quando a ordenação atual veio de uma escolha salva no navegador (localStorage), não do default. */
71
+ hasStoredSort?: boolean;
70
72
  currentPage: number;
71
73
  itemsPerPage: number;
72
74
  handleSearch: (search: string) => void;
73
75
  handleSort: (field: string) => void;
76
+ /** Define a ordenação diretamente, sem alternar asc/desc. Usado para aplicar `defaultSort` inicial. */
77
+ setSort?: (field: string, direction: SortDirection) => void;
74
78
  handlePageChange: (page: number) => void;
75
79
  handleItemsPerPageChange: (limit: number) => void;
76
80
  clearFilters: () => void;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Página "Atualizações" — lista todas as atualizações do sistema.
3
+ * Usada pelo destino do cafézinho (ver todas as atualizações).
4
+ */
5
+ export declare function UpdatesFeedPage(): import("react").JSX.Element;
@@ -0,0 +1,22 @@
1
+ export interface UpdateFeedItem {
2
+ releaseUpdate: string;
3
+ softwares: string | null;
4
+ title: string;
5
+ description: string;
6
+ }
7
+ export interface UpdateFeedSoftware {
8
+ id: number;
9
+ alias: string;
10
+ namePtBr: string;
11
+ nameUs?: string;
12
+ nameEs?: string;
13
+ indent: boolean;
14
+ }
15
+ /**
16
+ * Lista todas as atualizações do sistema (tela "ver todas as atualizações" do cafézinho).
17
+ */
18
+ export declare function useUpdatesFeed(): import("@tanstack/react-query").UseQueryResult<UpdateFeedItem[], Error>;
19
+ /**
20
+ * Softwares (módulos) do Qualiex, ordenados para exibição.
21
+ */
22
+ export declare function useUpdatesSoftwares(): import("@tanstack/react-query").UseQueryResult<UpdateFeedSoftware[], Error>;
@@ -3,6 +3,9 @@ export type { UpdatesBarProps } from './components/UpdatesBar';
3
3
  export { UpdatesDialog } from './components/UpdatesDialog';
4
4
  export type { UpdatesDialogProps } from './components/UpdatesDialog';
5
5
  export { UserUpdatesViewer } from './components/UserUpdatesViewer';
6
+ export { UpdatesFeedPage } from './components/UpdatesFeedPage';
7
+ export { useUpdatesFeed, useUpdatesSoftwares } from './hooks/useUpdatesFeed';
8
+ export type { UpdateFeedItem, UpdateFeedSoftware } from './hooks/useUpdatesFeed';
6
9
  export { useUserUpdatesBar, useUserUpdatesDialog, markUpdateVisualized, } from './hooks/useUserUpdates';
7
10
  export type { UserUpdateBarItem, UserUpdateDialogItem, UpdateTypeId } from './types';
8
11
  export { getCommonBaseUrl, getIdentBaseUrl, buildQualiexHeaders, qualiexFetch, } from '../qualiex/services/qualiexApiService';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "forlogic-core",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",