@okf/ootils 1.28.4 → 1.29.0
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 +28 -24
- package/dist/browser.mjs +28 -24
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +35 -31
- package/dist/node.mjs +35 -31
- package/dist/universal.js +28 -24
- package/dist/universal.mjs +28 -24
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -1556,30 +1556,34 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
|
|
|
1556
1556
|
}
|
|
1557
1557
|
return acc;
|
|
1558
1558
|
}, []);
|
|
1559
|
-
const authorTagConfigs = authorTagGroups.map((block) =>
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1559
|
+
const authorTagConfigs = authorTagGroups.map((block) => {
|
|
1560
|
+
const tagTpl = allTpls.find((t) => t.kp_content_type === block.props.tagType);
|
|
1561
|
+
const tagTitle = tagTpl?.general?.content?.title || block.props.tagType;
|
|
1562
|
+
return {
|
|
1563
|
+
filterId: `authorTagFilter_${block.props.tagType}`,
|
|
1564
|
+
blockId: `authorTagFilter_${block.props.tagType}`,
|
|
1565
|
+
display: `Author Tag: ${tagTitle}`,
|
|
1566
|
+
value: block.tplContentTypes,
|
|
1567
|
+
filterKey: generateFilterKey({
|
|
1568
|
+
filterType: "rollupRelationshipType",
|
|
1569
|
+
relationshipValuePath: "meta.kp_contributed_by",
|
|
1570
|
+
rollupResourceTypes: block.tplContentTypes,
|
|
1571
|
+
tagType: block.props.tagType,
|
|
1572
|
+
scope: "doc"
|
|
1573
|
+
}),
|
|
1574
|
+
source: {
|
|
1575
|
+
filterType: "tagType",
|
|
1576
|
+
tagType: block.props.tagType,
|
|
1577
|
+
scope: "tags"
|
|
1578
|
+
},
|
|
1579
|
+
target: {
|
|
1580
|
+
filterType: "rollupRelationshipType",
|
|
1581
|
+
tagType: block.props.tagType,
|
|
1582
|
+
rollupResourceTypes: block.tplContentTypes,
|
|
1583
|
+
relationshipValuePath: "meta.kp_contributed_by"
|
|
1584
|
+
}
|
|
1585
|
+
};
|
|
1586
|
+
});
|
|
1583
1587
|
const commonAnnotationFilters = filterScopes.includes("anno") ? [{
|
|
1584
1588
|
sectionId: "commonAnnotationFilters",
|
|
1585
1589
|
sectionTitle: "Common Annotation Filters",
|
package/dist/browser.mjs
CHANGED
|
@@ -1498,30 +1498,34 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
|
|
|
1498
1498
|
}
|
|
1499
1499
|
return acc;
|
|
1500
1500
|
}, []);
|
|
1501
|
-
const authorTagConfigs = authorTagGroups.map((block) =>
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1501
|
+
const authorTagConfigs = authorTagGroups.map((block) => {
|
|
1502
|
+
const tagTpl = allTpls.find((t) => t.kp_content_type === block.props.tagType);
|
|
1503
|
+
const tagTitle = tagTpl?.general?.content?.title || block.props.tagType;
|
|
1504
|
+
return {
|
|
1505
|
+
filterId: `authorTagFilter_${block.props.tagType}`,
|
|
1506
|
+
blockId: `authorTagFilter_${block.props.tagType}`,
|
|
1507
|
+
display: `Author Tag: ${tagTitle}`,
|
|
1508
|
+
value: block.tplContentTypes,
|
|
1509
|
+
filterKey: generateFilterKey({
|
|
1510
|
+
filterType: "rollupRelationshipType",
|
|
1511
|
+
relationshipValuePath: "meta.kp_contributed_by",
|
|
1512
|
+
rollupResourceTypes: block.tplContentTypes,
|
|
1513
|
+
tagType: block.props.tagType,
|
|
1514
|
+
scope: "doc"
|
|
1515
|
+
}),
|
|
1516
|
+
source: {
|
|
1517
|
+
filterType: "tagType",
|
|
1518
|
+
tagType: block.props.tagType,
|
|
1519
|
+
scope: "tags"
|
|
1520
|
+
},
|
|
1521
|
+
target: {
|
|
1522
|
+
filterType: "rollupRelationshipType",
|
|
1523
|
+
tagType: block.props.tagType,
|
|
1524
|
+
rollupResourceTypes: block.tplContentTypes,
|
|
1525
|
+
relationshipValuePath: "meta.kp_contributed_by"
|
|
1526
|
+
}
|
|
1527
|
+
};
|
|
1528
|
+
});
|
|
1525
1529
|
const commonAnnotationFilters = filterScopes.includes("anno") ? [{
|
|
1526
1530
|
sectionId: "commonAnnotationFilters",
|
|
1527
1531
|
sectionTitle: "Common Annotation Filters",
|
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
|
|
@@ -3150,30 +3150,34 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
|
|
|
3150
3150
|
}
|
|
3151
3151
|
return acc;
|
|
3152
3152
|
}, []);
|
|
3153
|
-
const authorTagConfigs = authorTagGroups.map((block) =>
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3153
|
+
const authorTagConfigs = authorTagGroups.map((block) => {
|
|
3154
|
+
const tagTpl = allTpls.find((t) => t.kp_content_type === block.props.tagType);
|
|
3155
|
+
const tagTitle = tagTpl?.general?.content?.title || block.props.tagType;
|
|
3156
|
+
return {
|
|
3157
|
+
filterId: `authorTagFilter_${block.props.tagType}`,
|
|
3158
|
+
blockId: `authorTagFilter_${block.props.tagType}`,
|
|
3159
|
+
display: `Author Tag: ${tagTitle}`,
|
|
3160
|
+
value: block.tplContentTypes,
|
|
3161
|
+
filterKey: generateFilterKey({
|
|
3162
|
+
filterType: "rollupRelationshipType",
|
|
3163
|
+
relationshipValuePath: "meta.kp_contributed_by",
|
|
3164
|
+
rollupResourceTypes: block.tplContentTypes,
|
|
3165
|
+
tagType: block.props.tagType,
|
|
3166
|
+
scope: "doc"
|
|
3167
|
+
}),
|
|
3168
|
+
source: {
|
|
3169
|
+
filterType: "tagType",
|
|
3170
|
+
tagType: block.props.tagType,
|
|
3171
|
+
scope: "tags"
|
|
3172
|
+
},
|
|
3173
|
+
target: {
|
|
3174
|
+
filterType: "rollupRelationshipType",
|
|
3175
|
+
tagType: block.props.tagType,
|
|
3176
|
+
rollupResourceTypes: block.tplContentTypes,
|
|
3177
|
+
relationshipValuePath: "meta.kp_contributed_by"
|
|
3178
|
+
}
|
|
3179
|
+
};
|
|
3180
|
+
});
|
|
3177
3181
|
const commonAnnotationFilters = filterScopes.includes("anno") ? [{
|
|
3178
3182
|
sectionId: "commonAnnotationFilters",
|
|
3179
3183
|
sectionTitle: "Common Annotation Filters",
|
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
|
|
@@ -3091,30 +3091,34 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
|
|
|
3091
3091
|
}
|
|
3092
3092
|
return acc;
|
|
3093
3093
|
}, []);
|
|
3094
|
-
const authorTagConfigs = authorTagGroups.map((block) =>
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3094
|
+
const authorTagConfigs = authorTagGroups.map((block) => {
|
|
3095
|
+
const tagTpl = allTpls.find((t) => t.kp_content_type === block.props.tagType);
|
|
3096
|
+
const tagTitle = tagTpl?.general?.content?.title || block.props.tagType;
|
|
3097
|
+
return {
|
|
3098
|
+
filterId: `authorTagFilter_${block.props.tagType}`,
|
|
3099
|
+
blockId: `authorTagFilter_${block.props.tagType}`,
|
|
3100
|
+
display: `Author Tag: ${tagTitle}`,
|
|
3101
|
+
value: block.tplContentTypes,
|
|
3102
|
+
filterKey: generateFilterKey({
|
|
3103
|
+
filterType: "rollupRelationshipType",
|
|
3104
|
+
relationshipValuePath: "meta.kp_contributed_by",
|
|
3105
|
+
rollupResourceTypes: block.tplContentTypes,
|
|
3106
|
+
tagType: block.props.tagType,
|
|
3107
|
+
scope: "doc"
|
|
3108
|
+
}),
|
|
3109
|
+
source: {
|
|
3110
|
+
filterType: "tagType",
|
|
3111
|
+
tagType: block.props.tagType,
|
|
3112
|
+
scope: "tags"
|
|
3113
|
+
},
|
|
3114
|
+
target: {
|
|
3115
|
+
filterType: "rollupRelationshipType",
|
|
3116
|
+
tagType: block.props.tagType,
|
|
3117
|
+
rollupResourceTypes: block.tplContentTypes,
|
|
3118
|
+
relationshipValuePath: "meta.kp_contributed_by"
|
|
3119
|
+
}
|
|
3120
|
+
};
|
|
3121
|
+
});
|
|
3118
3122
|
const commonAnnotationFilters = filterScopes.includes("anno") ? [{
|
|
3119
3123
|
sectionId: "commonAnnotationFilters",
|
|
3120
3124
|
sectionTitle: "Common Annotation Filters",
|
package/dist/universal.js
CHANGED
|
@@ -1556,30 +1556,34 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
|
|
|
1556
1556
|
}
|
|
1557
1557
|
return acc;
|
|
1558
1558
|
}, []);
|
|
1559
|
-
const authorTagConfigs = authorTagGroups.map((block) =>
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1559
|
+
const authorTagConfigs = authorTagGroups.map((block) => {
|
|
1560
|
+
const tagTpl = allTpls.find((t) => t.kp_content_type === block.props.tagType);
|
|
1561
|
+
const tagTitle = tagTpl?.general?.content?.title || block.props.tagType;
|
|
1562
|
+
return {
|
|
1563
|
+
filterId: `authorTagFilter_${block.props.tagType}`,
|
|
1564
|
+
blockId: `authorTagFilter_${block.props.tagType}`,
|
|
1565
|
+
display: `Author Tag: ${tagTitle}`,
|
|
1566
|
+
value: block.tplContentTypes,
|
|
1567
|
+
filterKey: generateFilterKey({
|
|
1568
|
+
filterType: "rollupRelationshipType",
|
|
1569
|
+
relationshipValuePath: "meta.kp_contributed_by",
|
|
1570
|
+
rollupResourceTypes: block.tplContentTypes,
|
|
1571
|
+
tagType: block.props.tagType,
|
|
1572
|
+
scope: "doc"
|
|
1573
|
+
}),
|
|
1574
|
+
source: {
|
|
1575
|
+
filterType: "tagType",
|
|
1576
|
+
tagType: block.props.tagType,
|
|
1577
|
+
scope: "tags"
|
|
1578
|
+
},
|
|
1579
|
+
target: {
|
|
1580
|
+
filterType: "rollupRelationshipType",
|
|
1581
|
+
tagType: block.props.tagType,
|
|
1582
|
+
rollupResourceTypes: block.tplContentTypes,
|
|
1583
|
+
relationshipValuePath: "meta.kp_contributed_by"
|
|
1584
|
+
}
|
|
1585
|
+
};
|
|
1586
|
+
});
|
|
1583
1587
|
const commonAnnotationFilters = filterScopes.includes("anno") ? [{
|
|
1584
1588
|
sectionId: "commonAnnotationFilters",
|
|
1585
1589
|
sectionTitle: "Common Annotation Filters",
|
package/dist/universal.mjs
CHANGED
|
@@ -1498,30 +1498,34 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
|
|
|
1498
1498
|
}
|
|
1499
1499
|
return acc;
|
|
1500
1500
|
}, []);
|
|
1501
|
-
const authorTagConfigs = authorTagGroups.map((block) =>
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1501
|
+
const authorTagConfigs = authorTagGroups.map((block) => {
|
|
1502
|
+
const tagTpl = allTpls.find((t) => t.kp_content_type === block.props.tagType);
|
|
1503
|
+
const tagTitle = tagTpl?.general?.content?.title || block.props.tagType;
|
|
1504
|
+
return {
|
|
1505
|
+
filterId: `authorTagFilter_${block.props.tagType}`,
|
|
1506
|
+
blockId: `authorTagFilter_${block.props.tagType}`,
|
|
1507
|
+
display: `Author Tag: ${tagTitle}`,
|
|
1508
|
+
value: block.tplContentTypes,
|
|
1509
|
+
filterKey: generateFilterKey({
|
|
1510
|
+
filterType: "rollupRelationshipType",
|
|
1511
|
+
relationshipValuePath: "meta.kp_contributed_by",
|
|
1512
|
+
rollupResourceTypes: block.tplContentTypes,
|
|
1513
|
+
tagType: block.props.tagType,
|
|
1514
|
+
scope: "doc"
|
|
1515
|
+
}),
|
|
1516
|
+
source: {
|
|
1517
|
+
filterType: "tagType",
|
|
1518
|
+
tagType: block.props.tagType,
|
|
1519
|
+
scope: "tags"
|
|
1520
|
+
},
|
|
1521
|
+
target: {
|
|
1522
|
+
filterType: "rollupRelationshipType",
|
|
1523
|
+
tagType: block.props.tagType,
|
|
1524
|
+
rollupResourceTypes: block.tplContentTypes,
|
|
1525
|
+
relationshipValuePath: "meta.kp_contributed_by"
|
|
1526
|
+
}
|
|
1527
|
+
};
|
|
1528
|
+
});
|
|
1525
1529
|
const commonAnnotationFilters = filterScopes.includes("anno") ? [{
|
|
1526
1530
|
sectionId: "commonAnnotationFilters",
|
|
1527
1531
|
sectionTitle: "Common Annotation Filters",
|