@nice2dev/ui-presentations 1.3.12 → 1.3.14

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @nice2dev/ui-presentations — Changelog
2
2
 
3
+ ## 1.3.14
4
+
5
+ No changes in this release.
6
+
7
+ ## 1.3.13
8
+
9
+ No changes in this release.
10
+
3
11
  ## 1.3.12
4
12
 
5
13
  No changes in this release.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-presentations",
3
- "version": "1.3.12",
3
+ "version": "1.3.14",
4
4
  "description": "Nice2Dev Presentation Editor & Player — animated slides with data binding, charts, diagram embedding, and custom .ndp.json format",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -39,7 +39,7 @@
39
39
  "@nice2dev/ui": "^1.3.0"
40
40
  },
41
41
  "devDependencies": {
42
- "@nice2dev/ui": "^1.3.12",
42
+ "@nice2dev/ui": "^1.3.14",
43
43
  "@testing-library/jest-dom": "^7.0.1",
44
44
  "@testing-library/react": "^16.3.3",
45
45
  "@types/react": "^19.2.18",
@@ -1,16 +0,0 @@
1
- /**
2
- * Interactive slide elements for audience engagement
3
- *
4
- * Provides components for:
5
- * - Buttons with actions (navigation, media control, custom events)
6
- * - Live polls with real-time results
7
- * - Quizzes with scoring and feedback
8
- * - Countdown timers
9
- * - Q&A submission widgets
10
- */
11
- export { InteractiveButton } from './InteractiveButton';
12
- export { InteractivePoll } from './InteractivePoll';
13
- export { InteractiveQuiz } from './InteractiveQuiz';
14
- export { InteractiveCountdown } from './InteractiveCountdown';
15
- export { InteractiveQnA } from './InteractiveQnA';
16
- export type { ButtonContent, ButtonAction, PollContent, PollOption, QuizContent, QuizAnswer, CountdownContent, QnAContent, QnAQuestion, } from '../../types/presentationTypes';
@@ -1,137 +0,0 @@
1
- import { default as React } from 'react';
2
- export interface RecordingConfig {
3
- video: VideoConfig;
4
- audio: AudioConfig;
5
- webcam: WebcamConfig;
6
- output: OutputConfig;
7
- presentation: PresentationRecordingConfig;
8
- }
9
- export interface VideoConfig {
10
- width: number;
11
- height: number;
12
- frameRate: number;
13
- videoBitsPerSecond?: number;
14
- codec?: string;
15
- }
16
- export interface AudioConfig {
17
- enabled: boolean;
18
- sampleRate?: number;
19
- audioBitsPerSecond?: number;
20
- echoCancellation?: boolean;
21
- noiseSuppression?: boolean;
22
- autoGainControl?: boolean;
23
- channelCount?: number;
24
- }
25
- export interface WebcamConfig {
26
- enabled: boolean;
27
- deviceId?: string;
28
- position: WebcamPosition;
29
- size: WebcamSize;
30
- shape: 'circle' | 'rectangle' | 'rounded';
31
- borderWidth?: number;
32
- borderColor?: string;
33
- shadow?: boolean;
34
- mirror?: boolean;
35
- greenScreen?: {
36
- enabled: boolean;
37
- color?: string;
38
- threshold?: number;
39
- };
40
- }
41
- export type WebcamPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'custom';
42
- export type WebcamSize = 'small' | 'medium' | 'large' | {
43
- width: number;
44
- height: number;
45
- };
46
- export interface OutputConfig {
47
- format: 'webm' | 'mp4';
48
- filename?: string;
49
- quality: 'low' | 'medium' | 'high' | 'ultra';
50
- includeTimestamps?: boolean;
51
- }
52
- export interface PresentationRecordingConfig {
53
- slideChanges: boolean;
54
- animations: boolean;
55
- transitions: boolean;
56
- laserPointer: boolean;
57
- cursorVisible: boolean;
58
- annotations: boolean;
59
- }
60
- export type RecordingStatus = 'idle' | 'requesting-permissions' | 'ready' | 'countdown' | 'recording' | 'paused' | 'stopping' | 'processing' | 'complete' | 'error';
61
- export interface RecordingState {
62
- status: RecordingStatus;
63
- error?: string;
64
- duration: number;
65
- currentSlide: number;
66
- slideTimestamps: SlideTimestamp[];
67
- blob?: Blob;
68
- url?: string;
69
- }
70
- export interface SlideTimestamp {
71
- slideIndex: number;
72
- time: number;
73
- title?: string;
74
- }
75
- export interface MediaDevice {
76
- deviceId: string;
77
- label: string;
78
- kind: 'videoinput' | 'audioinput' | 'audiooutput';
79
- }
80
- export interface AvailableDevices {
81
- cameras: MediaDevice[];
82
- microphones: MediaDevice[];
83
- speakers: MediaDevice[];
84
- }
85
- export interface RecordingContextValue {
86
- state: RecordingState;
87
- config: RecordingConfig;
88
- devices: AvailableDevices;
89
- setConfig: (config: Partial<RecordingConfig>) => void;
90
- setWebcamConfig: (config: Partial<WebcamConfig>) => void;
91
- setAudioConfig: (config: Partial<AudioConfig>) => void;
92
- requestPermissions: () => Promise<boolean>;
93
- startRecording: (countdownSeconds?: number) => Promise<void>;
94
- pauseRecording: () => void;
95
- resumeRecording: () => void;
96
- stopRecording: () => Promise<Blob>;
97
- cancelRecording: () => void;
98
- markSlideChange: (slideIndex: number, title?: string) => void;
99
- webcamStream: MediaStream | null;
100
- downloadRecording: (filename?: string) => void;
101
- exportTimestamps: () => SlideTimestamp[];
102
- }
103
- export interface RecordingProviderProps {
104
- children: React.ReactNode;
105
- slideContainer?: HTMLElement | null;
106
- initialConfig?: Partial<RecordingConfig>;
107
- }
108
- export declare function RecordingProvider({ children, slideContainer, initialConfig, }: RecordingProviderProps): React.ReactElement;
109
- export declare function useRecording(): RecordingContextValue;
110
- export declare function useRecordingStatus(): RecordingStatus;
111
- export declare function useRecordingDuration(): number;
112
- export interface WebcamPreviewProps {
113
- className?: string;
114
- style?: React.CSSProperties;
115
- }
116
- export declare function WebcamPreview({ className, style }: WebcamPreviewProps): React.ReactElement | null;
117
- export interface RecordingControlsProps {
118
- className?: string;
119
- style?: React.CSSProperties;
120
- onComplete?: (blob: Blob) => void;
121
- }
122
- export declare function RecordingControls({ className, style, onComplete, }: RecordingControlsProps): React.ReactElement;
123
- export interface RecordingIndicatorProps {
124
- className?: string;
125
- style?: React.CSSProperties;
126
- }
127
- export declare function RecordingIndicator({ className, style, }: RecordingIndicatorProps): React.ReactElement | null;
128
- declare const _default: {
129
- RecordingProvider: typeof RecordingProvider;
130
- useRecording: typeof useRecording;
131
- useRecordingStatus: typeof useRecordingStatus;
132
- useRecordingDuration: typeof useRecordingDuration;
133
- WebcamPreview: typeof WebcamPreview;
134
- RecordingControls: typeof RecordingControls;
135
- RecordingIndicator: typeof RecordingIndicator;
136
- };
137
- export default _default;
@@ -1,143 +0,0 @@
1
- import { NicePresentationDocument } from '../types/presentationTypes';
2
- export interface InvestorDeckData {
3
- /** Company info */
4
- companyName: string;
5
- tagline: string;
6
- logo?: string;
7
- website?: string;
8
- presentedBy?: string;
9
- presentationDate?: string;
10
- /** Problem section */
11
- problem: {
12
- headline: string;
13
- painPoints: string[];
14
- currentSolutions: string[];
15
- marketGap: string;
16
- };
17
- /** Solution section */
18
- solution: {
19
- headline: string;
20
- description: string;
21
- keyFeatures: Array<{
22
- name: string;
23
- description: string;
24
- icon?: string;
25
- }>;
26
- differentiators: string[];
27
- };
28
- /** Market opportunity */
29
- market: {
30
- tam: number;
31
- sam: number;
32
- som: number;
33
- growthRate: number;
34
- trends: string[];
35
- };
36
- /** Product details */
37
- product: {
38
- screenshots?: string[];
39
- demo?: string;
40
- techStack?: string[];
41
- roadmapItems?: Array<{
42
- item: string;
43
- timeline: string;
44
- status: 'done' | 'in-progress' | 'planned';
45
- }>;
46
- };
47
- /** Traction metrics */
48
- traction: {
49
- metrics: Array<{
50
- name: string;
51
- value: string | number;
52
- growth?: number;
53
- }>;
54
- milestones: Array<{
55
- date: string;
56
- achievement: string;
57
- }>;
58
- testimonials?: Array<{
59
- quote: string;
60
- author: string;
61
- company: string;
62
- }>;
63
- };
64
- /** Business model */
65
- businessModel: {
66
- revenueStreams: Array<{
67
- name: string;
68
- description: string;
69
- percentage?: number;
70
- }>;
71
- pricing?: Array<{
72
- tier: string;
73
- price: string;
74
- features: string[];
75
- }>;
76
- unitEconomics?: {
77
- cac: number;
78
- ltv: number;
79
- payback: number;
80
- margins: number;
81
- };
82
- };
83
- /** Competition */
84
- competition: {
85
- competitors: Array<{
86
- name: string;
87
- strengths: string[];
88
- weaknesses: string[];
89
- marketShare?: number;
90
- }>;
91
- competitiveAdvantages: string[];
92
- };
93
- /** Team */
94
- team: Array<{
95
- name: string;
96
- role: string;
97
- photo?: string;
98
- background: string;
99
- linkedin?: string;
100
- }>;
101
- /** Advisors */
102
- advisors?: Array<{
103
- name: string;
104
- expertise: string;
105
- photo?: string;
106
- }>;
107
- /** Financial projections */
108
- financials: {
109
- currentRevenue?: number;
110
- projections: Array<{
111
- year: number;
112
- revenue: number;
113
- costs: number;
114
- profit?: number;
115
- }>;
116
- burnRate?: number;
117
- runway?: number;
118
- };
119
- /** The Ask */
120
- ask: {
121
- amount: number;
122
- use: Array<{
123
- category: string;
124
- percentage: number;
125
- description: string;
126
- }>;
127
- previousFunding?: Array<{
128
- round: string;
129
- amount: number;
130
- investors: string[];
131
- }>;
132
- targetClose?: string;
133
- };
134
- /** Contact */
135
- contact: {
136
- email: string;
137
- phone?: string;
138
- calendly?: string;
139
- address?: string;
140
- };
141
- }
142
- export declare function generateInvestorDeck(data: InvestorDeckData): NicePresentationDocument;
143
- export default generateInvestorDeck;