@okf/ootils 1.28.3 → 1.28.5

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.
@@ -882,6 +882,22 @@ declare const getRoutePathToModerateContent: ({ contentType, contentId, SELF_MAN
882
882
  };
883
883
  }) => string;
884
884
 
885
+ declare const getRoutePathToMyContent: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
886
+ SELF_MANAGED_BASE_CONFIGS?: {
887
+ enable?: boolean;
888
+ [key: string]: any;
889
+ };
890
+ activeTab?: string;
891
+ }) => string;
892
+
893
+ declare const getRoutePathToReviewDashboard: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
894
+ SELF_MANAGED_BASE_CONFIGS?: {
895
+ enable?: boolean;
896
+ [key: string]: any;
897
+ };
898
+ activeTab?: string;
899
+ }) => string;
900
+
885
901
  declare const buildFilterConfigurations: ({ groups, type, selectedTpls, allTpls, isRollup, isAnno }: {
886
902
  groups: any[];
887
903
  type: string;
@@ -1323,4 +1339,4 @@ declare const UI_CONTENT: {
1323
1339
  */
1324
1340
  declare const genCleanCamelCaseId: (id: string) => string;
1325
1341
 
1326
- export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
1342
+ export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToMyContent, getRoutePathToPublishedContent, getRoutePathToReviewDashboard, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
package/dist/browser.d.ts CHANGED
@@ -882,6 +882,22 @@ declare const getRoutePathToModerateContent: ({ contentType, contentId, SELF_MAN
882
882
  };
883
883
  }) => string;
884
884
 
885
+ declare const getRoutePathToMyContent: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
886
+ SELF_MANAGED_BASE_CONFIGS?: {
887
+ enable?: boolean;
888
+ [key: string]: any;
889
+ };
890
+ activeTab?: string;
891
+ }) => string;
892
+
893
+ declare const getRoutePathToReviewDashboard: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
894
+ SELF_MANAGED_BASE_CONFIGS?: {
895
+ enable?: boolean;
896
+ [key: string]: any;
897
+ };
898
+ activeTab?: string;
899
+ }) => string;
900
+
885
901
  declare const buildFilterConfigurations: ({ groups, type, selectedTpls, allTpls, isRollup, isAnno }: {
886
902
  groups: any[];
887
903
  type: string;
@@ -1323,4 +1339,4 @@ declare const UI_CONTENT: {
1323
1339
  */
1324
1340
  declare const genCleanCamelCaseId: (id: string) => string;
1325
1341
 
1326
- export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
1342
+ export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToMyContent, getRoutePathToPublishedContent, getRoutePathToReviewDashboard, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
package/dist/browser.js CHANGED
@@ -42,7 +42,9 @@ __export(browser_exports, {
42
42
  getRollupPossibilities: () => getRollupPossibilities,
43
43
  getRoutePathToEditContent: () => getRoutePathToEditContent,
44
44
  getRoutePathToModerateContent: () => getRoutePathToModerateContent,
45
+ getRoutePathToMyContent: () => getRoutePathToMyContent,
45
46
  getRoutePathToPublishedContent: () => getRoutePathToPublishedContent,
47
+ getRoutePathToReviewDashboard: () => getRoutePathToReviewDashboard,
46
48
  getVal: () => getVal,
47
49
  mergeAnnoDataIntoAnnotationsTags: () => mergeAnnoDataIntoAnnotationsTags,
48
50
  parseSpecialConfigSyntax: () => parseSpecialConfigSyntax,
@@ -996,6 +998,20 @@ var getRoutePathToModerateContent = ({
996
998
  return sm_link ? parseSpecialConfigSyntax({ config: sm_link, content: { contentType, contentId } }) : standard_link;
997
999
  };
998
1000
 
1001
+ // src/utils/routePathGenerators/getRoutePathToMyContent.ts
1002
+ var getRoutePathToMyContent = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
1003
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
1004
+ const base = sm ? "/my-content" : "/my-dashboard/MyContent";
1005
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
1006
+ };
1007
+
1008
+ // src/utils/routePathGenerators/getRoutePathToReviewDashboard.ts
1009
+ var getRoutePathToReviewDashboard = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
1010
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
1011
+ const base = sm ? "/review-dashboard" : "/my-dashboard/ModQueue";
1012
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
1013
+ };
1014
+
999
1015
  // src/UI_CONTENT.ts
1000
1016
  var UI_CONTENT = {
1001
1017
  autoGenFilterConfigs: {
@@ -1540,30 +1556,34 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
1540
1556
  }
1541
1557
  return acc;
1542
1558
  }, []);
1543
- const authorTagConfigs = authorTagGroups.map((block) => ({
1544
- filterId: `authorTagFilter_${block.props.tagType}`,
1545
- blockId: `authorTagFilter_${block.props.tagType}`,
1546
- display: `Author Tag: ${block.props.tagType}`,
1547
- value: block.tplContentTypes,
1548
- filterKey: generateFilterKey({
1549
- filterType: "rollupRelationshipType",
1550
- relationshipValuePath: "meta.kp_contributed_by",
1551
- rollupResourceTypes: block.tplContentTypes,
1552
- tagType: block.props.tagType,
1553
- scope: "doc"
1554
- }),
1555
- source: {
1556
- filterType: "tagType",
1557
- tagType: block.props.tagType,
1558
- scope: "tags"
1559
- },
1560
- target: {
1561
- filterType: "rollupRelationshipType",
1562
- tagType: block.props.tagType,
1563
- rollupResourceTypes: block.tplContentTypes,
1564
- relationshipValuePath: "meta.kp_contributed_by"
1565
- }
1566
- }));
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
+ });
1567
1587
  const commonAnnotationFilters = filterScopes.includes("anno") ? [{
1568
1588
  sectionId: "commonAnnotationFilters",
1569
1589
  sectionTitle: "Common Annotation Filters",
@@ -2197,7 +2217,9 @@ var genCleanCamelCaseId = (id) => {
2197
2217
  getRollupPossibilities,
2198
2218
  getRoutePathToEditContent,
2199
2219
  getRoutePathToModerateContent,
2220
+ getRoutePathToMyContent,
2200
2221
  getRoutePathToPublishedContent,
2222
+ getRoutePathToReviewDashboard,
2201
2223
  getVal,
2202
2224
  mergeAnnoDataIntoAnnotationsTags,
2203
2225
  parseSpecialConfigSyntax,
package/dist/browser.mjs CHANGED
@@ -940,6 +940,20 @@ var getRoutePathToModerateContent = ({
940
940
  return sm_link ? parseSpecialConfigSyntax({ config: sm_link, content: { contentType, contentId } }) : standard_link;
941
941
  };
942
942
 
943
+ // src/utils/routePathGenerators/getRoutePathToMyContent.ts
944
+ var getRoutePathToMyContent = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
945
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
946
+ const base = sm ? "/my-content" : "/my-dashboard/MyContent";
947
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
948
+ };
949
+
950
+ // src/utils/routePathGenerators/getRoutePathToReviewDashboard.ts
951
+ var getRoutePathToReviewDashboard = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
952
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
953
+ const base = sm ? "/review-dashboard" : "/my-dashboard/ModQueue";
954
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
955
+ };
956
+
943
957
  // src/UI_CONTENT.ts
944
958
  var UI_CONTENT = {
945
959
  autoGenFilterConfigs: {
@@ -1484,30 +1498,34 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
1484
1498
  }
1485
1499
  return acc;
1486
1500
  }, []);
1487
- const authorTagConfigs = authorTagGroups.map((block) => ({
1488
- filterId: `authorTagFilter_${block.props.tagType}`,
1489
- blockId: `authorTagFilter_${block.props.tagType}`,
1490
- display: `Author Tag: ${block.props.tagType}`,
1491
- value: block.tplContentTypes,
1492
- filterKey: generateFilterKey({
1493
- filterType: "rollupRelationshipType",
1494
- relationshipValuePath: "meta.kp_contributed_by",
1495
- rollupResourceTypes: block.tplContentTypes,
1496
- tagType: block.props.tagType,
1497
- scope: "doc"
1498
- }),
1499
- source: {
1500
- filterType: "tagType",
1501
- tagType: block.props.tagType,
1502
- scope: "tags"
1503
- },
1504
- target: {
1505
- filterType: "rollupRelationshipType",
1506
- tagType: block.props.tagType,
1507
- rollupResourceTypes: block.tplContentTypes,
1508
- relationshipValuePath: "meta.kp_contributed_by"
1509
- }
1510
- }));
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
+ });
1511
1529
  const commonAnnotationFilters = filterScopes.includes("anno") ? [{
1512
1530
  sectionId: "commonAnnotationFilters",
1513
1531
  sectionTitle: "Common Annotation Filters",
@@ -2140,7 +2158,9 @@ export {
2140
2158
  getRollupPossibilities,
2141
2159
  getRoutePathToEditContent,
2142
2160
  getRoutePathToModerateContent,
2161
+ getRoutePathToMyContent,
2143
2162
  getRoutePathToPublishedContent,
2163
+ getRoutePathToReviewDashboard,
2144
2164
  getVal,
2145
2165
  mergeAnnoDataIntoAnnotationsTags,
2146
2166
  parseSpecialConfigSyntax,
package/dist/node.d.mts CHANGED
@@ -889,6 +889,22 @@ declare const getRoutePathToModerateContent: ({ contentType, contentId, SELF_MAN
889
889
  };
890
890
  }) => string;
891
891
 
892
+ declare const getRoutePathToMyContent: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
893
+ SELF_MANAGED_BASE_CONFIGS?: {
894
+ enable?: boolean;
895
+ [key: string]: any;
896
+ };
897
+ activeTab?: string;
898
+ }) => string;
899
+
900
+ declare const getRoutePathToReviewDashboard: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
901
+ SELF_MANAGED_BASE_CONFIGS?: {
902
+ enable?: boolean;
903
+ [key: string]: any;
904
+ };
905
+ activeTab?: string;
906
+ }) => string;
907
+
892
908
  declare const buildFilterConfigurations: ({ groups, type, selectedTpls, allTpls, isRollup, isAnno }: {
893
909
  groups: any[];
894
910
  type: string;
@@ -2060,4 +2076,4 @@ declare function GET_GLOBAL_BULLMQ_CONFIG({ env, redisCredentials }: {
2060
2076
  };
2061
2077
  }): Object;
2062
2078
 
2063
- export { AIChatSchema, AnnosElasticSyncProducer, AnnotationSchema, BASE_BULLMQ_CONFIG, BaseProducer, BaseWorker, ChunksElasticSyncProducer, ElasticSearchConnector, FILTER_IDS, GET_GLOBAL_BULLMQ_CONFIG, GeneratedEntitiesSchema, GeneratedTopicsSchema, MongoConnector, PlatformConfigsSchema, ProducerManager, RedisCacheConnector, SecretManagerConnector, TEMP_removeDuplicateFilters, TplSchema, UI_CONTENT, WorkerManager, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedEntitiesModelByTenant, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
2079
+ export { AIChatSchema, AnnosElasticSyncProducer, AnnotationSchema, BASE_BULLMQ_CONFIG, BaseProducer, BaseWorker, ChunksElasticSyncProducer, ElasticSearchConnector, FILTER_IDS, GET_GLOBAL_BULLMQ_CONFIG, GeneratedEntitiesSchema, GeneratedTopicsSchema, MongoConnector, PlatformConfigsSchema, ProducerManager, RedisCacheConnector, SecretManagerConnector, TEMP_removeDuplicateFilters, TplSchema, UI_CONTENT, WorkerManager, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedEntitiesModelByTenant, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToMyContent, getRoutePathToPublishedContent, getRoutePathToReviewDashboard, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
package/dist/node.d.ts CHANGED
@@ -889,6 +889,22 @@ declare const getRoutePathToModerateContent: ({ contentType, contentId, SELF_MAN
889
889
  };
890
890
  }) => string;
891
891
 
892
+ declare const getRoutePathToMyContent: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
893
+ SELF_MANAGED_BASE_CONFIGS?: {
894
+ enable?: boolean;
895
+ [key: string]: any;
896
+ };
897
+ activeTab?: string;
898
+ }) => string;
899
+
900
+ declare const getRoutePathToReviewDashboard: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
901
+ SELF_MANAGED_BASE_CONFIGS?: {
902
+ enable?: boolean;
903
+ [key: string]: any;
904
+ };
905
+ activeTab?: string;
906
+ }) => string;
907
+
892
908
  declare const buildFilterConfigurations: ({ groups, type, selectedTpls, allTpls, isRollup, isAnno }: {
893
909
  groups: any[];
894
910
  type: string;
@@ -2060,4 +2076,4 @@ declare function GET_GLOBAL_BULLMQ_CONFIG({ env, redisCredentials }: {
2060
2076
  };
2061
2077
  }): Object;
2062
2078
 
2063
- export { AIChatSchema, AnnosElasticSyncProducer, AnnotationSchema, BASE_BULLMQ_CONFIG, BaseProducer, BaseWorker, ChunksElasticSyncProducer, ElasticSearchConnector, FILTER_IDS, GET_GLOBAL_BULLMQ_CONFIG, GeneratedEntitiesSchema, GeneratedTopicsSchema, MongoConnector, PlatformConfigsSchema, ProducerManager, RedisCacheConnector, SecretManagerConnector, TEMP_removeDuplicateFilters, TplSchema, UI_CONTENT, WorkerManager, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedEntitiesModelByTenant, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
2079
+ export { AIChatSchema, AnnosElasticSyncProducer, AnnotationSchema, BASE_BULLMQ_CONFIG, BaseProducer, BaseWorker, ChunksElasticSyncProducer, ElasticSearchConnector, FILTER_IDS, GET_GLOBAL_BULLMQ_CONFIG, GeneratedEntitiesSchema, GeneratedTopicsSchema, MongoConnector, PlatformConfigsSchema, ProducerManager, RedisCacheConnector, SecretManagerConnector, TEMP_removeDuplicateFilters, TplSchema, UI_CONTENT, WorkerManager, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getAIChatModelByTenant, getAnnotationsModelByTenant, getDbByTenant, getFilterKeyForBlock, getGeneratedEntitiesModelByTenant, getGeneratedTopicsModelByTenant, getModelByTenant, getPlatformConfigsModelByTenant, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToMyContent, getRoutePathToPublishedContent, getRoutePathToReviewDashboard, getTplModelByTenant, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
package/dist/node.js CHANGED
@@ -1987,7 +1987,9 @@ __export(node_exports, {
1987
1987
  getRollupPossibilities: () => getRollupPossibilities,
1988
1988
  getRoutePathToEditContent: () => getRoutePathToEditContent,
1989
1989
  getRoutePathToModerateContent: () => getRoutePathToModerateContent,
1990
+ getRoutePathToMyContent: () => getRoutePathToMyContent,
1990
1991
  getRoutePathToPublishedContent: () => getRoutePathToPublishedContent,
1992
+ getRoutePathToReviewDashboard: () => getRoutePathToReviewDashboard,
1991
1993
  getTplModelByTenant: () => import_getModelByTenant2.getTplModelByTenant,
1992
1994
  getVal: () => getVal,
1993
1995
  mergeAnnoDataIntoAnnotationsTags: () => mergeAnnoDataIntoAnnotationsTags,
@@ -2590,6 +2592,20 @@ var getRoutePathToModerateContent = ({
2590
2592
  return sm_link ? parseSpecialConfigSyntax({ config: sm_link, content: { contentType, contentId } }) : standard_link;
2591
2593
  };
2592
2594
 
2595
+ // src/utils/routePathGenerators/getRoutePathToMyContent.ts
2596
+ var getRoutePathToMyContent = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
2597
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
2598
+ const base = sm ? "/my-content" : "/my-dashboard/MyContent";
2599
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
2600
+ };
2601
+
2602
+ // src/utils/routePathGenerators/getRoutePathToReviewDashboard.ts
2603
+ var getRoutePathToReviewDashboard = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
2604
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
2605
+ const base = sm ? "/review-dashboard" : "/my-dashboard/ModQueue";
2606
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
2607
+ };
2608
+
2593
2609
  // src/UI_CONTENT.ts
2594
2610
  var UI_CONTENT = {
2595
2611
  autoGenFilterConfigs: {
@@ -3134,30 +3150,34 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
3134
3150
  }
3135
3151
  return acc;
3136
3152
  }, []);
3137
- const authorTagConfigs = authorTagGroups.map((block) => ({
3138
- filterId: `authorTagFilter_${block.props.tagType}`,
3139
- blockId: `authorTagFilter_${block.props.tagType}`,
3140
- display: `Author Tag: ${block.props.tagType}`,
3141
- value: block.tplContentTypes,
3142
- filterKey: generateFilterKey({
3143
- filterType: "rollupRelationshipType",
3144
- relationshipValuePath: "meta.kp_contributed_by",
3145
- rollupResourceTypes: block.tplContentTypes,
3146
- tagType: block.props.tagType,
3147
- scope: "doc"
3148
- }),
3149
- source: {
3150
- filterType: "tagType",
3151
- tagType: block.props.tagType,
3152
- scope: "tags"
3153
- },
3154
- target: {
3155
- filterType: "rollupRelationshipType",
3156
- tagType: block.props.tagType,
3157
- rollupResourceTypes: block.tplContentTypes,
3158
- relationshipValuePath: "meta.kp_contributed_by"
3159
- }
3160
- }));
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
+ });
3161
3181
  const commonAnnotationFilters = filterScopes.includes("anno") ? [{
3162
3182
  sectionId: "commonAnnotationFilters",
3163
3183
  sectionTitle: "Common Annotation Filters",
@@ -4199,7 +4219,9 @@ var import_GET_GLOBAL_BULLMQ_CONFIG = __toESM(require_GET_GLOBAL_BULLMQ_CONFIG()
4199
4219
  getRollupPossibilities,
4200
4220
  getRoutePathToEditContent,
4201
4221
  getRoutePathToModerateContent,
4222
+ getRoutePathToMyContent,
4202
4223
  getRoutePathToPublishedContent,
4224
+ getRoutePathToReviewDashboard,
4203
4225
  getTplModelByTenant,
4204
4226
  getVal,
4205
4227
  mergeAnnoDataIntoAnnotationsTags,
package/dist/node.mjs CHANGED
@@ -2533,6 +2533,20 @@ var getRoutePathToModerateContent = ({
2533
2533
  return sm_link ? parseSpecialConfigSyntax({ config: sm_link, content: { contentType, contentId } }) : standard_link;
2534
2534
  };
2535
2535
 
2536
+ // src/utils/routePathGenerators/getRoutePathToMyContent.ts
2537
+ var getRoutePathToMyContent = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
2538
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
2539
+ const base = sm ? "/my-content" : "/my-dashboard/MyContent";
2540
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
2541
+ };
2542
+
2543
+ // src/utils/routePathGenerators/getRoutePathToReviewDashboard.ts
2544
+ var getRoutePathToReviewDashboard = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
2545
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
2546
+ const base = sm ? "/review-dashboard" : "/my-dashboard/ModQueue";
2547
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
2548
+ };
2549
+
2536
2550
  // src/UI_CONTENT.ts
2537
2551
  var UI_CONTENT = {
2538
2552
  autoGenFilterConfigs: {
@@ -3077,30 +3091,34 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
3077
3091
  }
3078
3092
  return acc;
3079
3093
  }, []);
3080
- const authorTagConfigs = authorTagGroups.map((block) => ({
3081
- filterId: `authorTagFilter_${block.props.tagType}`,
3082
- blockId: `authorTagFilter_${block.props.tagType}`,
3083
- display: `Author Tag: ${block.props.tagType}`,
3084
- value: block.tplContentTypes,
3085
- filterKey: generateFilterKey({
3086
- filterType: "rollupRelationshipType",
3087
- relationshipValuePath: "meta.kp_contributed_by",
3088
- rollupResourceTypes: block.tplContentTypes,
3089
- tagType: block.props.tagType,
3090
- scope: "doc"
3091
- }),
3092
- source: {
3093
- filterType: "tagType",
3094
- tagType: block.props.tagType,
3095
- scope: "tags"
3096
- },
3097
- target: {
3098
- filterType: "rollupRelationshipType",
3099
- tagType: block.props.tagType,
3100
- rollupResourceTypes: block.tplContentTypes,
3101
- relationshipValuePath: "meta.kp_contributed_by"
3102
- }
3103
- }));
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
+ });
3104
3122
  const commonAnnotationFilters = filterScopes.includes("anno") ? [{
3105
3123
  sectionId: "commonAnnotationFilters",
3106
3124
  sectionTitle: "Common Annotation Filters",
@@ -4157,7 +4175,9 @@ export {
4157
4175
  getRollupPossibilities,
4158
4176
  getRoutePathToEditContent,
4159
4177
  getRoutePathToModerateContent,
4178
+ getRoutePathToMyContent,
4160
4179
  getRoutePathToPublishedContent,
4180
+ getRoutePathToReviewDashboard,
4161
4181
  export_getTplModelByTenant as getTplModelByTenant,
4162
4182
  getVal,
4163
4183
  mergeAnnoDataIntoAnnotationsTags,
@@ -882,6 +882,22 @@ declare const getRoutePathToModerateContent: ({ contentType, contentId, SELF_MAN
882
882
  };
883
883
  }) => string;
884
884
 
885
+ declare const getRoutePathToMyContent: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
886
+ SELF_MANAGED_BASE_CONFIGS?: {
887
+ enable?: boolean;
888
+ [key: string]: any;
889
+ };
890
+ activeTab?: string;
891
+ }) => string;
892
+
893
+ declare const getRoutePathToReviewDashboard: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
894
+ SELF_MANAGED_BASE_CONFIGS?: {
895
+ enable?: boolean;
896
+ [key: string]: any;
897
+ };
898
+ activeTab?: string;
899
+ }) => string;
900
+
885
901
  declare const buildFilterConfigurations: ({ groups, type, selectedTpls, allTpls, isRollup, isAnno }: {
886
902
  groups: any[];
887
903
  type: string;
@@ -1323,4 +1339,4 @@ declare const UI_CONTENT: {
1323
1339
  */
1324
1340
  declare const genCleanCamelCaseId: (id: string) => string;
1325
1341
 
1326
- export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
1342
+ export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToMyContent, getRoutePathToPublishedContent, getRoutePathToReviewDashboard, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
@@ -882,6 +882,22 @@ declare const getRoutePathToModerateContent: ({ contentType, contentId, SELF_MAN
882
882
  };
883
883
  }) => string;
884
884
 
885
+ declare const getRoutePathToMyContent: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
886
+ SELF_MANAGED_BASE_CONFIGS?: {
887
+ enable?: boolean;
888
+ [key: string]: any;
889
+ };
890
+ activeTab?: string;
891
+ }) => string;
892
+
893
+ declare const getRoutePathToReviewDashboard: ({ SELF_MANAGED_BASE_CONFIGS, activeTab }?: {
894
+ SELF_MANAGED_BASE_CONFIGS?: {
895
+ enable?: boolean;
896
+ [key: string]: any;
897
+ };
898
+ activeTab?: string;
899
+ }) => string;
900
+
885
901
  declare const buildFilterConfigurations: ({ groups, type, selectedTpls, allTpls, isRollup, isAnno }: {
886
902
  groups: any[];
887
903
  type: string;
@@ -1323,4 +1339,4 @@ declare const UI_CONTENT: {
1323
1339
  */
1324
1340
  declare const genCleanCamelCaseId: (id: string) => string;
1325
1341
 
1326
- export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToPublishedContent, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
1342
+ export { BASE_BULLMQ_CONFIG, FILTER_IDS, TEMP_removeDuplicateFilters, UI_CONTENT, _self_managed_buildAnnoHierarchyConfig, _self_managed_buildDocHierarchyConfig, _self_managed_getFixedAnnoRollupBlocks, _self_managed_getFixedAnnoTagBlock, autoGenFilterConfigsFromTpl, buildFilterConfigurations, compareAndGroupBlocks, deleteVal, extractAllBlocksFromTpl, extractAndOrganizeBlocks, genCleanCamelCaseId, genTagId, generateFilterKey, getFilterKeyForBlock, getPlatformContextContent, getRollupPossibilities, getRoutePathToEditContent, getRoutePathToModerateContent, getRoutePathToMyContent, getRoutePathToPublishedContent, getRoutePathToReviewDashboard, getVal, mergeAnnoDataIntoAnnotationsTags, parseSpecialConfigSyntax, processAuthorAndCommonFilters, _recursExtractBlocks as recursivelyExtractBlocks, segrigateDocs, setVal, toArray };
package/dist/universal.js CHANGED
@@ -42,7 +42,9 @@ __export(universal_exports, {
42
42
  getRollupPossibilities: () => getRollupPossibilities,
43
43
  getRoutePathToEditContent: () => getRoutePathToEditContent,
44
44
  getRoutePathToModerateContent: () => getRoutePathToModerateContent,
45
+ getRoutePathToMyContent: () => getRoutePathToMyContent,
45
46
  getRoutePathToPublishedContent: () => getRoutePathToPublishedContent,
47
+ getRoutePathToReviewDashboard: () => getRoutePathToReviewDashboard,
46
48
  getVal: () => getVal,
47
49
  mergeAnnoDataIntoAnnotationsTags: () => mergeAnnoDataIntoAnnotationsTags,
48
50
  parseSpecialConfigSyntax: () => parseSpecialConfigSyntax,
@@ -996,6 +998,20 @@ var getRoutePathToModerateContent = ({
996
998
  return sm_link ? parseSpecialConfigSyntax({ config: sm_link, content: { contentType, contentId } }) : standard_link;
997
999
  };
998
1000
 
1001
+ // src/utils/routePathGenerators/getRoutePathToMyContent.ts
1002
+ var getRoutePathToMyContent = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
1003
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
1004
+ const base = sm ? "/my-content" : "/my-dashboard/MyContent";
1005
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
1006
+ };
1007
+
1008
+ // src/utils/routePathGenerators/getRoutePathToReviewDashboard.ts
1009
+ var getRoutePathToReviewDashboard = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
1010
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
1011
+ const base = sm ? "/review-dashboard" : "/my-dashboard/ModQueue";
1012
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
1013
+ };
1014
+
999
1015
  // src/UI_CONTENT.ts
1000
1016
  var UI_CONTENT = {
1001
1017
  autoGenFilterConfigs: {
@@ -1540,30 +1556,34 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
1540
1556
  }
1541
1557
  return acc;
1542
1558
  }, []);
1543
- const authorTagConfigs = authorTagGroups.map((block) => ({
1544
- filterId: `authorTagFilter_${block.props.tagType}`,
1545
- blockId: `authorTagFilter_${block.props.tagType}`,
1546
- display: `Author Tag: ${block.props.tagType}`,
1547
- value: block.tplContentTypes,
1548
- filterKey: generateFilterKey({
1549
- filterType: "rollupRelationshipType",
1550
- relationshipValuePath: "meta.kp_contributed_by",
1551
- rollupResourceTypes: block.tplContentTypes,
1552
- tagType: block.props.tagType,
1553
- scope: "doc"
1554
- }),
1555
- source: {
1556
- filterType: "tagType",
1557
- tagType: block.props.tagType,
1558
- scope: "tags"
1559
- },
1560
- target: {
1561
- filterType: "rollupRelationshipType",
1562
- tagType: block.props.tagType,
1563
- rollupResourceTypes: block.tplContentTypes,
1564
- relationshipValuePath: "meta.kp_contributed_by"
1565
- }
1566
- }));
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
+ });
1567
1587
  const commonAnnotationFilters = filterScopes.includes("anno") ? [{
1568
1588
  sectionId: "commonAnnotationFilters",
1569
1589
  sectionTitle: "Common Annotation Filters",
@@ -2197,7 +2217,9 @@ var genCleanCamelCaseId = (id) => {
2197
2217
  getRollupPossibilities,
2198
2218
  getRoutePathToEditContent,
2199
2219
  getRoutePathToModerateContent,
2220
+ getRoutePathToMyContent,
2200
2221
  getRoutePathToPublishedContent,
2222
+ getRoutePathToReviewDashboard,
2201
2223
  getVal,
2202
2224
  mergeAnnoDataIntoAnnotationsTags,
2203
2225
  parseSpecialConfigSyntax,
@@ -940,6 +940,20 @@ var getRoutePathToModerateContent = ({
940
940
  return sm_link ? parseSpecialConfigSyntax({ config: sm_link, content: { contentType, contentId } }) : standard_link;
941
941
  };
942
942
 
943
+ // src/utils/routePathGenerators/getRoutePathToMyContent.ts
944
+ var getRoutePathToMyContent = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
945
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
946
+ const base = sm ? "/my-content" : "/my-dashboard/MyContent";
947
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
948
+ };
949
+
950
+ // src/utils/routePathGenerators/getRoutePathToReviewDashboard.ts
951
+ var getRoutePathToReviewDashboard = ({ SELF_MANAGED_BASE_CONFIGS, activeTab } = {}) => {
952
+ const sm = SELF_MANAGED_BASE_CONFIGS?.enable;
953
+ const base = sm ? "/review-dashboard" : "/my-dashboard/ModQueue";
954
+ return activeTab ? `${base}?activeTab=${activeTab}` : base;
955
+ };
956
+
943
957
  // src/UI_CONTENT.ts
944
958
  var UI_CONTENT = {
945
959
  autoGenFilterConfigs: {
@@ -1484,30 +1498,34 @@ var processAuthorAndCommonFilters = (allTpls, filterScopes, annoEnabledBlocks =
1484
1498
  }
1485
1499
  return acc;
1486
1500
  }, []);
1487
- const authorTagConfigs = authorTagGroups.map((block) => ({
1488
- filterId: `authorTagFilter_${block.props.tagType}`,
1489
- blockId: `authorTagFilter_${block.props.tagType}`,
1490
- display: `Author Tag: ${block.props.tagType}`,
1491
- value: block.tplContentTypes,
1492
- filterKey: generateFilterKey({
1493
- filterType: "rollupRelationshipType",
1494
- relationshipValuePath: "meta.kp_contributed_by",
1495
- rollupResourceTypes: block.tplContentTypes,
1496
- tagType: block.props.tagType,
1497
- scope: "doc"
1498
- }),
1499
- source: {
1500
- filterType: "tagType",
1501
- tagType: block.props.tagType,
1502
- scope: "tags"
1503
- },
1504
- target: {
1505
- filterType: "rollupRelationshipType",
1506
- tagType: block.props.tagType,
1507
- rollupResourceTypes: block.tplContentTypes,
1508
- relationshipValuePath: "meta.kp_contributed_by"
1509
- }
1510
- }));
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
+ });
1511
1529
  const commonAnnotationFilters = filterScopes.includes("anno") ? [{
1512
1530
  sectionId: "commonAnnotationFilters",
1513
1531
  sectionTitle: "Common Annotation Filters",
@@ -2140,7 +2158,9 @@ export {
2140
2158
  getRollupPossibilities,
2141
2159
  getRoutePathToEditContent,
2142
2160
  getRoutePathToModerateContent,
2161
+ getRoutePathToMyContent,
2143
2162
  getRoutePathToPublishedContent,
2163
+ getRoutePathToReviewDashboard,
2144
2164
  getVal,
2145
2165
  mergeAnnoDataIntoAnnotationsTags,
2146
2166
  parseSpecialConfigSyntax,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.28.3",
6
+ "version": "1.28.5",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",