@comapeo/core-react 3.2.0 → 4.0.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/dist/commonjs/hooks/client.d.ts +15 -1
- package/dist/commonjs/hooks/client.js +6 -6
- package/dist/commonjs/hooks/documents.d.ts +32 -0
- package/dist/commonjs/hooks/documents.js +9 -9
- package/dist/commonjs/hooks/invites.d.ts +80 -0
- package/dist/commonjs/hooks/invites.js +78 -12
- package/dist/commonjs/hooks/projects.d.ts +68 -0
- package/dist/commonjs/hooks/projects.js +24 -24
- package/dist/commonjs/index.d.ts +1 -1
- package/dist/commonjs/index.js +4 -1
- package/dist/commonjs/lib/react-query/client.d.ts +4 -4
- package/dist/commonjs/lib/react-query/invites.d.ts +22 -9
- package/dist/commonjs/lib/react-query/invites.js +17 -7
- package/dist/esm/hooks/client.d.ts +15 -1
- package/dist/esm/hooks/client.js +6 -6
- package/dist/esm/hooks/documents.d.ts +32 -0
- package/dist/esm/hooks/documents.js +9 -9
- package/dist/esm/hooks/invites.d.ts +80 -0
- package/dist/esm/hooks/invites.js +77 -14
- package/dist/esm/hooks/projects.d.ts +68 -0
- package/dist/esm/hooks/projects.js +24 -24
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lib/react-query/client.d.ts +4 -4
- package/dist/esm/lib/react-query/invites.d.ts +22 -9
- package/dist/esm/lib/react-query/invites.js +14 -5
- package/docs/API.md +85 -21
- package/package.json +6 -5
package/docs/API.md
CHANGED
|
@@ -31,6 +31,9 @@
|
|
|
31
31
|
- [useCreateDocument](#usecreatedocument)
|
|
32
32
|
- [useUpdateDocument](#useupdatedocument)
|
|
33
33
|
- [useDeleteDocument](#usedeletedocument)
|
|
34
|
+
- [useSetUpInvitesListeners](#usesetupinviteslisteners)
|
|
35
|
+
- [useManyInvites](#usemanyinvites)
|
|
36
|
+
- [useSingleInvite](#usesingleinvite)
|
|
34
37
|
- [useAcceptInvite](#useacceptinvite)
|
|
35
38
|
- [useRejectInvite](#userejectinvite)
|
|
36
39
|
- [useSendInvite](#usesendinvite)
|
|
@@ -86,7 +89,7 @@ Retrieve info about the current device.
|
|
|
86
89
|
|
|
87
90
|
| Function | Type |
|
|
88
91
|
| ---------- | ---------- |
|
|
89
|
-
| `useOwnDeviceInfo` | `() => { data: { deviceId: string; deviceType: "device_type_unspecified" or "mobile" or "tablet" or "desktop" or "selfHostedServer"
|
|
92
|
+
| `useOwnDeviceInfo` | `() => { data: { deviceId: string; deviceType: "UNRECOGNIZED" or "device_type_unspecified" or "mobile" or "tablet" or "desktop" or "selfHostedServer"; } and Partial<DeviceInfoParam>; error: Error or null; isRefetching: boolean; }` |
|
|
90
93
|
|
|
91
94
|
Examples:
|
|
92
95
|
|
|
@@ -120,7 +123,7 @@ Update the device info for the current device.
|
|
|
120
123
|
|
|
121
124
|
| Function | Type |
|
|
122
125
|
| ---------- | ---------- |
|
|
123
|
-
| `useSetOwnDeviceInfo` | `() => { error: Error; mutate: UseMutateFunction<void, Error, { name: string; deviceType: "device_type_unspecified" or "mobile" or "tablet" or "desktop" or "selfHostedServer"
|
|
126
|
+
| `useSetOwnDeviceInfo` | `() => { error: Error; mutate: UseMutateFunction<void, Error, { name: string; deviceType: "UNRECOGNIZED" or "device_type_unspecified" or "mobile" or "tablet" or "desktop" or "selfHostedServer"; }, unknown>; mutateAsync: UseMutateAsyncFunction<...>; reset: () => void; status: "error"; } or { ...; }` |
|
|
124
127
|
|
|
125
128
|
### useSetIsArchiveDevice
|
|
126
129
|
|
|
@@ -128,7 +131,7 @@ Set or unset the current device as an archive device.
|
|
|
128
131
|
|
|
129
132
|
| Function | Type |
|
|
130
133
|
| ---------- | ---------- |
|
|
131
|
-
| `useSetIsArchiveDevice` | `() => { error: Error; mutate: UseMutateFunction<void, Error, { isArchiveDevice: boolean; }, unknown>;
|
|
134
|
+
| `useSetIsArchiveDevice` | `() => { error: Error; mutate: UseMutateFunction<void, Error, { isArchiveDevice: boolean; }, unknown>; mutateAsync: UseMutateAsyncFunction<void, Error, { isArchiveDevice: boolean; }, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
132
135
|
|
|
133
136
|
### useProjectSettings
|
|
134
137
|
|
|
@@ -407,7 +410,7 @@ function BasicExample() {
|
|
|
407
410
|
|
|
408
411
|
| Function | Type |
|
|
409
412
|
| ---------- | ---------- |
|
|
410
|
-
| `useAddServerPeer` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<void, Error, { baseUrl: string; dangerouslyAllowInsecureConnections?: boolean or undefined; }, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
413
|
+
| `useAddServerPeer` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<void, Error, { baseUrl: string; dangerouslyAllowInsecureConnections?: boolean or undefined; }, unknown>; mutateAsync: UseMutateAsyncFunction<...>; reset: () => void; status: "error"; } or { ...; }` |
|
|
411
414
|
|
|
412
415
|
### useCreateProject
|
|
413
416
|
|
|
@@ -415,7 +418,7 @@ Create a new project.
|
|
|
415
418
|
|
|
416
419
|
| Function | Type |
|
|
417
420
|
| ---------- | ---------- |
|
|
418
|
-
| `useCreateProject` | `() => { error: Error; mutate: UseMutateFunction<string, Error, { name?: string or undefined; configPath?: string or undefined; } or undefined, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
421
|
+
| `useCreateProject` | `() => { error: Error; mutate: UseMutateFunction<string, Error, { name?: string or undefined; configPath?: string or undefined; } or undefined, unknown>; mutateAsync: UseMutateAsyncFunction<...>; reset: () => void; status: "error"; } or { ...; }` |
|
|
419
422
|
|
|
420
423
|
### useLeaveProject
|
|
421
424
|
|
|
@@ -423,7 +426,7 @@ Leave an existing project.
|
|
|
423
426
|
|
|
424
427
|
| Function | Type |
|
|
425
428
|
| ---------- | ---------- |
|
|
426
|
-
| `useLeaveProject` | `() => { error: Error; mutate: UseMutateFunction<void, Error, { projectId: string; }, unknown>;
|
|
429
|
+
| `useLeaveProject` | `() => { error: Error; mutate: UseMutateFunction<void, Error, { projectId: string; }, unknown>; mutateAsync: UseMutateAsyncFunction<void, Error, { projectId: string; }, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
427
430
|
|
|
428
431
|
### useImportProjectConfig
|
|
429
432
|
|
|
@@ -431,7 +434,7 @@ Update the configuration of a project using an external file.
|
|
|
431
434
|
|
|
432
435
|
| Function | Type |
|
|
433
436
|
| ---------- | ---------- |
|
|
434
|
-
| `useImportProjectConfig` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<Error[], Error, { configPath: string; }, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
437
|
+
| `useImportProjectConfig` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<Error[], Error, { configPath: string; }, unknown>; mutateAsync: UseMutateAsyncFunction<Error[], Error, { ...; }, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
435
438
|
|
|
436
439
|
Parameters:
|
|
437
440
|
|
|
@@ -444,7 +447,7 @@ Update the settings of a project.
|
|
|
444
447
|
|
|
445
448
|
| Function | Type |
|
|
446
449
|
| ---------- | ---------- |
|
|
447
|
-
| `useUpdateProjectSettings` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<EditableProjectSettings, Error, { name?: string or undefined; configMetadata?: { ...; } or undefined; defaultPresets?: { ...; } or undefined; }, unknown>; reset: () => void; status: "error"; }
|
|
450
|
+
| `useUpdateProjectSettings` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<EditableProjectSettings, Error, { name?: string or undefined; configMetadata?: { ...; } or undefined; defaultPresets?: { ...; } or undefined; }, unknown>; mutateAsync: UseMutateAsyncFunction<...>; reset: () => void; status: "error"; } ...` |
|
|
448
451
|
|
|
449
452
|
Parameters:
|
|
450
453
|
|
|
@@ -457,7 +460,7 @@ Create a blob for a project.
|
|
|
457
460
|
|
|
458
461
|
| Function | Type |
|
|
459
462
|
| ---------- | ---------- |
|
|
460
|
-
| `useCreateBlob` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<{ driveId: string; name: string; type: "photo" or "audio" or "video"; hash: string; }, Error, { original: string; preview?: string or undefined; thumbnail?: string or undefined; metadata: Metadata; }, unknown>;
|
|
463
|
+
| `useCreateBlob` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<{ driveId: string; name: string; type: "photo" or "audio" or "video"; hash: string; }, Error, { original: string; preview?: string or undefined; thumbnail?: string or undefined; metadata: Metadata; }, unknown>; mutateAsync: UseMutateAsy...` |
|
|
461
464
|
|
|
462
465
|
Parameters:
|
|
463
466
|
|
|
@@ -508,13 +511,13 @@ Provides the progress of data sync for sync-enabled connected peers
|
|
|
508
511
|
|
|
509
512
|
| Function | Type |
|
|
510
513
|
| ---------- | ---------- |
|
|
511
|
-
| `useStartSync` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<void, Error, { autostopDataSyncAfter: number or null; } or undefined, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
514
|
+
| `useStartSync` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<void, Error, { autostopDataSyncAfter: number or null; } or undefined, unknown>; mutateAsync: UseMutateAsyncFunction<...>; reset: () => void; status: "error"; } or { ...; }` |
|
|
512
515
|
|
|
513
516
|
### useStopSync
|
|
514
517
|
|
|
515
518
|
| Function | Type |
|
|
516
519
|
| ---------- | ---------- |
|
|
517
|
-
| `useStopSync` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<void, Error, void, unknown>;
|
|
520
|
+
| `useStopSync` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<void, Error, void, unknown>; mutateAsync: UseMutateAsyncFunction<void, Error, void, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
518
521
|
|
|
519
522
|
### useSingleDocByDocId
|
|
520
523
|
|
|
@@ -524,7 +527,7 @@ Triggers the closest error boundary if the document cannot be found
|
|
|
524
527
|
|
|
525
528
|
| Function | Type |
|
|
526
529
|
| ---------- | ---------- |
|
|
527
|
-
| `useSingleDocByDocId` | `<D extends WriteableDocumentType>({ projectId, docType, docId, lang, }: { projectId: string; docType: D; docId: string; lang?: string or undefined; }) => ReadHookResult<Extract<{ schemaName: "deviceInfo"; name: string; deviceType: "
|
|
530
|
+
| `useSingleDocByDocId` | `<D extends WriteableDocumentType>({ projectId, docType, docId, lang, }: { projectId: string; docType: D; docId: string; lang?: string or undefined; }) => ReadHookResult<Extract<{ schemaName: "deviceInfo"; name: string; deviceType: "UNRECOGNIZED" or ... 4 more ... or "selfHostedServer"; ... 7 more ...; deleted: boolean;...` |
|
|
528
531
|
|
|
529
532
|
Parameters:
|
|
530
533
|
|
|
@@ -557,7 +560,7 @@ Triggers the closest error boundary if the document cannot be found.
|
|
|
557
560
|
|
|
558
561
|
| Function | Type |
|
|
559
562
|
| ---------- | ---------- |
|
|
560
|
-
| `useSingleDocByVersionId` | `<D extends WriteableDocumentType>({ projectId, docType, versionId, lang, }: { projectId: string; docType: D; versionId: string; lang?: string or undefined; }) => ReadHookResult<Extract<{ schemaName: "deviceInfo"; name: string; deviceType: "
|
|
563
|
+
| `useSingleDocByVersionId` | `<D extends WriteableDocumentType>({ projectId, docType, versionId, lang, }: { projectId: string; docType: D; versionId: string; lang?: string or undefined; }) => ReadHookResult<Extract<{ schemaName: "deviceInfo"; name: string; deviceType: "UNRECOGNIZED" or ... 4 more ... or "selfHostedServer"; ... 7 more ...; deleted: ...` |
|
|
561
564
|
|
|
562
565
|
Parameters:
|
|
563
566
|
|
|
@@ -590,7 +593,7 @@ Retrieve all documents of a specific `docType`.
|
|
|
590
593
|
|
|
591
594
|
| Function | Type |
|
|
592
595
|
| ---------- | ---------- |
|
|
593
|
-
| `useManyDocs` | `<D extends WriteableDocumentType>({ projectId, docType, includeDeleted, lang, }: { projectId: string; docType: D; includeDeleted?: boolean or undefined; lang?: string or undefined; }) => ReadHookResult<(Extract<{ schemaName: "deviceInfo"; name: string; deviceType: "
|
|
596
|
+
| `useManyDocs` | `<D extends WriteableDocumentType>({ projectId, docType, includeDeleted, lang, }: { projectId: string; docType: D; includeDeleted?: boolean or undefined; lang?: string or undefined; }) => ReadHookResult<(Extract<{ schemaName: "deviceInfo"; name: string; deviceType: "UNRECOGNIZED" or ... 4 more ... or "selfHostedServer"; ...` |
|
|
594
597
|
|
|
595
598
|
Parameters:
|
|
596
599
|
|
|
@@ -634,7 +637,7 @@ Create a document for a project.
|
|
|
634
637
|
|
|
635
638
|
| Function | Type |
|
|
636
639
|
| ---------- | ---------- |
|
|
637
|
-
| `useCreateDocument` | `<D extends WriteableDocumentType>({ docType, projectId, }: { docType: D; projectId: string; }) => { error: Error; mutate: UseMutateFunction<WriteableDocument<D> and { forks: string[]; }, Error, { ...; }, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
640
|
+
| `useCreateDocument` | `<D extends WriteableDocumentType>({ docType, projectId, }: { docType: D; projectId: string; }) => { error: Error; mutate: UseMutateFunction<WriteableDocument<D> and { forks: string[]; }, Error, { ...; }, unknown>; mutateAsync: UseMutateAsyncFunction<...>; reset: () => void; status: "error"; } or { ...; }` |
|
|
638
641
|
|
|
639
642
|
Parameters:
|
|
640
643
|
|
|
@@ -648,7 +651,7 @@ Update a document within a project.
|
|
|
648
651
|
|
|
649
652
|
| Function | Type |
|
|
650
653
|
| ---------- | ---------- |
|
|
651
|
-
| `useUpdateDocument` | `<D extends WriteableDocumentType>({ docType, projectId, }: { docType: D; projectId: string; }) => { error: Error; mutate: UseMutateFunction<WriteableDocument<D> and { forks: string[]; }, Error, { ...; }, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
654
|
+
| `useUpdateDocument` | `<D extends WriteableDocumentType>({ docType, projectId, }: { docType: D; projectId: string; }) => { error: Error; mutate: UseMutateFunction<WriteableDocument<D> and { forks: string[]; }, Error, { ...; }, unknown>; mutateAsync: UseMutateAsyncFunction<...>; reset: () => void; status: "error"; } or { ...; }` |
|
|
652
655
|
|
|
653
656
|
Parameters:
|
|
654
657
|
|
|
@@ -662,7 +665,7 @@ Delete a document within a project.
|
|
|
662
665
|
|
|
663
666
|
| Function | Type |
|
|
664
667
|
| ---------- | ---------- |
|
|
665
|
-
| `useDeleteDocument` | `<D extends WriteableDocumentType>({ docType, projectId, }: { docType: D; projectId: string; }) => { error: Error; mutate: UseMutateFunction<WriteableDocument<D> and { forks: string[]; }, Error, { ...; }, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
668
|
+
| `useDeleteDocument` | `<D extends WriteableDocumentType>({ docType, projectId, }: { docType: D; projectId: string; }) => { error: Error; mutate: UseMutateFunction<WriteableDocument<D> and { forks: string[]; }, Error, { ...; }, unknown>; mutateAsync: UseMutateAsyncFunction<...>; reset: () => void; status: "error"; } or { ...; }` |
|
|
666
669
|
|
|
667
670
|
Parameters:
|
|
668
671
|
|
|
@@ -670,13 +673,74 @@ Parameters:
|
|
|
670
673
|
* `opts.projectId`: Public ID of project document belongs to.
|
|
671
674
|
|
|
672
675
|
|
|
676
|
+
### useSetUpInvitesListeners
|
|
677
|
+
|
|
678
|
+
Set up listeners for received and updated invites.
|
|
679
|
+
It is necessary to use this if you want the invites-related read hooks to update
|
|
680
|
+
based on invites that are received or changed in the background.
|
|
681
|
+
|
|
682
|
+
| Function | Type |
|
|
683
|
+
| ---------- | ---------- |
|
|
684
|
+
| `useSetUpInvitesListeners` | `() => void` |
|
|
685
|
+
|
|
686
|
+
Examples:
|
|
687
|
+
|
|
688
|
+
```tsx
|
|
689
|
+
function App() {
|
|
690
|
+
// Use this somewhere near the root of the application
|
|
691
|
+
useSetUpInvitesListeners()
|
|
692
|
+
|
|
693
|
+
return <RestOfApp />
|
|
694
|
+
}
|
|
695
|
+
```
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
### useManyInvites
|
|
699
|
+
|
|
700
|
+
Get all invites that the device has received.
|
|
701
|
+
|
|
702
|
+
| Function | Type |
|
|
703
|
+
| ---------- | ---------- |
|
|
704
|
+
| `useManyInvites` | `() => { data: Invite[]; error: Error or null; isRefetching: boolean; }` |
|
|
705
|
+
|
|
706
|
+
Examples:
|
|
707
|
+
|
|
708
|
+
```ts
|
|
709
|
+
function Example() {
|
|
710
|
+
const { data } = useManyInvites()
|
|
711
|
+
}
|
|
712
|
+
```
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
### useSingleInvite
|
|
716
|
+
|
|
717
|
+
Get a single invite based on its ID.
|
|
718
|
+
|
|
719
|
+
| Function | Type |
|
|
720
|
+
| ---------- | ---------- |
|
|
721
|
+
| `useSingleInvite` | `({ inviteId }: { inviteId: string; }) => { data: Invite; error: Error or null; isRefetching: boolean; }` |
|
|
722
|
+
|
|
723
|
+
Parameters:
|
|
724
|
+
|
|
725
|
+
* `opts.inviteId`: ID of invite
|
|
726
|
+
|
|
727
|
+
|
|
728
|
+
Examples:
|
|
729
|
+
|
|
730
|
+
```ts
|
|
731
|
+
function Example() {
|
|
732
|
+
const { data } = useSingleInvite({ inviteId: '...' })
|
|
733
|
+
}
|
|
734
|
+
```
|
|
735
|
+
|
|
736
|
+
|
|
673
737
|
### useAcceptInvite
|
|
674
738
|
|
|
675
739
|
Accept an invite that has been received.
|
|
676
740
|
|
|
677
741
|
| Function | Type |
|
|
678
742
|
| ---------- | ---------- |
|
|
679
|
-
| `useAcceptInvite` | `() => { error: Error; mutate: UseMutateFunction<string, Error, { inviteId: string; }, unknown>;
|
|
743
|
+
| `useAcceptInvite` | `() => { error: Error; mutate: UseMutateFunction<string, Error, { inviteId: string; }, unknown>; mutateAsync: UseMutateAsyncFunction<string, Error, { inviteId: string; }, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
680
744
|
|
|
681
745
|
### useRejectInvite
|
|
682
746
|
|
|
@@ -684,7 +748,7 @@ Reject an invite that has been received.
|
|
|
684
748
|
|
|
685
749
|
| Function | Type |
|
|
686
750
|
| ---------- | ---------- |
|
|
687
|
-
| `useRejectInvite` | `() => { error: Error; mutate: UseMutateFunction<void, Error, { inviteId: string; }, unknown>;
|
|
751
|
+
| `useRejectInvite` | `() => { error: Error; mutate: UseMutateFunction<void, Error, { inviteId: string; }, unknown>; mutateAsync: UseMutateAsyncFunction<void, Error, { inviteId: string; }, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
688
752
|
|
|
689
753
|
### useSendInvite
|
|
690
754
|
|
|
@@ -692,7 +756,7 @@ Send an invite for a project.
|
|
|
692
756
|
|
|
693
757
|
| Function | Type |
|
|
694
758
|
| ---------- | ---------- |
|
|
695
|
-
| `useSendInvite` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<"ACCEPT" or "REJECT" or "ALREADY", Error, { deviceId: string; roleDescription?: string or undefined; roleId: "f7c150f5a3a9a855" or "012fd2d431c0bf60" or "9e6d29263cba36c9"; roleName?: string or undefined; }, unknown>;
|
|
759
|
+
| `useSendInvite` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<"ACCEPT" or "REJECT" or "ALREADY", Error, { deviceId: string; roleDescription?: string or undefined; roleId: "f7c150f5a3a9a855" or "012fd2d431c0bf60" or "9e6d29263cba36c9"; roleName?: string or undefined; }, unknown>; mutateAsync: UseMuta...` |
|
|
696
760
|
|
|
697
761
|
Parameters:
|
|
698
762
|
|
|
@@ -705,7 +769,7 @@ Request a cancellation of an invite sent to another device.
|
|
|
705
769
|
|
|
706
770
|
| Function | Type |
|
|
707
771
|
| ---------- | ---------- |
|
|
708
|
-
| `useRequestCancelInvite` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<void, Error, { deviceId: string; }, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
772
|
+
| `useRequestCancelInvite` | `({ projectId }: { projectId: string; }) => { error: Error; mutate: UseMutateFunction<void, Error, { deviceId: string; }, unknown>; mutateAsync: UseMutateAsyncFunction<void, Error, { ...; }, unknown>; reset: () => void; status: "error"; } or { ...; }` |
|
|
709
773
|
|
|
710
774
|
Parameters:
|
|
711
775
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@comapeo/core-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "React wrapper for working with @comapeo/core",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
"types": "tsc"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@comapeo/core": "
|
|
61
|
-
"@comapeo/ipc": "
|
|
60
|
+
"@comapeo/core": "^3.0.0",
|
|
61
|
+
"@comapeo/ipc": "^3.0.0",
|
|
62
62
|
"@comapeo/schema": "*",
|
|
63
63
|
"@tanstack/react-query": "^5",
|
|
64
64
|
"react": "^18 || ^19"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@comapeo/core": "
|
|
68
|
-
"@comapeo/ipc": "
|
|
67
|
+
"@comapeo/core": "3.0.0",
|
|
68
|
+
"@comapeo/ipc": "3.0.0",
|
|
69
69
|
"@comapeo/schema": "1.4.1",
|
|
70
70
|
"@eslint/compat": "1.2.7",
|
|
71
71
|
"@eslint/js": "9.23.0",
|
|
@@ -79,6 +79,7 @@
|
|
|
79
79
|
"@types/react": "19.0.12",
|
|
80
80
|
"@types/react-dom": "19.0.4",
|
|
81
81
|
"eslint": "9.23.0",
|
|
82
|
+
"eslint-plugin-react-hooks": "5.2.0",
|
|
82
83
|
"fastify": "4.29.0",
|
|
83
84
|
"globals": "16.0.0",
|
|
84
85
|
"husky": "9.1.7",
|