@calimero-network/mero-react 4.6.1 → 5.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/README.md CHANGED
@@ -352,7 +352,6 @@ useGroupInfo, useGroupMembers, useGroupContexts, useGroupInvitations, useGroupCa
352
352
  useJoinGroup, useDeleteGroup, useAddGroupMembers, useRemoveGroupMembers
353
353
  useSyncGroup, useReparentGroup, useSubgroups
354
354
  useUpgradeGroup, useGroupUpgradeStatus, useRetryGroupUpgrade
355
- useRegisterGroupSigningKey, useUpdateGroupSettings
356
355
  useSetGroupMetadata, useSetMemberMetadata, useSetContextMetadata
357
356
  useGroupMetadata, useMemberMetadata, useUpdateMemberRole
358
357
  useSetDefaultCapabilities, useDefaultCapabilities
package/dist/index.cjs CHANGED
@@ -1464,7 +1464,6 @@ function useGroupMembers(groupId) {
1464
1464
  );
1465
1465
  return {
1466
1466
  members: data?.members ?? [],
1467
- selfIdentity: data?.selfIdentity ?? null,
1468
1467
  loading,
1469
1468
  error,
1470
1469
  refetch
@@ -1965,18 +1964,6 @@ function useSetTeeAdmissionPolicy() {
1965
1964
  );
1966
1965
  return { setTeeAdmissionPolicy, loading, error };
1967
1966
  }
1968
- function useUpdateGroupSettings() {
1969
- const { mero } = useMero();
1970
- const { loading, error, run } = useAsyncMutation();
1971
- const updateGroupSettings = react.useCallback(
1972
- async (groupId, request) => {
1973
- if (!mero) return null;
1974
- return run(() => mero.admin.updateGroupSettings(groupId, request));
1975
- },
1976
- [mero, run]
1977
- );
1978
- return { updateGroupSettings, loading, error };
1979
- }
1980
1967
  function useSetGroupMetadata() {
1981
1968
  const { mero } = useMero();
1982
1969
  const { loading, error, run } = useAsyncMutation();
@@ -2065,18 +2052,6 @@ function useMemberMetadata(groupId, identity) {
2065
2052
  }, [run]);
2066
2053
  return { metadata, loading, error, refetch };
2067
2054
  }
2068
- function useRegisterGroupSigningKey() {
2069
- const { mero } = useMero();
2070
- const { loading, error, run } = useAsyncMutation();
2071
- const registerGroupSigningKey = react.useCallback(
2072
- async (groupId, request) => {
2073
- if (!mero) return null;
2074
- return run(() => mero.admin.registerGroupSigningKey(groupId, request));
2075
- },
2076
- [mero, run]
2077
- );
2078
- return { registerGroupSigningKey, loading, error };
2079
- }
2080
2055
  function useUpgradeGroup() {
2081
2056
  const { mero } = useMero();
2082
2057
  const { loading, error, run } = useAsyncMutation();
@@ -2418,12 +2393,12 @@ function useGroupAppVersion(groupId) {
2418
2393
  if (namespace) {
2419
2394
  appKey = namespace.appKey;
2420
2395
  applicationId = namespace.targetApplicationId;
2421
- upgradePolicy = namespace.upgradePolicy;
2396
+ upgradePolicy = namespace.upgradePolicy ?? null;
2422
2397
  } else {
2423
2398
  const info = await mero.admin.getGroupInfo(groupId);
2424
2399
  appKey = info.appKey;
2425
2400
  applicationId = info.targetApplicationId;
2426
- upgradePolicy = info.upgradePolicy;
2401
+ upgradePolicy = info.upgradePolicy ?? null;
2427
2402
  activeUpgrade = info.activeUpgrade ?? null;
2428
2403
  }
2429
2404
  let version = null;
@@ -2714,7 +2689,6 @@ exports.useNamespaceGroups = useNamespaceGroups;
2714
2689
  exports.useNamespaceIdentity = useNamespaceIdentity;
2715
2690
  exports.useNamespaces = useNamespaces;
2716
2691
  exports.useNamespacesForApplication = useNamespacesForApplication;
2717
- exports.useRegisterGroupSigningKey = useRegisterGroupSigningKey;
2718
2692
  exports.useRemoveGroupMembers = useRemoveGroupMembers;
2719
2693
  exports.useReparentGroup = useReparentGroup;
2720
2694
  exports.useResyncContext = useResyncContext;
@@ -2729,7 +2703,6 @@ exports.useSubgroupVisibility = useSubgroupVisibility;
2729
2703
  exports.useSubgroups = useSubgroups;
2730
2704
  exports.useSubscription = useSubscription;
2731
2705
  exports.useSyncGroup = useSyncGroup;
2732
- exports.useUpdateGroupSettings = useUpdateGroupSettings;
2733
2706
  exports.useUpdateMemberRole = useUpdateMemberRole;
2734
2707
  exports.useUpgradeGroup = useUpgradeGroup;
2735
2708
  Object.keys(meroJs).forEach(function (k) {