@calimero-network/mero-react 2.1.0 → 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
@@ -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",
package/dist/index.d.ts CHANGED
@@ -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",