@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,190 @@
1
- "use strict";(()=>{var o=[{attribute:"data-ph",attributeValue:"book-a-demo",condition:"href",conditionValue:"/contact-us"},{attribute:"data-ph",attributeValue:"sign-in",condition:"href",conditionValue:"https://console.fynd.com/auth/sign-in"},{attribute:"data-ph",attributeValue:"sign-up",condition:"href",conditionValue:"https://console.fynd.com/auth/sign-up"}];function s(n,e,t){switch(e.toLowerCase()){case"href":return u(n,t);case"text":return d(n,t);case"class":return n.classList.contains(t);case"id":return n.id===t;default:return!1}}function u(n,e){let t=n.getAttribute("href")||"";if(!t)return!1;try{let i;if(t.startsWith("http://")||t.startsWith("https://")?i=new URL(t):t.startsWith("/")?i=new URL(t,window.location.origin):i=new URL(t,window.location.href),e.startsWith("http://")||e.startsWith("https://"))try{let a=new URL(e);return i.origin===a.origin&&i.pathname===a.pathname}catch{return t.includes(e)}return i.pathname.includes(e)}catch{return t.includes(e)}}function d(n,e){let i=(n.textContent?.trim().toLowerCase()||"").replace(/\s+/g," "),a=e.toLowerCase().replace(/\s+/g," ");return i.includes(a)}function b(n=o){document.querySelectorAll("a").forEach(t=>{n.forEach(i=>{t.hasAttribute(i.attribute)&&t.getAttribute(i.attribute)===i.attributeValue||s(t,i.condition,i.conditionValue)&&t.setAttribute(i.attribute,i.attributeValue)})})}function c(n=o){document.querySelectorAll("a").forEach(t=>{n.forEach(i=>{t.hasAttribute(i.attribute)&&t.getAttribute(i.attribute)===i.attributeValue||s(t,i.condition,i.conditionValue)&&t.setAttribute(i.attribute,i.attributeValue)})})}var r=class{constructor(e=o){this.observer=null;this.config=e}updateConfig(e){this.config=e}tagExistingLinks(){document.querySelectorAll("a").forEach(t=>{this.config.forEach(i=>{this.shouldTagLink(t,i)&&this.tagLink(t,i)})})}startObserving(){this.observer=new MutationObserver(e=>{e.forEach(t=>{t.addedNodes.forEach(i=>{if(i.nodeType===Node.ELEMENT_NODE){let a=i;a.tagName==="A"&&this.processAnchor(a),a.querySelectorAll("a").forEach(g=>{this.processAnchor(g)})}})})}),this.observer.observe(document.body,{childList:!0,subtree:!0})}stopObserving(){this.observer&&(this.observer.disconnect(),this.observer=null)}processAnchor(e){this.config.forEach(t=>{this.shouldTagLink(e,t)&&this.tagLink(e,t)})}shouldTagLink(e,t){return e.hasAttribute(t.attribute)&&e.getAttribute(t.attribute)===t.attributeValue?!1:s(e,t.condition,t.conditionValue)}tagLink(e,t){e.setAttribute(t.attribute,t.attributeValue)}};function f(n){document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{c(n)}):c(n)}function h(n){let e=()=>{let t=new r(n);t.tagExistingLinks(),t.startObserving()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",e):e()}h();})();
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/posthog-and-ga/attributes.ts
13
+ var DEFAULT_TAGGING_CONFIG = [
14
+ {
15
+ attribute: "data-ph",
16
+ attributeValue: "book-a-demo",
17
+ condition: "href",
18
+ conditionValue: "/contact-us"
19
+ },
20
+ {
21
+ attribute: "data-ph",
22
+ attributeValue: "sign-in",
23
+ condition: "href",
24
+ conditionValue: "https://console.fynd.com/auth/sign-in"
25
+ },
26
+ {
27
+ attribute: "data-ph",
28
+ attributeValue: "sign-up",
29
+ condition: "href",
30
+ conditionValue: "https://console.fynd.com/auth/sign-up"
31
+ }
32
+ ];
33
+ function matchesCondition(anchor, condition, conditionValue) {
34
+ switch (condition.toLowerCase()) {
35
+ case "href":
36
+ return matchesHref(anchor, conditionValue);
37
+ case "text":
38
+ return matchesText(anchor, conditionValue);
39
+ case "class":
40
+ return anchor.classList.contains(conditionValue);
41
+ case "id":
42
+ return anchor.id === conditionValue;
43
+ default:
44
+ return false;
45
+ }
46
+ }
47
+ function matchesHref(anchor, conditionValue) {
48
+ const href = anchor.getAttribute("href") || "";
49
+ if (!href) return false;
50
+ try {
51
+ let url;
52
+ if (href.startsWith("http://") || href.startsWith("https://")) {
53
+ url = new URL(href);
54
+ } else if (href.startsWith("/")) {
55
+ url = new URL(href, window.location.origin);
56
+ } else {
57
+ url = new URL(href, window.location.href);
58
+ }
59
+ if (conditionValue.startsWith("http://") || conditionValue.startsWith("https://")) {
60
+ try {
61
+ const conditionUrl = new URL(conditionValue);
62
+ return url.origin === conditionUrl.origin && url.pathname === conditionUrl.pathname;
63
+ } catch {
64
+ return href.includes(conditionValue);
65
+ }
66
+ }
67
+ return url.pathname.includes(conditionValue);
68
+ } catch (error) {
69
+ return href.includes(conditionValue);
70
+ }
71
+ }
72
+ function matchesText(anchor, conditionValue) {
73
+ const textContent = anchor.textContent?.trim().toLowerCase() || "";
74
+ const normalizedText = textContent.replace(/\s+/g, " ");
75
+ const normalizedCondition = conditionValue.toLowerCase().replace(/\s+/g, " ");
76
+ return normalizedText.includes(normalizedCondition);
77
+ }
78
+ function tagLinks(config = DEFAULT_TAGGING_CONFIG) {
79
+ const anchorTags = document.querySelectorAll("a");
80
+ anchorTags.forEach((anchor) => {
81
+ config.forEach((rule) => {
82
+ if (anchor.hasAttribute(rule.attribute) && anchor.getAttribute(rule.attribute) === rule.attributeValue) {
83
+ return;
84
+ }
85
+ if (matchesCondition(anchor, rule.condition, rule.conditionValue)) {
86
+ anchor.setAttribute(rule.attribute, rule.attributeValue);
87
+ }
88
+ });
89
+ });
90
+ }
91
+ function tagLinksAdvanced(config = DEFAULT_TAGGING_CONFIG) {
92
+ const anchorTags = document.querySelectorAll("a");
93
+ anchorTags.forEach((anchor) => {
94
+ config.forEach((rule) => {
95
+ if (anchor.hasAttribute(rule.attribute) && anchor.getAttribute(rule.attribute) === rule.attributeValue) {
96
+ return;
97
+ }
98
+ if (matchesCondition(anchor, rule.condition, rule.conditionValue)) {
99
+ anchor.setAttribute(rule.attribute, rule.attributeValue);
100
+ }
101
+ });
102
+ });
103
+ }
104
+ var GenericLinkTagger = class {
105
+ constructor(config = DEFAULT_TAGGING_CONFIG) {
106
+ this.observer = null;
107
+ this.config = config;
108
+ }
109
+ updateConfig(config) {
110
+ this.config = config;
111
+ }
112
+ tagExistingLinks() {
113
+ const anchorTags = document.querySelectorAll("a");
114
+ anchorTags.forEach((anchor) => {
115
+ this.config.forEach((rule) => {
116
+ if (this.shouldTagLink(anchor, rule)) {
117
+ this.tagLink(anchor, rule);
118
+ }
119
+ });
120
+ });
121
+ }
122
+ startObserving() {
123
+ this.observer = new MutationObserver((mutations) => {
124
+ mutations.forEach((mutation) => {
125
+ mutation.addedNodes.forEach((node) => {
126
+ if (node.nodeType === Node.ELEMENT_NODE) {
127
+ const element = node;
128
+ if (element.tagName === "A") {
129
+ this.processAnchor(element);
130
+ }
131
+ const anchorTags = element.querySelectorAll("a");
132
+ anchorTags.forEach((anchor) => {
133
+ this.processAnchor(anchor);
134
+ });
135
+ }
136
+ });
137
+ });
138
+ });
139
+ this.observer.observe(document.body, {
140
+ childList: true,
141
+ subtree: true
142
+ });
143
+ }
144
+ stopObserving() {
145
+ if (this.observer) {
146
+ this.observer.disconnect();
147
+ this.observer = null;
148
+ }
149
+ }
150
+ processAnchor(anchor) {
151
+ this.config.forEach((rule) => {
152
+ if (this.shouldTagLink(anchor, rule)) {
153
+ this.tagLink(anchor, rule);
154
+ }
155
+ });
156
+ }
157
+ shouldTagLink(anchor, rule) {
158
+ if (anchor.hasAttribute(rule.attribute) && anchor.getAttribute(rule.attribute) === rule.attributeValue) {
159
+ return false;
160
+ }
161
+ return matchesCondition(anchor, rule.condition, rule.conditionValue);
162
+ }
163
+ tagLink(anchor, rule) {
164
+ anchor.setAttribute(rule.attribute, rule.attributeValue);
165
+ }
166
+ };
167
+ function initGenericLinkTagger(config) {
168
+ if (document.readyState === "loading") {
169
+ document.addEventListener("DOMContentLoaded", () => {
170
+ tagLinksAdvanced(config);
171
+ });
172
+ } else {
173
+ tagLinksAdvanced(config);
174
+ }
175
+ }
176
+ function initGenericLinkTaggerWithObserver(config) {
177
+ const runTagger = () => {
178
+ const tagger = new GenericLinkTagger(config);
179
+ tagger.tagExistingLinks();
180
+ tagger.startObserving();
181
+ };
182
+ if (document.readyState === "loading") {
183
+ document.addEventListener("DOMContentLoaded", runTagger);
184
+ } else {
185
+ runTagger();
186
+ }
187
+ }
188
+ initGenericLinkTaggerWithObserver();
189
+ })();
190
+ //# sourceMappingURL=attributes.js.map