@cal.macconnachie/web-components 0.0.9 → 0.0.11

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.ts CHANGED
@@ -1,12 +1,18 @@
1
+ import { AxiosInstance } from 'axios';
1
2
  import { CSSResult } from 'lit';
2
3
  import { LitElement } from 'lit';
3
4
  import { nothing } from 'lit';
4
5
  import { PropertyValues } from 'lit';
5
6
  import { TemplateResult } from 'lit-html';
6
7
 
7
- declare type AuthMode = 'signin' | 'signup';
8
+ export declare const apiClient: ({ baseUrl, apiBaseUrl }: ApiClientConfig) => AxiosInstance;
8
9
 
9
- export declare class CalsAuth extends LitElement {
10
+ declare interface ApiClientConfig {
11
+ baseUrl: string;
12
+ apiBaseUrl?: string;
13
+ }
14
+
15
+ export declare class Auth extends LitElement {
10
16
  open: boolean;
11
17
  initialMode: AuthMode;
12
18
  logoUrl: string;
@@ -19,6 +25,7 @@ export declare class CalsAuth extends LitElement {
19
25
  oauthSpaDomain: string;
20
26
  size: 'sm' | 'md' | 'lg';
21
27
  theme: 'light' | 'dark';
28
+ disableSignup: boolean;
22
29
  private mode;
23
30
  private resetStep;
24
31
  private signupStep;
@@ -110,7 +117,15 @@ export declare class CalsAuth extends LitElement {
110
117
  static styles: CSSResult;
111
118
  }
112
119
 
113
- export declare class CalsThemeToggle extends LitElement {
120
+ declare type AuthMode = 'signin' | 'signup';
121
+
122
+ export declare class AuthRefreshError extends Error {
123
+ constructor(message?: string);
124
+ }
125
+
126
+ export declare const createApiClient: ({ baseUrl, apiBaseUrl }: ApiClientConfig) => AxiosInstance;
127
+
128
+ export declare class ThemeToggle extends LitElement {
114
129
  theme: 'light' | 'dark';
115
130
  storageKey: string;
116
131
  size: 'sm' | 'md' | 'lg';