@marvalt/digivalt-core 0.1.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 (96) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE +21 -0
  3. package/README.md +13 -0
  4. package/dist/components/WordPressFooter.d.ts +17 -0
  5. package/dist/components/index.d.ts +9 -0
  6. package/dist/components/integrations/chatwoot-widget.d.ts +51 -0
  7. package/dist/components/integrations/mautic-tracking.d.ts +9 -0
  8. package/dist/components/molecules/CaseStudyCard.d.ts +10 -0
  9. package/dist/components/molecules/DynamicHeroSection.d.ts +56 -0
  10. package/dist/components/molecules/MemberCard.d.ts +12 -0
  11. package/dist/components/molecules/NavMenu.d.ts +13 -0
  12. package/dist/components/molecules/ProjectCard.d.ts +10 -0
  13. package/dist/components/molecules/SearchForm.d.ts +7 -0
  14. package/dist/components/molecules/TestimonialCard/TestimonialCard.d.ts +7 -0
  15. package/dist/components/molecules/WordPressNavMenu.d.ts +25 -0
  16. package/dist/components/molecules/breadcrumbs.d.ts +17 -0
  17. package/dist/components/molecules/hero-section.d.ts +41 -0
  18. package/dist/components/organisms/GravityFormPopup/GravityFormPopup.d.ts +8 -0
  19. package/dist/components/organisms/GravityFormSubmissions/GravityFormSubmissionsComponent.d.ts +9 -0
  20. package/dist/components/organisms/GravityFormSubmissions/index.d.ts +1 -0
  21. package/dist/components/organisms/Header.d.ts +6 -0
  22. package/dist/components/organisms/Hero.d.ts +2 -0
  23. package/dist/components/organisms/MauticForm/MauticForm.d.ts +9 -0
  24. package/dist/components/organisms/MauticForm/ThemedMauticForm.d.ts +9 -0
  25. package/dist/components/organisms/MauticForm/index.d.ts +1 -0
  26. package/dist/components/organisms/MauticFormPopup/MauticFormPopup.d.ts +9 -0
  27. package/dist/components/organisms/MemberProfileDialog.d.ts +9 -0
  28. package/dist/components/organisms/StaticGravityForm/StaticGravityForm.d.ts +40 -0
  29. package/dist/components/organisms/StaticGravityForm/index.d.ts +2 -0
  30. package/dist/components/organisms/SuiteCRMLeadForm/SuiteCRMLeadForm.d.ts +12 -0
  31. package/dist/components/organisms/SuiteCRMLeadForm/index.d.ts +2 -0
  32. package/dist/config/app-customization.d.ts +92 -0
  33. package/dist/config/environment.d.ts +69 -0
  34. package/dist/config/index.d.ts +2 -0
  35. package/dist/config/integrations.d.ts +234 -0
  36. package/dist/config/themes.d.ts +30 -0
  37. package/dist/config/widths.d.ts +47 -0
  38. package/dist/data/gravityFormsDataStore.d.ts +83 -0
  39. package/dist/data/mauticDataStore.d.ts +17 -0
  40. package/dist/data/mauticDataStoreTest.d.ts +48 -0
  41. package/dist/data/staticDataStore.d.ts +280 -0
  42. package/dist/data/staticDataStore.local.d.ts +251 -0
  43. package/dist/data/staticDataStoreProduction.d.ts +3 -0
  44. package/dist/data/wordpressDataStore.d.ts +117 -0
  45. package/dist/generators/gf.d.ts +3 -0
  46. package/dist/generators/index.d.ts +5 -0
  47. package/dist/generators/mautic.d.ts +3 -0
  48. package/dist/generators/suitecrm.d.ts +3 -0
  49. package/dist/generators/wp.d.ts +3 -0
  50. package/dist/hooks/use-mobile.d.ts +1 -0
  51. package/dist/hooks/use-toast.d.ts +43 -0
  52. package/dist/hooks/useCaseStudies.d.ts +30 -0
  53. package/dist/hooks/useCfWpWebhook.d.ts +29 -0
  54. package/dist/hooks/useCustomization.d.ts +71 -0
  55. package/dist/hooks/useGravityForms.d.ts +50 -0
  56. package/dist/hooks/useGravityFormsNew.d.ts +27 -0
  57. package/dist/hooks/useGravityFormsSubmissions.d.ts +15 -0
  58. package/dist/hooks/useMautic.d.ts +36 -0
  59. package/dist/hooks/useMembers.d.ts +31 -0
  60. package/dist/hooks/useProjects.d.ts +30 -0
  61. package/dist/hooks/useSuiteCRM.d.ts +72 -0
  62. package/dist/hooks/useTestimonials.d.ts +12 -0
  63. package/dist/hooks/useWordPressData.d.ts +115 -0
  64. package/dist/hooks/useWordPressDataNew.d.ts +77 -0
  65. package/dist/index.cjs +10433 -0
  66. package/dist/index.cjs.map +1 -0
  67. package/dist/index.d.ts +1352 -0
  68. package/dist/index.esm.js +10404 -0
  69. package/dist/index.esm.js.map +1 -0
  70. package/dist/lib/structured-data.d.ts +49 -0
  71. package/dist/lib/utils.d.ts +42 -0
  72. package/dist/services/cf-wp-webhook.d.ts +79 -0
  73. package/dist/services/gravityForms.d.ts +26 -0
  74. package/dist/services/index.d.ts +5 -0
  75. package/dist/services/mautic.d.ts +82 -0
  76. package/dist/services/suitecrm.d.ts +98 -0
  77. package/dist/services/wordpress.d.ts +1 -0
  78. package/dist/static/wpStatic.d.ts +189 -0
  79. package/dist/types/caseStudies.d.ts +92 -0
  80. package/dist/types/index.d.ts +1 -0
  81. package/dist/types/members.d.ts +85 -0
  82. package/dist/types/projects.d.ts +90 -0
  83. package/dist/types/wordpress.d.ts +132 -0
  84. package/dist/utils/cfImages.d.ts +21 -0
  85. package/dist/utils/eventStaticData.d.ts +11 -0
  86. package/dist/utils/extractDescriptionFromContent.d.ts +12 -0
  87. package/dist/utils/index.d.ts +1 -0
  88. package/dist/utils/mauticTrackingUtils.d.ts +78 -0
  89. package/dist/utils/memberImageUtils.d.ts +4 -0
  90. package/dist/utils/memberStaticData.d.ts +11 -0
  91. package/dist/utils/normalizeMemberForProfile.d.ts +10 -0
  92. package/dist/utils/passwordUtils.d.ts +24 -0
  93. package/dist/utils/placeholderReplacer.d.ts +34 -0
  94. package/dist/utils/testimonialStaticData.d.ts +12 -0
  95. package/dist/utils/wpRegistry.d.ts +13 -0
  96. package/package.json +69 -0
@@ -0,0 +1,85 @@
1
+ /** Known fields; ACF/extra fields are allowed via index signature. */
2
+ export interface MemberPublicProfile {
3
+ members_firstname: string;
4
+ members_last_name: string;
5
+ business_name: string;
6
+ tagline: string;
7
+ business_category: string;
8
+ member_pitch: string;
9
+ customer_segments: string;
10
+ website: string;
11
+ member_bio: string;
12
+ chapter_role: string;
13
+ profile_image_url: string | null;
14
+ [key: string]: unknown;
15
+ }
16
+ export interface WordPressMember {
17
+ id: number;
18
+ date: string;
19
+ date_gmt: string;
20
+ guid: {
21
+ rendered: string;
22
+ };
23
+ modified: string;
24
+ modified_gmt: string;
25
+ slug: string;
26
+ status: string;
27
+ type: string;
28
+ link: string;
29
+ title: {
30
+ rendered: string;
31
+ };
32
+ excerpt: {
33
+ rendered: string;
34
+ protected: boolean;
35
+ };
36
+ featured_media: number;
37
+ template: string;
38
+ meta: {
39
+ _acf_changed: boolean;
40
+ };
41
+ "member-role": unknown[];
42
+ class_list: string[];
43
+ acf: unknown[];
44
+ public_profile: MemberPublicProfile;
45
+ default_image: string | null;
46
+ _links: {
47
+ self: Array<{
48
+ href: string;
49
+ targetHints?: {
50
+ allow: string[];
51
+ };
52
+ }>;
53
+ collection: Array<{
54
+ href: string;
55
+ }>;
56
+ about: Array<{
57
+ href: string;
58
+ }>;
59
+ "wp:featuredmedia"?: Array<{
60
+ embeddable: boolean;
61
+ href: string;
62
+ }>;
63
+ "wp:attachment": Array<{
64
+ href: string;
65
+ }>;
66
+ "wp:term": Array<{
67
+ taxonomy: string;
68
+ embeddable: boolean;
69
+ href: string;
70
+ }>;
71
+ curies: Array<{
72
+ name: string;
73
+ href: string;
74
+ templated: boolean;
75
+ }>;
76
+ };
77
+ }
78
+ export interface MemberQueryParams {
79
+ page?: number;
80
+ per_page?: number;
81
+ search?: string;
82
+ slug?: string;
83
+ orderby?: string;
84
+ order?: 'asc' | 'desc';
85
+ }
@@ -0,0 +1,90 @@
1
+ export interface ProjectPublicProfile {
2
+ title: string;
3
+ suburbs?: string;
4
+ designer?: string;
5
+ project_type?: string[];
6
+ project_description?: string;
7
+ image_two?: string[];
8
+ }
9
+ export interface WordPressProject {
10
+ id: number;
11
+ date: string;
12
+ date_gmt: string;
13
+ guid: {
14
+ rendered: string;
15
+ };
16
+ modified: string;
17
+ modified_gmt: string;
18
+ slug: string;
19
+ status: string;
20
+ type: string;
21
+ link: string;
22
+ title: {
23
+ rendered: string;
24
+ };
25
+ content: {
26
+ rendered: string;
27
+ protected: boolean;
28
+ };
29
+ excerpt: {
30
+ rendered: string;
31
+ protected: boolean;
32
+ };
33
+ featured_media: number;
34
+ template: string;
35
+ meta: {
36
+ _acf_changed: boolean;
37
+ };
38
+ "project-type": any[];
39
+ class_list: string[];
40
+ acf: any[];
41
+ public_profile: ProjectPublicProfile;
42
+ default_image: string | null;
43
+ cloudflare_image?: string;
44
+ _embedded?: {
45
+ 'wp:featuredmedia'?: Array<{
46
+ source_url: string;
47
+ alt_text?: string;
48
+ }>;
49
+ };
50
+ _links: {
51
+ self: Array<{
52
+ href: string;
53
+ targetHints?: {
54
+ allow: string[];
55
+ };
56
+ }>;
57
+ collection: Array<{
58
+ href: string;
59
+ }>;
60
+ about: Array<{
61
+ href: string;
62
+ }>;
63
+ "wp:featuredmedia"?: Array<{
64
+ embeddable: boolean;
65
+ href: string;
66
+ }>;
67
+ "wp:attachment": Array<{
68
+ href: string;
69
+ }>;
70
+ "wp:term": Array<{
71
+ taxonomy: string;
72
+ embeddable: boolean;
73
+ href: string;
74
+ }>;
75
+ curies: Array<{
76
+ name: string;
77
+ href: string;
78
+ templated: boolean;
79
+ }>;
80
+ };
81
+ }
82
+ export interface ProjectQueryParams {
83
+ page?: number;
84
+ per_page?: number;
85
+ search?: string;
86
+ slug?: string;
87
+ orderby?: string;
88
+ order?: 'asc' | 'desc';
89
+ project_type?: string;
90
+ }
@@ -0,0 +1,132 @@
1
+ export interface WordPressPost {
2
+ id: number;
3
+ title: {
4
+ rendered: string;
5
+ };
6
+ content: {
7
+ rendered: string;
8
+ };
9
+ excerpt: {
10
+ rendered: string;
11
+ };
12
+ date: string;
13
+ slug: string;
14
+ _embedded?: {
15
+ 'wp:featuredmedia'?: Array<{
16
+ source_url: string;
17
+ alt_text?: string;
18
+ }>;
19
+ author?: Array<{
20
+ name: string;
21
+ }>;
22
+ };
23
+ }
24
+ export interface WordPressPage {
25
+ id: number;
26
+ title: {
27
+ rendered: string;
28
+ };
29
+ content: {
30
+ rendered: string;
31
+ };
32
+ slug: string;
33
+ date: string;
34
+ }
35
+ export interface WordPressCaseStudy {
36
+ id: number;
37
+ title: {
38
+ rendered: string;
39
+ };
40
+ content: {
41
+ rendered: string;
42
+ };
43
+ excerpt: {
44
+ rendered: string;
45
+ };
46
+ slug: string;
47
+ date: string;
48
+ }
49
+ export interface WordPressProject {
50
+ id: number;
51
+ title: {
52
+ rendered: string;
53
+ };
54
+ content: {
55
+ rendered: string;
56
+ };
57
+ excerpt: {
58
+ rendered: string;
59
+ };
60
+ slug: string;
61
+ date: string;
62
+ }
63
+ export interface WordPressMember {
64
+ id: number;
65
+ title: {
66
+ rendered: string;
67
+ };
68
+ content: {
69
+ rendered: string;
70
+ };
71
+ excerpt: {
72
+ rendered: string;
73
+ };
74
+ slug: string;
75
+ date: string;
76
+ }
77
+ export interface KudoData {
78
+ value: string;
79
+ label: string;
80
+ }
81
+ export interface Testimonial extends WordPressPost {
82
+ type: 'testimonial';
83
+ acf: {
84
+ submitter_name: string;
85
+ submitter_email: string;
86
+ submitter_company?: string;
87
+ kudos?: string[];
88
+ testimonial_for?: number | object;
89
+ };
90
+ submitter_avatar?: string;
91
+ kudos_data?: KudoData[];
92
+ }
93
+ export interface StaticDataConfig {
94
+ frontend_id: string;
95
+ frontend_name: string;
96
+ post_types: {
97
+ posts: {
98
+ max_items: number;
99
+ include_embedded: boolean;
100
+ orderby: string;
101
+ order: 'asc' | 'desc';
102
+ categories?: string[];
103
+ };
104
+ pages: {
105
+ max_items: number;
106
+ include_embedded: boolean;
107
+ };
108
+ case_studies: {
109
+ max_items: number;
110
+ include_embedded: boolean;
111
+ };
112
+ projects: {
113
+ max_items: number;
114
+ include_embedded: boolean;
115
+ };
116
+ members: {
117
+ max_items: number;
118
+ include_embedded: boolean;
119
+ };
120
+ };
121
+ }
122
+ export interface StaticDataStore {
123
+ generated_at: string;
124
+ frontend_id: string;
125
+ frontend_name: string;
126
+ config: StaticDataConfig;
127
+ posts: WordPressPost[];
128
+ pages: WordPressPage[];
129
+ case_studies: WordPressCaseStudy[];
130
+ projects: WordPressProject[];
131
+ members: WordPressMember[];
132
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Cloudflare Images URL helpers
3
+ *
4
+ * Many endpoints (e.g., cloudflare_image_standardized) return the base URL
5
+ * without a variant/transform segment. Append a variant at render-time to
6
+ * control size and improve LCP/SEO.
7
+ */
8
+ export interface CloudflareVariantOptions {
9
+ width: number;
10
+ height?: number;
11
+ }
12
+ export declare const isCloudflareImageUrl: (url: string | undefined | null) => boolean;
13
+ /**
14
+ * Append Cloudflare Images variant to the base URL if not already present.
15
+ * Example output: https://imagedelivery.net/<account>/<id>/w=1024,h=600
16
+ */
17
+ export declare const getCloudflareVariantUrl: (url: string, options: CloudflareVariantOptions) => string;
18
+ /**
19
+ * Build a simple srcset for responsive images from a base Cloudflare URL.
20
+ */
21
+ export declare const buildCloudflareSrcSet: (url: string, widths: number[], fixedHeight?: number) => string | undefined;
@@ -0,0 +1,11 @@
1
+ export declare function createEventStaticDataProvider(): {
2
+ events: any[];
3
+ getEventById(id: string | number): any | null;
4
+ filterEvents(filters: {
5
+ category?: string;
6
+ tax?: string;
7
+ limit?: number;
8
+ orderby?: string;
9
+ order?: string;
10
+ }): any[];
11
+ };
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Extracts a meta description from page content HTML when excerpt is not available.
3
+ * Uses the first heading and first paragraph (after skipping any form before the first heading),
4
+ * cut to SEO length (default 160 characters).
5
+ */
6
+ /**
7
+ * Extract a description from rendered page content:
8
+ * - Removes form blocks so content before the first heading that is inside a form is skipped
9
+ * - Finds the first heading (h1–h6) and first paragraph in document order
10
+ * - Combines them and truncates to maxLength (SEO typical 155–160)
11
+ */
12
+ export declare function extractDescriptionFromContent(html: string, maxLength?: number): string;
@@ -0,0 +1 @@
1
+ export * from './passwordUtils';
@@ -0,0 +1,78 @@
1
+ /**
2
+ * Mautic Tracking Utilities
3
+ * Helper functions for Mautic tracking and debugging
4
+ */
5
+ declare global {
6
+ interface Window {
7
+ mt?: any;
8
+ MauticTrackingObject?: string;
9
+ }
10
+ }
11
+ /**
12
+ * Check if Mautic tracking is available
13
+ */
14
+ export declare const isMauticTrackingAvailable: () => boolean;
15
+ /**
16
+ * Check if Mautic tracking script is loaded
17
+ */
18
+ export declare const isMauticScriptLoaded: () => boolean;
19
+ /**
20
+ * Get Mautic tracking status
21
+ */
22
+ export declare const getMauticTrackingStatus: () => {
23
+ scriptLoaded: boolean;
24
+ trackingObject: boolean;
25
+ trackingObjectType: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
26
+ };
27
+ /**
28
+ * Send a pageview to Mautic
29
+ */
30
+ export declare const sendMauticPageview: (page?: string, additionalData?: Record<string, any>) => boolean;
31
+ /**
32
+ * Track a custom event in Mautic
33
+ */
34
+ export declare const trackMauticEvent: (eventName: string, eventData?: Record<string, any>, email?: string) => boolean;
35
+ /**
36
+ * Identify a user in Mautic
37
+ */
38
+ export declare const identifyMauticUser: (email: string, userData?: Record<string, any>) => boolean;
39
+ /**
40
+ * Track form submission in Mautic
41
+ */
42
+ export declare const trackMauticFormSubmission: (formId: string | number, formData?: Record<string, any>, email?: string) => boolean;
43
+ /**
44
+ * Track button click in Mautic
45
+ */
46
+ export declare const trackMauticButtonClick: (buttonText: string, buttonLocation: string, email?: string) => boolean;
47
+ /**
48
+ * Track link click in Mautic
49
+ */
50
+ export declare const trackMauticLinkClick: (linkUrl: string, linkText?: string, email?: string) => boolean;
51
+ /**
52
+ * Track scroll depth in Mautic
53
+ */
54
+ export declare const trackMauticScrollDepth: (depth: number, email?: string) => boolean;
55
+ /**
56
+ * Track time on page in Mautic
57
+ */
58
+ export declare const trackMauticTimeOnPage: (seconds: number, email?: string) => boolean;
59
+ /**
60
+ * Debug Mautic tracking configuration
61
+ */
62
+ export declare const debugMauticTracking: () => {
63
+ scriptLoaded: boolean;
64
+ trackingObject: boolean;
65
+ trackingObjectType: "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
66
+ };
67
+ /**
68
+ * Wait for Mautic tracking to be available
69
+ */
70
+ export declare const waitForMauticTracking: (timeout?: number) => Promise<boolean>;
71
+ /**
72
+ * Initialize Mautic tracking with custom configuration
73
+ */
74
+ export declare const initializeMauticTracking: (config?: {
75
+ debug?: boolean;
76
+ waitForLoad?: boolean;
77
+ onReady?: () => void;
78
+ }) => void;
@@ -0,0 +1,4 @@
1
+ import { WordPressMember } from '../types/members';
2
+ export declare const getMemberImageUrl: (member: WordPressMember) => string | undefined;
3
+ export declare const getMemberInitials: (firstName: string, lastName: string) => string;
4
+ export declare const getMemberDisplayName: (member: WordPressMember) => string;
@@ -0,0 +1,11 @@
1
+ export declare function createMemberStaticDataProvider(): {
2
+ members: any[];
3
+ getMemberById(id: string | number): any | null;
4
+ filterMembers(filters: {
5
+ category?: string;
6
+ role?: string;
7
+ limit?: number;
8
+ orderby?: string;
9
+ order?: string;
10
+ }): any[];
11
+ };
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Normalizes a raw WordPress member (member_meta or public_profile) into the shape
3
+ * expected by MemberProfile and memberImageUtils (WordPressMember with public_profile).
4
+ */
5
+ import type { WordPressMember } from '../types/members';
6
+ /**
7
+ * Normalize raw member from wordpress-data.json to WordPressMember shape for profile page.
8
+ * Uses public_profile when present; otherwise builds from member_meta. Preserves ACF/extra keys.
9
+ */
10
+ export declare function normalizeMemberForProfile(raw: Record<string, unknown> | null | undefined): WordPressMember | null;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Password utility functions for handling special characters
3
+ */
4
+ /**
5
+ * Safely encode a password for API requests
6
+ * Handles special characters like $, @, #, %, etc.
7
+ */
8
+ export declare function encodePassword(password: string): string;
9
+ /**
10
+ * Safely encode a password for URL-encoded requests
11
+ * Used when sending as form data
12
+ */
13
+ export declare function encodePasswordForUrl(password: string): string;
14
+ /**
15
+ * Validate password for common issues
16
+ */
17
+ export declare function validatePassword(password: string): {
18
+ isValid: boolean;
19
+ issues: string[];
20
+ };
21
+ /**
22
+ * Get password encoding recommendations
23
+ */
24
+ export declare function getPasswordRecommendations(password: string): string[];
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Placeholder replacement utility for dynamic content
3
+ *
4
+ * Replaces placeholders like {member_fullname} with actual data from member objects
5
+ */
6
+ export interface MemberData {
7
+ id: number;
8
+ title?: {
9
+ rendered: string;
10
+ };
11
+ member_meta?: {
12
+ members_firstname?: string;
13
+ members_last_name?: string;
14
+ members_email?: string;
15
+ business_name?: string;
16
+ tagline?: string;
17
+ member_role?: string;
18
+ website?: string;
19
+ [key: string]: any;
20
+ };
21
+ [key: string]: any;
22
+ }
23
+ /**
24
+ * Get member full name from member data
25
+ */
26
+ export declare function getMemberFullName(member: MemberData | null): string;
27
+ /**
28
+ * Replace placeholders in text with member data
29
+ */
30
+ export declare function replacePlaceholders(text: string, member: MemberData | null, queryParams?: Record<string, string>): string;
31
+ /**
32
+ * Process blocks recursively to replace placeholders
33
+ */
34
+ export declare function processBlocksForPlaceholders(blocks: any[], member: MemberData | null, queryParams?: Record<string, string>): any[];
@@ -0,0 +1,12 @@
1
+ export declare function createTestimonialStaticDataProvider(): {
2
+ testimonials: any[];
3
+ getTestimonialById(id: string | number): any | null;
4
+ filterTestimonials(filters: {
5
+ category?: string;
6
+ tax?: string;
7
+ limit?: number;
8
+ orderby?: string;
9
+ order?: string;
10
+ forPostId?: string;
11
+ }): any[];
12
+ };
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Create app-specific WordPress registry with enhanced component mappings
3
+ *
4
+ * This registry:
5
+ * - Maps Gutenberg blocks to React components (atomic design)
6
+ * - Handles shortcodes for integrations (Gravity Forms, Mautic, etc.)
7
+ * - Extracts block data and passes as props to components
8
+ * - Provides color mapping from WordPress theme colors to app CSS classes
9
+ * - Configures spacing system for consistent element spacing
10
+ *
11
+ * @param themePalette - Optional WordPress theme color palette to use actual theme colors
12
+ */
13
+ export declare function createAppRegistry(themePalette?: Record<string, string>): import("@marvalt/wparser").EnhancedRegistry;
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@marvalt/digivalt-core",
3
+ "version": "0.1.0",
4
+ "description": "Core glue logic and shared context for DigiVAlt frontend applications",
5
+ "license": "GPL-3.0-or-later",
6
+ "main": "dist/index.cjs",
7
+ "module": "dist/index.esm.js",
8
+ "types": "dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "types": "./dist/index.d.ts",
12
+ "import": "./dist/index.esm.js",
13
+ "require": "./dist/index.cjs"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md",
19
+ "LICENSE",
20
+ "CHANGELOG.md"
21
+ ],
22
+ "type": "module",
23
+ "sideEffects": false,
24
+ "scripts": {
25
+ "build": "rollup -c",
26
+ "dev": "rollup -c -w",
27
+ "lint": "eslint src --ext .ts,.tsx",
28
+ "type-check": "tsc --noEmit",
29
+ "clean": "rimraf dist",
30
+ "prepublishOnly": "npm run clean && npm run build"
31
+ },
32
+ "devDependencies": {
33
+ "@rollup/plugin-commonjs": "^25.0.7",
34
+ "@rollup/plugin-json": "^6.1.0",
35
+ "@rollup/plugin-node-resolve": "^15.2.3",
36
+ "@rollup/plugin-typescript": "^11.1.5",
37
+ "@types/node": "^22.5.5",
38
+ "@types/react": "^18.3.3",
39
+ "@types/react-dom": "^18.3.0",
40
+ "rimraf": "^5.0.5",
41
+ "rollup": "^4.6.1",
42
+ "rollup-plugin-dts": "^6.1.0",
43
+ "tslib": "^2.8.1",
44
+ "typescript": "^5.5.3"
45
+ },
46
+ "peerDependencies": {
47
+ "react": ">=18",
48
+ "react-dom": ">=18"
49
+ },
50
+ "engines": {
51
+ "node": ">=18.0.0",
52
+ "npm": ">=8.0.0"
53
+ },
54
+ "dependencies": {
55
+ "@marvalt/dstyler": "^0.1.51",
56
+ "@marvalt/madapter": "^2.3.7",
57
+ "@marvalt/sadapter": "^0.1.5",
58
+ "@marvalt/shcoder": "^0.1.35",
59
+ "@marvalt/tadapter": "^1.0.12",
60
+ "@marvalt/wadapter": "^2.3.56",
61
+ "@marvalt/wparser": "^0.1.79",
62
+ "@radix-ui/react-toast": "^1.2.15",
63
+ "class-variance-authority": "^0.7.1",
64
+ "clsx": "^2.1.1",
65
+ "dotenv": "^17.3.1",
66
+ "lucide-react": "^0.577.0",
67
+ "tailwind-merge": "^3.5.0"
68
+ }
69
+ }