@prosophia/personal-cv 0.0.2 → 0.0.4
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/About.module.css +107 -0
- package/dist/CVSection.module.css +124 -0
- package/dist/Footer.module.css +41 -0
- package/dist/Header.module.css +226 -0
- package/dist/Projects.module.css +114 -0
- package/dist/Publications.module.css +118 -0
- package/dist/index-CZBtPfWB.d.mts +75 -0
- package/dist/index-CZBtPfWB.d.ts +75 -0
- package/dist/index.css +648 -0
- package/dist/index.d.mts +150 -0
- package/dist/index.d.ts +150 -0
- package/dist/index.js +333 -99
- package/dist/index.mjs +314 -92
- package/dist/layouts/index.d.mts +14 -0
- package/dist/layouts/index.d.ts +14 -0
- package/dist/layouts/index.js +73 -0
- package/dist/layouts/index.mjs +46 -0
- package/dist/schemas/index.d.mts +144 -0
- package/dist/schemas/index.d.ts +144 -0
- package/dist/schemas/index.js +582 -0
- package/dist/schemas/index.mjs +540 -0
- package/dist/styles/globals.css +204 -0
- package/package.json +23 -8
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { P as ProsophiaConfig } from './index-CZBtPfWB.mjs';
|
|
3
|
+
export { A as About, C as CVSection, a as NavLink, N as Navigation, b as Project, c as Publication, e as SiteConfig, S as SiteSettings, d as SocialLink, T as ThemeConfig } from './index-CZBtPfWB.mjs';
|
|
4
|
+
|
|
5
|
+
interface FooterProps {
|
|
6
|
+
footerText: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function Footer({ footerText, email }: FooterProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
interface NavLink {
|
|
12
|
+
label: string;
|
|
13
|
+
href: string;
|
|
14
|
+
}
|
|
15
|
+
interface HeaderProps {
|
|
16
|
+
siteName: string;
|
|
17
|
+
navLinks: NavLink[];
|
|
18
|
+
showContactButton?: boolean;
|
|
19
|
+
contactButtonText?: string;
|
|
20
|
+
contactEmail?: string;
|
|
21
|
+
}
|
|
22
|
+
declare function Header({ siteName, navLinks, showContactButton, contactButtonText, contactEmail, }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
interface Project$1 {
|
|
25
|
+
_id: string;
|
|
26
|
+
title: string;
|
|
27
|
+
description: string;
|
|
28
|
+
imageUrl?: string;
|
|
29
|
+
imageAlt?: string;
|
|
30
|
+
caseStudyUrl?: string;
|
|
31
|
+
slug?: {
|
|
32
|
+
current: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
interface ProjectsProps {
|
|
36
|
+
projects: Project$1[];
|
|
37
|
+
showViewAll?: boolean;
|
|
38
|
+
viewAllUrl?: string;
|
|
39
|
+
}
|
|
40
|
+
declare function Projects({ projects, showViewAll, viewAllUrl, }: ProjectsProps): react_jsx_runtime.JSX.Element;
|
|
41
|
+
|
|
42
|
+
interface Publication$1 {
|
|
43
|
+
_id: string;
|
|
44
|
+
title: string;
|
|
45
|
+
authors: string;
|
|
46
|
+
venue: string;
|
|
47
|
+
year: number;
|
|
48
|
+
pdfUrl?: string;
|
|
49
|
+
codeUrl?: string;
|
|
50
|
+
videoUrl?: string;
|
|
51
|
+
bibtex?: string;
|
|
52
|
+
}
|
|
53
|
+
interface PublicationsProps {
|
|
54
|
+
publications: Publication$1[];
|
|
55
|
+
}
|
|
56
|
+
declare function Publications({ publications }: PublicationsProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Define configuration for your personal CV site
|
|
60
|
+
* @param config - The site configuration object
|
|
61
|
+
* @returns The configuration object (passthrough for type safety)
|
|
62
|
+
*/
|
|
63
|
+
declare function defineConfig(config: ProsophiaConfig): ProsophiaConfig;
|
|
64
|
+
|
|
65
|
+
type Theme = 'light' | 'dark';
|
|
66
|
+
interface ThemeContextType {
|
|
67
|
+
theme: Theme;
|
|
68
|
+
toggleTheme: () => void;
|
|
69
|
+
mounted: boolean;
|
|
70
|
+
}
|
|
71
|
+
declare function ThemeProvider({ children }: {
|
|
72
|
+
children: React.ReactNode;
|
|
73
|
+
}): react_jsx_runtime.JSX.Element;
|
|
74
|
+
declare function useTheme(): ThemeContextType;
|
|
75
|
+
|
|
76
|
+
interface SiteSettings {
|
|
77
|
+
siteName: string;
|
|
78
|
+
siteTitle: string;
|
|
79
|
+
primaryColor: string;
|
|
80
|
+
backgroundColor: string;
|
|
81
|
+
textColor: string;
|
|
82
|
+
secondaryTextColor: string;
|
|
83
|
+
contactEmail: string;
|
|
84
|
+
footerText: string;
|
|
85
|
+
}
|
|
86
|
+
interface Navigation {
|
|
87
|
+
links: {
|
|
88
|
+
label: string;
|
|
89
|
+
href: string;
|
|
90
|
+
}[];
|
|
91
|
+
showContactButton: boolean;
|
|
92
|
+
contactButtonText: string;
|
|
93
|
+
}
|
|
94
|
+
interface About {
|
|
95
|
+
name: string;
|
|
96
|
+
greeting: string;
|
|
97
|
+
title: string;
|
|
98
|
+
bio: string;
|
|
99
|
+
profileImageUrl?: string;
|
|
100
|
+
socialLinks?: {
|
|
101
|
+
platform: string;
|
|
102
|
+
url: string;
|
|
103
|
+
}[];
|
|
104
|
+
}
|
|
105
|
+
interface Project {
|
|
106
|
+
_id: string;
|
|
107
|
+
title: string;
|
|
108
|
+
description: string;
|
|
109
|
+
imageUrl?: string;
|
|
110
|
+
imageAlt?: string;
|
|
111
|
+
caseStudyUrl?: string;
|
|
112
|
+
slug?: {
|
|
113
|
+
current: string;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
interface Publication {
|
|
117
|
+
_id: string;
|
|
118
|
+
title: string;
|
|
119
|
+
authors: string;
|
|
120
|
+
venue: string;
|
|
121
|
+
year: number;
|
|
122
|
+
pdfUrl?: string;
|
|
123
|
+
codeUrl?: string;
|
|
124
|
+
videoUrl?: string;
|
|
125
|
+
bibtex?: string;
|
|
126
|
+
}
|
|
127
|
+
interface CVSection {
|
|
128
|
+
heading: string;
|
|
129
|
+
description: string;
|
|
130
|
+
buttonText: string;
|
|
131
|
+
cvFileUrl?: string;
|
|
132
|
+
}
|
|
133
|
+
declare function getSiteSettings(): Promise<SiteSettings | null>;
|
|
134
|
+
declare function getNavigation(): Promise<Navigation | null>;
|
|
135
|
+
declare function getAbout(): Promise<About | null>;
|
|
136
|
+
declare function getProjects(): Promise<Project[]>;
|
|
137
|
+
declare function getPublications(): Promise<Publication[]>;
|
|
138
|
+
declare function getCVSection(): Promise<CVSection | null>;
|
|
139
|
+
declare function getAllPageData(): Promise<{
|
|
140
|
+
siteSettings: SiteSettings | null;
|
|
141
|
+
navigation: Navigation | null;
|
|
142
|
+
about: About | null;
|
|
143
|
+
projects: Project[];
|
|
144
|
+
publications: Publication[];
|
|
145
|
+
cvSection: CVSection | null;
|
|
146
|
+
}>;
|
|
147
|
+
declare function getProjectBySlug(slug: string): Promise<Project | null>;
|
|
148
|
+
declare function getAllProjectSlugs(): Promise<string[]>;
|
|
149
|
+
|
|
150
|
+
export { Footer, Header, Projects, ProsophiaConfig, Publications, ThemeProvider, defineConfig, getAbout, getAllPageData, getAllProjectSlugs, getCVSection, getNavigation, getProjectBySlug, getProjects, getPublications, getSiteSettings, useTheme };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { P as ProsophiaConfig } from './index-CZBtPfWB.js';
|
|
3
|
+
export { A as About, C as CVSection, a as NavLink, N as Navigation, b as Project, c as Publication, e as SiteConfig, S as SiteSettings, d as SocialLink, T as ThemeConfig } from './index-CZBtPfWB.js';
|
|
4
|
+
|
|
5
|
+
interface FooterProps {
|
|
6
|
+
footerText: string;
|
|
7
|
+
email?: string;
|
|
8
|
+
}
|
|
9
|
+
declare function Footer({ footerText, email }: FooterProps): react_jsx_runtime.JSX.Element;
|
|
10
|
+
|
|
11
|
+
interface NavLink {
|
|
12
|
+
label: string;
|
|
13
|
+
href: string;
|
|
14
|
+
}
|
|
15
|
+
interface HeaderProps {
|
|
16
|
+
siteName: string;
|
|
17
|
+
navLinks: NavLink[];
|
|
18
|
+
showContactButton?: boolean;
|
|
19
|
+
contactButtonText?: string;
|
|
20
|
+
contactEmail?: string;
|
|
21
|
+
}
|
|
22
|
+
declare function Header({ siteName, navLinks, showContactButton, contactButtonText, contactEmail, }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
23
|
+
|
|
24
|
+
interface Project$1 {
|
|
25
|
+
_id: string;
|
|
26
|
+
title: string;
|
|
27
|
+
description: string;
|
|
28
|
+
imageUrl?: string;
|
|
29
|
+
imageAlt?: string;
|
|
30
|
+
caseStudyUrl?: string;
|
|
31
|
+
slug?: {
|
|
32
|
+
current: string;
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
interface ProjectsProps {
|
|
36
|
+
projects: Project$1[];
|
|
37
|
+
showViewAll?: boolean;
|
|
38
|
+
viewAllUrl?: string;
|
|
39
|
+
}
|
|
40
|
+
declare function Projects({ projects, showViewAll, viewAllUrl, }: ProjectsProps): react_jsx_runtime.JSX.Element;
|
|
41
|
+
|
|
42
|
+
interface Publication$1 {
|
|
43
|
+
_id: string;
|
|
44
|
+
title: string;
|
|
45
|
+
authors: string;
|
|
46
|
+
venue: string;
|
|
47
|
+
year: number;
|
|
48
|
+
pdfUrl?: string;
|
|
49
|
+
codeUrl?: string;
|
|
50
|
+
videoUrl?: string;
|
|
51
|
+
bibtex?: string;
|
|
52
|
+
}
|
|
53
|
+
interface PublicationsProps {
|
|
54
|
+
publications: Publication$1[];
|
|
55
|
+
}
|
|
56
|
+
declare function Publications({ publications }: PublicationsProps): react_jsx_runtime.JSX.Element;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Define configuration for your personal CV site
|
|
60
|
+
* @param config - The site configuration object
|
|
61
|
+
* @returns The configuration object (passthrough for type safety)
|
|
62
|
+
*/
|
|
63
|
+
declare function defineConfig(config: ProsophiaConfig): ProsophiaConfig;
|
|
64
|
+
|
|
65
|
+
type Theme = 'light' | 'dark';
|
|
66
|
+
interface ThemeContextType {
|
|
67
|
+
theme: Theme;
|
|
68
|
+
toggleTheme: () => void;
|
|
69
|
+
mounted: boolean;
|
|
70
|
+
}
|
|
71
|
+
declare function ThemeProvider({ children }: {
|
|
72
|
+
children: React.ReactNode;
|
|
73
|
+
}): react_jsx_runtime.JSX.Element;
|
|
74
|
+
declare function useTheme(): ThemeContextType;
|
|
75
|
+
|
|
76
|
+
interface SiteSettings {
|
|
77
|
+
siteName: string;
|
|
78
|
+
siteTitle: string;
|
|
79
|
+
primaryColor: string;
|
|
80
|
+
backgroundColor: string;
|
|
81
|
+
textColor: string;
|
|
82
|
+
secondaryTextColor: string;
|
|
83
|
+
contactEmail: string;
|
|
84
|
+
footerText: string;
|
|
85
|
+
}
|
|
86
|
+
interface Navigation {
|
|
87
|
+
links: {
|
|
88
|
+
label: string;
|
|
89
|
+
href: string;
|
|
90
|
+
}[];
|
|
91
|
+
showContactButton: boolean;
|
|
92
|
+
contactButtonText: string;
|
|
93
|
+
}
|
|
94
|
+
interface About {
|
|
95
|
+
name: string;
|
|
96
|
+
greeting: string;
|
|
97
|
+
title: string;
|
|
98
|
+
bio: string;
|
|
99
|
+
profileImageUrl?: string;
|
|
100
|
+
socialLinks?: {
|
|
101
|
+
platform: string;
|
|
102
|
+
url: string;
|
|
103
|
+
}[];
|
|
104
|
+
}
|
|
105
|
+
interface Project {
|
|
106
|
+
_id: string;
|
|
107
|
+
title: string;
|
|
108
|
+
description: string;
|
|
109
|
+
imageUrl?: string;
|
|
110
|
+
imageAlt?: string;
|
|
111
|
+
caseStudyUrl?: string;
|
|
112
|
+
slug?: {
|
|
113
|
+
current: string;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
interface Publication {
|
|
117
|
+
_id: string;
|
|
118
|
+
title: string;
|
|
119
|
+
authors: string;
|
|
120
|
+
venue: string;
|
|
121
|
+
year: number;
|
|
122
|
+
pdfUrl?: string;
|
|
123
|
+
codeUrl?: string;
|
|
124
|
+
videoUrl?: string;
|
|
125
|
+
bibtex?: string;
|
|
126
|
+
}
|
|
127
|
+
interface CVSection {
|
|
128
|
+
heading: string;
|
|
129
|
+
description: string;
|
|
130
|
+
buttonText: string;
|
|
131
|
+
cvFileUrl?: string;
|
|
132
|
+
}
|
|
133
|
+
declare function getSiteSettings(): Promise<SiteSettings | null>;
|
|
134
|
+
declare function getNavigation(): Promise<Navigation | null>;
|
|
135
|
+
declare function getAbout(): Promise<About | null>;
|
|
136
|
+
declare function getProjects(): Promise<Project[]>;
|
|
137
|
+
declare function getPublications(): Promise<Publication[]>;
|
|
138
|
+
declare function getCVSection(): Promise<CVSection | null>;
|
|
139
|
+
declare function getAllPageData(): Promise<{
|
|
140
|
+
siteSettings: SiteSettings | null;
|
|
141
|
+
navigation: Navigation | null;
|
|
142
|
+
about: About | null;
|
|
143
|
+
projects: Project[];
|
|
144
|
+
publications: Publication[];
|
|
145
|
+
cvSection: CVSection | null;
|
|
146
|
+
}>;
|
|
147
|
+
declare function getProjectBySlug(slug: string): Promise<Project | null>;
|
|
148
|
+
declare function getAllProjectSlugs(): Promise<string[]>;
|
|
149
|
+
|
|
150
|
+
export { Footer, Header, Projects, ProsophiaConfig, Publications, ThemeProvider, defineConfig, getAbout, getAllPageData, getAllProjectSlugs, getCVSection, getNavigation, getProjectBySlug, getProjects, getPublications, getSiteSettings, useTheme };
|