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

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.
@@ -1,3 +1,3 @@
1
- import { _ as buildBrandingStylesheet, a as createSanitiser, b as startFlow, c as de, d as MANDATORY_GATES_MARKER, f as mandatoryGatesMarkerComment, g as applyBrandingTokens, h as validateBranding, i as layout_chrome_default, l as en, m as applyFontUrl, n as ZitadelLogin, o as builtinLocales, p as patchMandatoryGates, r as ThemeController, s as it, t as ZitadelLogout, u as TEMPLATE_NAMES, v as resolveTheme, x as submitStep, y as getCurrentStep } from "../orchestrator-DGp8rCN7.mjs";
2
- import { t as default_default } from "../default-BG5uwuAm.mjs";
1
+ import { _ as buildBrandingStylesheet, a as createSanitiser, b as startFlow, c as de, d as MANDATORY_GATES_MARKER, f as mandatoryGatesMarkerComment, g as applyBrandingTokens, h as validateBranding, i as layout_chrome_default, l as en, m as applyFontUrl, n as ZitadelLogin, o as builtinLocales, p as patchMandatoryGates, r as ThemeController, s as it, t as ZitadelLogout, u as TEMPLATE_NAMES, v as resolveTheme, x as submitStep, y as getCurrentStep } from "../orchestrator-e33w1C7V.mjs";
2
+ import { t as default_default } from "../default-DD6GYdEe.mjs";
3
3
  export { MANDATORY_GATES_MARKER, TEMPLATE_NAMES, ThemeController, ZitadelLogin, ZitadelLogout, applyBrandingTokens, applyFontUrl, buildBrandingStylesheet, builtinLocales, createSanitiser, de, default_default as defaultTemplate, en, getCurrentStep, it, layout_chrome_default as layoutChromeCss, mandatoryGatesMarkerComment, patchMandatoryGates, resolveTheme, startFlow, submitStep, validateBranding };
@@ -1 +1 @@
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
+ {"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,MAgKhB,CAAC"}
@@ -1 +1 @@
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
+ {"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,CAgKrC,CAAC;AAEF,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC"}
@@ -1 +1 @@
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
+ {"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,MAgKhB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { _ as __decorate, b as t, v as focusVisibleStyles, x as emit, y as baseHostStyles } from "./atoms-Dh5J7QwT.mjs";
2
2
  import { r as tokensCss } from "./tokens-TXmurodq.mjs";
3
- import { t as default_default } from "./default-BG5uwuAm.mjs";
3
+ import { t as default_default } from "./default-DD6GYdEe.mjs";
4
4
  import { manifestRegistry } from "./manifests.mjs";
5
5
  import { LitElement, css, html, nothing } from "lit";
6
6
  import { customElement, property, state } from "lit/decorators.js";
@@ -1572,30 +1572,35 @@ function sanitiseUrl(value, field, issues) {
1572
1572
  //#endregion
1573
1573
  //#region src/orchestrator/font-loader.ts
1574
1574
  /**
1575
- * Inject `branding.font_url` as `<link rel="stylesheet">` inside the
1576
- * `<zitadel-login>` Shadow DOM. Per `docs/design/branding/templates.md`:
1575
+ * Inject `branding.font_url` as `<link rel="stylesheet">` into the host
1576
+ * document's `<head>`. Per `docs/design/branding/templates.md`:
1577
1577
  *
1578
1578
  * "The `font_url` stylesheet is injected by the orchestrator; the template
1579
1579
  * does not emit the `<link>` tag itself."
1580
1580
  *
1581
+ * The link must live at document level, not inside the shadow root:
1582
+ * browsers ignore `@font-face` rules declared in shadow-tree stylesheets,
1583
+ * so a shadow-scoped link would never register the font faces and every
1584
+ * branded font silently falls back to the system stack. `font-family`
1585
+ * references inside the shadow tree resolve against document-level faces.
1586
+ *
1581
1587
  * Idempotent: calling with the same URL is a no-op; calling with a new URL
1582
1588
  * replaces the previous link. Calling with `null`/`undefined` removes any
1583
1589
  * previously injected link.
1584
1590
  */
1585
1591
  const LINK_ID = "zl-font-link";
1586
1592
  function applyFontUrl(shadowRoot, fontUrl) {
1587
- const existing = shadowRoot.getElementById?.(LINK_ID);
1593
+ const ownerDocument = shadowRoot.ownerDocument ?? document;
1594
+ const existing = ownerDocument.head.querySelector(`link#${LINK_ID}`);
1588
1595
  if (!fontUrl) {
1589
1596
  existing?.remove();
1590
1597
  return;
1591
1598
  }
1592
- if (existing && existing.href === fontUrl) return;
1593
- existing?.remove();
1594
- const link = (shadowRoot.ownerDocument ?? document).createElement("link");
1599
+ const link = existing ?? ownerDocument.createElement("link");
1595
1600
  link.id = LINK_ID;
1596
1601
  link.rel = "stylesheet";
1597
- link.href = fontUrl;
1598
- shadowRoot.prepend(link);
1602
+ if (link.href !== fontUrl) link.href = fontUrl;
1603
+ if (!existing) ownerDocument.head.appendChild(link);
1599
1604
  }
1600
1605
  //#endregion
1601
1606
  //#region src/internal/escape-html.ts
@@ -1823,8 +1828,9 @@ const en = {
1823
1828
  "identifier.description": "Enter your email to continue",
1824
1829
  "identifier.field.email": "Work email",
1825
1830
  "identifier.field.email.placeholder": "you@company.com",
1826
- "identifier.action.submit": "Continue",
1827
- "identifier.action.continue": "Continue",
1831
+ "identifier.field.password": "Password",
1832
+ "identifier.action.submit": "Sign in",
1833
+ "identifier.action.continue": "Sign in",
1828
1834
  "identifier.action.passkey": "Sign in with a passkey",
1829
1835
  "identifier.action.register.lead": "Don't have an account? ",
1830
1836
  "identifier.action.register.link": "Sign up",
@@ -1873,7 +1879,7 @@ const en = {
1873
1879
  "password.action.register.lead": "Don't have an account? ",
1874
1880
  "password.action.register.link": "Sign up",
1875
1881
  "register.title": "Create your account",
1876
- "register.description": "Enter your email to get started",
1882
+ "register.description": "",
1877
1883
  "register.field.email": "Work email",
1878
1884
  "register.field.email.placeholder": "you@company.com",
1879
1885
  "register.field.password": "Password",
@@ -1881,8 +1887,10 @@ const en = {
1881
1887
  "register.field.givenName": "Given name",
1882
1888
  "register.field.familyName": "Family name",
1883
1889
  "register.field.dateOfBirth": "Date of birth",
1890
+ "register.field.dateOfBirth.placeholder": "YYYY-MM-DD",
1891
+ "register.field.dateOfBirth.help": "Use YYYY-MM-DD.",
1884
1892
  "register.action.password": "Continue with password",
1885
- "register.action.passkey": "Register with a passkey",
1893
+ "register.action.passkey": "Continue with a passkey",
1886
1894
  "register.action.submit": "Sign up",
1887
1895
  "register.action.sign_in.lead": "Already have an account? ",
1888
1896
  "register.action.sign_in.link": "Sign in",
@@ -1921,8 +1929,9 @@ const de = {
1921
1929
  "identifier.description": "Gib deine E-Mail-Adresse ein, um fortzufahren",
1922
1930
  "identifier.field.email": "E-Mail",
1923
1931
  "identifier.field.email.placeholder": "du@unternehmen.com",
1924
- "identifier.action.submit": "Weiter",
1925
- "identifier.action.continue": "Weiter",
1932
+ "identifier.field.password": "Passwort",
1933
+ "identifier.action.submit": "Anmelden",
1934
+ "identifier.action.continue": "Anmelden",
1926
1935
  "identifier.action.passkey": "Mit Passkey anmelden",
1927
1936
  "identifier.action.register.lead": "Noch kein Konto? ",
1928
1937
  "identifier.action.register.link": "Registrieren",
@@ -1971,13 +1980,18 @@ const de = {
1971
1980
  "password.action.register.lead": "Noch kein Konto? ",
1972
1981
  "password.action.register.link": "Registrieren",
1973
1982
  "register.title": "Konto erstellen",
1974
- "register.description": "Gib deine E-Mail-Adresse ein, um loszulegen",
1983
+ "register.description": "",
1975
1984
  "register.field.email": "E-Mail",
1976
1985
  "register.field.email.placeholder": "du@unternehmen.com",
1977
1986
  "register.field.password": "Passwort",
1978
1987
  "register.field.password.help": "Mindestens 8 Zeichen, einschließlich eines Sonderzeichens und einer Zahl.",
1988
+ "register.field.givenName": "Vorname",
1989
+ "register.field.familyName": "Nachname",
1990
+ "register.field.dateOfBirth": "Geburtsdatum",
1991
+ "register.field.dateOfBirth.placeholder": "JJJJ-MM-TT",
1992
+ "register.field.dateOfBirth.help": "Verwende JJJJ-MM-TT.",
1979
1993
  "register.action.password": "Mit Passwort fortfahren",
1980
- "register.action.passkey": "Mit Passkey registrieren",
1994
+ "register.action.passkey": "Weiter mit Passkey",
1981
1995
  "register.action.submit": "Registrieren",
1982
1996
  "register.action.sign_in.lead": "Bereits ein Konto? ",
1983
1997
  "register.action.sign_in.link": "Anmelden",
@@ -2015,8 +2029,9 @@ const it = {
2015
2029
  "identifier.description": "Inserisci la tua e-mail per continuare",
2016
2030
  "identifier.field.email": "E-mail aziendale",
2017
2031
  "identifier.field.email.placeholder": "tu@azienda.com",
2018
- "identifier.action.submit": "Continua",
2019
- "identifier.action.continue": "Continua",
2032
+ "identifier.field.password": "Password",
2033
+ "identifier.action.submit": "Accedi",
2034
+ "identifier.action.continue": "Accedi",
2020
2035
  "identifier.action.passkey": "Accedi con passkey",
2021
2036
  "identifier.action.register.lead": "Non hai un account? ",
2022
2037
  "identifier.action.register.link": "Registrati",
@@ -2065,13 +2080,18 @@ const it = {
2065
2080
  "password.action.register.lead": "Non hai un account? ",
2066
2081
  "password.action.register.link": "Registrati",
2067
2082
  "register.title": "Crea il tuo account",
2068
- "register.description": "Inserisci la tua e-mail per iniziare",
2083
+ "register.description": "",
2069
2084
  "register.field.email": "E-mail aziendale",
2070
2085
  "register.field.email.placeholder": "tu@azienda.com",
2071
2086
  "register.field.password": "Password",
2072
2087
  "register.field.password.help": "Almeno 8 caratteri, incluso un simbolo e un numero.",
2088
+ "register.field.givenName": "Nome",
2089
+ "register.field.familyName": "Cognome",
2090
+ "register.field.dateOfBirth": "Data di nascita",
2091
+ "register.field.dateOfBirth.placeholder": "AAAA-MM-GG",
2092
+ "register.field.dateOfBirth.help": "Usa AAAA-MM-GG.",
2073
2093
  "register.action.password": "Continua con password",
2074
- "register.action.passkey": "Registrati con passkey",
2094
+ "register.action.passkey": "Continua con passkey",
2075
2095
  "register.action.submit": "Registrati",
2076
2096
  "register.action.sign_in.lead": "Hai già un account? ",
2077
2097
  "register.action.sign_in.link": "Accedi",
@@ -3340,4 +3360,4 @@ function fillTemplateTokens(fragment, name, email, initial) {
3340
3360
  //#endregion
3341
3361
  export { buildBrandingStylesheet as _, createSanitiser as a, startFlow as b, de as c, MANDATORY_GATES_MARKER as d, mandatoryGatesMarkerComment as f, applyBrandingTokens as g, validateBranding as h, layout_chrome_default as i, en as l, applyFontUrl as m, ZitadelLogin as n, builtinLocales as o, patchMandatoryGates as p, ThemeController as r, it as s, ZitadelLogout as t, TEMPLATE_NAMES as u, resolveTheme as v, submitStep as x, getCurrentStep as y };
3342
3362
 
3343
- //# sourceMappingURL=orchestrator-DGp8rCN7.mjs.map
3363
+ //# sourceMappingURL=orchestrator-e33w1C7V.mjs.map