@elvix.is/sdk 0.6.1 → 0.6.2

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/react.d.ts CHANGED
@@ -551,7 +551,9 @@ type UseUserListResult = {
551
551
  type Opts = {
552
552
  applicationId: string;
553
553
  userId: string;
554
- /** elvix origin. Defaults to "" (same-origin). */
554
+ /** elvix origin. Defaults to "https://elvix.is" the public elvix
555
+ * identity host. Override only for self-hosted elvix instances or
556
+ * dev mirrors; production consumers never need to pass this. */
555
557
  baseUrl?: string;
556
558
  /** Poll interval in ms. Default 7000. */
557
559
  pollMs?: number;
@@ -561,7 +563,9 @@ declare const useUserScopes: (opts: Opts) => UseUserListResult;
561
563
  declare const useUserMemberships: (opts: Opts) => UseUserListResult;
562
564
 
563
565
  type ElvixLifecycleWatcherProps = {
564
- /** elvix origin. Defaults to "" (same-origin). */
566
+ /** elvix origin. Defaults to "https://elvix.is" the public elvix
567
+ * identity host. Override only for self-hosted elvix instances or
568
+ * dev mirrors; production consumers never need to pass this. */
565
569
  baseUrl?: string;
566
570
  /** Poll interval in ms when SSE isn't available. Default 7000. */
567
571
  pollMs?: number;
package/dist/react.js CHANGED
@@ -2609,7 +2609,7 @@ function ElvixSecuredBadge({
2609
2609
  import { useCallback as useCallback4, useEffect as useEffect5, useState as useState7 } from "react";
2610
2610
  var POLL_MS = 7e3;
2611
2611
  function useUserList(kind, opts) {
2612
- const { applicationId, baseUrl = "", pollMs = POLL_MS } = opts;
2612
+ const { applicationId, baseUrl = "https://elvix.is", pollMs = POLL_MS } = opts;
2613
2613
  const [slugs, setSlugs] = useState7([]);
2614
2614
  const [loading, setLoading] = useState7(true);
2615
2615
  const [error51, setError] = useState7(null);
@@ -2662,7 +2662,7 @@ function isSameOrigin2(baseUrl) {
2662
2662
  }
2663
2663
  }
2664
2664
  function ElvixLifecycleWatcher({
2665
- baseUrl = "",
2665
+ baseUrl = "https://elvix.is",
2666
2666
  pollMs = 7e3,
2667
2667
  applicationId,
2668
2668
  userId,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elvix.is/sdk",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "description": "Official elvix SDK. Drop-in React components, server helpers, and an MCP server so AI coding agents integrate elvix on the first try.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://elvix.is",