@seedprotocol/react 0.7.9-next.1189.g5e63267 → 0.7.9
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/SeedProvider.d.ts +3 -8
- package/dist/SeedProvider.d.ts.map +1 -1
- package/dist/client.d.ts +2 -4
- package/dist/client.d.ts.map +1 -1
- package/dist/db.d.ts.map +1 -1
- package/dist/index.js +729 -743
- package/dist/index.js.map +1 -1
- package/dist/itemProperty.d.ts.map +1 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/services.d.ts.map +1 -1
- package/dist/useCreateState.d.ts +4 -3
- package/dist/useCreateState.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/SeedProvider.d.ts
CHANGED
|
@@ -22,15 +22,10 @@ export type SeedProviderProps = {
|
|
|
22
22
|
/** Optional: ref to receive the QueryClient instance (e.g. for tests). */
|
|
23
23
|
queryClientRef?: React.MutableRefObject<QueryClient | null>;
|
|
24
24
|
};
|
|
25
|
-
declare global {
|
|
26
|
-
interface Window {
|
|
27
|
-
__SEED_INVALIDATE_ITEM_PROPERTIES__?: ((canonicalId: string) => void) | null;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
25
|
/**
|
|
31
|
-
* Invalidates and refetches the item-properties query for an item
|
|
32
|
-
*
|
|
33
|
-
*
|
|
26
|
+
* Invalidates and refetches the item-properties query for an item, and resolves when the refetch
|
|
27
|
+
* has completed. Saves don't need it: `useItemProperties` refetches when the change feed reports a
|
|
28
|
+
* write to the item's metadata rows (ADR 0020).
|
|
34
29
|
*/
|
|
35
30
|
export declare function invalidateItemPropertiesForItem(canonicalId: string): Promise<void>;
|
|
36
31
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SeedProvider.d.ts","sourceRoot":"","sources":["../src/SeedProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,SAAS,EAA8B,MAAM,OAAO,CAAA;AAEzE,O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GAAG,IAAI,CAAC,CAAA;CAC5D,CAAA;AAKD;;;;GAIG;AACH,wBAAgB,+BAA+B,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAElF;AAwCD;;;;;;;GAOG;AACH,wBAAgB,YAAY,CAAC,EAC3B,QAAQ,EACR,MAAM,EACN,SAAS,EACT,WAAW,EACX,WAAW,EAAE,eAAe,EAC5B,cAAc,GACf,EAAE,iBAAiB,qBA0BnB"}
|
package/dist/client.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { getClient } from '@seedprotocol/sdk';
|
|
1
|
+
import { getClient, isClientReadySnapshot } from '@seedprotocol/sdk';
|
|
2
|
+
export { isClientReadySnapshot };
|
|
2
3
|
type ClientService = ReturnType<ReturnType<typeof getClient>['getService']>;
|
|
3
4
|
type ClientSnapshot = ReturnType<ClientService['getSnapshot']>;
|
|
4
5
|
/**
|
|
@@ -12,13 +13,10 @@ export declare const useClientService: () => ClientService;
|
|
|
12
13
|
* re-renders forever.
|
|
13
14
|
*/
|
|
14
15
|
export declare function useClientSelector<T>(selector: (snapshot: ClientSnapshot) => T): T;
|
|
15
|
-
/** Whether a clientManager snapshot is a running client that finished init. */
|
|
16
|
-
export declare const isClientReadySnapshot: (snapshot: ClientSnapshot) => boolean;
|
|
17
16
|
/**
|
|
18
17
|
* Whether `client.init` has finished and the client is ready (idle). False after
|
|
19
18
|
* `client.stop()` until the next init finishes. SeedClientGate uses it to hold back its
|
|
20
19
|
* children; call it to wait for readiness in your own components.
|
|
21
20
|
*/
|
|
22
21
|
export declare const useIsClientReady: () => boolean;
|
|
23
|
-
export {};
|
|
24
22
|
//# sourceMappingURL=client.d.ts.map
|
package/dist/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAA;AAEpE,OAAO,EAAE,qBAAqB,EAAE,CAAA;AAEhC,KAAK,aAAa,GAAG,UAAU,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,YAAY,CAAC,CAAC,CAAA;AAC3E,KAAK,cAAc,GAAG,UAAU,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC,CAAA;AAK9D;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QAAO,aACmD,CAAA;AAEvF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,QAAQ,EAAE,cAAc,KAAK,CAAC,GAAG,CAAC,CAmBjF;AAED;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,eAAiD,CAAA"}
|
package/dist/db.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../src/db.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../src/db.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,cAAc,GAAI,OAAO,OAAO,KAAG,OACS,CAAA;AAEzD;;;GAGG;AACH,eAAO,MAAM,cAAc;;CAO1B,CAAA"}
|