eidotter 0.29.0 → 0.31.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.
@@ -8,9 +8,9 @@ export interface AITextProps {
8
8
  /**
9
9
  * Inline marker for AI-drafted prose. Renders a `<span>` with
10
10
  * `data-provenance="ai-draft"`, the canonical attribute set by the eidotter
11
- * provenance system (DMNC-884). The visual treatment — magenta→white→cyan
12
- * gradient with a slow shimmer — lives in `src/styles/provenance.css` and is
13
- * shared with the per-paragraph diff pipeline.
11
+ * provenance system (DMNC-884). The visual treatment — a static, theme-aware
12
+ * magenta gradient clipped to the text ('AI writer' style; DMNC-946) — lives in
13
+ * `src/styles/provenance.css` and is shared with the per-paragraph diff pipeline.
14
14
  *
15
15
  * For per-paragraph use inside MDX, prefer wrapping the paragraph directly:
16
16
  * <p data-provenance="ai-draft">…</p>
@@ -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 {
@@ -26,7 +26,7 @@ export interface InlineLinkProps extends Omit<React.AnchorHTMLAttributes<HTMLAnc
26
26
  *
27
27
  * Rest: dotted amber underline, trailing `▸`.
28
28
  * Hover: phosphor inversion — amber background, dark foreground.
29
- * Visited: dimmed amber (`--color-cga-amber-dim` → brown fallback).
29
+ * Visited: dimmed amber (`text.tertiary` role; amber-dim under the default theme).
30
30
  * External: opens in a new tab safely, trailing glyph becomes `↗`.
31
31
  *
32
32
  * Consumer-passed `target="_blank"` is treated as implicit-external for
@@ -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 */