@zitadel/sdk-angular 0.1.0-alpha.13 → 0.1.0-alpha.15
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.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import * as t from "@angular/core";
|
|
2
|
-
import { EventEmitter as
|
|
2
|
+
import { EventEmitter as r, ViewChild as g, Output as p, Input as e, CUSTOM_ELEMENTS_SCHEMA as d, Component as m } from "@angular/core";
|
|
3
3
|
import "@zitadel/components";
|
|
4
|
-
const
|
|
4
|
+
const n = class n {
|
|
5
5
|
constructor() {
|
|
6
|
-
this.purpose = "login", this.flowStep = new
|
|
6
|
+
this.purpose = "login", this.flowStep = new r(), this.flowInput = new r(), this.flowComplete = new r(), this.flowError = new r();
|
|
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(o) {
|
|
13
|
+
this.flowStep.emit(o.detail);
|
|
14
14
|
}
|
|
15
|
-
onFlowInput(
|
|
16
|
-
this.flowInput.emit(
|
|
15
|
+
onFlowInput(o) {
|
|
16
|
+
this.flowInput.emit(o.detail);
|
|
17
17
|
}
|
|
18
|
-
onFlowComplete(
|
|
19
|
-
this.flowComplete.emit(
|
|
18
|
+
onFlowComplete(o) {
|
|
19
|
+
this.flowComplete.emit(o.detail);
|
|
20
20
|
}
|
|
21
|
-
onFlowError(
|
|
22
|
-
this.flowError.emit(
|
|
21
|
+
onFlowError(o) {
|
|
22
|
+
this.flowError.emit(o.detail);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
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-login", inputs: { project: "project", projectId: "projectId", proxyPath: "proxyPath", purpose: "purpose", postSignInUrl: "postSignInUrl" }, 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"
|
|
@@ -34,13 +34,13 @@ r.ɵfac = t.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngIm
|
|
|
34
34
|
(zitadel-flow-complete)="onFlowComplete($event)"
|
|
35
35
|
(zitadel-flow-error)="onFlowError($event)"
|
|
36
36
|
></zitadel-login>`, isInline: !0 });
|
|
37
|
-
let
|
|
38
|
-
t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
39
|
-
type:
|
|
37
|
+
let a = n;
|
|
38
|
+
t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: t, type: a, decorators: [{
|
|
39
|
+
type: m,
|
|
40
40
|
args: [{
|
|
41
41
|
selector: "zitadel-auth-login",
|
|
42
42
|
standalone: !0,
|
|
43
|
-
schemas: [
|
|
43
|
+
schemas: [d],
|
|
44
44
|
template: `<zitadel-login
|
|
45
45
|
#el
|
|
46
46
|
[project]="project"
|
|
@@ -55,40 +55,40 @@ t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport
|
|
|
55
55
|
></zitadel-login>`
|
|
56
56
|
}]
|
|
57
57
|
}], propDecorators: { project: [{
|
|
58
|
-
type:
|
|
58
|
+
type: e
|
|
59
59
|
}], projectId: [{
|
|
60
|
-
type:
|
|
60
|
+
type: e
|
|
61
61
|
}], proxyPath: [{
|
|
62
|
-
type:
|
|
62
|
+
type: e
|
|
63
63
|
}], purpose: [{
|
|
64
|
-
type:
|
|
64
|
+
type: e
|
|
65
65
|
}], postSignInUrl: [{
|
|
66
|
-
type:
|
|
66
|
+
type: e
|
|
67
67
|
}], flowStep: [{
|
|
68
|
-
type:
|
|
68
|
+
type: p
|
|
69
69
|
}], flowInput: [{
|
|
70
|
-
type:
|
|
70
|
+
type: p
|
|
71
71
|
}], flowComplete: [{
|
|
72
|
-
type:
|
|
72
|
+
type: p
|
|
73
73
|
}], flowError: [{
|
|
74
|
-
type:
|
|
74
|
+
type: p
|
|
75
75
|
}], elementRef: [{
|
|
76
|
-
type:
|
|
76
|
+
type: g,
|
|
77
77
|
args: ["el"]
|
|
78
78
|
}] } });
|
|
79
|
-
const
|
|
79
|
+
const l = class l {
|
|
80
80
|
constructor() {
|
|
81
|
-
this.signout = new
|
|
81
|
+
this.signout = new r();
|
|
82
82
|
}
|
|
83
83
|
/** The underlying `<zitadel-logout>` custom element, or `null` before view init. */
|
|
84
84
|
get element() {
|
|
85
85
|
return this.elementRef?.nativeElement ?? null;
|
|
86
86
|
}
|
|
87
|
-
onSignout(
|
|
88
|
-
this.signout.emit(
|
|
87
|
+
onSignout(o) {
|
|
88
|
+
this.signout.emit(o.detail);
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
|
|
91
|
+
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" }, outputs: { signout: "signout" }, viewQueries: [{ propertyName: "elementRef", first: !0, predicate: ["el"], descendants: !0 }], ngImport: t, template: `<zitadel-logout
|
|
92
92
|
#el
|
|
93
93
|
[project]="project"
|
|
94
94
|
[projectId]="projectId"
|
|
@@ -96,13 +96,13 @@ p.ɵfac = t.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngIm
|
|
|
96
96
|
[attr.post-sign-out-url]="postSignOutUrl"
|
|
97
97
|
(zitadel-signout)="onSignout($event)"
|
|
98
98
|
></zitadel-logout>`, isInline: !0 });
|
|
99
|
-
let
|
|
100
|
-
t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.
|
|
101
|
-
type:
|
|
99
|
+
let u = l;
|
|
100
|
+
t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: t, type: u, decorators: [{
|
|
101
|
+
type: m,
|
|
102
102
|
args: [{
|
|
103
103
|
selector: "zitadel-auth-logout",
|
|
104
104
|
standalone: !0,
|
|
105
|
-
schemas: [
|
|
105
|
+
schemas: [d],
|
|
106
106
|
template: `<zitadel-logout
|
|
107
107
|
#el
|
|
108
108
|
[project]="project"
|
|
@@ -113,28 +113,87 @@ t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport
|
|
|
113
113
|
></zitadel-logout>`
|
|
114
114
|
}]
|
|
115
115
|
}], propDecorators: { project: [{
|
|
116
|
-
type:
|
|
116
|
+
type: e
|
|
117
117
|
}], projectId: [{
|
|
118
|
-
type:
|
|
118
|
+
type: e
|
|
119
119
|
}], proxyPath: [{
|
|
120
|
-
type:
|
|
120
|
+
type: e
|
|
121
121
|
}], postSignOutUrl: [{
|
|
122
|
-
type:
|
|
122
|
+
type: e
|
|
123
123
|
}], signout: [{
|
|
124
|
-
type:
|
|
124
|
+
type: p
|
|
125
125
|
}], elementRef: [{
|
|
126
|
-
type:
|
|
126
|
+
type: g,
|
|
127
127
|
args: ["el"]
|
|
128
128
|
}] } });
|
|
129
|
-
|
|
129
|
+
const i = class i {
|
|
130
|
+
constructor() {
|
|
131
|
+
this.signout = new r();
|
|
132
|
+
}
|
|
133
|
+
/** The underlying `<zitadel-session>` custom element, or `null` before view init. */
|
|
134
|
+
get element() {
|
|
135
|
+
return this.elementRef?.nativeElement ?? null;
|
|
136
|
+
}
|
|
137
|
+
onSignout(o) {
|
|
138
|
+
this.signout.emit(o.detail);
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
i.ɵfac = t.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: t, type: i, deps: [], target: t.ɵɵFactoryTarget.Component }), i.ɵcmp = t.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.5", type: i, isStandalone: !0, selector: "zitadel-auth-session", inputs: { project: "project", projectId: "projectId", proxyPath: "proxyPath", postSignOutUrl: "postSignOutUrl", heading: "heading", logoutLabel: "logoutLabel" }, outputs: { signout: "signout" }, viewQueries: [{ propertyName: "elementRef", first: !0, predicate: ["el"], descendants: !0 }], ngImport: t, template: `<zitadel-session
|
|
142
|
+
#el
|
|
143
|
+
[project]="project"
|
|
144
|
+
[projectId]="projectId"
|
|
145
|
+
[proxyPath]="proxyPath"
|
|
146
|
+
[attr.post-sign-out-url]="postSignOutUrl"
|
|
147
|
+
[attr.heading]="heading"
|
|
148
|
+
[attr.logout-label]="logoutLabel"
|
|
149
|
+
(zitadel-signout)="onSignout($event)"
|
|
150
|
+
></zitadel-session>`, isInline: !0 });
|
|
151
|
+
let c = i;
|
|
152
|
+
t.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: t, type: c, decorators: [{
|
|
153
|
+
type: m,
|
|
154
|
+
args: [{
|
|
155
|
+
selector: "zitadel-auth-session",
|
|
156
|
+
standalone: !0,
|
|
157
|
+
schemas: [d],
|
|
158
|
+
template: `<zitadel-session
|
|
159
|
+
#el
|
|
160
|
+
[project]="project"
|
|
161
|
+
[projectId]="projectId"
|
|
162
|
+
[proxyPath]="proxyPath"
|
|
163
|
+
[attr.post-sign-out-url]="postSignOutUrl"
|
|
164
|
+
[attr.heading]="heading"
|
|
165
|
+
[attr.logout-label]="logoutLabel"
|
|
166
|
+
(zitadel-signout)="onSignout($event)"
|
|
167
|
+
></zitadel-session>`
|
|
168
|
+
}]
|
|
169
|
+
}], propDecorators: { project: [{
|
|
170
|
+
type: e
|
|
171
|
+
}], projectId: [{
|
|
172
|
+
type: e
|
|
173
|
+
}], proxyPath: [{
|
|
174
|
+
type: e
|
|
175
|
+
}], postSignOutUrl: [{
|
|
176
|
+
type: e
|
|
177
|
+
}], heading: [{
|
|
178
|
+
type: e
|
|
179
|
+
}], logoutLabel: [{
|
|
180
|
+
type: e
|
|
181
|
+
}], signout: [{
|
|
182
|
+
type: p
|
|
183
|
+
}], elementRef: [{
|
|
184
|
+
type: g,
|
|
185
|
+
args: ["el"]
|
|
186
|
+
}] } });
|
|
187
|
+
function w(s) {
|
|
130
188
|
return Object.freeze({
|
|
131
|
-
proxyPath:
|
|
132
|
-
projectId:
|
|
133
|
-
url:
|
|
189
|
+
proxyPath: s.proxyPath ?? "/__nextgen",
|
|
190
|
+
projectId: s.projectId,
|
|
191
|
+
url: s.url
|
|
134
192
|
});
|
|
135
193
|
}
|
|
136
194
|
export {
|
|
137
|
-
|
|
138
|
-
|
|
195
|
+
a as ZitadelLoginComponent,
|
|
196
|
+
u as ZitadelLogoutComponent,
|
|
197
|
+
c as ZitadelSessionComponent,
|
|
139
198
|
w as configureZitadel
|
|
140
199
|
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ZitadelSession as ZitadelSessionElement } from "@zitadel/components";
|
|
2
|
+
import type { ZitadelSignoutDetail } from "@zitadel/sdk-core/types";
|
|
3
|
+
import { EventEmitter } from "@angular/core";
|
|
4
|
+
import type { ZitadelProject } from "./config";
|
|
5
|
+
import "@zitadel/components";
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Angular wrapper for the `<zitadel-session>` Lit web component — the
|
|
9
|
+
* post-sign-in "signed in as" card. See {@link ZitadelLoginComponent} for the
|
|
10
|
+
* strategy. The widget's `zitadel-signout` event is re-emitted with its detail
|
|
11
|
+
* as the `signout` output. The underlying `<zitadel-session>` custom element is
|
|
12
|
+
* exposed via the {@link element} getter.
|
|
13
|
+
*
|
|
14
|
+
* ```html
|
|
15
|
+
* <zitadel-auth-session [project]="project" postSignOutUrl="/login"
|
|
16
|
+
* (signout)="onSignout($event)" />
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare class ZitadelSessionComponent {
|
|
20
|
+
project?: ZitadelProject;
|
|
21
|
+
projectId?: string;
|
|
22
|
+
proxyPath?: string;
|
|
23
|
+
postSignOutUrl?: string;
|
|
24
|
+
heading?: string;
|
|
25
|
+
logoutLabel?: string;
|
|
26
|
+
signout: EventEmitter<ZitadelSignoutDetail>;
|
|
27
|
+
private elementRef?;
|
|
28
|
+
/** The underlying `<zitadel-session>` custom element, or `null` before view init. */
|
|
29
|
+
get element(): ZitadelSessionElement | null;
|
|
30
|
+
onSignout(event: Event): void;
|
|
31
|
+
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>;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=zitadel-session.component.d.ts.map
|
|
@@ -0,0 +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,qBAea,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;IACpB,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;yCAhBlB,uBAAuB;2CAAvB,uBAAuB;CAmBnC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { ZitadelLoginComponent } from "./lib/zitadel-login.component";
|
|
2
2
|
export { ZitadelLogoutComponent } from "./lib/zitadel-logout.component";
|
|
3
|
+
export { ZitadelSessionComponent } from "./lib/zitadel-session.component";
|
|
3
4
|
export { configureZitadel } from "./lib/config";
|
|
4
5
|
export type { ZitadelConfig, ZitadelProject } from "./lib/config";
|
|
5
6
|
export type * from "@zitadel/sdk-core/types";
|
|
@@ -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,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"}
|
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.15",
|
|
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/components": "0.1.0-alpha.
|
|
34
|
-
"@zitadel/sdk-core": "0.1.0-alpha.
|
|
32
|
+
"@zitadel/api": "0.1.0-alpha.15",
|
|
33
|
+
"@zitadel/components": "0.1.0-alpha.15",
|
|
34
|
+
"@zitadel/sdk-core": "0.1.0-alpha.15"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@angular/common": ">=17",
|
|
@@ -40,12 +40,13 @@
|
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@analogjs/vite-plugin-angular": "^2.6.1",
|
|
42
42
|
"@analogjs/vitest-angular": "^2.6.1",
|
|
43
|
-
"@angular/build": "^22.0.
|
|
44
|
-
"@angular/common": "^22.0.
|
|
45
|
-
"@angular/compiler": "^22.0.
|
|
46
|
-
"@angular/compiler-cli": "^22.0.
|
|
47
|
-
"@angular/core": "^22.0.
|
|
48
|
-
"@angular/platform-browser": "^22.0.
|
|
43
|
+
"@angular/build": "^22.0.5",
|
|
44
|
+
"@angular/common": "^22.0.5",
|
|
45
|
+
"@angular/compiler": "^22.0.5",
|
|
46
|
+
"@angular/compiler-cli": "^22.0.5",
|
|
47
|
+
"@angular/core": "^22.0.5",
|
|
48
|
+
"@angular/platform-browser": "^22.0.5",
|
|
49
|
+
"@angular/router": "^22.0.5",
|
|
49
50
|
"@eslint/js": "^9.0.0",
|
|
50
51
|
"@eslint/json": "^0.11.0",
|
|
51
52
|
"@eslint/markdown": "^6.0.0",
|