@nexia/sdk 0.6.4 → 0.6.5
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/host.d.ts +4 -2
- package/dist/host.js +5 -2
- package/package.json +1 -1
package/dist/host.d.ts
CHANGED
|
@@ -262,7 +262,8 @@ export interface NexiaAppFrontendHostBindings {
|
|
|
262
262
|
useLegalEntityMembersQuery: (tenantId: string | undefined, legalEntityPublicId: string | null, params?: LegalEntityMemberListParams, enabled?: boolean) => LegalEntityMemberQueryResult;
|
|
263
263
|
useActiveWorkTabId: () => string | null;
|
|
264
264
|
useIsActiveWorkTabVisible: () => boolean;
|
|
265
|
-
useMarkTabDirty: (dirty: boolean) => void;
|
|
265
|
+
useMarkTabDirty: (dirty: boolean, snapshot?: string, initialSnapshot?: string) => void;
|
|
266
|
+
useClearTabDirty: () => () => void;
|
|
266
267
|
useMessage: () => MessageApi;
|
|
267
268
|
useOpenResourceWorkTab: (defaultIcon?: string) => OpenResourceWorkTab;
|
|
268
269
|
useRegisterResourceCreateReceiver: (registration: ResourceCreateReceiverRegistration | null) => void;
|
|
@@ -563,7 +564,8 @@ export declare function useRegisterListLocateAction<Row>(options: UseRegisterLis
|
|
|
563
564
|
export declare function useOpenResourceWorkTab(defaultIcon?: string): OpenResourceWorkTab;
|
|
564
565
|
export declare function useRegisterResourceCreateReceiver(registration: ResourceCreateReceiverRegistration | null): void;
|
|
565
566
|
export declare function useResourceCreateCompletion(): ResourceCreateCompletion;
|
|
566
|
-
export declare function useMarkTabDirty(dirty: boolean): void;
|
|
567
|
+
export declare function useMarkTabDirty(dirty: boolean, snapshot?: string, initialSnapshot?: string): void;
|
|
568
|
+
export declare function useClearTabDirty(): () => void;
|
|
567
569
|
export declare function useRegisterTabActions(actions: TabContextActionRegistration[] | null): void;
|
|
568
570
|
export declare function useWorkTabLabel(label: string | null | undefined): void;
|
|
569
571
|
export declare function useWorkSurfaceLabels(input: WorkSurfaceLabelInput): WorkSurfaceLabels;
|
package/dist/host.js
CHANGED
|
@@ -688,8 +688,11 @@ export function useRegisterResourceCreateReceiver(registration) {
|
|
|
688
688
|
export function useResourceCreateCompletion() {
|
|
689
689
|
return host().hooks.useResourceCreateCompletion();
|
|
690
690
|
}
|
|
691
|
-
export function useMarkTabDirty(dirty) {
|
|
692
|
-
host().hooks.useMarkTabDirty(dirty);
|
|
691
|
+
export function useMarkTabDirty(dirty, snapshot, initialSnapshot) {
|
|
692
|
+
host().hooks.useMarkTabDirty(dirty, snapshot, initialSnapshot);
|
|
693
|
+
}
|
|
694
|
+
export function useClearTabDirty() {
|
|
695
|
+
return host().hooks.useClearTabDirty();
|
|
693
696
|
}
|
|
694
697
|
export function useRegisterTabActions(actions) {
|
|
695
698
|
host().hooks.useRegisterTabActions(actions);
|