@almadar/ui 4.51.8 → 4.51.10
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 +20 -4
- package/dist/avl/index.js +21 -5
- package/dist/runtime/index.cjs +20 -4
- package/dist/runtime/index.js +20 -4
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -13697,12 +13697,12 @@ var init_MapView = __esm({
|
|
|
13697
13697
|
shadowSize: [41, 41]
|
|
13698
13698
|
});
|
|
13699
13699
|
L.Marker.prototype.options.icon = defaultIcon;
|
|
13700
|
-
const { useEffect: useEffect87, useRef:
|
|
13700
|
+
const { useEffect: useEffect87, useRef: useRef88, useCallback: useCallback126, useState: useState120 } = React93__namespace.default;
|
|
13701
13701
|
const { Typography: Typography2 } = await Promise.resolve().then(() => (init_Typography(), Typography_exports));
|
|
13702
13702
|
const { useEventBus: useEventBus3 } = await Promise.resolve().then(() => (init_useEventBus(), useEventBus_exports));
|
|
13703
13703
|
function MapUpdater({ centerLat, centerLng, zoom }) {
|
|
13704
13704
|
const map = useMap();
|
|
13705
|
-
const prevRef =
|
|
13705
|
+
const prevRef = useRef88({ centerLat, centerLng, zoom });
|
|
13706
13706
|
useEffect87(() => {
|
|
13707
13707
|
const prev = prevRef.current;
|
|
13708
13708
|
if (prev.centerLat !== centerLat || prev.centerLng !== centerLng || prev.zoom !== zoom) {
|
|
@@ -59047,6 +59047,7 @@ function OrbPreview({
|
|
|
59047
59047
|
);
|
|
59048
59048
|
}
|
|
59049
59049
|
OrbPreview.displayName = "OrbPreview";
|
|
59050
|
+
var playgroundLog = logger.createLogger("almadar:ui:browser-playground");
|
|
59050
59051
|
function BrowserPlayground({
|
|
59051
59052
|
schema,
|
|
59052
59053
|
mode = "mock",
|
|
@@ -59057,11 +59058,26 @@ function BrowserPlayground({
|
|
|
59057
59058
|
const [runtime] = React93.useState(
|
|
59058
59059
|
() => new OrbitalServerRuntime.OrbitalServerRuntime({ mode, debug: false })
|
|
59059
59060
|
);
|
|
59061
|
+
const teardownTimerRef = React93.useRef(null);
|
|
59060
59062
|
React93.useEffect(() => {
|
|
59061
|
-
|
|
59063
|
+
if (teardownTimerRef.current !== null) {
|
|
59064
|
+
clearTimeout(teardownTimerRef.current);
|
|
59065
|
+
teardownTimerRef.current = null;
|
|
59066
|
+
}
|
|
59062
59067
|
return () => {
|
|
59063
|
-
|
|
59068
|
+
teardownTimerRef.current = setTimeout(() => {
|
|
59069
|
+
teardownTimerRef.current = null;
|
|
59070
|
+
playgroundLog.debug("unregisterAll:unmount");
|
|
59071
|
+
runtime.unregisterAll();
|
|
59072
|
+
}, 0);
|
|
59064
59073
|
};
|
|
59074
|
+
}, [runtime]);
|
|
59075
|
+
React93.useEffect(() => {
|
|
59076
|
+
const orbitalNames = schema.orbitals.map((o) => o.name);
|
|
59077
|
+
playgroundLog.debug("register:start", { schema: schema.name, orbitalNames });
|
|
59078
|
+
void runtime.register(schema).then(() => {
|
|
59079
|
+
playgroundLog.debug("register:done", { schema: schema.name, orbitalNames });
|
|
59080
|
+
});
|
|
59065
59081
|
}, [runtime, schema]);
|
|
59066
59082
|
const transport = React93.useMemo(() => ({
|
|
59067
59083
|
register: async (s) => {
|
package/dist/avl/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { OrbitControls as OrbitControls$1, Grid as Grid$1, Stars, Sparkles, Html, RoundedBox } from '@react-three/drei';
|
|
3
3
|
import * as React93 from 'react';
|
|
4
|
-
import React93__default, { createContext, useState, useEffect, useMemo, useContext,
|
|
4
|
+
import React93__default, { createContext, useState, useRef, useEffect, useMemo, useContext, useCallback, Suspense, useLayoutEffect, Profiler, useReducer, lazy, useId, forwardRef, useImperativeHandle, Component } from 'react';
|
|
5
5
|
import { createLogger, isLogLevelEnabled } from '@almadar/logger';
|
|
6
6
|
import ELK from 'elkjs/lib/elk.bundled.js';
|
|
7
7
|
import { MarkerType, Handle, Position, getBezierPath, EdgeLabelRenderer, BaseEdge, ReactFlowProvider, useNodesState, useEdgesState, useReactFlow, ReactFlow, Controls, Background, BackgroundVariant } from '@xyflow/react';
|
|
@@ -13651,12 +13651,12 @@ var init_MapView = __esm({
|
|
|
13651
13651
|
shadowSize: [41, 41]
|
|
13652
13652
|
});
|
|
13653
13653
|
L.Marker.prototype.options.icon = defaultIcon;
|
|
13654
|
-
const { useEffect: useEffect87, useRef:
|
|
13654
|
+
const { useEffect: useEffect87, useRef: useRef88, useCallback: useCallback126, useState: useState120 } = React93__default;
|
|
13655
13655
|
const { Typography: Typography2 } = await Promise.resolve().then(() => (init_Typography(), Typography_exports));
|
|
13656
13656
|
const { useEventBus: useEventBus3 } = await Promise.resolve().then(() => (init_useEventBus(), useEventBus_exports));
|
|
13657
13657
|
function MapUpdater({ centerLat, centerLng, zoom }) {
|
|
13658
13658
|
const map = useMap();
|
|
13659
|
-
const prevRef =
|
|
13659
|
+
const prevRef = useRef88({ centerLat, centerLng, zoom });
|
|
13660
13660
|
useEffect87(() => {
|
|
13661
13661
|
const prev = prevRef.current;
|
|
13662
13662
|
if (prev.centerLat !== centerLat || prev.centerLng !== centerLng || prev.zoom !== zoom) {
|
|
@@ -59001,6 +59001,7 @@ function OrbPreview({
|
|
|
59001
59001
|
);
|
|
59002
59002
|
}
|
|
59003
59003
|
OrbPreview.displayName = "OrbPreview";
|
|
59004
|
+
var playgroundLog = createLogger("almadar:ui:browser-playground");
|
|
59004
59005
|
function BrowserPlayground({
|
|
59005
59006
|
schema,
|
|
59006
59007
|
mode = "mock",
|
|
@@ -59011,11 +59012,26 @@ function BrowserPlayground({
|
|
|
59011
59012
|
const [runtime] = useState(
|
|
59012
59013
|
() => new OrbitalServerRuntime({ mode, debug: false })
|
|
59013
59014
|
);
|
|
59015
|
+
const teardownTimerRef = useRef(null);
|
|
59014
59016
|
useEffect(() => {
|
|
59015
|
-
|
|
59017
|
+
if (teardownTimerRef.current !== null) {
|
|
59018
|
+
clearTimeout(teardownTimerRef.current);
|
|
59019
|
+
teardownTimerRef.current = null;
|
|
59020
|
+
}
|
|
59016
59021
|
return () => {
|
|
59017
|
-
|
|
59022
|
+
teardownTimerRef.current = setTimeout(() => {
|
|
59023
|
+
teardownTimerRef.current = null;
|
|
59024
|
+
playgroundLog.debug("unregisterAll:unmount");
|
|
59025
|
+
runtime.unregisterAll();
|
|
59026
|
+
}, 0);
|
|
59018
59027
|
};
|
|
59028
|
+
}, [runtime]);
|
|
59029
|
+
useEffect(() => {
|
|
59030
|
+
const orbitalNames = schema.orbitals.map((o) => o.name);
|
|
59031
|
+
playgroundLog.debug("register:start", { schema: schema.name, orbitalNames });
|
|
59032
|
+
void runtime.register(schema).then(() => {
|
|
59033
|
+
playgroundLog.debug("register:done", { schema: schema.name, orbitalNames });
|
|
59034
|
+
});
|
|
59019
59035
|
}, [runtime, schema]);
|
|
59020
59036
|
const transport = useMemo(() => ({
|
|
59021
59037
|
register: async (s) => {
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -9210,12 +9210,12 @@ var init_MapView = __esm({
|
|
|
9210
9210
|
shadowSize: [41, 41]
|
|
9211
9211
|
});
|
|
9212
9212
|
L.Marker.prototype.options.icon = defaultIcon;
|
|
9213
|
-
const { useEffect: useEffect68, useRef:
|
|
9213
|
+
const { useEffect: useEffect68, useRef: useRef65, useCallback: useCallback110, useState: useState98 } = React80__namespace.default;
|
|
9214
9214
|
const { Typography: Typography2 } = await Promise.resolve().then(() => (init_Typography(), Typography_exports));
|
|
9215
9215
|
const { useEventBus: useEventBus2 } = await Promise.resolve().then(() => (init_useEventBus(), useEventBus_exports));
|
|
9216
9216
|
function MapUpdater({ centerLat, centerLng, zoom }) {
|
|
9217
9217
|
const map = useMap();
|
|
9218
|
-
const prevRef =
|
|
9218
|
+
const prevRef = useRef65({ centerLat, centerLng, zoom });
|
|
9219
9219
|
useEffect68(() => {
|
|
9220
9220
|
const prev = prevRef.current;
|
|
9221
9221
|
if (prev.centerLat !== centerLat || prev.centerLng !== centerLng || prev.zoom !== zoom) {
|
|
@@ -46938,6 +46938,7 @@ function OrbPreview({
|
|
|
46938
46938
|
);
|
|
46939
46939
|
}
|
|
46940
46940
|
OrbPreview.displayName = "OrbPreview";
|
|
46941
|
+
var playgroundLog = logger.createLogger("almadar:ui:browser-playground");
|
|
46941
46942
|
function BrowserPlayground({
|
|
46942
46943
|
schema,
|
|
46943
46944
|
mode = "mock",
|
|
@@ -46948,11 +46949,26 @@ function BrowserPlayground({
|
|
|
46948
46949
|
const [runtime] = React80.useState(
|
|
46949
46950
|
() => new OrbitalServerRuntime.OrbitalServerRuntime({ mode, debug: false })
|
|
46950
46951
|
);
|
|
46952
|
+
const teardownTimerRef = React80.useRef(null);
|
|
46951
46953
|
React80.useEffect(() => {
|
|
46952
|
-
|
|
46954
|
+
if (teardownTimerRef.current !== null) {
|
|
46955
|
+
clearTimeout(teardownTimerRef.current);
|
|
46956
|
+
teardownTimerRef.current = null;
|
|
46957
|
+
}
|
|
46953
46958
|
return () => {
|
|
46954
|
-
|
|
46959
|
+
teardownTimerRef.current = setTimeout(() => {
|
|
46960
|
+
teardownTimerRef.current = null;
|
|
46961
|
+
playgroundLog.debug("unregisterAll:unmount");
|
|
46962
|
+
runtime.unregisterAll();
|
|
46963
|
+
}, 0);
|
|
46955
46964
|
};
|
|
46965
|
+
}, [runtime]);
|
|
46966
|
+
React80.useEffect(() => {
|
|
46967
|
+
const orbitalNames = schema.orbitals.map((o) => o.name);
|
|
46968
|
+
playgroundLog.debug("register:start", { schema: schema.name, orbitalNames });
|
|
46969
|
+
void runtime.register(schema).then(() => {
|
|
46970
|
+
playgroundLog.debug("register:done", { schema: schema.name, orbitalNames });
|
|
46971
|
+
});
|
|
46956
46972
|
}, [runtime, schema]);
|
|
46957
46973
|
const transport = React80.useMemo(() => ({
|
|
46958
46974
|
register: async (s) => {
|
package/dist/runtime/index.js
CHANGED
|
@@ -9164,12 +9164,12 @@ var init_MapView = __esm({
|
|
|
9164
9164
|
shadowSize: [41, 41]
|
|
9165
9165
|
});
|
|
9166
9166
|
L.Marker.prototype.options.icon = defaultIcon;
|
|
9167
|
-
const { useEffect: useEffect68, useRef:
|
|
9167
|
+
const { useEffect: useEffect68, useRef: useRef65, useCallback: useCallback110, useState: useState98 } = React80__default;
|
|
9168
9168
|
const { Typography: Typography2 } = await Promise.resolve().then(() => (init_Typography(), Typography_exports));
|
|
9169
9169
|
const { useEventBus: useEventBus2 } = await Promise.resolve().then(() => (init_useEventBus(), useEventBus_exports));
|
|
9170
9170
|
function MapUpdater({ centerLat, centerLng, zoom }) {
|
|
9171
9171
|
const map = useMap();
|
|
9172
|
-
const prevRef =
|
|
9172
|
+
const prevRef = useRef65({ centerLat, centerLng, zoom });
|
|
9173
9173
|
useEffect68(() => {
|
|
9174
9174
|
const prev = prevRef.current;
|
|
9175
9175
|
if (prev.centerLat !== centerLat || prev.centerLng !== centerLng || prev.zoom !== zoom) {
|
|
@@ -46892,6 +46892,7 @@ function OrbPreview({
|
|
|
46892
46892
|
);
|
|
46893
46893
|
}
|
|
46894
46894
|
OrbPreview.displayName = "OrbPreview";
|
|
46895
|
+
var playgroundLog = createLogger("almadar:ui:browser-playground");
|
|
46895
46896
|
function BrowserPlayground({
|
|
46896
46897
|
schema,
|
|
46897
46898
|
mode = "mock",
|
|
@@ -46902,11 +46903,26 @@ function BrowserPlayground({
|
|
|
46902
46903
|
const [runtime] = useState(
|
|
46903
46904
|
() => new OrbitalServerRuntime({ mode, debug: false })
|
|
46904
46905
|
);
|
|
46906
|
+
const teardownTimerRef = useRef(null);
|
|
46905
46907
|
useEffect(() => {
|
|
46906
|
-
|
|
46908
|
+
if (teardownTimerRef.current !== null) {
|
|
46909
|
+
clearTimeout(teardownTimerRef.current);
|
|
46910
|
+
teardownTimerRef.current = null;
|
|
46911
|
+
}
|
|
46907
46912
|
return () => {
|
|
46908
|
-
|
|
46913
|
+
teardownTimerRef.current = setTimeout(() => {
|
|
46914
|
+
teardownTimerRef.current = null;
|
|
46915
|
+
playgroundLog.debug("unregisterAll:unmount");
|
|
46916
|
+
runtime.unregisterAll();
|
|
46917
|
+
}, 0);
|
|
46909
46918
|
};
|
|
46919
|
+
}, [runtime]);
|
|
46920
|
+
useEffect(() => {
|
|
46921
|
+
const orbitalNames = schema.orbitals.map((o) => o.name);
|
|
46922
|
+
playgroundLog.debug("register:start", { schema: schema.name, orbitalNames });
|
|
46923
|
+
void runtime.register(schema).then(() => {
|
|
46924
|
+
playgroundLog.debug("register:done", { schema: schema.name, orbitalNames });
|
|
46925
|
+
});
|
|
46910
46926
|
}, [runtime, schema]);
|
|
46911
46927
|
const transport = useMemo(() => ({
|
|
46912
46928
|
register: async (s) => {
|