@burdenoff/microfe-integrations 2026.601.1 → 2026.601.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"IntegrationsProvider.js","names":[],"sources":["../../../src/integrations/providers/IntegrationsProvider.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport { createContext, use, useMemo, useRef } from 'react';\nimport { MemoryRouter } from 'react-router-dom';\nimport { MutationCache, QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport {\n ApolloClient,\n ApolloLink,\n InMemoryCache,\n HttpLink,\n Observable,\n from,\n} from '@apollo/client';\nimport { onError } from '@apollo/client/link/error';\nimport { ApolloProvider } from '@apollo/client/react';\nimport { PermissionProvider } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { isAuthNetworkError, redirectToLogin } from '@burdenoff/fe-libs/shared/utils';\nimport type { IntegrationsRootProps } from '../types';\n\nfunction hasSessionAuthErrors(\n errors: ReadonlyArray<{ message?: string; extensions?: Record<string, unknown> }> = []\n): boolean {\n return errors.some((error) => {\n const code = typeof error.extensions?.code === 'string' ? error.extensions.code : '';\n const errorCode =\n typeof error.extensions?.errorCode === 'string' ? error.extensions.errorCode : '';\n const message = (error.message ?? '').toLowerCase();\n\n return (\n code === 'UNAUTHENTICATED' ||\n errorCode === 'TOKEN_EXPIRED' ||\n message.includes('token_expired') ||\n message.includes('token expired') ||\n message.includes('session expired') ||\n message.includes('unauthorized') ||\n message.includes('unauthenticated') ||\n message.includes('authentication required') ||\n message.includes('workspace context missing')\n );\n });\n}\n\n/**\n * Context value for Integrations microfrontend\n */\ntype IntegrationsContextValue = IntegrationsRootProps;\n\nconst IntegrationsContext = createContext<IntegrationsContextValue | null>(null);\n\n/**\n * Hook to access Integrations context\n */\nexport const useIntegrations = () => {\n const context = use(IntegrationsContext);\n if (!context) {\n throw new Error('useIntegrations must be used within IntegrationsProvider');\n }\n return context;\n};\n\n/**\n * Provider component for Integrations microfrontend\n * Sets up routing, context, Apollo Client, and React Query client\n */\nexport const IntegrationsProvider: FC<PropsWithChildren<IntegrationsRootProps>> = ({\n children,\n basePath,\n navigate,\n currentUser,\n workspaceId,\n apiGatewayUrl,\n authToken,\n workspaceToken,\n getWorkspaceToken,\n onConnectionSelect,\n onProviderSelect,\n adminMode,\n}) => {\n const contextValue: IntegrationsContextValue = {\n basePath,\n navigate,\n currentUser,\n workspaceId,\n apiGatewayUrl,\n authToken,\n workspaceToken,\n getWorkspaceToken,\n onConnectionSelect,\n onProviderSelect,\n adminMode,\n };\n\n const isRefreshingRef = useRef(false);\n const getWorkspaceTokenRef = useRef(getWorkspaceToken);\n getWorkspaceTokenRef.current = getWorkspaceToken;\n\n // Create QueryClient instance (memoized to avoid recreation on re-renders)\n const queryClient = useMemo(\n () => {\n const client = new QueryClient({\n mutationCache: new MutationCache({\n onSuccess: () => {\n void client.invalidateQueries();\n },\n }),\n defaultOptions: {\n queries: {\n retry: 1,\n refetchOnWindowFocus: false,\n staleTime: 5 * 60 * 1000, // 5 minutes\n },\n },\n });\n return client;\n },\n []\n );\n\n // Create ApolloClient instance (memoized, recreated when tokens change)\n // The workspace gateway requires dual-token auth:\n // Authorization: Bearer <authToken> (platform identity)\n // X-Workspace-Authorization: Bearer <workspaceToken> (workspace access)\n const apolloClient = useMemo(() => {\n const headers: Record<string, string> = {};\n if (authToken) {\n headers['Authorization'] = `Bearer ${authToken}`;\n }\n if (workspaceToken) {\n headers['X-Workspace-Authorization'] = `Bearer ${workspaceToken}`;\n }\n if (workspaceId) {\n headers['x-workspace-id'] = workspaceId;\n }\n\n const httpLink = new HttpLink({\n uri: apiGatewayUrl ? `${apiGatewayUrl}/workspaces/graphql` : '/workspaces/graphql',\n headers: Object.keys(headers).length > 0 ? headers : undefined,\n });\n\n const authLink = new ApolloLink((operation, forward) => {\n if (!forward) {\n return new Observable((observer) => {\n observer.complete();\n });\n }\n\n return new Observable((observer) => {\n Promise.resolve()\n .then(async () => {\n let resolvedWorkspaceToken: string | undefined = workspaceToken ?? undefined;\n\n if (!resolvedWorkspaceToken && workspaceId && getWorkspaceTokenRef.current) {\n resolvedWorkspaceToken = (await getWorkspaceTokenRef.current()) ?? undefined;\n }\n\n operation.setContext(\n ({ headers: existingHeaders = {} }: { headers?: Record<string, string> }) => ({\n headers: {\n ...existingHeaders,\n ...(authToken ? { Authorization: `Bearer ${authToken}` } : {}),\n ...(workspaceId ? { 'x-workspace-id': workspaceId } : {}),\n ...(resolvedWorkspaceToken\n ? { 'X-Workspace-Authorization': `Bearer ${resolvedWorkspaceToken}` }\n : {}),\n },\n })\n );\n\n const subscription = forward(operation).subscribe(observer);\n return () => subscription.unsubscribe();\n })\n .catch((linkError) => observer.error(linkError));\n });\n });\n\n const errorLink = onError(({ error, operation, forward }) => {\n if (!error) return;\n\n const errors = 'errors' in error && Array.isArray(error.errors) ? error.errors : [];\n const hasAuthError = hasSessionAuthErrors(errors);\n const shouldRefresh =\n errors.length > 0 &&\n errors.some((err: { extensions?: Record<string, unknown>; message?: string }) => {\n const errorCode = err.extensions?.['errorCode'] as string | undefined;\n const code = err.extensions?.['code'] as string | undefined;\n const message = (err.message ?? '').toLowerCase();\n\n return (\n errorCode === 'TOKEN_EXPIRED' ||\n errorCode === 'NOT_WORKSPACE_MEMBER' ||\n code === 'UNAUTHENTICATED' ||\n message.includes('token_expired') ||\n message.includes('unauthenticated') ||\n message.includes('workspace')\n );\n });\n\n if (!getWorkspaceTokenRef.current || !shouldRefresh || isRefreshingRef.current) {\n if (hasAuthError || (error instanceof Error && isAuthNetworkError(error))) {\n redirectToLogin();\n }\n return;\n }\n\n return new Observable((observer) => {\n isRefreshingRef.current = true;\n getWorkspaceTokenRef\n .current?.()\n .then((freshToken) => {\n isRefreshingRef.current = false;\n\n if (!freshToken) {\n if (hasAuthError) {\n redirectToLogin();\n }\n observer.error(new Error('Failed to refresh workspace token'));\n return;\n }\n\n operation.setContext(\n ({ headers: existingHeaders = {} }: { headers?: Record<string, string> }) => ({\n headers: {\n ...existingHeaders,\n 'X-Workspace-Authorization': `Bearer ${freshToken}`,\n ...(workspaceId ? { 'x-workspace-id': workspaceId } : {}),\n },\n })\n );\n\n const subscriber = forward(operation).subscribe(observer);\n return () => subscriber.unsubscribe();\n })\n .catch((refreshError: unknown) => {\n isRefreshingRef.current = false;\n observer.error(refreshError);\n });\n });\n });\n\n return new ApolloClient({\n link: from([authLink, errorLink, httpLink]),\n cache: new InMemoryCache(),\n defaultOptions: {\n watchQuery: {\n fetchPolicy: 'cache-and-network',\n },\n },\n });\n }, [apiGatewayUrl, authToken, workspaceId, workspaceToken]);\n\n // Wrap content with QueryClientProvider, Context.Provider and PermissionProvider\n const content = (\n <QueryClientProvider client={queryClient}>\n <IntegrationsContext.Provider value={contextValue}>\n <PermissionProvider scopeId={workspaceId ?? null} gateway=\"workspace\">\n {children}\n </PermissionProvider>\n </IntegrationsContext.Provider>\n </QueryClientProvider>\n );\n\n // When integrated into a shell (basePath provided), the shell already has a router\n // and ApolloProvider so we don't create another one. When standalone (no basePath),\n // use MemoryRouter and ApolloProvider.\n if (basePath) {\n // Integrated mode: shell already has BrowserRouter and ApolloProvider, don't create nested ones\n return content;\n }\n\n // Standalone mode: create MemoryRouter and ApolloProvider for independent operation\n return (\n <ApolloProvider client={apolloClient}>\n <MemoryRouter>{content}</MemoryRouter>\n </ApolloProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AAkBA,SAAS,EACP,IAAoF,EAAE,EAC7E;AACT,QAAO,EAAO,MAAM,MAAU;EAC5B,IAAM,IAAO,OAAO,EAAM,YAAY,QAAS,WAAW,EAAM,WAAW,OAAO,IAC5E,IACJ,OAAO,EAAM,YAAY,aAAc,WAAW,EAAM,WAAW,YAAY,IAC3E,KAAW,EAAM,WAAW,IAAI,aAAa;AAEnD,SACE,MAAS,qBACT,MAAc,mBACd,EAAQ,SAAS,gBAAgB,IACjC,EAAQ,SAAS,gBAAgB,IACjC,EAAQ,SAAS,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M,gBAAI,MAAM,oCAAoC,CAAC;AAC9D;;AAGF,SAAU,YACP,EAAE,SAAS,IAAkB,EAAE,QAA8C,EAC5E,SAAS;QACP,GAAG;QACH,6BAA6B,UAAU;QACvC,GAAI,IAAc,EAAE,kBAAkB,GAAa,GAAG,EAAE;QACzD,EACF,EACF;OAED,IAAM,IAAa,EAAQ,EAAU,CAAC,UAAU,EAAS;AACzD,oBAAa,EAAW,aAAa;QACrC,CACD,OAAO,MAA0B;AAEhC,OADA,EAAgB,UAAU,IAC1B,EAAS,MAAM,EAAa;QAC5B;OACJ;MACF;IAGiC;IAAS,CAAC;GAC3C,OAAO,IAAI,GAAe;GAC1B,gBAAgB,EACd,YAAY,EACV,aAAa,qBACd,EACF;GACF,CAAC;IACD;EAAC;EAAe;EAAW;EAAa;EAAe,CAAC,EAGrD,IACJ,kBAAC,GAAD;EAAqB,QAAQ;YAC3B,kBAAC,EAAoB,UAArB;GAA8B,OAAO;aACnC,kBAAC,GAAD;IAAoB,SAAS,KAAe;IAAM,SAAQ;IACvD;IACkB,CAAA;GACQ,CAAA;EACX,CAAA;AAYxB,QANI,IAEK,IAKP,kBAAC,GAAD;EAAgB,QAAQ;YACtB,kBAAC,GAAD,EAAA,UAAe,GAAuB,CAAA;EACvB,CAAA"}
1
+ {"version":3,"file":"IntegrationsProvider.js","names":[],"sources":["../../../src/integrations/providers/IntegrationsProvider.tsx"],"sourcesContent":["import type { FC, PropsWithChildren } from 'react';\nimport { createContext, use, useMemo, useRef } from 'react';\nimport { MemoryRouter } from 'react-router-dom';\nimport { MutationCache, QueryClient, QueryClientProvider } from '@tanstack/react-query';\nimport {\n ApolloClient,\n ApolloLink,\n InMemoryCache,\n HttpLink,\n Observable,\n from,\n} from '@apollo/client';\nimport { onError } from '@apollo/client/link/error';\nimport { ApolloProvider } from '@apollo/client/react';\nimport { PermissionProvider } from '@burdenoff/fe-libs/shared/providers/shell';\nimport { isAuthNetworkError, redirectToLogin } from '@burdenoff/fe-libs/shared/utils';\nimport type { IntegrationsRootProps } from '../types';\n\nfunction hasSessionAuthErrors(\n errors: ReadonlyArray<{ message?: string; extensions?: Record<string, unknown> }> = []\n): boolean {\n return errors.some((error) => {\n const code = typeof error.extensions?.code === 'string' ? error.extensions.code : '';\n const errorCode =\n typeof error.extensions?.errorCode === 'string' ? error.extensions.errorCode : '';\n const message = (error.message ?? '').toLowerCase();\n\n return (\n code === 'UNAUTHENTICATED' ||\n errorCode === 'TOKEN_EXPIRED' ||\n message.includes('token_expired') ||\n message.includes('token expired') ||\n message.includes('session expired') ||\n message.includes('unauthorized') ||\n message.includes('unauthenticated') ||\n message.includes('authentication required') ||\n message.includes('workspace context missing')\n );\n });\n}\n\n/**\n * Context value for Integrations microfrontend\n */\ntype IntegrationsContextValue = IntegrationsRootProps;\n\nconst IntegrationsContext = createContext<IntegrationsContextValue | null>(null);\n\n/**\n * Hook to access Integrations context\n */\nexport const useIntegrations = () => {\n const context = use(IntegrationsContext);\n if (!context) {\n throw new Error('useIntegrations must be used within IntegrationsProvider');\n }\n return context;\n};\n\n/**\n * Provider component for Integrations microfrontend\n * Sets up routing, context, Apollo Client, and React Query client\n */\nexport const IntegrationsProvider: FC<PropsWithChildren<IntegrationsRootProps>> = ({\n children,\n basePath,\n navigate,\n currentUser,\n workspaceId,\n apiGatewayUrl,\n authToken,\n workspaceToken,\n getWorkspaceToken,\n onConnectionSelect,\n onProviderSelect,\n adminMode,\n}) => {\n const contextValue: IntegrationsContextValue = {\n basePath,\n navigate,\n currentUser,\n workspaceId,\n apiGatewayUrl,\n authToken,\n workspaceToken,\n getWorkspaceToken,\n onConnectionSelect,\n onProviderSelect,\n adminMode,\n };\n\n const isRefreshingRef = useRef(false);\n const getWorkspaceTokenRef = useRef(getWorkspaceToken);\n getWorkspaceTokenRef.current = getWorkspaceToken;\n\n // Create QueryClient instance (memoized to avoid recreation on re-renders)\n const queryClient = useMemo(() => {\n const client = new QueryClient({\n mutationCache: new MutationCache({\n onSuccess: () => {\n void client.invalidateQueries();\n },\n }),\n defaultOptions: {\n queries: {\n retry: 1,\n refetchOnWindowFocus: false,\n staleTime: 5 * 60 * 1000, // 5 minutes\n },\n },\n });\n return client;\n }, []);\n\n // Create ApolloClient instance (memoized, recreated when tokens change)\n // The workspace gateway requires dual-token auth:\n // Authorization: Bearer <authToken> (platform identity)\n // X-Workspace-Authorization: Bearer <workspaceToken> (workspace access)\n const apolloClient = useMemo(() => {\n const headers: Record<string, string> = {};\n if (authToken) {\n headers['Authorization'] = `Bearer ${authToken}`;\n }\n if (workspaceToken) {\n headers['X-Workspace-Authorization'] = `Bearer ${workspaceToken}`;\n }\n if (workspaceId) {\n headers['x-workspace-id'] = workspaceId;\n }\n\n const httpLink = new HttpLink({\n uri: apiGatewayUrl ? `${apiGatewayUrl}/workspaces/graphql` : '/workspaces/graphql',\n headers: Object.keys(headers).length > 0 ? headers : undefined,\n });\n\n const authLink = new ApolloLink((operation, forward) => {\n if (!forward) {\n return new Observable((observer) => {\n observer.complete();\n });\n }\n\n return new Observable((observer) => {\n Promise.resolve()\n .then(async () => {\n let resolvedWorkspaceToken: string | undefined = workspaceToken ?? undefined;\n\n if (!resolvedWorkspaceToken && workspaceId && getWorkspaceTokenRef.current) {\n resolvedWorkspaceToken = (await getWorkspaceTokenRef.current()) ?? undefined;\n }\n\n operation.setContext(\n ({ headers: existingHeaders = {} }: { headers?: Record<string, string> }) => ({\n headers: {\n ...existingHeaders,\n ...(authToken ? { Authorization: `Bearer ${authToken}` } : {}),\n ...(workspaceId ? { 'x-workspace-id': workspaceId } : {}),\n ...(resolvedWorkspaceToken\n ? { 'X-Workspace-Authorization': `Bearer ${resolvedWorkspaceToken}` }\n : {}),\n },\n })\n );\n\n const subscription = forward(operation).subscribe(observer);\n return () => subscription.unsubscribe();\n })\n .catch((linkError) => observer.error(linkError));\n });\n });\n\n const errorLink = onError(({ error, operation, forward }) => {\n if (!error) return;\n\n const errors = 'errors' in error && Array.isArray(error.errors) ? error.errors : [];\n const hasAuthError = hasSessionAuthErrors(errors);\n const shouldRefresh =\n errors.length > 0 &&\n errors.some((err: { extensions?: Record<string, unknown>; message?: string }) => {\n const errorCode = err.extensions?.['errorCode'] as string | undefined;\n const code = err.extensions?.['code'] as string | undefined;\n const message = (err.message ?? '').toLowerCase();\n\n return (\n errorCode === 'TOKEN_EXPIRED' ||\n errorCode === 'NOT_WORKSPACE_MEMBER' ||\n code === 'UNAUTHENTICATED' ||\n message.includes('token_expired') ||\n message.includes('unauthenticated') ||\n message.includes('workspace')\n );\n });\n\n if (!getWorkspaceTokenRef.current || !shouldRefresh || isRefreshingRef.current) {\n if (hasAuthError || (error instanceof Error && isAuthNetworkError(error))) {\n redirectToLogin();\n }\n return;\n }\n\n return new Observable((observer) => {\n isRefreshingRef.current = true;\n getWorkspaceTokenRef\n .current?.()\n .then((freshToken) => {\n isRefreshingRef.current = false;\n\n if (!freshToken) {\n if (hasAuthError) {\n redirectToLogin();\n }\n observer.error(new Error('Failed to refresh workspace token'));\n return;\n }\n\n operation.setContext(\n ({ headers: existingHeaders = {} }: { headers?: Record<string, string> }) => ({\n headers: {\n ...existingHeaders,\n 'X-Workspace-Authorization': `Bearer ${freshToken}`,\n ...(workspaceId ? { 'x-workspace-id': workspaceId } : {}),\n },\n })\n );\n\n const subscriber = forward(operation).subscribe(observer);\n return () => subscriber.unsubscribe();\n })\n .catch((refreshError: unknown) => {\n isRefreshingRef.current = false;\n observer.error(refreshError);\n });\n });\n });\n\n return new ApolloClient({\n link: from([authLink, errorLink, httpLink]),\n cache: new InMemoryCache(),\n defaultOptions: {\n watchQuery: {\n fetchPolicy: 'cache-and-network',\n },\n },\n });\n }, [apiGatewayUrl, authToken, workspaceId, workspaceToken]);\n\n // Wrap content with QueryClientProvider, Context.Provider and PermissionProvider\n const content = (\n <QueryClientProvider client={queryClient}>\n <IntegrationsContext.Provider value={contextValue}>\n <PermissionProvider scopeId={workspaceId ?? null} gateway=\"workspace\">\n {children}\n </PermissionProvider>\n </IntegrationsContext.Provider>\n </QueryClientProvider>\n );\n\n // When integrated into a shell (basePath provided), the shell already has a router\n // and ApolloProvider so we don't create another one. When standalone (no basePath),\n // use MemoryRouter and ApolloProvider.\n if (basePath) {\n // Integrated mode: shell already has BrowserRouter and ApolloProvider, don't create nested ones\n return content;\n }\n\n // Standalone mode: create MemoryRouter and ApolloProvider for independent operation\n return (\n <ApolloProvider client={apolloClient}>\n <MemoryRouter>{content}</MemoryRouter>\n </ApolloProvider>\n );\n};\n"],"mappings":";;;;;;;;;;AAkBA,SAAS,EACP,IAAoF,EAAE,EAC7E;AACT,QAAO,EAAO,MAAM,MAAU;EAC5B,IAAM,IAAO,OAAO,EAAM,YAAY,QAAS,WAAW,EAAM,WAAW,OAAO,IAC5E,IACJ,OAAO,EAAM,YAAY,aAAc,WAAW,EAAM,WAAW,YAAY,IAC3E,KAAW,EAAM,WAAW,IAAI,aAAa;AAEnD,SACE,MAAS,qBACT,MAAc,mBACd,EAAQ,SAAS,gBAAgB,IACjC,EAAQ,SAAS,gBAAgB,IACjC,EAAQ,SAAS,kBAAkB,IACnC,EAAQ,SAAS,eAAe,IAChC,EAAQ,SAAS,kBAAkB,IACnC,EAAQ,SAAS,0BAA0B,IAC3C,EAAQ,SAAS,4BAA4B;GAE/C;;AAQJ,IAAM,IAAsB,EAA+C,KAAK,EAKnE,UAAwB;CACnC,IAAM,IAAU,EAAI,EAAoB;AACxC,KAAI,CAAC,EACH,OAAU,MAAM,2DAA2D;AAE7E,QAAO;GAOI,KAAsE,EACjF,aACA,aACA,aACA,gBACA,gBACA,kBACA,cACA,mBACA,sBACA,uBACA,qBACA,mBACI;CACJ,IAAM,IAAyC;EAC7C;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD,EAEK,IAAkB,EAAO,GAAM,EAC/B,IAAuB,EAAO,EAAkB;AACtD,GAAqB,UAAU;CAG/B,IAAM,IAAc,QAAc;EAChC,IAAM,IAAS,IAAI,EAAY;GAC7B,eAAe,IAAI,EAA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AA8B,OAAO;aACnC,kBAAC,GAAD;IAAoB,SAAS,KAAe;IAAM,SAAQ;IACvD;IACkB,CAAA;GACQ,CAAA;EACX,CAAA;AAYxB,QANI,IAEK,IAKP,kBAAC,GAAD;EAAgB,QAAQ;YACtB,kBAAC,GAAD,EAAA,UAAe,GAAuB,CAAA;EACvB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-integrations",
3
- "version": "2026.601.1",
3
+ "version": "2026.601.2",
4
4
  "description": "Burdenoff Integrations Microfrontend - Plugin-based provider and connection management interface",
5
5
  "type": "module",
6
6
  "files": [