keystone-design-bootstrap 1.0.40 → 1.0.41
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/design_system/sections/index.js +3 -3
- package/dist/design_system/sections/index.js.map +1 -1
- package/dist/index.js +10 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/design_system/components/ChatWidget.tsx +2 -3
- package/src/design_system/sections/services-home.aman.tsx +1 -1
- package/src/next/layouts/root-layout.tsx +1 -1
- package/dist/blog-post-CvRhU9ss.d.ts +0 -50
- package/dist/company-information-C_k_sLSB.d.ts +0 -46
- package/dist/contexts/index.d.ts +0 -13
- package/dist/design_system/elements/index.d.ts +0 -348
- package/dist/design_system/logo/keystone-logo.d.ts +0 -6
- package/dist/design_system/sections/index.d.ts +0 -194
- package/dist/form-CWXC-IHT.d.ts +0 -88
- package/dist/index.d.ts +0 -76
- package/dist/lib/component-registry.d.ts +0 -13
- package/dist/lib/hooks/index.d.ts +0 -64
- package/dist/lib/server-api.d.ts +0 -40
- package/dist/themes/index.d.ts +0 -16
- package/dist/types/index.d.ts +0 -263
- package/dist/utils/cx.d.ts +0 -15
- package/dist/utils/gradient-placeholder.d.ts +0 -8
- package/dist/utils/is-react-component.d.ts +0 -21
- package/dist/utils/markdown-toc.d.ts +0 -14
- package/dist/utils/photo-helpers.d.ts +0 -46
- package/dist/website-photos-_n2g24IM.d.ts +0 -20
package/dist/types/index.d.ts
DELETED
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
import { Theme } from '../themes/index.js';
|
|
2
|
-
export { B as BlogPost, a as BlogPostAuthor, c as BlogPostParams, d as BlogPostResponse, b as BlogPostTag } from '../blog-post-CvRhU9ss.js';
|
|
3
|
-
export { C as CompanyInformation, a as CompanyInformationResponse } from '../company-information-C_k_sLSB.js';
|
|
4
|
-
import { a as PhotoAttachment } from '../form-CWXC-IHT.js';
|
|
5
|
-
export { F as FormDefinition, b as FormFieldDefinition, c as FormFieldItem, d as FormType, P as Photo, S as Service, e as ServiceParams, f as ServiceResponse } from '../form-CWXC-IHT.js';
|
|
6
|
-
export { a as WebsitePhoto, W as WebsitePhotos, b as WebsitePhotosResponse } from '../website-photos-_n2g24IM.js';
|
|
7
|
-
|
|
8
|
-
interface NavItem {
|
|
9
|
-
label: string;
|
|
10
|
-
href: string;
|
|
11
|
-
subtitle?: string;
|
|
12
|
-
children?: NavItem[];
|
|
13
|
-
}
|
|
14
|
-
interface SiteConfig {
|
|
15
|
-
site: {
|
|
16
|
-
title: string;
|
|
17
|
-
description: string;
|
|
18
|
-
theme: Theme;
|
|
19
|
-
};
|
|
20
|
-
navigation: {
|
|
21
|
-
header: NavItem[];
|
|
22
|
-
footer: NavItem[][];
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
interface Testimonial {
|
|
27
|
-
id: number;
|
|
28
|
-
reviewer_name: string;
|
|
29
|
-
reviewer_title?: string;
|
|
30
|
-
company?: string;
|
|
31
|
-
rating?: number;
|
|
32
|
-
content_markdown: string;
|
|
33
|
-
source?: string;
|
|
34
|
-
source_url?: string;
|
|
35
|
-
featured: boolean;
|
|
36
|
-
reviewed_at: string;
|
|
37
|
-
created_at: string;
|
|
38
|
-
updated_at: string;
|
|
39
|
-
photo_attachments?: PhotoAttachment[];
|
|
40
|
-
}
|
|
41
|
-
interface TestimonialParams {
|
|
42
|
-
source?: string;
|
|
43
|
-
rating?: number;
|
|
44
|
-
verified?: boolean;
|
|
45
|
-
featured?: boolean;
|
|
46
|
-
page?: number;
|
|
47
|
-
per_page?: number;
|
|
48
|
-
}
|
|
49
|
-
type TestimonialResponse = Testimonial[];
|
|
50
|
-
|
|
51
|
-
interface TeamMember {
|
|
52
|
-
id: number;
|
|
53
|
-
name: string;
|
|
54
|
-
position: string;
|
|
55
|
-
bio_markdown: string;
|
|
56
|
-
experience_markdown: string;
|
|
57
|
-
email: string;
|
|
58
|
-
phone: string;
|
|
59
|
-
sort_order: number;
|
|
60
|
-
featured: boolean;
|
|
61
|
-
specialties_markdown: string;
|
|
62
|
-
education_markdown: string;
|
|
63
|
-
certifications_markdown: string;
|
|
64
|
-
linkedin_url: string;
|
|
65
|
-
twitter_url: string;
|
|
66
|
-
photo_attachments?: PhotoAttachment[];
|
|
67
|
-
}
|
|
68
|
-
interface TeamMemberParams {
|
|
69
|
-
featured?: boolean;
|
|
70
|
-
sort_order?: number;
|
|
71
|
-
page?: number;
|
|
72
|
-
per_page?: number;
|
|
73
|
-
}
|
|
74
|
-
type TeamMemberResponse = TeamMember[];
|
|
75
|
-
|
|
76
|
-
interface Location {
|
|
77
|
-
id: number;
|
|
78
|
-
name: string;
|
|
79
|
-
slug: string;
|
|
80
|
-
address_line_1: string;
|
|
81
|
-
address_line_2?: string;
|
|
82
|
-
city: string;
|
|
83
|
-
state: string;
|
|
84
|
-
zip_code: string;
|
|
85
|
-
country?: string;
|
|
86
|
-
latitude?: number;
|
|
87
|
-
longitude?: number;
|
|
88
|
-
phone?: string;
|
|
89
|
-
email?: string;
|
|
90
|
-
description_markdown?: string;
|
|
91
|
-
business_hours?: string;
|
|
92
|
-
is_primary: boolean;
|
|
93
|
-
active: boolean;
|
|
94
|
-
sort_order: number;
|
|
95
|
-
created_at: string;
|
|
96
|
-
updated_at: string;
|
|
97
|
-
photo_attachments?: PhotoAttachment[];
|
|
98
|
-
}
|
|
99
|
-
interface LocationParams {
|
|
100
|
-
active?: boolean;
|
|
101
|
-
is_primary?: boolean;
|
|
102
|
-
sort_order?: number;
|
|
103
|
-
page?: number;
|
|
104
|
-
per_page?: number;
|
|
105
|
-
}
|
|
106
|
-
type LocationResponse = Location[];
|
|
107
|
-
|
|
108
|
-
interface SocialPost {
|
|
109
|
-
id: number;
|
|
110
|
-
platform: string;
|
|
111
|
-
content_markdown: string;
|
|
112
|
-
posted_at: string;
|
|
113
|
-
status?: string;
|
|
114
|
-
created_at: string;
|
|
115
|
-
updated_at: string;
|
|
116
|
-
/** Image URLs from photo_attachments (preferred for display) */
|
|
117
|
-
image_urls?: string[];
|
|
118
|
-
/** Photo attachments (same pattern as blog post, team member, etc.) */
|
|
119
|
-
photo_attachments?: PhotoAttachment[];
|
|
120
|
-
/** Legacy; prefer image_urls / photo_attachments */
|
|
121
|
-
media_urls?: {
|
|
122
|
-
images?: string[];
|
|
123
|
-
videos?: string[];
|
|
124
|
-
};
|
|
125
|
-
engagement_metrics?: {
|
|
126
|
-
likes?: number;
|
|
127
|
-
comments?: number;
|
|
128
|
-
shares?: number;
|
|
129
|
-
views?: number;
|
|
130
|
-
};
|
|
131
|
-
/** Permalink to the post on the platform when available; only link when present to avoid broken links */
|
|
132
|
-
external_post_url?: string | null;
|
|
133
|
-
}
|
|
134
|
-
interface SocialPostParams {
|
|
135
|
-
platform?: string;
|
|
136
|
-
featured?: boolean;
|
|
137
|
-
page?: number;
|
|
138
|
-
per_page?: number;
|
|
139
|
-
}
|
|
140
|
-
type SocialPostResponse = SocialPost[];
|
|
141
|
-
|
|
142
|
-
interface FaqQuestion {
|
|
143
|
-
id: number;
|
|
144
|
-
question: string;
|
|
145
|
-
answer: string;
|
|
146
|
-
answer_markdown?: string;
|
|
147
|
-
category_slug?: string;
|
|
148
|
-
featured: boolean;
|
|
149
|
-
sort_order: number;
|
|
150
|
-
created_at: string;
|
|
151
|
-
updated_at: string;
|
|
152
|
-
photo_attachments?: PhotoAttachment[];
|
|
153
|
-
}
|
|
154
|
-
interface FaqCategory {
|
|
155
|
-
id: number;
|
|
156
|
-
name: string;
|
|
157
|
-
slug: string;
|
|
158
|
-
description?: string;
|
|
159
|
-
active: boolean;
|
|
160
|
-
sort_order: number;
|
|
161
|
-
questions_count: number;
|
|
162
|
-
}
|
|
163
|
-
interface FaqParams {
|
|
164
|
-
category_slug?: string;
|
|
165
|
-
featured?: boolean;
|
|
166
|
-
q?: string;
|
|
167
|
-
page?: number;
|
|
168
|
-
per_page?: number;
|
|
169
|
-
}
|
|
170
|
-
type FaqResponse = FaqQuestion[];
|
|
171
|
-
type FaqCategoryResponse = FaqCategory[];
|
|
172
|
-
|
|
173
|
-
interface JobPosting {
|
|
174
|
-
id: number;
|
|
175
|
-
title: string;
|
|
176
|
-
slug: string;
|
|
177
|
-
description_markdown: string;
|
|
178
|
-
requirements_markdown?: string;
|
|
179
|
-
benefits_markdown?: string;
|
|
180
|
-
employment_type: string;
|
|
181
|
-
location: string;
|
|
182
|
-
experience_level?: string;
|
|
183
|
-
remote_ok?: boolean;
|
|
184
|
-
salary_range?: string;
|
|
185
|
-
posted_at: string;
|
|
186
|
-
expires_at?: string;
|
|
187
|
-
status: 'active' | 'inactive' | 'expired';
|
|
188
|
-
featured: boolean;
|
|
189
|
-
created_at: string;
|
|
190
|
-
updated_at: string;
|
|
191
|
-
photo_attachments?: PhotoAttachment[];
|
|
192
|
-
}
|
|
193
|
-
interface JobPostingParams {
|
|
194
|
-
featured?: boolean;
|
|
195
|
-
employment_type?: string;
|
|
196
|
-
location?: string;
|
|
197
|
-
q?: string;
|
|
198
|
-
page?: number;
|
|
199
|
-
per_page?: number;
|
|
200
|
-
}
|
|
201
|
-
type JobPostingResponse = JobPosting[];
|
|
202
|
-
|
|
203
|
-
interface ContactInfo {
|
|
204
|
-
id?: number;
|
|
205
|
-
about_text_markdown?: string;
|
|
206
|
-
business_hours?: Record<string, {
|
|
207
|
-
open: string;
|
|
208
|
-
close: string;
|
|
209
|
-
}>;
|
|
210
|
-
company_name?: string;
|
|
211
|
-
description_markdown?: string;
|
|
212
|
-
facebook_url?: string;
|
|
213
|
-
favicon_url?: string;
|
|
214
|
-
founded_year?: string;
|
|
215
|
-
google_my_business_url?: string;
|
|
216
|
-
google_reviews_url?: string;
|
|
217
|
-
instagram_url?: string;
|
|
218
|
-
linkedin_url?: string;
|
|
219
|
-
mission_statement_markdown?: string;
|
|
220
|
-
pinterest_url?: string;
|
|
221
|
-
primary_address_line_1?: string;
|
|
222
|
-
primary_address_line_2?: string;
|
|
223
|
-
primary_city?: string;
|
|
224
|
-
primary_country?: string;
|
|
225
|
-
primary_email?: string;
|
|
226
|
-
primary_phone?: string;
|
|
227
|
-
primary_state?: string;
|
|
228
|
-
primary_zip_code?: string;
|
|
229
|
-
sales_email?: string;
|
|
230
|
-
stats_markdown?: string;
|
|
231
|
-
support_email?: string;
|
|
232
|
-
tagline?: string;
|
|
233
|
-
tiktok_url?: string;
|
|
234
|
-
tripadvisor_url?: string;
|
|
235
|
-
twitter_url?: string;
|
|
236
|
-
values_markdown?: string;
|
|
237
|
-
yelp_url?: string;
|
|
238
|
-
youtube_url?: string;
|
|
239
|
-
photo_attachments?: PhotoAttachment[];
|
|
240
|
-
}
|
|
241
|
-
interface ContactFormSubmission {
|
|
242
|
-
id: number;
|
|
243
|
-
name: string;
|
|
244
|
-
email: string;
|
|
245
|
-
phone?: string;
|
|
246
|
-
message: string;
|
|
247
|
-
source: string;
|
|
248
|
-
created_at: string;
|
|
249
|
-
}
|
|
250
|
-
interface ContactFormData {
|
|
251
|
-
name: string;
|
|
252
|
-
email: string;
|
|
253
|
-
phone?: string;
|
|
254
|
-
message: string;
|
|
255
|
-
source?: string;
|
|
256
|
-
}
|
|
257
|
-
type ContactResponse = ContactInfo | null;
|
|
258
|
-
interface ContactFormResponse {
|
|
259
|
-
message: string;
|
|
260
|
-
data: ContactFormSubmission;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
export { type ContactFormData, type ContactFormResponse, type ContactFormSubmission, type ContactInfo, type ContactResponse, type FaqCategory, type FaqCategoryResponse, type FaqParams, type FaqQuestion, type FaqResponse, type JobPosting, type JobPostingParams, type JobPostingResponse, type Location, type LocationParams, type LocationResponse, type NavItem, PhotoAttachment, type SiteConfig, type SocialPost, type SocialPostParams, type SocialPostResponse, type TeamMember, type TeamMemberParams, type TeamMemberResponse, type Testimonial, type TestimonialParams, type TestimonialResponse, Theme };
|
package/dist/utils/cx.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as tailwind_merge from 'tailwind-merge';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* This function is a wrapper around the twMerge function.
|
|
5
|
-
* It is used to merge the classes inside style objects.
|
|
6
|
-
*/
|
|
7
|
-
declare const cx: (...classLists: tailwind_merge.ClassNameValue[]) => string;
|
|
8
|
-
/**
|
|
9
|
-
* This function does nothing besides helping us to be able to
|
|
10
|
-
* sort the classes inside style objects which is not supported
|
|
11
|
-
* by the Tailwind IntelliSense by default.
|
|
12
|
-
*/
|
|
13
|
-
declare function sortCx<T extends Record<string, string | number | Record<string, string | number | Record<string, string | number>>>>(classes: T): T;
|
|
14
|
-
|
|
15
|
-
export { cx, sortCx };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generates a beautiful gradient SVG data URL using the full color palette
|
|
3
|
-
* Based on gradients used in corporate marketing site animations
|
|
4
|
-
* Each seed (post ID or index) will consistently return the same gradient
|
|
5
|
-
*/
|
|
6
|
-
declare const getGradientUrl: (seed: string | number) => string;
|
|
7
|
-
|
|
8
|
-
export { getGradientUrl };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
|
|
3
|
-
type ReactComponent = React__default.FC<unknown> | React__default.ComponentClass<unknown, unknown>;
|
|
4
|
-
/**
|
|
5
|
-
* Checks if a given value is a function component.
|
|
6
|
-
*/
|
|
7
|
-
declare const isFunctionComponent: (component: unknown) => component is React__default.FC<unknown>;
|
|
8
|
-
/**
|
|
9
|
-
* Checks if a given value is a class component.
|
|
10
|
-
*/
|
|
11
|
-
declare const isClassComponent: (component: unknown) => component is React__default.ComponentClass<unknown, unknown>;
|
|
12
|
-
/**
|
|
13
|
-
* Checks if a given value is a forward ref component.
|
|
14
|
-
*/
|
|
15
|
-
declare const isForwardRefComponent: (component: unknown) => component is React__default.ForwardRefExoticComponent<unknown>;
|
|
16
|
-
/**
|
|
17
|
-
* Checks if a given value is a valid React component.
|
|
18
|
-
*/
|
|
19
|
-
declare const isReactComponent: (component: unknown) => component is ReactComponent;
|
|
20
|
-
|
|
21
|
-
export { isClassComponent, isForwardRefComponent, isFunctionComponent, isReactComponent };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Utility functions for extracting table of contents from markdown
|
|
3
|
-
*/
|
|
4
|
-
interface TableOfContentsItem {
|
|
5
|
-
id: string;
|
|
6
|
-
title: string;
|
|
7
|
-
level: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Extract headings from markdown content and generate table of contents
|
|
11
|
-
*/
|
|
12
|
-
declare function extractTableOfContents(markdown: string): TableOfContentsItem[];
|
|
13
|
-
|
|
14
|
-
export { type TableOfContentsItem, extractTableOfContents };
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { W as WebsitePhotos } from '../website-photos-_n2g24IM.js';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Helper functions for extracting photo URLs from photo associations
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
interface PhotoAttachment {
|
|
8
|
-
id: number;
|
|
9
|
-
photo: {
|
|
10
|
-
id: number;
|
|
11
|
-
title: string;
|
|
12
|
-
thumbnail_url?: string;
|
|
13
|
-
medium_url?: string;
|
|
14
|
-
large_url?: string;
|
|
15
|
-
original_url?: string;
|
|
16
|
-
};
|
|
17
|
-
featured: boolean;
|
|
18
|
-
sort_order: number;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Get the best available photo URL from a photos array
|
|
22
|
-
* Priority: featured photo > first photo > fallback
|
|
23
|
-
*/
|
|
24
|
-
declare function getPhotoUrl(photos?: PhotoAttachment[]): string | null;
|
|
25
|
-
/**
|
|
26
|
-
* Get avatar URL for team members or authors.
|
|
27
|
-
* Returns a URL only when there is a real photo in attachments; otherwise null.
|
|
28
|
-
* Callers should use PhotoWithFallback (gradient fallback) or Avatar with initials when null.
|
|
29
|
-
*/
|
|
30
|
-
/** Optional fallbackId/name reserved for future use (e.g. deterministic fallback). */
|
|
31
|
-
declare function getAvatarUrl(photos?: PhotoAttachment[], _fallbackId?: number | string, _name?: string): string | null;
|
|
32
|
-
/**
|
|
33
|
-
* Get featured image URL for blog posts
|
|
34
|
-
*/
|
|
35
|
-
declare function getFeaturedImageUrl(photos?: PhotoAttachment[]): string | null;
|
|
36
|
-
/**
|
|
37
|
-
* Get logo URL from website_photos API (which aggregates from account_photos)
|
|
38
|
-
*
|
|
39
|
-
* The website_photos API endpoint returns logos from account_photos with photo_type: 'logo',
|
|
40
|
-
* with industry fallback. This is the primary and only source for logos.
|
|
41
|
-
*
|
|
42
|
-
* Returns undefined if no logo is available (for PhotoWithFallback gradient fallback)
|
|
43
|
-
*/
|
|
44
|
-
declare function getLogoUrl(websitePhotos?: WebsitePhotos | null): string | undefined;
|
|
45
|
-
|
|
46
|
-
export { type PhotoAttachment, getAvatarUrl, getFeaturedImageUrl, getLogoUrl, getPhotoUrl };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
interface WebsitePhoto {
|
|
2
|
-
id: number;
|
|
3
|
-
url: string;
|
|
4
|
-
thumbnail_url?: string;
|
|
5
|
-
medium_url?: string;
|
|
6
|
-
alt: string;
|
|
7
|
-
source: 'account' | 'industry';
|
|
8
|
-
}
|
|
9
|
-
interface WebsitePhotos {
|
|
10
|
-
logo?: WebsitePhoto | null;
|
|
11
|
-
favicon?: WebsitePhoto | null;
|
|
12
|
-
hero?: WebsitePhoto | null;
|
|
13
|
-
contact?: WebsitePhoto | null;
|
|
14
|
-
about?: WebsitePhoto | null;
|
|
15
|
-
careers?: WebsitePhoto | null;
|
|
16
|
-
stock_photos?: WebsitePhoto[];
|
|
17
|
-
}
|
|
18
|
-
type WebsitePhotosResponse = WebsitePhotos;
|
|
19
|
-
|
|
20
|
-
export type { WebsitePhotos as W, WebsitePhoto as a, WebsitePhotosResponse as b };
|