@marvalt/digivalt-core 0.1.6 → 0.2.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.
Files changed (44) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +32 -4
  3. package/bin/init.cjs +42 -7
  4. package/dist/config.cjs +520 -0
  5. package/dist/config.cjs.map +1 -0
  6. package/dist/config.d.ts +307 -0
  7. package/dist/config.esm.js +502 -0
  8. package/dist/config.esm.js.map +1 -0
  9. package/dist/generators.cjs +2481 -0
  10. package/dist/generators.cjs.map +1 -0
  11. package/dist/generators.d.ts +19 -0
  12. package/dist/generators.esm.js +2475 -0
  13. package/dist/generators.esm.js.map +1 -0
  14. package/dist/index.cjs +18 -7955
  15. package/dist/index.cjs.map +1 -1
  16. package/dist/index.d.ts +18 -1196
  17. package/dist/index.esm.js +13 -7929
  18. package/dist/index.esm.js.map +1 -1
  19. package/dist/runtime/env.d.ts +4 -0
  20. package/dist/runtime/lazy.d.ts +1 -0
  21. package/dist/services/cf-wp-webhook.d.ts +2 -0
  22. package/dist/services/gravityForms.d.ts +3 -0
  23. package/dist/services/mautic.d.ts +5 -1
  24. package/dist/services/suitecrm.d.ts +2 -0
  25. package/dist/services.cjs +1339 -0
  26. package/dist/services.cjs.map +1 -0
  27. package/dist/services.d.ts +432 -0
  28. package/dist/services.esm.js +1322 -0
  29. package/dist/services.esm.js.map +1 -0
  30. package/dist/static/index.d.ts +4 -0
  31. package/dist/static.cjs +997 -0
  32. package/dist/static.cjs.map +1 -0
  33. package/dist/static.d.ts +410 -0
  34. package/dist/static.esm.js +962 -0
  35. package/dist/static.esm.js.map +1 -0
  36. package/dist/types.cjs +3 -0
  37. package/dist/types.cjs.map +1 -0
  38. package/dist/types.d.ts +134 -0
  39. package/dist/types.esm.js +2 -0
  40. package/dist/types.esm.js.map +1 -0
  41. package/package.json +30 -2
  42. package/template/DIGIVALT_SETUP.md +62 -0
  43. package/template/scripts/deploy-secrets.js +55 -23
  44. package/template/scripts/generate.ts +19 -0
package/dist/index.d.ts CHANGED
@@ -1,9 +1,3 @@
1
- import * as _marvalt_wadapter from '@marvalt/wadapter';
2
- import { GravityFormsClient, GravityForm, GravityFormField, GravityFormSubmission, GravityFormSubmissionResult, GravityFormsConfig } from '@marvalt/wadapter';
3
- import React from 'react';
4
- import { WordPressBlock, ComponentRegistry } from '@marvalt/wparser';
5
- import { ClassValue } from 'clsx';
6
-
7
1
  declare function generateWordPressData(options?: {
8
2
  outputPath?: string;
9
3
  }): Promise<boolean>;
@@ -22,22 +16,22 @@ declare function generateSuiteCRMData(options?: {
22
16
 
23
17
  declare function generateAllData(): Promise<void>;
24
18
 
25
- declare const index$5_generateAllData: typeof generateAllData;
26
- declare const index$5_generateGravityFormsData: typeof generateGravityFormsData;
27
- declare const index$5_generateMauticData: typeof generateMauticData;
28
- declare const index$5_generateSuiteCRMData: typeof generateSuiteCRMData;
29
- declare const index$5_generateWordPressData: typeof generateWordPressData;
30
- declare namespace index$5 {
19
+ declare const index_generateAllData: typeof generateAllData;
20
+ declare const index_generateGravityFormsData: typeof generateGravityFormsData;
21
+ declare const index_generateMauticData: typeof generateMauticData;
22
+ declare const index_generateSuiteCRMData: typeof generateSuiteCRMData;
23
+ declare const index_generateWordPressData: typeof generateWordPressData;
24
+ declare namespace index {
31
25
  export {
32
- index$5_generateAllData as generateAllData,
33
- index$5_generateGravityFormsData as generateGravityFormsData,
34
- index$5_generateMauticData as generateMauticData,
35
- index$5_generateSuiteCRMData as generateSuiteCRMData,
36
- index$5_generateWordPressData as generateWordPressData,
26
+ index_generateAllData as generateAllData,
27
+ index_generateGravityFormsData as generateGravityFormsData,
28
+ index_generateMauticData as generateMauticData,
29
+ index_generateSuiteCRMData as generateSuiteCRMData,
30
+ index_generateWordPressData as generateWordPressData,
37
31
  };
38
32
  }
39
33
 
40
- interface WordPressPost$1 {
34
+ interface WordPressPost {
41
35
  id: number;
42
36
  title: {
43
37
  rendered: string;
@@ -60,7 +54,7 @@ interface WordPressPost$1 {
60
54
  }>;
61
55
  };
62
56
  }
63
- interface WordPressPage$1 {
57
+ interface WordPressPage {
64
58
  id: number;
65
59
  title: {
66
60
  rendered: string;
@@ -117,7 +111,7 @@ interface KudoData {
117
111
  value: string;
118
112
  label: string;
119
113
  }
120
- interface Testimonial extends WordPressPost$1 {
114
+ interface Testimonial extends WordPressPost {
121
115
  type: 'testimonial';
122
116
  acf: {
123
117
  submitter_name: string;
@@ -163,1190 +157,18 @@ interface StaticDataStore {
163
157
  frontend_id: string;
164
158
  frontend_name: string;
165
159
  config: StaticDataConfig;
166
- posts: WordPressPost$1[];
167
- pages: WordPressPage$1[];
160
+ posts: WordPressPost[];
161
+ pages: WordPressPage[];
168
162
  case_studies: WordPressCaseStudy[];
169
163
  projects: WordPressProject[];
170
164
  members: WordPressMember[];
171
165
  }
172
166
 
173
- declare const gravityFormsClient: GravityFormsClient;
174
- interface GravityFormEntry {
175
- [fieldId: string]: any;
176
- }
177
- declare const gravityFormsService: {
178
- /**
179
- * Submit a Gravity Form (legacy interface)
180
- * @param formId - Form ID as string or number
181
- * @param entry - Entry data with field IDs as keys
182
- * @param files - Optional files (not yet supported)
183
- * @param useBasicApi - Ignored (always uses proxy)
184
- */
185
- submitForm(formId: string | number, entry: GravityFormEntry, files?: {
186
- [fieldId: string]: File[];
187
- }, useBasicApi?: boolean): Promise<_marvalt_wadapter.GravityFormSubmissionResult>;
188
- getForm: (id: number) => Promise<any>;
189
- getForms: () => Promise<any>;
190
- getFormConfig: (id: number) => Promise<any>;
191
- getHealth: () => Promise<any>;
192
- };
193
-
194
- /**
195
- * Mautic Integration Service (via @marvalt/madapter)
196
- */
197
- interface MauticContact {
198
- id?: number;
199
- email: string;
200
- firstname?: string;
201
- lastname?: string;
202
- company?: string;
203
- phone?: string;
204
- tags?: string[];
205
- customFields?: {
206
- [key: string]: unknown;
207
- };
208
- }
209
- interface MauticFormSubmission {
210
- formId: number;
211
- fields: {
212
- [fieldName: string]: unknown;
213
- };
214
- contact?: MauticContact;
215
- formName?: string;
216
- returnUrl?: string;
217
- }
218
- interface MauticFormField {
219
- id: number;
220
- label: string;
221
- alias: string;
222
- type: string;
223
- isRequired: boolean;
224
- validationMessage?: string;
225
- defaultValue?: string;
226
- properties?: {
227
- placeholder?: string;
228
- cssClass?: string;
229
- validation?: string[];
230
- options?: string[];
231
- helpText?: string;
232
- size?: string;
233
- [key: string]: unknown;
234
- };
235
- }
236
- interface MauticFormAction {
237
- id: number;
238
- name: string;
239
- type: 'email' | 'notification' | 'tag' | 'segment';
240
- properties: {
241
- email?: string;
242
- subject?: string;
243
- message?: string;
244
- tags?: string[];
245
- segmentId?: number;
246
- [key: string]: unknown;
247
- };
248
- }
249
- interface MauticForm {
250
- id: number;
251
- name: string;
252
- description?: string;
253
- fields: MauticFormField[];
254
- actions: MauticFormAction[];
255
- cssClass?: string;
256
- submitAction?: string;
257
- postAction?: string;
258
- postActionProperty?: string;
259
- formType?: string;
260
- isPublished?: boolean;
261
- }
262
- interface MauticFormConfig {
263
- id: number;
264
- name: string;
265
- description?: string;
266
- fields: MauticFormField[];
267
- actions: MauticFormAction[];
268
- cssClass?: string;
269
- submitAction?: string;
270
- postAction?: string;
271
- postActionProperty?: string;
272
- formType?: string;
273
- isPublished?: boolean;
274
- }
275
- declare const mauticService: any;
276
-
277
- interface SuiteCRMLead {
278
- first_name: string;
279
- last_name: string;
280
- email1: string;
281
- phone_work?: string;
282
- lead_source?: string;
283
- status?: string;
284
- description?: string;
285
- campaign_id?: string;
286
- [key: string]: any;
287
- }
288
- interface SuiteCRMContact {
289
- first_name: string;
290
- last_name: string;
291
- email1: string;
292
- phone_work?: string;
293
- title?: string;
294
- department?: string;
295
- [key: string]: any;
296
- }
297
- interface SuiteCRMAccount {
298
- name: string;
299
- billing_address_city?: string;
300
- billing_address_country?: string;
301
- phone_office?: string;
302
- website?: string;
303
- [key: string]: any;
304
- }
305
- interface SuiteCRMOpportunity {
306
- name: string;
307
- amount?: number;
308
- sales_stage?: string;
309
- probability?: number;
310
- expected_close_date?: string;
311
- [key: string]: any;
312
- }
313
- interface SuiteCRMAPIResponse<T = any> {
314
- data?: T;
315
- errors?: Array<{
316
- status: string;
317
- code: string;
318
- title: string;
319
- detail: string;
320
- }>;
321
- meta?: {
322
- total_count?: number;
323
- page?: number;
324
- per_page?: number;
325
- action?: string;
326
- recordId?: string;
327
- };
328
- }
329
- declare class SuiteCRMService {
330
- private baseUrl;
331
- private proxyUrl?;
332
- private appId?;
333
- private workerSecret?;
334
- private useProxy;
335
- private isConfigured;
336
- private oauth2Config?;
337
- private accessToken?;
338
- private tokenExpiresAt?;
339
- private sessionId?;
340
- private csrfToken?;
341
- constructor();
342
- private validateConfiguration;
343
- private getSessionAndCSRFToken;
344
- private getAccessToken;
345
- private getAuthHeaders;
346
- private makeRequest;
347
- isServiceConfigured(): boolean;
348
- createLead(lead: SuiteCRMLead): Promise<SuiteCRMAPIResponse>;
349
- createLeadREST(lead: SuiteCRMLead): Promise<SuiteCRMAPIResponse>;
350
- verifyLeadCreation(email: string, firstName: string, lastName: string): Promise<boolean>;
351
- getLead(leadId: string): Promise<SuiteCRMAPIResponse>;
352
- updateLead(leadId: string, lead: Partial<SuiteCRMLead>): Promise<SuiteCRMAPIResponse>;
353
- getLeads(params?: {
354
- page?: number;
355
- per_page?: number;
356
- filter?: string;
357
- sort?: string;
358
- }): Promise<SuiteCRMAPIResponse>;
359
- createContact(contact: SuiteCRMContact): Promise<SuiteCRMAPIResponse>;
360
- getContact(contactId: string): Promise<SuiteCRMAPIResponse>;
361
- updateContact(contactId: string, contact: Partial<SuiteCRMContact>): Promise<SuiteCRMAPIResponse>;
362
- createAccount(account: SuiteCRMAccount): Promise<SuiteCRMAPIResponse>;
363
- getAccount(accountId: string): Promise<SuiteCRMAPIResponse>;
364
- createOpportunity(opportunity: SuiteCRMOpportunity): Promise<SuiteCRMAPIResponse>;
365
- getOpportunity(opportunityId: string): Promise<SuiteCRMAPIResponse>;
366
- searchLeads(query: string): Promise<SuiteCRMAPIResponse>;
367
- getLeadSources(): Promise<SuiteCRMAPIResponse>;
368
- getLeadStatuses(): Promise<SuiteCRMAPIResponse>;
369
- graphqlRequest<T = any>(query: string, variables?: Record<string, any>): Promise<T>;
370
- testConnection(): Promise<boolean>;
371
- createLeadSimple(leadData: SuiteCRMLead): Promise<SuiteCRMAPIResponse>;
372
- }
373
- declare const suitecrmService: SuiteCRMService;
374
-
375
- /**
376
- * Cloudflare WordPress Webhook Service
377
- * Handles webhook status and data regeneration monitoring
378
- */
379
- interface WebhookStatus {
380
- last_triggered: string | null;
381
- last_success: string | null;
382
- last_error: string | null;
383
- total_triggers: number;
384
- success_rate: number;
385
- status: 'healthy' | 'warning' | 'error' | 'unknown';
386
- }
387
- interface WebhookResponse {
388
- success: boolean;
389
- message: string;
390
- timestamp: string;
391
- data_generated?: {
392
- static_data: boolean;
393
- gravity_forms: boolean;
394
- mautic_data: boolean;
395
- };
396
- errors?: string[];
397
- }
398
- interface WebhookConfig {
399
- enabled: boolean;
400
- refresh_secret: string;
401
- frontends: Array<{
402
- frontend_id: string;
403
- webhook_url: string;
404
- enabled: boolean;
405
- }>;
406
- post_types: string[];
407
- rate_limit_minutes: number;
408
- }
409
- declare class CfWpWebhookService {
410
- private baseUrl;
411
- private refreshSecret;
412
- constructor();
413
- /**
414
- * Get webhook status from WordPress
415
- */
416
- getWebhookStatus(): Promise<WebhookStatus>;
417
- /**
418
- * Get webhook configuration from WordPress
419
- */
420
- getWebhookConfig(): Promise<WebhookConfig | null>;
421
- /**
422
- * Test webhook endpoint
423
- */
424
- testWebhook(): Promise<{
425
- success: boolean;
426
- message: string;
427
- }>;
428
- /**
429
- * Get last webhook response
430
- */
431
- getLastWebhookResponse(): Promise<WebhookResponse | null>;
432
- /**
433
- * Manually trigger data regeneration
434
- */
435
- triggerDataRegeneration(): Promise<{
436
- success: boolean;
437
- message: string;
438
- }>;
439
- /**
440
- * Check if webhook is properly configured
441
- */
442
- isConfigured(): boolean;
443
- /**
444
- * Get configuration status
445
- */
446
- getConfigurationStatus(): {
447
- wordpress_url: boolean;
448
- refresh_secret: boolean;
449
- fully_configured: boolean;
450
- };
451
- }
452
- declare const cfWpWebhookService: CfWpWebhookService;
453
-
454
- declare const index$4_GravityForm: typeof GravityForm;
455
- type index$4_GravityFormEntry = GravityFormEntry;
456
- declare const index$4_GravityFormField: typeof GravityFormField;
457
- declare const index$4_GravityFormSubmission: typeof GravityFormSubmission;
458
- declare const index$4_GravityFormSubmissionResult: typeof GravityFormSubmissionResult;
459
- declare const index$4_GravityFormsConfig: typeof GravityFormsConfig;
460
- type index$4_KudoData = KudoData;
461
- type index$4_MauticContact = MauticContact;
462
- type index$4_MauticForm = MauticForm;
463
- type index$4_MauticFormAction = MauticFormAction;
464
- type index$4_MauticFormConfig = MauticFormConfig;
465
- type index$4_MauticFormField = MauticFormField;
466
- type index$4_MauticFormSubmission = MauticFormSubmission;
467
- type index$4_StaticDataConfig = StaticDataConfig;
468
- type index$4_StaticDataStore = StaticDataStore;
469
- type index$4_SuiteCRMAPIResponse<T = any> = SuiteCRMAPIResponse<T>;
470
- type index$4_SuiteCRMAccount = SuiteCRMAccount;
471
- type index$4_SuiteCRMContact = SuiteCRMContact;
472
- type index$4_SuiteCRMLead = SuiteCRMLead;
473
- type index$4_SuiteCRMOpportunity = SuiteCRMOpportunity;
474
- type index$4_Testimonial = Testimonial;
475
- type index$4_WebhookConfig = WebhookConfig;
476
- type index$4_WebhookResponse = WebhookResponse;
477
- type index$4_WebhookStatus = WebhookStatus;
478
- type index$4_WordPressCaseStudy = WordPressCaseStudy;
479
- type index$4_WordPressMember = WordPressMember;
480
- type index$4_WordPressProject = WordPressProject;
481
- declare const index$4_cfWpWebhookService: typeof cfWpWebhookService;
482
- declare const index$4_gravityFormsClient: typeof gravityFormsClient;
483
- declare const index$4_gravityFormsService: typeof gravityFormsService;
484
- declare const index$4_mauticService: typeof mauticService;
485
- declare const index$4_suitecrmService: typeof suitecrmService;
486
- declare namespace index$4 {
487
- export { index$4_GravityForm as GravityForm, index$4_GravityFormField as GravityFormField, index$4_GravityFormSubmission as GravityFormSubmission, index$4_GravityFormSubmissionResult as GravityFormSubmissionResult, index$4_GravityFormsConfig as GravityFormsConfig, index$4_cfWpWebhookService as cfWpWebhookService, index$4_gravityFormsClient as gravityFormsClient, index$4_gravityFormsService as gravityFormsService, index$4_mauticService as mauticService, index$4_suitecrmService as suitecrmService };
488
- export type { index$4_GravityFormEntry as GravityFormEntry, index$4_KudoData as KudoData, index$4_MauticContact as MauticContact, index$4_MauticForm as MauticForm, index$4_MauticFormAction as MauticFormAction, index$4_MauticFormConfig as MauticFormConfig, index$4_MauticFormField as MauticFormField, index$4_MauticFormSubmission as MauticFormSubmission, index$4_StaticDataConfig as StaticDataConfig, index$4_StaticDataStore as StaticDataStore, index$4_SuiteCRMAPIResponse as SuiteCRMAPIResponse, index$4_SuiteCRMAccount as SuiteCRMAccount, index$4_SuiteCRMContact as SuiteCRMContact, index$4_SuiteCRMLead as SuiteCRMLead, index$4_SuiteCRMOpportunity as SuiteCRMOpportunity, index$4_Testimonial as Testimonial, index$4_WebhookConfig as WebhookConfig, index$4_WebhookResponse as WebhookResponse, index$4_WebhookStatus as WebhookStatus, index$4_WordPressCaseStudy as WordPressCaseStudy, index$4_WordPressMember as WordPressMember, WordPressPage$1 as WordPressPage, WordPressPost$1 as WordPressPost, index$4_WordPressProject as WordPressProject };
489
- }
490
-
491
- interface EnvironmentConfig {
492
- mode: 'local' | 'remote' | 'production' | 'error';
493
- authMode: 'direct' | 'cloudflare_proxy' | 'supabase_proxy' | 'error';
494
- dataSource: 'static' | 'dynamic' | 'hybrid';
495
- baseUrl: string;
496
- headers: Record<string, string>;
497
- description: string;
498
- mautic?: {
499
- url?: string;
500
- proxyUrl?: string;
501
- appId?: string;
502
- workerSecret?: string;
503
- };
504
- suiteCRM: {
505
- url?: string;
506
- proxyUrl?: string;
507
- appId?: string;
508
- workerSecret?: string;
509
- oauth2?: {
510
- clientId?: string;
511
- clientSecret?: string;
512
- username?: string;
513
- password?: string;
514
- tokenUrl?: string;
515
- };
516
- };
517
- }
518
- interface DevelopmentConfig {
519
- local: EnvironmentConfig;
520
- remote: EnvironmentConfig;
521
- production: EnvironmentConfig;
522
- }
523
- declare const getEnvironmentConfig: () => EnvironmentConfig;
524
- declare const getDevelopmentConfigs: () => DevelopmentConfig;
525
- declare const getEnvironmentStatus: () => {
526
- currentConfig: EnvironmentConfig;
527
- diagnostics: {
528
- isLocalDevelopment: boolean;
529
- authMode: string;
530
- hasCloudflareCredentials: boolean;
531
- hasWordpressApiUrl: boolean;
532
- cloudflareWorkerUrl: boolean;
533
- cfAccessId: boolean;
534
- cfAccessSecret: boolean;
535
- mauticProxyUrl: boolean;
536
- };
537
- recommendations: {
538
- authMode: any;
539
- cloudflare: any;
540
- };
541
- };
542
- declare const currentEnv: EnvironmentConfig;
543
- declare const envStatus: {
544
- currentConfig: EnvironmentConfig;
545
- diagnostics: {
546
- isLocalDevelopment: boolean;
547
- authMode: string;
548
- hasCloudflareCredentials: boolean;
549
- hasWordpressApiUrl: boolean;
550
- cloudflareWorkerUrl: boolean;
551
- cfAccessId: boolean;
552
- cfAccessSecret: boolean;
553
- mauticProxyUrl: boolean;
554
- };
555
- recommendations: {
556
- authMode: any;
557
- cloudflare: any;
558
- };
559
- };
560
-
561
- /**
562
- * Integration Configuration
563
- * Centralized configuration for all third-party integrations
564
- */
565
- interface IntegrationConfig {
566
- wordpress: {
567
- enabled: boolean;
568
- apiUrl: string;
569
- authMode: 'direct' | 'supabase_proxy';
570
- wpAuthToken?: string;
571
- };
572
- supabase: {
573
- enabled: boolean;
574
- url: string;
575
- anonKey: string;
576
- serviceRoleKey?: string;
577
- };
578
- gravityForms: {
579
- enabled: boolean;
580
- url?: string;
581
- proxyUrl?: string;
582
- consumerKey?: string;
583
- consumerSecret?: string;
584
- frontendSecret?: string;
585
- forms: {
586
- [formId: string]: {
587
- name: string;
588
- type: 'contact' | 'lead' | 'newsletter' | 'support' | 'custom';
589
- redirectUrl?: string;
590
- successMessage?: string;
591
- };
592
- };
593
- };
594
- mautic: {
595
- enabled: boolean;
596
- url?: string;
597
- proxyUrl?: string;
598
- apiPublicKey?: string;
599
- apiSecretKey?: string;
600
- appId?: string;
601
- workerSecret?: string;
602
- forms: {
603
- [formId: string]: {
604
- name: string;
605
- type: 'newsletter' | 'lead' | 'contact' | 'custom';
606
- redirectUrl?: string;
607
- successMessage?: string;
608
- postAction?: 'message' | 'redirect' | 'return';
609
- postActionProperty?: string;
610
- };
611
- };
612
- };
613
- suiteCRM: {
614
- enabled: boolean;
615
- url?: string;
616
- proxyUrl?: string;
617
- appId?: string;
618
- workerSecret?: string;
619
- oauth2?: {
620
- clientId?: string;
621
- clientSecret?: string;
622
- username?: string;
623
- password?: string;
624
- tokenUrl?: string;
625
- };
626
- };
627
- chatwoot: {
628
- enabled: boolean;
629
- websiteToken: string;
630
- baseUrl: string;
631
- locale: string;
632
- type: 'standard' | 'expanded_bubble';
633
- launcherTitle: string;
634
- hideMessageBubble: boolean;
635
- position: 'left' | 'right';
636
- showPopoutButton: boolean;
637
- };
638
- analytics: {
639
- googleAnalytics: {
640
- enabled: boolean;
641
- measurementId?: string;
642
- };
643
- googleTagManager: {
644
- enabled: boolean;
645
- containerId?: string;
646
- };
647
- facebookPixel: {
648
- enabled: boolean;
649
- pixelId?: string;
650
- };
651
- linkedinInsight: {
652
- enabled: boolean;
653
- partnerId?: string;
654
- };
655
- };
656
- seo: {
657
- defaultTitle: string;
658
- defaultDescription: string;
659
- defaultImage: string;
660
- siteName: string;
661
- siteUrl: string;
662
- twitterHandle?: string;
663
- facebookAppId?: string;
664
- googleSiteVerification?: string;
665
- bingSiteVerification?: string;
666
- };
667
- performance: {
668
- enableLazyLoading: boolean;
669
- enableImageOptimization: boolean;
670
- enableCodeSplitting: boolean;
671
- enableServiceWorker: boolean;
672
- enableCaching: boolean;
673
- };
674
- }
675
- /**
676
- * Get integration configuration with environment variable fallbacks
677
- */
678
- declare function getIntegrationConfig(): IntegrationConfig;
679
- /**
680
- * Validate integration configuration
681
- * Only validates integrations that are actually enabled
682
- */
683
- declare function validateIntegrationConfig(): string[];
684
- /**
685
- * Get specific integration configuration
686
- */
687
- declare function getWordPressConfig(): {
688
- enabled: boolean;
689
- apiUrl: string;
690
- authMode: "direct" | "supabase_proxy";
691
- wpAuthToken?: string;
692
- };
693
- declare function getSupabaseConfig(): {
694
- enabled: boolean;
695
- url: string;
696
- anonKey: string;
697
- serviceRoleKey?: string;
698
- };
699
- declare function getGravityFormsConfig(): {
700
- enabled: boolean;
701
- url?: string;
702
- proxyUrl?: string;
703
- consumerKey?: string;
704
- consumerSecret?: string;
705
- frontendSecret?: string;
706
- forms: {
707
- [formId: string]: {
708
- name: string;
709
- type: "contact" | "lead" | "newsletter" | "support" | "custom";
710
- redirectUrl?: string;
711
- successMessage?: string;
712
- };
713
- };
714
- };
715
- declare function getMauticConfig(): {
716
- enabled: boolean;
717
- url?: string;
718
- proxyUrl?: string;
719
- apiPublicKey?: string;
720
- apiSecretKey?: string;
721
- appId?: string;
722
- workerSecret?: string;
723
- forms: {
724
- [formId: string]: {
725
- name: string;
726
- type: "newsletter" | "lead" | "contact" | "custom";
727
- redirectUrl?: string;
728
- successMessage?: string;
729
- postAction?: "message" | "redirect" | "return";
730
- postActionProperty?: string;
731
- };
732
- };
733
- };
734
- declare function getSuiteCRMConfig(): {
735
- enabled: boolean;
736
- url?: string;
737
- proxyUrl?: string;
738
- appId?: string;
739
- workerSecret?: string;
740
- oauth2?: {
741
- clientId?: string;
742
- clientSecret?: string;
743
- username?: string;
744
- password?: string;
745
- tokenUrl?: string;
746
- };
747
- };
748
- declare function getChatwootConfig(): {
749
- enabled: boolean;
750
- websiteToken: string;
751
- baseUrl: string;
752
- locale: string;
753
- type: "standard" | "expanded_bubble";
754
- launcherTitle: string;
755
- hideMessageBubble: boolean;
756
- position: "left" | "right";
757
- showPopoutButton: boolean;
758
- };
759
- declare function getAnalyticsConfig(): {
760
- googleAnalytics: {
761
- enabled: boolean;
762
- measurementId?: string;
763
- };
764
- googleTagManager: {
765
- enabled: boolean;
766
- containerId?: string;
767
- };
768
- facebookPixel: {
769
- enabled: boolean;
770
- pixelId?: string;
771
- };
772
- linkedinInsight: {
773
- enabled: boolean;
774
- partnerId?: string;
775
- };
776
- };
777
- declare function getSEOConfig(): {
778
- defaultTitle: string;
779
- defaultDescription: string;
780
- defaultImage: string;
781
- siteName: string;
782
- siteUrl: string;
783
- twitterHandle?: string;
784
- facebookAppId?: string;
785
- googleSiteVerification?: string;
786
- bingSiteVerification?: string;
787
- };
788
- declare function getPerformanceConfig(): {
789
- enableLazyLoading: boolean;
790
- enableImageOptimization: boolean;
791
- enableCodeSplitting: boolean;
792
- enableServiceWorker: boolean;
793
- enableCaching: boolean;
794
- };
795
-
796
- type index$3_DevelopmentConfig = DevelopmentConfig;
797
- type index$3_EnvironmentConfig = EnvironmentConfig;
798
- type index$3_IntegrationConfig = IntegrationConfig;
799
- declare const index$3_currentEnv: typeof currentEnv;
800
- declare const index$3_envStatus: typeof envStatus;
801
- declare const index$3_getAnalyticsConfig: typeof getAnalyticsConfig;
802
- declare const index$3_getChatwootConfig: typeof getChatwootConfig;
803
- declare const index$3_getDevelopmentConfigs: typeof getDevelopmentConfigs;
804
- declare const index$3_getEnvironmentConfig: typeof getEnvironmentConfig;
805
- declare const index$3_getEnvironmentStatus: typeof getEnvironmentStatus;
806
- declare const index$3_getGravityFormsConfig: typeof getGravityFormsConfig;
807
- declare const index$3_getIntegrationConfig: typeof getIntegrationConfig;
808
- declare const index$3_getMauticConfig: typeof getMauticConfig;
809
- declare const index$3_getPerformanceConfig: typeof getPerformanceConfig;
810
- declare const index$3_getSEOConfig: typeof getSEOConfig;
811
- declare const index$3_getSuiteCRMConfig: typeof getSuiteCRMConfig;
812
- declare const index$3_getSupabaseConfig: typeof getSupabaseConfig;
813
- declare const index$3_getWordPressConfig: typeof getWordPressConfig;
814
- declare const index$3_validateIntegrationConfig: typeof validateIntegrationConfig;
815
- declare namespace index$3 {
816
- export { index$3_currentEnv as currentEnv, index$3_envStatus as envStatus, index$3_getAnalyticsConfig as getAnalyticsConfig, index$3_getChatwootConfig as getChatwootConfig, index$3_getDevelopmentConfigs as getDevelopmentConfigs, index$3_getEnvironmentConfig as getEnvironmentConfig, index$3_getEnvironmentStatus as getEnvironmentStatus, index$3_getGravityFormsConfig as getGravityFormsConfig, index$3_getIntegrationConfig as getIntegrationConfig, index$3_getMauticConfig as getMauticConfig, index$3_getPerformanceConfig as getPerformanceConfig, index$3_getSEOConfig as getSEOConfig, index$3_getSuiteCRMConfig as getSuiteCRMConfig, index$3_getSupabaseConfig as getSupabaseConfig, index$3_getWordPressConfig as getWordPressConfig, index$3_validateIntegrationConfig as validateIntegrationConfig };
817
- export type { index$3_DevelopmentConfig as DevelopmentConfig, index$3_EnvironmentConfig as EnvironmentConfig, index$3_IntegrationConfig as IntegrationConfig };
818
- }
819
-
820
- /**
821
- * Password utility functions for handling special characters
822
- */
823
- /**
824
- * Safely encode a password for API requests
825
- * Handles special characters like $, @, #, %, etc.
826
- */
827
- declare function encodePassword(password: string): string;
828
- /**
829
- * Safely encode a password for URL-encoded requests
830
- * Used when sending as form data
831
- */
832
- declare function encodePasswordForUrl(password: string): string;
833
- /**
834
- * Validate password for common issues
835
- */
836
- declare function validatePassword(password: string): {
837
- isValid: boolean;
838
- issues: string[];
839
- };
840
- /**
841
- * Get password encoding recommendations
842
- */
843
- declare function getPasswordRecommendations(password: string): string[];
844
-
845
- declare const index$2_encodePassword: typeof encodePassword;
846
- declare const index$2_encodePasswordForUrl: typeof encodePasswordForUrl;
847
- declare const index$2_getPasswordRecommendations: typeof getPasswordRecommendations;
848
- declare const index$2_validatePassword: typeof validatePassword;
849
- declare namespace index$2 {
850
- export {
851
- index$2_encodePassword as encodePassword,
852
- index$2_encodePasswordForUrl as encodePasswordForUrl,
853
- index$2_getPasswordRecommendations as getPasswordRecommendations,
854
- index$2_validatePassword as validatePassword,
855
- };
856
- }
857
-
858
- type index$1_KudoData = KudoData;
859
- type index$1_StaticDataConfig = StaticDataConfig;
860
- type index$1_StaticDataStore = StaticDataStore;
861
- type index$1_Testimonial = Testimonial;
862
- type index$1_WordPressCaseStudy = WordPressCaseStudy;
863
- type index$1_WordPressMember = WordPressMember;
864
- type index$1_WordPressProject = WordPressProject;
865
- declare namespace index$1 {
866
- export type { index$1_KudoData as KudoData, index$1_StaticDataConfig as StaticDataConfig, index$1_StaticDataStore as StaticDataStore, index$1_Testimonial as Testimonial, index$1_WordPressCaseStudy as WordPressCaseStudy, index$1_WordPressMember as WordPressMember, WordPressPage$1 as WordPressPage, WordPressPost$1 as WordPressPost, index$1_WordPressProject as WordPressProject };
867
- }
868
-
869
- interface ChatwootConfig {
870
- websiteToken: string;
871
- baseUrl?: string;
872
- locale?: string;
873
- type?: 'standard' | 'expanded_bubble';
874
- launcherTitle?: string;
875
- hideMessageBubble?: boolean;
876
- position?: 'left' | 'right';
877
- showPopoutButton?: boolean;
878
- }
879
- interface ChatwootWidgetProps {
880
- config: ChatwootConfig;
881
- enabled?: boolean;
882
- className?: string;
883
- }
884
- interface ChatwootWidgetRef {
885
- toggle: () => void;
886
- show: () => void;
887
- hide: () => void;
888
- reset: () => void;
889
- }
890
- declare global {
891
- interface Window {
892
- chatwootSettings: {
893
- hideMessageBubble?: boolean;
894
- position?: 'left' | 'right';
895
- locale?: string;
896
- type?: 'standard' | 'expanded_bubble';
897
- launcherTitle?: string;
898
- showPopoutButton?: boolean;
899
- };
900
- chatwootSDK: {
901
- run: (config: any) => void;
902
- toggle: () => void;
903
- show: () => void;
904
- hide: () => void;
905
- reset: () => void;
906
- };
907
- }
908
- }
909
- declare const ChatwootWidget: React.ForwardRefExoticComponent<ChatwootWidgetProps & React.RefAttributes<ChatwootWidgetRef>>;
910
- declare const useChatwoot: () => {
911
- isLoaded: boolean;
912
- toggle: () => void;
913
- show: () => void;
914
- hide: () => void;
915
- reset: () => void;
916
- };
917
- declare const defaultChatwootConfig: ChatwootConfig;
918
-
919
- interface WordPressFooterProps {
920
- fallback?: React.ReactNode;
921
- className?: string;
922
- onFooterStatusChange?: (hasFooter: boolean) => void;
923
- }
924
- /**
925
- * WordPressFooter - Renders footer from WordPress template part
926
- *
927
- * This component:
928
- * - Loads WordPress static data
929
- * - Fetches footer template part blocks
930
- * - Renders using WPPage component from wparser
931
- * - Applies custom colors using existing color extraction logic
932
- */
933
- declare const WordPressFooter: React.FC<WordPressFooterProps>;
934
-
935
- /**
936
- * StaticGravityForm Component
937
- *
938
- * Renders Gravity Forms using static data (from /gravity-forms-data.json)
939
- * and only uses API calls for form submission.
940
- *
941
- * This component separates form rendering (static) from form submission (API),
942
- * ensuring forms always render from static data regardless of connection type.
943
- */
944
-
945
- declare global {
946
- interface Window {
947
- turnstile: {
948
- render: (container: string | HTMLElement, options: {
949
- sitekey: string;
950
- action?: string;
951
- cData?: string;
952
- callback?: (token: string) => void;
953
- 'error-callback'?: () => void;
954
- 'expired-callback'?: () => void;
955
- theme?: 'light' | 'dark' | 'auto';
956
- size?: 'normal' | 'compact';
957
- tabindex?: number;
958
- }) => string;
959
- reset: (widgetId: string) => void;
960
- remove: (widgetId: string) => void;
961
- getResponse: (widgetId: string) => string | undefined;
962
- };
963
- }
964
- }
965
- interface StaticGravityFormProps {
966
- formId: number | string;
967
- config: GravityFormsConfig;
968
- className?: string;
969
- onSubmit?: (result: GravityFormSubmissionResult) => void;
970
- onError?: (error: Error) => void;
971
- }
972
- declare const StaticGravityForm: React.FC<StaticGravityFormProps>;
973
-
974
- interface ThemedMauticFormProps {
975
- formId: string;
976
- title?: string;
977
- description?: string;
978
- className?: string;
979
- }
980
- declare const ThemedMauticForm: React.FC<ThemedMauticFormProps>;
981
-
982
- interface DynamicHeroSectionProps {
983
- /** Background image URL (will be converted to Cloudflare variant) */
984
- backgroundImage?: string | null;
985
- /** Main heading/title (can be string or React node for shortcode support) */
986
- title?: string | React.ReactNode | null;
987
- /** Subtitle/description text (can be string or React node for shortcode support) */
988
- subtitle?: string | React.ReactNode | null;
989
- /** Button configuration */
990
- buttons?: Array<{
991
- text: string;
992
- url: string;
993
- isExternal?: boolean;
994
- }>;
995
- /** Video iframe HTML (for embedding videos) */
996
- videoIframe?: string | null;
997
- /** Overlay opacity (0-100) */
998
- overlayOpacity?: number;
999
- /** Overlay color (hex, rgb, or CSS color value) */
1000
- overlayColor?: string | null;
1001
- /** Minimum height (e.g., "100vh", "840px") */
1002
- minHeight?: string;
1003
- /** Content alignment - controls WHERE the container is positioned (from contentPosition) */
1004
- contentAlign?: 'left' | 'center' | 'right';
1005
- /** Text alignment - controls how text is aligned WITHIN the container (from textAlign attributes) */
1006
- textAlign?: 'left' | 'center' | 'right';
1007
- /** Vertical alignment */
1008
- verticalAlign?: 'top' | 'center' | 'bottom';
1009
- /** WordPress block alignment: 'wide', 'full', or undefined/null (None/default) */
1010
- align?: 'wide' | 'full' | null;
1011
- /** Text color class for title (e.g., 'text-white', 'text-[#eb8900]') */
1012
- titleTextColor?: string | null;
1013
- /** Optional Gravity Form ID to render inline within the hero */
1014
- gravityFormId?: string | number | null;
1015
- /** Whether cover block has columns structure - if true, render innerBlocks using registry */
1016
- hasColumns?: boolean;
1017
- /** Inner blocks to render when hasColumns is true */
1018
- innerBlocks?: WordPressBlock[];
1019
- /** Registry for rendering blocks when hasColumns is true */
1020
- registry?: ComponentRegistry;
1021
- }
1022
-
1023
- interface WordPressNavMenuProps {
1024
- className?: string;
1025
- textColor?: 'light' | 'dark';
1026
- /** Optional: Override fontSize (uses CSS variable by default) */
1027
- fontSize?: string;
1028
- /** Optional: Override fontWeight (uses CSS variable by default) */
1029
- fontWeight?: string;
1030
- /** Optional: Specific menu ID to use (if not provided, uses header menu) */
1031
- menuId?: number;
1032
- /** Layout direction: 'horizontal' for header, 'vertical' for footer */
1033
- layout?: 'horizontal' | 'vertical';
1034
- }
1035
- /**
1036
- * WordPressNavMenu - Navigation menu from WordPress header template part
1037
- *
1038
- * Priority:
1039
- * 1. Uses navigation menu from WordPress header template part (if available)
1040
- * 2. Falls back to page hierarchy-based menu (all published pages)
1041
- *
1042
- * This allows content teams to control menu items via WordPress Appearance > Menus,
1043
- * while still supporting automatic menu generation from page hierarchy as fallback.
1044
- */
1045
- declare const WordPressNavMenu: React.FC<WordPressNavMenuProps>;
1046
-
1047
- declare const index_ChatwootWidget: typeof ChatwootWidget;
1048
- type index_DynamicHeroSectionProps = DynamicHeroSectionProps;
1049
- declare const index_StaticGravityForm: typeof StaticGravityForm;
1050
- declare const index_WordPressFooter: typeof WordPressFooter;
1051
- declare const index_WordPressNavMenu: typeof WordPressNavMenu;
1052
- declare const index_defaultChatwootConfig: typeof defaultChatwootConfig;
1053
- declare const index_useChatwoot: typeof useChatwoot;
1054
- declare namespace index {
1055
- export { index_ChatwootWidget as ChatwootWidget, ThemedMauticForm as MauticForm, index_StaticGravityForm as StaticGravityForm, index_WordPressFooter as WordPressFooter, index_WordPressNavMenu as WordPressNavMenu, index_defaultChatwootConfig as defaultChatwootConfig, index_useChatwoot as useChatwoot };
1056
- export type { index_DynamicHeroSectionProps as DynamicHeroSectionProps };
1057
- }
1058
-
1059
- declare function cn(...inputs: ClassValue[]): string;
1060
- /**
1061
- * Decodes HTML entities in a string
1062
- * Handles both named entities (&amp;, &quot;) and numeric entities (&#039;, &#8217;)
1063
- * @param text - The text string with HTML entities
1064
- * @returns Decoded text string
1065
- */
1066
- declare function decodeHtmlEntities(text: string): string;
1067
- /**
1068
- * Replaces common WordPress HTML entities so they display as expected (e.g. en dash as hyphen, &#038;/&amp; as &).
1069
- * Use on block innerHTML or other WP-rendered HTML before passing to dangerouslySetInnerHTML.
1070
- */
1071
- declare function normalizeWordPressHtmlEntities(html: string): string;
1072
- /**
1073
- * Sanitizes HTML content to prevent XSS attacks
1074
- * @param html - The HTML string to sanitize
1075
- * @returns Sanitized HTML string
1076
- */
1077
- declare function sanitizeHtml(html: string): string;
1078
- /**
1079
- * Safely renders HTML content with sanitization
1080
- * @param html - The HTML string to render
1081
- * @returns Object for dangerouslySetInnerHTML with sanitized content
1082
- */
1083
- declare function safeHtml(html: string): {
1084
- __html: string;
1085
- };
1086
- /**
1087
- * Validates if a URL is safe for redirects
1088
- * @param url - The URL to validate
1089
- * @param allowedDomains - Array of allowed domains (optional)
1090
- * @returns boolean indicating if the URL is safe
1091
- */
1092
- declare function isValidRedirectUrl(url: string, allowedDomains?: string[]): boolean;
1093
- /**
1094
- * Safely redirects to a URL after validation
1095
- * @param url - The URL to redirect to
1096
- * @param allowedDomains - Array of allowed domains (optional)
1097
- * @param fallbackUrl - Fallback URL if validation fails (optional)
1098
- */
1099
- declare function safeRedirect(url: string, allowedDomains?: string[], fallbackUrl?: string): void;
1100
-
1101
- declare const utils_cn: typeof cn;
1102
- declare const utils_decodeHtmlEntities: typeof decodeHtmlEntities;
1103
- declare const utils_isValidRedirectUrl: typeof isValidRedirectUrl;
1104
- declare const utils_normalizeWordPressHtmlEntities: typeof normalizeWordPressHtmlEntities;
1105
- declare const utils_safeHtml: typeof safeHtml;
1106
- declare const utils_safeRedirect: typeof safeRedirect;
1107
- declare const utils_sanitizeHtml: typeof sanitizeHtml;
1108
- declare namespace utils {
1109
- export {
1110
- utils_cn as cn,
1111
- utils_decodeHtmlEntities as decodeHtmlEntities,
1112
- utils_isValidRedirectUrl as isValidRedirectUrl,
1113
- utils_normalizeWordPressHtmlEntities as normalizeWordPressHtmlEntities,
1114
- utils_safeHtml as safeHtml,
1115
- utils_safeRedirect as safeRedirect,
1116
- utils_sanitizeHtml as sanitizeHtml,
1117
- };
1118
- }
1119
-
1120
- interface WordPressPost {
1121
- id: number;
1122
- title?: {
1123
- rendered: string;
1124
- };
1125
- content?: {
1126
- rendered: string;
1127
- };
1128
- excerpt?: {
1129
- rendered: string;
1130
- };
1131
- date?: string;
1132
- slug?: string;
1133
- }
1134
- interface WordPressPage {
1135
- id: number;
1136
- slug?: string;
1137
- title?: {
1138
- rendered: string;
1139
- };
1140
- excerpt?: {
1141
- rendered: string;
1142
- };
1143
- content?: {
1144
- rendered: string;
1145
- };
1146
- /** Rendered content with Cloudflare image URLs (string when present in static data) */
1147
- content_cloudflare?: string;
1148
- blocks?: any[];
1149
- parent?: number;
1150
- menu_order?: number;
1151
- status?: string;
1152
- _embedded?: {
1153
- 'wp:featuredmedia'?: Array<{
1154
- source_url?: string;
1155
- alt_text?: string;
1156
- }>;
1157
- };
1158
- featured_media_url?: string;
1159
- }
1160
- interface WordPressMemberRaw {
1161
- id: number;
1162
- [key: string]: any;
1163
- }
1164
- type WPStatic = {
1165
- posts?: WordPressPost[];
1166
- pages?: WordPressPage[];
1167
- media?: any[];
1168
- categories?: any[];
1169
- tags?: any[];
1170
- chapter_member?: WordPressMemberRaw[];
1171
- members?: WordPressMemberRaw[];
1172
- eventbrite_event?: any[];
1173
- testimonial?: any[];
1174
- 'member-role'?: any[];
1175
- memberRoles?: any[];
1176
- theme_styles?: any;
1177
- site_settings?: any;
1178
- header?: {
1179
- slug: string;
1180
- area: string;
1181
- blocks: any[];
1182
- blocks_count: number;
1183
- };
1184
- navigation_menu?: {
1185
- id: number;
1186
- name: string;
1187
- slug: string;
1188
- items: Array<{
1189
- id: number;
1190
- title: string;
1191
- url: string;
1192
- type: string;
1193
- object_id: number;
1194
- object: string;
1195
- parent: number;
1196
- menu_order: number;
1197
- children?: Array<any>;
1198
- }>;
1199
- };
1200
- menus?: Record<string | number, {
1201
- id: number;
1202
- name: string;
1203
- slug: string;
1204
- items: Array<{
1205
- id: number;
1206
- title: string;
1207
- url: string;
1208
- type: string;
1209
- object_id: number;
1210
- object: string;
1211
- parent: number;
1212
- menu_order: number;
1213
- children?: Array<any>;
1214
- }>;
1215
- }>;
1216
- footer?: {
1217
- slug: string;
1218
- area: string;
1219
- blocks: any[];
1220
- blocks_count: number;
1221
- };
1222
- config?: any;
1223
- front_page?: any;
1224
- frontend_id?: string;
1225
- frontend_name?: string;
1226
- generated_at?: string;
1227
- };
1228
- declare const loadWordPressData: (path?: string) => Promise<void>;
1229
- /**
1230
- * Get WordPress static data (includes theme_styles)
1231
- */
1232
- declare const getWordPressData: () => WPStatic | null;
1233
- declare const getWordPressPosts: () => WordPressPost[];
1234
- declare const getWordPressPages: () => WordPressPage[];
1235
- declare const getWordPressPageBySlug: (slug: string) => WordPressPage | undefined;
1236
- declare const getWordPressPageById: (id: number) => WordPressPage | undefined;
1237
- declare const getWordPressMedia: () => any[];
1238
- declare const getWordPressCategories: () => any[];
1239
- declare const getWordPressTags: () => any[];
1240
- declare const getWordPressMembers: () => WordPressMemberRaw[];
1241
- declare const getWordPressEvents: () => any[];
1242
- declare const getWordPressTestimonials: () => any[];
1243
- /** Returns a member by slug from the same list the grid uses. Call after loadWordPressData(). */
1244
- declare const getWordPressMemberBySlug: (slug: string) => WordPressMemberRaw | undefined;
1245
- declare const getWordPressMemberRoles: () => any[];
1246
- interface SiteSettings {
1247
- logo?: {
1248
- id: number;
1249
- url: string;
1250
- cloudflare_url?: string;
1251
- };
1252
- site_icon?: {
1253
- id: number;
1254
- url: string;
1255
- cloudflare_url?: string;
1256
- };
1257
- site_name?: string;
1258
- site_description?: string;
1259
- }
1260
- declare const getSiteSettings: () => SiteSettings | undefined;
1261
- interface FooterData {
1262
- slug: string;
1263
- area: string;
1264
- blocks: any[];
1265
- blocks_count: number;
1266
- }
1267
- interface HeaderData {
1268
- slug: string;
1269
- area: string;
1270
- blocks: any[];
1271
- blocks_count: number;
1272
- }
1273
- declare const getHeader: () => HeaderData | undefined;
1274
- declare const getHeaderMenuId: () => number | undefined;
1275
- /** Parsed header data for app-owned header layout (no WP block tree render). */
1276
- interface ParsedHeader {
1277
- hasHeader: boolean;
1278
- menuId: number | undefined;
1279
- }
1280
- declare const getParsedHeader: () => ParsedHeader;
1281
- interface NavigationMenuData {
1282
- id: number;
1283
- name: string;
1284
- slug: string;
1285
- items: Array<{
1286
- id: number;
1287
- title: string;
1288
- url: string;
1289
- type: string;
1290
- object_id: number;
1291
- object: string;
1292
- parent: number;
1293
- menu_order: number;
1294
- children?: Array<any>;
1295
- }>;
1296
- }
1297
- declare const getNavigationMenu: () => NavigationMenuData | undefined;
1298
- /**
1299
- * Get a menu by ID from static data
1300
- * @param menuId Menu ID to retrieve
1301
- * @returns Menu data if found, undefined otherwise
1302
- */
1303
- declare const getMenuById: (menuId: number) => NavigationMenuData | undefined;
1304
- declare const getFooter: () => FooterData | undefined;
1305
- declare const getLogoUrl: () => string | null;
1306
- declare const getSiteIconUrl: () => string | null;
1307
- declare const getSiteName: () => string;
1308
-
1309
- type wpStatic_FooterData = FooterData;
1310
- type wpStatic_HeaderData = HeaderData;
1311
- type wpStatic_NavigationMenuData = NavigationMenuData;
1312
- type wpStatic_ParsedHeader = ParsedHeader;
1313
- type wpStatic_SiteSettings = SiteSettings;
1314
- type wpStatic_WordPressMemberRaw = WordPressMemberRaw;
1315
- type wpStatic_WordPressPage = WordPressPage;
1316
- type wpStatic_WordPressPost = WordPressPost;
1317
- declare const wpStatic_getFooter: typeof getFooter;
1318
- declare const wpStatic_getHeader: typeof getHeader;
1319
- declare const wpStatic_getHeaderMenuId: typeof getHeaderMenuId;
1320
- declare const wpStatic_getLogoUrl: typeof getLogoUrl;
1321
- declare const wpStatic_getMenuById: typeof getMenuById;
1322
- declare const wpStatic_getNavigationMenu: typeof getNavigationMenu;
1323
- declare const wpStatic_getParsedHeader: typeof getParsedHeader;
1324
- declare const wpStatic_getSiteIconUrl: typeof getSiteIconUrl;
1325
- declare const wpStatic_getSiteName: typeof getSiteName;
1326
- declare const wpStatic_getSiteSettings: typeof getSiteSettings;
1327
- declare const wpStatic_getWordPressCategories: typeof getWordPressCategories;
1328
- declare const wpStatic_getWordPressData: typeof getWordPressData;
1329
- declare const wpStatic_getWordPressEvents: typeof getWordPressEvents;
1330
- declare const wpStatic_getWordPressMedia: typeof getWordPressMedia;
1331
- declare const wpStatic_getWordPressMemberBySlug: typeof getWordPressMemberBySlug;
1332
- declare const wpStatic_getWordPressMemberRoles: typeof getWordPressMemberRoles;
1333
- declare const wpStatic_getWordPressMembers: typeof getWordPressMembers;
1334
- declare const wpStatic_getWordPressPageById: typeof getWordPressPageById;
1335
- declare const wpStatic_getWordPressPageBySlug: typeof getWordPressPageBySlug;
1336
- declare const wpStatic_getWordPressPages: typeof getWordPressPages;
1337
- declare const wpStatic_getWordPressPosts: typeof getWordPressPosts;
1338
- declare const wpStatic_getWordPressTags: typeof getWordPressTags;
1339
- declare const wpStatic_getWordPressTestimonials: typeof getWordPressTestimonials;
1340
- declare const wpStatic_loadWordPressData: typeof loadWordPressData;
1341
- declare namespace wpStatic {
1342
- export { wpStatic_getFooter as getFooter, wpStatic_getHeader as getHeader, wpStatic_getHeaderMenuId as getHeaderMenuId, wpStatic_getLogoUrl as getLogoUrl, wpStatic_getMenuById as getMenuById, wpStatic_getNavigationMenu as getNavigationMenu, wpStatic_getParsedHeader as getParsedHeader, wpStatic_getSiteIconUrl as getSiteIconUrl, wpStatic_getSiteName as getSiteName, wpStatic_getSiteSettings as getSiteSettings, wpStatic_getWordPressCategories as getWordPressCategories, wpStatic_getWordPressData as getWordPressData, wpStatic_getWordPressEvents as getWordPressEvents, wpStatic_getWordPressMedia as getWordPressMedia, wpStatic_getWordPressMemberBySlug as getWordPressMemberBySlug, wpStatic_getWordPressMemberRoles as getWordPressMemberRoles, wpStatic_getWordPressMembers as getWordPressMembers, wpStatic_getWordPressPageById as getWordPressPageById, wpStatic_getWordPressPageBySlug as getWordPressPageBySlug, wpStatic_getWordPressPages as getWordPressPages, wpStatic_getWordPressPosts as getWordPressPosts, wpStatic_getWordPressTags as getWordPressTags, wpStatic_getWordPressTestimonials as getWordPressTestimonials, wpStatic_loadWordPressData as loadWordPressData };
1343
- export type { wpStatic_FooterData as FooterData, wpStatic_HeaderData as HeaderData, wpStatic_NavigationMenuData as NavigationMenuData, wpStatic_ParsedHeader as ParsedHeader, wpStatic_SiteSettings as SiteSettings, wpStatic_WordPressMemberRaw as WordPressMemberRaw, wpStatic_WordPressPage as WordPressPage, wpStatic_WordPressPost as WordPressPost };
1344
- }
1345
-
1346
167
  /**
1347
168
  * @marvalt/digivalt-core
1348
169
  * Core integration library for DigiVAlt React apps
1349
170
  */
1350
171
  declare const getDigiValtVersion: () => string;
1351
172
 
1352
- export { index as components, index$3 as config, index$5 as generators, getDigiValtVersion, utils as lib, index$4 as services, wpStatic as staticData, index$1 as types, index$2 as utils };
173
+ export { generateAllData, generateGravityFormsData, generateMauticData, generateSuiteCRMData, generateWordPressData, index as generators, getDigiValtVersion };
174
+ export type { KudoData, StaticDataConfig, StaticDataStore, Testimonial, WordPressCaseStudy, WordPressMember, WordPressPage, WordPressPost, WordPressProject };