diff --git a/.reports/embedded-react-sdk.api.md b/.reports/embedded-react-sdk.api.md index e3cae5c63..370416b88 100644 --- a/.reports/embedded-react-sdk.api.md +++ b/.reports/embedded-react-sdk.api.md @@ -2500,6 +2500,7 @@ export interface GustoProviderProps { // Warning: (ae-forgotten-export) The symbol "LoadingIndicatorContextProps" needs to be exported by the entry point index.d.ts LoaderComponent?: LoadingIndicatorContextProps['LoadingIndicator']; locale?: string; + nonce?: string; portalContainer?: HTMLElement; queryClient?: QueryClient; theme?: Partial; @@ -5356,6 +5357,9 @@ export interface UseJobFormReady extends BaseFormHookReady string | undefined; + // Warning: (ae-internal-missing-underscore) The name "useObservability" should be prefixed with an underscore because the declaration is marked as @internal // // @internal diff --git a/docs/api/index.md b/docs/api/index.md index d40f37b5e..437d1ccfe 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -98,6 +98,47 @@ return ( ) ``` +## Hooks + + + +### useNonce() + +> **useNonce**(): `string` \| `undefined` + +Returns the CSP nonce supplied to [GustoProvider](#gustoprovider), or `undefined` when none was provided. + +#### Returns + +`string` \| `undefined` + +The active nonce, or `undefined` when [GustoProvider](#gustoprovider) was not given a `nonce`. + +#### Remarks + +Use this when a custom UI component or partner-provided code injects a runtime `