prometeo-design-system 4.7.6 → 4.7.8

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.
@@ -6,7 +6,7 @@ export interface DrawerFooterProps<TAppMetadata> {
6
6
  currentAppSessions: AuthSession<TAppMetadata>[];
7
7
  resolveUserSecondarySlot: (metadata?: TAppMetadata) => ReactNode | string | null;
8
8
  resolveSessionSecondarySlot: (session: AuthSession<TAppMetadata>) => ReactNode | string | null;
9
- onSessionClick?: (session: AuthSession<TAppMetadata>) => void;
9
+ onSessionClick?: (session: AuthSession<TAppMetadata>, userCardControls: React.RefObject<TicketCardHandlerProps | null>) => void;
10
10
  onLogoutClick?: () => void;
11
11
  onProfileClick?: (collapsed: boolean) => void;
12
12
  options?: PyrionLayoutOptions<TAppMetadata>;
@@ -1,11 +1,13 @@
1
1
  import { AllOptionAccessor } from '../Shared/types';
2
+ import { TicketCardHandlerProps } from '../TicketCard/TicketCard';
2
3
  import { AuthSession } from './PyrionLayout';
3
4
  export interface PLSystemSessionsProps<TAppMetadata> {
4
5
  sessions?: AuthSession<TAppMetadata>[];
5
- onSessionClick?: (session: AuthSession<TAppMetadata>) => void;
6
+ onSessionClick?: (session: AuthSession<TAppMetadata>, userCardControls: React.RefObject<TicketCardHandlerProps | null>) => void;
6
7
  secondarySlot?: React.ReactNode | string | ((session: AuthSession<TAppMetadata>) => React.ReactNode | string | null) | null;
7
8
  subImageUrlAccessor?: subImageUrlAccessor<TAppMetadata>;
8
9
  currentSystemId: string;
10
+ userOptionsControls?: React.RefObject<TicketCardHandlerProps | null>;
9
11
  }
10
12
  export type subImageUrlAccessor<TAppMetadata> = AllOptionAccessor<{
11
13
  metadata: TAppMetadata;
@@ -17,7 +17,7 @@ export type TLayoutBaseProps<TAppMetadata = unknown, TNotificationMetadata = unk
17
17
  currentAppSessions: AuthSession<TAppMetadata>[];
18
18
  resolveUserSecondarySlot: (metadata?: TAppMetadata) => ReactNode | string | null;
19
19
  resolveSessionSecondarySlot: (session: AuthSession<TAppMetadata>) => ReactNode | string | null;
20
- onSessionClick?: (session: AuthSession<TAppMetadata>) => void;
20
+ onSessionClick?: (session: AuthSession<TAppMetadata>, userCardControls: React.RefObject<TicketCardHandlerProps | null>) => void;
21
21
  onLogoutClick?: () => void;
22
22
  options?: PyrionLayoutOptions<TAppMetadata>;
23
23
  currentSystemId: string;
@@ -6,6 +6,7 @@ import { NotificationCardProps } from '../NotificationCard/NotificationCard';
6
6
  import { ScrollTargetData, ScrollTargetConfig } from '../Scrollable/Scrollable';
7
7
  import { AllOptionAccessor } from '../Shared/types';
8
8
  import { TabSwitchElement } from '../TabSwitch/TabSwitch';
9
+ import { TicketCardHandlerProps } from '../TicketCard/TicketCard';
9
10
  import { NotificationLoaderType } from './PLNotificationsList';
10
11
  import { subImageUrlAccessor } from './PLSystemSessions';
11
12
  type TProduct = {
@@ -116,7 +117,7 @@ export interface PyrionLayoutProps<TAppMetadata, TNotificationMetadata = unknown
116
117
  options?: PyrionLayoutOptions<TAppMetadata>;
117
118
  onActionClick?: (id: string, payload?: any) => void;
118
119
  onLinkClick?: (path: string) => void;
119
- onSessionClick?: (session: AuthSession<TAppMetadata>) => void;
120
+ onSessionClick?: (session: AuthSession<TAppMetadata>, userCardControls: React.RefObject<TicketCardHandlerProps | null>) => void;
120
121
  onNavigate?: (from: string, to: string) => void;
121
122
  onSystemLogoClick?: (collapsed?: boolean) => void;
122
123
  onLogoutClick?: () => void;
@@ -5,6 +5,7 @@ type IndicatorProps = {
5
5
  className?: string;
6
6
  type?: IndicatorType;
7
7
  behavior?: 'scroll-on-click' | 'scroll-on-hover' | 'none';
8
+ hoverDelay?: number;
8
9
  };
9
10
  interface IndicatorsProps {
10
11
  top?: IndicatorProps;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prometeo-design-system",
3
3
  "private": false,
4
- "version": "4.7.6",
4
+ "version": "4.7.8",
5
5
  "type": "module",
6
6
  "description": "design kit system",
7
7
  "main": "dist/prometeo-design-system.umd.js",