@zitadel/sdk-qwik 0.1.0-alpha.18 → 1.0.0-alpha.20

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 CHANGED
@@ -24,6 +24,8 @@ export default component$(() => {
24
24
 
25
25
  `<ZitadelLogout project={project} postSignOutUrl="/login" />` works the same way.
26
26
 
27
+ The signed-in session card is `<ZitadelSession project={project} />` (exported as `ZitadelSession`).
28
+
27
29
  The widget's flow events are surfaced as optional QRL callbacks:
28
30
  `onFlowStep$`, `onFlowInput$`, `onFlowComplete$`, and `onFlowError$`.
29
31
 
@@ -32,15 +34,14 @@ The widget's flow events are surfaced as optional QRL callbacks:
32
34
 
33
35
  ## Proxying to the backend (deployment)
34
36
 
35
- The widgets call `${proxyPath}/…` same-origin (default `/__nextgen`). A SPA has no
36
- server, so in production the path comes from your hosting platform — a
37
- `vercel.json` rewrite, a `netlify.toml` redirect, or a minimal Cloudflare
38
- worker — with no secrets on the platform, per
39
- [ADR 036](https://github.com/zitadel/nextgen/blob/main/docs/adrs/036-api-credential-planes.md).
40
- CLI scaffolding for these configs is tracked in
41
- [zitadel/nextgen#560](https://github.com/zitadel/nextgen/issues/560). **Until
42
- that work lands, production SPA deployment is not yet supported** — the CLI dev
43
- proxy covers local development.
44
-
45
- For local development you can skip the proxy and point `proxyPath` straight at the
46
- backend (cross-origin), e.g. `proxyPath: "http://localhost:4000"`.
37
+ The widgets call `${proxyPath}/…` same-origin (default `/__nextgen`). In
38
+ production the same-origin path must come from your hosting platform — until
39
+ the CLI can scaffold those configs, **production SPA deployment is not yet
40
+ supported**; see
41
+ [ADR 036](https://github.com/zitadel/nextgen/blob/main/docs/adrs/036-api-credential-planes.md)
42
+ and [zitadel/nextgen#560](https://github.com/zitadel/nextgen/issues/560). The
43
+ CLI dev proxy covers local development.
44
+
45
+ For local development you can also skip the proxy and point `proxyPath`
46
+ straight at the backend (cross-origin), e.g. `proxyPath: "http://localhost:8080"`
47
+ (the `zitadel start` local runtime default port).
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,IAAI,mBAAmB,EACnC,aAAa,IAAI,oBAAoB,EACrC,cAAc,IAAI,qBAAqB,EACxC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAA0C,KAAK,GAAG,EAAE,KAAK,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACjG,OAAO,EACL,gBAAgB,EAChB,MAAM,EACN,gBAAgB,EAChB,KAAK,aAAa,EAClB,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,CAAC;AACtD,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC;AAC9C,cAAc,SAAS,CAAC;AAIxB,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AA+BtD;;;;;GAKG;AACH,KAAK,MAAM,CAAC,CAAC,IAAI;IACf,QAAQ,EAAE,CAAC,IAAI,MAAM,CAAC,IAAI,GAAG,CAAC,GAAG,MAAM,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC,GAAG,SAAS,GAC9F,GAAG,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAC,GACxB,KAAK;CACV,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAChD,MAAM,CAAC,oBAAoB,CAAC,GAAG;IAC7B;;;;OAIG;IACH,QAAQ,CAAC,GAAG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G;AACH,eAAO,MAAM,cAAc,2DAkCzB,CAAC"}
@@ -55,7 +55,8 @@ const ZitadelLogin = component$((props) => {
55
55
  "flow-name": props.flowName,
56
56
  "post-sign-in-url": props.postSignInUrl,
57
57
  variant: props.variant,
58
- theme: props.theme
58
+ theme: props.theme,
59
+ suppressHeader: props.suppressHeader
59
60
  });
60
61
  });
61
62
  const ZitadelLogout = component$((props) => {
@@ -112,7 +113,8 @@ const ZitadelSession = component$((props) => {
112
113
  heading: props.heading,
113
114
  "logout-label": props.logoutLabel,
114
115
  variant: props.variant,
115
- theme: props.theme
116
+ theme: props.theme,
117
+ suppressHeader: props.suppressHeader
116
118
  });
117
119
  });
118
120
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zitadel/sdk-qwik",
3
- "version": "0.1.0-alpha.18",
3
+ "version": "1.0.0-alpha.20",
4
4
  "description": "Qwik components for the Zitadel auth UI (client-side SPA).",
5
5
  "homepage": "https://github.com/zitadel/nextgen/tree/main/packages/sdk-qwik#readme",
6
6
  "bugs": {
@@ -29,9 +29,9 @@
29
29
  "access": "public"
30
30
  },
31
31
  "dependencies": {
32
- "@zitadel/api": "0.1.0-alpha.18",
33
- "@zitadel/components": "0.1.0-alpha.18",
34
- "@zitadel/sdk-core": "0.1.0-alpha.18"
32
+ "@zitadel/components": "1.0.0-alpha.20",
33
+ "@zitadel/sdk-core": "1.0.0-alpha.20",
34
+ "@zitadel/api": "1.0.0-alpha.20"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@builder.io/qwik": "^1.5.0"