@qwanyx/stack 0.2.92 → 0.2.94

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.
@@ -14,6 +14,7 @@ export interface AnimatedCardFlipProps {
14
14
  maxInterval?: number;
15
15
  onCardClick?: (node: AnimatedCardFlipNode) => void;
16
16
  cardSize?: 'small' | 'medium' | 'large';
17
+ aspectRatio?: '1:1' | '2:3';
17
18
  className?: string;
18
19
  }
19
- export declare function AnimatedCardFlip({ nodes, minInterval, maxInterval, onCardClick, cardSize, className }: AnimatedCardFlipProps): import("react/jsx-runtime").JSX.Element;
20
+ export declare function AnimatedCardFlip({ nodes, minInterval, maxInterval, onCardClick, cardSize, aspectRatio, className }: AnimatedCardFlipProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Netflix Card Component
3
+ * Individual card with hover effect
4
+ */
5
+ import { NetflixCardProps } from './types';
6
+ export declare function NetflixCard({ node, aspectRatio, onClick }: NetflixCardProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Netflix Detail Modal
3
+ * Full detail view for a node
4
+ */
5
+ import { NetflixDetailProps } from './types';
6
+ export declare function NetflixDetail({ node, onClose }: NetflixDetailProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Netflix Lane Component
3
+ * Horizontal scrollable row with Netflix-style arrows
4
+ */
5
+ import { NetflixLaneProps } from './types';
6
+ export declare function NetflixLane({ title, nodes, cardAspectRatio, onNodeClick }: NetflixLaneProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Netflix Stack Component
3
+ * Netflix-like browsing experience with horizontal lanes
4
+ */
5
+ import { NetflixStackProps } from './types';
6
+ export declare function NetflixStack({ nodes, lanes, cardAspectRatio, onNodeClick, }: NetflixStackProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Netflix Stack - Netflix-like browsing experience
3
+ */
4
+ export { NetflixStack } from './NetflixStack';
5
+ export { NetflixLane } from './NetflixLane';
6
+ export { NetflixCard } from './NetflixCard';
7
+ export { NetflixDetail } from './NetflixDetail';
8
+ export type { NetflixStackProps, NetflixLaneProps, NetflixCardProps, NetflixDetailProps, LaneConfig, } from './types';
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Netflix Stack Types
3
+ */
4
+ import { GraphNode } from '../../types';
5
+ export interface LaneConfig {
6
+ id: string;
7
+ title: string;
8
+ filter: (node: GraphNode) => boolean;
9
+ }
10
+ export interface NetflixStackProps {
11
+ nodes: GraphNode[];
12
+ lanes: LaneConfig[];
13
+ cardAspectRatio?: '1:1' | '2:3' | '16:9';
14
+ onNodeClick?: (node: GraphNode) => void;
15
+ }
16
+ export interface NetflixLaneProps {
17
+ title: string;
18
+ nodes: GraphNode[];
19
+ cardAspectRatio: '1:1' | '2:3' | '16:9';
20
+ onNodeClick: (node: GraphNode) => void;
21
+ }
22
+ export interface NetflixCardProps {
23
+ node: GraphNode;
24
+ aspectRatio: '1:1' | '2:3' | '16:9';
25
+ onClick: () => void;
26
+ }
27
+ export interface NetflixDetailProps {
28
+ node: GraphNode;
29
+ onClose: () => void;
30
+ }
31
+ export declare function getNodeImage(node: GraphNode): string | undefined;
32
+ export declare function getNodeSubtitle(node: GraphNode): string | undefined;
33
+ export declare function getNodeDescription(node: GraphNode): string | undefined;
34
+ export declare function getNodeMeta(node: GraphNode): string;
@@ -14,6 +14,8 @@ export interface VoiceTextEditorProps {
14
14
  onTranscribe: (audioBlob: Blob) => Promise<string | null>;
15
15
  /** Called for AI actions - should return transformed text */
16
16
  onAIAction?: (action: 'restructure' | 'proofread' | 'rewrite', text: string) => Promise<string>;
17
+ /** Called for custom AI prompt - should return transformed text */
18
+ onAIPrompt?: (prompt: string, text: string) => Promise<string>;
17
19
  /** Placeholder text for textarea */
18
20
  placeholder?: string;
19
21
  /** Additional CSS classes */
@@ -21,4 +23,4 @@ export interface VoiceTextEditorProps {
21
23
  /** Number of rows for textarea (if not flex) */
22
24
  rows?: number;
23
25
  }
24
- export declare function VoiceTextEditor({ label, value, onChange, onTranscribe, onAIAction, placeholder, className, rows }: VoiceTextEditorProps): import("react/jsx-runtime").JSX.Element;
26
+ export declare function VoiceTextEditor({ label, value, onChange, onTranscribe, onAIAction, onAIPrompt, placeholder, className, rows }: VoiceTextEditorProps): import("react/jsx-runtime").JSX.Element;