@okf/ootils 1.28.5 → 1.29.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/browser.js +2 -1
- package/dist/browser.mjs +2 -1
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +9 -8
- package/dist/node.mjs +9 -8
- package/dist/universal.js +2 -1
- package/dist/universal.mjs +2 -1
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -1296,7 +1296,7 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
|
|
|
1296
1296
|
});
|
|
1297
1297
|
return {
|
|
1298
1298
|
filterId: isAnno ? `annoTags_${element.tagType}` : `tags_${element.tagType}`,
|
|
1299
|
-
display: allTpls.find((t) => t.kp_content_type === element.tagType)?.general?.content?.title || element.tagType,
|
|
1299
|
+
display: element.display || allTpls.find((t) => t.kp_content_type === element.tagType)?.general?.content?.title || element.tagType,
|
|
1300
1300
|
value: element.tagType,
|
|
1301
1301
|
filterKey: tagFilterKey,
|
|
1302
1302
|
contentType: element.tagType,
|
|
@@ -1443,6 +1443,7 @@ var extractAndOrganizeBlocks = (selectedTpls, allTpls) => {
|
|
|
1443
1443
|
contentType: tpl.kp_content_type,
|
|
1444
1444
|
blocks: allBlocks.filter((block) => block.valuePath.startsWith("tags.")).map((block) => ({
|
|
1445
1445
|
tagType: block.props.tagType,
|
|
1446
|
+
display: block.props?.shortLabel || block.props?.label,
|
|
1446
1447
|
comp: block.comp,
|
|
1447
1448
|
filterType: "tagType"
|
|
1448
1449
|
}))
|
package/dist/browser.mjs
CHANGED
|
@@ -1238,7 +1238,7 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
|
|
|
1238
1238
|
});
|
|
1239
1239
|
return {
|
|
1240
1240
|
filterId: isAnno ? `annoTags_${element.tagType}` : `tags_${element.tagType}`,
|
|
1241
|
-
display: allTpls.find((t) => t.kp_content_type === element.tagType)?.general?.content?.title || element.tagType,
|
|
1241
|
+
display: element.display || allTpls.find((t) => t.kp_content_type === element.tagType)?.general?.content?.title || element.tagType,
|
|
1242
1242
|
value: element.tagType,
|
|
1243
1243
|
filterKey: tagFilterKey,
|
|
1244
1244
|
contentType: element.tagType,
|
|
@@ -1385,6 +1385,7 @@ var extractAndOrganizeBlocks = (selectedTpls, allTpls) => {
|
|
|
1385
1385
|
contentType: tpl.kp_content_type,
|
|
1386
1386
|
blocks: allBlocks.filter((block) => block.valuePath.startsWith("tags.")).map((block) => ({
|
|
1387
1387
|
tagType: block.props.tagType,
|
|
1388
|
+
display: block.props?.shortLabel || block.props?.label,
|
|
1388
1389
|
comp: block.comp,
|
|
1389
1390
|
filterType: "tagType"
|
|
1390
1391
|
}))
|
package/dist/node.d.mts
CHANGED
|
@@ -1761,7 +1761,7 @@ interface IAIChat extends Document {
|
|
|
1761
1761
|
lastActivity: Date;
|
|
1762
1762
|
messages: IMessage[];
|
|
1763
1763
|
ACLScope: "aiChat" | "reports";
|
|
1764
|
-
|
|
1764
|
+
widgetAskAICacheKey?: string;
|
|
1765
1765
|
immutableActiveFilters?: any;
|
|
1766
1766
|
immutableContentTypes?: string[];
|
|
1767
1767
|
}
|
package/dist/node.d.ts
CHANGED
|
@@ -1761,7 +1761,7 @@ interface IAIChat extends Document {
|
|
|
1761
1761
|
lastActivity: Date;
|
|
1762
1762
|
messages: IMessage[];
|
|
1763
1763
|
ACLScope: "aiChat" | "reports";
|
|
1764
|
-
|
|
1764
|
+
widgetAskAICacheKey?: string;
|
|
1765
1765
|
immutableActiveFilters?: any;
|
|
1766
1766
|
immutableContentTypes?: string[];
|
|
1767
1767
|
}
|
package/dist/node.js
CHANGED
|
@@ -1047,13 +1047,13 @@ var init_AIChat = __esm({
|
|
|
1047
1047
|
default: "aiChat",
|
|
1048
1048
|
index: true
|
|
1049
1049
|
},
|
|
1050
|
-
//
|
|
1051
|
-
//
|
|
1052
|
-
//
|
|
1053
|
-
//
|
|
1054
|
-
//
|
|
1055
|
-
//
|
|
1056
|
-
|
|
1050
|
+
// Used exclusively by WidgetAskAI (the Ask AI widget inside Reports).
|
|
1051
|
+
// This field is NOT used by the standalone AskAI chat feature.
|
|
1052
|
+
// It is a SHA256 hash of (query + contentTypes + activeFilters), computed
|
|
1053
|
+
// on the backend. Enables content-addressable caching so that identical
|
|
1054
|
+
// WidgetAskAI configurations return cached responses instantly without
|
|
1055
|
+
// re-invoking the LLM.
|
|
1056
|
+
widgetAskAICacheKey: {
|
|
1057
1057
|
type: String,
|
|
1058
1058
|
sparse: true,
|
|
1059
1059
|
unique: true
|
|
@@ -2890,7 +2890,7 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
|
|
|
2890
2890
|
});
|
|
2891
2891
|
return {
|
|
2892
2892
|
filterId: isAnno ? `annoTags_${element.tagType}` : `tags_${element.tagType}`,
|
|
2893
|
-
display: allTpls.find((t) => t.kp_content_type === element.tagType)?.general?.content?.title || element.tagType,
|
|
2893
|
+
display: element.display || allTpls.find((t) => t.kp_content_type === element.tagType)?.general?.content?.title || element.tagType,
|
|
2894
2894
|
value: element.tagType,
|
|
2895
2895
|
filterKey: tagFilterKey,
|
|
2896
2896
|
contentType: element.tagType,
|
|
@@ -3037,6 +3037,7 @@ var extractAndOrganizeBlocks = (selectedTpls, allTpls) => {
|
|
|
3037
3037
|
contentType: tpl.kp_content_type,
|
|
3038
3038
|
blocks: allBlocks.filter((block) => block.valuePath.startsWith("tags.")).map((block) => ({
|
|
3039
3039
|
tagType: block.props.tagType,
|
|
3040
|
+
display: block.props?.shortLabel || block.props?.label,
|
|
3040
3041
|
comp: block.comp,
|
|
3041
3042
|
filterType: "tagType"
|
|
3042
3043
|
}))
|
package/dist/node.mjs
CHANGED
|
@@ -1052,13 +1052,13 @@ var init_AIChat = __esm({
|
|
|
1052
1052
|
default: "aiChat",
|
|
1053
1053
|
index: true
|
|
1054
1054
|
},
|
|
1055
|
-
//
|
|
1056
|
-
//
|
|
1057
|
-
//
|
|
1058
|
-
//
|
|
1059
|
-
//
|
|
1060
|
-
//
|
|
1061
|
-
|
|
1055
|
+
// Used exclusively by WidgetAskAI (the Ask AI widget inside Reports).
|
|
1056
|
+
// This field is NOT used by the standalone AskAI chat feature.
|
|
1057
|
+
// It is a SHA256 hash of (query + contentTypes + activeFilters), computed
|
|
1058
|
+
// on the backend. Enables content-addressable caching so that identical
|
|
1059
|
+
// WidgetAskAI configurations return cached responses instantly without
|
|
1060
|
+
// re-invoking the LLM.
|
|
1061
|
+
widgetAskAICacheKey: {
|
|
1062
1062
|
type: String,
|
|
1063
1063
|
sparse: true,
|
|
1064
1064
|
unique: true
|
|
@@ -2831,7 +2831,7 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
|
|
|
2831
2831
|
});
|
|
2832
2832
|
return {
|
|
2833
2833
|
filterId: isAnno ? `annoTags_${element.tagType}` : `tags_${element.tagType}`,
|
|
2834
|
-
display: allTpls.find((t) => t.kp_content_type === element.tagType)?.general?.content?.title || element.tagType,
|
|
2834
|
+
display: element.display || allTpls.find((t) => t.kp_content_type === element.tagType)?.general?.content?.title || element.tagType,
|
|
2835
2835
|
value: element.tagType,
|
|
2836
2836
|
filterKey: tagFilterKey,
|
|
2837
2837
|
contentType: element.tagType,
|
|
@@ -2978,6 +2978,7 @@ var extractAndOrganizeBlocks = (selectedTpls, allTpls) => {
|
|
|
2978
2978
|
contentType: tpl.kp_content_type,
|
|
2979
2979
|
blocks: allBlocks.filter((block) => block.valuePath.startsWith("tags.")).map((block) => ({
|
|
2980
2980
|
tagType: block.props.tagType,
|
|
2981
|
+
display: block.props?.shortLabel || block.props?.label,
|
|
2981
2982
|
comp: block.comp,
|
|
2982
2983
|
filterType: "tagType"
|
|
2983
2984
|
}))
|
package/dist/universal.js
CHANGED
|
@@ -1296,7 +1296,7 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
|
|
|
1296
1296
|
});
|
|
1297
1297
|
return {
|
|
1298
1298
|
filterId: isAnno ? `annoTags_${element.tagType}` : `tags_${element.tagType}`,
|
|
1299
|
-
display: allTpls.find((t) => t.kp_content_type === element.tagType)?.general?.content?.title || element.tagType,
|
|
1299
|
+
display: element.display || allTpls.find((t) => t.kp_content_type === element.tagType)?.general?.content?.title || element.tagType,
|
|
1300
1300
|
value: element.tagType,
|
|
1301
1301
|
filterKey: tagFilterKey,
|
|
1302
1302
|
contentType: element.tagType,
|
|
@@ -1443,6 +1443,7 @@ var extractAndOrganizeBlocks = (selectedTpls, allTpls) => {
|
|
|
1443
1443
|
contentType: tpl.kp_content_type,
|
|
1444
1444
|
blocks: allBlocks.filter((block) => block.valuePath.startsWith("tags.")).map((block) => ({
|
|
1445
1445
|
tagType: block.props.tagType,
|
|
1446
|
+
display: block.props?.shortLabel || block.props?.label,
|
|
1446
1447
|
comp: block.comp,
|
|
1447
1448
|
filterType: "tagType"
|
|
1448
1449
|
}))
|
package/dist/universal.mjs
CHANGED
|
@@ -1238,7 +1238,7 @@ var buildFilterConfigurations = ({ groups, type, selectedTpls, allTpls, isRollup
|
|
|
1238
1238
|
});
|
|
1239
1239
|
return {
|
|
1240
1240
|
filterId: isAnno ? `annoTags_${element.tagType}` : `tags_${element.tagType}`,
|
|
1241
|
-
display: allTpls.find((t) => t.kp_content_type === element.tagType)?.general?.content?.title || element.tagType,
|
|
1241
|
+
display: element.display || allTpls.find((t) => t.kp_content_type === element.tagType)?.general?.content?.title || element.tagType,
|
|
1242
1242
|
value: element.tagType,
|
|
1243
1243
|
filterKey: tagFilterKey,
|
|
1244
1244
|
contentType: element.tagType,
|
|
@@ -1385,6 +1385,7 @@ var extractAndOrganizeBlocks = (selectedTpls, allTpls) => {
|
|
|
1385
1385
|
contentType: tpl.kp_content_type,
|
|
1386
1386
|
blocks: allBlocks.filter((block) => block.valuePath.startsWith("tags.")).map((block) => ({
|
|
1387
1387
|
tagType: block.props.tagType,
|
|
1388
|
+
display: block.props?.shortLabel || block.props?.label,
|
|
1388
1389
|
comp: block.comp,
|
|
1389
1390
|
filterType: "tagType"
|
|
1390
1391
|
}))
|