@trii/components 3.1.0 → 3.1.1

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.d.ts CHANGED
@@ -674,7 +674,20 @@ declare const ChatDetailsSidebar: (props: ChatDetailsSidebarProps) => react_jsx_
674
674
 
675
675
  declare const i18nInstance: i18next.i18n;
676
676
 
677
- declare const MuiComponentsConfig: (themeRedux: Theme) => Theme;
677
+ /**
678
+ * Ajustes que difieren entre apps. Los valores por defecto son los que ya
679
+ * usaba el paquete, asi que omitir las opciones no cambia nada.
680
+ */
681
+ interface MuiComponentsConfigOptions {
682
+ /**
683
+ * Fondo del modal y su backdrop en transparente. Lo usan header y home;
684
+ * contacts lo tenia desactivado a proposito.
685
+ */
686
+ transparentModal?: boolean;
687
+ /** z-index del popper del Autocomplete. Header necesita 1; el resto, 11. */
688
+ autocompleteZIndex?: number;
689
+ }
690
+ declare const MuiComponentsConfig: (themeRedux: Theme, options?: MuiComponentsConfigOptions) => Theme;
678
691
 
679
692
  /**
680
693
  * Forma mínima del store que necesita este slice: la app que lo use tiene que
@@ -684,6 +697,8 @@ interface ThemeRootState {
684
697
  User: {
685
698
  user: {
686
699
  uid: string;
700
+ /** Requerido por `updateTheme`: la URL lo lleva en la ruta. */
701
+ spaceId?: string;
687
702
  };
688
703
  };
689
704
  Theme: ThemeState;
@@ -802,4 +817,4 @@ declare const lightGray: Theme;
802
817
  declare const darkBlue: Theme;
803
818
  declare const darkBlack: Theme;
804
819
 
805
- export { AsyncContent, type AsyncContentProps, type AsyncData, type AsyncState, type AsyncStatus, type Calendar, type Contact, ContactInfoPopup, ChatDetailsSidebar as ContactSidebar, type ChatDetailsSidebarProps as ContactSidebarProps, EditContactModal, type EditContactModalProps, type EditContactMode, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, type EventData, EventsDialog, type EventsDialogProps, type IsEmptyFn, type ItemType, type ModalMode, MuiComponentsConfig, type Notification, PanelErrorBoundary, type PanelErrorBoundaryProps, type SidebarChatIntegration, type StartConversationTarget, type TaskData, type ThemeName, type ThemeRootState, type ThemeState, type UseAsyncDataResult, asyncIdle, asyncRequestFailed, asyncRequestStarted, asyncRequestSucceeded, darkBlack, darkBlue, defaultIsEmpty, deriveAsyncState, getErrorMessage, i18nInstance as i18n, isStale, isValidThemeName, lightAmber, lightBlue, lightBlueIndigo, lightBrown, lightGray, lightGreen, lightLime, lightOrange, lightPink, lightPurple, lightRed, lightTeal, lightYellow, selectDarkTheme, selectTheme, selectThemeToggleStatus, selectedDarkTheme, selectedTheme, _default as themeReducer, toggleModeTheme, toggleTheme, updateTheme, useAsyncData };
820
+ export { AsyncContent, type AsyncContentProps, type AsyncData, type AsyncState, type AsyncStatus, type Calendar, type Contact, ContactInfoPopup, ChatDetailsSidebar as ContactSidebar, type ChatDetailsSidebarProps as ContactSidebarProps, EditContactModal, type EditContactModalProps, type EditContactMode, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, type EventData, EventsDialog, type EventsDialogProps, type IsEmptyFn, type ItemType, type ModalMode, MuiComponentsConfig, type MuiComponentsConfigOptions, type Notification, PanelErrorBoundary, type PanelErrorBoundaryProps, type SidebarChatIntegration, type StartConversationTarget, type TaskData, type ThemeName, type ThemeRootState, type ThemeState, type UseAsyncDataResult, asyncIdle, asyncRequestFailed, asyncRequestStarted, asyncRequestSucceeded, darkBlack, darkBlue, defaultIsEmpty, deriveAsyncState, getErrorMessage, i18nInstance as i18n, isStale, isValidThemeName, lightAmber, lightBlue, lightBlueIndigo, lightBrown, lightGray, lightGreen, lightLime, lightOrange, lightPink, lightPurple, lightRed, lightTeal, lightYellow, selectDarkTheme, selectTheme, selectThemeToggleStatus, selectedDarkTheme, selectedTheme, _default as themeReducer, toggleModeTheme, toggleTheme, updateTheme, useAsyncData };
@@ -1,3 +1,16 @@
1
1
  import { Theme } from '@mui/material';
2
- declare const MuiComponentsConfig: (themeRedux: Theme) => Theme;
2
+ /**
3
+ * Ajustes que difieren entre apps. Los valores por defecto son los que ya
4
+ * usaba el paquete, asi que omitir las opciones no cambia nada.
5
+ */
6
+ export interface MuiComponentsConfigOptions {
7
+ /**
8
+ * Fondo del modal y su backdrop en transparente. Lo usan header y home;
9
+ * contacts lo tenia desactivado a proposito.
10
+ */
11
+ transparentModal?: boolean;
12
+ /** z-index del popper del Autocomplete. Header necesita 1; el resto, 11. */
13
+ autocompleteZIndex?: number;
14
+ }
15
+ declare const MuiComponentsConfig: (themeRedux: Theme, options?: MuiComponentsConfigOptions) => Theme;
3
16
  export default MuiComponentsConfig;
@@ -1,4 +1,5 @@
1
1
  export { default as MuiComponentsConfig } from './MuiComponentsConfig';
2
+ export type { MuiComponentsConfigOptions } from './MuiComponentsConfig';
2
3
  export { default as themeReducer } from './themeSlice';
3
4
  export * from './themeProvider';
4
5
  export * from './themeSlice';
@@ -7,6 +7,8 @@ export interface ThemeRootState {
7
7
  User: {
8
8
  user: {
9
9
  uid: string;
10
+ /** Requerido por `updateTheme`: la URL lo lleva en la ruta. */
11
+ spaceId?: string;
10
12
  };
11
13
  };
12
14
  Theme: ThemeState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trii/components",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "Trii components package",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",