@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.
Files changed (81) hide show
  1. package/dist/accordians/dropdown.js +95 -1
  2. package/dist/accordians/index.js +391 -1
  3. package/dist/cms-listing/index.js +24 -1
  4. package/dist/filters/clear-search.js +32 -1
  5. package/dist/filters/konnect.js +165 -1
  6. package/dist/filters/show-count.js +66 -1
  7. package/dist/form/country-dropdown.css +160 -1
  8. package/dist/form/cs-gated-redirection.js +40 -1
  9. package/dist/form/download-file.js +70 -1
  10. package/dist/form/validation.css +1019 -1
  11. package/dist/form/validation.js +10611 -7
  12. package/dist/global/anchor-scroll.js +174 -1
  13. package/dist/global/auth.js +87 -1
  14. package/dist/global/chat.js +185 -1
  15. package/dist/global/console-links.js +89 -1
  16. package/dist/global/contact-popup.js +83 -2
  17. package/dist/global/css/in-page-embed.css +1043 -1
  18. package/dist/global/css/in-project-settings.css +173 -1
  19. package/dist/global/css/temp.css +89 -1
  20. package/dist/global/custom-bg-video.js +40 -1
  21. package/dist/global/footer-accordion.js +44 -1
  22. package/dist/global/lazy-loader.js +135 -1
  23. package/dist/global/loader.js +166 -2
  24. package/dist/global/media-card.js +166 -1
  25. package/dist/global/miscellaneous.js +136 -1
  26. package/dist/global/number-count.js +82 -1
  27. package/dist/global/popup-video.js +276 -1
  28. package/dist/global/progressive-scroll.js +222 -1
  29. package/dist/global/responsive-video.js +321 -1
  30. package/dist/global/style.css +1065 -1
  31. package/dist/global/video-card.js +50 -1
  32. package/dist/hacktimus/2025.js +177 -1
  33. package/dist/hacktimus/styles.css +91 -1
  34. package/dist/home/index.js +17 -1
  35. package/dist/marquee/index.js +3104 -1
  36. package/dist/marquee/marquee-swiper.js +36 -1
  37. package/dist/navigation/announcement/index.js +5169 -1
  38. package/dist/navigation/context-menu/index.js +31 -1
  39. package/dist/navigation/desktop/index.js +4603 -1
  40. package/dist/navigation/initialization.js +602 -1
  41. package/dist/navigation/main.js +4911 -1
  42. package/dist/navigation/mobile/index.js +286 -1
  43. package/dist/navigation/scroll/index.js +62 -1
  44. package/dist/navigation/secondary-navigation/index.js +437 -1
  45. package/dist/navigation/style.css +154 -1
  46. package/dist/navigation/temp.css +2 -0
  47. package/dist/navigation/theme.css +69 -1
  48. package/dist/navigation-v2/index.js +4990 -1
  49. package/dist/navigation-v2/styles.css +233 -1
  50. package/dist/others/feature-detail.js +75 -0
  51. package/dist/others/feature-detail.js.map +7 -0
  52. package/dist/others/geolocation.js +50 -1
  53. package/dist/others/hero-aniamtion.js +53 -1
  54. package/dist/others/hero-india-animation-2.js +70 -1
  55. package/dist/others/hero-india-animation.js +93 -1
  56. package/dist/others/home-solution-tab.js +115 -1
  57. package/dist/others/storefront-chat/index.js +487 -1
  58. package/dist/others/storefront-chat/styles.css +107 -1
  59. package/dist/playbook-2026/hero-reveal.js +47 -1
  60. package/dist/playbook-2026/index.js +536 -1
  61. package/dist/playbook-2026/styles.css +110 -1
  62. package/dist/posthog-and-ga/attributes.js +190 -1
  63. package/dist/posthog-and-ga/main.js +528 -1
  64. package/dist/progressive-scroll/index.js +147 -1
  65. package/dist/quick-fix/reload.js +22 -1
  66. package/dist/seo/schema.js +465 -1
  67. package/dist/slider/freescroll.js +34 -1
  68. package/dist/test/sample.js +15 -1
  69. package/dist/testimonials/index.js +2654 -1
  70. package/dist/timeline/index.js +160 -1
  71. package/dist/timeline/style.css +42 -1
  72. package/dist/tracking/custom-id.js +75 -1
  73. package/dist/tracking/fill-form-fields.js +238 -1
  74. package/dist/tracking/fill-form-fields.js.map +2 -2
  75. package/dist/tracking/form-tracker.js +146 -1
  76. package/dist/tracking/page-categories.js +20 -1
  77. package/dist/tracking/user-journey.js +839 -1
  78. package/dist/tracking/utm-links.js +194 -1
  79. package/dist/utils/sample.js +17 -1
  80. package/dist/validations/localhost.js +221 -1
  81. package/package.json +1 -1
@@ -1 +1,146 @@
1
- "use strict";(()=>{var o=class{constructor(){this.processedForms=new Set;this.formFieldMap=new Map([["firstName","firstName"],["first_name","firstName"],["fname","firstName"],["lastName","lastName"],["last_name","lastName"],["lname","lastName"],["email","email"],["email_address","email"],["phone","phone"],["phone_number","phone"],["mobile","phone"],["tel","phone"]]);this.init()}init(){document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>this.setupFormTracking()):this.setupFormTracking()}setupFormTracking(){document.querySelectorAll("[data-posthog-trigger]").forEach(t=>{t.addEventListener("change",r=>{this.handleFormInteraction(r)}),t.addEventListener("input",r=>{this.handleFormInput(r)})})}handleFormInteraction(e){let r=e.target.closest("form");if(console.log("Form interaction detected:",r),!r||this.processedForms.has(r))return null;this.processedForms.add(r);let a=r.getAttribute("data-name"),n=r.getAttribute("id")||this.generateFormId(r);return a?(window.interactedForm=a,this.updateUserJourneyFormDetails(n,a),typeof window.getTrackingPropertiesWithForm=="function"&&typeof window.trackEvent=="function"&&window.trackEvent("fynd_form_started",window.getTrackingPropertiesWithForm(a)),a):null}handleFormInput(e){let t=e.target,r=this.getFieldName(t),a=this.mapFieldName(r);a&&this.updateUserJourneyFormData(a,t.value)}getFieldName(e){return e.getAttribute("name")||e.getAttribute("data-field")||e.getAttribute("data-name")||e.getAttribute("id")||""}mapFieldName(e){let t=e.toLowerCase();if(this.formFieldMap.has(t))return this.formFieldMap.get(t);for(let[r,a]of this.formFieldMap.entries())if(t.includes(r))return a;return null}generateFormId(e){let t=e.getAttribute("data-name")||"unknown",r=Date.now();return`form-${t}-${r}`}updateUserJourneyFormDetails(e,t){typeof window.setFormDetails=="function"&&window.setFormDetails(e,t)}updateUserJourneyFormData(e,t){typeof window.setFormData=="function"&&window.setFormData(e,t)}addFieldMapping(e,t){this.formFieldMap.set(e.toLowerCase(),t)}reinitialize(){this.processedForms.clear(),this.setupFormTracking(),typeof window.reinitializeFormTracking=="function"&&window.reinitializeFormTracking()}getFormData(){if(typeof window.getUserJourney=="function"){let e=window.getUserJourney();return e?e.formDetails:null}return null}setFormData(e,t){return this.updateUserJourneyFormData(e,t)!==void 0}isFormInteracted(e){return this.processedForms.has(e)}},i=new o;window.formTracker=i;var m=i;})();
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";(()=>{document.addEventListener("DOMContentLoaded",()=>{setTimeout(()=>{let t=document.querySelectorAll('[data-page-category="true"]');window.pageCategories=Array.from(t).map(e=>e.textContent?.trim()||"").filter(e=>e.length>0)},100)});})();
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