@automerge/automerge-repo-react-hooks 2.0.0-alpha.2 → 2.0.0-alpha.22

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/README.md CHANGED
@@ -19,6 +19,6 @@ Most hooks depend on RepoContext being available.
19
19
 
20
20
  Return a document & updater fn, by ID.
21
21
 
22
- #### [useHandle](./src/useHandle.ts)
22
+ #### [useDocHandle](./src/useDocHandle.ts)
23
23
 
24
24
  Return a handle, by ID.
package/dist/index.d.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  * #### {@link useDocument}
14
14
  * Return the current state of a document (or undefined) and a change function.
15
15
  *
16
- * #### {@link useHandle}
16
+ * #### {@link useDocHandle}
17
17
  * Return a DocHandle by passing in a DocumentURL.
18
18
  *
19
19
  * #### {@link useLocalAwareness} & {@link useRemoteAwareness}
@@ -25,7 +25,8 @@
25
25
  */
26
26
  export { useDocument } from './useDocument.js';
27
27
  export { useDocuments } from './useDocuments.js';
28
- export { useHandle } from './useHandle.js';
28
+ export { useDocHandle } from './useDocHandle.js';
29
+ export { useDocHandles } from './useDocHandles.js';
29
30
  export { RepoContext, useRepo } from './useRepo.js';
30
31
  export { useLocalAwareness, type UseLocalAwarenessProps, } from './useLocalAwareness.js';
31
32
  export { useRemoteAwareness, type PeerStates, type Heartbeats, type UseRemoteAwarenessProps, } from './useRemoteAwareness.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,kBAAkB,EAClB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACnD,OAAO,EACL,iBAAiB,EACjB,KAAK,sBAAsB,GAC5B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,kBAAkB,EAClB,KAAK,UAAU,EACf,KAAK,UAAU,EACf,KAAK,uBAAuB,GAC7B,MAAM,yBAAyB,CAAA"}