@almadar/ui 4.51.2 → 4.51.4
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 +7 -15
- package/dist/avl/index.js +7 -15
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/providers/index.cjs +1 -1
- package/dist/providers/index.js +1 -1
- package/dist/runtime/index.cjs +7 -15
- package/dist/runtime/index.js +7 -15
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -43169,7 +43169,7 @@ function VerifyModePanel({
|
|
|
43169
43169
|
}
|
|
43170
43170
|
prevCountRef.current = transitions.length;
|
|
43171
43171
|
}, [transitions.length, expanded]);
|
|
43172
|
-
const hudBottom = typeof document !== "undefined" ? document.getElementById("slot-hud-bottom") : null;
|
|
43172
|
+
const hudBottom = typeof document !== "undefined" ? document.getElementById("runtime-debugger-portal") ?? document.getElementById("slot-hud-bottom") : null;
|
|
43173
43173
|
const panel = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
43174
43174
|
"div",
|
|
43175
43175
|
{
|
|
@@ -58683,20 +58683,16 @@ function TraitInitializer({ traits: traits2, orbitalNames, onNavigate, onLocalFa
|
|
|
58683
58683
|
}, [bridge.connected, bridge.sendEvent, orbitalNames, uiSlots, onNavigate, embeddedTraits]);
|
|
58684
58684
|
const opts = orbitalNames ? { onEventProcessed, navigate: onNavigate, traitConfigsByName, orbitalsByTrait, embeddedTraits } : { navigate: onNavigate, persistence, traitConfigsByName, orbitalsByTrait, embeddedTraits };
|
|
58685
58685
|
const { sendEvent } = useTraitStateMachine(traits2, uiSlots, opts);
|
|
58686
|
-
const
|
|
58686
|
+
const initSentRef = React93.useRef(false);
|
|
58687
|
+
const prevTraitsRef = React93.useRef(void 0);
|
|
58687
58688
|
React93.useEffect(() => {
|
|
58688
|
-
|
|
58689
|
-
|
|
58690
|
-
navLog.debug("page:trait-set-changed", {
|
|
58691
|
-
from: prevTraitNamesRef.current,
|
|
58692
|
-
to: traitNames,
|
|
58693
|
-
action: "clearAll-slots"
|
|
58694
|
-
});
|
|
58689
|
+
if (prevTraitsRef.current !== void 0 && prevTraitsRef.current !== traits2) {
|
|
58690
|
+
navLog.debug("page:traits-ref-changed", { action: "clearAll-slots+reset-init" });
|
|
58695
58691
|
uiSlots.clearAll();
|
|
58692
|
+
initSentRef.current = false;
|
|
58696
58693
|
}
|
|
58697
|
-
|
|
58694
|
+
prevTraitsRef.current = traits2;
|
|
58698
58695
|
}, [traits2, uiSlots]);
|
|
58699
|
-
const initSentRef = React93.useRef(false);
|
|
58700
58696
|
React93.useEffect(() => {
|
|
58701
58697
|
if (!orbitalNames?.length) {
|
|
58702
58698
|
const t = setTimeout(() => sendEvent("INIT"), 50);
|
|
@@ -58710,10 +58706,6 @@ function TraitInitializer({ traits: traits2, orbitalNames, onNavigate, onLocalFa
|
|
|
58710
58706
|
}, 5e3);
|
|
58711
58707
|
return () => clearTimeout(fallback);
|
|
58712
58708
|
}, [traits2, orbitalNames, sendEvent, onLocalFallback]);
|
|
58713
|
-
const orbitalsKey = (orbitalNames ?? []).slice().sort().join(",");
|
|
58714
|
-
React93.useEffect(() => {
|
|
58715
|
-
initSentRef.current = false;
|
|
58716
|
-
}, [orbitalsKey]);
|
|
58717
58709
|
React93.useEffect(() => {
|
|
58718
58710
|
if (!bridge.connected || !orbitalNames?.length || initSentRef.current) return;
|
|
58719
58711
|
initSentRef.current = true;
|
package/dist/avl/index.js
CHANGED
|
@@ -43123,7 +43123,7 @@ function VerifyModePanel({
|
|
|
43123
43123
|
}
|
|
43124
43124
|
prevCountRef.current = transitions.length;
|
|
43125
43125
|
}, [transitions.length, expanded]);
|
|
43126
|
-
const hudBottom = typeof document !== "undefined" ? document.getElementById("slot-hud-bottom") : null;
|
|
43126
|
+
const hudBottom = typeof document !== "undefined" ? document.getElementById("runtime-debugger-portal") ?? document.getElementById("slot-hud-bottom") : null;
|
|
43127
43127
|
const panel = /* @__PURE__ */ jsxs(
|
|
43128
43128
|
"div",
|
|
43129
43129
|
{
|
|
@@ -58637,20 +58637,16 @@ function TraitInitializer({ traits: traits2, orbitalNames, onNavigate, onLocalFa
|
|
|
58637
58637
|
}, [bridge.connected, bridge.sendEvent, orbitalNames, uiSlots, onNavigate, embeddedTraits]);
|
|
58638
58638
|
const opts = orbitalNames ? { onEventProcessed, navigate: onNavigate, traitConfigsByName, orbitalsByTrait, embeddedTraits } : { navigate: onNavigate, persistence, traitConfigsByName, orbitalsByTrait, embeddedTraits };
|
|
58639
58639
|
const { sendEvent } = useTraitStateMachine(traits2, uiSlots, opts);
|
|
58640
|
-
const
|
|
58640
|
+
const initSentRef = useRef(false);
|
|
58641
|
+
const prevTraitsRef = useRef(void 0);
|
|
58641
58642
|
useEffect(() => {
|
|
58642
|
-
|
|
58643
|
-
|
|
58644
|
-
navLog.debug("page:trait-set-changed", {
|
|
58645
|
-
from: prevTraitNamesRef.current,
|
|
58646
|
-
to: traitNames,
|
|
58647
|
-
action: "clearAll-slots"
|
|
58648
|
-
});
|
|
58643
|
+
if (prevTraitsRef.current !== void 0 && prevTraitsRef.current !== traits2) {
|
|
58644
|
+
navLog.debug("page:traits-ref-changed", { action: "clearAll-slots+reset-init" });
|
|
58649
58645
|
uiSlots.clearAll();
|
|
58646
|
+
initSentRef.current = false;
|
|
58650
58647
|
}
|
|
58651
|
-
|
|
58648
|
+
prevTraitsRef.current = traits2;
|
|
58652
58649
|
}, [traits2, uiSlots]);
|
|
58653
|
-
const initSentRef = useRef(false);
|
|
58654
58650
|
useEffect(() => {
|
|
58655
58651
|
if (!orbitalNames?.length) {
|
|
58656
58652
|
const t = setTimeout(() => sendEvent("INIT"), 50);
|
|
@@ -58664,10 +58660,6 @@ function TraitInitializer({ traits: traits2, orbitalNames, onNavigate, onLocalFa
|
|
|
58664
58660
|
}, 5e3);
|
|
58665
58661
|
return () => clearTimeout(fallback);
|
|
58666
58662
|
}, [traits2, orbitalNames, sendEvent, onLocalFallback]);
|
|
58667
|
-
const orbitalsKey = (orbitalNames ?? []).slice().sort().join(",");
|
|
58668
|
-
useEffect(() => {
|
|
58669
|
-
initSentRef.current = false;
|
|
58670
|
-
}, [orbitalsKey]);
|
|
58671
58663
|
useEffect(() => {
|
|
58672
58664
|
if (!bridge.connected || !orbitalNames?.length || initSentRef.current) return;
|
|
58673
58665
|
initSentRef.current = true;
|
|
@@ -39343,7 +39343,7 @@ function VerifyModePanel({
|
|
|
39343
39343
|
}
|
|
39344
39344
|
prevCountRef.current = transitions.length;
|
|
39345
39345
|
}, [transitions.length, expanded]);
|
|
39346
|
-
const hudBottom = typeof document !== "undefined" ? document.getElementById("slot-hud-bottom") : null;
|
|
39346
|
+
const hudBottom = typeof document !== "undefined" ? document.getElementById("runtime-debugger-portal") ?? document.getElementById("slot-hud-bottom") : null;
|
|
39347
39347
|
const panel = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
39348
39348
|
"div",
|
|
39349
39349
|
{
|
package/dist/components/index.js
CHANGED
|
@@ -39297,7 +39297,7 @@ function VerifyModePanel({
|
|
|
39297
39297
|
}
|
|
39298
39298
|
prevCountRef.current = transitions.length;
|
|
39299
39299
|
}, [transitions.length, expanded]);
|
|
39300
|
-
const hudBottom = typeof document !== "undefined" ? document.getElementById("slot-hud-bottom") : null;
|
|
39300
|
+
const hudBottom = typeof document !== "undefined" ? document.getElementById("runtime-debugger-portal") ?? document.getElementById("slot-hud-bottom") : null;
|
|
39301
39301
|
const panel = /* @__PURE__ */ jsxs(
|
|
39302
39302
|
"div",
|
|
39303
39303
|
{
|
package/dist/providers/index.cjs
CHANGED
|
@@ -39965,7 +39965,7 @@ function VerifyModePanel({
|
|
|
39965
39965
|
}
|
|
39966
39966
|
prevCountRef.current = transitions.length;
|
|
39967
39967
|
}, [transitions.length, expanded]);
|
|
39968
|
-
const hudBottom = typeof document !== "undefined" ? document.getElementById("slot-hud-bottom") : null;
|
|
39968
|
+
const hudBottom = typeof document !== "undefined" ? document.getElementById("runtime-debugger-portal") ?? document.getElementById("slot-hud-bottom") : null;
|
|
39969
39969
|
const panel = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
39970
39970
|
"div",
|
|
39971
39971
|
{
|
package/dist/providers/index.js
CHANGED
|
@@ -39919,7 +39919,7 @@ function VerifyModePanel({
|
|
|
39919
39919
|
}
|
|
39920
39920
|
prevCountRef.current = transitions.length;
|
|
39921
39921
|
}, [transitions.length, expanded]);
|
|
39922
|
-
const hudBottom = typeof document !== "undefined" ? document.getElementById("slot-hud-bottom") : null;
|
|
39922
|
+
const hudBottom = typeof document !== "undefined" ? document.getElementById("runtime-debugger-portal") ?? document.getElementById("slot-hud-bottom") : null;
|
|
39923
39923
|
const panel = /* @__PURE__ */ jsxs(
|
|
39924
39924
|
"div",
|
|
39925
39925
|
{
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -39551,7 +39551,7 @@ function VerifyModePanel({
|
|
|
39551
39551
|
}
|
|
39552
39552
|
prevCountRef.current = transitions.length;
|
|
39553
39553
|
}, [transitions.length, expanded]);
|
|
39554
|
-
const hudBottom = typeof document !== "undefined" ? document.getElementById("slot-hud-bottom") : null;
|
|
39554
|
+
const hudBottom = typeof document !== "undefined" ? document.getElementById("runtime-debugger-portal") ?? document.getElementById("slot-hud-bottom") : null;
|
|
39555
39555
|
const panel = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
39556
39556
|
"div",
|
|
39557
39557
|
{
|
|
@@ -46574,20 +46574,16 @@ function TraitInitializer({ traits: traits2, orbitalNames, onNavigate, onLocalFa
|
|
|
46574
46574
|
}, [bridge.connected, bridge.sendEvent, orbitalNames, uiSlots, onNavigate, embeddedTraits]);
|
|
46575
46575
|
const opts = orbitalNames ? { onEventProcessed, navigate: onNavigate, traitConfigsByName, orbitalsByTrait, embeddedTraits } : { navigate: onNavigate, persistence, traitConfigsByName, orbitalsByTrait, embeddedTraits };
|
|
46576
46576
|
const { sendEvent } = useTraitStateMachine(traits2, uiSlots, opts);
|
|
46577
|
-
const
|
|
46577
|
+
const initSentRef = React80.useRef(false);
|
|
46578
|
+
const prevTraitsRef = React80.useRef(void 0);
|
|
46578
46579
|
React80.useEffect(() => {
|
|
46579
|
-
|
|
46580
|
-
|
|
46581
|
-
navLog.debug("page:trait-set-changed", {
|
|
46582
|
-
from: prevTraitNamesRef.current,
|
|
46583
|
-
to: traitNames,
|
|
46584
|
-
action: "clearAll-slots"
|
|
46585
|
-
});
|
|
46580
|
+
if (prevTraitsRef.current !== void 0 && prevTraitsRef.current !== traits2) {
|
|
46581
|
+
navLog.debug("page:traits-ref-changed", { action: "clearAll-slots+reset-init" });
|
|
46586
46582
|
uiSlots.clearAll();
|
|
46583
|
+
initSentRef.current = false;
|
|
46587
46584
|
}
|
|
46588
|
-
|
|
46585
|
+
prevTraitsRef.current = traits2;
|
|
46589
46586
|
}, [traits2, uiSlots]);
|
|
46590
|
-
const initSentRef = React80.useRef(false);
|
|
46591
46587
|
React80.useEffect(() => {
|
|
46592
46588
|
if (!orbitalNames?.length) {
|
|
46593
46589
|
const t = setTimeout(() => sendEvent("INIT"), 50);
|
|
@@ -46601,10 +46597,6 @@ function TraitInitializer({ traits: traits2, orbitalNames, onNavigate, onLocalFa
|
|
|
46601
46597
|
}, 5e3);
|
|
46602
46598
|
return () => clearTimeout(fallback);
|
|
46603
46599
|
}, [traits2, orbitalNames, sendEvent, onLocalFallback]);
|
|
46604
|
-
const orbitalsKey = (orbitalNames ?? []).slice().sort().join(",");
|
|
46605
|
-
React80.useEffect(() => {
|
|
46606
|
-
initSentRef.current = false;
|
|
46607
|
-
}, [orbitalsKey]);
|
|
46608
46600
|
React80.useEffect(() => {
|
|
46609
46601
|
if (!bridge.connected || !orbitalNames?.length || initSentRef.current) return;
|
|
46610
46602
|
initSentRef.current = true;
|
package/dist/runtime/index.js
CHANGED
|
@@ -39505,7 +39505,7 @@ function VerifyModePanel({
|
|
|
39505
39505
|
}
|
|
39506
39506
|
prevCountRef.current = transitions.length;
|
|
39507
39507
|
}, [transitions.length, expanded]);
|
|
39508
|
-
const hudBottom = typeof document !== "undefined" ? document.getElementById("slot-hud-bottom") : null;
|
|
39508
|
+
const hudBottom = typeof document !== "undefined" ? document.getElementById("runtime-debugger-portal") ?? document.getElementById("slot-hud-bottom") : null;
|
|
39509
39509
|
const panel = /* @__PURE__ */ jsxs(
|
|
39510
39510
|
"div",
|
|
39511
39511
|
{
|
|
@@ -46528,20 +46528,16 @@ function TraitInitializer({ traits: traits2, orbitalNames, onNavigate, onLocalFa
|
|
|
46528
46528
|
}, [bridge.connected, bridge.sendEvent, orbitalNames, uiSlots, onNavigate, embeddedTraits]);
|
|
46529
46529
|
const opts = orbitalNames ? { onEventProcessed, navigate: onNavigate, traitConfigsByName, orbitalsByTrait, embeddedTraits } : { navigate: onNavigate, persistence, traitConfigsByName, orbitalsByTrait, embeddedTraits };
|
|
46530
46530
|
const { sendEvent } = useTraitStateMachine(traits2, uiSlots, opts);
|
|
46531
|
-
const
|
|
46531
|
+
const initSentRef = useRef(false);
|
|
46532
|
+
const prevTraitsRef = useRef(void 0);
|
|
46532
46533
|
useEffect(() => {
|
|
46533
|
-
|
|
46534
|
-
|
|
46535
|
-
navLog.debug("page:trait-set-changed", {
|
|
46536
|
-
from: prevTraitNamesRef.current,
|
|
46537
|
-
to: traitNames,
|
|
46538
|
-
action: "clearAll-slots"
|
|
46539
|
-
});
|
|
46534
|
+
if (prevTraitsRef.current !== void 0 && prevTraitsRef.current !== traits2) {
|
|
46535
|
+
navLog.debug("page:traits-ref-changed", { action: "clearAll-slots+reset-init" });
|
|
46540
46536
|
uiSlots.clearAll();
|
|
46537
|
+
initSentRef.current = false;
|
|
46541
46538
|
}
|
|
46542
|
-
|
|
46539
|
+
prevTraitsRef.current = traits2;
|
|
46543
46540
|
}, [traits2, uiSlots]);
|
|
46544
|
-
const initSentRef = useRef(false);
|
|
46545
46541
|
useEffect(() => {
|
|
46546
46542
|
if (!orbitalNames?.length) {
|
|
46547
46543
|
const t = setTimeout(() => sendEvent("INIT"), 50);
|
|
@@ -46555,10 +46551,6 @@ function TraitInitializer({ traits: traits2, orbitalNames, onNavigate, onLocalFa
|
|
|
46555
46551
|
}, 5e3);
|
|
46556
46552
|
return () => clearTimeout(fallback);
|
|
46557
46553
|
}, [traits2, orbitalNames, sendEvent, onLocalFallback]);
|
|
46558
|
-
const orbitalsKey = (orbitalNames ?? []).slice().sort().join(",");
|
|
46559
|
-
useEffect(() => {
|
|
46560
|
-
initSentRef.current = false;
|
|
46561
|
-
}, [orbitalsKey]);
|
|
46562
46554
|
useEffect(() => {
|
|
46563
46555
|
if (!bridge.connected || !orbitalNames?.length || initSentRef.current) return;
|
|
46564
46556
|
initSentRef.current = true;
|