@sekyro/react 0.1.0-rc.12 → 0.1.0-rc.13

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.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Strings, a as SekyroLocale } from './theme-DqD8Nyoq.cjs';
2
- export { B as BuiltInTipId, D as DEFAULT_THEME, b as DEFAULT_TIPS, I as IntroContext, c as IntroTip, L as LivenessCapture, d as LivenessCaptureProps, e as LivenessCaptureSlots, f as LivenessNotice, N as NO_FACE_DEBOUNCE_MS, g as SekyroTheme, h as SekyroThemeColors, i as SekyroThemeProvider, j as SekyroThemeProviderProps, k as StringKey, V as VOICE_KEYS, l as VoiceClipMap, m as VoiceClipResolver, n as VoiceClipSource, o as VoiceControl, p as VoiceKey, q as VoiceOptions, r as attemptsRemainingText, s as brandingToTheme, t as captureErrorStringKey, u as en, v as hintStringKey, w as mergeThemes, x as reasonStringKey, y as retryAfterTime, z as themeToCssVars } from './theme-DqD8Nyoq.cjs';
1
+ import { S as Strings, a as SekyroLocale } from './theme-qTwMxyZM.cjs';
2
+ export { B as BuiltInTipId, D as DEFAULT_THEME, b as DEFAULT_TIPS, I as IntroContext, c as IntroTip, L as LivenessCapture, d as LivenessCaptureProps, e as LivenessCaptureSlots, f as LivenessNotice, N as NO_FACE_DEBOUNCE_MS, g as SekyroTheme, h as SekyroThemeColors, i as SekyroThemeProvider, j as SekyroThemeProviderProps, k as StringKey, V as VOICE_KEYS, l as VoiceClipMap, m as VoiceClipResolver, n as VoiceClipSource, o as VoiceControl, p as VoiceKey, q as VoiceOptions, r as attemptsRemainingText, s as brandingToTheme, t as captureErrorStringKey, u as en, v as hintStringKey, w as mergeThemes, x as reasonStringKey, y as retryAfterTime, z as themeToCssVars } from './theme-qTwMxyZM.cjs';
3
3
  import '@sekyro/web';
4
4
  import 'react';
5
5
 
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { S as Strings, a as SekyroLocale } from './theme-DqD8Nyoq.js';
2
- export { B as BuiltInTipId, D as DEFAULT_THEME, b as DEFAULT_TIPS, I as IntroContext, c as IntroTip, L as LivenessCapture, d as LivenessCaptureProps, e as LivenessCaptureSlots, f as LivenessNotice, N as NO_FACE_DEBOUNCE_MS, g as SekyroTheme, h as SekyroThemeColors, i as SekyroThemeProvider, j as SekyroThemeProviderProps, k as StringKey, V as VOICE_KEYS, l as VoiceClipMap, m as VoiceClipResolver, n as VoiceClipSource, o as VoiceControl, p as VoiceKey, q as VoiceOptions, r as attemptsRemainingText, s as brandingToTheme, t as captureErrorStringKey, u as en, v as hintStringKey, w as mergeThemes, x as reasonStringKey, y as retryAfterTime, z as themeToCssVars } from './theme-DqD8Nyoq.js';
1
+ import { S as Strings, a as SekyroLocale } from './theme-qTwMxyZM.js';
2
+ export { B as BuiltInTipId, D as DEFAULT_THEME, b as DEFAULT_TIPS, I as IntroContext, c as IntroTip, L as LivenessCapture, d as LivenessCaptureProps, e as LivenessCaptureSlots, f as LivenessNotice, N as NO_FACE_DEBOUNCE_MS, g as SekyroTheme, h as SekyroThemeColors, i as SekyroThemeProvider, j as SekyroThemeProviderProps, k as StringKey, V as VOICE_KEYS, l as VoiceClipMap, m as VoiceClipResolver, n as VoiceClipSource, o as VoiceControl, p as VoiceKey, q as VoiceOptions, r as attemptsRemainingText, s as brandingToTheme, t as captureErrorStringKey, u as en, v as hintStringKey, w as mergeThemes, x as reasonStringKey, y as retryAfterTime, z as themeToCssVars } from './theme-qTwMxyZM.js';
3
3
  import '@sekyro/web';
4
4
  import 'react';
5
5
 
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  "use client";
2
- import{b as a,c,d as l,e as E,f as g}from"./chunk-ZCAZDOMD.js";import{c as m,e as S,f as T,g as C}from"./chunk-ALUF2O22.js";import"./chunk-LNZR3RXG.js";import{b as e,e as r,f as t,j as o,l as p,m as i,n as y,o as n,p as s}from"./chunk-34326C2I.js";import"./chunk-2KED7D2Q.js";export{a as DEFAULT_THEME,m as DEFAULT_TIPS,C as LivenessCapture,T as NO_FACE_DEBOUNCE_MS,g as SekyroThemeProvider,S as VOICE_KEYS,r as ar,n as attemptsRemainingText,l as brandingToTheme,p as captureErrorStringKey,e as en,t as fr,o as hintStringKey,E as mergeThemes,i as reasonStringKey,s as resolveStrings,y as retryAfterTime,c as themeToCssVars};
2
+ import{b as a,c,e as l,f as E,g}from"./chunk-Y37ZXFOA.js";import{d as m,f as S,g as T,h as C}from"./chunk-Z5UFPMM6.js";import"./chunk-LNZR3RXG.js";import{b as e,e as r,f as t,j as o,l as p,m as i,n as y,o as n,p as s}from"./chunk-34326C2I.js";import"./chunk-2KED7D2Q.js";export{a as DEFAULT_THEME,m as DEFAULT_TIPS,C as LivenessCapture,T as NO_FACE_DEBOUNCE_MS,g as SekyroThemeProvider,S as VOICE_KEYS,r as ar,n as attemptsRemainingText,l as brandingToTheme,p as captureErrorStringKey,e as en,t as fr,o as hintStringKey,E as mergeThemes,i as reasonStringKey,s as resolveStrings,y as retryAfterTime,c as themeToCssVars};
@@ -440,11 +440,26 @@ interface SekyroThemeColors {
440
440
  surface: string;
441
441
  /** Focus ring. */
442
442
  ring: string;
443
- /** Error accents (notice border / tint). */
443
+ /**
444
+ * Error accents (notice border / tint).
445
+ *
446
+ * @deprecated Status colours are standard since 0.1.0-rc.13; this key is ignored in a theme you pass and will be
447
+ * removed in 1.0. {@link DEFAULT_THEME} still lists the Sekyro value.
448
+ */
444
449
  danger: string;
445
- /** Gate-locked ring + success accents. */
450
+ /**
451
+ * Gate-locked ring + success accents.
452
+ *
453
+ * @deprecated Status colours are standard since 0.1.0-rc.13; this key is ignored in a theme you pass and will be
454
+ * removed in 1.0. {@link DEFAULT_THEME} still lists the Sekyro value.
455
+ */
446
456
  success: string;
447
- /** Draining-ring and retry-notice accents. */
457
+ /**
458
+ * Draining-ring and retry-notice accents.
459
+ *
460
+ * @deprecated Status colours are standard since 0.1.0-rc.13; this key is ignored in a theme you pass and will be
461
+ * removed in 1.0. {@link DEFAULT_THEME} still lists the Sekyro value.
462
+ */
448
463
  warning: string;
449
464
  }
450
465
  /** Theme shape accepted by {@link SekyroThemeProvider}. Partial: unset tokens keep the defaults. */
@@ -470,7 +485,9 @@ declare function themeToCssVars(theme?: SekyroTheme): Record<string, string>;
470
485
  /**
471
486
  * Map the session's org / app branding (`HostedSessionView.branding`, set in
472
487
  * the Sekyro dashboard) onto a {@link SekyroTheme}. Each colour maps to the
473
- * theme key of the same name and the focus ring follows `brand`. Values that
488
+ * theme key of the same name and the focus ring follows `brand`. Status
489
+ * colours are standard: `danger`, `success` and `warning` from an older
490
+ * server are ignored. Values that
474
491
  * are not `#rrggbb` are ignored. Combine with your own theme through
475
492
  * {@link mergeThemes} — pass yours LAST so it wins:
476
493
  * `mergeThemes(brandingToTheme(view.branding), myTheme)`.
@@ -490,6 +507,8 @@ interface SekyroThemeProviderProps {
490
507
  /**
491
508
  * Writes the theme's CSS variables on a wrapper `<div class="sekyro-root">`.
492
509
  * Nest inside your own layout; import `@sekyro/react/styles.css` once.
510
+ * Status colours are standard: `danger`, `success` and `warning` in `theme`
511
+ * are ignored.
493
512
  */
494
513
  declare function SekyroThemeProvider({ theme, children, className }: SekyroThemeProviderProps): react.JSX.Element;
495
514
 
@@ -440,11 +440,26 @@ interface SekyroThemeColors {
440
440
  surface: string;
441
441
  /** Focus ring. */
442
442
  ring: string;
443
- /** Error accents (notice border / tint). */
443
+ /**
444
+ * Error accents (notice border / tint).
445
+ *
446
+ * @deprecated Status colours are standard since 0.1.0-rc.13; this key is ignored in a theme you pass and will be
447
+ * removed in 1.0. {@link DEFAULT_THEME} still lists the Sekyro value.
448
+ */
444
449
  danger: string;
445
- /** Gate-locked ring + success accents. */
450
+ /**
451
+ * Gate-locked ring + success accents.
452
+ *
453
+ * @deprecated Status colours are standard since 0.1.0-rc.13; this key is ignored in a theme you pass and will be
454
+ * removed in 1.0. {@link DEFAULT_THEME} still lists the Sekyro value.
455
+ */
446
456
  success: string;
447
- /** Draining-ring and retry-notice accents. */
457
+ /**
458
+ * Draining-ring and retry-notice accents.
459
+ *
460
+ * @deprecated Status colours are standard since 0.1.0-rc.13; this key is ignored in a theme you pass and will be
461
+ * removed in 1.0. {@link DEFAULT_THEME} still lists the Sekyro value.
462
+ */
448
463
  warning: string;
449
464
  }
450
465
  /** Theme shape accepted by {@link SekyroThemeProvider}. Partial: unset tokens keep the defaults. */
@@ -470,7 +485,9 @@ declare function themeToCssVars(theme?: SekyroTheme): Record<string, string>;
470
485
  /**
471
486
  * Map the session's org / app branding (`HostedSessionView.branding`, set in
472
487
  * the Sekyro dashboard) onto a {@link SekyroTheme}. Each colour maps to the
473
- * theme key of the same name and the focus ring follows `brand`. Values that
488
+ * theme key of the same name and the focus ring follows `brand`. Status
489
+ * colours are standard: `danger`, `success` and `warning` from an older
490
+ * server are ignored. Values that
474
491
  * are not `#rrggbb` are ignored. Combine with your own theme through
475
492
  * {@link mergeThemes} — pass yours LAST so it wins:
476
493
  * `mergeThemes(brandingToTheme(view.branding), myTheme)`.
@@ -490,6 +507,8 @@ interface SekyroThemeProviderProps {
490
507
  /**
491
508
  * Writes the theme's CSS variables on a wrapper `<div class="sekyro-root">`.
492
509
  * Nest inside your own layout; import `@sekyro/react/styles.css` once.
510
+ * Status colours are standard: `danger`, `success` and `warning` in `theme`
511
+ * are ignored.
493
512
  */
494
513
  declare function SekyroThemeProvider({ theme, children, className }: SekyroThemeProviderProps): react.JSX.Element;
495
514