@nosto/nosto-react 2.2.0 → 2.2.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.
- package/dist/index.d.ts +2 -1
- package/dist/index.es.js +233 -837
- package/dist/index.umd.js +1 -25
- package/package.json +3 -3
- package/src/components/NostoProvider.tsx +8 -2
- package/src/components/NostoSession.tsx +0 -1
- package/src/hooks/useDeepCompareEffect.ts +6 -6
- package/src/hooks/useNostoApi.ts +3 -6
- package/src/hooks/useRenderCampaigns.tsx +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Context } from 'react';
|
|
2
2
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
3
|
import { ReactElement } from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
4
5
|
|
|
5
6
|
declare type AnyFunction = (...args: unknown[]) => unknown;
|
|
6
7
|
|
|
@@ -351,7 +352,7 @@ export declare interface NostoProviderProps {
|
|
|
351
352
|
/**
|
|
352
353
|
* children
|
|
353
354
|
*/
|
|
354
|
-
children:
|
|
355
|
+
children: ReactNode | ReactNode[];
|
|
355
356
|
/**
|
|
356
357
|
* Indicates if merchant uses multiple currencies
|
|
357
358
|
*/
|