@fynd-design-engineering/fynd-one-v2 3.4.61 → 3.4.63
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/accordians/dropdown.js +95 -1
- package/dist/accordians/index.js +391 -1
- package/dist/cms-listing/index.js +24 -1
- package/dist/filters/clear-search.js +32 -1
- package/dist/filters/konnect.js +165 -1
- package/dist/filters/show-count.js +66 -1
- package/dist/form/country-dropdown.css +160 -1
- package/dist/form/cs-gated-redirection.js +40 -1
- package/dist/form/download-file.js +70 -1
- package/dist/form/validation.css +1019 -1
- package/dist/form/validation.js +10611 -7
- package/dist/global/anchor-scroll.js +174 -1
- package/dist/global/auth.js +87 -1
- package/dist/global/chat.js +185 -1
- package/dist/global/console-links.js +89 -1
- package/dist/global/contact-popup.js +83 -2
- package/dist/global/css/in-page-embed.css +1043 -1
- package/dist/global/css/in-project-settings.css +173 -1
- package/dist/global/css/temp.css +89 -1
- package/dist/global/custom-bg-video.js +40 -1
- package/dist/global/footer-accordion.js +44 -1
- package/dist/global/lazy-loader.js +135 -1
- package/dist/global/loader.js +166 -2
- package/dist/global/media-card.js +166 -1
- package/dist/global/miscellaneous.js +136 -1
- package/dist/global/number-count.js +82 -1
- package/dist/global/popup-video.js +276 -1
- package/dist/global/progressive-scroll.js +222 -1
- package/dist/global/responsive-video.js +321 -1
- package/dist/global/style.css +1065 -1
- package/dist/global/video-card.js +50 -1
- package/dist/hacktimus/2025.js +177 -1
- package/dist/hacktimus/styles.css +91 -1
- package/dist/home/index.js +17 -1
- package/dist/marquee/index.js +3104 -1
- package/dist/marquee/marquee-swiper.js +36 -1
- package/dist/navigation/announcement/index.js +5169 -1
- package/dist/navigation/context-menu/index.js +31 -1
- package/dist/navigation/desktop/index.js +4603 -1
- package/dist/navigation/initialization.js +602 -1
- package/dist/navigation/main.js +4911 -1
- package/dist/navigation/mobile/index.js +286 -1
- package/dist/navigation/scroll/index.js +62 -1
- package/dist/navigation/secondary-navigation/index.js +437 -1
- package/dist/navigation/style.css +154 -1
- package/dist/navigation/temp.css +2 -0
- package/dist/navigation/theme.css +69 -1
- package/dist/navigation-v2/index.js +4990 -1
- package/dist/navigation-v2/styles.css +233 -1
- package/dist/others/feature-detail.js +75 -0
- package/dist/others/feature-detail.js.map +7 -0
- package/dist/others/geolocation.js +50 -1
- package/dist/others/hero-aniamtion.js +53 -1
- package/dist/others/hero-india-animation-2.js +70 -1
- package/dist/others/hero-india-animation.js +93 -1
- package/dist/others/home-solution-tab.js +115 -1
- package/dist/others/storefront-chat/index.js +487 -1
- package/dist/others/storefront-chat/styles.css +107 -1
- package/dist/playbook-2026/hero-reveal.js +47 -1
- package/dist/playbook-2026/index.js +536 -1
- package/dist/playbook-2026/styles.css +110 -1
- package/dist/posthog-and-ga/attributes.js +190 -1
- package/dist/posthog-and-ga/main.js +528 -1
- package/dist/progressive-scroll/index.js +147 -1
- package/dist/quick-fix/reload.js +22 -1
- package/dist/seo/schema.js +465 -1
- package/dist/slider/freescroll.js +34 -1
- package/dist/test/sample.js +15 -1
- package/dist/testimonials/index.js +2654 -1
- package/dist/timeline/index.js +160 -1
- package/dist/timeline/style.css +42 -1
- package/dist/tracking/custom-id.js +75 -1
- package/dist/tracking/fill-form-fields.js +238 -1
- package/dist/tracking/fill-form-fields.js.map +2 -2
- package/dist/tracking/form-tracker.js +146 -1
- package/dist/tracking/page-categories.js +20 -1
- package/dist/tracking/user-journey.js +839 -1
- package/dist/tracking/utm-links.js +194 -1
- package/dist/utils/sample.js +17 -1
- package/dist/validations/localhost.js +221 -1
- package/package.json +1 -1
|
@@ -1 +1,146 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
(() => {
|
|
3
|
+
// bin/live-reload.js
|
|
4
|
+
if (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") {
|
|
5
|
+
new EventSource(`${"http://localhost:3000"}/esbuild`).addEventListener(
|
|
6
|
+
"change",
|
|
7
|
+
() => location.reload()
|
|
8
|
+
);
|
|
9
|
+
} else {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// src/tracking/form-tracker.ts
|
|
13
|
+
var FormTracker = class {
|
|
14
|
+
constructor() {
|
|
15
|
+
this.processedForms = /* @__PURE__ */ new Set();
|
|
16
|
+
this.formFieldMap = /* @__PURE__ */ new Map([
|
|
17
|
+
["firstName", "firstName"],
|
|
18
|
+
["first_name", "firstName"],
|
|
19
|
+
["fname", "firstName"],
|
|
20
|
+
["lastName", "lastName"],
|
|
21
|
+
["last_name", "lastName"],
|
|
22
|
+
["lname", "lastName"],
|
|
23
|
+
["email", "email"],
|
|
24
|
+
["email_address", "email"],
|
|
25
|
+
["phone", "phone"],
|
|
26
|
+
["phone_number", "phone"],
|
|
27
|
+
["mobile", "phone"],
|
|
28
|
+
["tel", "phone"]
|
|
29
|
+
]);
|
|
30
|
+
this.init();
|
|
31
|
+
}
|
|
32
|
+
init() {
|
|
33
|
+
if (document.readyState === "loading") {
|
|
34
|
+
document.addEventListener("DOMContentLoaded", () => this.setupFormTracking());
|
|
35
|
+
} else {
|
|
36
|
+
this.setupFormTracking();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
setupFormTracking() {
|
|
40
|
+
const formFields = document.querySelectorAll("[data-posthog-trigger]");
|
|
41
|
+
formFields.forEach((field) => {
|
|
42
|
+
field.addEventListener("change", (event) => {
|
|
43
|
+
this.handleFormInteraction(event);
|
|
44
|
+
});
|
|
45
|
+
field.addEventListener("input", (event) => {
|
|
46
|
+
this.handleFormInput(event);
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
handleFormInteraction(event) {
|
|
51
|
+
const field = event.target;
|
|
52
|
+
const parentForm = field.closest("form");
|
|
53
|
+
console.log("Form interaction detected:", parentForm);
|
|
54
|
+
if (!parentForm) return null;
|
|
55
|
+
if (this.processedForms.has(parentForm)) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
this.processedForms.add(parentForm);
|
|
59
|
+
const formName = parentForm.getAttribute("data-name");
|
|
60
|
+
const formId = parentForm.getAttribute("id") || this.generateFormId(parentForm);
|
|
61
|
+
if (formName) {
|
|
62
|
+
window.interactedForm = formName;
|
|
63
|
+
this.updateUserJourneyFormDetails(formId, formName);
|
|
64
|
+
if (typeof window.getTrackingPropertiesWithForm === "function") {
|
|
65
|
+
if (typeof window.trackEvent === "function") {
|
|
66
|
+
window.trackEvent(
|
|
67
|
+
"fynd_form_started",
|
|
68
|
+
window.getTrackingPropertiesWithForm(formName)
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return formName;
|
|
73
|
+
}
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
handleFormInput(event) {
|
|
77
|
+
const field = event.target;
|
|
78
|
+
const fieldName = this.getFieldName(field);
|
|
79
|
+
const mappedFieldName = this.mapFieldName(fieldName);
|
|
80
|
+
if (!mappedFieldName) return;
|
|
81
|
+
this.updateUserJourneyFormData(mappedFieldName, field.value);
|
|
82
|
+
}
|
|
83
|
+
getFieldName(field) {
|
|
84
|
+
return field.getAttribute("name") || field.getAttribute("data-field") || field.getAttribute("data-name") || field.getAttribute("id") || "";
|
|
85
|
+
}
|
|
86
|
+
mapFieldName(fieldName) {
|
|
87
|
+
const lowerFieldName = fieldName.toLowerCase();
|
|
88
|
+
if (this.formFieldMap.has(lowerFieldName)) {
|
|
89
|
+
return this.formFieldMap.get(lowerFieldName);
|
|
90
|
+
}
|
|
91
|
+
for (const [key, mappedField] of this.formFieldMap.entries()) {
|
|
92
|
+
if (lowerFieldName.includes(key)) {
|
|
93
|
+
return mappedField;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
generateFormId(form) {
|
|
99
|
+
const formName = form.getAttribute("data-name") || "unknown";
|
|
100
|
+
const timestamp = Date.now();
|
|
101
|
+
return `form-${formName}-${timestamp}`;
|
|
102
|
+
}
|
|
103
|
+
updateUserJourneyFormDetails(formId, formName) {
|
|
104
|
+
if (typeof window.setFormDetails === "function") {
|
|
105
|
+
window.setFormDetails(formId, formName);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
updateUserJourneyFormData(fieldName, value) {
|
|
109
|
+
if (typeof window.setFormData === "function") {
|
|
110
|
+
window.setFormData(fieldName, value);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
// Public method to add custom field mapping
|
|
114
|
+
addFieldMapping(fieldName, mappedField) {
|
|
115
|
+
this.formFieldMap.set(fieldName.toLowerCase(), mappedField);
|
|
116
|
+
}
|
|
117
|
+
// Public method to reinitialize tracking (useful for dynamic content)
|
|
118
|
+
reinitialize() {
|
|
119
|
+
this.processedForms.clear();
|
|
120
|
+
this.setupFormTracking();
|
|
121
|
+
if (typeof window.reinitializeFormTracking === "function") {
|
|
122
|
+
window.reinitializeFormTracking();
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
// Public method to get current form data
|
|
126
|
+
getFormData() {
|
|
127
|
+
if (typeof window.getUserJourney === "function") {
|
|
128
|
+
const journey = window.getUserJourney();
|
|
129
|
+
return journey ? journey.formDetails : null;
|
|
130
|
+
}
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
// Public method to manually set form data
|
|
134
|
+
setFormData(fieldName, value) {
|
|
135
|
+
return this.updateUserJourneyFormData(fieldName, value) !== void 0;
|
|
136
|
+
}
|
|
137
|
+
// Public method to check if a form has been interacted with
|
|
138
|
+
isFormInteracted(form) {
|
|
139
|
+
return this.processedForms.has(form);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
var formTracker = new FormTracker();
|
|
143
|
+
window.formTracker = formTracker;
|
|
144
|
+
var form_tracker_default = formTracker;
|
|
145
|
+
})();
|
|
146
|
+
//# sourceMappingURL=form-tracker.js.map
|
|
@@ -1 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
(() => {
|
|
3
|
+
// bin/live-reload.js
|
|
4
|
+
if (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") {
|
|
5
|
+
new EventSource(`${"http://localhost:3000"}/esbuild`).addEventListener(
|
|
6
|
+
"change",
|
|
7
|
+
() => location.reload()
|
|
8
|
+
);
|
|
9
|
+
} else {
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// src/tracking/page-categories.ts
|
|
13
|
+
document.addEventListener("DOMContentLoaded", () => {
|
|
14
|
+
setTimeout(() => {
|
|
15
|
+
const categoryDivs = document.querySelectorAll('[data-page-category="true"]');
|
|
16
|
+
window.pageCategories = Array.from(categoryDivs).map((div) => div.textContent?.trim() || "").filter((text) => text.length > 0);
|
|
17
|
+
}, 100);
|
|
18
|
+
});
|
|
19
|
+
})();
|
|
20
|
+
//# sourceMappingURL=page-categories.js.map
|