@zitadel/sdk-angular 0.1.0-alpha.16 → 0.1.0-alpha.18
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 -4
- package/dist/index.js +66 -45
- package/dist/types/lib/zitadel-login.component.d.ts +4 -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 +3 -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
|
@@ -35,7 +35,11 @@ export class LoginPage {
|
|
|
35
35
|
|
|
36
36
|
## Proxying to the backend (deployment)
|
|
37
37
|
|
|
38
|
-
The widgets call `${proxyPath}/…` same-origin (default `/__nextgen`).
|
|
39
|
-
|
|
40
|
-
`
|
|
41
|
-
|
|
38
|
+
The widgets call `${proxyPath}/…` same-origin (default `/__nextgen`). In production
|
|
39
|
+
that path comes from your hosting platform — a `vercel.json` rewrite, a
|
|
40
|
+
`netlify.toml` redirect, or a minimal Cloudflare worker — per
|
|
41
|
+
[ADR 036](https://github.com/zitadel/nextgen/blob/main/docs/adrs/036-api-credential-planes.md)
|
|
42
|
+
(scaffolding tracked in [zitadel/nextgen#560](https://github.com/zitadel/nextgen/issues/560);
|
|
43
|
+
**until that work lands, production SPA deployment is not yet supported**).
|
|
44
|
+
Locally you can point `proxyPath` straight at the backend (cross-origin), e.g.
|
|
45
|
+
`proxyPath: "http://localhost:4000"`.
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { EventEmitter as r, ViewChild as g, Output as l, Input as
|
|
3
|
-
import "@zitadel/components";
|
|
4
|
-
const
|
|
1
|
+
import * as e from "@angular/core";
|
|
2
|
+
import { EventEmitter as r, ViewChild as g, Output as l, Input as t, CUSTOM_ELEMENTS_SCHEMA as m, Component as d } from "@angular/core";
|
|
3
|
+
import { businessLocales as I } from "@zitadel/components";
|
|
4
|
+
const n = class n {
|
|
5
5
|
constructor() {
|
|
6
6
|
this.purpose = "login", this.flowStep = new r(), this.flowInput = new r(), this.flowComplete = new r(), this.flowError = new r();
|
|
7
7
|
}
|
|
@@ -22,7 +22,7 @@ const p = class p {
|
|
|
22
22
|
this.flowError.emit(o.detail);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
n.ɵfac = e.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: e, type: n, deps: [], target: e.ɵɵFactoryTarget.Component }), n.ɵcmp = e.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: n, 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" }, outputs: { flowStep: "flowStep", flowInput: "flowInput", flowComplete: "flowComplete", flowError: "flowError" }, viewQueries: [{ propertyName: "elementRef", first: !0, predicate: ["el"], descendants: !0 }], ngImport: e, template: `<zitadel-login
|
|
26
26
|
#el
|
|
27
27
|
[project]="project"
|
|
28
28
|
[projectId]="projectId"
|
|
@@ -32,18 +32,20 @@ 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"
|
|
35
37
|
(zitadel-flow-step)="onFlowStep($event)"
|
|
36
38
|
(zitadel-flow-input)="onFlowInput($event)"
|
|
37
39
|
(zitadel-flow-complete)="onFlowComplete($event)"
|
|
38
40
|
(zitadel-flow-error)="onFlowError($event)"
|
|
39
41
|
></zitadel-login>`, isInline: !0 });
|
|
40
|
-
let
|
|
41
|
-
|
|
42
|
-
type:
|
|
42
|
+
let s = n;
|
|
43
|
+
e.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: e, type: s, decorators: [{
|
|
44
|
+
type: d,
|
|
43
45
|
args: [{
|
|
44
46
|
selector: "zitadel-auth-login",
|
|
45
47
|
standalone: !0,
|
|
46
|
-
schemas: [
|
|
48
|
+
schemas: [m],
|
|
47
49
|
template: `<zitadel-login
|
|
48
50
|
#el
|
|
49
51
|
[project]="project"
|
|
@@ -54,6 +56,8 @@ t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport
|
|
|
54
56
|
[attr.purpose]="purpose"
|
|
55
57
|
[attr.flow-name]="flowName"
|
|
56
58
|
[attr.post-sign-in-url]="postSignInUrl"
|
|
59
|
+
[attr.variant]="variant ?? null"
|
|
60
|
+
[attr.theme]="theme ?? null"
|
|
57
61
|
(zitadel-flow-step)="onFlowStep($event)"
|
|
58
62
|
(zitadel-flow-input)="onFlowInput($event)"
|
|
59
63
|
(zitadel-flow-complete)="onFlowComplete($event)"
|
|
@@ -61,21 +65,25 @@ t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport
|
|
|
61
65
|
></zitadel-login>`
|
|
62
66
|
}]
|
|
63
67
|
}], propDecorators: { project: [{
|
|
64
|
-
type:
|
|
68
|
+
type: t
|
|
65
69
|
}], projectId: [{
|
|
66
|
-
type:
|
|
70
|
+
type: t
|
|
67
71
|
}], proxyPath: [{
|
|
68
|
-
type:
|
|
72
|
+
type: t
|
|
69
73
|
}], purpose: [{
|
|
70
|
-
type:
|
|
74
|
+
type: t
|
|
71
75
|
}], flowName: [{
|
|
72
|
-
type:
|
|
76
|
+
type: t
|
|
73
77
|
}], postSignInUrl: [{
|
|
74
|
-
type:
|
|
78
|
+
type: t
|
|
75
79
|
}], locales: [{
|
|
76
|
-
type:
|
|
80
|
+
type: t
|
|
77
81
|
}], lang: [{
|
|
78
|
-
type:
|
|
82
|
+
type: t
|
|
83
|
+
}], variant: [{
|
|
84
|
+
type: t
|
|
85
|
+
}], theme: [{
|
|
86
|
+
type: t
|
|
79
87
|
}], flowStep: [{
|
|
80
88
|
type: l
|
|
81
89
|
}], flowInput: [{
|
|
@@ -88,7 +96,7 @@ t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport
|
|
|
88
96
|
type: g,
|
|
89
97
|
args: ["el"]
|
|
90
98
|
}] } });
|
|
91
|
-
const
|
|
99
|
+
const a = class a {
|
|
92
100
|
constructor() {
|
|
93
101
|
this.signout = new r();
|
|
94
102
|
}
|
|
@@ -100,45 +108,49 @@ const n = class n {
|
|
|
100
108
|
this.signout.emit(o.detail);
|
|
101
109
|
}
|
|
102
110
|
};
|
|
103
|
-
|
|
111
|
+
a.ɵfac = e.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: e, type: a, deps: [], target: e.ɵɵFactoryTarget.Component }), a.ɵcmp = e.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: a, 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: e, template: `<zitadel-logout
|
|
104
112
|
#el
|
|
105
113
|
[project]="project"
|
|
106
114
|
[projectId]="projectId"
|
|
107
115
|
[proxyPath]="proxyPath"
|
|
108
116
|
[attr.post-sign-out-url]="postSignOutUrl"
|
|
117
|
+
[attr.theme]="theme ?? null"
|
|
109
118
|
(zitadel-signout)="onSignout($event)"
|
|
110
119
|
></zitadel-logout>`, isInline: !0 });
|
|
111
|
-
let u =
|
|
112
|
-
|
|
113
|
-
type:
|
|
120
|
+
let u = a;
|
|
121
|
+
e.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: e, type: u, decorators: [{
|
|
122
|
+
type: d,
|
|
114
123
|
args: [{
|
|
115
124
|
selector: "zitadel-auth-logout",
|
|
116
125
|
standalone: !0,
|
|
117
|
-
schemas: [
|
|
126
|
+
schemas: [m],
|
|
118
127
|
template: `<zitadel-logout
|
|
119
128
|
#el
|
|
120
129
|
[project]="project"
|
|
121
130
|
[projectId]="projectId"
|
|
122
131
|
[proxyPath]="proxyPath"
|
|
123
132
|
[attr.post-sign-out-url]="postSignOutUrl"
|
|
133
|
+
[attr.theme]="theme ?? null"
|
|
124
134
|
(zitadel-signout)="onSignout($event)"
|
|
125
135
|
></zitadel-logout>`
|
|
126
136
|
}]
|
|
127
137
|
}], propDecorators: { project: [{
|
|
128
|
-
type:
|
|
138
|
+
type: t
|
|
129
139
|
}], projectId: [{
|
|
130
|
-
type:
|
|
140
|
+
type: t
|
|
131
141
|
}], proxyPath: [{
|
|
132
|
-
type:
|
|
142
|
+
type: t
|
|
133
143
|
}], postSignOutUrl: [{
|
|
134
|
-
type:
|
|
144
|
+
type: t
|
|
145
|
+
}], theme: [{
|
|
146
|
+
type: t
|
|
135
147
|
}], signout: [{
|
|
136
148
|
type: l
|
|
137
149
|
}], elementRef: [{
|
|
138
150
|
type: g,
|
|
139
151
|
args: ["el"]
|
|
140
152
|
}] } });
|
|
141
|
-
const
|
|
153
|
+
const p = class p {
|
|
142
154
|
constructor() {
|
|
143
155
|
this.signout = new r();
|
|
144
156
|
}
|
|
@@ -150,7 +162,7 @@ const a = class a {
|
|
|
150
162
|
this.signout.emit(o.detail);
|
|
151
163
|
}
|
|
152
164
|
};
|
|
153
|
-
|
|
165
|
+
p.ɵfac = e.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: e, type: p, deps: [], target: e.ɵɵFactoryTarget.Component }), p.ɵcmp = e.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: p, isStandalone: !0, selector: "zitadel-auth-session", inputs: { project: "project", projectId: "projectId", proxyPath: "proxyPath", postSignOutUrl: "postSignOutUrl", heading: "heading", logoutLabel: "logoutLabel", variant: "variant", theme: "theme" }, outputs: { signout: "signout" }, viewQueries: [{ propertyName: "elementRef", first: !0, predicate: ["el"], descendants: !0 }], ngImport: e, template: `<zitadel-session
|
|
154
166
|
#el
|
|
155
167
|
[project]="project"
|
|
156
168
|
[projectId]="projectId"
|
|
@@ -158,15 +170,17 @@ a.ɵfac = t.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngIm
|
|
|
158
170
|
[attr.post-sign-out-url]="postSignOutUrl"
|
|
159
171
|
[attr.heading]="heading"
|
|
160
172
|
[attr.logout-label]="logoutLabel"
|
|
173
|
+
[attr.variant]="variant ?? null"
|
|
174
|
+
[attr.theme]="theme ?? null"
|
|
161
175
|
(zitadel-signout)="onSignout($event)"
|
|
162
176
|
></zitadel-session>`, isInline: !0 });
|
|
163
|
-
let c =
|
|
164
|
-
|
|
165
|
-
type:
|
|
177
|
+
let c = p;
|
|
178
|
+
e.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: e, type: c, decorators: [{
|
|
179
|
+
type: d,
|
|
166
180
|
args: [{
|
|
167
181
|
selector: "zitadel-auth-session",
|
|
168
182
|
standalone: !0,
|
|
169
|
-
schemas: [
|
|
183
|
+
schemas: [m],
|
|
170
184
|
template: `<zitadel-session
|
|
171
185
|
#el
|
|
172
186
|
[project]="project"
|
|
@@ -175,37 +189,44 @@ t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport
|
|
|
175
189
|
[attr.post-sign-out-url]="postSignOutUrl"
|
|
176
190
|
[attr.heading]="heading"
|
|
177
191
|
[attr.logout-label]="logoutLabel"
|
|
192
|
+
[attr.variant]="variant ?? null"
|
|
193
|
+
[attr.theme]="theme ?? null"
|
|
178
194
|
(zitadel-signout)="onSignout($event)"
|
|
179
195
|
></zitadel-session>`
|
|
180
196
|
}]
|
|
181
197
|
}], propDecorators: { project: [{
|
|
182
|
-
type:
|
|
198
|
+
type: t
|
|
183
199
|
}], projectId: [{
|
|
184
|
-
type:
|
|
200
|
+
type: t
|
|
185
201
|
}], proxyPath: [{
|
|
186
|
-
type:
|
|
202
|
+
type: t
|
|
187
203
|
}], postSignOutUrl: [{
|
|
188
|
-
type:
|
|
204
|
+
type: t
|
|
189
205
|
}], heading: [{
|
|
190
|
-
type:
|
|
206
|
+
type: t
|
|
191
207
|
}], logoutLabel: [{
|
|
192
|
-
type:
|
|
208
|
+
type: t
|
|
209
|
+
}], variant: [{
|
|
210
|
+
type: t
|
|
211
|
+
}], theme: [{
|
|
212
|
+
type: t
|
|
193
213
|
}], signout: [{
|
|
194
214
|
type: l
|
|
195
215
|
}], elementRef: [{
|
|
196
216
|
type: g,
|
|
197
217
|
args: ["el"]
|
|
198
218
|
}] } });
|
|
199
|
-
function
|
|
219
|
+
function y(i) {
|
|
200
220
|
return Object.freeze({
|
|
201
|
-
proxyPath:
|
|
202
|
-
projectId:
|
|
203
|
-
url:
|
|
221
|
+
proxyPath: i.proxyPath ?? "/__nextgen",
|
|
222
|
+
projectId: i.projectId,
|
|
223
|
+
url: i.url
|
|
204
224
|
});
|
|
205
225
|
}
|
|
206
226
|
export {
|
|
207
|
-
|
|
227
|
+
s as ZitadelLoginComponent,
|
|
208
228
|
u as ZitadelLogoutComponent,
|
|
209
229
|
c as ZitadelSessionComponent,
|
|
210
|
-
|
|
230
|
+
I as businessLocales,
|
|
231
|
+
y as configureZitadel
|
|
211
232
|
};
|
|
@@ -32,8 +32,10 @@ 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";
|
|
37
39
|
flowStep: EventEmitter<ZitadelFlowStepDetail>;
|
|
38
40
|
flowInput: EventEmitter<ZitadelFlowInputDetail>;
|
|
39
41
|
flowComplete: EventEmitter<ZitadelFlowCompleteDetail>;
|
|
@@ -46,6 +48,6 @@ export declare class ZitadelLoginComponent {
|
|
|
46
48
|
onFlowComplete(event: Event): void;
|
|
47
49
|
onFlowError(event: Event): void;
|
|
48
50
|
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>;
|
|
51
|
+
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; }; }, { "flowStep": "flowStep"; "flowInput": "flowInput"; "flowComplete": "flowComplete"; "flowError": "flowError"; }, never, never, true, never>;
|
|
50
52
|
}
|
|
51
53
|
//# 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,qBAsBa,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;IACjC,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;yCAnCpB,qBAAqB;2CAArB,qBAAqB;CAsCjC"}
|
|
@@ -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,14 @@ 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";
|
|
26
28
|
signout: EventEmitter<ZitadelSignoutDetail>;
|
|
27
29
|
private elementRef?;
|
|
28
30
|
/** The underlying `<zitadel-session>` custom element, or `null` before view init. */
|
|
29
31
|
get element(): ZitadelSessionElement | null;
|
|
30
32
|
onSignout(event: Event): void;
|
|
31
33
|
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>;
|
|
34
|
+
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; }; }, { "signout": "signout"; }, never, never, true, never>;
|
|
33
35
|
}
|
|
34
36
|
//# 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,qBAiBa,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;IACjC,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;yCAlBlB,uBAAuB;2CAAvB,uBAAuB;CAqBnC"}
|
|
@@ -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.18",
|
|
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/
|
|
33
|
-
"@zitadel/
|
|
34
|
-
"@zitadel/
|
|
32
|
+
"@zitadel/api": "0.1.0-alpha.18",
|
|
33
|
+
"@zitadel/sdk-core": "0.1.0-alpha.18",
|
|
34
|
+
"@zitadel/components": "0.1.0-alpha.18"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@angular/common": ">=17",
|