@rudra-studio/smileyyfy-core 1.0.0 → 1.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.
- package/components/AnimatedStorySprite/index.d.ts +1 -1
- package/components/AnimatedStorySprite/index.js +730 -24
- package/components/AnimatedStorySprite/styles.css +1 -1
- package/components/AnimatedStorySprite/styles.js +58 -37
- package/components/PageCanvasBuilder/index.d.ts +1 -1
- package/components/PageCanvasBuilder/index.js +1358 -376
- package/components/PageCanvasBuilder/styles.css +1 -1
- package/components/PageCanvasBuilder/styles.js +203 -143
- package/components/PublishedPageViewer/index.d.ts +2 -2
- package/components/PublishedPageViewer/index.js +664 -111
- package/components/PublishedPageViewer/styles.css +1 -1
- package/components/PublishedPageViewer/styles.js +165 -119
- package/package.json +1 -1
- package/utils/SmileyyfyBaseTemplate.d.ts +3 -0
- package/utils/SmileyyfyPageSnapshot.d.ts +2 -0
- package/utils/SmileyyfyPublishedPageData.d.ts +2 -0
- package/utils/SmileyyfyThemeStyle.d.ts +9 -0
- package/utils/StarterPresetType.d.ts +1 -1
- package/utils/StorySpriteScene.d.ts +1 -1
- package/utils/SurfaceKeyType.d.ts +1 -1
- package/utils/TemplateCategoryType.d.ts +2 -0
- package/utils/buildStarterBlocks.js +28 -7
- package/utils/defaultBaseTemplates.js +88 -0
- package/utils/defaultWidgetRegistry.js +67 -1
- package/utils/getPresetTemplateId.js +4 -2
|
@@ -4,113 +4,201 @@ var e = [
|
|
|
4
4
|
id: "tpl_blush_hearts",
|
|
5
5
|
name: "Blush Floating Hearts",
|
|
6
6
|
badge: "💖 Romance",
|
|
7
|
+
category: "proposal",
|
|
7
8
|
floatingStyle: "hearts",
|
|
8
9
|
surfaceKey: "blush",
|
|
10
|
+
defaultAccent: "#ec4899",
|
|
9
11
|
description: "Soft rose-petal gradient with gentle rising hearts."
|
|
10
12
|
},
|
|
11
13
|
{
|
|
12
14
|
id: "tpl_royal_maroon",
|
|
13
15
|
name: "Royal Crimson & Gold",
|
|
14
16
|
badge: "👑 Traditional",
|
|
17
|
+
category: "wedding",
|
|
15
18
|
floatingStyle: "diyas",
|
|
16
19
|
surfaceKey: "maroon",
|
|
20
|
+
defaultAccent: "#f59e0b",
|
|
17
21
|
description: "Regal wedding maroon with warm gold accents & glowing diyas."
|
|
18
22
|
},
|
|
23
|
+
{
|
|
24
|
+
id: "tpl_kanchipuram_silk",
|
|
25
|
+
name: "Kanchipuram Silk & Zari",
|
|
26
|
+
badge: "🪔 Heritage",
|
|
27
|
+
category: "wedding",
|
|
28
|
+
floatingStyle: "festive",
|
|
29
|
+
surfaceKey: "silk",
|
|
30
|
+
defaultAccent: "#d97706",
|
|
31
|
+
description: "Warm temple gold & magenta silk weave inspired by South Indian weddings."
|
|
32
|
+
},
|
|
19
33
|
{
|
|
20
34
|
id: "tpl_emerald_sparkles",
|
|
21
35
|
name: "Royal Emerald Sparkles",
|
|
22
36
|
badge: "💍 Wedding",
|
|
37
|
+
category: "wedding",
|
|
23
38
|
floatingStyle: "sparkles",
|
|
24
39
|
surfaceKey: "emerald",
|
|
40
|
+
defaultAccent: "#10b981",
|
|
25
41
|
description: "Rich wedding emerald with shimmering gold sparkles."
|
|
26
42
|
},
|
|
27
43
|
{
|
|
28
44
|
id: "tpl_champagne_noir",
|
|
29
45
|
name: "Champagne Gala Noir",
|
|
30
46
|
badge: "🥂 Gala",
|
|
47
|
+
category: "modern",
|
|
31
48
|
floatingStyle: "sparkles",
|
|
32
49
|
surfaceKey: "champagne",
|
|
50
|
+
defaultAccent: "#eab308",
|
|
33
51
|
description: "Luxury obsidian & champagne gold for black-tie receptions & anniversaries."
|
|
34
52
|
},
|
|
53
|
+
{
|
|
54
|
+
id: "tpl_celestial_midnight",
|
|
55
|
+
name: "Celestial Starry Vows",
|
|
56
|
+
badge: "🌙 Dreamy",
|
|
57
|
+
category: "proposal",
|
|
58
|
+
floatingStyle: "sparkles",
|
|
59
|
+
surfaceKey: "celestial",
|
|
60
|
+
defaultAccent: "#a855f7",
|
|
61
|
+
description: "Deep indigo night sky with twinkling constellation sparkles."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
id: "tpl_watercolor_bloom",
|
|
65
|
+
name: "Watercolor Rose Bloom",
|
|
66
|
+
badge: "🎨 Artistic",
|
|
67
|
+
category: "wedding",
|
|
68
|
+
floatingStyle: "petals",
|
|
69
|
+
surfaceKey: "watercolor",
|
|
70
|
+
defaultAccent: "#f43f5e",
|
|
71
|
+
description: "Soft painterly peach, blush, and lilac wash with drifting petals."
|
|
72
|
+
},
|
|
35
73
|
{
|
|
36
74
|
id: "tpl_coastal_breeze",
|
|
37
75
|
name: "Coastal Beach Sunset",
|
|
38
76
|
badge: "🌴 Destination",
|
|
77
|
+
category: "wedding",
|
|
39
78
|
floatingStyle: "ocean",
|
|
40
79
|
surfaceKey: "coastal",
|
|
80
|
+
defaultAccent: "#0284c7",
|
|
41
81
|
description: "Breezy ocean turquoise & warm sand for beach destination invites."
|
|
42
82
|
},
|
|
43
83
|
{
|
|
44
84
|
id: "tpl_garden_botanical",
|
|
45
85
|
name: "Sage Botanical Garden",
|
|
46
86
|
badge: "🌿 Garden",
|
|
87
|
+
category: "wedding",
|
|
47
88
|
floatingStyle: "leaves",
|
|
48
89
|
surfaceKey: "sage",
|
|
90
|
+
defaultAccent: "#16a34a",
|
|
49
91
|
description: "Fresh eucalyptus & botanical sage for outdoor garden celebrations."
|
|
50
92
|
},
|
|
51
93
|
{
|
|
52
94
|
id: "tpl_peacock_festive",
|
|
53
95
|
name: "Peacock Marigold Festive",
|
|
54
96
|
badge: "🦚 Festive",
|
|
97
|
+
category: "festive",
|
|
55
98
|
floatingStyle: "festive",
|
|
56
99
|
surfaceKey: "peacock",
|
|
100
|
+
defaultAccent: "#f59e0b",
|
|
57
101
|
description: "Vibrant marigold & teal palette for haldi, mehendi & housewarmings."
|
|
58
102
|
},
|
|
103
|
+
{
|
|
104
|
+
id: "tpl_terracotta_warmth",
|
|
105
|
+
name: "Terracotta Courtyard",
|
|
106
|
+
badge: "🏡 Warmth",
|
|
107
|
+
category: "festive",
|
|
108
|
+
floatingStyle: "lanterns",
|
|
109
|
+
surfaceKey: "terracotta",
|
|
110
|
+
defaultAccent: "#ea580c",
|
|
111
|
+
description: "Earthy clay & sunlit amber for grihapravesham & intimate gatherings."
|
|
112
|
+
},
|
|
59
113
|
{
|
|
60
114
|
id: "tpl_neon_party",
|
|
61
115
|
name: "Midnight Neon Bash",
|
|
62
116
|
badge: "🪩 Party",
|
|
117
|
+
category: "birthday",
|
|
63
118
|
floatingStyle: "party",
|
|
64
119
|
surfaceKey: "neon",
|
|
120
|
+
defaultAccent: "#d946ef",
|
|
65
121
|
description: "Electric violet nightlife glow for birthdays, sangeet & cocktail nights."
|
|
66
122
|
},
|
|
123
|
+
{
|
|
124
|
+
id: "tpl_mint_confetti",
|
|
125
|
+
name: "Mint Pop Confetti",
|
|
126
|
+
badge: "🎈 Cheerful",
|
|
127
|
+
category: "birthday",
|
|
128
|
+
floatingStyle: "confetti",
|
|
129
|
+
surfaceKey: "mint_confetti",
|
|
130
|
+
defaultAccent: "#0d9488",
|
|
131
|
+
description: "Playful mint-aqua & sunshine pop for lively birthday parties."
|
|
132
|
+
},
|
|
67
133
|
{
|
|
68
134
|
id: "tpl_starlit_petals",
|
|
69
135
|
name: "Starlit Velvet Petals",
|
|
70
136
|
badge: "🌌 Evening",
|
|
137
|
+
category: "proposal",
|
|
71
138
|
floatingStyle: "petals",
|
|
72
139
|
surfaceKey: "starlit",
|
|
140
|
+
defaultAccent: "#ec4899",
|
|
73
141
|
description: "Deep midnight velvet with drifting rose petals."
|
|
74
142
|
},
|
|
75
143
|
{
|
|
76
144
|
id: "tpl_golden_confetti",
|
|
77
145
|
name: "Golden Celebration Confetti",
|
|
78
146
|
badge: "🎉 Festive",
|
|
147
|
+
category: "birthday",
|
|
79
148
|
floatingStyle: "confetti",
|
|
80
149
|
surfaceKey: "golden",
|
|
150
|
+
defaultAccent: "#d97706",
|
|
81
151
|
description: "Warm sunlit gold with celebratory floating confetti."
|
|
82
152
|
},
|
|
83
153
|
{
|
|
84
154
|
id: "tpl_lavender_butterflies",
|
|
85
155
|
name: "Lavender Dream Butterflies",
|
|
86
156
|
badge: "🦋 Dreamy",
|
|
157
|
+
category: "proposal",
|
|
87
158
|
floatingStyle: "butterflies",
|
|
88
159
|
surfaceKey: "lavender",
|
|
160
|
+
defaultAccent: "#8b5cf6",
|
|
89
161
|
description: "Soft lilac sky with fluttering butterflies and sparkles."
|
|
90
162
|
},
|
|
91
163
|
{
|
|
92
164
|
id: "tpl_pastel_baby",
|
|
93
165
|
name: "Pastel Baby Clouds",
|
|
94
166
|
badge: "🍼 Baby",
|
|
167
|
+
category: "baby",
|
|
95
168
|
floatingStyle: "baby",
|
|
96
169
|
surfaceKey: "pastel",
|
|
170
|
+
defaultAccent: "#3b82f6",
|
|
97
171
|
description: "Sky-blue & buttercream pastel with baby footprints and stars."
|
|
98
172
|
},
|
|
99
173
|
{
|
|
100
174
|
id: "tpl_sunset_lanterns",
|
|
101
175
|
name: "Sunset Glow Lanterns",
|
|
102
176
|
badge: "🏮 Warm",
|
|
177
|
+
category: "festive",
|
|
103
178
|
floatingStyle: "lanterns",
|
|
104
179
|
surfaceKey: "sunset",
|
|
180
|
+
defaultAccent: "#f97316",
|
|
105
181
|
description: "Warm sunset peach with floating glowing lanterns."
|
|
106
182
|
},
|
|
107
183
|
{
|
|
108
184
|
id: "tpl_ivory_floral",
|
|
109
185
|
name: "Minimal Ivory Floral",
|
|
110
186
|
badge: "🌸 Classic",
|
|
187
|
+
category: "modern",
|
|
111
188
|
floatingStyle: "petals",
|
|
112
189
|
surfaceKey: "ivory",
|
|
190
|
+
defaultAccent: "#be185d",
|
|
113
191
|
description: "Clean editorial ivory paper with subtle floating petals."
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
id: "tpl_editorial_mono",
|
|
195
|
+
name: "Editorial Monochrome",
|
|
196
|
+
badge: "🖤 Modern",
|
|
197
|
+
category: "modern",
|
|
198
|
+
floatingStyle: "sparkles",
|
|
199
|
+
surfaceKey: "monochrome",
|
|
200
|
+
defaultAccent: "#111827",
|
|
201
|
+
description: "Crisp magazine-style black & alabaster layout for modern invites."
|
|
114
202
|
}
|
|
115
203
|
];
|
|
116
204
|
//#endregion
|
|
@@ -437,6 +437,52 @@ var e = [
|
|
|
437
437
|
}
|
|
438
438
|
]
|
|
439
439
|
},
|
|
440
|
+
{
|
|
441
|
+
type: "cartoon_scene_anim",
|
|
442
|
+
category: "animate",
|
|
443
|
+
name: "Cartoon Character Scene",
|
|
444
|
+
icon: "🎨",
|
|
445
|
+
summary: "Animated chibi SVG cartoons: couple hearts, ring proposal, baby steps, birthday, or wedding arch.",
|
|
446
|
+
defaultData: {
|
|
447
|
+
scene: "cartoon_couple",
|
|
448
|
+
caption: "Our Cute Forever Story Begins! 💖"
|
|
449
|
+
},
|
|
450
|
+
defaultTranslations: { ta: { caption: "நம் அழகிய பயணம் இன்று தொடங்குகிறது! 💖" } },
|
|
451
|
+
fields: [{
|
|
452
|
+
key: "scene",
|
|
453
|
+
label: "Cartoon Animation",
|
|
454
|
+
type: "select",
|
|
455
|
+
translatable: !1,
|
|
456
|
+
options: [
|
|
457
|
+
{
|
|
458
|
+
value: "cartoon_couple",
|
|
459
|
+
label: "💑 Cartoon Couple Holding Heart"
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
value: "cartoon_proposal",
|
|
463
|
+
label: "💍 Cartoon Ring Proposal"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
value: "cartoon_mandap",
|
|
467
|
+
label: "🌺 Cartoon Wedding Floral Arch"
|
|
468
|
+
},
|
|
469
|
+
{
|
|
470
|
+
value: "cartoon_birthday",
|
|
471
|
+
label: "🎂 Cartoon Birthday Party"
|
|
472
|
+
},
|
|
473
|
+
{
|
|
474
|
+
value: "cartoon_baby",
|
|
475
|
+
label: "🍼 Cartoon Baby First Steps"
|
|
476
|
+
}
|
|
477
|
+
]
|
|
478
|
+
}, {
|
|
479
|
+
key: "caption",
|
|
480
|
+
label: "Caption",
|
|
481
|
+
type: "text",
|
|
482
|
+
placeholder: "Cartoon scene caption",
|
|
483
|
+
translatable: !0
|
|
484
|
+
}]
|
|
485
|
+
},
|
|
440
486
|
{
|
|
441
487
|
type: "couple_hands_anim",
|
|
442
488
|
category: "animate",
|
|
@@ -498,7 +544,7 @@ var e = [
|
|
|
498
544
|
category: "animate",
|
|
499
545
|
name: "Story / Sprite Animator",
|
|
500
546
|
icon: "🎭",
|
|
501
|
-
summary: "Pick Ring Sparkle, Dancing Couple,
|
|
547
|
+
summary: "Pick Cartoon scenes, Ring Sparkle, Dancing Couple, Cake, or custom sprite sheet.",
|
|
502
548
|
defaultData: {
|
|
503
549
|
scene: "ring_sparkle",
|
|
504
550
|
caption: "A Sparkle Made for Forever",
|
|
@@ -511,6 +557,26 @@ var e = [
|
|
|
511
557
|
type: "select",
|
|
512
558
|
translatable: !1,
|
|
513
559
|
options: [
|
|
560
|
+
{
|
|
561
|
+
value: "cartoon_couple",
|
|
562
|
+
label: "🎨 Cartoon Couple Holding Heart"
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
value: "cartoon_proposal",
|
|
566
|
+
label: "🎨 Cartoon Ring Proposal"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
value: "cartoon_mandap",
|
|
570
|
+
label: "🎨 Cartoon Wedding Floral Arch"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
value: "cartoon_birthday",
|
|
574
|
+
label: "🎨 Cartoon Birthday Party"
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
value: "cartoon_baby",
|
|
578
|
+
label: "🎨 Cartoon Baby First Steps"
|
|
579
|
+
},
|
|
514
580
|
{
|
|
515
581
|
value: "ring_sparkle",
|
|
516
582
|
label: "💍 Ring Sparkle"
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
//#region src/utils/getPresetTemplateId.ts
|
|
2
2
|
function e(e) {
|
|
3
3
|
switch (e) {
|
|
4
|
-
case "invitation": return "
|
|
5
|
-
case "birthday": return "
|
|
4
|
+
case "invitation": return "tpl_kanchipuram_silk";
|
|
5
|
+
case "birthday": return "tpl_mint_confetti";
|
|
6
6
|
case "anniversary": return "tpl_champagne_noir";
|
|
7
7
|
case "baby_shower": return "tpl_pastel_baby";
|
|
8
|
+
case "engagement": return "tpl_watercolor_bloom";
|
|
9
|
+
case "housewarming": return "tpl_terracotta_warmth";
|
|
8
10
|
default: return "tpl_blush_hearts";
|
|
9
11
|
}
|
|
10
12
|
}
|