@almadar/ui 4.16.0 → 4.16.1
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 +25 -2
- package/dist/avl/index.js +25 -2
- package/dist/runtime/index.cjs +25 -2
- package/dist/runtime/index.js +25 -2
- package/package.json +1 -1
package/dist/avl/index.cjs
CHANGED
|
@@ -51769,6 +51769,7 @@ init_EntitySchemaContext();
|
|
|
51769
51769
|
init_traitRegistry();
|
|
51770
51770
|
init_verificationRegistry();
|
|
51771
51771
|
var crossTraitLog = createLogger("almadar:ui:cross-trait");
|
|
51772
|
+
var reducerMirrorLog = createLogger("almadar:ui:reducer-mirror");
|
|
51772
51773
|
var flushLog = createLogger("almadar:ui:slot-flush");
|
|
51773
51774
|
var stateLog = createLogger("almadar:ui:state-transitions");
|
|
51774
51775
|
function toTraitDefinition(binding) {
|
|
@@ -52164,11 +52165,24 @@ function useTraitStateMachine(traitBindings, uiSlots, options) {
|
|
|
52164
52165
|
};
|
|
52165
52166
|
}
|
|
52166
52167
|
const writeFetchResultToSnap = (fetchedEntityType, fetchResult) => {
|
|
52167
|
-
if (!fetchResult)
|
|
52168
|
+
if (!fetchResult) {
|
|
52169
|
+
reducerMirrorLog.info("write:skip-null", { traitName, fetchedEntityType });
|
|
52170
|
+
return;
|
|
52171
|
+
}
|
|
52168
52172
|
const snapNow = traitSnapshotDataRef.current.get(traitName);
|
|
52169
|
-
if (!snapNow)
|
|
52173
|
+
if (!snapNow) {
|
|
52174
|
+
reducerMirrorLog.info("write:skip-no-snap", { traitName, fetchedEntityType });
|
|
52175
|
+
return;
|
|
52176
|
+
}
|
|
52170
52177
|
const rows = Array.isArray(fetchResult.rows) ? fetchResult.rows : [fetchResult.rows];
|
|
52171
52178
|
snapNow.data[fetchedEntityType] = rows;
|
|
52179
|
+
reducerMirrorLog.info("write:ok", {
|
|
52180
|
+
traitName,
|
|
52181
|
+
fetchedEntityType,
|
|
52182
|
+
rowCount: rows.length,
|
|
52183
|
+
firstRowKeys: rows.length > 0 ? Object.keys(rows[0]).join(",") : "",
|
|
52184
|
+
firstRowJson: rows.length > 0 ? JSON.stringify(rows[0]).slice(0, 200) : ""
|
|
52185
|
+
});
|
|
52172
52186
|
};
|
|
52173
52187
|
const baseFetch = handlers.fetch;
|
|
52174
52188
|
const baseRef = handlers.ref;
|
|
@@ -52208,6 +52222,15 @@ function useTraitStateMachine(traitBindings, uiSlots, options) {
|
|
|
52208
52222
|
);
|
|
52209
52223
|
entityForBinding = hybrid;
|
|
52210
52224
|
}
|
|
52225
|
+
reducerMirrorLog.info("read:bindingCtx", {
|
|
52226
|
+
traitName,
|
|
52227
|
+
linkedEntity,
|
|
52228
|
+
eventKey: normalizedEvent,
|
|
52229
|
+
snapDataKeys: reducerSnap ? Object.keys(reducerSnap.data).join(",") : "<no-snap>",
|
|
52230
|
+
persistedRowCount: persistedRows?.length ?? 0,
|
|
52231
|
+
source: persistedRows && persistedRows.length > 0 ? "reducer-mirror" : "payload",
|
|
52232
|
+
entityJson: JSON.stringify(entityForBinding).slice(0, 200)
|
|
52233
|
+
});
|
|
52211
52234
|
const bindingCtx = {
|
|
52212
52235
|
entity: entityForBinding,
|
|
52213
52236
|
payload: payload || {},
|
package/dist/avl/index.js
CHANGED
|
@@ -51723,6 +51723,7 @@ init_EntitySchemaContext();
|
|
|
51723
51723
|
init_traitRegistry();
|
|
51724
51724
|
init_verificationRegistry();
|
|
51725
51725
|
var crossTraitLog = createLogger("almadar:ui:cross-trait");
|
|
51726
|
+
var reducerMirrorLog = createLogger("almadar:ui:reducer-mirror");
|
|
51726
51727
|
var flushLog = createLogger("almadar:ui:slot-flush");
|
|
51727
51728
|
var stateLog = createLogger("almadar:ui:state-transitions");
|
|
51728
51729
|
function toTraitDefinition(binding) {
|
|
@@ -52118,11 +52119,24 @@ function useTraitStateMachine(traitBindings, uiSlots, options) {
|
|
|
52118
52119
|
};
|
|
52119
52120
|
}
|
|
52120
52121
|
const writeFetchResultToSnap = (fetchedEntityType, fetchResult) => {
|
|
52121
|
-
if (!fetchResult)
|
|
52122
|
+
if (!fetchResult) {
|
|
52123
|
+
reducerMirrorLog.info("write:skip-null", { traitName, fetchedEntityType });
|
|
52124
|
+
return;
|
|
52125
|
+
}
|
|
52122
52126
|
const snapNow = traitSnapshotDataRef.current.get(traitName);
|
|
52123
|
-
if (!snapNow)
|
|
52127
|
+
if (!snapNow) {
|
|
52128
|
+
reducerMirrorLog.info("write:skip-no-snap", { traitName, fetchedEntityType });
|
|
52129
|
+
return;
|
|
52130
|
+
}
|
|
52124
52131
|
const rows = Array.isArray(fetchResult.rows) ? fetchResult.rows : [fetchResult.rows];
|
|
52125
52132
|
snapNow.data[fetchedEntityType] = rows;
|
|
52133
|
+
reducerMirrorLog.info("write:ok", {
|
|
52134
|
+
traitName,
|
|
52135
|
+
fetchedEntityType,
|
|
52136
|
+
rowCount: rows.length,
|
|
52137
|
+
firstRowKeys: rows.length > 0 ? Object.keys(rows[0]).join(",") : "",
|
|
52138
|
+
firstRowJson: rows.length > 0 ? JSON.stringify(rows[0]).slice(0, 200) : ""
|
|
52139
|
+
});
|
|
52126
52140
|
};
|
|
52127
52141
|
const baseFetch = handlers.fetch;
|
|
52128
52142
|
const baseRef = handlers.ref;
|
|
@@ -52162,6 +52176,15 @@ function useTraitStateMachine(traitBindings, uiSlots, options) {
|
|
|
52162
52176
|
);
|
|
52163
52177
|
entityForBinding = hybrid;
|
|
52164
52178
|
}
|
|
52179
|
+
reducerMirrorLog.info("read:bindingCtx", {
|
|
52180
|
+
traitName,
|
|
52181
|
+
linkedEntity,
|
|
52182
|
+
eventKey: normalizedEvent,
|
|
52183
|
+
snapDataKeys: reducerSnap ? Object.keys(reducerSnap.data).join(",") : "<no-snap>",
|
|
52184
|
+
persistedRowCount: persistedRows?.length ?? 0,
|
|
52185
|
+
source: persistedRows && persistedRows.length > 0 ? "reducer-mirror" : "payload",
|
|
52186
|
+
entityJson: JSON.stringify(entityForBinding).slice(0, 200)
|
|
52187
|
+
});
|
|
52165
52188
|
const bindingCtx = {
|
|
52166
52189
|
entity: entityForBinding,
|
|
52167
52190
|
payload: payload || {},
|
package/dist/runtime/index.cjs
CHANGED
|
@@ -38296,6 +38296,7 @@ init_EntitySchemaContext();
|
|
|
38296
38296
|
init_traitRegistry();
|
|
38297
38297
|
init_verificationRegistry();
|
|
38298
38298
|
var crossTraitLog = createLogger("almadar:ui:cross-trait");
|
|
38299
|
+
var reducerMirrorLog = createLogger("almadar:ui:reducer-mirror");
|
|
38299
38300
|
var flushLog = createLogger("almadar:ui:slot-flush");
|
|
38300
38301
|
var stateLog = createLogger("almadar:ui:state-transitions");
|
|
38301
38302
|
function toTraitDefinition(binding) {
|
|
@@ -38691,11 +38692,24 @@ function useTraitStateMachine(traitBindings, uiSlots, options) {
|
|
|
38691
38692
|
};
|
|
38692
38693
|
}
|
|
38693
38694
|
const writeFetchResultToSnap = (fetchedEntityType, fetchResult) => {
|
|
38694
|
-
if (!fetchResult)
|
|
38695
|
+
if (!fetchResult) {
|
|
38696
|
+
reducerMirrorLog.info("write:skip-null", { traitName, fetchedEntityType });
|
|
38697
|
+
return;
|
|
38698
|
+
}
|
|
38695
38699
|
const snapNow = traitSnapshotDataRef.current.get(traitName);
|
|
38696
|
-
if (!snapNow)
|
|
38700
|
+
if (!snapNow) {
|
|
38701
|
+
reducerMirrorLog.info("write:skip-no-snap", { traitName, fetchedEntityType });
|
|
38702
|
+
return;
|
|
38703
|
+
}
|
|
38697
38704
|
const rows = Array.isArray(fetchResult.rows) ? fetchResult.rows : [fetchResult.rows];
|
|
38698
38705
|
snapNow.data[fetchedEntityType] = rows;
|
|
38706
|
+
reducerMirrorLog.info("write:ok", {
|
|
38707
|
+
traitName,
|
|
38708
|
+
fetchedEntityType,
|
|
38709
|
+
rowCount: rows.length,
|
|
38710
|
+
firstRowKeys: rows.length > 0 ? Object.keys(rows[0]).join(",") : "",
|
|
38711
|
+
firstRowJson: rows.length > 0 ? JSON.stringify(rows[0]).slice(0, 200) : ""
|
|
38712
|
+
});
|
|
38699
38713
|
};
|
|
38700
38714
|
const baseFetch = handlers.fetch;
|
|
38701
38715
|
const baseRef = handlers.ref;
|
|
@@ -38735,6 +38749,15 @@ function useTraitStateMachine(traitBindings, uiSlots, options) {
|
|
|
38735
38749
|
);
|
|
38736
38750
|
entityForBinding = hybrid;
|
|
38737
38751
|
}
|
|
38752
|
+
reducerMirrorLog.info("read:bindingCtx", {
|
|
38753
|
+
traitName,
|
|
38754
|
+
linkedEntity,
|
|
38755
|
+
eventKey: normalizedEvent,
|
|
38756
|
+
snapDataKeys: reducerSnap ? Object.keys(reducerSnap.data).join(",") : "<no-snap>",
|
|
38757
|
+
persistedRowCount: persistedRows?.length ?? 0,
|
|
38758
|
+
source: persistedRows && persistedRows.length > 0 ? "reducer-mirror" : "payload",
|
|
38759
|
+
entityJson: JSON.stringify(entityForBinding).slice(0, 200)
|
|
38760
|
+
});
|
|
38738
38761
|
const bindingCtx = {
|
|
38739
38762
|
entity: entityForBinding,
|
|
38740
38763
|
payload: payload || {},
|
package/dist/runtime/index.js
CHANGED
|
@@ -38251,6 +38251,7 @@ init_EntitySchemaContext();
|
|
|
38251
38251
|
init_traitRegistry();
|
|
38252
38252
|
init_verificationRegistry();
|
|
38253
38253
|
var crossTraitLog = createLogger("almadar:ui:cross-trait");
|
|
38254
|
+
var reducerMirrorLog = createLogger("almadar:ui:reducer-mirror");
|
|
38254
38255
|
var flushLog = createLogger("almadar:ui:slot-flush");
|
|
38255
38256
|
var stateLog = createLogger("almadar:ui:state-transitions");
|
|
38256
38257
|
function toTraitDefinition(binding) {
|
|
@@ -38646,11 +38647,24 @@ function useTraitStateMachine(traitBindings, uiSlots, options) {
|
|
|
38646
38647
|
};
|
|
38647
38648
|
}
|
|
38648
38649
|
const writeFetchResultToSnap = (fetchedEntityType, fetchResult) => {
|
|
38649
|
-
if (!fetchResult)
|
|
38650
|
+
if (!fetchResult) {
|
|
38651
|
+
reducerMirrorLog.info("write:skip-null", { traitName, fetchedEntityType });
|
|
38652
|
+
return;
|
|
38653
|
+
}
|
|
38650
38654
|
const snapNow = traitSnapshotDataRef.current.get(traitName);
|
|
38651
|
-
if (!snapNow)
|
|
38655
|
+
if (!snapNow) {
|
|
38656
|
+
reducerMirrorLog.info("write:skip-no-snap", { traitName, fetchedEntityType });
|
|
38657
|
+
return;
|
|
38658
|
+
}
|
|
38652
38659
|
const rows = Array.isArray(fetchResult.rows) ? fetchResult.rows : [fetchResult.rows];
|
|
38653
38660
|
snapNow.data[fetchedEntityType] = rows;
|
|
38661
|
+
reducerMirrorLog.info("write:ok", {
|
|
38662
|
+
traitName,
|
|
38663
|
+
fetchedEntityType,
|
|
38664
|
+
rowCount: rows.length,
|
|
38665
|
+
firstRowKeys: rows.length > 0 ? Object.keys(rows[0]).join(",") : "",
|
|
38666
|
+
firstRowJson: rows.length > 0 ? JSON.stringify(rows[0]).slice(0, 200) : ""
|
|
38667
|
+
});
|
|
38654
38668
|
};
|
|
38655
38669
|
const baseFetch = handlers.fetch;
|
|
38656
38670
|
const baseRef = handlers.ref;
|
|
@@ -38690,6 +38704,15 @@ function useTraitStateMachine(traitBindings, uiSlots, options) {
|
|
|
38690
38704
|
);
|
|
38691
38705
|
entityForBinding = hybrid;
|
|
38692
38706
|
}
|
|
38707
|
+
reducerMirrorLog.info("read:bindingCtx", {
|
|
38708
|
+
traitName,
|
|
38709
|
+
linkedEntity,
|
|
38710
|
+
eventKey: normalizedEvent,
|
|
38711
|
+
snapDataKeys: reducerSnap ? Object.keys(reducerSnap.data).join(",") : "<no-snap>",
|
|
38712
|
+
persistedRowCount: persistedRows?.length ?? 0,
|
|
38713
|
+
source: persistedRows && persistedRows.length > 0 ? "reducer-mirror" : "payload",
|
|
38714
|
+
entityJson: JSON.stringify(entityForBinding).slice(0, 200)
|
|
38715
|
+
});
|
|
38693
38716
|
const bindingCtx = {
|
|
38694
38717
|
entity: entityForBinding,
|
|
38695
38718
|
payload: payload || {},
|