@calimero-network/mero-react 7.0.1 → 9.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/index.cjs +12 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
4
4
|
import * as _calimero_network_mero_js from '@calimero-network/mero-js';
|
|
5
|
-
import { MeroJs, TokenStore, SetMetadataRequest, SseEventData, GroupMembershipEventData, GroupMigrationEventData, Codec, AddGroupMembersRequest, CreateContextRequest, CreateGroupInNamespaceRequest, CreateNamespaceRequest, CreateNamespaceInvitationRequest, CreateNamespaceInvitationResponseData, CreateRecursiveInvitationResponseData,
|
|
5
|
+
import { MeroJs, TokenStore, SetMetadataRequest, SseEventData, GroupMembershipEventData, GroupMigrationEventData, Codec, AddGroupMembersRequest, CreateContextRequest, CreateGroupInNamespaceRequest, CreateNamespaceRequest, CreateNamespaceInvitationRequest, CreateNamespaceInvitationResponseData, CreateRecursiveInvitationResponseData, GroupUpgradeStatusResponseData, GroupContextEntry, GroupInfo, CreateGroupInvitationRequest, MetadataRecord, JoinGroupRequest, JoinNamespaceRequest, MigrationStatus, MigrationStatusRollup, MemberMigrationStatusEntry, MigrateMyEntriesSummary, Namespace, SubgroupEntry, NamespaceIdentity, NodeIdentity, RemoveGroupMembersRequest, ReparentGroupRequest, ResyncContextRequest, SetDefaultCapabilitiesRequest, SetSubgroupVisibilityRequest, SetTeeAdmissionPolicyRequest, UpdateMemberRoleRequest, UpgradeGroupRequest, TokenData } from '@calimero-network/mero-js';
|
|
6
6
|
export * from '@calimero-network/mero-js';
|
|
7
7
|
export { CAPABILITIES, Codec, DEFAULT_LOCAL_NODE_PORTS, DiscoverLocalNodesOptions, EphemeralClient, EphemeralEntry, MetadataRecord, discoverLocalNodes, hasCap, localNodeUrl, nodeEndpoint, probeNodeHealth, withCap, withoutCap } from '@calimero-network/mero-js';
|
|
8
8
|
|
|
@@ -493,12 +493,12 @@ declare function useGroupInfo(groupId?: string | null): {
|
|
|
493
493
|
refetch: () => Promise<void>;
|
|
494
494
|
};
|
|
495
495
|
declare function useDeleteGroup(): {
|
|
496
|
-
deleteGroup: (groupId: string
|
|
496
|
+
deleteGroup: (groupId: string) => Promise<_calimero_network_mero_js.DeleteGroupResponseData | null>;
|
|
497
497
|
loading: boolean;
|
|
498
498
|
error: Error | null;
|
|
499
499
|
};
|
|
500
500
|
declare function useSyncGroup(): {
|
|
501
|
-
syncGroup: (groupId: string
|
|
501
|
+
syncGroup: (groupId: string) => Promise<_calimero_network_mero_js.SyncGroupResponseData | null>;
|
|
502
502
|
loading: boolean;
|
|
503
503
|
error: Error | null;
|
|
504
504
|
};
|
|
@@ -571,7 +571,7 @@ declare function useCreateNamespace(): {
|
|
|
571
571
|
error: Error | null;
|
|
572
572
|
};
|
|
573
573
|
declare function useDeleteNamespace(): {
|
|
574
|
-
deleteNamespace: (namespaceId: string
|
|
574
|
+
deleteNamespace: (namespaceId: string) => Promise<_calimero_network_mero_js.DeleteNamespaceResponseData | null>;
|
|
575
575
|
loading: boolean;
|
|
576
576
|
error: Error | null;
|
|
577
577
|
};
|
|
@@ -677,7 +677,7 @@ declare function useUpgradeGroup(): {
|
|
|
677
677
|
* itself change what any group runs; pair it with a subsequent upgrade.
|
|
678
678
|
*/
|
|
679
679
|
declare function useInstallFromRegistry(): {
|
|
680
|
-
installFromRegistry: (
|
|
680
|
+
installFromRegistry: (packageName: string, version: string) => Promise<_calimero_network_mero_js.InstallApplicationResponseData | null>;
|
|
681
681
|
loading: boolean;
|
|
682
682
|
error: Error | null;
|
|
683
683
|
};
|
|
@@ -698,7 +698,7 @@ declare function useGroupUpgradeStatus(groupId?: string | null): {
|
|
|
698
698
|
refetch: () => Promise<void>;
|
|
699
699
|
};
|
|
700
700
|
declare function useRetryGroupUpgrade(): {
|
|
701
|
-
retryGroupUpgrade: (groupId: string
|
|
701
|
+
retryGroupUpgrade: (groupId: string) => Promise<_calimero_network_mero_js.UpgradeGroupResponseData | null>;
|
|
702
702
|
loading: boolean;
|
|
703
703
|
error: Error | null;
|
|
704
704
|
};
|
|
@@ -715,7 +715,7 @@ declare function useSubgroups(groupId?: string | null): {
|
|
|
715
715
|
refetch: () => Promise<void>;
|
|
716
716
|
};
|
|
717
717
|
declare function useDetachContextFromGroup(): {
|
|
718
|
-
detachContextFromGroup: (groupId: string, contextId: string
|
|
718
|
+
detachContextFromGroup: (groupId: string, contextId: string) => Promise<void | null>;
|
|
719
719
|
loading: boolean;
|
|
720
720
|
error: Error | null;
|
|
721
721
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import React__default, { CSSProperties, ReactNode } from 'react';
|
|
4
4
|
import * as _calimero_network_mero_js from '@calimero-network/mero-js';
|
|
5
|
-
import { MeroJs, TokenStore, SetMetadataRequest, SseEventData, GroupMembershipEventData, GroupMigrationEventData, Codec, AddGroupMembersRequest, CreateContextRequest, CreateGroupInNamespaceRequest, CreateNamespaceRequest, CreateNamespaceInvitationRequest, CreateNamespaceInvitationResponseData, CreateRecursiveInvitationResponseData,
|
|
5
|
+
import { MeroJs, TokenStore, SetMetadataRequest, SseEventData, GroupMembershipEventData, GroupMigrationEventData, Codec, AddGroupMembersRequest, CreateContextRequest, CreateGroupInNamespaceRequest, CreateNamespaceRequest, CreateNamespaceInvitationRequest, CreateNamespaceInvitationResponseData, CreateRecursiveInvitationResponseData, GroupUpgradeStatusResponseData, GroupContextEntry, GroupInfo, CreateGroupInvitationRequest, MetadataRecord, JoinGroupRequest, JoinNamespaceRequest, MigrationStatus, MigrationStatusRollup, MemberMigrationStatusEntry, MigrateMyEntriesSummary, Namespace, SubgroupEntry, NamespaceIdentity, NodeIdentity, RemoveGroupMembersRequest, ReparentGroupRequest, ResyncContextRequest, SetDefaultCapabilitiesRequest, SetSubgroupVisibilityRequest, SetTeeAdmissionPolicyRequest, UpdateMemberRoleRequest, UpgradeGroupRequest, TokenData } from '@calimero-network/mero-js';
|
|
6
6
|
export * from '@calimero-network/mero-js';
|
|
7
7
|
export { CAPABILITIES, Codec, DEFAULT_LOCAL_NODE_PORTS, DiscoverLocalNodesOptions, EphemeralClient, EphemeralEntry, MetadataRecord, discoverLocalNodes, hasCap, localNodeUrl, nodeEndpoint, probeNodeHealth, withCap, withoutCap } from '@calimero-network/mero-js';
|
|
8
8
|
|
|
@@ -493,12 +493,12 @@ declare function useGroupInfo(groupId?: string | null): {
|
|
|
493
493
|
refetch: () => Promise<void>;
|
|
494
494
|
};
|
|
495
495
|
declare function useDeleteGroup(): {
|
|
496
|
-
deleteGroup: (groupId: string
|
|
496
|
+
deleteGroup: (groupId: string) => Promise<_calimero_network_mero_js.DeleteGroupResponseData | null>;
|
|
497
497
|
loading: boolean;
|
|
498
498
|
error: Error | null;
|
|
499
499
|
};
|
|
500
500
|
declare function useSyncGroup(): {
|
|
501
|
-
syncGroup: (groupId: string
|
|
501
|
+
syncGroup: (groupId: string) => Promise<_calimero_network_mero_js.SyncGroupResponseData | null>;
|
|
502
502
|
loading: boolean;
|
|
503
503
|
error: Error | null;
|
|
504
504
|
};
|
|
@@ -571,7 +571,7 @@ declare function useCreateNamespace(): {
|
|
|
571
571
|
error: Error | null;
|
|
572
572
|
};
|
|
573
573
|
declare function useDeleteNamespace(): {
|
|
574
|
-
deleteNamespace: (namespaceId: string
|
|
574
|
+
deleteNamespace: (namespaceId: string) => Promise<_calimero_network_mero_js.DeleteNamespaceResponseData | null>;
|
|
575
575
|
loading: boolean;
|
|
576
576
|
error: Error | null;
|
|
577
577
|
};
|
|
@@ -677,7 +677,7 @@ declare function useUpgradeGroup(): {
|
|
|
677
677
|
* itself change what any group runs; pair it with a subsequent upgrade.
|
|
678
678
|
*/
|
|
679
679
|
declare function useInstallFromRegistry(): {
|
|
680
|
-
installFromRegistry: (
|
|
680
|
+
installFromRegistry: (packageName: string, version: string) => Promise<_calimero_network_mero_js.InstallApplicationResponseData | null>;
|
|
681
681
|
loading: boolean;
|
|
682
682
|
error: Error | null;
|
|
683
683
|
};
|
|
@@ -698,7 +698,7 @@ declare function useGroupUpgradeStatus(groupId?: string | null): {
|
|
|
698
698
|
refetch: () => Promise<void>;
|
|
699
699
|
};
|
|
700
700
|
declare function useRetryGroupUpgrade(): {
|
|
701
|
-
retryGroupUpgrade: (groupId: string
|
|
701
|
+
retryGroupUpgrade: (groupId: string) => Promise<_calimero_network_mero_js.UpgradeGroupResponseData | null>;
|
|
702
702
|
loading: boolean;
|
|
703
703
|
error: Error | null;
|
|
704
704
|
};
|
|
@@ -715,7 +715,7 @@ declare function useSubgroups(groupId?: string | null): {
|
|
|
715
715
|
refetch: () => Promise<void>;
|
|
716
716
|
};
|
|
717
717
|
declare function useDetachContextFromGroup(): {
|
|
718
|
-
detachContextFromGroup: (groupId: string, contextId: string
|
|
718
|
+
detachContextFromGroup: (groupId: string, contextId: string) => Promise<void | null>;
|
|
719
719
|
loading: boolean;
|
|
720
720
|
error: Error | null;
|
|
721
721
|
};
|
package/dist/index.js
CHANGED
|
@@ -1949,9 +1949,9 @@ function useDeleteGroup() {
|
|
|
1949
1949
|
const { mero } = useMero();
|
|
1950
1950
|
const { loading, error, run } = useAsyncMutation();
|
|
1951
1951
|
const deleteGroup = useCallback(
|
|
1952
|
-
async (groupId
|
|
1952
|
+
async (groupId) => {
|
|
1953
1953
|
if (!mero) return null;
|
|
1954
|
-
return run(() => mero.admin.deleteGroup(groupId
|
|
1954
|
+
return run(() => mero.admin.deleteGroup(groupId));
|
|
1955
1955
|
},
|
|
1956
1956
|
[mero, run]
|
|
1957
1957
|
);
|
|
@@ -1961,9 +1961,9 @@ function useSyncGroup() {
|
|
|
1961
1961
|
const { mero } = useMero();
|
|
1962
1962
|
const { loading, error, run } = useAsyncMutation();
|
|
1963
1963
|
const syncGroup = useCallback(
|
|
1964
|
-
async (groupId
|
|
1964
|
+
async (groupId) => {
|
|
1965
1965
|
if (!mero) return null;
|
|
1966
|
-
return run(() => mero.admin.syncGroup(groupId
|
|
1966
|
+
return run(() => mero.admin.syncGroup(groupId));
|
|
1967
1967
|
},
|
|
1968
1968
|
[mero, run]
|
|
1969
1969
|
);
|
|
@@ -2054,9 +2054,9 @@ function useDeleteNamespace() {
|
|
|
2054
2054
|
const { mero } = useMero();
|
|
2055
2055
|
const { loading, error, run } = useAsyncMutation();
|
|
2056
2056
|
const deleteNamespace = useCallback(
|
|
2057
|
-
async (namespaceId
|
|
2057
|
+
async (namespaceId) => {
|
|
2058
2058
|
if (!mero) return null;
|
|
2059
|
-
return run(() => mero.admin.deleteNamespace(namespaceId
|
|
2059
|
+
return run(() => mero.admin.deleteNamespace(namespaceId));
|
|
2060
2060
|
},
|
|
2061
2061
|
[mero, run]
|
|
2062
2062
|
);
|
|
@@ -2277,9 +2277,9 @@ function useInstallFromRegistry() {
|
|
|
2277
2277
|
const { mero } = useMero();
|
|
2278
2278
|
const { loading, error, run } = useAsyncMutation();
|
|
2279
2279
|
const installFromRegistry = useCallback(
|
|
2280
|
-
async (
|
|
2280
|
+
async (packageName, version) => {
|
|
2281
2281
|
if (!mero) return null;
|
|
2282
|
-
return run(() => mero.admin.
|
|
2282
|
+
return run(() => mero.admin.installApplication({ package: packageName, version }));
|
|
2283
2283
|
},
|
|
2284
2284
|
[mero, run]
|
|
2285
2285
|
);
|
|
@@ -2348,9 +2348,9 @@ function useRetryGroupUpgrade() {
|
|
|
2348
2348
|
const { mero } = useMero();
|
|
2349
2349
|
const { loading, error, run } = useAsyncMutation();
|
|
2350
2350
|
const retryGroupUpgrade = useCallback(
|
|
2351
|
-
async (groupId
|
|
2351
|
+
async (groupId) => {
|
|
2352
2352
|
if (!mero) return null;
|
|
2353
|
-
return run(() => mero.admin.retryGroupUpgrade(groupId
|
|
2353
|
+
return run(() => mero.admin.retryGroupUpgrade(groupId));
|
|
2354
2354
|
},
|
|
2355
2355
|
[mero, run]
|
|
2356
2356
|
);
|
|
@@ -2381,9 +2381,9 @@ function useDetachContextFromGroup() {
|
|
|
2381
2381
|
const { mero } = useMero();
|
|
2382
2382
|
const { loading, error, run } = useAsyncMutation();
|
|
2383
2383
|
const detachContextFromGroup = useCallback(
|
|
2384
|
-
async (groupId, contextId
|
|
2384
|
+
async (groupId, contextId) => {
|
|
2385
2385
|
if (!mero) return null;
|
|
2386
|
-
return run(() => mero.admin.detachContextFromGroup(groupId, contextId
|
|
2386
|
+
return run(() => mero.admin.detachContextFromGroup(groupId, contextId));
|
|
2387
2387
|
},
|
|
2388
2388
|
[mero, run]
|
|
2389
2389
|
);
|