lucent-ui 0.41.0 → 0.42.0

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.d.ts CHANGED
@@ -1187,6 +1187,9 @@ export declare interface LucentTokens extends SemanticColorTokens, TypographyTok
1187
1187
  * Generates a CSS string of custom properties from a token set.
1188
1188
  * Inject the result into a <style> tag or a CSS-in-JS solution.
1189
1189
  *
1190
+ * Token values are sanitized to prevent CSS injection — characters that
1191
+ * could break out of a property value context (`{};<>@\`) are stripped.
1192
+ *
1190
1193
  * @example
1191
1194
  * const css = makeLibraryCSS(lightTokens);
1192
1195
  * document.getElementById('lucent-tokens').textContent = css;
@@ -1628,6 +1631,15 @@ export declare interface RowProps {
1628
1631
  'aria-labelledby'?: string;
1629
1632
  }
1630
1633
 
1634
+ /**
1635
+ * Returns the href unchanged if it uses a safe protocol (http, https, mailto, tel,
1636
+ * or relative path), otherwise returns `undefined` to prevent navigation.
1637
+ *
1638
+ * Blocks `javascript:`, `data:`, `vbscript:`, and any other executable protocol
1639
+ * that could be used for XSS via href injection.
1640
+ */
1641
+ export declare function sanitizeHref(href: string | undefined): string | undefined;
1642
+
1631
1643
  export declare function SearchInput({ value, onChange, mode, placeholder, size, label, helperText, errorText, results, onResultSelect, isLoading, disabled, id, style, }: SearchInputProps): JSX_2.Element;
1632
1644
 
1633
1645
  export declare const SearchInputManifest: ComponentManifest;