@almadar/ui 4.47.0 → 4.47.2
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 +11 -5
- package/dist/avl/index.js +11 -5
- package/dist/runtime/index.cjs +15 -9
- package/dist/runtime/index.js +15 -9
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -57869,6 +57869,15 @@ var RING_SIZE = 50;
|
|
|
57869
57869
|
var ring = [];
|
|
57870
57870
|
var writeIdx = 0;
|
|
57871
57871
|
var subscribers = /* @__PURE__ */ new Set();
|
|
57872
|
+
var notifyScheduled = false;
|
|
57873
|
+
function scheduleNotify() {
|
|
57874
|
+
if (notifyScheduled) return;
|
|
57875
|
+
notifyScheduled = true;
|
|
57876
|
+
queueMicrotask(() => {
|
|
57877
|
+
notifyScheduled = false;
|
|
57878
|
+
for (const fn of subscribers) fn();
|
|
57879
|
+
});
|
|
57880
|
+
}
|
|
57872
57881
|
function push(entry) {
|
|
57873
57882
|
if (ring.length < RING_SIZE) {
|
|
57874
57883
|
ring.push(entry);
|
|
@@ -57876,7 +57885,7 @@ function push(entry) {
|
|
|
57876
57885
|
ring[writeIdx] = entry;
|
|
57877
57886
|
}
|
|
57878
57887
|
writeIdx = (writeIdx + 1) % RING_SIZE;
|
|
57879
|
-
|
|
57888
|
+
scheduleNotify();
|
|
57880
57889
|
}
|
|
57881
57890
|
function isEnabled() {
|
|
57882
57891
|
return logger.isLogLevelEnabled("DEBUG", PERF_NAMESPACE);
|
|
@@ -57918,9 +57927,6 @@ var profilerOnRender = (id, phase, actualDuration, baseDuration, _startTime, com
|
|
|
57918
57927
|
});
|
|
57919
57928
|
log17.debug(`profiler:${id}:${phase}`, () => ({ actualDuration, baseDuration }));
|
|
57920
57929
|
};
|
|
57921
|
-
function bumpRevision() {
|
|
57922
|
-
}
|
|
57923
|
-
subscribers.add(bumpRevision);
|
|
57924
57930
|
|
|
57925
57931
|
// runtime/prepareSchemaForPreview.ts
|
|
57926
57932
|
function generateEntityRow(entity, idx) {
|
|
@@ -59877,7 +59883,7 @@ function FlowCanvasInner({
|
|
|
59877
59883
|
const [expandedOrbital, setExpandedOrbital] = React147.useState(
|
|
59878
59884
|
initialOrbital
|
|
59879
59885
|
);
|
|
59880
|
-
const [screenSize, setScreenSize] = React147.useState("
|
|
59886
|
+
const [screenSize, setScreenSize] = React147.useState("desktop");
|
|
59881
59887
|
const [selectedNode, setSelectedNode] = React147.useState(initialSelectedNode ?? null);
|
|
59882
59888
|
const [selectedPattern, setSelectedPattern] = React147.useState(null);
|
|
59883
59889
|
const patternSelectionValue = React147.useMemo(() => ({
|
package/dist/avl/index.js
CHANGED
|
@@ -57823,6 +57823,15 @@ var RING_SIZE = 50;
|
|
|
57823
57823
|
var ring = [];
|
|
57824
57824
|
var writeIdx = 0;
|
|
57825
57825
|
var subscribers = /* @__PURE__ */ new Set();
|
|
57826
|
+
var notifyScheduled = false;
|
|
57827
|
+
function scheduleNotify() {
|
|
57828
|
+
if (notifyScheduled) return;
|
|
57829
|
+
notifyScheduled = true;
|
|
57830
|
+
queueMicrotask(() => {
|
|
57831
|
+
notifyScheduled = false;
|
|
57832
|
+
for (const fn of subscribers) fn();
|
|
57833
|
+
});
|
|
57834
|
+
}
|
|
57826
57835
|
function push(entry) {
|
|
57827
57836
|
if (ring.length < RING_SIZE) {
|
|
57828
57837
|
ring.push(entry);
|
|
@@ -57830,7 +57839,7 @@ function push(entry) {
|
|
|
57830
57839
|
ring[writeIdx] = entry;
|
|
57831
57840
|
}
|
|
57832
57841
|
writeIdx = (writeIdx + 1) % RING_SIZE;
|
|
57833
|
-
|
|
57842
|
+
scheduleNotify();
|
|
57834
57843
|
}
|
|
57835
57844
|
function isEnabled() {
|
|
57836
57845
|
return isLogLevelEnabled("DEBUG", PERF_NAMESPACE);
|
|
@@ -57872,9 +57881,6 @@ var profilerOnRender = (id, phase, actualDuration, baseDuration, _startTime, com
|
|
|
57872
57881
|
});
|
|
57873
57882
|
log17.debug(`profiler:${id}:${phase}`, () => ({ actualDuration, baseDuration }));
|
|
57874
57883
|
};
|
|
57875
|
-
function bumpRevision() {
|
|
57876
|
-
}
|
|
57877
|
-
subscribers.add(bumpRevision);
|
|
57878
57884
|
|
|
57879
57885
|
// runtime/prepareSchemaForPreview.ts
|
|
57880
57886
|
function generateEntityRow(entity, idx) {
|
|
@@ -59831,7 +59837,7 @@ function FlowCanvasInner({
|
|
|
59831
59837
|
const [expandedOrbital, setExpandedOrbital] = useState(
|
|
59832
59838
|
initialOrbital
|
|
59833
59839
|
);
|
|
59834
|
-
const [screenSize, setScreenSize] = useState("
|
|
59840
|
+
const [screenSize, setScreenSize] = useState("desktop");
|
|
59835
59841
|
const [selectedNode, setSelectedNode] = useState(initialSelectedNode ?? null);
|
|
59836
59842
|
const [selectedPattern, setSelectedPattern] = useState(null);
|
|
59837
59843
|
const patternSelectionValue = useMemo(() => ({
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -45726,6 +45726,19 @@ var RING_SIZE = 50;
|
|
|
45726
45726
|
var ring = [];
|
|
45727
45727
|
var writeIdx = 0;
|
|
45728
45728
|
var subscribers = /* @__PURE__ */ new Set();
|
|
45729
|
+
var notifyScheduled = false;
|
|
45730
|
+
var revision = 0;
|
|
45731
|
+
var cachedSnapshot = [];
|
|
45732
|
+
var cachedRevision = -1;
|
|
45733
|
+
function scheduleNotify() {
|
|
45734
|
+
if (notifyScheduled) return;
|
|
45735
|
+
notifyScheduled = true;
|
|
45736
|
+
queueMicrotask(() => {
|
|
45737
|
+
notifyScheduled = false;
|
|
45738
|
+
revision++;
|
|
45739
|
+
for (const fn of subscribers) fn();
|
|
45740
|
+
});
|
|
45741
|
+
}
|
|
45729
45742
|
function push(entry) {
|
|
45730
45743
|
if (ring.length < RING_SIZE) {
|
|
45731
45744
|
ring.push(entry);
|
|
@@ -45733,7 +45746,7 @@ function push(entry) {
|
|
|
45733
45746
|
ring[writeIdx] = entry;
|
|
45734
45747
|
}
|
|
45735
45748
|
writeIdx = (writeIdx + 1) % RING_SIZE;
|
|
45736
|
-
|
|
45749
|
+
scheduleNotify();
|
|
45737
45750
|
}
|
|
45738
45751
|
function isEnabled() {
|
|
45739
45752
|
return logger.isLogLevelEnabled("DEBUG", PERF_NAMESPACE);
|
|
@@ -45787,13 +45800,6 @@ function getPerfSnapshot() {
|
|
|
45787
45800
|
if (ring.length < RING_SIZE) return ring.slice();
|
|
45788
45801
|
return [...ring.slice(writeIdx), ...ring.slice(0, writeIdx)];
|
|
45789
45802
|
}
|
|
45790
|
-
var cachedSnapshot = [];
|
|
45791
|
-
var cachedRevision = -1;
|
|
45792
|
-
var revision = 0;
|
|
45793
|
-
function bumpRevision() {
|
|
45794
|
-
revision++;
|
|
45795
|
-
}
|
|
45796
|
-
subscribers.add(bumpRevision);
|
|
45797
45803
|
function getSnapshot2() {
|
|
45798
45804
|
if (cachedRevision !== revision) {
|
|
45799
45805
|
cachedSnapshot = getPerfSnapshot();
|
|
@@ -45813,7 +45819,7 @@ function usePerfBuffer() {
|
|
|
45813
45819
|
function clearPerf() {
|
|
45814
45820
|
ring.length = 0;
|
|
45815
45821
|
writeIdx = 0;
|
|
45816
|
-
|
|
45822
|
+
scheduleNotify();
|
|
45817
45823
|
}
|
|
45818
45824
|
|
|
45819
45825
|
// runtime/prepareSchemaForPreview.ts
|
package/dist/runtime/index.js
CHANGED
|
@@ -45680,6 +45680,19 @@ var RING_SIZE = 50;
|
|
|
45680
45680
|
var ring = [];
|
|
45681
45681
|
var writeIdx = 0;
|
|
45682
45682
|
var subscribers = /* @__PURE__ */ new Set();
|
|
45683
|
+
var notifyScheduled = false;
|
|
45684
|
+
var revision = 0;
|
|
45685
|
+
var cachedSnapshot = [];
|
|
45686
|
+
var cachedRevision = -1;
|
|
45687
|
+
function scheduleNotify() {
|
|
45688
|
+
if (notifyScheduled) return;
|
|
45689
|
+
notifyScheduled = true;
|
|
45690
|
+
queueMicrotask(() => {
|
|
45691
|
+
notifyScheduled = false;
|
|
45692
|
+
revision++;
|
|
45693
|
+
for (const fn of subscribers) fn();
|
|
45694
|
+
});
|
|
45695
|
+
}
|
|
45683
45696
|
function push(entry) {
|
|
45684
45697
|
if (ring.length < RING_SIZE) {
|
|
45685
45698
|
ring.push(entry);
|
|
@@ -45687,7 +45700,7 @@ function push(entry) {
|
|
|
45687
45700
|
ring[writeIdx] = entry;
|
|
45688
45701
|
}
|
|
45689
45702
|
writeIdx = (writeIdx + 1) % RING_SIZE;
|
|
45690
|
-
|
|
45703
|
+
scheduleNotify();
|
|
45691
45704
|
}
|
|
45692
45705
|
function isEnabled() {
|
|
45693
45706
|
return isLogLevelEnabled("DEBUG", PERF_NAMESPACE);
|
|
@@ -45741,13 +45754,6 @@ function getPerfSnapshot() {
|
|
|
45741
45754
|
if (ring.length < RING_SIZE) return ring.slice();
|
|
45742
45755
|
return [...ring.slice(writeIdx), ...ring.slice(0, writeIdx)];
|
|
45743
45756
|
}
|
|
45744
|
-
var cachedSnapshot = [];
|
|
45745
|
-
var cachedRevision = -1;
|
|
45746
|
-
var revision = 0;
|
|
45747
|
-
function bumpRevision() {
|
|
45748
|
-
revision++;
|
|
45749
|
-
}
|
|
45750
|
-
subscribers.add(bumpRevision);
|
|
45751
45757
|
function getSnapshot2() {
|
|
45752
45758
|
if (cachedRevision !== revision) {
|
|
45753
45759
|
cachedSnapshot = getPerfSnapshot();
|
|
@@ -45767,7 +45773,7 @@ function usePerfBuffer() {
|
|
|
45767
45773
|
function clearPerf() {
|
|
45768
45774
|
ring.length = 0;
|
|
45769
45775
|
writeIdx = 0;
|
|
45770
|
-
|
|
45776
|
+
scheduleNotify();
|
|
45771
45777
|
}
|
|
45772
45778
|
|
|
45773
45779
|
// runtime/prepareSchemaForPreview.ts
|