@apolitical/component-library 1.10.0-beta.0 → 1.10.0-beta.1

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,7 +1,7 @@
1
1
  import React from 'react';
2
2
  interface Props {
3
- showDevTools?: boolean;
4
3
  children: React.ReactNode;
4
+ showDevTools?: boolean;
5
5
  }
6
- export declare const ReactQueryProvider: React.FC<Props>;
6
+ export declare const CacheProvider: ({ children, showDevTools }: Props) => import("react/jsx-runtime").JSX.Element;
7
7
  export {};
@@ -0,0 +1 @@
1
+ export * from './cache.provider';
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import type { IUserDetails } from '../user';
2
+ import type { IUserContext } from '../user';
3
3
  interface Props {
4
4
  children: React.ReactNode;
5
- user?: IUserDetails;
5
+ user?: IUserContext;
6
6
  }
7
- export declare const FlagsProvider: ({ children, user }: Props) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const FlagsProvider: ({ children, user }: Props) => string | number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
8
8
  export {};
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { type IIntlContext } from '../intl';
3
+ import { type IUserContext } from '../user';
4
+ interface Props {
5
+ children: React.ReactNode;
6
+ user: IUserContext;
7
+ intl: IIntlContext;
8
+ }
9
+ export declare const GlobalProviders: ({ children, intl, user }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export {};
@@ -0,0 +1 @@
1
+ export * from './global.providers';
@@ -1,4 +1,5 @@
1
+ export * from './cache';
1
2
  export * from './flags';
3
+ export * from './global';
2
4
  export * from './intl';
3
5
  export * from './user';
4
- export * from './react-query';
@@ -1,8 +1,10 @@
1
1
  import React from 'react';
2
- interface Props {
3
- children: React.ReactNode;
2
+ export interface IIntlContext {
4
3
  locale?: 'en' | 'fr';
5
4
  messages?: Record<string, string>;
6
5
  }
6
+ interface Props extends IIntlContext {
7
+ children: React.ReactNode;
8
+ }
7
9
  export declare const IntlProvider: ({ children, locale, messages }: Props) => import("react/jsx-runtime").JSX.Element;
8
10
  export {};