@trii/components 2.0.104 → 3.1.0
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/cjs/index.js +88 -88
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +91 -91
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +71 -55
- package/dist/types/components/ContactSidebar/ChatDetailsSidebar.d.ts +17 -3
- package/dist/types/components/ContactSidebar/SidebarContent.d.ts +9 -4
- package/dist/types/components/ContactSidebar/components/PanelView/PanelView.d.ts +1 -4
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactMedia/ContactMedia.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/GroupData/GroupData.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/index.d.ts +0 -3
- package/dist/types/components/ContactSidebar/components/PanelView/layout/SectionCard/SectionCard.d.ts +1 -1
- package/dist/types/components/ContactSidebar/components/PanelView/types/ContactProps.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/TabsMenu/TabsMenu.d.ts +0 -3
- package/dist/types/components/ContactSidebar/components/index.d.ts +0 -3
- package/dist/types/components/EditContactModal/context/LanguageContext.d.ts +9 -0
- package/dist/types/components/EventsDialog/theme/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/theme/themeProvider.d.ts +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/theme/MuiComponentsConfig.d.ts +3 -0
- package/dist/types/theme/index.d.ts +4 -0
- package/dist/types/theme/themeProvider.d.ts +74 -0
- package/dist/types/theme/themeSlice.d.ts +52 -0
- package/package.json +1 -1
- package/readme +71 -71
- package/dist/types/components/ContactSidebar/components/AddButton/AddButton.d.ts +0 -5
- package/dist/types/components/ContactSidebar/components/AssistantView/AssistantView.d.ts +0 -29
- package/dist/types/components/ContactSidebar/components/InteractionView/AssignmentsView.d.ts +0 -12
- package/dist/types/components/ContactSidebar/components/InteractionView/InteractionSummary.d.ts +0 -16
- package/dist/types/components/ContactSidebar/components/InteractionView/InteractionView.d.ts +0 -3
- package/dist/types/components/ContactSidebar/components/InteractionView/OperationalActivityView.d.ts +0 -13
- package/dist/types/components/ContactSidebar/components/InteractionView/ParticipantsView.d.ts +0 -15
- package/dist/types/components/ContactSidebar/components/InteractionView/ServiceLevelView.d.ts +0 -33
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactHighlights/ContactHighlights.d.ts +0 -2
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactHighlights/index.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactRepairs/ContactRepairs.d.ts +0 -4
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactRepairs/components/RepairSection/RepairSection.d.ts +0 -7
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactRepairs/index.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTicket/ContactTicket.d.ts +0 -4
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTicket/components/TicketSection/TicketSection.d.ts +0 -7
- package/dist/types/components/ContactSidebar/components/PanelView/components/ContactTicket/index.d.ts +0 -1
- package/dist/types/components/ContactSidebar/components/SidebarViewNavigation/SidebarViewNavigation.d.ts +0 -15
- package/dist/types/components/ContactSidebar/hooks/useSectionRefs.d.ts +0 -19
package/dist/types/components/ContactSidebar/components/InteractionView/AssignmentsView.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface AssignmentHistoryItem {
|
|
2
|
-
id: string;
|
|
3
|
-
description: string;
|
|
4
|
-
time: string;
|
|
5
|
-
relatedTo: string;
|
|
6
|
-
}
|
|
7
|
-
interface AssignmentsViewProps {
|
|
8
|
-
history?: AssignmentHistoryItem[];
|
|
9
|
-
}
|
|
10
|
-
/** Timeline visual de asignaciones, independiente de su futura fuente de datos. */
|
|
11
|
-
declare const AssignmentsView: ({ history, }: AssignmentsViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
export default AssignmentsView;
|
package/dist/types/components/ContactSidebar/components/InteractionView/InteractionSummary.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export interface InteractionSummaryData {
|
|
2
|
-
group: string;
|
|
3
|
-
responsible: string;
|
|
4
|
-
status: string;
|
|
5
|
-
tracking: Array<{
|
|
6
|
-
id: string;
|
|
7
|
-
label: string;
|
|
8
|
-
checked: boolean;
|
|
9
|
-
}>;
|
|
10
|
-
}
|
|
11
|
-
interface InteractionSummaryProps {
|
|
12
|
-
data?: InteractionSummaryData;
|
|
13
|
-
}
|
|
14
|
-
/** Resumen visual desacoplado de la fuente de datos de una interacción. */
|
|
15
|
-
declare const InteractionSummary: ({ data, }: InteractionSummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export default InteractionSummary;
|
package/dist/types/components/ContactSidebar/components/InteractionView/OperationalActivityView.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export interface OperationalActivityEvent {
|
|
2
|
-
id: string;
|
|
3
|
-
description: string;
|
|
4
|
-
time: string;
|
|
5
|
-
category: string;
|
|
6
|
-
color: 'success' | 'error' | 'warning' | 'neutral';
|
|
7
|
-
}
|
|
8
|
-
interface OperationalActivityViewProps {
|
|
9
|
-
events?: OperationalActivityEvent[];
|
|
10
|
-
}
|
|
11
|
-
/** Cronología visual desacoplada de la futura fuente de eventos operativos. */
|
|
12
|
-
declare const OperationalActivityView: ({ events, }: OperationalActivityViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
export default OperationalActivityView;
|
package/dist/types/components/ContactSidebar/components/InteractionView/ParticipantsView.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface Participant {
|
|
2
|
-
id: string;
|
|
3
|
-
initials: string;
|
|
4
|
-
name: string;
|
|
5
|
-
role: string;
|
|
6
|
-
details: string;
|
|
7
|
-
avatarColor: string;
|
|
8
|
-
status?: string;
|
|
9
|
-
}
|
|
10
|
-
interface ParticipantsViewProps {
|
|
11
|
-
participants?: Participant[];
|
|
12
|
-
}
|
|
13
|
-
/** Lista visual de participantes desacoplada de la futura fuente de datos. */
|
|
14
|
-
declare const ParticipantsView: ({ participants, }: ParticipantsViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default ParticipantsView;
|
package/dist/types/components/ContactSidebar/components/InteractionView/ServiceLevelView.d.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
type ServiceLevelStatus = 'completed' | 'inProgress' | 'expired';
|
|
2
|
-
interface ServiceLevelObjective {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
details: string;
|
|
6
|
-
status: ServiceLevelStatus;
|
|
7
|
-
}
|
|
8
|
-
interface ServiceLevelPolicyItem {
|
|
9
|
-
id: string;
|
|
10
|
-
label: string;
|
|
11
|
-
value: string;
|
|
12
|
-
}
|
|
13
|
-
interface ServiceLevelHistoryItem {
|
|
14
|
-
id: string;
|
|
15
|
-
title: string;
|
|
16
|
-
details: string;
|
|
17
|
-
}
|
|
18
|
-
export interface ServiceLevelData {
|
|
19
|
-
statusTitle: string;
|
|
20
|
-
statusDescription: string;
|
|
21
|
-
objectives: ServiceLevelObjective[];
|
|
22
|
-
policy: ServiceLevelPolicyItem[];
|
|
23
|
-
history: ServiceLevelHistoryItem[];
|
|
24
|
-
}
|
|
25
|
-
declare const ServiceLevelHistoryItem: ({ item, }: {
|
|
26
|
-
item: ServiceLevelHistoryItem;
|
|
27
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
interface ServiceLevelViewProps {
|
|
29
|
-
data?: ServiceLevelData;
|
|
30
|
-
}
|
|
31
|
-
/** Vista UI de SLA desacoplada de cálculos y datos operativos reales. */
|
|
32
|
-
declare const ServiceLevelView: ({ data, }: ServiceLevelViewProps) => import("react/jsx-runtime").JSX.Element;
|
|
33
|
-
export default ServiceLevelView;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ContactHighlights';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ContactRepairs';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default } from './ContactTicket';
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
|
-
export type SidebarView = 'contact' | 'interaction' | 'assistant';
|
|
3
|
-
export interface SidebarViewDefinition {
|
|
4
|
-
id: SidebarView;
|
|
5
|
-
label: string;
|
|
6
|
-
icon: ReactNode;
|
|
7
|
-
}
|
|
8
|
-
interface SidebarViewNavigationProps {
|
|
9
|
-
activeView: SidebarView;
|
|
10
|
-
onChange: (view: SidebarView) => void;
|
|
11
|
-
views: SidebarViewDefinition[];
|
|
12
|
-
}
|
|
13
|
-
/** Navegación de primer nivel del panel lateral. */
|
|
14
|
-
declare const SidebarViewNavigation: ({ activeView, onChange, views, }: SidebarViewNavigationProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export default SidebarViewNavigation;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { RefObject } from 'react';
|
|
2
|
-
export interface SectionRefs {
|
|
3
|
-
contactDataRef: RefObject<HTMLElement | null>;
|
|
4
|
-
contactConversationRef: RefObject<HTMLElement | null>;
|
|
5
|
-
contactTicketRef: RefObject<HTMLElement | null>;
|
|
6
|
-
contactNotesRef: RefObject<HTMLElement | null>;
|
|
7
|
-
contactRepairsRef: RefObject<HTMLElement | null>;
|
|
8
|
-
contactFilesRef: RefObject<HTMLElement | null>;
|
|
9
|
-
contactMediaRef: RefObject<HTMLElement | null>;
|
|
10
|
-
contactHistoryRef: RefObject<HTMLElement | null>;
|
|
11
|
-
contactEventRef: RefObject<HTMLElement | null>;
|
|
12
|
-
contactTaskRef: RefObject<HTMLElement | null>;
|
|
13
|
-
contactButtonsRef: RefObject<HTMLElement | null>[];
|
|
14
|
-
contactPanelShopRef: RefObject<HTMLElement | null>;
|
|
15
|
-
contactRelationsRef: RefObject<HTMLElement | null>;
|
|
16
|
-
groupDataRef: RefObject<HTMLDivElement | null>;
|
|
17
|
-
}
|
|
18
|
-
declare function useSectionRefs(buttonsData?: any[] | null): SectionRefs;
|
|
19
|
-
export default useSectionRefs;
|