@nexia/sdk 0.6.2 → 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 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);
@@ -51,6 +51,14 @@ interface OrganizationTargetSelectorBaseProps {
51
51
  /** Host-localized organization target controls for the supported page-scope modes. */
52
52
  export type NxOrganizationTargetSelectorProps = (OrganizationTargetSelectorBaseProps & {
53
53
  mode: 'legal-entity-list';
54
+ /** Opt in only when the endpoint supports company-wide and legal-entity records.
55
+ * This selects record scope, not a Legal Entity or an authorization grant.
56
+ * The owning page must persist it and send it to its validated query.
57
+ */
58
+ recordScope?: {
59
+ value: 'all' | 'tenant' | 'legal_entity';
60
+ onChange: (value: 'all' | 'tenant' | 'legal_entity') => void;
61
+ };
54
62
  options: readonly OrganizationTargetSelectorOption[];
55
63
  value: readonly string[];
56
64
  onChange: (legalEntityPublicIds: string[]) => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexia/sdk",
3
- "version": "0.6.2",
3
+ "version": "0.6.5",
4
4
  "description": "Frontend contracts for Nexia App Packages",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",