@fynd-design-engineering/fynd-one-v2 2.1.1 → 2.2.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/dist/form/download-file.js +33 -1
- package/dist/global/style.css +634 -1
- package/dist/global/style.css.map +7 -0
- package/dist/home/index.js +18 -1
- package/dist/navigation/announcement/index.js +5170 -1
- package/dist/navigation/context-menu/index.js +32 -1
- package/dist/navigation/desktop/index.js +4613 -1
- package/dist/navigation/mobile/index.js +288 -1
- package/dist/navigation/scroll/index.js +55 -1
- package/dist/navigation/scroll/index.js.map +2 -2
- package/dist/navigation/style.css +102 -1
- package/dist/navigation/style.css.map +2 -2
- package/dist/posthog/form-success.js +74 -0
- package/dist/posthog/form-success.js.map +7 -0
- package/dist/posthog/index.js +119 -0
- package/dist/posthog/index.js.map +7 -0
- package/dist/test/sample.js +16 -1
- package/dist/tracking/fill-form-fields.js +97 -1
- package/dist/tracking/page-categories.js +21 -1
- package/dist/tracking/user-journey.js +253 -1
- package/dist/tracking/utm-links.js +195 -1
- package/dist/utils/sample.js +18 -1
- package/dist/validations/localhost.js +222 -1
- package/package.json +1 -1
|
@@ -1 +1,195 @@
|
|
|
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
|
+
console.log("Live reload disabled: not running on localhost");
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// src/tracking/utm-links.ts
|
|
14
|
+
(function() {
|
|
15
|
+
"use strict";
|
|
16
|
+
const config = {
|
|
17
|
+
utmKeys: [
|
|
18
|
+
"utm_source",
|
|
19
|
+
"utm_medium",
|
|
20
|
+
"utm_campaign",
|
|
21
|
+
"utm_term",
|
|
22
|
+
"utm_content",
|
|
23
|
+
"utm_id"
|
|
24
|
+
],
|
|
25
|
+
selectors: [
|
|
26
|
+
"a[href]",
|
|
27
|
+
'button[onclick*="location"]',
|
|
28
|
+
'button[onclick*="window.open"]',
|
|
29
|
+
'button[onclick*="href"]',
|
|
30
|
+
"[data-href]"
|
|
31
|
+
]
|
|
32
|
+
};
|
|
33
|
+
function getCurrentUTMParams() {
|
|
34
|
+
const urlParams = new URLSearchParams(window.location.search);
|
|
35
|
+
const utmParams = {};
|
|
36
|
+
config.utmKeys.forEach((key) => {
|
|
37
|
+
if (urlParams.has(key)) {
|
|
38
|
+
const value = urlParams.get(key);
|
|
39
|
+
if (value) {
|
|
40
|
+
utmParams[key] = value;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
return utmParams;
|
|
45
|
+
}
|
|
46
|
+
function isInternalLink(url, currentHost) {
|
|
47
|
+
try {
|
|
48
|
+
if (url.startsWith("/") || url.startsWith("./") || url.startsWith("../")) {
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
if (url.startsWith("http")) {
|
|
52
|
+
const linkHost = new URL(url).hostname;
|
|
53
|
+
return linkHost === currentHost;
|
|
54
|
+
}
|
|
55
|
+
if (url.startsWith("//")) {
|
|
56
|
+
const linkHost = new URL("http:" + url).hostname;
|
|
57
|
+
return linkHost === currentHost;
|
|
58
|
+
}
|
|
59
|
+
if (!url.includes("://")) {
|
|
60
|
+
return true;
|
|
61
|
+
}
|
|
62
|
+
return false;
|
|
63
|
+
} catch (e) {
|
|
64
|
+
console.warn("Error parsing URL:", url, e);
|
|
65
|
+
return true;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function addUTMToURL(url, utmParams) {
|
|
69
|
+
try {
|
|
70
|
+
const urlObj = new URL(url, window.location.origin);
|
|
71
|
+
Object.keys(utmParams).forEach((key) => {
|
|
72
|
+
if (!urlObj.searchParams.has(key)) {
|
|
73
|
+
urlObj.searchParams.set(key, utmParams[key]);
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
return urlObj.toString();
|
|
77
|
+
} catch (e) {
|
|
78
|
+
console.warn("Error processing URL:", url, e);
|
|
79
|
+
return url;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function hasUTMException(element) {
|
|
83
|
+
return element.hasAttribute("data-utm-exception") && element.getAttribute("data-utm-exception") === "true";
|
|
84
|
+
}
|
|
85
|
+
function extractURLFromOnclick(onclickStr) {
|
|
86
|
+
const urlMatch = onclickStr.match(
|
|
87
|
+
/["'](https?:\/\/[^"']+|\/[^"']*|[^"']*\.html?[^"']*)["']/
|
|
88
|
+
);
|
|
89
|
+
return urlMatch ? urlMatch[1] : null;
|
|
90
|
+
}
|
|
91
|
+
function updateOnclickAttribute(element, oldUrl, newUrl) {
|
|
92
|
+
if (!(element instanceof HTMLElement) || !element.onclick) return;
|
|
93
|
+
const onclickStr = element.onclick.toString();
|
|
94
|
+
const newOnclick = onclickStr.replace(oldUrl, newUrl);
|
|
95
|
+
const funcBody = newOnclick.slice(
|
|
96
|
+
newOnclick.indexOf("{") + 1,
|
|
97
|
+
newOnclick.lastIndexOf("}")
|
|
98
|
+
);
|
|
99
|
+
element.setAttribute("onclick", funcBody);
|
|
100
|
+
}
|
|
101
|
+
function propagateUTMParameters() {
|
|
102
|
+
const utmParams = getCurrentUTMParams();
|
|
103
|
+
if (Object.keys(utmParams).length === 0) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const currentHost = window.location.hostname;
|
|
107
|
+
const elements = document.querySelectorAll(config.selectors.join(", "));
|
|
108
|
+
elements.forEach((element) => {
|
|
109
|
+
if (hasUTMException(element)) {
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
let url = null;
|
|
113
|
+
if (element instanceof HTMLAnchorElement && element.href) {
|
|
114
|
+
url = element.href;
|
|
115
|
+
} else if (element instanceof HTMLElement && element.dataset.href) {
|
|
116
|
+
url = element.dataset.href;
|
|
117
|
+
} else if (element instanceof HTMLElement && element.onclick) {
|
|
118
|
+
const onclickStr = element.onclick.toString();
|
|
119
|
+
url = extractURLFromOnclick(onclickStr);
|
|
120
|
+
}
|
|
121
|
+
if (url && isInternalLink(url, currentHost)) {
|
|
122
|
+
const updatedURL = addUTMToURL(url, utmParams);
|
|
123
|
+
if (element instanceof HTMLAnchorElement && element.href) {
|
|
124
|
+
element.href = updatedURL;
|
|
125
|
+
} else if (element instanceof HTMLElement && element.dataset.href) {
|
|
126
|
+
element.dataset.href = updatedURL;
|
|
127
|
+
}
|
|
128
|
+
if (element instanceof HTMLElement && element.onclick && url !== updatedURL) {
|
|
129
|
+
updateOnclickAttribute(element, url, updatedURL);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
console.log(`UTM parameters propagated to internal links:`, utmParams);
|
|
134
|
+
}
|
|
135
|
+
function observeNewContent() {
|
|
136
|
+
const utmParams = getCurrentUTMParams();
|
|
137
|
+
if (Object.keys(utmParams).length === 0) {
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
const observer = new MutationObserver(function(mutations) {
|
|
141
|
+
mutations.forEach(function(mutation) {
|
|
142
|
+
mutation.addedNodes.forEach(function(node) {
|
|
143
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
144
|
+
const element = node;
|
|
145
|
+
if (element.matches && element.matches(config.selectors.join(", "))) {
|
|
146
|
+
processElement(element, utmParams);
|
|
147
|
+
}
|
|
148
|
+
if ("querySelectorAll" in element) {
|
|
149
|
+
const links = element.querySelectorAll(config.selectors.join(", "));
|
|
150
|
+
links.forEach((link) => processElement(link, utmParams));
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
observer.observe(document.body, {
|
|
157
|
+
childList: true,
|
|
158
|
+
subtree: true
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
function processElement(element, utmParams) {
|
|
162
|
+
if (hasUTMException(element)) {
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
const currentHost = window.location.hostname;
|
|
166
|
+
let url = null;
|
|
167
|
+
if (element instanceof HTMLAnchorElement && element.href) {
|
|
168
|
+
url = element.href;
|
|
169
|
+
} else if (element instanceof HTMLElement && element.dataset.href) {
|
|
170
|
+
url = element.dataset.href;
|
|
171
|
+
}
|
|
172
|
+
if (url && isInternalLink(url, currentHost)) {
|
|
173
|
+
const updatedURL = addUTMToURL(url, utmParams);
|
|
174
|
+
if (element instanceof HTMLAnchorElement && element.href) {
|
|
175
|
+
element.href = updatedURL;
|
|
176
|
+
} else if (element instanceof HTMLElement && element.dataset.href) {
|
|
177
|
+
element.dataset.href = updatedURL;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
function init() {
|
|
182
|
+
if (document.readyState === "loading") {
|
|
183
|
+
document.addEventListener("DOMContentLoaded", function() {
|
|
184
|
+
propagateUTMParameters();
|
|
185
|
+
observeNewContent();
|
|
186
|
+
});
|
|
187
|
+
} else {
|
|
188
|
+
propagateUTMParameters();
|
|
189
|
+
observeNewContent();
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
init();
|
|
193
|
+
})();
|
|
194
|
+
})();
|
|
195
|
+
//# sourceMappingURL=utm-links.js.map
|
package/dist/utils/sample.js
CHANGED
|
@@ -1 +1,18 @@
|
|
|
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
|
+
console.log("Live reload disabled: not running on localhost");
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// src/utils/sample.ts
|
|
14
|
+
function logMessage(message) {
|
|
15
|
+
console.log("Logged message:", message);
|
|
16
|
+
}
|
|
17
|
+
})();
|
|
18
|
+
//# sourceMappingURL=sample.js.map
|
|
@@ -1 +1,222 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
(() => {
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __esm = (fn, res) => function __init() {
|
|
10
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
11
|
+
};
|
|
12
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
13
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
+
mod
|
|
30
|
+
));
|
|
31
|
+
|
|
32
|
+
// bin/live-reload.js
|
|
33
|
+
var init_live_reload = __esm({
|
|
34
|
+
"bin/live-reload.js"() {
|
|
35
|
+
"use strict";
|
|
36
|
+
if (window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1") {
|
|
37
|
+
new EventSource(`${"http://localhost:3000"}/esbuild`).addEventListener(
|
|
38
|
+
"change",
|
|
39
|
+
() => location.reload()
|
|
40
|
+
);
|
|
41
|
+
} else {
|
|
42
|
+
console.log("Live reload disabled: not running on localhost");
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
// node_modules/.pnpm/@fynd-design-engineering+web-utils@1.0.1/node_modules/@fynd-design-engineering/web-utils/dist/window/get-path-segments.js
|
|
48
|
+
var require_get_path_segments = __commonJS({
|
|
49
|
+
"node_modules/.pnpm/@fynd-design-engineering+web-utils@1.0.1/node_modules/@fynd-design-engineering/web-utils/dist/window/get-path-segments.js"(exports) {
|
|
50
|
+
"use strict";
|
|
51
|
+
init_live_reload();
|
|
52
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53
|
+
exports.getPathSegments = getPathSegments;
|
|
54
|
+
function getPathSegments() {
|
|
55
|
+
const pathSegments = window.location.pathname.replace(/^\//, "").split("/");
|
|
56
|
+
return pathSegments.filter((segment) => segment !== "");
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// node_modules/.pnpm/@fynd-design-engineering+web-utils@1.0.1/node_modules/@fynd-design-engineering/web-utils/dist/validations/localhost.js
|
|
62
|
+
var require_localhost = __commonJS({
|
|
63
|
+
"node_modules/.pnpm/@fynd-design-engineering+web-utils@1.0.1/node_modules/@fynd-design-engineering/web-utils/dist/validations/localhost.js"(exports) {
|
|
64
|
+
"use strict";
|
|
65
|
+
init_live_reload();
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.checkForLocalhostUrls = checkForLocalhostUrls2;
|
|
68
|
+
exports.enableAutomaticLocalhostCheck = enableAutomaticLocalhostCheck;
|
|
69
|
+
function checkForLocalhostUrls2(options = {}) {
|
|
70
|
+
const { checkLinks = true, checkImages = true, checkScripts = true, checkTextContent = true } = options;
|
|
71
|
+
const localhostPatterns = [
|
|
72
|
+
/localhost/gi,
|
|
73
|
+
/127\.0\.0\.1/g,
|
|
74
|
+
/0\.0\.0\.0/g,
|
|
75
|
+
/\b(?:https?:\/\/)?(?:www\.)?localhost(?::\d+)?(?:\/[^\s]*)?/gi,
|
|
76
|
+
/\b(?:https?:\/\/)?127\.0\.0\.1(?::\d+)?(?:\/[^\s]*)?/g,
|
|
77
|
+
/\b(?:https?:\/\/)?0\.0\.0\.0(?::\d+)?(?:\/[^\s]*)?/g
|
|
78
|
+
];
|
|
79
|
+
const warnings = [];
|
|
80
|
+
const foundUrls = /* @__PURE__ */ new Set();
|
|
81
|
+
if (checkLinks) {
|
|
82
|
+
const links = document.querySelectorAll("a[href], link[href]");
|
|
83
|
+
links.forEach((element) => {
|
|
84
|
+
const href = element.getAttribute("href");
|
|
85
|
+
if (href && localhostPatterns.some((pattern) => pattern.test(href))) {
|
|
86
|
+
foundUrls.add(href);
|
|
87
|
+
warnings.push(`Found localhost URL in ${element.tagName.toLowerCase()} href: ${href}`);
|
|
88
|
+
}
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
if (checkImages) {
|
|
92
|
+
const images = document.querySelectorAll("img[src]");
|
|
93
|
+
images.forEach((element) => {
|
|
94
|
+
const src = element.getAttribute("src");
|
|
95
|
+
if (src && localhostPatterns.some((pattern) => pattern.test(src))) {
|
|
96
|
+
foundUrls.add(src);
|
|
97
|
+
warnings.push(`Found localhost URL in img src: ${src}`);
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
if (checkScripts) {
|
|
102
|
+
const scripts = document.querySelectorAll("script[src]");
|
|
103
|
+
scripts.forEach((element) => {
|
|
104
|
+
const src = element.getAttribute("src");
|
|
105
|
+
if (src && localhostPatterns.some((pattern) => pattern.test(src))) {
|
|
106
|
+
foundUrls.add(src);
|
|
107
|
+
warnings.push(`Found localhost URL in script src: ${src}`);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
if (checkTextContent) {
|
|
112
|
+
const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_TEXT, null);
|
|
113
|
+
let node;
|
|
114
|
+
while (node = walker.nextNode()) {
|
|
115
|
+
const textContent = node.textContent || "";
|
|
116
|
+
localhostPatterns.forEach((pattern) => {
|
|
117
|
+
const matches = textContent.match(pattern);
|
|
118
|
+
if (matches) {
|
|
119
|
+
matches.forEach((match) => {
|
|
120
|
+
foundUrls.add(match);
|
|
121
|
+
warnings.push(`Found localhost URL in text content: ${match}`);
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
if (warnings.length > 0) {
|
|
128
|
+
console.group("\u{1F6A8} LOCALHOST URLs DETECTED - PRODUCTION WARNING");
|
|
129
|
+
console.warn("\u26A0\uFE0F CRITICAL: Localhost URLs found in production environment!");
|
|
130
|
+
console.warn(`\u{1F4CA} Total issues found: ${warnings.length}`);
|
|
131
|
+
console.warn(`\u{1F517} Unique URLs: ${foundUrls.size}`);
|
|
132
|
+
console.log("");
|
|
133
|
+
warnings.forEach((warning, index) => {
|
|
134
|
+
console.warn(`${index + 1}. ${warning}`);
|
|
135
|
+
});
|
|
136
|
+
console.log("");
|
|
137
|
+
console.warn("\u{1F527} Please replace all localhost URLs with production URLs before deployment.");
|
|
138
|
+
console.warn("\u{1F4DA} This can cause broken links, missing resources, and poor user experience.");
|
|
139
|
+
console.groupEnd();
|
|
140
|
+
if (false) {
|
|
141
|
+
throw new Error(`Production build contains ${foundUrls.size} localhost URLs. Please fix before deployment.`);
|
|
142
|
+
}
|
|
143
|
+
} else {
|
|
144
|
+
console.log("\u2705 No localhost URLs detected in the document.");
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
function enableAutomaticLocalhostCheck() {
|
|
148
|
+
if (document.readyState === "loading") {
|
|
149
|
+
document.addEventListener("DOMContentLoaded", () => checkForLocalhostUrls2());
|
|
150
|
+
} else {
|
|
151
|
+
checkForLocalhostUrls2();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
|
|
157
|
+
// node_modules/.pnpm/@fynd-design-engineering+web-utils@1.0.1/node_modules/@fynd-design-engineering/web-utils/dist/index.js
|
|
158
|
+
var require_dist = __commonJS({
|
|
159
|
+
"node_modules/.pnpm/@fynd-design-engineering+web-utils@1.0.1/node_modules/@fynd-design-engineering/web-utils/dist/index.js"(exports) {
|
|
160
|
+
"use strict";
|
|
161
|
+
init_live_reload();
|
|
162
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
163
|
+
if (k2 === void 0) k2 = k;
|
|
164
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
165
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
166
|
+
desc = { enumerable: true, get: function() {
|
|
167
|
+
return m[k];
|
|
168
|
+
} };
|
|
169
|
+
}
|
|
170
|
+
Object.defineProperty(o, k2, desc);
|
|
171
|
+
} : function(o, m, k, k2) {
|
|
172
|
+
if (k2 === void 0) k2 = k;
|
|
173
|
+
o[k2] = m[k];
|
|
174
|
+
});
|
|
175
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? function(o, v) {
|
|
176
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
177
|
+
} : function(o, v) {
|
|
178
|
+
o["default"] = v;
|
|
179
|
+
});
|
|
180
|
+
var __importStar = exports && exports.__importStar || /* @__PURE__ */ function() {
|
|
181
|
+
var ownKeys = function(o) {
|
|
182
|
+
ownKeys = Object.getOwnPropertyNames || function(o2) {
|
|
183
|
+
var ar = [];
|
|
184
|
+
for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
|
|
185
|
+
return ar;
|
|
186
|
+
};
|
|
187
|
+
return ownKeys(o);
|
|
188
|
+
};
|
|
189
|
+
return function(mod) {
|
|
190
|
+
if (mod && mod.__esModule) return mod;
|
|
191
|
+
var result = {};
|
|
192
|
+
if (mod != null) {
|
|
193
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
194
|
+
}
|
|
195
|
+
__setModuleDefault(result, mod);
|
|
196
|
+
return result;
|
|
197
|
+
};
|
|
198
|
+
}();
|
|
199
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
200
|
+
exports.navigation = exports.validations = exports.enableAutomaticLocalhostCheck = exports.checkForLocalhostUrls = exports.getPathSegments = void 0;
|
|
201
|
+
var get_path_segments_1 = require_get_path_segments();
|
|
202
|
+
Object.defineProperty(exports, "getPathSegments", { enumerable: true, get: function() {
|
|
203
|
+
return get_path_segments_1.getPathSegments;
|
|
204
|
+
} });
|
|
205
|
+
var localhost_1 = require_localhost();
|
|
206
|
+
Object.defineProperty(exports, "checkForLocalhostUrls", { enumerable: true, get: function() {
|
|
207
|
+
return localhost_1.checkForLocalhostUrls;
|
|
208
|
+
} });
|
|
209
|
+
Object.defineProperty(exports, "enableAutomaticLocalhostCheck", { enumerable: true, get: function() {
|
|
210
|
+
return localhost_1.enableAutomaticLocalhostCheck;
|
|
211
|
+
} });
|
|
212
|
+
exports.validations = __importStar(require_localhost());
|
|
213
|
+
exports.navigation = __importStar(require_get_path_segments());
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
// src/validations/localhost.ts
|
|
218
|
+
init_live_reload();
|
|
219
|
+
var import_web_utils = __toESM(require_dist(), 1);
|
|
220
|
+
(0, import_web_utils.checkForLocalhostUrls)();
|
|
221
|
+
})();
|
|
222
|
+
//# sourceMappingURL=localhost.js.map
|
package/package.json
CHANGED