@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,190 @@
|
|
|
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/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
|