@arcteninc/core 0.0.76 → 0.0.77
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/components/ArctenAgent.d.ts.map +1 -1
- package/dist/components/citation-button.d.ts +13 -0
- package/dist/components/citation-button.d.ts.map +1 -0
- package/dist/components/citation-text-renderer.d.ts +21 -0
- package/dist/components/citation-text-renderer.d.ts.map +1 -0
- package/dist/index.cjs +14 -235
- package/dist/index.mjs +4411 -31658
- package/package.json +1 -1
- package/dist/components/ai-elements/citation-button.d.ts +0 -11
- package/dist/components/ai-elements/citation-button.d.ts.map +0 -1
- package/dist/components/ai-elements/citation-text.d.ts +0 -8
- package/dist/components/ai-elements/citation-text.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArctenAgent.d.ts","sourceRoot":"","sources":["../../src/components/ArctenAgent.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ArctenAgent.d.ts","sourceRoot":"","sources":["../../src/components/ArctenAgent.tsx"],"names":[],"mappings":"AAoNA,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAEnD,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;IAClC,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,sBAAsB,GAAG,eAAe,GAAG,cAAc,CAAC;IAC3E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,YAAY,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAE1C,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC5B,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACrD,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,wBAAgB,WAAW,CAAC,EAC1B,KAAc,EACd,MAAkB,EAClB,KAAc,EACd,QAAe,EACf,KAAc,EACd,IAAgB,EAChB,YAAkB,EAClB,QAAc,EACd,QAAc,EACd,iBAAyB,EACzB,KAAU,EACV,SAAc,EACd,YAAY,EACZ,YAAiB,EACjB,aAAmC,EACnC,UAAqC,EACrC,IAAI,EACJ,KAAK,EACL,aAAa,EACb,eAAsB,GACvB,EAAE,gBAAgB,kDAsyDlB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface CitationSource {
|
|
2
|
+
number: number;
|
|
3
|
+
url: string;
|
|
4
|
+
domain: string;
|
|
5
|
+
}
|
|
6
|
+
interface CitationButtonProps {
|
|
7
|
+
sources: CitationSource[];
|
|
8
|
+
citationNumber: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare function CitationButton({ sources, citationNumber, className }: CitationButtonProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=citation-button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citation-button.d.ts","sourceRoot":"","sources":["../../src/components/citation-button.tsx"],"names":[],"mappings":"AAGA,UAAU,cAAc;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,mBAAmB;IAC3B,OAAO,EAAE,cAAc,EAAE,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAmBD,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,mBAAmB,kDAoEzF"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentType } from 'react';
|
|
2
|
+
interface CitationData {
|
|
3
|
+
number: number;
|
|
4
|
+
url: string;
|
|
5
|
+
}
|
|
6
|
+
interface CitationTextRendererProps {
|
|
7
|
+
text: string;
|
|
8
|
+
citations: CitationData[];
|
|
9
|
+
citationMap: Map<number, string>;
|
|
10
|
+
referencesText?: string;
|
|
11
|
+
ResponseComponent: ComponentType<any>;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Renders markdown text using ResponseComponent (Streamdown) and then
|
|
16
|
+
* replaces citation placeholders with CitationButton React components.
|
|
17
|
+
* Uses portals to inject React components without createRoot.
|
|
18
|
+
*/
|
|
19
|
+
export declare function CitationTextRenderer({ text, citations, citationMap, referencesText, ResponseComponent, className, }: CitationTextRendererProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=citation-text-renderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"citation-text-renderer.d.ts","sourceRoot":"","sources":["../../src/components/citation-text-renderer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAIxE,UAAU,YAAY;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;CACb;AAED,UAAU,yBAAyB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,YAAY,EAAE,CAAC;IAC1B,WAAW,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,EACnC,IAAI,EACJ,SAAS,EACT,WAAW,EACX,cAAc,EACd,iBAAiB,EACjB,SAAS,GACV,EAAE,yBAAyB,2CAoI3B"}
|