ediflix-template 0.1.5 → 0.1.7

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/index.d.mts CHANGED
@@ -1,8 +1,6 @@
1
1
  import React from 'react';
2
2
  import { z } from 'zod';
3
3
 
4
- declare function Hi(): React.JSX.Element;
5
-
6
4
  declare const ModernTemplateSchema: z.ZodObject<{
7
5
  hero: z.ZodObject<{
8
6
  badge: z.ZodString;
@@ -55,6 +53,414 @@ declare const ModernTemplateSchema: z.ZodObject<{
55
53
  }>;
56
54
  type ModernTemplateSchemaType = z.infer<typeof ModernTemplateSchema>;
57
55
 
56
+ declare const ClassicViewSchema: z.ZodObject<{
57
+ navbar: z.ZodObject<{
58
+ logoText: z.ZodString;
59
+ links: z.ZodArray<z.ZodObject<{
60
+ label: z.ZodString;
61
+ href: z.ZodString;
62
+ }, "strip", z.ZodTypeAny, {
63
+ label: string;
64
+ href: string;
65
+ }, {
66
+ label: string;
67
+ href: string;
68
+ }>, "many">;
69
+ ctaText: z.ZodString;
70
+ phoneNumber: z.ZodString;
71
+ }, "strip", z.ZodTypeAny, {
72
+ ctaText: string;
73
+ logoText: string;
74
+ links: {
75
+ label: string;
76
+ href: string;
77
+ }[];
78
+ phoneNumber: string;
79
+ }, {
80
+ ctaText: string;
81
+ logoText: string;
82
+ links: {
83
+ label: string;
84
+ href: string;
85
+ }[];
86
+ phoneNumber: string;
87
+ }>;
88
+ hero: z.ZodObject<{
89
+ title: z.ZodString;
90
+ description: z.ZodString;
91
+ features: z.ZodArray<z.ZodString, "many">;
92
+ ctaPrimaryText: z.ZodString;
93
+ ctaSecondaryText: z.ZodString;
94
+ phoneNumber: z.ZodString;
95
+ }, "strip", z.ZodTypeAny, {
96
+ title: string;
97
+ description: string;
98
+ phoneNumber: string;
99
+ features: string[];
100
+ ctaPrimaryText: string;
101
+ ctaSecondaryText: string;
102
+ }, {
103
+ title: string;
104
+ description: string;
105
+ phoneNumber: string;
106
+ features: string[];
107
+ ctaPrimaryText: string;
108
+ ctaSecondaryText: string;
109
+ }>;
110
+ visual: z.ZodObject<{
111
+ mainImage: z.ZodString;
112
+ }, "strip", z.ZodTypeAny, {
113
+ mainImage: string;
114
+ }, {
115
+ mainImage: string;
116
+ }>;
117
+ testimonials: z.ZodArray<z.ZodObject<{
118
+ name: z.ZodString;
119
+ content: z.ZodString;
120
+ rating: z.ZodNumber;
121
+ avatar: z.ZodString;
122
+ }, "strip", z.ZodTypeAny, {
123
+ name: string;
124
+ content: string;
125
+ rating: number;
126
+ avatar: string;
127
+ }, {
128
+ name: string;
129
+ content: string;
130
+ rating: number;
131
+ avatar: string;
132
+ }>, "many">;
133
+ }, "strip", z.ZodTypeAny, {
134
+ hero: {
135
+ title: string;
136
+ description: string;
137
+ phoneNumber: string;
138
+ features: string[];
139
+ ctaPrimaryText: string;
140
+ ctaSecondaryText: string;
141
+ };
142
+ navbar: {
143
+ ctaText: string;
144
+ logoText: string;
145
+ links: {
146
+ label: string;
147
+ href: string;
148
+ }[];
149
+ phoneNumber: string;
150
+ };
151
+ visual: {
152
+ mainImage: string;
153
+ };
154
+ testimonials: {
155
+ name: string;
156
+ content: string;
157
+ rating: number;
158
+ avatar: string;
159
+ }[];
160
+ }, {
161
+ hero: {
162
+ title: string;
163
+ description: string;
164
+ phoneNumber: string;
165
+ features: string[];
166
+ ctaPrimaryText: string;
167
+ ctaSecondaryText: string;
168
+ };
169
+ navbar: {
170
+ ctaText: string;
171
+ logoText: string;
172
+ links: {
173
+ label: string;
174
+ href: string;
175
+ }[];
176
+ phoneNumber: string;
177
+ };
178
+ visual: {
179
+ mainImage: string;
180
+ };
181
+ testimonials: {
182
+ name: string;
183
+ content: string;
184
+ rating: number;
185
+ avatar: string;
186
+ }[];
187
+ }>;
188
+ type ClassicViewSchemaType = z.infer<typeof ClassicViewSchema>;
189
+
190
+ declare const NaturalTemplateSchema: z.ZodObject<{
191
+ navbar: z.ZodObject<{
192
+ logoText: z.ZodString;
193
+ logoSubText: z.ZodString;
194
+ links: z.ZodArray<z.ZodString, "many">;
195
+ ctaText: z.ZodString;
196
+ }, "strip", z.ZodTypeAny, {
197
+ ctaText: string;
198
+ logoText: string;
199
+ links: string[];
200
+ logoSubText: string;
201
+ }, {
202
+ ctaText: string;
203
+ logoText: string;
204
+ links: string[];
205
+ logoSubText: string;
206
+ }>;
207
+ hero: z.ZodObject<{
208
+ title: z.ZodString;
209
+ description: z.ZodString;
210
+ ctaPrimaryText: z.ZodString;
211
+ ctaSecondaryText: z.ZodString;
212
+ stats: z.ZodArray<z.ZodObject<{
213
+ label: z.ZodString;
214
+ value: z.ZodString;
215
+ }, "strip", z.ZodTypeAny, {
216
+ label: string;
217
+ value: string;
218
+ }, {
219
+ label: string;
220
+ value: string;
221
+ }>, "many">;
222
+ image: z.ZodString;
223
+ imageBadgeTitle: z.ZodString;
224
+ imageBadgeDesc: z.ZodString;
225
+ }, "strip", z.ZodTypeAny, {
226
+ title: string;
227
+ image: string;
228
+ description: string;
229
+ ctaPrimaryText: string;
230
+ ctaSecondaryText: string;
231
+ stats: {
232
+ label: string;
233
+ value: string;
234
+ }[];
235
+ imageBadgeTitle: string;
236
+ imageBadgeDesc: string;
237
+ }, {
238
+ title: string;
239
+ image: string;
240
+ description: string;
241
+ ctaPrimaryText: string;
242
+ ctaSecondaryText: string;
243
+ stats: {
244
+ label: string;
245
+ value: string;
246
+ }[];
247
+ imageBadgeTitle: string;
248
+ imageBadgeDesc: string;
249
+ }>;
250
+ whyUs: z.ZodObject<{
251
+ sectionTitle: z.ZodString;
252
+ features: z.ZodArray<z.ZodObject<{
253
+ title: z.ZodString;
254
+ desc: z.ZodString;
255
+ }, "strip", z.ZodTypeAny, {
256
+ title: string;
257
+ desc: string;
258
+ }, {
259
+ title: string;
260
+ desc: string;
261
+ }>, "many">;
262
+ }, "strip", z.ZodTypeAny, {
263
+ features: {
264
+ title: string;
265
+ desc: string;
266
+ }[];
267
+ sectionTitle: string;
268
+ }, {
269
+ features: {
270
+ title: string;
271
+ desc: string;
272
+ }[];
273
+ sectionTitle: string;
274
+ }>;
275
+ flowers: z.ZodObject<{
276
+ sectionTitle: z.ZodString;
277
+ ctaText: z.ZodString;
278
+ items: z.ZodArray<z.ZodObject<{
279
+ name: z.ZodString;
280
+ img: z.ZodString;
281
+ }, "strip", z.ZodTypeAny, {
282
+ img: string;
283
+ name: string;
284
+ }, {
285
+ img: string;
286
+ name: string;
287
+ }>, "many">;
288
+ }, "strip", z.ZodTypeAny, {
289
+ ctaText: string;
290
+ sectionTitle: string;
291
+ items: {
292
+ img: string;
293
+ name: string;
294
+ }[];
295
+ }, {
296
+ ctaText: string;
297
+ sectionTitle: string;
298
+ items: {
299
+ img: string;
300
+ name: string;
301
+ }[];
302
+ }>;
303
+ reviews: z.ZodObject<{
304
+ sectionTitle: z.ZodString;
305
+ items: z.ZodArray<z.ZodObject<{
306
+ type: z.ZodString;
307
+ quote: z.ZodString;
308
+ }, "strip", z.ZodTypeAny, {
309
+ type: string;
310
+ quote: string;
311
+ }, {
312
+ type: string;
313
+ quote: string;
314
+ }>, "many">;
315
+ }, "strip", z.ZodTypeAny, {
316
+ sectionTitle: string;
317
+ items: {
318
+ type: string;
319
+ quote: string;
320
+ }[];
321
+ }, {
322
+ sectionTitle: string;
323
+ items: {
324
+ type: string;
325
+ quote: string;
326
+ }[];
327
+ }>;
328
+ contact: z.ZodObject<{
329
+ title: z.ZodString;
330
+ description: z.ZodString;
331
+ buttonText: z.ZodString;
332
+ footerText1: z.ZodString;
333
+ footerText2: z.ZodString;
334
+ footerText3: z.ZodString;
335
+ }, "strip", z.ZodTypeAny, {
336
+ title: string;
337
+ description: string;
338
+ buttonText: string;
339
+ footerText1: string;
340
+ footerText2: string;
341
+ footerText3: string;
342
+ }, {
343
+ title: string;
344
+ description: string;
345
+ buttonText: string;
346
+ footerText1: string;
347
+ footerText2: string;
348
+ footerText3: string;
349
+ }>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ hero: {
352
+ title: string;
353
+ image: string;
354
+ description: string;
355
+ ctaPrimaryText: string;
356
+ ctaSecondaryText: string;
357
+ stats: {
358
+ label: string;
359
+ value: string;
360
+ }[];
361
+ imageBadgeTitle: string;
362
+ imageBadgeDesc: string;
363
+ };
364
+ navbar: {
365
+ ctaText: string;
366
+ logoText: string;
367
+ links: string[];
368
+ logoSubText: string;
369
+ };
370
+ whyUs: {
371
+ features: {
372
+ title: string;
373
+ desc: string;
374
+ }[];
375
+ sectionTitle: string;
376
+ };
377
+ flowers: {
378
+ ctaText: string;
379
+ sectionTitle: string;
380
+ items: {
381
+ img: string;
382
+ name: string;
383
+ }[];
384
+ };
385
+ reviews: {
386
+ sectionTitle: string;
387
+ items: {
388
+ type: string;
389
+ quote: string;
390
+ }[];
391
+ };
392
+ contact: {
393
+ title: string;
394
+ description: string;
395
+ buttonText: string;
396
+ footerText1: string;
397
+ footerText2: string;
398
+ footerText3: string;
399
+ };
400
+ }, {
401
+ hero: {
402
+ title: string;
403
+ image: string;
404
+ description: string;
405
+ ctaPrimaryText: string;
406
+ ctaSecondaryText: string;
407
+ stats: {
408
+ label: string;
409
+ value: string;
410
+ }[];
411
+ imageBadgeTitle: string;
412
+ imageBadgeDesc: string;
413
+ };
414
+ navbar: {
415
+ ctaText: string;
416
+ logoText: string;
417
+ links: string[];
418
+ logoSubText: string;
419
+ };
420
+ whyUs: {
421
+ features: {
422
+ title: string;
423
+ desc: string;
424
+ }[];
425
+ sectionTitle: string;
426
+ };
427
+ flowers: {
428
+ ctaText: string;
429
+ sectionTitle: string;
430
+ items: {
431
+ img: string;
432
+ name: string;
433
+ }[];
434
+ };
435
+ reviews: {
436
+ sectionTitle: string;
437
+ items: {
438
+ type: string;
439
+ quote: string;
440
+ }[];
441
+ };
442
+ contact: {
443
+ title: string;
444
+ description: string;
445
+ buttonText: string;
446
+ footerText1: string;
447
+ footerText2: string;
448
+ footerText3: string;
449
+ };
450
+ }>;
451
+ type NaturalTemplateSchemaType = z.infer<typeof NaturalTemplateSchema>;
452
+
453
+ type TemplateType = 'Modern' | 'ClassicView' | 'Natural';
454
+ interface EdiflixLandingTemplateProps {
455
+ template: TemplateType;
456
+ data?: ModernTemplateSchemaType | ClassicViewSchemaType | NaturalTemplateSchemaType | any;
457
+ isEditable?: boolean;
458
+ onSave?: (data: any) => void;
459
+ }
460
+ declare function EdiflixLandingTemplate({ template, data, isEditable, onSave, }: EdiflixLandingTemplateProps): React.JSX.Element;
461
+
462
+ declare function Hi(): React.JSX.Element;
463
+
58
464
  interface ModernTemplateProps {
59
465
  data?: Partial<ModernTemplateSchemaType>;
60
466
  isEditable?: boolean;
@@ -62,6 +468,20 @@ interface ModernTemplateProps {
62
468
  }
63
469
  declare function ModernTemplate({ data, isEditable, onSave }: ModernTemplateProps): React.JSX.Element;
64
470
 
471
+ interface ClassicTemplateProps {
472
+ data?: Partial<ClassicViewSchemaType>;
473
+ isEditable?: boolean;
474
+ onSave?: (data: ClassicViewSchemaType) => void;
475
+ }
476
+ declare function ClassicTemplate({ data: initialData, isEditable, onSave }: ClassicTemplateProps): React.JSX.Element;
477
+
478
+ interface NaturalTemplateProps {
479
+ data?: Partial<NaturalTemplateSchemaType>;
480
+ isEditable?: boolean;
481
+ onSave?: (data: NaturalTemplateSchemaType) => void;
482
+ }
483
+ declare function NaturalTemplate({ data: initialData, isEditable, onSave }: NaturalTemplateProps): React.JSX.Element;
484
+
65
485
  interface EditorContextType {
66
486
  isEditable: boolean;
67
487
  pageData: Record<string, any>;
@@ -77,4 +497,4 @@ declare const EditorProvider: React.FC<{
77
497
  }>;
78
498
  declare const useEditor: () => EditorContextType;
79
499
 
80
- export { EditorProvider, Hi, ModernTemplate, ModernTemplateSchema, type ModernTemplateSchemaType, useEditor };
500
+ export { ClassicTemplate as ClassicView, ClassicViewSchema, type ClassicViewSchemaType, EdiflixLandingTemplate, EditorProvider, Hi, ModernTemplate, ModernTemplateSchema, type ModernTemplateSchemaType, NaturalTemplateSchema, type NaturalTemplateSchemaType, NaturalTemplate as NaturalView, useEditor };