@almadar/ui 2.48.2 → 2.48.3

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.
@@ -47,7 +47,6 @@ var core = require('@almadar/core');
47
47
  require('@tanstack/react-query');
48
48
  var runtime = require('@almadar/runtime');
49
49
 
50
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
51
50
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
52
51
 
53
52
  function _interopNamespace(e) {
@@ -2869,8 +2868,8 @@ var init_Avl3DLabel = __esm({
2869
2868
  // lib/logger.ts
2870
2869
  function getViteEnv(key) {
2871
2870
  try {
2872
- const meta = ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });
2873
- return meta?.env?.[key];
2871
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
2872
+ return meta ? meta.env?.[key] : void 0;
2874
2873
  } catch {
2875
2874
  return void 0;
2876
2875
  }
package/dist/avl/index.js CHANGED
@@ -2821,8 +2821,8 @@ var init_Avl3DLabel = __esm({
2821
2821
  // lib/logger.ts
2822
2822
  function getViteEnv(key) {
2823
2823
  try {
2824
- const meta = import.meta;
2825
- return meta?.env?.[key];
2824
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
2825
+ return meta ? meta.env?.[key] : void 0;
2826
2826
  } catch {
2827
2827
  return void 0;
2828
2828
  }
@@ -39,7 +39,6 @@ var patterns = require('@almadar/patterns');
39
39
  var reactRouterDom = require('react-router-dom');
40
40
  var reactQuery = require('@tanstack/react-query');
41
41
 
42
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
43
42
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
44
43
 
45
44
  function _interopNamespace(e) {
@@ -99,8 +98,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
99
98
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
100
99
  function getViteEnv(key) {
101
100
  try {
102
- const meta = ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });
103
- return meta?.env?.[key];
101
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
102
+ return meta ? meta.env?.[key] : void 0;
104
103
  } catch {
105
104
  return void 0;
106
105
  }
@@ -52,8 +52,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
52
52
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
53
53
  function getViteEnv(key) {
54
54
  try {
55
- const meta = import.meta;
56
- return meta?.env?.[key];
55
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
56
+ return meta ? meta.env?.[key] : void 0;
57
57
  } catch {
58
58
  return void 0;
59
59
  }
@@ -14,7 +14,6 @@ var clsx = require('clsx');
14
14
  var tailwindMerge = require('tailwind-merge');
15
15
  var postprocessing = require('@react-three/postprocessing');
16
16
 
17
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
18
17
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
19
18
 
20
19
  function _interopNamespace(e) {
@@ -1383,8 +1382,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
1383
1382
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
1384
1383
  function getViteEnv(key) {
1385
1384
  try {
1386
- const meta = ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });
1387
- return meta?.env?.[key];
1385
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
1386
+ return meta ? meta.env?.[key] : void 0;
1388
1387
  } catch {
1389
1388
  return void 0;
1390
1389
  }
@@ -1358,8 +1358,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
1358
1358
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
1359
1359
  function getViteEnv(key) {
1360
1360
  try {
1361
- const meta = import.meta;
1362
- return meta?.env?.[key];
1361
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
1362
+ return meta ? meta.env?.[key] : void 0;
1363
1363
  } catch {
1364
1364
  return void 0;
1365
1365
  }
@@ -4,7 +4,6 @@ var React4 = require('react');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var LucideIcons = require('lucide-react');
6
6
 
7
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
8
7
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
8
 
10
9
  function _interopNamespace(e) {
@@ -2514,8 +2513,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
2514
2513
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
2515
2514
  function getViteEnv(key) {
2516
2515
  try {
2517
- const meta = ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });
2518
- return meta?.env?.[key];
2516
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
2517
+ return meta ? meta.env?.[key] : void 0;
2519
2518
  } catch {
2520
2519
  return void 0;
2521
2520
  }
@@ -2489,8 +2489,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
2489
2489
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
2490
2490
  function getViteEnv(key) {
2491
2491
  try {
2492
- const meta = import.meta;
2493
- return meta?.env?.[key];
2492
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
2493
+ return meta ? meta.env?.[key] : void 0;
2494
2494
  } catch {
2495
2495
  return void 0;
2496
2496
  }
@@ -5,7 +5,6 @@ var providers = require('@almadar/ui/providers');
5
5
  require('react/jsx-runtime');
6
6
  var reactQuery = require('@tanstack/react-query');
7
7
 
8
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
9
8
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
10
9
 
11
10
  var React2__default = /*#__PURE__*/_interopDefault(React2);
@@ -880,8 +879,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
880
879
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
881
880
  function getViteEnv(key) {
882
881
  try {
883
- const meta = ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });
884
- return meta?.env?.[key];
882
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
883
+ return meta ? meta.env?.[key] : void 0;
885
884
  } catch {
886
885
  return void 0;
887
886
  }
@@ -873,8 +873,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
873
873
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
874
874
  function getViteEnv(key) {
875
875
  try {
876
- const meta = import.meta;
877
- return meta?.env?.[key];
876
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
877
+ return meta ? meta.env?.[key] : void 0;
878
878
  } catch {
879
879
  return void 0;
880
880
  }
@@ -3,7 +3,6 @@
3
3
  var clsx = require('clsx');
4
4
  var tailwindMerge = require('tailwind-merge');
5
5
 
6
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
7
6
  function cn(...inputs) {
8
7
  return tailwindMerge.twMerge(clsx.clsx(inputs));
9
8
  }
@@ -434,8 +433,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
434
433
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
435
434
  function getViteEnv(key) {
436
435
  try {
437
- const meta = ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });
438
- return meta?.env?.[key];
436
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
437
+ return meta ? meta.env?.[key] : void 0;
439
438
  } catch {
440
439
  return void 0;
441
440
  }
package/dist/lib/index.js CHANGED
@@ -431,8 +431,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
431
431
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
432
432
  function getViteEnv(key) {
433
433
  try {
434
- const meta = import.meta;
435
- return meta?.env?.[key];
434
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
435
+ return meta ? meta.env?.[key] : void 0;
436
436
  } catch {
437
437
  return void 0;
438
438
  }
@@ -4,7 +4,6 @@ var React5 = require('react');
4
4
  var jsxRuntime = require('react/jsx-runtime');
5
5
  var LucideIcons = require('lucide-react');
6
6
 
7
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
8
7
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
9
8
 
10
9
  function _interopNamespace(e) {
@@ -2514,8 +2513,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
2514
2513
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
2515
2514
  function getViteEnv(key) {
2516
2515
  try {
2517
- const meta = ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });
2518
- return meta?.env?.[key];
2516
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
2517
+ return meta ? meta.env?.[key] : void 0;
2519
2518
  } catch {
2520
2519
  return void 0;
2521
2520
  }
@@ -2489,8 +2489,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
2489
2489
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
2490
2490
  function getViteEnv(key) {
2491
2491
  try {
2492
- const meta = import.meta;
2493
- return meta?.env?.[key];
2492
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
2493
+ return meta ? meta.env?.[key] : void 0;
2494
2494
  } catch {
2495
2495
  return void 0;
2496
2496
  }
@@ -38,7 +38,6 @@ var langToml = require('react-syntax-highlighter/dist/esm/languages/prism/toml')
38
38
  var langGo = require('react-syntax-highlighter/dist/esm/languages/prism/go');
39
39
  var langGraphql = require('react-syntax-highlighter/dist/esm/languages/prism/graphql');
40
40
 
41
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
42
41
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
43
42
 
44
43
  function _interopNamespace(e) {
@@ -325,8 +324,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
325
324
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
326
325
  function getViteEnv(key) {
327
326
  try {
328
- const meta = ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });
329
- return meta?.env?.[key];
327
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
328
+ return meta ? meta.env?.[key] : void 0;
330
329
  } catch {
331
330
  return void 0;
332
331
  }
@@ -278,8 +278,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
278
278
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
279
279
  function getViteEnv(key) {
280
280
  try {
281
- const meta = import.meta;
282
- return meta?.env?.[key];
281
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
282
+ return meta ? meta.env?.[key] : void 0;
283
283
  } catch {
284
284
  return void 0;
285
285
  }
@@ -41,7 +41,6 @@ var langToml = require('react-syntax-highlighter/dist/esm/languages/prism/toml')
41
41
  var langGo = require('react-syntax-highlighter/dist/esm/languages/prism/go');
42
42
  var langGraphql = require('react-syntax-highlighter/dist/esm/languages/prism/graphql');
43
43
 
44
- var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
45
44
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
46
45
 
47
46
  function _interopNamespace(e) {
@@ -98,8 +97,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
98
97
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
99
98
  function getViteEnv(key) {
100
99
  try {
101
- const meta = ({ url: (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href)) });
102
- return meta?.env?.[key];
100
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
101
+ return meta ? meta.env?.[key] : void 0;
103
102
  } catch {
104
103
  return void 0;
105
104
  }
@@ -51,8 +51,8 @@ var ENV = typeof process !== "undefined" && process.env ? process.env : {};
51
51
  var VITE_ENV = typeof globalThis !== "undefined" && globalThis.__vite_env__ ? globalThis.__vite_env__ : {};
52
52
  function getViteEnv(key) {
53
53
  try {
54
- const meta = import.meta;
55
- return meta?.env?.[key];
54
+ const meta = (0, eval)('typeof import.meta !== "undefined" && import.meta');
55
+ return meta ? meta.env?.[key] : void 0;
56
56
  } catch {
57
57
  return void 0;
58
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/ui",
3
- "version": "2.48.2",
3
+ "version": "2.48.3",
4
4
  "description": "React UI components, hooks, and providers for Almadar",
5
5
  "type": "module",
6
6
  "main": "./dist/components/index.js",