Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions .reports/embedded-react-sdk.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3067,7 +3067,9 @@ export type NumberStateTaxFieldProps = BaseStateTaxFieldProps & {
FieldComponent?: ComponentType<NumberInputProps>;
};

// @public
// Warning: (ae-internal-missing-underscore) The name "ObservabilityContextValue" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export interface ObservabilityContextValue {
observability: ObservabilityHook | undefined;
}
Expand Down Expand Up @@ -3106,10 +3108,14 @@ export interface ObservabilityMetric {
// @public (undocumented)
export type ObservabilityMetricUnit = 'ms' | 'count' | 'bytes' | 'percent';

// @public
// Warning: (ae-internal-missing-underscore) The name "ObservabilityProvider" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export const ObservabilityProvider: (input: ObservabilityProviderProps) => JSX_2.Element;

// @public
// Warning: (ae-internal-missing-underscore) The name "ObservabilityProviderProps" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export interface ObservabilityProviderProps {
// (undocumented)
children: ReactNode;
Expand Down Expand Up @@ -5433,7 +5439,9 @@ export interface UseJobFormReady extends BaseFormHookReady<FieldsMetadata, JobFo
// @public (undocumented)
export type UseJobFormResult = HookLoadingResult | UseJobFormReady;

// @public
// Warning: (ae-internal-missing-underscore) The name "useObservability" should be prefixed with an underscore because the declaration is marked as @internal
//
// @internal
export const useObservability: () => ObservabilityContextValue;

// Warning: (ae-missing-release-tag) "usePaymentMethodForm" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
Expand Down
2 changes: 0 additions & 2 deletions src/components/Base/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ export {
BaseBoundaries,
BaseLayout,
type BaseComponentInterface,
type BaseLayoutProps,
type BaseBoundariesProps,
type CommonComponentInterface,
} from './Base'
export { createCompoundContext } from './createCompoundContext'
Expand Down
2 changes: 1 addition & 1 deletion src/components/Flow/useFlow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type { EventType } from '@/shared/constants'
*
* @internal
*/
export interface CtaConfig {
interface CtaConfig {
labelKey: string
namespace?: keyof CustomTypeOptions['resources']
}
Expand Down
4 changes: 2 additions & 2 deletions src/contexts/LocaleProvider/LocaleProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { LocaleContext } from './useLocale'
/**
* Props for {@link LocaleProvider}: the {@link LocaleProps} settings plus any children to render within the locale scope.
*
* @public
* @internal
*/
export interface LocaleProviderProps extends LocaleProps {
children?: React.ReactNode
Expand All @@ -19,7 +19,7 @@ export interface LocaleProviderProps extends LocaleProps {
*
* @param props - The {@link LocaleProviderProps} controlling locale, currency, and children.
* @returns A `div` with `lang` set to the locale, wrapping `children` in the locale context.
* @public
* @internal
*/
export function LocaleProvider({
locale = 'en-US',
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/LocaleProvider/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { LocaleProvider } from './LocaleProvider'
export { useLocale, type LocaleProps } from './useLocale'
export { useLocale } from './useLocale'
4 changes: 2 additions & 2 deletions src/contexts/LocaleProvider/useLocale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { createContext, useContext } from 'react'
* rendered wrapper's `lang` attribute. `currency` is an ISO 4217 currency code (defaults to
* `USD`) consumed by currency-aware inputs.
*
* @public
* @internal
*/
export interface LocaleProps {
locale?: string
Expand All @@ -27,7 +27,7 @@ export const LocaleContext = createContext<LocaleProps | null>(null)
*
* @returns An object with `locale` (defaulting to `en-US`) and `currency` (defaulting to `USD`).
* @throws An `Error` when called outside a {@link LocaleProvider}.
* @public
* @internal
*
* @example
* ```tsx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { ObservabilityHook } from '@/types/observability'
/**
* Value provided by the SDK's observability context, exposing the configured observability hook to descendants.
*
* @public
* @internal
*/
export interface ObservabilityContextValue {
/** The partner-supplied observability hook, or `undefined` if none was configured. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import type { ObservabilityHook } from '@/types/observability'
/**
* Props for {@link ObservabilityProvider}.
*
* @public
* @internal
*/
export interface ObservabilityProviderProps {
children: ReactNode
Expand All @@ -23,7 +23,7 @@ export interface ObservabilityProviderProps {
*
* @param props - {@link ObservabilityProviderProps} containing the children and optional observability hook.
* @returns The provider element wrapping `children` with the observability context.
* @public
* @internal
*/
export const ObservabilityProvider = ({ children, observability }: ObservabilityProviderProps) => {
const value = useMemo(() => ({ observability }), [observability])
Expand Down
1 change: 0 additions & 1 deletion src/contexts/ObservabilityProvider/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export { ObservabilityProvider } from './ObservabilityProvider'
export { useObservability } from './useObservability'
export { normalizeToSDKError } from '@/types/sdkError'
export type { ObservabilityProviderProps } from './ObservabilityProvider'
export type { ObservabilityContextValue } from './ObservabilityContext'
2 changes: 1 addition & 1 deletion src/contexts/ObservabilityProvider/useObservability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { useSanitizedObservability } from './useSanitizedObservability'
* are dropped.
*
* @returns A context value whose `observability` is either the sanitized hook or `undefined`.
* @public
* @internal
*/
export const useObservability = (): ObservabilityContextValue => {
const context = useContext(ObservabilityContext)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,8 @@
import { useState, useEffect, useRef } from 'react'
import type React from 'react'
import type { BREAKPOINTS } from '@/shared/constants'
import { BREAKPOINTS_VALUES } from '@/shared/constants'
import { remToPx } from '@/helpers/rem'

/**
* Named breakpoint identifier (`'base'`, `'small'`, `'medium'`, or `'large'`) used by container-aware UI components.
*
* @internal
*/
export type BreakpointKey = (typeof BREAKPOINTS)[keyof typeof BREAKPOINTS]

/**
* Options for {@link useContainerBreakpoints}.
*
Expand Down
44 changes: 0 additions & 44 deletions src/hooks/useDebounce/useDebounce.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/hooks/useForkRef/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/hooks/useOverflowDetection/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/hooks/useOverflowDetection/useOverflowDetection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,3 @@ export const useOverflowDetection = ({

return isOverflowing
}

export default useOverflowDetection
Loading