@almadar/ui 2.47.1 → 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.
- package/dist/avl/index.cjs +10 -10
- package/dist/avl/index.js +10 -9
- package/dist/components/index.cjs +2 -3
- package/dist/components/index.js +2 -2
- package/dist/components/molecules/DataGrid.d.ts +7 -0
- package/dist/components/molecules/DataList.d.ts +7 -0
- package/dist/components/organisms/game/three/index.cjs +2 -3
- package/dist/components/organisms/game/three/index.js +2 -2
- package/dist/docs/index.cjs +2 -3
- package/dist/docs/index.js +2 -2
- package/dist/hooks/index.cjs +2 -3
- package/dist/hooks/index.js +2 -2
- package/dist/lib/index.cjs +2 -3
- package/dist/lib/index.js +2 -2
- package/dist/marketing/index.cjs +2 -3
- package/dist/marketing/index.js +2 -2
- package/dist/providers/index.cjs +2 -3
- package/dist/providers/index.js +2 -2
- package/dist/runtime/index.cjs +10 -10
- package/dist/runtime/index.js +10 -9
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -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 = (
|
|
2873
|
-
return meta
|
|
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
|
}
|
|
@@ -47219,15 +47218,16 @@ function SchemaRunner({ schema, serverUrl, mockData, pageName, onNavigate }) {
|
|
|
47219
47218
|
return orbitals.filter((o) => typeof o.name === "string").map((o) => o.name);
|
|
47220
47219
|
}, [schema]);
|
|
47221
47220
|
const entityStore = useEntityStore();
|
|
47222
|
-
React125.
|
|
47223
|
-
|
|
47224
|
-
|
|
47225
|
-
|
|
47226
|
-
|
|
47227
|
-
|
|
47221
|
+
const seededRef = React125.useRef("");
|
|
47222
|
+
const mockKey = mockData ? Object.keys(mockData).sort().join(",") : "";
|
|
47223
|
+
if (!serverUrl && mockData && seededRef.current !== mockKey) {
|
|
47224
|
+
seededRef.current = mockKey;
|
|
47225
|
+
for (const [entityType, records] of Object.entries(mockData)) {
|
|
47226
|
+
if (Array.isArray(records)) {
|
|
47227
|
+
entityStore.setAll(entityType, records);
|
|
47228
47228
|
}
|
|
47229
47229
|
}
|
|
47230
|
-
}
|
|
47230
|
+
}
|
|
47231
47231
|
const inner = /* @__PURE__ */ jsxRuntime.jsx(VerificationProvider, { enabled: true, children: /* @__PURE__ */ jsxRuntime.jsx(SlotsProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(EntitySchemaProvider, { entities: Array.from(allEntities.values()), children: [
|
|
47232
47232
|
/* @__PURE__ */ jsxRuntime.jsx(TraitInitializer, { traits: allPageTraits, orbitalNames: serverUrl ? orbitalNames : void 0, onNavigate }),
|
|
47233
47233
|
/* @__PURE__ */ jsxRuntime.jsx(SlotBridge, {}),
|
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
|
|
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
|
}
|
|
@@ -47171,15 +47171,16 @@ function SchemaRunner({ schema, serverUrl, mockData, pageName, onNavigate }) {
|
|
|
47171
47171
|
return orbitals.filter((o) => typeof o.name === "string").map((o) => o.name);
|
|
47172
47172
|
}, [schema]);
|
|
47173
47173
|
const entityStore = useEntityStore();
|
|
47174
|
-
|
|
47175
|
-
|
|
47176
|
-
|
|
47177
|
-
|
|
47178
|
-
|
|
47179
|
-
|
|
47174
|
+
const seededRef = useRef("");
|
|
47175
|
+
const mockKey = mockData ? Object.keys(mockData).sort().join(",") : "";
|
|
47176
|
+
if (!serverUrl && mockData && seededRef.current !== mockKey) {
|
|
47177
|
+
seededRef.current = mockKey;
|
|
47178
|
+
for (const [entityType, records] of Object.entries(mockData)) {
|
|
47179
|
+
if (Array.isArray(records)) {
|
|
47180
|
+
entityStore.setAll(entityType, records);
|
|
47180
47181
|
}
|
|
47181
47182
|
}
|
|
47182
|
-
}
|
|
47183
|
+
}
|
|
47183
47184
|
const inner = /* @__PURE__ */ jsx(VerificationProvider, { enabled: true, children: /* @__PURE__ */ jsx(SlotsProvider, { children: /* @__PURE__ */ jsxs(EntitySchemaProvider, { entities: Array.from(allEntities.values()), children: [
|
|
47184
47185
|
/* @__PURE__ */ jsx(TraitInitializer, { traits: allPageTraits, orbitalNames: serverUrl ? orbitalNames : void 0, onNavigate }),
|
|
47185
47186
|
/* @__PURE__ */ jsx(SlotBridge, {}),
|
|
@@ -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 = (
|
|
103
|
-
return meta
|
|
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
|
}
|
package/dist/components/index.js
CHANGED
|
@@ -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
|
|
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
|
}
|
|
@@ -69,6 +69,13 @@ export interface DataGridProps {
|
|
|
69
69
|
hasMore?: boolean;
|
|
70
70
|
/** Render prop for custom per-item content. When provided, `fields` and `itemActions` are ignored. */
|
|
71
71
|
children?: (item: Record<string, unknown>, index: number) => React.ReactNode;
|
|
72
|
+
/**
|
|
73
|
+
* Per-item render function (schema-level alias for children render prop).
|
|
74
|
+
* In .orb schemas: ["fn", "item", { pattern tree with @item.field bindings }]
|
|
75
|
+
* The compiler converts this to the children render prop.
|
|
76
|
+
* @deprecated Use children render prop in React code. This prop exists for pattern registry sync.
|
|
77
|
+
*/
|
|
78
|
+
renderItem?: (item: Record<string, unknown>, index: number) => React.ReactNode;
|
|
72
79
|
/** Max items to show before "Show More" button. Defaults to 0 (disabled). */
|
|
73
80
|
pageSize?: number;
|
|
74
81
|
}
|
|
@@ -89,6 +89,13 @@ export interface DataListProps {
|
|
|
89
89
|
hasMore?: boolean;
|
|
90
90
|
/** Render prop for custom per-item content. When provided, `fields` and `itemActions` are ignored. */
|
|
91
91
|
children?: (item: Record<string, unknown>, index: number) => React.ReactNode;
|
|
92
|
+
/**
|
|
93
|
+
* Per-item render function (schema-level alias for children render prop).
|
|
94
|
+
* In .orb schemas: ["fn", "item", { pattern tree with @item.field bindings }]
|
|
95
|
+
* The compiler converts this to the children render prop.
|
|
96
|
+
* @deprecated Use children render prop in React code. This prop exists for pattern registry sync.
|
|
97
|
+
*/
|
|
98
|
+
renderItem?: (item: Record<string, unknown>, index: number) => React.ReactNode;
|
|
92
99
|
/** Max items to show before "Show More" button. Defaults to 5. Set to 0 to disable. */
|
|
93
100
|
pageSize?: number;
|
|
94
101
|
}
|
|
@@ -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 = (
|
|
1387
|
-
return meta
|
|
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
|
|
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
|
}
|
package/dist/docs/index.cjs
CHANGED
|
@@ -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 = (
|
|
2518
|
-
return meta
|
|
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
|
}
|
package/dist/docs/index.js
CHANGED
|
@@ -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
|
|
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
|
}
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -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 = (
|
|
884
|
-
return meta
|
|
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
|
}
|
package/dist/hooks/index.js
CHANGED
|
@@ -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
|
|
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
|
}
|
package/dist/lib/index.cjs
CHANGED
|
@@ -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 = (
|
|
438
|
-
return meta
|
|
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
|
|
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
|
}
|
package/dist/marketing/index.cjs
CHANGED
|
@@ -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 = (
|
|
2518
|
-
return meta
|
|
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
|
}
|
package/dist/marketing/index.js
CHANGED
|
@@ -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
|
|
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
|
}
|
package/dist/providers/index.cjs
CHANGED
|
@@ -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 = (
|
|
329
|
-
return meta
|
|
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
|
}
|
package/dist/providers/index.js
CHANGED
|
@@ -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
|
|
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
|
}
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -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 = (
|
|
102
|
-
return meta
|
|
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
|
}
|
|
@@ -33643,15 +33642,16 @@ function SchemaRunner({ schema, serverUrl, mockData, pageName, onNavigate }) {
|
|
|
33643
33642
|
return orbitals.filter((o) => typeof o.name === "string").map((o) => o.name);
|
|
33644
33643
|
}, [schema]);
|
|
33645
33644
|
const entityStore = useEntityStore();
|
|
33646
|
-
React117.
|
|
33647
|
-
|
|
33648
|
-
|
|
33649
|
-
|
|
33650
|
-
|
|
33651
|
-
|
|
33645
|
+
const seededRef = React117.useRef("");
|
|
33646
|
+
const mockKey = mockData ? Object.keys(mockData).sort().join(",") : "";
|
|
33647
|
+
if (!serverUrl && mockData && seededRef.current !== mockKey) {
|
|
33648
|
+
seededRef.current = mockKey;
|
|
33649
|
+
for (const [entityType, records] of Object.entries(mockData)) {
|
|
33650
|
+
if (Array.isArray(records)) {
|
|
33651
|
+
entityStore.setAll(entityType, records);
|
|
33652
33652
|
}
|
|
33653
33653
|
}
|
|
33654
|
-
}
|
|
33654
|
+
}
|
|
33655
33655
|
const inner = /* @__PURE__ */ jsxRuntime.jsx(VerificationProvider, { enabled: true, children: /* @__PURE__ */ jsxRuntime.jsx(SlotsProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(EntitySchemaProvider, { entities: Array.from(allEntities.values()), children: [
|
|
33656
33656
|
/* @__PURE__ */ jsxRuntime.jsx(TraitInitializer, { traits: allPageTraits, orbitalNames: serverUrl ? orbitalNames : void 0, onNavigate }),
|
|
33657
33657
|
/* @__PURE__ */ jsxRuntime.jsx(SlotBridge, {}),
|
package/dist/runtime/index.js
CHANGED
|
@@ -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
|
|
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
|
}
|
|
@@ -33596,15 +33596,16 @@ function SchemaRunner({ schema, serverUrl, mockData, pageName, onNavigate }) {
|
|
|
33596
33596
|
return orbitals.filter((o) => typeof o.name === "string").map((o) => o.name);
|
|
33597
33597
|
}, [schema]);
|
|
33598
33598
|
const entityStore = useEntityStore();
|
|
33599
|
-
|
|
33600
|
-
|
|
33601
|
-
|
|
33602
|
-
|
|
33603
|
-
|
|
33604
|
-
|
|
33599
|
+
const seededRef = useRef("");
|
|
33600
|
+
const mockKey = mockData ? Object.keys(mockData).sort().join(",") : "";
|
|
33601
|
+
if (!serverUrl && mockData && seededRef.current !== mockKey) {
|
|
33602
|
+
seededRef.current = mockKey;
|
|
33603
|
+
for (const [entityType, records] of Object.entries(mockData)) {
|
|
33604
|
+
if (Array.isArray(records)) {
|
|
33605
|
+
entityStore.setAll(entityType, records);
|
|
33605
33606
|
}
|
|
33606
33607
|
}
|
|
33607
|
-
}
|
|
33608
|
+
}
|
|
33608
33609
|
const inner = /* @__PURE__ */ jsx(VerificationProvider, { enabled: true, children: /* @__PURE__ */ jsx(SlotsProvider, { children: /* @__PURE__ */ jsxs(EntitySchemaProvider, { entities: Array.from(allEntities.values()), children: [
|
|
33609
33610
|
/* @__PURE__ */ jsx(TraitInitializer, { traits: allPageTraits, orbitalNames: serverUrl ? orbitalNames : void 0, onNavigate }),
|
|
33610
33611
|
/* @__PURE__ */ jsx(SlotBridge, {}),
|