@streamoid/settings 0.7.5 → 0.7.7

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
@@ -223,3 +223,5 @@ and shares light/dark canvas, card, text, divider and selection colors with the
223
223
  host sidebar. Removing settings restores the host theme. Host wrappers must
224
224
  remain transparent and use `--alias-surface-canvas` for the app floor; do not
225
225
  paint `--alias-surface-base` behind the whole settings page.
226
+
227
+ Handled cancellations remain silent through the toast adapter. A confirmed member update or removal closes its editor before refreshing the list. The only-admin leave guard inspects retained diagnostics before selecting its authored guidance; diagnostic text is never rendered.
package/dist/index.d.mts CHANGED
@@ -365,6 +365,10 @@ interface OrganizationWorkspaceItem {
365
365
  name: string;
366
366
  imageUrl?: string;
367
367
  orgVisibility: "private" | "shared";
368
+ /** Whether the viewer is in it. An org member is shown every shared
369
+ * workspace; the ones with `joined: false` get a Join button (with
370
+ * `joinWorkspaces`). Absent is treated as joined. */
371
+ joined?: boolean;
368
372
  }
369
373
  /** A shared workspace in the organization that the viewer isn't in yet. */
370
374
  interface OrganizationJoinableWorkspace {
@@ -464,13 +468,13 @@ interface SettingsOrganizationAdapter {
464
468
  }>;
465
469
  fetchWorkspaces: () => Promise<OrganizationWorkspaceItem[]>;
466
470
  /**
467
- * Optional: the organization's shared workspaces the viewer isn't in yet —
468
- * the workspace picker's list. When given (with `joinWorkspaces`), org
469
- * members see them under Organization › Workspaces and can join any of them
470
- * as a member at any time, not only at first sign-in.
471
+ * @deprecated Since 0.7.6 never called: `fetchWorkspaces()` lists every
472
+ * shared workspace for an org member, flagged with `joined`.
471
473
  */
472
474
  fetchJoinableWorkspaces?: () => Promise<OrganizationJoinableWorkspace[]>;
473
- /** Optional: join those workspaces as a member. Resolves to the ids joined. */
475
+ /** Optional: join workspaces as a member. Resolves to the ids joined. With
476
+ * it, an org member gets a Join button on each shared workspace listed
477
+ * under Organization › Workspaces with `joined: false`. */
474
478
  joinWorkspaces?: (workspaceIds: string[]) => Promise<string[]>;
475
479
  fetchJoinRequests: () => Promise<OrganizationJoinRequest[]>;
476
480
  approveJoinRequest: (requestId: string) => Promise<void>;
package/dist/index.d.ts CHANGED
@@ -365,6 +365,10 @@ interface OrganizationWorkspaceItem {
365
365
  name: string;
366
366
  imageUrl?: string;
367
367
  orgVisibility: "private" | "shared";
368
+ /** Whether the viewer is in it. An org member is shown every shared
369
+ * workspace; the ones with `joined: false` get a Join button (with
370
+ * `joinWorkspaces`). Absent is treated as joined. */
371
+ joined?: boolean;
368
372
  }
369
373
  /** A shared workspace in the organization that the viewer isn't in yet. */
370
374
  interface OrganizationJoinableWorkspace {
@@ -464,13 +468,13 @@ interface SettingsOrganizationAdapter {
464
468
  }>;
465
469
  fetchWorkspaces: () => Promise<OrganizationWorkspaceItem[]>;
466
470
  /**
467
- * Optional: the organization's shared workspaces the viewer isn't in yet —
468
- * the workspace picker's list. When given (with `joinWorkspaces`), org
469
- * members see them under Organization › Workspaces and can join any of them
470
- * as a member at any time, not only at first sign-in.
471
+ * @deprecated Since 0.7.6 never called: `fetchWorkspaces()` lists every
472
+ * shared workspace for an org member, flagged with `joined`.
471
473
  */
472
474
  fetchJoinableWorkspaces?: () => Promise<OrganizationJoinableWorkspace[]>;
473
- /** Optional: join those workspaces as a member. Resolves to the ids joined. */
475
+ /** Optional: join workspaces as a member. Resolves to the ids joined. With
476
+ * it, an org member gets a Join button on each shared workspace listed
477
+ * under Organization › Workspaces with `joined: false`. */
474
478
  joinWorkspaces?: (workspaceIds: string[]) => Promise<string[]>;
475
479
  fetchJoinRequests: () => Promise<OrganizationJoinRequest[]>;
476
480
  approveJoinRequest: (requestId: string) => Promise<void>;