@zitadel/sdk-qwik 0.1.0-alpha.17 → 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 CHANGED
@@ -33,26 +33,14 @@ The widget's flow events are surfaced as optional QRL callbacks:
33
33
  ## Proxying to the backend (deployment)
34
34
 
35
35
  The widgets call `${proxyPath}/…` same-origin (default `/__nextgen`). A SPA has no
36
- server, so on Vercel use `@zitadel/edge-proxy` to forward those calls:
37
-
38
- ```ts
39
- // api/__nextgen/[...path].ts (Vercel Edge Function)
40
- import { handleProxy, resolveConfig } from '@zitadel/edge-proxy';
41
- export const config = { runtime: 'edge' };
42
- const proxyConfig = resolveConfig({
43
- apiUrl: process.env.NEXTGEN_API_URL ?? '',
44
- });
45
- export default (req: Request) => handleProxy(req, proxyConfig);
46
- ```
47
-
48
- ```json
49
- // vercel.json
50
- {
51
- "rewrites": [
52
- { "source": "/__nextgen/(.*)", "destination": "/api/__nextgen/$1" }
53
- ]
54
- }
55
- ```
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.
56
44
 
57
45
  For local development you can skip the proxy and point `proxyPath` straight at the
58
46
  backend (cross-origin), e.g. `proxyPath: "http://localhost:4000"`.
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import { configureZitadel, getApi, getZitadelConfig, ZitadelConfig, ZitadelProje
5
5
  export { configureZitadel, getApi, getZitadelConfig };
6
6
  export type { ZitadelConfig, ZitadelProject };
7
7
  export * from './types';
8
+ export { businessLocales } from '@zitadel/components';
8
9
  /**
9
10
  * Wraps each plain-callback handler from the shared SPA contract in a Qwik
10
11
  * {@link QRL} and suffixes the prop name with `$`, so the Qwik prop set is
@@ -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;AA+BxB;;;;;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,QA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AAEJ;;;;;GAKG;AACH,eAAO,MAAM,cAAc,2DAiCzB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsx } from "@builder.io/qwik/jsx-runtime";
2
- import "@zitadel/components";
2
+ import { businessLocales } from "@zitadel/components";
3
3
  import { component$, useSignal, useVisibleTask$ } from "@builder.io/qwik";
4
4
  import { configureZitadel, getApi, getZitadelConfig } from "@zitadel/api/config";
5
5
  function projectProp(project, projectId, proxyPath) {
@@ -53,7 +53,9 @@ const ZitadelLogin = component$((props) => {
53
53
  ...localeProps(props.locales, props.lang),
54
54
  purpose: props.purpose ?? "login",
55
55
  "flow-name": props.flowName,
56
- "post-sign-in-url": props.postSignInUrl
56
+ "post-sign-in-url": props.postSignInUrl,
57
+ variant: props.variant,
58
+ theme: props.theme
57
59
  });
58
60
  });
59
61
  const ZitadelLogout = component$((props) => {
@@ -79,7 +81,8 @@ const ZitadelLogout = component$((props) => {
79
81
  }
80
82
  },
81
83
  ...projectProp(props.project, props.projectId, props.proxyPath),
82
- "post-sign-out-url": props.postSignOutUrl
84
+ "post-sign-out-url": props.postSignOutUrl,
85
+ theme: props.theme
83
86
  });
84
87
  });
85
88
  const ZitadelSession = component$((props) => {
@@ -107,13 +110,16 @@ const ZitadelSession = component$((props) => {
107
110
  ...projectProp(props.project, props.projectId, props.proxyPath),
108
111
  "post-sign-out-url": props.postSignOutUrl,
109
112
  heading: props.heading,
110
- "logout-label": props.logoutLabel
113
+ "logout-label": props.logoutLabel,
114
+ variant: props.variant,
115
+ theme: props.theme
111
116
  });
112
117
  });
113
118
  export {
114
119
  ZitadelLogin,
115
120
  ZitadelLogout,
116
121
  ZitadelSession,
122
+ businessLocales,
117
123
  configureZitadel,
118
124
  getApi,
119
125
  getZitadelConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zitadel/sdk-qwik",
3
- "version": "0.1.0-alpha.17",
3
+ "version": "0.1.0-alpha.18",
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/components": "0.1.0-alpha.17",
33
- "@zitadel/sdk-core": "0.1.0-alpha.17",
34
- "@zitadel/api": "0.1.0-alpha.17"
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"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@builder.io/qwik": "^1.5.0"