@fluxo-dev/shell 26.1.1 → 26.1.3
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/index.esm.js +10739 -10810
- package/package.json +12 -12
- package/src/index.d.ts +0 -1
- package/src/lib/pages/settings/communications/email-template.d.ts +7 -1
- package/src/lib/layouts/main/session-persistence.service.d.ts +0 -28
- package/src/lib/layouts/main/shell-session-provider.d.ts +0 -23
- package/src/lib/layouts/main/shell-session.d.ts +0 -41
package/package.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluxo-dev/shell",
|
|
3
|
-
"version": "26.1.
|
|
3
|
+
"version": "26.1.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"react": "^18.3.1",
|
|
6
6
|
"@mantine/core": "^7.12.2",
|
|
7
7
|
"react-router-dom": "^6.11.2",
|
|
8
8
|
"react-redux": "^8.0.5",
|
|
9
9
|
"@reduxjs/toolkit": "^1.9.1",
|
|
10
|
-
"@fluxo-dev/api-client-base": "^26.1.
|
|
11
|
-
"@fluxo-dev/shell-bi": "^26.1.
|
|
12
|
-
"@fluxo-dev/shell-hub": "^26.1.
|
|
13
|
-
"@fluxo-dev/shell-korebi": "^26.1.
|
|
14
|
-
"@fluxo-dev/shell-mfe": "^26.1.
|
|
15
|
-
"@fluxo-dev/shell-printing": "^26.1.
|
|
16
|
-
"@fluxo-dev/shell-reporting": "^26.1.
|
|
17
|
-
"@fluxo-dev/shell-workflow": "^26.1.
|
|
18
|
-
"@fluxo-dev/shell-ravify": "^26.1.
|
|
19
|
-
"@fluxo-dev/state": "^26.1.
|
|
20
|
-
"@fluxo-dev/ui-components": "^26.1.
|
|
10
|
+
"@fluxo-dev/api-client-base": "^26.1.3",
|
|
11
|
+
"@fluxo-dev/shell-bi": "^26.1.3",
|
|
12
|
+
"@fluxo-dev/shell-hub": "^26.1.3",
|
|
13
|
+
"@fluxo-dev/shell-korebi": "^26.1.3",
|
|
14
|
+
"@fluxo-dev/shell-mfe": "^26.1.3",
|
|
15
|
+
"@fluxo-dev/shell-printing": "^26.1.3",
|
|
16
|
+
"@fluxo-dev/shell-reporting": "^26.1.3",
|
|
17
|
+
"@fluxo-dev/shell-workflow": "^26.1.3",
|
|
18
|
+
"@fluxo-dev/shell-ravify": "^26.1.3",
|
|
19
|
+
"@fluxo-dev/state": "^26.1.3",
|
|
20
|
+
"@fluxo-dev/ui-components": "^26.1.3",
|
|
21
21
|
"@scalar/api-reference-react": "0.9.1",
|
|
22
22
|
"@devexpress/analytics-core": "23.1.3",
|
|
23
23
|
"devexpress-dashboard": "23.1.3",
|
package/src/index.d.ts
CHANGED
|
@@ -5,4 +5,3 @@ export { ScreenSharingWidget, type ScreenSharingWidgetProps } from './lib/compon
|
|
|
5
5
|
export { MessageReceiverModal } from './lib/components/message-receiver-modal';
|
|
6
6
|
export { useSessionHub, type ReceivedMessage, type MessageType, type DisplayType } from './lib/hooks/use-session-hub';
|
|
7
7
|
export { LockedResource, type LockedResourceProps } from './lib/locked-resource';
|
|
8
|
-
export { ShellSessionContext } from './lib/layouts/main/shell-session-provider';
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ShellPageRef } from '@fluxo-dev/ui-components';
|
|
3
|
+
interface EmailTemplateProps {
|
|
4
|
+
shellPageRef: React.RefObject<ShellPageRef>;
|
|
5
|
+
}
|
|
6
|
+
export declare function EmailTemplate({ shellPageRef }: EmailTemplateProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { ShellSessionCollection } from './shell-session';
|
|
2
|
-
export interface PersistedSessionData {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
url: string;
|
|
6
|
-
locationState?: any;
|
|
7
|
-
}
|
|
8
|
-
export interface PersistedSessionCollection {
|
|
9
|
-
sessions: PersistedSessionData[];
|
|
10
|
-
currentSessionId: string | null;
|
|
11
|
-
frontendId: string;
|
|
12
|
-
}
|
|
13
|
-
export declare class SessionPersistenceService {
|
|
14
|
-
private static readonly STORAGE_KEY;
|
|
15
|
-
/**
|
|
16
|
-
* Salva le sessioni nel localStorage per un frontend specifico
|
|
17
|
-
*/
|
|
18
|
-
static save(sessionCollection: ShellSessionCollection, frontendId: string): Promise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Recupera le sessioni dal localStorage per un frontend specifico
|
|
21
|
-
*/
|
|
22
|
-
static load(frontendId: string): Promise<ShellSessionCollection | null>;
|
|
23
|
-
/**
|
|
24
|
-
* Rimuove le sessioni per un frontend specifico
|
|
25
|
-
*/
|
|
26
|
-
static clearSessionsForFrontend(frontendId: string): void;
|
|
27
|
-
private static get;
|
|
28
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ShellSession } from "./shell-session";
|
|
2
|
-
import React from "react";
|
|
3
|
-
interface ShellSessionContextData {
|
|
4
|
-
addSession: (title: string, element: React.ReactElement | null, url: string, locationState?: any) => string;
|
|
5
|
-
addOrSwitchToSession: (title: string, element: React.ReactElement | null, url: string, locationState?: any) => string;
|
|
6
|
-
removeSession: (id: string) => void;
|
|
7
|
-
requestRemoveSession: (id: string, title: string) => void;
|
|
8
|
-
closeAllSessions: () => void;
|
|
9
|
-
refreshSession: (id: string) => void;
|
|
10
|
-
getSession: (id: string) => ShellSession | undefined;
|
|
11
|
-
sessions: () => ShellSession[];
|
|
12
|
-
updateSession: (id: string, title: string, element: React.ReactElement | null, url: string, locationState?: any) => void;
|
|
13
|
-
getCurrentSessionId: () => string | null;
|
|
14
|
-
getCurrentSession: () => ShellSession | null | undefined;
|
|
15
|
-
setCurrentSession: (id: string) => void;
|
|
16
|
-
isCurrentSessionDisableable: () => boolean;
|
|
17
|
-
setRemoveConfirmationHandler: (handler: (id: string, title: string) => void) => void;
|
|
18
|
-
}
|
|
19
|
-
export declare const ShellSessionContext: React.Context<ShellSessionContextData>;
|
|
20
|
-
export declare function ShellSessionProvider(props: {
|
|
21
|
-
children: React.ReactNode;
|
|
22
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare class ShellSessionCollection {
|
|
3
|
-
private _sessions;
|
|
4
|
-
private _currentSessionId;
|
|
5
|
-
constructor(sessions: ShellSession[] | undefined, currentSessionId: string | null);
|
|
6
|
-
get currentSession(): ShellSession | null | undefined;
|
|
7
|
-
addSession(title: string, element: React.ReactElement | null, url: string, locationState?: any): ShellSession;
|
|
8
|
-
removeSession(id: string): void;
|
|
9
|
-
getSession(id: string): ShellSession | undefined;
|
|
10
|
-
get sessions(): ShellSession[];
|
|
11
|
-
getCurrentSessionId(): string | null;
|
|
12
|
-
getCurrentSession(): ShellSession | null | undefined;
|
|
13
|
-
setCurrentSession(id: string): void;
|
|
14
|
-
updateSession(id: string, title: string, element: React.ReactElement | null, url: string, locationState?: any): void;
|
|
15
|
-
getPreviuosSessionId(): string;
|
|
16
|
-
/**
|
|
17
|
-
* Trova una sessione che corrisponde all'URL specificato.
|
|
18
|
-
* Il confronto è basato sul pathname, ignorando query params e hash.
|
|
19
|
-
* @param url - URL da cercare
|
|
20
|
-
* @returns La sessione trovata o undefined
|
|
21
|
-
*/
|
|
22
|
-
findSessionByUrl(url: string): ShellSession | undefined;
|
|
23
|
-
getNextSessionId(): string;
|
|
24
|
-
}
|
|
25
|
-
export declare class ShellSession {
|
|
26
|
-
private _id;
|
|
27
|
-
private _title;
|
|
28
|
-
private _element;
|
|
29
|
-
private _url;
|
|
30
|
-
private _locationState;
|
|
31
|
-
private _mountKey;
|
|
32
|
-
constructor(title: string, element: React.ReactElement | null, url: string, locationState?: any, existingId?: string, mountKey?: string);
|
|
33
|
-
get id(): string;
|
|
34
|
-
get title(): string;
|
|
35
|
-
get element(): React.ReactElement | null;
|
|
36
|
-
get url(): string;
|
|
37
|
-
get locationState(): any;
|
|
38
|
-
get mountKey(): string;
|
|
39
|
-
updateSession(title: string, element: React.ReactElement | null, url: string, locationState?: any): void;
|
|
40
|
-
refresh(): void;
|
|
41
|
-
}
|