@pontive/pontkit-core 1.5.0 → 1.6.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.
@@ -33,6 +33,17 @@ export declare class PontOrganizationSwitcher extends LitElement {
33
33
  reloadOnSwitch: boolean;
34
34
  /** Label shown when the session acts in no organization. */
35
35
  emptyLabel: string;
36
+ /**
37
+ * Called after a switch, with the same detail as `pont-organization-changed`.
38
+ * A property rather than only an event so framework bindings that pass props
39
+ * (the React and Vue wrappers) can take it as `onOrganizationChanged`.
40
+ */
41
+ onOrganizationChanged?: (detail: OrganizationChangedDetail) => void;
42
+ /** Called when a switch is refused; the session is unchanged. */
43
+ onSwitchFailed?: (detail: {
44
+ organizationId: string;
45
+ error: unknown;
46
+ }) => void;
36
47
  auth?: AuthState;
37
48
  private organizations;
38
49
  private currentId;