@burdenoff/fe-libs 2026.1023.7 → 2026.1023.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.
Files changed (35) hide show
  1. package/dist/shared/graphql/client.d.ts +9 -0
  2. package/dist/shared/graphql/client.js +241 -201
  3. package/dist/shared/graphql/fetch.js +135 -123
  4. package/dist/shared/graphql/index.d.ts +1 -0
  5. package/dist/shared/graphql/workspaceOperationGuard.d.ts +70 -0
  6. package/dist/shared/graphql/workspaceOperationGuard.js +62 -0
  7. package/dist/shared/providers/AppShellProvider.d.ts +16 -0
  8. package/dist/shared/providers/AppShellProvider.js +232 -226
  9. package/dist/shared/providers/shell/AuthProvider.d.ts +14 -1
  10. package/dist/shared/providers/shell/AuthProvider.js +105 -94
  11. package/dist/shared/providers/shell/MultiGatewayProvider.d.ts +8 -1
  12. package/dist/shared/providers/shell/MultiGatewayProvider.js +115 -119
  13. package/dist/shared/providers/shell/ProfileStorageManager.js +1 -1
  14. package/dist/shared/providers/shell/WorkspaceWriteRefusedToastListener.d.ts +4 -0
  15. package/dist/shared/providers/shell/WorkspaceWriteRefusedToastListener.js +23 -0
  16. package/dist/shared/providers/shell/authProvider/identityChange.d.ts +26 -0
  17. package/dist/shared/providers/shell/authProvider/identityChange.js +11 -0
  18. package/dist/shared/providers/shell/authProvider/useAuthActions.d.ts +4 -1
  19. package/dist/shared/providers/shell/authProvider/useAuthActions.js +105 -92
  20. package/dist/shared/providers/shell/authProvider/useBridgeInitialization.d.ts +27 -1
  21. package/dist/shared/providers/shell/authProvider/useBridgeInitialization.js +82 -62
  22. package/dist/shared/providers/shell/authProvider/useRemoteSLO.d.ts +4 -1
  23. package/dist/shared/providers/shell/authProvider/useRemoteSLO.js +16 -14
  24. package/dist/shared/providers/shell/authProvider/useStorageSync.d.ts +4 -1
  25. package/dist/shared/providers/shell/authProvider/useStorageSync.js +19 -14
  26. package/dist/shared/providers/shell/contextSwitchCache.d.ts +4 -0
  27. package/dist/shared/providers/shell/contextSwitchCache.js +17 -0
  28. package/dist/shared/providers/shell/identityQueryReset.d.ts +17 -0
  29. package/dist/shared/providers/shell/identityQueryReset.js +21 -0
  30. package/dist/shared/providers/shell/identityScopedQueryReset.d.ts +16 -0
  31. package/dist/shared/providers/shell/identityScopedQueryReset.js +30 -0
  32. package/dist/shared/providers/shell/index.d.ts +1 -1
  33. package/dist/shared-graphql.js +11 -10
  34. package/dist/shared.js +129 -128
  35. package/package.json +2 -2
@@ -2,6 +2,7 @@ import { ApolloClient, InMemoryCache } from '@apollo/client/core';
2
2
  import { RetryLink } from '@apollo/client/link/retry';
3
3
  import { Gateway } from '../config';
4
4
  import { RetryPolicyOperation } from './retryPolicy';
5
+ import { WorkspaceOperationGuardMode } from './workspaceOperationGuard';
5
6
  /**
6
7
  * Decide whether the transport may retry a failed operation. Pure so it can be
7
8
  * unit-tested without a client. Mutations are never retried (an ambiguous
@@ -92,6 +93,14 @@ export interface CreateClientOptions {
92
93
  batchInterval?: number;
93
94
  /** Enable debug logging */
94
95
  debug?: boolean;
96
+ /**
97
+ * BOFF-8106: what to do with an operation whose ContextInput names a
98
+ * workspace other than the active one (workspace gateway only). `'off'`
99
+ * (default) sends it as before; `'report'` sends it and dispatches
100
+ * `burdenoff:workspace-context-mismatch`; `'enforce'` does not send it and
101
+ * ends it with a `WorkspaceContextChangedError`. See workspaceOperationGuard.ts.
102
+ */
103
+ workspaceOperationGuard?: WorkspaceOperationGuardMode;
95
104
  }
96
105
  export interface MutationSuccessEvent {
97
106
  gateway: Gateway;