@stackframe/dashboard-ui-components 2.8.85 → 2.8.86

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.
@@ -5181,6 +5181,49 @@ This is likely an error in Stack. Please make sure you are running the newest ve
5181
5181
  knownErrorCodes.add(KnownError2.errorCode);
5182
5182
  }
5183
5183
 
5184
+ // ../stack-shared/dist/esm/utils/bytes.js
5185
+ function decodeBase64(input) {
5186
+ return new Uint8Array(atob(input).split("").map((char) => char.charCodeAt(0)));
5187
+ }
5188
+ function isBase64(input) {
5189
+ return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input);
5190
+ }
5191
+
5192
+ // ../stack-shared/dist/esm/utils/urls.js
5193
+ function createUrlIfValid(...args) {
5194
+ try {
5195
+ return new URL(...args);
5196
+ } catch (e40) {
5197
+ return null;
5198
+ }
5199
+ }
5200
+ function isValidUrl(url) {
5201
+ return !!createUrlIfValid(url);
5202
+ }
5203
+ function isValidHostname(hostname) {
5204
+ if (!hostname || hostname.startsWith(".") || hostname.endsWith(".") || hostname.includes("..")) return false;
5205
+ const url = createUrlIfValid(`https://${hostname}`);
5206
+ if (!url) return false;
5207
+ return url.hostname === hostname;
5208
+ }
5209
+ function isValidHostnameWithWildcards(hostname) {
5210
+ if (!hostname) return false;
5211
+ if (!hostname.includes("*")) return isValidHostname(hostname);
5212
+ if (hostname.startsWith(".") || hostname.endsWith(".")) return false;
5213
+ if (hostname.includes("..")) return false;
5214
+ const testHostname = hostname.replace(/\*+/g, "wildcard");
5215
+ if (!/^[a-zA-Z0-9.-]+$/.test(testHostname)) return false;
5216
+ const segments = hostname.split(/\*+/);
5217
+ for (let i = 0; i < segments.length; i++) {
5218
+ const segment = segments[i];
5219
+ if (segment === "") continue;
5220
+ if (i === 0 && segment.startsWith(".")) return false;
5221
+ if (i === segments.length - 1 && segment.endsWith(".")) return false;
5222
+ if (segment.includes("..")) return false;
5223
+ }
5224
+ return true;
5225
+ }
5226
+
5184
5227
  // ../../node_modules/.pnpm/yup@1.7.1/node_modules/yup/index.esm.js
5185
5228
  var import_property_expr = __toESM(require_property_expr());
5186
5229
  var import_tiny_case = __toESM(require_tiny_case());
@@ -7486,14 +7529,6 @@ attempted value: ${formattedValue}
7486
7529
  schemaType.prototype[name] = fn;
7487
7530
  }
7488
7531
 
7489
- // ../stack-shared/dist/esm/utils/bytes.js
7490
- function decodeBase64(input) {
7491
- return new Uint8Array(atob(input).split("").map((char) => char.charCodeAt(0)));
7492
- }
7493
- function isBase64(input) {
7494
- return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(input);
7495
- }
7496
-
7497
7532
  // ../stack-shared/dist/esm/utils/currency-constants.js
7498
7533
  var SUPPORTED_CURRENCIES = [
7499
7534
  {
@@ -7570,41 +7605,6 @@ attempted value: ${formattedValue}
7570
7605
  return /^[A-Z]{2}$/.test(normalized);
7571
7606
  }
7572
7607
 
7573
- // ../stack-shared/dist/esm/utils/urls.js
7574
- function createUrlIfValid(...args) {
7575
- try {
7576
- return new URL(...args);
7577
- } catch (e40) {
7578
- return null;
7579
- }
7580
- }
7581
- function isValidUrl(url) {
7582
- return !!createUrlIfValid(url);
7583
- }
7584
- function isValidHostname(hostname) {
7585
- if (!hostname || hostname.startsWith(".") || hostname.endsWith(".") || hostname.includes("..")) return false;
7586
- const url = createUrlIfValid(`https://${hostname}`);
7587
- if (!url) return false;
7588
- return url.hostname === hostname;
7589
- }
7590
- function isValidHostnameWithWildcards(hostname) {
7591
- if (!hostname) return false;
7592
- if (!hostname.includes("*")) return isValidHostname(hostname);
7593
- if (hostname.startsWith(".") || hostname.endsWith(".")) return false;
7594
- if (hostname.includes("..")) return false;
7595
- const testHostname = hostname.replace(/\*+/g, "wildcard");
7596
- if (!/^[a-zA-Z0-9.-]+$/.test(testHostname)) return false;
7597
- const segments = hostname.split(/\*+/);
7598
- for (let i = 0; i < segments.length; i++) {
7599
- const segment = segments[i];
7600
- if (segment === "") continue;
7601
- if (i === 0 && segment.startsWith(".")) return false;
7602
- if (i === segments.length - 1 && segment.endsWith(".")) return false;
7603
- if (segment.includes("..")) return false;
7604
- }
7605
- return true;
7606
- }
7607
-
7608
7608
  // ../stack-shared/dist/esm/utils/uuids.js
7609
7609
  function isUuid(str) {
7610
7610
  return /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(str);