@viswa-test/test-citation 0.0.282 → 0.0.284
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/cjs/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
- package/dist/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/utils/helper.d.ts +0 -5
- package/dist/types/src/features/CognitiveCompare/Guidelines/utils/helper.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.processGuidelinesMarkdown=function(t){var
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.processGuidelinesMarkdown=function(t){var e,n,a=t.guidelinesData,i=t.targetHighlights,o=void 0===i?[]:i,r=t.labelColor,l=void 0===r?"#FEF08A":r,c="";if(a&&"string"==typeof a)c=a;else if((null==a?void 0:a.learnings_data)&&Object.keys(a.learnings_data).length>0){var u=Object.keys(a.learnings_data)[0],d=a.learnings_data[u];(null==d?void 0:d.instruction_prompt)&&(c=d.instruction_prompt)}else{((null===(n=null===(e=null==a?void 0:a.data)||void 0===e?void 0:e.artifactData)||void 0===n?void 0:n.userStorySnapshot)||[]).forEach(function(t){var e;t.title&&(c+="### ".concat(t.title,"\n\n")),t.value&&(c+="".concat(t.value,"\n\n")),null===(e=t.sub_features)||void 0===e||e.forEach(function(t){t.title&&(c+="#### ".concat(t.title,"\n\n")),t.value&&(c+="".concat(t.value,"\n\n"))})})}return o.forEach(function(t,e){var n=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),a=new RegExp("(".concat(n,")"),"g");c=c.replace(a,'<mark id="guideline-target-'.concat(e,'" style="background-color: ').concat(l,'; border-radius: 3px; padding: 2px;">$1</mark>'))}),c};
|
|
2
2
|
//# sourceMappingURL=processGuidelinesMarkdown.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var a=function(a){var n,t,e=a.guidelinesData,i=a.targetHighlights,o=void 0===i?[]:i,l=a.labelColor,r=void 0===l?"#FEF08A":l,c="";if((null==e?void 0:e.learnings_data)&&Object.keys(e.learnings_data).length>0){var u=Object.keys(e.learnings_data)[0],d=e.learnings_data[u];(null==d?void 0:d.instruction_prompt)&&(c=d.instruction_prompt)}else{((null===(t=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.artifactData)||void 0===t?void 0:t.userStorySnapshot)||[]).forEach(function(a){var n;a.title&&(c+="### ".concat(a.title,"\n\n")),a.value&&(c+="".concat(a.value,"\n\n")),null===(n=a.sub_features)||void 0===n||n.forEach(function(a){a.title&&(c+="#### ".concat(a.title,"\n\n")),a.value&&(c+="".concat(a.value,"\n\n"))})})}return o.forEach(function(a,n){var t=a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),e=new RegExp("(".concat(t,")"),"g");c=c.replace(e,'<mark id="guideline-target-'.concat(n,'" style="background-color: ').concat(r,'; border-radius: 3px; padding: 2px;">$1</mark>'))}),c};export{a as processGuidelinesMarkdown};
|
|
1
|
+
var a=function(a){var n,t,e=a.guidelinesData,i=a.targetHighlights,o=void 0===i?[]:i,l=a.labelColor,r=void 0===l?"#FEF08A":l,c="";if(e&&"string"==typeof e)c=e;else if((null==e?void 0:e.learnings_data)&&Object.keys(e.learnings_data).length>0){var u=Object.keys(e.learnings_data)[0],d=e.learnings_data[u];(null==d?void 0:d.instruction_prompt)&&(c=d.instruction_prompt)}else{((null===(t=null===(n=null==e?void 0:e.data)||void 0===n?void 0:n.artifactData)||void 0===t?void 0:t.userStorySnapshot)||[]).forEach(function(a){var n;a.title&&(c+="### ".concat(a.title,"\n\n")),a.value&&(c+="".concat(a.value,"\n\n")),null===(n=a.sub_features)||void 0===n||n.forEach(function(a){a.title&&(c+="#### ".concat(a.title,"\n\n")),a.value&&(c+="".concat(a.value,"\n\n"))})})}return o.forEach(function(a,n){var t=a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),e=new RegExp("(".concat(t,")"),"g");c=c.replace(e,'<mark id="guideline-target-'.concat(n,'" style="background-color: ').concat(r,'; border-radius: 3px; padding: 2px;">$1</mark>'))}),c};export{a as processGuidelinesMarkdown};
|
|
2
2
|
//# sourceMappingURL=processGuidelinesMarkdown.js.map
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
export declare const mergeRulebookCitationsIntoMatchingLinks: (rawContent: string) => string;
|
|
2
|
-
export declare const processGuidelinesMarkdown: ({ guidelinesData, targetHighlights, labelColor, }: {
|
|
3
|
-
guidelinesData: any;
|
|
4
|
-
targetHighlights?: string[] | undefined;
|
|
5
|
-
labelColor?: string | undefined;
|
|
6
|
-
}) => string;
|
|
7
2
|
export declare const getCitationNumberFromHref: (url: string) => {
|
|
8
3
|
citationNumber: string | null;
|
|
9
4
|
phraseToHighlight: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/utils/helper.ts"],"names":[],"mappings":"AA6IA,eAAO,MAAM,uCAAuC,eAAgB,MAAM,WAmGzE,CAAC;
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/utils/helper.ts"],"names":[],"mappings":"AA6IA,eAAO,MAAM,uCAAuC,eAAgB,MAAM,WAmGzE,CAAC;AA4DF,eAAO,MAAM,yBAAyB,QAAS,MAAM,KAAG;IAAE,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;CAiBxH,CAAC"}
|
package/dist/types/src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processGuidelinesMarkdown.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;oBAKpB,GAAG;;;
|
|
1
|
+
{"version":3,"file":"processGuidelinesMarkdown.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;oBAKpB,GAAG;;;YAgDpB,CAAC"}
|