@zitadel/components 0.1.0-alpha.4 → 0.1.0-alpha.8

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.
Files changed (111) hide show
  1. package/README.md +33 -19
  2. package/dist/atoms/index.d.mts +1 -1
  3. package/dist/atoms/index.mjs +1 -1
  4. package/dist/{atoms-Dh5J7QwT.mjs → atoms-B25wiDqb.mjs} +2 -2
  5. package/dist/atoms-B25wiDqb.mjs.map +1 -0
  6. package/dist/default-Cpl78hQN.mjs +6 -0
  7. package/dist/default-Cpl78hQN.mjs.map +1 -0
  8. package/dist/{index-DQryonsO.d.mts → index-DVDCrfkv.d.mts} +360 -337
  9. package/dist/index-DVDCrfkv.d.mts.map +1 -0
  10. package/dist/{index-D0NA2hMc.d.mts → index-DZ82Y3_z.d.mts} +6 -6
  11. package/dist/{index-D0NA2hMc.d.mts.map → index-DZ82Y3_z.d.mts.map} +1 -1
  12. package/dist/index.d.mts +3 -3
  13. package/dist/index.mjs +4 -4
  14. package/dist/manifests.mjs +1 -1
  15. package/dist/orchestrator/index.d.mts +2 -2
  16. package/dist/orchestrator/index.mjs +2 -2
  17. package/dist/{orchestrator-DGp8rCN7.mjs → orchestrator-CW9zixuw.mjs} +58 -39
  18. package/dist/orchestrator-CW9zixuw.mjs.map +1 -0
  19. package/dist/standalone.mjs +56 -37
  20. package/dist/tokens/index.mjs +1 -1
  21. package/dist/{tokens-TXmurodq.mjs → tokens-BQ_augxi.mjs} +2 -2
  22. package/dist/{tokens-TXmurodq.mjs.map → tokens-BQ_augxi.mjs.map} +1 -1
  23. package/package.json +2 -16
  24. package/dist/atoms/index.d.ts +0 -9
  25. package/dist/atoms/index.d.ts.map +0 -1
  26. package/dist/atoms/zl-alert.d.ts +0 -56
  27. package/dist/atoms/zl-alert.d.ts.map +0 -1
  28. package/dist/atoms/zl-button.d.ts +0 -99
  29. package/dist/atoms/zl-button.d.ts.map +0 -1
  30. package/dist/atoms/zl-card.d.ts +0 -53
  31. package/dist/atoms/zl-card.d.ts.map +0 -1
  32. package/dist/atoms/zl-field.d.ts +0 -90
  33. package/dist/atoms/zl-field.d.ts.map +0 -1
  34. package/dist/atoms/zl-icon.d.ts +0 -48
  35. package/dist/atoms/zl-icon.d.ts.map +0 -1
  36. package/dist/atoms/zl-page-shell.d.ts +0 -48
  37. package/dist/atoms/zl-page-shell.d.ts.map +0 -1
  38. package/dist/atoms/zl-passkey.d.ts +0 -123
  39. package/dist/atoms/zl-passkey.d.ts.map +0 -1
  40. package/dist/atoms/zl-pill.d.ts +0 -54
  41. package/dist/atoms/zl-pill.d.ts.map +0 -1
  42. package/dist/atoms-Dh5J7QwT.mjs.map +0 -1
  43. package/dist/default-BG5uwuAm.mjs +0 -6
  44. package/dist/default-BG5uwuAm.mjs.map +0 -1
  45. package/dist/index-DQryonsO.d.mts.map +0 -1
  46. package/dist/index.d.ts +0 -16
  47. package/dist/index.d.ts.map +0 -1
  48. package/dist/internal/base64url.d.ts +0 -18
  49. package/dist/internal/base64url.d.ts.map +0 -1
  50. package/dist/internal/emit.d.ts +0 -12
  51. package/dist/internal/emit.d.ts.map +0 -1
  52. package/dist/internal/escape-html.d.ts +0 -10
  53. package/dist/internal/escape-html.d.ts.map +0 -1
  54. package/dist/internal/unique-id.d.ts +0 -2
  55. package/dist/internal/unique-id.d.ts.map +0 -1
  56. package/dist/manifest.d.ts +0 -36
  57. package/dist/manifest.d.ts.map +0 -1
  58. package/dist/manifests.d.ts +0 -6
  59. package/dist/manifests.d.ts.map +0 -1
  60. package/dist/orchestrator/api-client.d.ts +0 -33
  61. package/dist/orchestrator/api-client.d.ts.map +0 -1
  62. package/dist/orchestrator/branding-to-tokens.d.ts +0 -28
  63. package/dist/orchestrator/branding-to-tokens.d.ts.map +0 -1
  64. package/dist/orchestrator/branding-validator.d.ts +0 -7
  65. package/dist/orchestrator/branding-validator.d.ts.map +0 -1
  66. package/dist/orchestrator/branding.d.ts +0 -76
  67. package/dist/orchestrator/branding.d.ts.map +0 -1
  68. package/dist/orchestrator/font-loader.d.ts +0 -2
  69. package/dist/orchestrator/font-loader.d.ts.map +0 -1
  70. package/dist/orchestrator/index.d.ts +0 -23
  71. package/dist/orchestrator/index.d.ts.map +0 -1
  72. package/dist/orchestrator/liquid.d.ts +0 -31
  73. package/dist/orchestrator/liquid.d.ts.map +0 -1
  74. package/dist/orchestrator/locales/de.d.ts +0 -16
  75. package/dist/orchestrator/locales/de.d.ts.map +0 -1
  76. package/dist/orchestrator/locales/en.d.ts +0 -19
  77. package/dist/orchestrator/locales/en.d.ts.map +0 -1
  78. package/dist/orchestrator/locales/index.d.ts +0 -13
  79. package/dist/orchestrator/locales/index.d.ts.map +0 -1
  80. package/dist/orchestrator/locales/it.d.ts +0 -14
  81. package/dist/orchestrator/locales/it.d.ts.map +0 -1
  82. package/dist/orchestrator/mandatory-gates.d.ts +0 -26
  83. package/dist/orchestrator/mandatory-gates.d.ts.map +0 -1
  84. package/dist/orchestrator/resolve-api.d.ts +0 -37
  85. package/dist/orchestrator/resolve-api.d.ts.map +0 -1
  86. package/dist/orchestrator/sanitiser.d.ts +0 -6
  87. package/dist/orchestrator/sanitiser.d.ts.map +0 -1
  88. package/dist/orchestrator/template-context.d.ts +0 -55
  89. package/dist/orchestrator/template-context.d.ts.map +0 -1
  90. package/dist/orchestrator/template-names.d.ts +0 -16
  91. package/dist/orchestrator/template-names.d.ts.map +0 -1
  92. package/dist/orchestrator/theme-controller.d.ts +0 -30
  93. package/dist/orchestrator/theme-controller.d.ts.map +0 -1
  94. package/dist/orchestrator/zitadel-login.d.ts +0 -213
  95. package/dist/orchestrator/zitadel-login.d.ts.map +0 -1
  96. package/dist/orchestrator/zitadel-logout.d.ts +0 -114
  97. package/dist/orchestrator/zitadel-logout.d.ts.map +0 -1
  98. package/dist/orchestrator-DGp8rCN7.mjs.map +0 -1
  99. package/dist/styles/base.d.ts +0 -7
  100. package/dist/styles/base.d.ts.map +0 -1
  101. package/dist/styles/focus-ring.d.ts +0 -7
  102. package/dist/styles/focus-ring.d.ts.map +0 -1
  103. package/dist/styles/index.d.ts +0 -5
  104. package/dist/styles/index.d.ts.map +0 -1
  105. package/dist/styles/surface.d.ts +0 -8
  106. package/dist/styles/surface.d.ts.map +0 -1
  107. package/dist/styles/tokens.d.ts +0 -11
  108. package/dist/styles/tokens.d.ts.map +0 -1
  109. package/dist/tokens/index.d.ts +0 -9
  110. package/dist/tokens/index.d.ts.map +0 -1
  111. package/dist/tsconfig.lib.tsbuildinfo +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,CAAC,GAAG,EAAE,MAAM,MAAM,EAAE,CAAC;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE;QAClB,QAAQ,CAAC,KAAK,CAAC,EAAE,aAAa,CAAC;QAC/B,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC;KAClC,CAAC;IACF,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;IAClC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { AtomManifest } from "./manifest.js";
2
- export declare const manifestRegistry: readonly AtomManifest[];
3
- export declare function findManifest(tag: string): AtomManifest | undefined;
4
- export declare function listKnownTags(): readonly string[];
5
- export type { AtomManifest } from "./manifest.js";
6
- //# sourceMappingURL=manifests.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifests.d.ts","sourceRoot":"","sources":["../src/manifests.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,gBAAgB,EAAE,SAAS,YAAY,EAS1C,CAAC;AAEX,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAElE;AAED,wBAAgB,aAAa,IAAI,SAAS,MAAM,EAAE,CAEjD;AAED,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC"}
@@ -1,33 +0,0 @@
1
- /**
2
- * Thin wrappers around the orval-generated `@zitadel/api` fetch
3
- * functions for the API operations the orchestrator drives:
4
- *
5
- * - `POST /flow` — `createFlow`
6
- * - `POST /flow/{id}/submit` — `submitFlowStep`
7
- * - `GET /flow/{id}` — `getFlowStep`
8
- * - `POST /sessions/exchange` — `exchangeHandoff`
9
- *
10
- * The wrappers exist for one reason: every API call must run with
11
- * `credentials: "include"` so the stateless `_zflow` HttpOnly cookie
12
- * round-trips. Centralising that here keeps every call site honest.
13
- *
14
- * Types come straight from `@zitadel/api/generated/model`. Orval
15
- * emits per-operation aliases (`CreateFlow201`, `GetFlowStep200`,
16
- * `SubmitFlowStep200`) for what is structurally the same response; the
17
- * orchestrator stores them as `CreateFlow201` because that is the alias
18
- * orval gives the start-of-flow response.
19
- */
20
- import type { ZitadelApi } from "@zitadel/api/config";
21
- import type { CreateFlow201, CreateFlowBody, ExchangeHandoff200, ExchangeHandoffBody, ExchangeHandoffParams, SubmitFlowStepBody } from "@zitadel/api/generated/model";
22
- export declare function startFlow(api: ZitadelApi, input: CreateFlowBody): Promise<CreateFlow201>;
23
- export declare function submitStep(api: ZitadelApi, id: string, body: SubmitFlowStepBody): Promise<CreateFlow201>;
24
- export declare function getCurrentStep(api: ZitadelApi, id: string): Promise<CreateFlow201>;
25
- /**
26
- * Exchange a terminal-flow `handoff_token` for an authenticated session.
27
- * The server sets the `__nextgen_session` HttpOnly cookie on success.
28
- *
29
- * Uses the generated `exchangeHandoff` client which handles the
30
- * `project_id` query parameter via {@link ExchangeHandoffParams}.
31
- */
32
- export declare function exchangeSession(api: ZitadelApi, body: ExchangeHandoffBody, params: ExchangeHandoffParams): Promise<ExchangeHandoff200>;
33
- //# sourceMappingURL=api-client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"api-client.d.ts","sourceRoot":"","sources":["../../src/orchestrator/api-client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EACV,aAAa,EACb,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,qBAAqB,EACrB,kBAAkB,EACnB,MAAM,8BAA8B,CAAC;AAKtC,wBAAsB,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,CAE9F;AAKD,wBAAsB,UAAU,CAC9B,GAAG,EAAE,UAAU,EACf,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAAC,aAAa,CAAC,CASxB;AAMD,wBAAsB,cAAc,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAExF;AAED;;;;;;GAMG;AACH,wBAAsB,eAAe,CACnC,GAAG,EAAE,UAAU,EACf,IAAI,EAAE,mBAAmB,EACzB,MAAM,EAAE,qBAAqB,GAC5B,OAAO,CAAC,kBAAkB,CAAC,CAE7B"}
@@ -1,28 +0,0 @@
1
- import type { ResolvedTheme } from "./theme-controller.js";
2
- import type { Branding } from "./branding.js";
3
- export type BrandingToTokensOptions = {
4
- resolvedTheme?: ResolvedTheme;
5
- };
6
- /**
7
- * Build a CSS string of `:host { --zl-* }` declarations from a Branding
8
- * payload. Light values land on `:host`; dark overrides land on
9
- * `:host([data-theme="dark"])`.
10
- */
11
- export declare function buildBrandingStylesheet(branding: Branding | undefined, options?: BrandingToTokensOptions): string;
12
- /**
13
- * Adopt the design-system base token layer onto a `ShadowRoot`. Safe to call
14
- * many times — the underlying constructable sheet is shared across every
15
- * orchestrator instance and de-duplicated in the adopted list.
16
- */
17
- export declare function applyBaseTokens(shadowRoot: ShadowRoot): void;
18
- /**
19
- * Apply a branding payload as a `--zl-*` overrides layer on top of the base
20
- * token sheet. Subsequent calls replace the previous override sheet so a new
21
- * branding payload paints cleanly without leaking older declarations.
22
- *
23
- * Callers should run `applyBaseTokens(shadowRoot)` first (once per shadow
24
- * root) so the base values exist before branding patches them.
25
- */
26
- export declare function applyBrandingTokens(shadowRoot: ShadowRoot, branding: Branding | undefined, resolvedTheme: ResolvedTheme): void;
27
- export declare function resolveTheme(branding: Branding | undefined): ResolvedTheme;
28
- //# sourceMappingURL=branding-to-tokens.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"branding-to-tokens.d.ts","sourceRoot":"","sources":["../../src/orchestrator/branding-to-tokens.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAsD,MAAM,eAAe,CAAC;AA8ClG,MAAM,MAAM,uBAAuB,GAAG;IACpC,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAC9B,OAAO,GAAE,uBAA4B,GACpC,MAAM,CAuBR;AAgGD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAa5D;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,UAAU,EACtB,QAAQ,EAAE,QAAQ,GAAG,SAAS,EAC9B,aAAa,EAAE,aAAa,GAC3B,IAAI,CAaN;AAED,wBAAgB,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAAG,aAAa,CAa1E"}
@@ -1,7 +0,0 @@
1
- import type { Branding } from "./branding.js";
2
- export type BrandingValidationResult = {
3
- branding: Branding | undefined;
4
- issues: readonly string[];
5
- };
6
- export declare function validateBranding(input: Branding | undefined): BrandingValidationResult;
7
- //# sourceMappingURL=branding-validator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"branding-validator.d.ts","sourceRoot":"","sources":["../../src/orchestrator/branding-validator.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAI9C,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC/B,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3B,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,wBAAwB,CA6BtF"}
@@ -1,76 +0,0 @@
1
- /**
2
- * Client-side branding shape consumed by the orchestrator.
3
- *
4
- * The five baseline wire fields (`layout`, `liquid_template`, `logo_url`,
5
- * `font_url`, `hero_url`) come straight from the orval-generated
6
- * `CreateFlow201Branding`. The v2 "structured extension" blocks (palette /
7
- * typography / shape / assets / theme) are deliberately client-only — see
8
- * `docs/design/branding/schema.md` "Proposed structured extension". Once
9
- * those land on the wire we drop the extension blocks here too.
10
- *
11
- * The validator (`branding-validator.ts`) strips fields the OpenAPI doesn't
12
- * model if a misconfigured tenant ever leaks them down through the wire.
13
- */
14
- import type { CreateFlow201Branding, CreateFlow201BrandingLayout } from "@zitadel/api/generated/model";
15
- export type FlowLayout = CreateFlow201BrandingLayout;
16
- export type BrandingPalette = {
17
- primary?: string;
18
- on_primary?: string;
19
- background?: string;
20
- surface?: string;
21
- muted?: string;
22
- border?: string;
23
- text?: string;
24
- text_muted?: string;
25
- link?: string;
26
- success?: string;
27
- warning?: string;
28
- error?: string;
29
- };
30
- export type BrandingTypography = {
31
- font_family?: string;
32
- font_family_mono?: string;
33
- scale?: number;
34
- };
35
- export type BrandingShape = {
36
- radius?: "none" | "sm" | "md" | "lg" | "full";
37
- density?: "compact" | "regular" | "comfortable";
38
- };
39
- export type BrandingTheme = {
40
- mode?: "light" | "dark" | "auto";
41
- dark?: {
42
- palette?: BrandingPalette;
43
- };
44
- };
45
- export type BrandingAssets = {
46
- logo_dark?: string;
47
- favicon?: string;
48
- background_image?: string;
49
- };
50
- /**
51
- * Wire shape (`CreateFlow201Branding`) plus the v2 client-only extension.
52
- * Structurally a superset, so any `CreateFlow201Branding` payload from the
53
- * wire is assignable to `Branding` without a cast.
54
- *
55
- * `attribution.show_zitadel` controls the "Secured with Zitadel" pill in
56
- * the orchestrator footer. Tenants set it to `false` only when they have a
57
- * licence that permits removing attribution (community / OSS deployments
58
- * always show it). The flag intentionally lives on `Branding` so it can
59
- * be overridden per-flow alongside the rest of the visual surface.
60
- */
61
- export type Branding = CreateFlow201Branding & {
62
- palette?: BrandingPalette;
63
- typography?: BrandingTypography;
64
- shape?: BrandingShape;
65
- assets?: BrandingAssets;
66
- theme?: BrandingTheme;
67
- attribution?: BrandingAttribution;
68
- };
69
- export type BrandingAttribution = {
70
- show_zitadel?: boolean;
71
- custom_link?: {
72
- label: string;
73
- href: string;
74
- };
75
- };
76
- //# sourceMappingURL=branding.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"branding.d.ts","sourceRoot":"","sources":["../../src/orchestrator/branding.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EACV,qBAAqB,EACrB,2BAA2B,EAC5B,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,UAAU,GAAG,2BAA2B,CAAC;AAErD,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAC9C,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;CACjD,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IACjC,IAAI,CAAC,EAAE;QACL,OAAO,CAAC,EAAE,eAAe,CAAC;KAC3B,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF;;;;;;;;;;GAUG;AACH,MAAM,MAAM,QAAQ,GAAG,qBAAqB,GAAG;IAC7C,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAChC,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,WAAW,CAAC,EAAE,mBAAmB,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;CAC/C,CAAC"}
@@ -1,2 +0,0 @@
1
- export declare function applyFontUrl(shadowRoot: ShadowRoot, fontUrl: string | null | undefined): void;
2
- //# sourceMappingURL=font-loader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"font-loader.d.ts","sourceRoot":"","sources":["../../src/orchestrator/font-loader.ts"],"names":[],"mappings":"AAaA,wBAAgB,YAAY,CAAC,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAgB7F"}
@@ -1,23 +0,0 @@
1
- /**
2
- * Orchestrator surface: the `<zitadel-login>` and `<zitadel-logout>`
3
- * elements and their supporting primitives. Importing this barrel
4
- * side-effect-registers the elements.
5
- */
6
- import "./zitadel-login.js";
7
- import "./zitadel-logout.js";
8
- export { ZitadelLogin } from "./zitadel-login.js";
9
- export { ZitadelLogout } from "./zitadel-logout.js";
10
- export { applyBrandingTokens, buildBrandingStylesheet, resolveTheme, } from "./branding-to-tokens.js";
11
- export { ThemeController, type ResolvedTheme } from "./theme-controller.js";
12
- export { applyFontUrl } from "./font-loader.js";
13
- export { TEMPLATE_NAMES } from "./template-names.js";
14
- export { en, de, it, builtinLocales, type Locale } from "./locales/index.js";
15
- export { patchMandatoryGates, mandatoryGatesMarkerComment, MANDATORY_GATES_MARKER, } from "./mandatory-gates.js";
16
- export { createSanitiser } from "./sanitiser.js";
17
- export { default as defaultTemplate } from "./templates/default.liquid";
18
- export { default as layoutChromeCss } from "./templates/layout-chrome.css?inline";
19
- export { startFlow, submitStep, getCurrentStep } from "./api-client.js";
20
- export { validateBranding, type BrandingValidationResult } from "./branding-validator.js";
21
- export type { Branding, BrandingAssets, BrandingAttribution, BrandingPalette, BrandingShape, BrandingTheme, BrandingTypography, FlowLayout, } from "./branding.js";
22
- export type { FlowError, FlowIdentity, FlowMessage, LiquidContext, } from "./template-context.js";
23
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/orchestrator/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,oBAAoB,CAAC;AAC5B,OAAO,qBAAqB,CAAC;AAE7B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EACL,mBAAmB,EACnB,uBAAuB,EACvB,YAAY,GACb,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAShD,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,cAAc,EAAE,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC7E,OAAO,EACL,mBAAmB,EACnB,2BAA2B,EAC3B,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,KAAK,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAC1F,YAAY,EACV,QAAQ,EACR,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,UAAU,GACX,MAAM,eAAe,CAAC;AACvB,YAAY,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACX,aAAa,GACd,MAAM,uBAAuB,CAAC"}
@@ -1,31 +0,0 @@
1
- /**
2
- * LiquidJS engine factory for the `<zitadel-login>` orchestrator.
3
- *
4
- * Configures the engine per the security pipeline in
5
- * `docs/design/flowengine/template-security.md` and registers the
6
- * `| t` filter and `{% mandatory_gates %}` tag from
7
- * `docs/design/branding/templates.md`.
8
- *
9
- * Hard rules:
10
- *
11
- * - `{{ }}` output is HTML-escaped (LiquidJS default since v10).
12
- * - The `| raw` filter is overridden to a no-op string passthrough that still
13
- * escapes (Layer 1 of the security pipeline).
14
- * - Partials are loaded from an in-memory map; no filesystem access.
15
- */
16
- import { Liquid } from "liquidjs";
17
- import type { Locale } from "./locales/en.js";
18
- export declare const TEMPLATE_NAMES: {
19
- readonly default: "default";
20
- };
21
- export type CreateLiquidOptions = {
22
- locale: Locale;
23
- /**
24
- * Additional in-memory templates merged on top of the bundled defaults.
25
- * Useful for tests and for tenant-supplied `branding.liquid_template`
26
- * (registered under {@link TEMPLATE_NAMES.default}).
27
- */
28
- templates?: Record<string, string>;
29
- };
30
- export declare function createLiquidEngine(options: CreateLiquidOptions): Liquid;
31
- //# sourceMappingURL=liquid.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"liquid.d.ts","sourceRoot":"","sources":["../../src/orchestrator/liquid.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AACH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAI9C,eAAO,MAAM,cAAc;aACzB,OAAO,EAAE,SAAS;CACV,CAAC;AAEX,MAAM,MAAM,mBAAmB,GAAG;IAChC,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACpC,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,GAAG,MAAM,CAsGvE"}
@@ -1,16 +0,0 @@
1
- /**
2
- * German locale dictionary.
3
- *
4
- * Structure mirrors {@link en} — same keys, translated values.
5
- *
6
- * Text keys are auto-generated by the server from the flow definition:
7
- * - Step titles: `<step>.title`
8
- * - Step descriptions: `<step>.description`
9
- * - Field labels: `<step>.field.<field>`
10
- * - Action labels: `<step>.action.<action>`
11
- *
12
- * Copy aligned to Figma screens file `xkvBjkOJ8ENuHdTGZHXezK` (May 2026).
13
- */
14
- import type { Locale } from "./en.js";
15
- export declare const de: Locale;
16
- //# sourceMappingURL=de.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/locales/de.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,EAAE,EAAE,MAyJhB,CAAC"}
@@ -1,19 +0,0 @@
1
- /**
2
- * Minimal English locale dictionary.
3
- *
4
- * The `| t` filter looks up `text_key` strings here. Missing keys fall through
5
- * to the raw key (matches the spec in
6
- * `docs/design/flowengine/flow-engine-guide.md`).
7
- *
8
- * Text keys are auto-generated by the server from the flow definition:
9
- * - Step titles: `<step>.title`
10
- * - Step descriptions: `<step>.description`
11
- * - Field labels: `<step>.field.<field>`
12
- * - Action labels: `<step>.action.<action>`
13
- *
14
- * Copy aligned to Figma screens file `xkvBjkOJ8ENuHdTGZHXezK` (May 2026).
15
- * MVP only — multi-locale support is deferred.
16
- */
17
- export declare const en: Record<string, string>;
18
- export type Locale = Record<string, string>;
19
- //# sourceMappingURL=en.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/locales/en.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA4JrC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- /**
2
- * Built-in locale registry.
3
- *
4
- * Re-exports the individual dictionaries and provides a `builtinLocales`
5
- * map so the orchestrator can resolve a BCP 47 language tag to the
6
- * matching dictionary at runtime.
7
- */
8
- export { en, type Locale } from "./en.js";
9
- export { de } from "./de.js";
10
- export { it } from "./it.js";
11
- import { type Locale } from "./en.js";
12
- export declare const builtinLocales: Readonly<Record<string, Locale>>;
13
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/locales/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAE,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAC7B,OAAO,EAAE,EAAE,EAAE,MAAM,SAAS,CAAC;AAE7B,OAAO,EAAM,KAAK,MAAM,EAAE,MAAM,SAAS,CAAC;AAI1C,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAkB,CAAC"}
@@ -1,14 +0,0 @@
1
- /**
2
- * Italian locale dictionary.
3
- *
4
- * Structure mirrors {@link en} — same keys, translated values.
5
- *
6
- * Text keys are auto-generated by the server from the flow definition:
7
- * - Step titles: `<step>.title`
8
- * - Step descriptions: `<step>.description`
9
- * - Field labels: `<step>.field.<field>`
10
- * - Action labels: `<step>.action.<action>`
11
- */
12
- import type { Locale } from "./en.js";
13
- export declare const it: Locale;
14
- //# sourceMappingURL=it.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"it.d.ts","sourceRoot":"","sources":["../../../src/orchestrator/locales/it.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,EAAE,EAAE,MAyJhB,CAAC"}
@@ -1,26 +0,0 @@
1
- /**
2
- * `{% mandatory_gates %}` runtime patcher.
3
- *
4
- * Per `docs/design/branding/validator.md` §Runtime safety net:
5
- *
6
- * "After the template finishes rendering, the tag inspects the produced DOM
7
- * and appends:
8
- * - Any required `fields[*]` without a matching `<zl-field>`.
9
- * - Any required `gates[*]` without a matching consumer.
10
- * - A primary `<zl-button type="submit">` if none was reached."
11
- *
12
- * Implementation: the LiquidJS `{% mandatory_gates %}` tag emits a unique
13
- * marker comment. After Liquid renders, this patcher parses the produced
14
- * HTML into a `<template>`, builds any missing atoms as real DOM elements,
15
- * replaces the marker with them, and serialises back to a string.
16
- *
17
- * Building elements via the DOM (`document.createElement` + `setAttribute`)
18
- * delegates HTML attribute escaping to the browser's serialiser — no manual
19
- * string-escaping in this module.
20
- */
21
- import type { CreateFlow201Step } from "@zitadel/api/generated/model";
22
- import type { Locale } from "./locales/en.js";
23
- export declare const MANDATORY_GATES_MARKER = "ZL_MANDATORY_GATES";
24
- export declare const mandatoryGatesMarkerComment = "<!--ZL_MANDATORY_GATES-->";
25
- export declare function patchMandatoryGates(html: string, step: CreateFlow201Step, locale: Locale): string;
26
- //# sourceMappingURL=mandatory-gates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mandatory-gates.d.ts","sourceRoot":"","sources":["../../src/orchestrator/mandatory-gates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAE9C,eAAO,MAAM,sBAAsB,uBAAuB,CAAC;AAE3D,eAAO,MAAM,2BAA2B,8BAAqC,CAAC;AAE9E,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,iBAAiB,EACvB,MAAM,EAAE,MAAM,GACb,MAAM,CAoBR"}
@@ -1,37 +0,0 @@
1
- import { type ZitadelApi, type ZitadelProject } from "@zitadel/api/config";
2
- /**
3
- * Declarative configuration read from an element's HTML attributes
4
- * (`project-id` / `proxy-path` / `url`). Empty strings mean "unset".
5
- */
6
- export interface ProjectAttrs {
7
- readonly projectId: string;
8
- readonly proxyPath: string;
9
- readonly url: string;
10
- }
11
- /**
12
- * Resolves the effective SDK project handle and its typed API client for an
13
- * orchestrator element. Precedence, highest first:
14
- *
15
- * 1. the element's `project` property (an SDK handle set from JS / a framework),
16
- * 2. the global handle from `configureZitadel()`,
17
- * 3. the `project-id` / `proxy-path` / `url` attributes set declaratively in HTML.
18
- *
19
- * Both JS paths (property and global) win over the declarative attributes, so a
20
- * deliberate `configureZitadel()` is never silently overridden by fallback or
21
- * stale HTML attributes; the attributes are the no-JS fallback.
22
- *
23
- * Both `<zitadel-login>` and `<zitadel-logout>` need the same resolution and
24
- * the same "no config" failure, so it lives here rather than being copied
25
- * into each element. Callers run this inside their try/catch so a missing
26
- * configuration surfaces through the element's normal error path rather than
27
- * as an unhandled rejection.
28
- *
29
- * @param project Optional per-element override handle.
30
- * @param attrs Declarative config read from the element's attributes.
31
- * @param element Tag name used in the thrown error (e.g. `<zitadel-login>`).
32
- */
33
- export declare function resolveApi(project: ZitadelProject | undefined, attrs: ProjectAttrs, element: string): {
34
- project: ZitadelProject;
35
- api: ZitadelApi;
36
- };
37
- //# sourceMappingURL=resolve-api.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resolve-api.d.ts","sourceRoot":"","sources":["../../src/orchestrator/resolve-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,cAAc,EACpB,MAAM,qBAAqB,CAAC;AAK7B;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAuCD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,UAAU,CACxB,OAAO,EAAE,cAAc,GAAG,SAAS,EACnC,KAAK,EAAE,YAAY,EACnB,OAAO,EAAE,MAAM,GACd;IAAE,OAAO,EAAE,cAAc,CAAC;IAAC,GAAG,EAAE,UAAU,CAAA;CAAE,CAS9C"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Returns a sanitiser bound to the current manifest registry. Callers should
3
- * cache the result; rebuilding is cheap but allocates a fresh DOMPurify config.
4
- */
5
- export declare function createSanitiser(): (html: string) => string;
6
- //# sourceMappingURL=sanitiser.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sanitiser.d.ts","sourceRoot":"","sources":["../../src/orchestrator/sanitiser.ts"],"names":[],"mappings":"AA0GA;;;GAGG;AACH,wBAAgB,eAAe,IAAI,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAsB1D"}
@@ -1,55 +0,0 @@
1
- /**
2
- * Liquid template context contract.
3
- *
4
- * The orchestrator feeds tenant Liquid templates a stable, renderer-friendly
5
- * projection of the wire `CreateFlow201` shape. Capability dictionaries
6
- * (`fields`, `actions`, `gates`, `sso_providers`) are typed straight from
7
- * the orval-generated wire so templates iterate over the same schema the
8
- * server promises.
9
- *
10
- * The orchestrator owns three projections that don't exist on the wire:
11
- *
12
- * 1. `errors` — lifted from `step.error: string | null` so templates iterate
13
- * uniformly even though the wire only carries one error string.
14
- * 2. `messages` — populated by orchestrator decoration hooks (info banners,
15
- * sticky notices); not on the wire.
16
- * 3. `identity` — resolved client-side for greet-by-name; not on the wire.
17
- */
18
- import type { CreateFlow201Step, CreateFlow201StepActions, CreateFlow201StepChallenge, CreateFlow201StepFields, CreateFlow201StepGates, CreateFlow201StepSsoProvidersItem } from "@zitadel/api/generated/model";
19
- import type { Branding } from "./branding.js";
20
- export type FlowMessage = {
21
- level: "info" | "warning";
22
- text_key: string;
23
- };
24
- export type FlowError = {
25
- code?: string;
26
- text_key?: string;
27
- message?: string;
28
- };
29
- export type FlowIdentity = {
30
- display_name?: string;
31
- email_address?: string;
32
- avatar_url?: string;
33
- };
34
- /**
35
- * Liquid render context. The orchestrator builds this from the wire
36
- * `CreateFlow201` payload before invoking the engine.
37
- *
38
- * Capability dictionaries point at the orval wire shapes directly. The only
39
- * client-only pieces are `messages`, `identity`, `errors`, the resolved
40
- * `branding` (v2 superset), and `loading`.
41
- */
42
- export type LiquidContext = {
43
- step: Pick<CreateFlow201Step, "name" | "complete" | "texts">;
44
- fields: CreateFlow201StepFields;
45
- actions: CreateFlow201StepActions;
46
- gates: CreateFlow201StepGates;
47
- sso_providers: readonly CreateFlow201StepSsoProvidersItem[];
48
- challenge: CreateFlow201StepChallenge | null;
49
- messages: readonly FlowMessage[];
50
- identity: FlowIdentity | null;
51
- errors: readonly FlowError[];
52
- branding: Branding | Record<string, never>;
53
- loading: boolean;
54
- };
55
- //# sourceMappingURL=template-context.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template-context.d.ts","sourceRoot":"","sources":["../../src/orchestrator/template-context.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,KAAK,EACV,iBAAiB,EACjB,wBAAwB,EACxB,0BAA0B,EAC1B,uBAAuB,EACvB,sBAAsB,EACtB,iCAAiC,EAClC,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,EAAE,IAAI,CAAC,iBAAiB,EAAE,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC,CAAC;IAC7D,MAAM,EAAE,uBAAuB,CAAC;IAChC,OAAO,EAAE,wBAAwB,CAAC;IAClC,KAAK,EAAE,sBAAsB,CAAC;IAC9B,aAAa,EAAE,SAAS,iCAAiC,EAAE,CAAC;IAC5D,SAAS,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAC7C,QAAQ,EAAE,SAAS,WAAW,EAAE,CAAC;IACjC,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAC;IAC9B,MAAM,EAAE,SAAS,SAAS,EAAE,CAAC;IAC7B,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC3C,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC"}
@@ -1,16 +0,0 @@
1
- /**
2
- * Names of the bundled Liquid templates the `<zitadel-login>` orchestrator
3
- * registers.
4
- *
5
- * This lives in its own module — separate from `liquid.ts` — so the public
6
- * barrel can re-export `TEMPLATE_NAMES` without dragging LiquidJS' `Liquid`
7
- * type (and its Node ambient-type requirements) into the published
8
- * declaration surface. See `liquid.ts` / the orchestrator barrel.
9
- */
10
- export declare const TEMPLATE_NAMES: {
11
- readonly default: "default";
12
- readonly authForm: "auth-form";
13
- readonly passkeyUpsell: "passkey-upsell";
14
- readonly signedIn: "signed-in";
15
- };
16
- //# sourceMappingURL=template-names.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"template-names.d.ts","sourceRoot":"","sources":["../../src/orchestrator/template-names.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc;aACzB,OAAO,EAAE,SAAS;aAClB,QAAQ,EAAE,WAAW;aACrB,aAAa,EAAE,gBAAgB;aAC/B,QAAQ,EAAE,WAAW;CACb,CAAC"}
@@ -1,30 +0,0 @@
1
- /**
2
- * `ThemeController` — Lit ReactiveController that resolves the active
3
- * `light | dark` theme from the current `Branding` payload and keeps it in
4
- * sync with the OS-level `prefers-color-scheme` when the tenant opts into
5
- * `theme.mode = "auto"`.
6
- *
7
- * Per `docs/design/branding/tokens.md` the orchestrator owns theming entirely.
8
- * Subscribing here is what makes "auto" actually reactive instead of a
9
- * one-shot read at first paint.
10
- */
11
- import type { ReactiveController, ReactiveControllerHost } from "lit";
12
- import type { Branding } from "./branding.js";
13
- export type ResolvedTheme = "light" | "dark";
14
- export declare class ThemeController implements ReactiveController {
15
- private readonly host;
16
- private branding;
17
- private mediaQuery;
18
- private _theme;
19
- constructor(host: ReactiveControllerHost);
20
- get theme(): ResolvedTheme;
21
- setBranding(branding: Branding | undefined): void;
22
- hostConnected(): void;
23
- hostDisconnected(): void;
24
- private refresh;
25
- private attach;
26
- private detach;
27
- private onMediaChange;
28
- private update;
29
- }
30
- //# sourceMappingURL=theme-controller.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"theme-controller.d.ts","sourceRoot":"","sources":["../../src/orchestrator/theme-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAEtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,MAAM,CAAC;AAI7C,qBAAa,eAAgB,YAAW,kBAAkB;IACxD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAyB;IAE9C,OAAO,CAAC,QAAQ,CAAuB;IAEvC,OAAO,CAAC,UAAU,CAA+B;IAKjD,OAAO,CAAC,MAAM,CAAyB;IAEvC,YAAY,IAAI,EAAE,sBAAsB,EAGvC;IAED,IAAI,KAAK,IAAI,aAAa,CAEzB;IAED,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAAG,IAAI,CAGhD;IAED,aAAa,IAAI,IAAI,CAEpB;IAED,gBAAgB,IAAI,IAAI,CAEvB;IAED,OAAO,CAAC,OAAO;IAcf,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,MAAM;IAMd,OAAO,CAAC,aAAa,CAInB;IAEF,OAAO,CAAC,MAAM;CAKf"}