eidotter 0.28.0 → 0.30.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.
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../styles/keyframes.css';
2
3
  import './CmdPalette.css';
3
4
  export interface CmdPaletteItem {
4
5
  /** Stable identifier for React keys and `onSelect` lookups. */
@@ -9,7 +9,13 @@ export interface FilterBarItem {
9
9
  count?: number;
10
10
  /** Whether this item is disabled */
11
11
  disabled?: boolean;
12
- /** Optional CGA color token for active state (e.g. '--color-cga-bright-cyan') */
12
+ /**
13
+ * Optional colour-role token for the active state, applied as a CSS custom
14
+ * property. Prefer a semantic role (e.g. `--color-semantic-text-accent`) so
15
+ * the active colour follows the active theme; raw `--color-cga-*` primitives
16
+ * are accepted but won't re-theme. (A themeable per-category palette is
17
+ * tracked with the token rationalization, DMNC-922/1059.)
18
+ */
13
19
  color?: string;
14
20
  }
15
21
  export interface FilterBarProps {
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { TimelineImage } from '../../TimelineContainer/components/types';
3
+ import '../../../styles/keyframes.css';
3
4
  import './Lightbox.css';
4
5
  export interface LightboxProps {
5
6
  /** Images to navigate between. */
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import '../../../styles/keyframes.css';
2
3
  import './Modal.css';
3
4
  export interface ModalProps {
4
5
  /** Whether the modal is open */
@@ -31,6 +31,28 @@ export interface RetroEffectsProps {
31
31
  * pattern (DMNC-1047).
32
32
  */
33
33
  boot?: boolean;
34
+ /**
35
+ * Gate `boot` to once per browser tab/session (via sessionStorage). The boot
36
+ * sequence plays on the first load of a tab and is suppressed on every
37
+ * subsequent mount within the same tab — both SPA route changes and MPA
38
+ * full-reload navigation. A new tab/visit replays it; a hard refresh does not.
39
+ * No-op unless `boot` is also set. Falls back to playing if storage is
40
+ * unavailable (e.g. private mode).
41
+ *
42
+ * Like `boot`, this is evaluated once on mount; changing it afterwards has no
43
+ * effect (remount the component — e.g. via `key` — to re-evaluate).
44
+ */
45
+ bootOnce?: boolean;
46
+ /**
47
+ * sessionStorage key used by `bootOnce`. Defaults to `'eidotter:retro-boot'`.
48
+ * Override to scope the once-per-session flag independently, or to force a
49
+ * replay (e.g. a fresh key in a Storybook story). Read once on mount.
50
+ *
51
+ * Instances that mount simultaneously and share a key share one flag (the
52
+ * intended single-overlay case); give each a distinct key if they must gate
53
+ * independently.
54
+ */
55
+ bootStorageKey?: string;
34
56
  /**
35
57
  * Intensity of the effects (0-1)
36
58
  */