@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/README.md +8 -8
- package/dist/components/auth.js +88 -85
- package/dist/components/index.d.ts +18 -3
- package/dist/components/theme-toggle.js +1 -1
- package/dist/index.d.ts +18 -3
- package/dist/index.js +2758 -947
- package/dist/stylesheets/main.css +1 -1
- package/package.json +2 -1
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
|
|
8
|
+
export declare const apiClient: ({ baseUrl, apiBaseUrl }: ApiClientConfig) => AxiosInstance;
|
|
8
9
|
|
|
9
|
-
|
|
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
|
-
|
|
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';
|