react-iframe-bridge 0.7.0 → 0.7.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 { ReactNode } from 'react';
|
|
2
2
|
import { Roc, RocDocument } from 'rest-on-couch-client';
|
|
3
3
|
import { SampleEntryContent, SampleEntryId } from '../types/db';
|
|
4
|
-
export declare function useIframeBridgeContext<PublicUserInfo = unknown>(): IframeBridgeReadyContextType<PublicUserInfo>;
|
|
4
|
+
export declare function useIframeBridgeContext<PublicUserInfo = unknown, PrivateUserInfo = unknown>(): IframeBridgeReadyContextType<PublicUserInfo, PrivateUserInfo>;
|
|
5
5
|
export declare function useIframeBridgeSample(): RocDocument<SampleEntryContent, SampleEntryId>;
|
|
6
6
|
interface IframeBridgeReadyContextTypeBase<PublicUserInfo, PrivateUserInfo> {
|
|
7
7
|
state: 'ready';
|
package/lib/contexts/roc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Roc } from 'rest-on-couch-client';
|
|
3
|
-
export declare function useRoc<PublicUserInfo = unknown>(): Roc<PublicUserInfo,
|
|
3
|
+
export declare function useRoc<PublicUserInfo = unknown, PrivateUserInfo = unknown>(): Roc<PublicUserInfo, PrivateUserInfo>;
|
|
4
4
|
export declare function RocProvider(props: {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
url: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Roc, RocDocument } from 'rest-on-couch-client';
|
|
3
3
|
import { SampleEntryContent, SampleEntryId } from '../types/db';
|
|
4
|
-
export declare function useIframeBridgeContext<PublicUserInfo = unknown>(): IframeBridgeReadyContextType<PublicUserInfo>;
|
|
4
|
+
export declare function useIframeBridgeContext<PublicUserInfo = unknown, PrivateUserInfo = unknown>(): IframeBridgeReadyContextType<PublicUserInfo, PrivateUserInfo>;
|
|
5
5
|
export declare function useIframeBridgeSample(): RocDocument<SampleEntryContent, SampleEntryId>;
|
|
6
6
|
interface IframeBridgeReadyContextTypeBase<PublicUserInfo, PrivateUserInfo> {
|
|
7
7
|
state: 'ready';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { Roc } from 'rest-on-couch-client';
|
|
3
|
-
export declare function useRoc<PublicUserInfo = unknown>(): Roc<PublicUserInfo,
|
|
3
|
+
export declare function useRoc<PublicUserInfo = unknown, PrivateUserInfo = unknown>(): Roc<PublicUserInfo, PrivateUserInfo>;
|
|
4
4
|
export declare function RocProvider(props: {
|
|
5
5
|
children: ReactNode;
|
|
6
6
|
url: string;
|