@e-llm-studio/citation 0.0.231 → 0.0.233
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/README.md +47 -0
- package/dist/cjs/features/ChatCitation/InternalChatCitationRenderer.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CitationAnchor.js +1 -1
- package/dist/cjs/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/cjs/features/CognitiveCompare/Guidelines/utils/helper.js +1 -1
- package/dist/cjs/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/SectionAccordion.js +1 -1
- package/dist/cjs/features/CognitiveCompare/components/SvgConnectors.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useCompareData.js +1 -1
- package/dist/cjs/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
- package/dist/cjs/features/CognitiveCompare/utils/buildComparisonRows.js +2 -0
- package/dist/cjs/features/CognitiveCompare/utils/buildComparisonRows.js.map +1 -0
- package/dist/features/ChatCitation/InternalChatCitationRenderer.js +1 -1
- package/dist/features/CognitiveCompare/CitationAnchor.js +1 -1
- package/dist/features/CognitiveCompare/CognitiveCompare.js +1 -1
- package/dist/features/CognitiveCompare/Guidelines/utils/helper.js +1 -1
- package/dist/features/CognitiveCompare/Guidelines/utils/processGuidelinesMarkdown.js +1 -1
- package/dist/features/CognitiveCompare/components/SectionAccordion.js +1 -1
- package/dist/features/CognitiveCompare/components/SvgConnectors.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useCompareData.js +1 -1
- package/dist/features/CognitiveCompare/hooks/useLinesCalculator.js +1 -1
- package/dist/features/CognitiveCompare/utils/buildComparisonRows.js +2 -0
- package/dist/features/CognitiveCompare/utils/buildComparisonRows.js.map +1 -0
- package/dist/types/src/CognitiveCompareTest.d.ts.map +1 -1
- package/dist/types/src/Spbanalysispaneltest.d.ts +3 -0
- package/dist/types/src/Spbanalysispaneltest.d.ts.map +1 -0
- package/dist/types/src/features/ChatCitation/InternalChatCitationRenderer.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CitationAnchor.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompare.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts +13 -0
- package/dist/types/src/features/CognitiveCompare/CognitiveCompareTypes.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts +1421 -898
- package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts.map +1 -1
- 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/dist/types/src/features/CognitiveCompare/components/SectionAccordion.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/components/SvgConnectors.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts +2 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareData.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts +0 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useCompareLayout.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/hooks/useLinesCalculator.d.ts.map +1 -1
- package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.d.ts +11 -0
- package/dist/types/src/features/CognitiveCompare/utils/buildComparisonRows.d.ts.map +1 -0
- package/dist/types/src/features/SPBAnalysisPanel/Cognitivereasoningpanel.d.ts +22 -0
- package/dist/types/src/features/SPBAnalysisPanel/Cognitivereasoningpanel.d.ts.map +1 -0
- package/dist/types/src/features/SPBAnalysisPanel/DependencyGraph.d.ts +37 -0
- package/dist/types/src/features/SPBAnalysisPanel/DependencyGraph.d.ts.map +1 -0
- package/dist/types/src/features/SPBAnalysisPanel/Internaleditor.d.ts +11 -0
- package/dist/types/src/features/SPBAnalysisPanel/Internaleditor.d.ts.map +1 -0
- package/dist/types/src/features/SPBAnalysisPanel/Markdownrenderer.d.ts +10 -0
- package/dist/types/src/features/SPBAnalysisPanel/Markdownrenderer.d.ts.map +1 -0
- package/dist/types/src/features/SPBAnalysisPanel/Spbanalysispanel.d.ts +39 -0
- package/dist/types/src/features/SPBAnalysisPanel/Spbanalysispanel.d.ts.map +1 -0
- package/dist/types/src/features/SPBAnalysisPanel/index.d.ts +10 -0
- package/dist/types/src/features/SPBAnalysisPanel/index.d.ts.map +1 -0
- package/package.json +7 -2
package/dist/types/src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guidelines.mockData.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"guidelines.mockData.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/constants/guidelines.mockData.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6S1B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/CognitiveCompare/Guidelines/utils/helper.ts"],"names":[],"mappings":"
|
|
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;AAEF,eAAO,MAAM,yBAAyB;oBAKpB,GAAG;;;YAkDpB,CAAC;AAGF,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;;;YA4CpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SectionAccordion.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/SectionAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AA0BjD,OAAO,EAAsB,YAAY,EAAgB,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAyF3E,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,YAAY,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,wBAAwB,GAAG,IAAI,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,gBAAgB,6FAUnB,qBAAqB,
|
|
1
|
+
{"version":3,"file":"SectionAccordion.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/SectionAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AA0BjD,OAAO,EAAsB,YAAY,EAAgB,MAAM,0BAA0B,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAyF3E,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,YAAY,CAAC;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACxC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,EAAE,wBAAwB,GAAG,IAAI,CAAC;CAC7C,CAAC;AAEF,QAAA,MAAM,gBAAgB,6FAUnB,qBAAqB,4CAs4BvB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SvgConnectors.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/SvgConnectors.tsx"],"names":[],"mappings":";AAOA,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACb,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"SvgConnectors.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/components/SvgConnectors.tsx"],"names":[],"mappings":";AAOA,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,YAAY,EACb,MAAM,0BAA0B,CAAC;AAiBlC,KAAK,kBAAkB,GAAG;IACxB,eAAe,EAAE,KAAK,CAAC,gBAAgB,CAAC,aAAa,GAAG,IAAI,CAAC,CAAC;IAC9D,aAAa,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACjD,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAC;IAC/D,kBAAkB,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,CAAC;IAC7B,YAAY,EAAE,OAAO,CAAC;IACtB,uBAAuB,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAChD,cAAc,EAAE,OAAO,CAAC;IACxB,qBAAqB,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3C,gBAAgB,EAAE,YAAY,EAAE,CAAC;IACjC,gBAAgB,E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leData, ComparisonConfig } from "../CognitiveCompareTypes";
|
|
1
|
+
import { ComparisonRow, SectionBlock, ProposedRuleData, RuleData, ComparisonConfig } from "../CognitiveCompareTypes";
|
|
2
2
|
export declare const useCognitiveTreeData: (treeData: Record<string, any> | undefined, maintainRelativeOrder: boolean, deviationData: Record<string, any> | null, resolvedComparisonConfig: ComparisonConfig, enableDeviationSchemaBackwardCompatibility?: boolean, guidelinesData?: Record<string, any> | null) => {
|
|
3
3
|
isGuidelineMode: boolean;
|
|
4
4
|
activeProposed: ProposedRuleData;
|
|
5
5
|
activeVariants: never[] | RuleData[];
|
|
6
|
+
comparisonRows: ComparisonRow[];
|
|
6
7
|
existingRule: RuleData;
|
|
7
8
|
proposedSections: SectionBlock[];
|
|
8
9
|
existingSections: SectionBlock[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCompareData.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"useCompareData.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,gBAAgB,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAKrH,eAAO,MAAM,oBAAoB,aACrB,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,yBAClB,OAAO,iBACf,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,4BACf,gBAAgB,+CACE,OAAO,mBAClC,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI;;;;;;;;;;;;;;;;;CAotB5C,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const useCompareLayout: (initialMaintainOrder: boolean, scrollContainerRef: React.RefObject<HTMLDivElement>, lhsBadgeRefs: any, rhsBadgeRefs: any, proposedSections: any[], existingSections: any[]) => {
|
|
3
2
|
maintainRelativeOrder: boolean;
|
|
4
3
|
setMaintainRelativeOrder: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCompareLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareLayout.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCompareLayout.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useCompareLayout.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,gBAAgB,yBACL,OAAO,sBACT,MAAM,SAAS,CAAC,cAAc,CAAC,gBACrC,GAAG,gBACH,GAAG,oBACC,GAAG,EAAE,oBACL,GAAG,EAAE;;;;;;;;;;;;;;;;;;;;;;CAkFxB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useLinesCalculator.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useLinesCalculator.tsx"],"names":[],"mappings":";AAKA,eAAO,MAAM,kBAAkB,qhCA2C5B,GAAG;;;;YAG6D,MAAM;YAAM,MAAM;WAAK,MAAM;;;YAA7B,MAAM;YAAM,MAAM;WAAK,MAAM;;;;;eAIhC,MAAM;gBAAU,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"useLinesCalculator.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/hooks/useLinesCalculator.tsx"],"names":[],"mappings":";AAKA,eAAO,MAAM,kBAAkB,qhCA2C5B,GAAG;;;;YAG6D,MAAM;YAAM,MAAM;WAAK,MAAM;;;YAA7B,MAAM;YAAM,MAAM;WAAK,MAAM;;;;;eAIhC,MAAM;gBAAU,MAAM;;;;;;4BA+2BrC,GAAG;CAiOnD,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComparisonRow, SectionBlock } from "../CognitiveCompareTypes";
|
|
2
|
+
/**
|
|
3
|
+
* Converts a comparison node into concrete Side-by-Side mapping rows.
|
|
4
|
+
*
|
|
5
|
+
* A comparison node represents a relationship, not a positional list. Expanding
|
|
6
|
+
* every left/right edge keeps the existing index-based renderer correct without
|
|
7
|
+
* dropping one-to-many or many-to-one mappings. Empty sides become explicit
|
|
8
|
+
* placeholder blocks so both rendered arrays always have identical lengths.
|
|
9
|
+
*/
|
|
10
|
+
export declare const buildComparisonRows: (nodeId: string, leftBlocks: SectionBlock[], rightBlocks: SectionBlock[]) => ComparisonRow[];
|
|
11
|
+
//# sourceMappingURL=buildComparisonRows.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildComparisonRows.d.ts","sourceRoot":"","sources":["../../../../../../src/features/CognitiveCompare/utils/buildComparisonRows.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AA4DvE;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,WACtB,MAAM,cACF,YAAY,EAAE,eACb,YAAY,EAAE,KAC1B,aAAa,EAmDf,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type BlockCognitiveCitation = {
|
|
2
|
+
citation_number: number;
|
|
3
|
+
title?: string;
|
|
4
|
+
section_ref?: string;
|
|
5
|
+
content?: string;
|
|
6
|
+
paraphrase?: string;
|
|
7
|
+
highlight: string | string[];
|
|
8
|
+
};
|
|
9
|
+
export type CognitiveReasoningData = {
|
|
10
|
+
block_cognitive_reasoning_html: string;
|
|
11
|
+
block_cognitive_gap_html: string;
|
|
12
|
+
block_cognitive_confidence: number;
|
|
13
|
+
block_cognitive_citations: BlockCognitiveCitation[];
|
|
14
|
+
};
|
|
15
|
+
export interface CognitiveReasoningPanelProps {
|
|
16
|
+
open: boolean;
|
|
17
|
+
onClose: () => void;
|
|
18
|
+
data: CognitiveReasoningData | null;
|
|
19
|
+
}
|
|
20
|
+
declare const CognitiveReasoningPanel: ({ open, onClose, data }: CognitiveReasoningPanelProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
21
|
+
export default CognitiveReasoningPanel;
|
|
22
|
+
//# sourceMappingURL=Cognitivereasoningpanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cognitivereasoningpanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/SPBAnalysisPanel/Cognitivereasoningpanel.tsx"],"names":[],"mappings":"AAwBA,MAAM,MAAM,sBAAsB,GAAG;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACjC,8BAA8B,EAAE,MAAM,CAAC;IACvC,wBAAwB,EAAE,MAAM,CAAC;IACjC,0BAA0B,EAAE,MAAM,CAAC;IACnC,yBAAyB,EAAE,sBAAsB,EAAE,CAAC;CACvD,CAAC;AAEF,MAAM,WAAW,4BAA4B;IACzC,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,IAAI,EAAE,sBAAsB,GAAG,IAAI,CAAC;CACvC;AAoBD,QAAA,MAAM,uBAAuB,4BAA6B,4BAA4B,mDA2KrF,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface Cluster {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
interface RawNode {
|
|
7
|
+
id: string;
|
|
8
|
+
label: string;
|
|
9
|
+
cluster_id: string;
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
description: string;
|
|
13
|
+
}
|
|
14
|
+
interface Edge {
|
|
15
|
+
id: string;
|
|
16
|
+
source: string;
|
|
17
|
+
target: string;
|
|
18
|
+
reasoning: string;
|
|
19
|
+
score: number;
|
|
20
|
+
gap: string;
|
|
21
|
+
dependency_type: string;
|
|
22
|
+
}
|
|
23
|
+
interface ApiData {
|
|
24
|
+
graph_id: string;
|
|
25
|
+
prompt_id: string;
|
|
26
|
+
last_analyzed_at: string;
|
|
27
|
+
clusters: Cluster[];
|
|
28
|
+
nodes: RawNode[];
|
|
29
|
+
edges: Edge[];
|
|
30
|
+
}
|
|
31
|
+
interface DependencyGraphProps {
|
|
32
|
+
data: ApiData;
|
|
33
|
+
}
|
|
34
|
+
declare function DependencyGraph({ data }: DependencyGraphProps): React.ReactElement;
|
|
35
|
+
declare const _default: React.MemoExoticComponent<typeof DependencyGraph>;
|
|
36
|
+
export default _default;
|
|
37
|
+
//# sourceMappingURL=DependencyGraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DependencyGraph.d.ts","sourceRoot":"","sources":["../../../../../src/features/SPBAnalysisPanel/DependencyGraph.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAKjF,UAAU,OAAO;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,OAAO;IACf,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,UAAU,IAAI;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,eAAe,EAAE,MAAM,CAAC;CACzB;AAED,UAAU,OAAO;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,KAAK,EAAE,OAAO,EAAE,CAAC;IACjB,KAAK,EAAE,IAAI,EAAE,CAAC;CACf;AA8CD,UAAU,oBAAoB;IAC5B,IAAI,EAAE,OAAO,CAAC;CACf;AAmsBD,iBAAS,eAAe,CAAC,EAAE,IAAI,EAAE,EAAE,oBAAoB,GAAG,KAAK,CAAC,YAAY,CAqC3E;;AAED,wBAA2C"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface InternalEditorProps {
|
|
2
|
+
content: string;
|
|
3
|
+
selectedTag?: string;
|
|
4
|
+
highlightVariable?: string;
|
|
5
|
+
isDarkMode: boolean;
|
|
6
|
+
height?: number | string;
|
|
7
|
+
fontSize?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const InternalEditor: ({ content, selectedTag, highlightVariable, isDarkMode, height, fontSize, }: InternalEditorProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default InternalEditor;
|
|
11
|
+
//# sourceMappingURL=Internaleditor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Internaleditor.d.ts","sourceRoot":"","sources":["../../../../../src/features/SPBAnalysisPanel/Internaleditor.tsx"],"names":[],"mappings":"AAsDA,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,cAAc,+EAOxB,mBAAmB,4CAqKrB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface MarkdownRendererProps {
|
|
3
|
+
message: string | undefined;
|
|
4
|
+
fontSize?: React.CSSProperties["fontSize"];
|
|
5
|
+
/** Keyed by the id referenced in `<a data-cognitive-reasoning="key">` anchors */
|
|
6
|
+
extraMetaData?: Record<string, any> | null;
|
|
7
|
+
}
|
|
8
|
+
export declare const MarkdownRenderer: ({ message, fontSize, extraMetaData }: MarkdownRendererProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default MarkdownRenderer;
|
|
10
|
+
//# sourceMappingURL=Markdownrenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Markdownrenderer.d.ts","sourceRoot":"","sources":["../../../../../src/features/SPBAnalysisPanel/Markdownrenderer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+C,MAAM,OAAO,CAAC;AAiMpE,MAAM,WAAW,qBAAqB;IAClC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC;IAC3C,iFAAiF;IACjF,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAAC;CAC9C;AAED,eAAO,MAAM,gBAAgB,yCAA0C,qBAAqB,4CAgO3F,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export interface SPBApbReference {
|
|
2
|
+
apb_name: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
context?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SPBFunctionalityItem {
|
|
7
|
+
name?: string;
|
|
8
|
+
section_name?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
reason_for_inclusion?: string;
|
|
11
|
+
apb_references: (string | SPBApbReference)[];
|
|
12
|
+
}
|
|
13
|
+
export interface SPBOverviewSummary {
|
|
14
|
+
overallSummary: string;
|
|
15
|
+
detailedSummary?: string;
|
|
16
|
+
extraMetaData?: Record<string, any> | null;
|
|
17
|
+
}
|
|
18
|
+
export interface SPBAdditionalInfo {
|
|
19
|
+
when_to_apply?: string;
|
|
20
|
+
when_not_to_apply?: string;
|
|
21
|
+
constraints_and_rules?: string;
|
|
22
|
+
input_analysis?: string;
|
|
23
|
+
output_analysis?: string;
|
|
24
|
+
dependency_graph?: any;
|
|
25
|
+
}
|
|
26
|
+
export interface SPBAnalysisPanelProps {
|
|
27
|
+
/** Full text of the system prompt this SPB analysis is derived from — used for the persistent/fullscreen preview editor */
|
|
28
|
+
promptContent: string;
|
|
29
|
+
promptTitle?: string;
|
|
30
|
+
isLoading?: boolean;
|
|
31
|
+
overviewSummary?: SPBOverviewSummary | null;
|
|
32
|
+
functionalityOfSPB?: SPBFunctionalityItem[];
|
|
33
|
+
spbAdditionalInfo?: SPBAdditionalInfo | null;
|
|
34
|
+
/** Show the persistent right-side code editor panel. Defaults to true. */
|
|
35
|
+
showCodePanel?: boolean;
|
|
36
|
+
}
|
|
37
|
+
declare const SPBAnalysisPanel: ({ promptContent, promptTitle, isLoading, overviewSummary, functionalityOfSPB, spbAdditionalInfo, showCodePanel, }: SPBAnalysisPanelProps) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export default SPBAnalysisPanel;
|
|
39
|
+
//# sourceMappingURL=Spbanalysispanel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spbanalysispanel.d.ts","sourceRoot":"","sources":["../../../../../src/features/SPBAnalysisPanel/Spbanalysispanel.tsx"],"names":[],"mappings":"AAoBA,MAAM,WAAW,eAAe;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB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+
export { default as SPBAnalysisPanel } from "./Spbanalysispanel";
|
|
2
|
+
export type { SPBAnalysisPanelProps, SPBApbReference, SPBFunctionalityItem, SPBOverviewSummary, SPBAdditionalInfo, } from "./Spbanalysispanel";
|
|
3
|
+
export { default as MarkdownRenderer } from "./Markdownrenderer";
|
|
4
|
+
export type { MarkdownRendererProps } from "./Markdownrenderer";
|
|
5
|
+
export { default as DependencyGraph } from "./DependencyGraph";
|
|
6
|
+
export { default as CognitiveReasoningPanel } from "./Cognitivereasoningpanel";
|
|
7
|
+
export type { CognitiveReasoningData, BlockCognitiveCitation, CognitiveReasoningPanelProps } from "./Cognitivereasoningpanel";
|
|
8
|
+
export { default as InternalEditor } from "./Internaleditor";
|
|
9
|
+
export type { InternalEditorProps } from "./Internaleditor";
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/SPBAnalysisPanel/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EACR,qBAAqB,EACrB,eAAe,EACf,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,GACpB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAEhE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,YAAY,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,MAAM,2BAA2B,CAAC;AAK9H,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC7D,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-llm-studio/citation",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.233",
|
|
4
4
|
"author": "Devesh Patel",
|
|
5
5
|
"description": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -186,6 +186,11 @@
|
|
|
186
186
|
"import": "./dist/features/PromptemonBlockViewer/PromptemonBlockViewer.js",
|
|
187
187
|
"require": "./dist/cjs/features/PromptemonBlockViewer/PromptemonBlockViewer.js",
|
|
188
188
|
"types": "./dist/types/src/features/PromptemonBlockViewer/PromptemonBlockViewer.d.ts"
|
|
189
|
+
},
|
|
190
|
+
"./SPBAnalysisPanel": {
|
|
191
|
+
"import": "./dist/features/SPBAnalysisPanel/Spbanalysispanel.js",
|
|
192
|
+
"require": "./dist/cjs/features/SPBAnalysisPanel/Spbanalysispanel.js",
|
|
193
|
+
"types": "./dist/types/src/features/SPBAnalysisPanel/Spbanalysispanel.d.ts"
|
|
189
194
|
}
|
|
190
195
|
},
|
|
191
196
|
"repository": {
|
|
@@ -256,6 +261,7 @@
|
|
|
256
261
|
"@rollup/plugin-strip": "3.0.4",
|
|
257
262
|
"@rollup/plugin-url": "^8.0.2",
|
|
258
263
|
"@svgr/rollup": "8.1.0",
|
|
264
|
+
"@tanstack/react-query": "^4.44.0",
|
|
259
265
|
"@types/react": "17.0.83",
|
|
260
266
|
"@types/react-dom": "17.0.26",
|
|
261
267
|
"@types/react-router-dom": "5.3.3",
|
|
@@ -282,7 +288,6 @@
|
|
|
282
288
|
"rollup-plugin-visualizer": "5.12.0",
|
|
283
289
|
"ts-loader": "9.5.1",
|
|
284
290
|
"typescript": "4.9.5",
|
|
285
|
-
"@tanstack/react-query": "^4.44.0",
|
|
286
291
|
"wavesurfer.js": "^7.12.1",
|
|
287
292
|
"webpack-bundle-analyzer": "^4.10.2"
|
|
288
293
|
},
|