@pathfolio/types 0.3.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.
package/dist/app.d.ts ADDED
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Type definitions for Pathfolio apps in the hub
3
+ */
4
+ export type AppColor = 'primary' | 'secondary' | 'success';
5
+ export type AppStatus = 'active' | 'coming-soon';
6
+ export interface PathfolioApp {
7
+ /** Unique identifier */
8
+ id: string;
9
+ /** Display name */
10
+ name: string;
11
+ /** Short description */
12
+ description: string;
13
+ /** Lucide icon name (e.g., 'i-lucide-file-text') */
14
+ icon: string;
15
+ /** Color theme for the app card */
16
+ color: AppColor;
17
+ /** Availability status */
18
+ status: AppStatus;
19
+ /** Runtime config key for the app URL (e.g., 'resumeBuilderUrl') */
20
+ urlKey: string;
21
+ }
22
+ /**
23
+ * Predefined apps available in Pathfolio
24
+ */
25
+ export declare const PATHFOLIO_APPS: PathfolioApp[];
26
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;AAC3D,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEjD,MAAM,WAAW,YAAY;IAC3B,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,wBAAwB;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,KAAK,EAAE,QAAQ,CAAC;IAChB,0BAA0B;IAC1B,MAAM,EAAE,SAAS,CAAC;IAClB,oEAAoE;IACpE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,YAAY,EAyCxC,CAAC"}
package/dist/app.js ADDED
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Type definitions for Pathfolio apps in the hub
3
+ */
4
+ /**
5
+ * Predefined apps available in Pathfolio
6
+ */
7
+ export const PATHFOLIO_APPS = [
8
+ {
9
+ id: 'resume-builder',
10
+ name: 'Resume Builder',
11
+ description: 'Create stunning, ATS-optimized resumes with our intuitive drag-and-drop editor.',
12
+ icon: 'i-lucide-file-text',
13
+ color: 'primary',
14
+ status: 'active',
15
+ urlKey: 'resumeBuilderUrl',
16
+ },
17
+ {
18
+ id: 'ats-checker',
19
+ name: 'ATS Checker',
20
+ description: 'Analyze your resume against job descriptions for better match rates.',
21
+ icon: 'i-lucide-scan-search',
22
+ color: 'success',
23
+ status: 'coming-soon',
24
+ urlKey: 'atsCheckerUrl',
25
+ },
26
+ {
27
+ id: 'cover-letter',
28
+ name: 'Cover Letter Builder',
29
+ description: 'Generate personalized cover letters tailored to each job application.',
30
+ icon: 'i-lucide-mail',
31
+ color: 'secondary',
32
+ status: 'coming-soon',
33
+ urlKey: 'coverLetterUrl',
34
+ },
35
+ {
36
+ id: 'portfolio',
37
+ name: 'Portfolio Builder',
38
+ description: 'Showcase your work with a beautiful, customizable portfolio website.',
39
+ icon: 'i-lucide-layout-grid',
40
+ color: 'primary',
41
+ status: 'coming-soon',
42
+ urlKey: 'portfolioUrl',
43
+ },
44
+ ];
45
+ //# sourceMappingURL=app.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":"AAAA;;GAEG;AAsBH;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAmB;IAC5C;QACE,EAAE,EAAE,gBAAgB;QACpB,IAAI,EAAE,gBAAgB;QACtB,WAAW,EACT,iFAAiF;QACnF,IAAI,EAAE,oBAAoB;QAC1B,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,kBAAkB;KAC3B;IACD;QACE,EAAE,EAAE,aAAa;QACjB,IAAI,EAAE,aAAa;QACnB,WAAW,EACT,sEAAsE;QACxE,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,eAAe;KACxB;IACD;QACE,EAAE,EAAE,cAAc;QAClB,IAAI,EAAE,sBAAsB;QAC5B,WAAW,EACT,uEAAuE;QACzE,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,WAAW;QAClB,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,gBAAgB;KACzB;IACD;QACE,EAAE,EAAE,WAAW;QACf,IAAI,EAAE,mBAAmB;QACzB,WAAW,EACT,sEAAsE;QACxE,IAAI,EAAE,sBAAsB;QAC5B,KAAK,EAAE,SAAS;QAChB,MAAM,EAAE,aAAa;QACrB,MAAM,EAAE,cAAc;KACvB;CACF,CAAC"}
package/dist/auth.d.ts ADDED
@@ -0,0 +1,59 @@
1
+ import type { User, Session } from '@supabase/supabase-js';
2
+ /**
3
+ * Auth-related type definitions
4
+ * Shared across all Pathfolio services
5
+ */
6
+ /**
7
+ * OAuth provider types supported by the application
8
+ * Add new providers here as they are enabled in Supabase dashboard
9
+ */
10
+ export type OAuthProvider = 'google' | 'github' | 'apple';
11
+ /**
12
+ * Provider display configuration for UI rendering
13
+ */
14
+ export interface OAuthProviderConfig {
15
+ id: OAuthProvider;
16
+ name: string;
17
+ icon: string;
18
+ brandColor?: string;
19
+ }
20
+ /**
21
+ * OAuth sign-in options
22
+ */
23
+ export interface OAuthSignInOptions {
24
+ redirectTo?: string;
25
+ scopes?: string;
26
+ queryParams?: Record<string, string>;
27
+ }
28
+ /**
29
+ * User profile data stored in user metadata
30
+ */
31
+ export interface UserProfile {
32
+ full_name?: string;
33
+ name?: string;
34
+ avatar_url?: string;
35
+ picture?: string;
36
+ }
37
+ /**
38
+ * Extended user type with profile data
39
+ */
40
+ export interface AppUser extends User {
41
+ user_metadata: UserProfile & Record<string, unknown>;
42
+ }
43
+ /**
44
+ * Auth state for the application
45
+ */
46
+ export interface AuthState {
47
+ user: AppUser | null;
48
+ session: Session | null;
49
+ loading: boolean;
50
+ }
51
+ /**
52
+ * Auth error response
53
+ */
54
+ export interface AuthError {
55
+ message: string;
56
+ status?: number;
57
+ code?: string;
58
+ }
59
+ //# sourceMappingURL=auth.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE1D;;;GAGG;AAEH;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAA;AAEzD;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,aAAa,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,OAAQ,SAAQ,IAAI;IACnC,aAAa,EAAE,WAAW,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACrD;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,OAAO,GAAG,IAAI,CAAA;IACpB,OAAO,EAAE,OAAO,GAAG,IAAI,CAAA;IACvB,OAAO,EAAE,OAAO,CAAA;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;CACd"}
package/dist/auth.js ADDED
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=auth.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.js","sourceRoot":"","sources":["../src/auth.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @pathfolio/types
3
+ * Shared TypeScript types for Pathfolio services
4
+ */
5
+ export type { OAuthProvider, OAuthProviderConfig, OAuthSignInOptions, UserProfile, AppUser, AuthState, AuthError, } from './auth.js';
6
+ export * from './profile.js';
7
+ export * from './app.js';
8
+ export * from './pdf.js';
9
+ export * from './resume/index.js';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,YAAY,EACV,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,EACX,OAAO,EACP,SAAS,EACT,SAAS,GACV,MAAM,WAAW,CAAC;AAGnB,cAAc,cAAc,CAAC;AAG7B,cAAc,UAAU,CAAC;AAGzB,cAAc,UAAU,CAAC;AAGzB,cAAc,mBAAmB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @pathfolio/types
3
+ * Shared TypeScript types for Pathfolio services
4
+ */
5
+ // Profile types
6
+ export * from './profile.js';
7
+ // App types
8
+ export * from './app.js';
9
+ // PDF render types
10
+ export * from './pdf.js';
11
+ // Resume types (re-export from resume module)
12
+ export * from './resume/index.js';
13
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAaH,gBAAgB;AAChB,cAAc,cAAc,CAAC;AAE7B,YAAY;AACZ,cAAc,UAAU,CAAC;AAEzB,mBAAmB;AACnB,cAAc,UAAU,CAAC;AAEzB,8CAA8C;AAC9C,cAAc,mBAAmB,CAAC"}
package/dist/pdf.d.ts ADDED
@@ -0,0 +1,75 @@
1
+ /**
2
+ * PDF Render Types
3
+ *
4
+ * TypeScript types for the server-side rendering pipeline
5
+ * that uses Playwright for guaranteed 1:1 rendering accuracy.
6
+ */
7
+ /** Supported page sizes */
8
+ export type PageSize = 'A4' | 'Letter';
9
+ /** Page orientation */
10
+ export type Orientation = 'Portrait' | 'Landscape';
11
+ /** Page margin configuration */
12
+ export interface Margins {
13
+ top: string;
14
+ right: string;
15
+ bottom: string;
16
+ left: string;
17
+ }
18
+ /** Rendering options */
19
+ export interface RenderOptions {
20
+ page_size: PageSize;
21
+ orientation: Orientation;
22
+ margins: Margins;
23
+ scale?: number;
24
+ }
25
+ /**
26
+ * Render Request
27
+ *
28
+ * The client sends pre-built HTML that includes:
29
+ * - All resume content with pre-calculated pagination
30
+ * - All styling (CSS variables, fonts, colors)
31
+ * - All layout settings already applied
32
+ */
33
+ export interface RenderRequest {
34
+ /** Complete HTML document to render */
35
+ html: string;
36
+ /** Base filename for outputs */
37
+ filename?: string;
38
+ /** Render options (page size, margins, etc.) */
39
+ options?: RenderOptions;
40
+ /** Generate PNG thumbnail */
41
+ generate_thumbnail?: boolean;
42
+ /** Generate PDF document */
43
+ generate_pdf?: boolean;
44
+ }
45
+ /** Render Response (when requesting both PDF and thumbnail) */
46
+ export interface RenderResponse {
47
+ success: boolean;
48
+ filename: string;
49
+ pdf_size_bytes?: number;
50
+ /** PNG thumbnail as base64 data URL (data:image/png;base64,...) */
51
+ thumbnail_base64?: string;
52
+ /** PDF as base64 (only in combined response) */
53
+ pdf_base64?: string;
54
+ page_count: number;
55
+ }
56
+ /** Request for thumbnail-only generation */
57
+ export interface ThumbnailRequest {
58
+ html: string;
59
+ options?: RenderOptions;
60
+ }
61
+ /** Request for PDF-only generation */
62
+ export interface PdfRequest {
63
+ html: string;
64
+ filename?: string;
65
+ options?: RenderOptions;
66
+ }
67
+ /**
68
+ * Create default render options
69
+ */
70
+ export declare function createDefaultRenderOptions(): RenderOptions;
71
+ /**
72
+ * Convert resume layout settings to render options
73
+ */
74
+ export declare function layoutToRenderOptions(pageSize: 'A4' | 'US Letter', pageOrientation: 'portrait' | 'landscape'): RenderOptions;
75
+ //# sourceMappingURL=pdf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf.d.ts","sourceRoot":"","sources":["../src/pdf.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,2BAA2B;AAC3B,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,QAAQ,CAAC;AAEvC,uBAAuB;AACvB,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,WAAW,CAAC;AAEnD,gCAAgC;AAChC,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAwB;AACxB,MAAM,WAAW,aAAa;IAC5B,SAAS,EAAE,QAAQ,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,aAAa;IAC5B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,6BAA6B;IAC7B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,4BAA4B;IAC5B,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,+DAA+D;AAC/D,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mEAAmE;IACnE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gDAAgD;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,4CAA4C;AAC5C,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,sCAAsC;AACtC,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,aAAa,CAY1D;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,IAAI,GAAG,WAAW,EAC5B,eAAe,EAAE,UAAU,GAAG,WAAW,GACxC,aAAa,CAYf"}
package/dist/pdf.js ADDED
@@ -0,0 +1,39 @@
1
+ /**
2
+ * PDF Render Types
3
+ *
4
+ * TypeScript types for the server-side rendering pipeline
5
+ * that uses Playwright for guaranteed 1:1 rendering accuracy.
6
+ */
7
+ /**
8
+ * Create default render options
9
+ */
10
+ export function createDefaultRenderOptions() {
11
+ return {
12
+ page_size: 'A4',
13
+ orientation: 'Portrait',
14
+ margins: {
15
+ top: '0mm',
16
+ right: '0mm',
17
+ bottom: '0mm',
18
+ left: '0mm',
19
+ },
20
+ scale: 1.0,
21
+ };
22
+ }
23
+ /**
24
+ * Convert resume layout settings to render options
25
+ */
26
+ export function layoutToRenderOptions(pageSize, pageOrientation) {
27
+ return {
28
+ page_size: pageSize === 'US Letter' ? 'Letter' : 'A4',
29
+ orientation: pageOrientation === 'landscape' ? 'Landscape' : 'Portrait',
30
+ margins: {
31
+ top: '0mm',
32
+ right: '0mm',
33
+ bottom: '0mm',
34
+ left: '0mm',
35
+ },
36
+ scale: 1.0,
37
+ };
38
+ }
39
+ //# sourceMappingURL=pdf.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf.js","sourceRoot":"","sources":["../src/pdf.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAsEH;;GAEG;AACH,MAAM,UAAU,0BAA0B;IACxC,OAAO;QACL,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,UAAU;QACvB,OAAO,EAAE;YACP,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,KAAK;SACZ;QACD,KAAK,EAAE,GAAG;KACX,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,qBAAqB,CACnC,QAA4B,EAC5B,eAAyC;IAEzC,OAAO;QACL,SAAS,EAAE,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI;QACrD,WAAW,EAAE,eAAe,KAAK,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU;QACvE,OAAO,EAAE;YACP,GAAG,EAAE,KAAK;YACV,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,KAAK;YACb,IAAI,EAAE,KAAK;SACZ;QACD,KAAK,EAAE,GAAG;KACX,CAAC;AACJ,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Profile-related type definitions
3
+ */
4
+ import type { UserIdentity } from '@supabase/supabase-js';
5
+ /**
6
+ * Linked identity information (OAuth provider connection)
7
+ */
8
+ export interface LinkedIdentity {
9
+ id: string;
10
+ provider: string;
11
+ email: string | null;
12
+ createdAt: string;
13
+ lastSignInAt: string | null;
14
+ }
15
+ /**
16
+ * Profile update payload
17
+ */
18
+ export interface ProfileUpdatePayload {
19
+ full_name?: string;
20
+ avatar_url?: string;
21
+ }
22
+ /**
23
+ * Account deletion response
24
+ */
25
+ export interface DeleteAccountResponse {
26
+ success: boolean;
27
+ message?: string;
28
+ }
29
+ /**
30
+ * Helper to map Supabase identity to our format
31
+ */
32
+ export declare function mapIdentity(identity: UserIdentity): LinkedIdentity;
33
+ //# sourceMappingURL=profile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.d.ts","sourceRoot":"","sources":["../src/profile.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,YAAY,GAAG,cAAc,CAQlE"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Profile-related type definitions
3
+ */
4
+ /**
5
+ * Helper to map Supabase identity to our format
6
+ */
7
+ export function mapIdentity(identity) {
8
+ return {
9
+ id: identity.id,
10
+ provider: identity.provider,
11
+ email: identity.identity_data?.email ?? null,
12
+ createdAt: identity.created_at ?? '',
13
+ lastSignInAt: identity.last_sign_in_at ?? null,
14
+ };
15
+ }
16
+ //# sourceMappingURL=profile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profile.js","sourceRoot":"","sources":["../src/profile.ts"],"names":[],"mappings":"AAAA;;GAEG;AA+BH;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,QAAsB;IAChD,OAAO;QACL,EAAE,EAAE,QAAQ,CAAC,EAAE;QACf,QAAQ,EAAE,QAAQ,CAAC,QAAQ;QAC3B,KAAK,EAAG,QAAQ,CAAC,aAAa,EAAE,KAA4B,IAAI,IAAI;QACpE,SAAS,EAAE,QAAQ,CAAC,UAAU,IAAI,EAAE;QACpC,YAAY,EAAE,QAAQ,CAAC,eAAe,IAAI,IAAI;KAC/C,CAAC;AACJ,CAAC"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Resume Constants
3
+ * Default values, presets, and mapping constants
4
+ */
5
+ import type { ImageCropSettings, SectionOrder, SectionVisibility } from './content';
6
+ import type { EntryLayoutPreset, EntryLayoutPresetMapping, UnifiedHeaderLayout, UnifiedLayoutMapping, TypographyPreset, TypographyPresetSize, ScalePreset, WeightPreset, SpacingPreset, DesignSettings, FontSettings, LayoutSettings } from './design';
7
+ import type { SkillsSettings, LinkSettings, SectionHeadingSettings, EntryLayoutSettings, HeaderSettings } from './settings';
8
+ /**
9
+ * Default crop settings for new images
10
+ */
11
+ export declare const DEFAULT_CROP_SETTINGS: ImageCropSettings;
12
+ /**
13
+ * Entry Layout Preset Mappings
14
+ * Maps each preset to its component settings
15
+ */
16
+ export declare const ENTRY_LAYOUT_PRESET_MAPPINGS: Record<EntryLayoutPreset, EntryLayoutPresetMapping>;
17
+ /**
18
+ * Unified Layout Mappings
19
+ * Maps each unified layout preset to its component settings
20
+ */
21
+ export declare const UNIFIED_LAYOUT_MAPPINGS: Record<UnifiedHeaderLayout, UnifiedLayoutMapping>;
22
+ /**
23
+ * Typography Presets Collection
24
+ */
25
+ export declare const TYPOGRAPHY_PRESETS: TypographyPreset[];
26
+ /**
27
+ * Default Section Order
28
+ */
29
+ export declare const DEFAULT_SECTION_ORDER: SectionOrder;
30
+ /**
31
+ * Default section order for new resumes - only includes vital sections.
32
+ * Additional sections must be added manually by the user.
33
+ */
34
+ export declare const DEFAULT_VITAL_SECTION_ORDER: SectionOrder;
35
+ /**
36
+ * Fixed minimap order based on most commonly updated sections.
37
+ * This order is independent of canvas layout to provide consistent navigation.
38
+ * Contact is prepended separately in the minimap component.
39
+ */
40
+ export declare const MINIMAP_SECTION_ORDER: SectionOrder;
41
+ export declare const DEFAULT_SECTION_VISIBILITY: SectionVisibility;
42
+ export declare const DEFAULT_DESIGN_SETTINGS: DesignSettings;
43
+ export declare const DEFAULT_FONT_SETTINGS: FontSettings;
44
+ export declare const DEFAULT_LAYOUT_SETTINGS: LayoutSettings;
45
+ export declare const DEFAULT_SECTION_HEADING_SETTINGS: SectionHeadingSettings;
46
+ export declare const DEFAULT_ENTRY_LAYOUT_SETTINGS: EntryLayoutSettings;
47
+ export declare const DEFAULT_HEADER_SETTINGS: HeaderSettings;
48
+ export declare const DEFAULT_SKILLS_SETTINGS: SkillsSettings;
49
+ export declare const DEFAULT_LINK_SETTINGS: LinkSettings;
50
+ /**
51
+ * Typography Quick Mode S/M/L Presets
52
+ */
53
+ export declare const TYPOGRAPHY_SCALE_PRESETS: Record<TypographyPresetSize, ScalePreset>;
54
+ export declare const TYPOGRAPHY_WEIGHT_PRESETS: Record<TypographyPresetSize, WeightPreset>;
55
+ export declare const TYPOGRAPHY_SPACING_PRESETS: Record<TypographyPresetSize, SpacingPreset>;
56
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/resume/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AACpF,OAAO,KAAK,EACV,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,cAAc,EACd,YAAY,EACZ,cAAc,EACf,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EACf,MAAM,YAAY,CAAC;AAEpB;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,iBAKnC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAC/C,iBAAiB,EACjB,wBAAwB,CAgCzB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAC1C,mBAAmB,EACnB,oBAAoB,CA+CrB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE,gBAAgB,EAqGhD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAenC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,EAAE,YAKzC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAenC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,iBAexC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,cAKrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YA4BnC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,cAiCrC,CAAC;AAEF,eAAO,MAAM,gCAAgC,EAAE,sBAqC9C,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,mBAO3C,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,cA2DrC,CAAC;AAEF,eAAO,MAAM,uBAAuB,EAAE,cAQrC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,YAKnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,oBAAoB,EACpB,WAAW,CA0BZ,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAC5C,oBAAoB,EACpB,YAAY,CA0Bb,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAC7C,oBAAoB,EACpB,aAAa,CAiBd,CAAC"}