@zitadel/sdk-angular 0.1.0-alpha.17 → 0.1.0-alpha.19
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 +13 -4
- package/dist/index.js +63 -34
- package/dist/types/lib/zitadel-login.component.d.ts +5 -2
- package/dist/types/lib/zitadel-login.component.d.ts.map +1 -1
- package/dist/types/lib/zitadel-logout.component.d.ts +2 -1
- package/dist/types/lib/zitadel-logout.component.d.ts.map +1 -1
- package/dist/types/lib/zitadel-session.component.d.ts +4 -1
- package/dist/types/lib/zitadel-session.component.d.ts.map +1 -1
- package/dist/types/public-api.d.ts +1 -0
- package/dist/types/public-api.d.ts.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -30,12 +30,21 @@ export class LoginPage {
|
|
|
30
30
|
|
|
31
31
|
`<zitadel-auth-logout [project]="project" postSignOutUrl="/login" />` works the same way.
|
|
32
32
|
|
|
33
|
+
The signed-in session card is `<zitadel-auth-session>` (exported as `ZitadelSessionComponent`).
|
|
34
|
+
|
|
33
35
|
> The wrapper uses the selector `zitadel-auth-login` (not `zitadel-login`) because
|
|
34
36
|
> the latter is the underlying custom element the component renders internally.
|
|
35
37
|
|
|
36
38
|
## Proxying to the backend (deployment)
|
|
37
39
|
|
|
38
|
-
The widgets call `${proxyPath}/…` same-origin (default `/__nextgen`).
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
The widgets call `${proxyPath}/…` same-origin (default `/__nextgen`). In
|
|
41
|
+
production the same-origin path must come from your hosting platform — until
|
|
42
|
+
the CLI can scaffold those configs, **production SPA deployment is not yet
|
|
43
|
+
supported**; see
|
|
44
|
+
[ADR 036](https://github.com/zitadel/nextgen/blob/main/docs/adrs/036-api-credential-planes.md)
|
|
45
|
+
and [zitadel/nextgen#560](https://github.com/zitadel/nextgen/issues/560). The
|
|
46
|
+
CLI dev proxy covers local development.
|
|
47
|
+
|
|
48
|
+
For local development you can also skip the proxy and point `proxyPath`
|
|
49
|
+
straight at the backend (cross-origin), e.g. `proxyPath: "http://localhost:8080"`
|
|
50
|
+
(the `zitadel start` local runtime default port).
|
package/dist/index.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import * as t from "@angular/core";
|
|
2
|
-
import { EventEmitter as
|
|
3
|
-
import "@zitadel/components";
|
|
4
|
-
const
|
|
2
|
+
import { EventEmitter as o, ViewChild as g, Output as p, Input as e, CUSTOM_ELEMENTS_SCHEMA as d, Component as m } from "@angular/core";
|
|
3
|
+
import { businessLocales as I } from "@zitadel/components";
|
|
4
|
+
const a = class a {
|
|
5
5
|
constructor() {
|
|
6
|
-
this.purpose = "login", this.flowStep = new
|
|
6
|
+
this.purpose = "login", this.flowStep = new o(), this.flowInput = new o(), this.flowComplete = new o(), this.flowError = new o();
|
|
7
7
|
}
|
|
8
8
|
/** The underlying `<zitadel-login>` custom element, or `null` before view init. */
|
|
9
9
|
get element() {
|
|
10
10
|
return this.elementRef?.nativeElement ?? null;
|
|
11
11
|
}
|
|
12
|
-
onFlowStep(
|
|
13
|
-
this.flowStep.emit(
|
|
12
|
+
onFlowStep(r) {
|
|
13
|
+
this.flowStep.emit(r.detail);
|
|
14
14
|
}
|
|
15
|
-
onFlowInput(
|
|
16
|
-
this.flowInput.emit(
|
|
15
|
+
onFlowInput(r) {
|
|
16
|
+
this.flowInput.emit(r.detail);
|
|
17
17
|
}
|
|
18
|
-
onFlowComplete(
|
|
19
|
-
this.flowComplete.emit(
|
|
18
|
+
onFlowComplete(r) {
|
|
19
|
+
this.flowComplete.emit(r.detail);
|
|
20
20
|
}
|
|
21
|
-
onFlowError(
|
|
22
|
-
this.flowError.emit(
|
|
21
|
+
onFlowError(r) {
|
|
22
|
+
this.flowError.emit(r.detail);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
a.ɵfac = t.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: t, type: a, deps: [], target: t.ɵɵFactoryTarget.Component }), a.ɵcmp = t.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: a, isStandalone: !0, selector: "zitadel-auth-login", inputs: { project: "project", projectId: "projectId", proxyPath: "proxyPath", purpose: "purpose", flowName: "flowName", postSignInUrl: "postSignInUrl", locales: "locales", lang: "lang", variant: "variant", theme: "theme", suppressHeader: "suppressHeader" }, outputs: { flowStep: "flowStep", flowInput: "flowInput", flowComplete: "flowComplete", flowError: "flowError" }, viewQueries: [{ propertyName: "elementRef", first: !0, predicate: ["el"], descendants: !0 }], ngImport: t, template: `<zitadel-login
|
|
26
26
|
#el
|
|
27
27
|
[project]="project"
|
|
28
28
|
[projectId]="projectId"
|
|
@@ -32,12 +32,15 @@ p.ɵfac = t.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngIm
|
|
|
32
32
|
[attr.purpose]="purpose"
|
|
33
33
|
[attr.flow-name]="flowName"
|
|
34
34
|
[attr.post-sign-in-url]="postSignInUrl"
|
|
35
|
+
[attr.variant]="variant ?? null"
|
|
36
|
+
[attr.theme]="theme ?? null"
|
|
37
|
+
[suppressHeader]="suppressHeader"
|
|
35
38
|
(zitadel-flow-step)="onFlowStep($event)"
|
|
36
39
|
(zitadel-flow-input)="onFlowInput($event)"
|
|
37
40
|
(zitadel-flow-complete)="onFlowComplete($event)"
|
|
38
41
|
(zitadel-flow-error)="onFlowError($event)"
|
|
39
42
|
></zitadel-login>`, isInline: !0 });
|
|
40
|
-
let i =
|
|
43
|
+
let i = a;
|
|
41
44
|
t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: t, type: i, decorators: [{
|
|
42
45
|
type: m,
|
|
43
46
|
args: [{
|
|
@@ -54,6 +57,9 @@ t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport
|
|
|
54
57
|
[attr.purpose]="purpose"
|
|
55
58
|
[attr.flow-name]="flowName"
|
|
56
59
|
[attr.post-sign-in-url]="postSignInUrl"
|
|
60
|
+
[attr.variant]="variant ?? null"
|
|
61
|
+
[attr.theme]="theme ?? null"
|
|
62
|
+
[suppressHeader]="suppressHeader"
|
|
57
63
|
(zitadel-flow-step)="onFlowStep($event)"
|
|
58
64
|
(zitadel-flow-input)="onFlowInput($event)"
|
|
59
65
|
(zitadel-flow-complete)="onFlowComplete($event)"
|
|
@@ -76,39 +82,46 @@ t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport
|
|
|
76
82
|
type: e
|
|
77
83
|
}], lang: [{
|
|
78
84
|
type: e
|
|
85
|
+
}], variant: [{
|
|
86
|
+
type: e
|
|
87
|
+
}], theme: [{
|
|
88
|
+
type: e
|
|
89
|
+
}], suppressHeader: [{
|
|
90
|
+
type: e
|
|
79
91
|
}], flowStep: [{
|
|
80
|
-
type:
|
|
92
|
+
type: p
|
|
81
93
|
}], flowInput: [{
|
|
82
|
-
type:
|
|
94
|
+
type: p
|
|
83
95
|
}], flowComplete: [{
|
|
84
|
-
type:
|
|
96
|
+
type: p
|
|
85
97
|
}], flowError: [{
|
|
86
|
-
type:
|
|
98
|
+
type: p
|
|
87
99
|
}], elementRef: [{
|
|
88
100
|
type: g,
|
|
89
101
|
args: ["el"]
|
|
90
102
|
}] } });
|
|
91
|
-
const
|
|
103
|
+
const l = class l {
|
|
92
104
|
constructor() {
|
|
93
|
-
this.signout = new
|
|
105
|
+
this.signout = new o();
|
|
94
106
|
}
|
|
95
107
|
/** The underlying `<zitadel-logout>` custom element, or `null` before view init. */
|
|
96
108
|
get element() {
|
|
97
109
|
return this.elementRef?.nativeElement ?? null;
|
|
98
110
|
}
|
|
99
|
-
onSignout(
|
|
100
|
-
this.signout.emit(
|
|
111
|
+
onSignout(r) {
|
|
112
|
+
this.signout.emit(r.detail);
|
|
101
113
|
}
|
|
102
114
|
};
|
|
103
|
-
|
|
115
|
+
l.ɵfac = t.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: t, type: l, deps: [], target: t.ɵɵFactoryTarget.Component }), l.ɵcmp = t.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: l, isStandalone: !0, selector: "zitadel-auth-logout", inputs: { project: "project", projectId: "projectId", proxyPath: "proxyPath", postSignOutUrl: "postSignOutUrl", theme: "theme" }, outputs: { signout: "signout" }, viewQueries: [{ propertyName: "elementRef", first: !0, predicate: ["el"], descendants: !0 }], ngImport: t, template: `<zitadel-logout
|
|
104
116
|
#el
|
|
105
117
|
[project]="project"
|
|
106
118
|
[projectId]="projectId"
|
|
107
119
|
[proxyPath]="proxyPath"
|
|
108
120
|
[attr.post-sign-out-url]="postSignOutUrl"
|
|
121
|
+
[attr.theme]="theme ?? null"
|
|
109
122
|
(zitadel-signout)="onSignout($event)"
|
|
110
123
|
></zitadel-logout>`, isInline: !0 });
|
|
111
|
-
let u =
|
|
124
|
+
let u = l;
|
|
112
125
|
t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: t, type: u, decorators: [{
|
|
113
126
|
type: m,
|
|
114
127
|
args: [{
|
|
@@ -121,6 +134,7 @@ t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport
|
|
|
121
134
|
[projectId]="projectId"
|
|
122
135
|
[proxyPath]="proxyPath"
|
|
123
136
|
[attr.post-sign-out-url]="postSignOutUrl"
|
|
137
|
+
[attr.theme]="theme ?? null"
|
|
124
138
|
(zitadel-signout)="onSignout($event)"
|
|
125
139
|
></zitadel-logout>`
|
|
126
140
|
}]
|
|
@@ -132,25 +146,27 @@ t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport
|
|
|
132
146
|
type: e
|
|
133
147
|
}], postSignOutUrl: [{
|
|
134
148
|
type: e
|
|
149
|
+
}], theme: [{
|
|
150
|
+
type: e
|
|
135
151
|
}], signout: [{
|
|
136
|
-
type:
|
|
152
|
+
type: p
|
|
137
153
|
}], elementRef: [{
|
|
138
154
|
type: g,
|
|
139
155
|
args: ["el"]
|
|
140
156
|
}] } });
|
|
141
|
-
const
|
|
157
|
+
const n = class n {
|
|
142
158
|
constructor() {
|
|
143
|
-
this.signout = new
|
|
159
|
+
this.signout = new o();
|
|
144
160
|
}
|
|
145
161
|
/** The underlying `<zitadel-session>` custom element, or `null` before view init. */
|
|
146
162
|
get element() {
|
|
147
163
|
return this.elementRef?.nativeElement ?? null;
|
|
148
164
|
}
|
|
149
|
-
onSignout(
|
|
150
|
-
this.signout.emit(
|
|
165
|
+
onSignout(r) {
|
|
166
|
+
this.signout.emit(r.detail);
|
|
151
167
|
}
|
|
152
168
|
};
|
|
153
|
-
|
|
169
|
+
n.ɵfac = t.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: t, type: n, deps: [], target: t.ɵɵFactoryTarget.Component }), n.ɵcmp = t.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: n, isStandalone: !0, selector: "zitadel-auth-session", inputs: { project: "project", projectId: "projectId", proxyPath: "proxyPath", postSignOutUrl: "postSignOutUrl", heading: "heading", logoutLabel: "logoutLabel", variant: "variant", theme: "theme", suppressHeader: "suppressHeader" }, outputs: { signout: "signout" }, viewQueries: [{ propertyName: "elementRef", first: !0, predicate: ["el"], descendants: !0 }], ngImport: t, template: `<zitadel-session
|
|
154
170
|
#el
|
|
155
171
|
[project]="project"
|
|
156
172
|
[projectId]="projectId"
|
|
@@ -158,9 +174,12 @@ a.ɵfac = t.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngIm
|
|
|
158
174
|
[attr.post-sign-out-url]="postSignOutUrl"
|
|
159
175
|
[attr.heading]="heading"
|
|
160
176
|
[attr.logout-label]="logoutLabel"
|
|
177
|
+
[attr.variant]="variant ?? null"
|
|
178
|
+
[attr.theme]="theme ?? null"
|
|
179
|
+
[suppressHeader]="suppressHeader"
|
|
161
180
|
(zitadel-signout)="onSignout($event)"
|
|
162
181
|
></zitadel-session>`, isInline: !0 });
|
|
163
|
-
let c =
|
|
182
|
+
let c = n;
|
|
164
183
|
t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: t, type: c, decorators: [{
|
|
165
184
|
type: m,
|
|
166
185
|
args: [{
|
|
@@ -175,6 +194,9 @@ t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport
|
|
|
175
194
|
[attr.post-sign-out-url]="postSignOutUrl"
|
|
176
195
|
[attr.heading]="heading"
|
|
177
196
|
[attr.logout-label]="logoutLabel"
|
|
197
|
+
[attr.variant]="variant ?? null"
|
|
198
|
+
[attr.theme]="theme ?? null"
|
|
199
|
+
[suppressHeader]="suppressHeader"
|
|
178
200
|
(zitadel-signout)="onSignout($event)"
|
|
179
201
|
></zitadel-session>`
|
|
180
202
|
}]
|
|
@@ -190,13 +212,19 @@ t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport
|
|
|
190
212
|
type: e
|
|
191
213
|
}], logoutLabel: [{
|
|
192
214
|
type: e
|
|
215
|
+
}], variant: [{
|
|
216
|
+
type: e
|
|
217
|
+
}], theme: [{
|
|
218
|
+
type: e
|
|
219
|
+
}], suppressHeader: [{
|
|
220
|
+
type: e
|
|
193
221
|
}], signout: [{
|
|
194
|
-
type:
|
|
222
|
+
type: p
|
|
195
223
|
}], elementRef: [{
|
|
196
224
|
type: g,
|
|
197
225
|
args: ["el"]
|
|
198
226
|
}] } });
|
|
199
|
-
function
|
|
227
|
+
function y(s) {
|
|
200
228
|
return Object.freeze({
|
|
201
229
|
proxyPath: s.proxyPath ?? "/__nextgen",
|
|
202
230
|
projectId: s.projectId,
|
|
@@ -207,5 +235,6 @@ export {
|
|
|
207
235
|
i as ZitadelLoginComponent,
|
|
208
236
|
u as ZitadelLogoutComponent,
|
|
209
237
|
c as ZitadelSessionComponent,
|
|
210
|
-
|
|
238
|
+
I as businessLocales,
|
|
239
|
+
y as configureZitadel
|
|
211
240
|
};
|
|
@@ -32,8 +32,11 @@ export declare class ZitadelLoginComponent {
|
|
|
32
32
|
purpose: CreateFlowBodyPurpose;
|
|
33
33
|
flowName?: string;
|
|
34
34
|
postSignInUrl?: string;
|
|
35
|
-
locales?: Record<string, Record<string, string
|
|
35
|
+
locales?: Record<string, Partial<Record<string, string>>>;
|
|
36
36
|
lang?: string;
|
|
37
|
+
variant?: "widget" | "page";
|
|
38
|
+
theme?: "light" | "dark" | "auto";
|
|
39
|
+
suppressHeader?: boolean;
|
|
37
40
|
flowStep: EventEmitter<ZitadelFlowStepDetail>;
|
|
38
41
|
flowInput: EventEmitter<ZitadelFlowInputDetail>;
|
|
39
42
|
flowComplete: EventEmitter<ZitadelFlowCompleteDetail>;
|
|
@@ -46,6 +49,6 @@ export declare class ZitadelLoginComponent {
|
|
|
46
49
|
onFlowComplete(event: Event): void;
|
|
47
50
|
onFlowError(event: Event): void;
|
|
48
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZitadelLoginComponent, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZitadelLoginComponent, "zitadel-auth-login", never, { "project": { "alias": "project"; "required": false; }; "projectId": { "alias": "projectId"; "required": false; }; "proxyPath": { "alias": "proxyPath"; "required": false; }; "purpose": { "alias": "purpose"; "required": false; }; "flowName": { "alias": "flowName"; "required": false; }; "postSignInUrl": { "alias": "postSignInUrl"; "required": false; }; "locales": { "alias": "locales"; "required": false; }; "lang": { "alias": "lang"; "required": false; }; }, { "flowStep": "flowStep"; "flowInput": "flowInput"; "flowComplete": "flowComplete"; "flowError": "flowError"; }, never, never, true, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZitadelLoginComponent, "zitadel-auth-login", never, { "project": { "alias": "project"; "required": false; }; "projectId": { "alias": "projectId"; "required": false; }; "proxyPath": { "alias": "proxyPath"; "required": false; }; "purpose": { "alias": "purpose"; "required": false; }; "flowName": { "alias": "flowName"; "required": false; }; "postSignInUrl": { "alias": "postSignInUrl"; "required": false; }; "locales": { "alias": "locales"; "required": false; }; "lang": { "alias": "lang"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "suppressHeader": { "alias": "suppressHeader"; "required": false; }; }, { "flowStep": "flowStep"; "flowInput": "flowInput"; "flowComplete": "flowComplete"; "flowError": "flowError"; }, never, never, true, never>;
|
|
50
53
|
}
|
|
51
54
|
//# sourceMappingURL=zitadel-login.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zitadel-login.component.d.ts","sourceRoot":"","sources":["../../../src/lib/zitadel-login.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAGL,YAAY,EAIb,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,qBAAqB,CAAC;;AAE7B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,
|
|
1
|
+
{"version":3,"file":"zitadel-login.component.d.ts","sourceRoot":"","sources":["../../../src/lib/zitadel-login.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,IAAI,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,KAAK,EACV,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAGL,YAAY,EAIb,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAG/C,OAAO,qBAAqB,CAAC;;AAE7B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,qBAuBa,qBAAqB;IACvB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,qBAAqB,CAAW;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IAC1D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC,cAAc,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,sCAA6C;IACrD,SAAS,uCAA8C;IACvD,YAAY,0CAAiD;IAC7D,SAAS,uCAA8C;IAEhD,OAAO,CAAC,UAAU,CAAC,CAAkC;IAEtE,mFAAmF;IACnF,IAAI,OAAO,IAAI,mBAAmB,GAAG,IAAI,CAExC;IAED,UAAU,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAI9B,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAI/B,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;IAIlC,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;yCApCpB,qBAAqB;2CAArB,qBAAqB;CAuCjC"}
|
|
@@ -21,12 +21,13 @@ export declare class ZitadelLogoutComponent {
|
|
|
21
21
|
projectId?: string;
|
|
22
22
|
proxyPath?: string;
|
|
23
23
|
postSignOutUrl?: string;
|
|
24
|
+
theme?: "light" | "dark" | "auto";
|
|
24
25
|
signout: EventEmitter<ZitadelSignoutDetail>;
|
|
25
26
|
private elementRef?;
|
|
26
27
|
/** The underlying `<zitadel-logout>` custom element, or `null` before view init. */
|
|
27
28
|
get element(): ZitadelLogoutElement | null;
|
|
28
29
|
onSignout(event: Event): void;
|
|
29
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZitadelLogoutComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZitadelLogoutComponent, "zitadel-auth-logout", never, { "project": { "alias": "project"; "required": false; }; "projectId": { "alias": "projectId"; "required": false; }; "proxyPath": { "alias": "proxyPath"; "required": false; }; "postSignOutUrl": { "alias": "postSignOutUrl"; "required": false; }; }, { "signout": "signout"; }, never, never, true, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZitadelLogoutComponent, "zitadel-auth-logout", never, { "project": { "alias": "project"; "required": false; }; "projectId": { "alias": "projectId"; "required": false; }; "proxyPath": { "alias": "proxyPath"; "required": false; }; "postSignOutUrl": { "alias": "postSignOutUrl"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; }, { "signout": "signout"; }, never, never, true, never>;
|
|
31
32
|
}
|
|
32
33
|
//# sourceMappingURL=zitadel-logout.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zitadel-logout.component.d.ts","sourceRoot":"","sources":["../../../src/lib/zitadel-logout.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAGL,YAAY,EAIb,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,qBAAqB,CAAC;;AAE7B;;;;;;;;;;;GAWG;AACH,
|
|
1
|
+
{"version":3,"file":"zitadel-logout.component.d.ts","sourceRoot":"","sources":["../../../src/lib/zitadel-logout.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAGL,YAAY,EAIb,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,qBAAqB,CAAC;;AAE7B;;;;;;;;;;;GAWG;AACH,qBAca,sBAAsB;IACxB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,OAAO,qCAA4C;IAE5C,OAAO,CAAC,UAAU,CAAC,CAAmC;IAEvE,oFAAoF;IACpF,IAAI,OAAO,IAAI,oBAAoB,GAAG,IAAI,CAEzC;IAED,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;yCAflB,sBAAsB;2CAAtB,sBAAsB;CAkBlC"}
|
|
@@ -23,12 +23,15 @@ export declare class ZitadelSessionComponent {
|
|
|
23
23
|
postSignOutUrl?: string;
|
|
24
24
|
heading?: string;
|
|
25
25
|
logoutLabel?: string;
|
|
26
|
+
variant?: "widget" | "page";
|
|
27
|
+
theme?: "light" | "dark" | "auto";
|
|
28
|
+
suppressHeader?: boolean;
|
|
26
29
|
signout: EventEmitter<ZitadelSignoutDetail>;
|
|
27
30
|
private elementRef?;
|
|
28
31
|
/** The underlying `<zitadel-session>` custom element, or `null` before view init. */
|
|
29
32
|
get element(): ZitadelSessionElement | null;
|
|
30
33
|
onSignout(event: Event): void;
|
|
31
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZitadelSessionComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ZitadelSessionComponent, "zitadel-auth-session", never, { "project": { "alias": "project"; "required": false; }; "projectId": { "alias": "projectId"; "required": false; }; "proxyPath": { "alias": "proxyPath"; "required": false; }; "postSignOutUrl": { "alias": "postSignOutUrl"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "logoutLabel": { "alias": "logoutLabel"; "required": false; }; }, { "signout": "signout"; }, never, never, true, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZitadelSessionComponent, "zitadel-auth-session", never, { "project": { "alias": "project"; "required": false; }; "projectId": { "alias": "projectId"; "required": false; }; "proxyPath": { "alias": "proxyPath"; "required": false; }; "postSignOutUrl": { "alias": "postSignOutUrl"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "logoutLabel": { "alias": "logoutLabel"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "suppressHeader": { "alias": "suppressHeader"; "required": false; }; }, { "signout": "signout"; }, never, never, true, never>;
|
|
33
36
|
}
|
|
34
37
|
//# sourceMappingURL=zitadel-session.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zitadel-session.component.d.ts","sourceRoot":"","sources":["../../../src/lib/zitadel-session.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAGL,YAAY,EAIb,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,qBAAqB,CAAC;;AAE7B;;;;;;;;;;;GAWG;AACH,
|
|
1
|
+
{"version":3,"file":"zitadel-session.component.d.ts","sourceRoot":"","sources":["../../../src/lib/zitadel-session.component.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,IAAI,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAGL,YAAY,EAIb,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,qBAAqB,CAAC;;AAE7B;;;;;;;;;;;GAWG;AACH,qBAkBa,uBAAuB;IACzB,OAAO,CAAC,EAAE,cAAc,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC,cAAc,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,qCAA4C;IAE5C,OAAO,CAAC,UAAU,CAAC,CAAoC;IAExE,qFAAqF;IACrF,IAAI,OAAO,IAAI,qBAAqB,GAAG,IAAI,CAE1C;IAED,SAAS,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI;yCAnBlB,uBAAuB;2CAAvB,uBAAuB;CAsBnC"}
|
|
@@ -4,4 +4,5 @@ export { ZitadelSessionComponent } from "./lib/zitadel-session.component";
|
|
|
4
4
|
export { configureZitadel } from "./lib/config";
|
|
5
5
|
export type { ZitadelConfig, ZitadelProject } from "./lib/config";
|
|
6
6
|
export type * from "@zitadel/sdk-core/types";
|
|
7
|
+
export { businessLocales } from "@zitadel/components";
|
|
7
8
|
//# sourceMappingURL=public-api.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGlE,mBAAmB,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAGlE,mBAAmB,yBAAyB,CAAC;AAI7C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zitadel/sdk-angular",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.19",
|
|
4
4
|
"description": "Angular components for the Zitadel auth UI (client-side SPA).",
|
|
5
5
|
"homepage": "https://github.com/zitadel/nextgen/tree/main/packages/sdk-angular#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"tslib": "^2.6.0",
|
|
32
|
-
"@zitadel/api": "0.1.0-alpha.
|
|
33
|
-
"@zitadel/sdk-core": "0.1.0-alpha.
|
|
34
|
-
"@zitadel/components": "0.1.0-alpha.
|
|
32
|
+
"@zitadel/api": "0.1.0-alpha.19",
|
|
33
|
+
"@zitadel/sdk-core": "0.1.0-alpha.19",
|
|
34
|
+
"@zitadel/components": "0.1.0-alpha.19"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@angular/common": ">=17",
|