@shipengine/alchemy 2.2.4 → 2.3.0

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,9 +1,6 @@
1
- import { SerializedStyles } from "@emotion/react";
2
1
  import { BrandName } from "@packlink/brands";
3
- import { IconCache } from "@packlink/giger";
4
2
  import { Theme } from "@packlink/giger-theme";
5
3
  import { ShipEngineProps } from "@shipengine/react-api";
6
- import { useLoadIcons } from "./hooks";
7
4
  export type AlchemyErrorHandler = (err: Error) => void;
8
5
  export type AlchemyContextValue = {
9
6
  baseURL: string;
@@ -16,17 +13,6 @@ export type AlchemyContextValue = {
16
13
  theme: Theme;
17
14
  };
18
15
  export declare const AlchemyContext: import("react").Context<AlchemyContextValue | undefined>;
19
- type RenderAlchemyProvidersProps = {
20
- baseURL: string;
21
- children: React.ReactNode;
22
- fontStyles: SerializedStyles;
23
- getToken: ShipEngineProps["getToken"];
24
- iconCache: IconCache;
25
- resolveIcon: ReturnType<typeof useLoadIcons>;
26
- scope: string;
27
- theme: Theme;
28
- };
29
- export declare const renderAlchemyProviders: ({ baseURL, children, getToken, theme, scope, fontStyles, iconCache, resolveIcon, }: RenderAlchemyProvidersProps) => import("@emotion/react/jsx-runtime").JSX.Element;
30
16
  export interface AlchemyProviderProps {
31
17
  baseURL?: string;
32
18
  brandName?: BrandName;
@@ -39,4 +25,3 @@ export interface AlchemyProviderProps {
39
25
  }
40
26
  export declare const AlchemyProvider: ({ baseURL, brandName, cdnURL, children, getToken, locale, onError, scope, }: AlchemyProviderProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
41
27
  export declare const useAlchemy: () => AlchemyContextValue;
42
- export {};