@apolitical/component-library 1.10.0-beta.3 → 1.10.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.
- package/context/cache/cache.provider.d.ts +2 -2
- package/context/global/global.providers.d.ts +3 -3
- package/context/index.d.ts +0 -1
- package/hooks/index.d.ts +1 -0
- package/hooks/use-feature-flag.d.ts +5 -0
- package/index.js +51 -14
- package/index.mjs +13142 -2394
- package/package.json +2 -2
- package/context/flags/flags.provider.d.ts +0 -8
- package/context/flags/index.d.ts +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface Props {
|
|
3
|
-
children: React.ReactNode;
|
|
4
3
|
showDevTools?: boolean;
|
|
4
|
+
children: React.ReactNode;
|
|
5
5
|
}
|
|
6
|
-
export declare const CacheProvider: ({
|
|
6
|
+
export declare const CacheProvider: ({ showDevTools, children }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { type IIntlContext } from '../intl';
|
|
3
3
|
import { type IUserContext } from '../user';
|
|
4
4
|
interface Props {
|
|
5
|
+
bootstrap: () => Promise<IUserContext>;
|
|
5
6
|
children: React.ReactNode;
|
|
6
|
-
|
|
7
|
-
intl: IIntlContext;
|
|
7
|
+
intl?: IIntlContext;
|
|
8
8
|
}
|
|
9
|
-
export declare const GlobalProviders: ({ children, intl
|
|
9
|
+
export declare const GlobalProviders: ({ bootstrap, children, intl }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
10
|
export {};
|
package/context/index.d.ts
CHANGED
package/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { default as useCurrentPath } from './use-current-path';
|
|
2
2
|
export { default as useEffectAfterMount } from './use-effect-after-mount';
|
|
3
|
+
export { default as useFeatureFlag } from './use-feature-flag';
|
|
3
4
|
export { default as useScreenWidth } from './use-screen-width';
|
|
4
5
|
export { default as useScrollListener } from './use-scroll-listener';
|
|
5
6
|
export { default as useScrollToHash } from './use-scroll-to-hash';
|