@calimero-network/mero-react 2.0.1 → 2.2.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.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import React__default from 'react';
3
+ import React__default, { CSSProperties } from 'react';
4
4
  import * as _calimero_network_mero_js from '@calimero-network/mero-js';
5
5
  import { MeroJs, AddGroupMembersRequest, CreateContextRequest, CreateGroupInNamespaceRequest, CreateNamespaceRequest, CreateNamespaceInvitationRequest, CreateNamespaceInvitationResponseData, CreateRecursiveInvitationResponseData, DeleteGroupRequest, DeleteNamespaceRequest, DetachContextFromGroupRequest, GroupContextEntry, GroupInfo, CreateGroupInvitationRequest, GroupMember, GroupUpgradeStatusResponseData, JoinGroupRequest, JoinNamespaceRequest, Namespace, SubgroupEntry, NamespaceIdentity, NestGroupRequest, RegisterGroupSigningKeyRequest, RemoveGroupMembersRequest, RetryGroupUpgradeRequest, SetDefaultCapabilitiesRequest, SetGroupAliasRequest, SetMemberAliasRequest, SetSubgroupVisibilityRequest, SetTeeAdmissionPolicyRequest, SseEventData, SyncGroupRequest, UnnestGroupRequest, UpdateGroupSettingsRequest, UpdateMemberRoleRequest, UpgradeGroupRequest, TokenData } from '@calimero-network/mero-js';
6
6
  export * from '@calimero-network/mero-js';
@@ -13,7 +13,22 @@ export * from '@calimero-network/mero-js';
13
13
  * Application mode determines the permission scope
14
14
  */
15
15
  declare enum AppMode {
16
- /** Single-context: auth flow handles context selection */
16
+ /**
17
+ * @deprecated since 2.1.0 — SingleContext is no longer supported and will
18
+ * be removed in 3.0.0. Auth-frontend no longer drives
19
+ * context/namespace/group selection; the auth callback returns only
20
+ * `access_token`, `refresh_token`, `application_id`, and `node_url`.
21
+ * Switch to {@link AppMode.MultiContext} and have your app manage
22
+ * context selection itself.
23
+ *
24
+ * Migration: see `example/app/src/pages/context/SelectContext.tsx` for a
25
+ * reference implementation. It uses `useContexts` /
26
+ * `useNamespacesForApplication` for listing, then calls
27
+ * `mero.admin.createNamespace` / `createGroupInNamespace` /
28
+ * `createContext` directly (rather than the `useCreate*` hooks) so the
29
+ * underlying server error surfaces to the user instead of being
30
+ * swallowed by `useAsyncMutation`.
31
+ */
17
32
  SingleContext = "single-context",
18
33
  /** Multi-context: user can manage multiple contexts */
19
34
  MultiContext = "multi-context",
@@ -122,6 +137,81 @@ interface MeroProviderProps extends MeroProviderConfig {
122
137
  declare function MeroProvider({ children, mode, packageName, packageVersion, registryUrl, timeoutMs, }: MeroProviderProps): react_jsx_runtime.JSX.Element;
123
138
  declare function useMero(): MeroContextValue;
124
139
 
140
+ /**
141
+ * Theme tokens for mero-react components.
142
+ *
143
+ * Defaults match the green palette used across Calimero apps (admin-dashboard,
144
+ * tauri-app, app-registry). Pass a partial `MeroTheme` to `ConnectButton` or
145
+ * `LoginModal` to override any token.
146
+ */
147
+
148
+ interface MeroTheme {
149
+ /** Primary accent / CTA color */
150
+ primary?: string;
151
+ /** Primary accent on hover */
152
+ primaryHover?: string;
153
+ /** Text color rendered on top of `primary` (e.g. inside the Connect button when connected) */
154
+ primaryText?: string;
155
+ /** Main surface color (modal background, button background) */
156
+ background?: string;
157
+ /** Secondary surface color (input fields, info chips) */
158
+ backgroundSecondary?: string;
159
+ /** Tertiary surface color (subtle elevation) */
160
+ backgroundTertiary?: string;
161
+ /** Border color */
162
+ border?: string;
163
+ /** Primary text color */
164
+ text?: string;
165
+ /** Muted / secondary text color */
166
+ textSecondary?: string;
167
+ /** Error / danger color */
168
+ error?: string;
169
+ /** Modal backdrop color */
170
+ overlay?: string;
171
+ /** Border radius (any CSS length) */
172
+ radius?: string;
173
+ }
174
+ type ResolvedMeroTheme = Required<MeroTheme>;
175
+ declare const defaultMeroTheme: Readonly<ResolvedMeroTheme>;
176
+ /**
177
+ * Merge a partial theme with the defaults.
178
+ *
179
+ * Filtering rules — values that fall back to the default:
180
+ * - `undefined` (the prop key wasn't set, or was set to `undefined`)
181
+ * - empty string `''`
182
+ * - whitespace-only strings (e.g. `' '`)
183
+ *
184
+ * These are dropped because they're invalid CSS and would produce
185
+ * invisible elements (transparent backgrounds, missing borders, etc.).
186
+ * If you genuinely want the browser default for a token, omit the key
187
+ * from the theme prop rather than passing an empty string.
188
+ *
189
+ * Any other non-empty string is forwarded as-is — CSS syntax itself
190
+ * is NOT validated.
191
+ */
192
+ declare function resolveMeroTheme(theme?: MeroTheme): ResolvedMeroTheme;
193
+ /**
194
+ * Single source of truth mapping each `MeroTheme` token name to the CSS
195
+ * custom-property name it surfaces as. Used by `themeToCssVars` to emit the
196
+ * inline-style map and by component code (e.g. `LoginModal`) to read the
197
+ * variable in inline styles via `var(--mero-*, fallback)`.
198
+ *
199
+ * Adding a new token? Add it here, in `MeroTheme`, and in `defaultMeroTheme`,
200
+ * and the rest of the system picks it up automatically.
201
+ */
202
+ declare const MERO_CSS_VARS: Record<keyof MeroTheme, string>;
203
+ /**
204
+ * Build a `style` object that exposes a resolved theme as CSS variables, so
205
+ * descendant CSS rules (e.g. those in `styles.css`) pick up the overrides.
206
+ */
207
+ declare function themeToCssVars(theme: ResolvedMeroTheme): CSSProperties;
208
+ /**
209
+ * Returns a `var(--mero-*, fallback)` reference for a theme token, suitable
210
+ * for inline styles in portal-rendered components where descendant CSS
211
+ * variables also need to support global `:root` overrides.
212
+ */
213
+ declare function cssVar(theme: ResolvedMeroTheme, key: keyof MeroTheme): string;
214
+
125
215
  interface ConnectButtonProps {
126
216
  /** Connection type for login modal */
127
217
  connectionType?: ConnectionType | CustomConnectionConfig;
@@ -129,11 +219,29 @@ interface ConnectButtonProps {
129
219
  className?: string;
130
220
  /** Custom styles */
131
221
  style?: React__default.CSSProperties;
222
+ /** Theme overrides — accepts any subset of `MeroTheme` tokens */
223
+ theme?: MeroTheme;
224
+ /**
225
+ * Render only the Calimero logo, no text. Produces a square 40×40 icon
226
+ * button. The label is still announced to screen readers via `aria-label`.
227
+ * Default: false.
228
+ */
229
+ logoOnly?: boolean;
230
+ /**
231
+ * Override the default labels per state. A bare string is shorthand for
232
+ * `{ connect: '<string>' }`. The connected and reconnecting states keep
233
+ * their defaults unless explicitly overridden.
234
+ */
235
+ label?: string | {
236
+ connect?: string;
237
+ connected?: string;
238
+ reconnecting?: string;
239
+ };
132
240
  }
133
241
  /**
134
242
  * ConnectButton - Displays connection status and handles login/logout
135
243
  */
136
- declare function ConnectButton({ connectionType, className, style, }: ConnectButtonProps): react_jsx_runtime.JSX.Element;
244
+ declare function ConnectButton({ connectionType, className, style, theme, logoOnly, label, }: ConnectButtonProps): react_jsx_runtime.JSX.Element;
137
245
 
138
246
  interface LoginModalProps {
139
247
  /** Callback when user connects */
@@ -144,11 +252,19 @@ interface LoginModalProps {
144
252
  connectionType: ConnectionType | CustomConnectionConfig;
145
253
  /** Whether the modal is open */
146
254
  isOpen: boolean;
255
+ /** Theme overrides — accepts any subset of `MeroTheme` tokens */
256
+ theme?: MeroTheme;
147
257
  }
148
258
  /**
149
259
  * LoginModal - Connection modal component
150
260
  */
151
- declare function LoginModal({ onConnect, onClose, connectionType, isOpen, }: LoginModalProps): React.ReactPortal | null;
261
+ declare function LoginModal({ onConnect, onClose, connectionType, isOpen, theme, }: LoginModalProps): React.ReactPortal | null;
262
+
263
+ interface CalimeroLogoProps extends React__default.SVGAttributes<SVGSVGElement> {
264
+ /** Width / height shorthand (applied to both). Default: 24. */
265
+ size?: number | string;
266
+ }
267
+ declare function CalimeroLogo({ size, color, style, ...rest }: CalimeroLogoProps): react_jsx_runtime.JSX.Element;
152
268
 
153
269
  /**
154
270
  * Execute RPC methods against a context.
@@ -455,4 +571,4 @@ declare function clearContextIdentity(): void;
455
571
  */
456
572
  declare function clearAllStorage(): void;
457
573
 
458
- export { type AppContext, AppMode, type ApplicationContextRecord, ConnectButton, type ConnectButtonProps, ConnectionType, type ContextDiscoveryOptions, type ContextDiscoveryState, type CustomConnectionConfig, type ExecutionResult, LoginModal, type LoginModalProps, MeroContext, type MeroContextValue, MeroProvider, type MeroProviderConfig, type MeroProviderProps, clearAllStorage, clearApplicationId, clearContextId, clearContextIdentity, clearNodeUrl, getApplicationId, getContextId, getContextIdentity, getNodeUrl, localStorageTokenStorage, setApplicationId, setContextId, setContextIdentity, setNodeUrl, useAddGroupMembers, useApplicationContexts, useContextDiscovery, useContextGroup, useContexts, useCreateContext, useCreateGroupInNamespace, useCreateNamespace, useCreateNamespaceInvitation, useDeleteContext, useDeleteGroup, useDeleteNamespace, useDetachContextFromGroup, useExecute, useGroupCapabilities, useGroupContexts, useGroupInfo, useGroupInvitations, useGroupMembers, useGroupUpgradeStatus, useJoinContext, useJoinGroup, useJoinNamespace, useMero, useNamespace, useNamespaceGroups, useNamespaceIdentity, useNamespaces, useNamespacesForApplication, useNestGroup, useRegisterGroupSigningKey, useRemoveGroupMembers, useRetryGroupUpgrade, useSetDefaultCapabilities, useSetGroupAlias, useSetMemberAlias, useSetSubgroupVisibility, useSetTeeAdmissionPolicy, useSubgroups, useSubscription, useSyncGroup, useUnnestGroup, useUpdateGroupSettings, useUpdateMemberRole, useUpgradeGroup };
574
+ export { type AppContext, AppMode, type ApplicationContextRecord, CalimeroLogo, type CalimeroLogoProps, ConnectButton, type ConnectButtonProps, ConnectionType, type ContextDiscoveryOptions, type ContextDiscoveryState, type CustomConnectionConfig, type ExecutionResult, LoginModal, type LoginModalProps, MERO_CSS_VARS, MeroContext, type MeroContextValue, MeroProvider, type MeroProviderConfig, type MeroProviderProps, type MeroTheme, type ResolvedMeroTheme, clearAllStorage, clearApplicationId, clearContextId, clearContextIdentity, clearNodeUrl, cssVar, defaultMeroTheme, getApplicationId, getContextId, getContextIdentity, getNodeUrl, localStorageTokenStorage, resolveMeroTheme, setApplicationId, setContextId, setContextIdentity, setNodeUrl, themeToCssVars, useAddGroupMembers, useApplicationContexts, useContextDiscovery, useContextGroup, useContexts, useCreateContext, useCreateGroupInNamespace, useCreateNamespace, useCreateNamespaceInvitation, useDeleteContext, useDeleteGroup, useDeleteNamespace, useDetachContextFromGroup, useExecute, useGroupCapabilities, useGroupContexts, useGroupInfo, useGroupInvitations, useGroupMembers, useGroupUpgradeStatus, useJoinContext, useJoinGroup, useJoinNamespace, useMero, useNamespace, useNamespaceGroups, useNamespaceIdentity, useNamespaces, useNamespacesForApplication, useNestGroup, useRegisterGroupSigningKey, useRemoveGroupMembers, useRetryGroupUpgrade, useSetDefaultCapabilities, useSetGroupAlias, useSetMemberAlias, useSetSubgroupVisibility, useSetTeeAdmissionPolicy, useSubgroups, useSubscription, useSyncGroup, useUnnestGroup, useUpdateGroupSettings, useUpdateMemberRole, useUpgradeGroup };
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
- import React__default from 'react';
3
+ import React__default, { CSSProperties } from 'react';
4
4
  import * as _calimero_network_mero_js from '@calimero-network/mero-js';
5
5
  import { MeroJs, AddGroupMembersRequest, CreateContextRequest, CreateGroupInNamespaceRequest, CreateNamespaceRequest, CreateNamespaceInvitationRequest, CreateNamespaceInvitationResponseData, CreateRecursiveInvitationResponseData, DeleteGroupRequest, DeleteNamespaceRequest, DetachContextFromGroupRequest, GroupContextEntry, GroupInfo, CreateGroupInvitationRequest, GroupMember, GroupUpgradeStatusResponseData, JoinGroupRequest, JoinNamespaceRequest, Namespace, SubgroupEntry, NamespaceIdentity, NestGroupRequest, RegisterGroupSigningKeyRequest, RemoveGroupMembersRequest, RetryGroupUpgradeRequest, SetDefaultCapabilitiesRequest, SetGroupAliasRequest, SetMemberAliasRequest, SetSubgroupVisibilityRequest, SetTeeAdmissionPolicyRequest, SseEventData, SyncGroupRequest, UnnestGroupRequest, UpdateGroupSettingsRequest, UpdateMemberRoleRequest, UpgradeGroupRequest, TokenData } from '@calimero-network/mero-js';
6
6
  export * from '@calimero-network/mero-js';
@@ -13,7 +13,22 @@ export * from '@calimero-network/mero-js';
13
13
  * Application mode determines the permission scope
14
14
  */
15
15
  declare enum AppMode {
16
- /** Single-context: auth flow handles context selection */
16
+ /**
17
+ * @deprecated since 2.1.0 — SingleContext is no longer supported and will
18
+ * be removed in 3.0.0. Auth-frontend no longer drives
19
+ * context/namespace/group selection; the auth callback returns only
20
+ * `access_token`, `refresh_token`, `application_id`, and `node_url`.
21
+ * Switch to {@link AppMode.MultiContext} and have your app manage
22
+ * context selection itself.
23
+ *
24
+ * Migration: see `example/app/src/pages/context/SelectContext.tsx` for a
25
+ * reference implementation. It uses `useContexts` /
26
+ * `useNamespacesForApplication` for listing, then calls
27
+ * `mero.admin.createNamespace` / `createGroupInNamespace` /
28
+ * `createContext` directly (rather than the `useCreate*` hooks) so the
29
+ * underlying server error surfaces to the user instead of being
30
+ * swallowed by `useAsyncMutation`.
31
+ */
17
32
  SingleContext = "single-context",
18
33
  /** Multi-context: user can manage multiple contexts */
19
34
  MultiContext = "multi-context",
@@ -122,6 +137,81 @@ interface MeroProviderProps extends MeroProviderConfig {
122
137
  declare function MeroProvider({ children, mode, packageName, packageVersion, registryUrl, timeoutMs, }: MeroProviderProps): react_jsx_runtime.JSX.Element;
123
138
  declare function useMero(): MeroContextValue;
124
139
 
140
+ /**
141
+ * Theme tokens for mero-react components.
142
+ *
143
+ * Defaults match the green palette used across Calimero apps (admin-dashboard,
144
+ * tauri-app, app-registry). Pass a partial `MeroTheme` to `ConnectButton` or
145
+ * `LoginModal` to override any token.
146
+ */
147
+
148
+ interface MeroTheme {
149
+ /** Primary accent / CTA color */
150
+ primary?: string;
151
+ /** Primary accent on hover */
152
+ primaryHover?: string;
153
+ /** Text color rendered on top of `primary` (e.g. inside the Connect button when connected) */
154
+ primaryText?: string;
155
+ /** Main surface color (modal background, button background) */
156
+ background?: string;
157
+ /** Secondary surface color (input fields, info chips) */
158
+ backgroundSecondary?: string;
159
+ /** Tertiary surface color (subtle elevation) */
160
+ backgroundTertiary?: string;
161
+ /** Border color */
162
+ border?: string;
163
+ /** Primary text color */
164
+ text?: string;
165
+ /** Muted / secondary text color */
166
+ textSecondary?: string;
167
+ /** Error / danger color */
168
+ error?: string;
169
+ /** Modal backdrop color */
170
+ overlay?: string;
171
+ /** Border radius (any CSS length) */
172
+ radius?: string;
173
+ }
174
+ type ResolvedMeroTheme = Required<MeroTheme>;
175
+ declare const defaultMeroTheme: Readonly<ResolvedMeroTheme>;
176
+ /**
177
+ * Merge a partial theme with the defaults.
178
+ *
179
+ * Filtering rules — values that fall back to the default:
180
+ * - `undefined` (the prop key wasn't set, or was set to `undefined`)
181
+ * - empty string `''`
182
+ * - whitespace-only strings (e.g. `' '`)
183
+ *
184
+ * These are dropped because they're invalid CSS and would produce
185
+ * invisible elements (transparent backgrounds, missing borders, etc.).
186
+ * If you genuinely want the browser default for a token, omit the key
187
+ * from the theme prop rather than passing an empty string.
188
+ *
189
+ * Any other non-empty string is forwarded as-is — CSS syntax itself
190
+ * is NOT validated.
191
+ */
192
+ declare function resolveMeroTheme(theme?: MeroTheme): ResolvedMeroTheme;
193
+ /**
194
+ * Single source of truth mapping each `MeroTheme` token name to the CSS
195
+ * custom-property name it surfaces as. Used by `themeToCssVars` to emit the
196
+ * inline-style map and by component code (e.g. `LoginModal`) to read the
197
+ * variable in inline styles via `var(--mero-*, fallback)`.
198
+ *
199
+ * Adding a new token? Add it here, in `MeroTheme`, and in `defaultMeroTheme`,
200
+ * and the rest of the system picks it up automatically.
201
+ */
202
+ declare const MERO_CSS_VARS: Record<keyof MeroTheme, string>;
203
+ /**
204
+ * Build a `style` object that exposes a resolved theme as CSS variables, so
205
+ * descendant CSS rules (e.g. those in `styles.css`) pick up the overrides.
206
+ */
207
+ declare function themeToCssVars(theme: ResolvedMeroTheme): CSSProperties;
208
+ /**
209
+ * Returns a `var(--mero-*, fallback)` reference for a theme token, suitable
210
+ * for inline styles in portal-rendered components where descendant CSS
211
+ * variables also need to support global `:root` overrides.
212
+ */
213
+ declare function cssVar(theme: ResolvedMeroTheme, key: keyof MeroTheme): string;
214
+
125
215
  interface ConnectButtonProps {
126
216
  /** Connection type for login modal */
127
217
  connectionType?: ConnectionType | CustomConnectionConfig;
@@ -129,11 +219,29 @@ interface ConnectButtonProps {
129
219
  className?: string;
130
220
  /** Custom styles */
131
221
  style?: React__default.CSSProperties;
222
+ /** Theme overrides — accepts any subset of `MeroTheme` tokens */
223
+ theme?: MeroTheme;
224
+ /**
225
+ * Render only the Calimero logo, no text. Produces a square 40×40 icon
226
+ * button. The label is still announced to screen readers via `aria-label`.
227
+ * Default: false.
228
+ */
229
+ logoOnly?: boolean;
230
+ /**
231
+ * Override the default labels per state. A bare string is shorthand for
232
+ * `{ connect: '<string>' }`. The connected and reconnecting states keep
233
+ * their defaults unless explicitly overridden.
234
+ */
235
+ label?: string | {
236
+ connect?: string;
237
+ connected?: string;
238
+ reconnecting?: string;
239
+ };
132
240
  }
133
241
  /**
134
242
  * ConnectButton - Displays connection status and handles login/logout
135
243
  */
136
- declare function ConnectButton({ connectionType, className, style, }: ConnectButtonProps): react_jsx_runtime.JSX.Element;
244
+ declare function ConnectButton({ connectionType, className, style, theme, logoOnly, label, }: ConnectButtonProps): react_jsx_runtime.JSX.Element;
137
245
 
138
246
  interface LoginModalProps {
139
247
  /** Callback when user connects */
@@ -144,11 +252,19 @@ interface LoginModalProps {
144
252
  connectionType: ConnectionType | CustomConnectionConfig;
145
253
  /** Whether the modal is open */
146
254
  isOpen: boolean;
255
+ /** Theme overrides — accepts any subset of `MeroTheme` tokens */
256
+ theme?: MeroTheme;
147
257
  }
148
258
  /**
149
259
  * LoginModal - Connection modal component
150
260
  */
151
- declare function LoginModal({ onConnect, onClose, connectionType, isOpen, }: LoginModalProps): React.ReactPortal | null;
261
+ declare function LoginModal({ onConnect, onClose, connectionType, isOpen, theme, }: LoginModalProps): React.ReactPortal | null;
262
+
263
+ interface CalimeroLogoProps extends React__default.SVGAttributes<SVGSVGElement> {
264
+ /** Width / height shorthand (applied to both). Default: 24. */
265
+ size?: number | string;
266
+ }
267
+ declare function CalimeroLogo({ size, color, style, ...rest }: CalimeroLogoProps): react_jsx_runtime.JSX.Element;
152
268
 
153
269
  /**
154
270
  * Execute RPC methods against a context.
@@ -455,4 +571,4 @@ declare function clearContextIdentity(): void;
455
571
  */
456
572
  declare function clearAllStorage(): void;
457
573
 
458
- export { type AppContext, AppMode, type ApplicationContextRecord, ConnectButton, type ConnectButtonProps, ConnectionType, type ContextDiscoveryOptions, type ContextDiscoveryState, type CustomConnectionConfig, type ExecutionResult, LoginModal, type LoginModalProps, MeroContext, type MeroContextValue, MeroProvider, type MeroProviderConfig, type MeroProviderProps, clearAllStorage, clearApplicationId, clearContextId, clearContextIdentity, clearNodeUrl, getApplicationId, getContextId, getContextIdentity, getNodeUrl, localStorageTokenStorage, setApplicationId, setContextId, setContextIdentity, setNodeUrl, useAddGroupMembers, useApplicationContexts, useContextDiscovery, useContextGroup, useContexts, useCreateContext, useCreateGroupInNamespace, useCreateNamespace, useCreateNamespaceInvitation, useDeleteContext, useDeleteGroup, useDeleteNamespace, useDetachContextFromGroup, useExecute, useGroupCapabilities, useGroupContexts, useGroupInfo, useGroupInvitations, useGroupMembers, useGroupUpgradeStatus, useJoinContext, useJoinGroup, useJoinNamespace, useMero, useNamespace, useNamespaceGroups, useNamespaceIdentity, useNamespaces, useNamespacesForApplication, useNestGroup, useRegisterGroupSigningKey, useRemoveGroupMembers, useRetryGroupUpgrade, useSetDefaultCapabilities, useSetGroupAlias, useSetMemberAlias, useSetSubgroupVisibility, useSetTeeAdmissionPolicy, useSubgroups, useSubscription, useSyncGroup, useUnnestGroup, useUpdateGroupSettings, useUpdateMemberRole, useUpgradeGroup };
574
+ export { type AppContext, AppMode, type ApplicationContextRecord, CalimeroLogo, type CalimeroLogoProps, ConnectButton, type ConnectButtonProps, ConnectionType, type ContextDiscoveryOptions, type ContextDiscoveryState, type CustomConnectionConfig, type ExecutionResult, LoginModal, type LoginModalProps, MERO_CSS_VARS, MeroContext, type MeroContextValue, MeroProvider, type MeroProviderConfig, type MeroProviderProps, type MeroTheme, type ResolvedMeroTheme, clearAllStorage, clearApplicationId, clearContextId, clearContextIdentity, clearNodeUrl, cssVar, defaultMeroTheme, getApplicationId, getContextId, getContextIdentity, getNodeUrl, localStorageTokenStorage, resolveMeroTheme, setApplicationId, setContextId, setContextIdentity, setNodeUrl, themeToCssVars, useAddGroupMembers, useApplicationContexts, useContextDiscovery, useContextGroup, useContexts, useCreateContext, useCreateGroupInNamespace, useCreateNamespace, useCreateNamespaceInvitation, useDeleteContext, useDeleteGroup, useDeleteNamespace, useDetachContextFromGroup, useExecute, useGroupCapabilities, useGroupContexts, useGroupInfo, useGroupInvitations, useGroupMembers, useGroupUpgradeStatus, useJoinContext, useJoinGroup, useJoinNamespace, useMero, useNamespace, useNamespaceGroups, useNamespaceIdentity, useNamespaces, useNamespacesForApplication, useNestGroup, useRegisterGroupSigningKey, useRemoveGroupMembers, useRetryGroupUpgrade, useSetDefaultCapabilities, useSetGroupAlias, useSetMemberAlias, useSetSubgroupVisibility, useSetTeeAdmissionPolicy, useSubgroups, useSubscription, useSyncGroup, useUnnestGroup, useUpdateGroupSettings, useUpdateMemberRole, useUpgradeGroup };