@aparte/core 0.13.0 → 0.13.1
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/client/aparte-client.d.ts.map +1 -1
- package/dist/client/stream-adapter.d.ts.map +1 -1
- package/dist/components/elicitation/aparte-elicitation.d.ts.map +1 -1
- package/dist/components/viewport/aparte-chat-viewport.d.ts +2 -0
- package/dist/components/viewport/aparte-chat-viewport.d.ts.map +1 -1
- package/dist/custom-elements.json +6634 -6592
- package/dist/index.css +27 -2
- package/dist/index.js +19 -3
- package/dist/index.js.map +1 -1
- package/dist/index.node.js +1 -1
- package/dist/{is-awaiting-reply-DrO_oR32.js → is-awaiting-reply-CWp1ffHh.js} +15 -25
- package/dist/is-awaiting-reply-CWp1ffHh.js.map +1 -0
- package/dist/renderers/segment-renderers.d.ts +18 -0
- package/dist/renderers/segment-renderers.d.ts.map +1 -1
- package/dist/renderers/segments/tool-call.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/is-awaiting-reply-DrO_oR32.js.map +0 -1
|
@@ -56,5 +56,23 @@ export declare function getAllRenderers(config?: AparteConfig): readonly AparteS
|
|
|
56
56
|
*/
|
|
57
57
|
export declare function collectRendererStyles(config?: AparteConfig): string;
|
|
58
58
|
export declare function injectRendererStyles(config?: AparteConfig): void;
|
|
59
|
+
/**
|
|
60
|
+
* Put a tool renderer's stylesheet on the page, once per tool name.
|
|
61
|
+
*
|
|
62
|
+
* It used to be an inline block in two places — the client's `tool-start` handler and
|
|
63
|
+
* the stream adapter's — and nowhere on the path that RE-renders a stored conversation.
|
|
64
|
+
* So a custom tool renderer was styled while its tool ran and bare after a reload: the
|
|
65
|
+
* markup came back (`toolCallRenderer` looks the renderer up and delegates to it), the
|
|
66
|
+
* CSS did not, because nothing replays `tool-start` for history. A consumer worked
|
|
67
|
+
* around it by re-injecting the styles themselves at startup, which is the shape of a
|
|
68
|
+
* library defect, not of an app's concern.
|
|
69
|
+
*
|
|
70
|
+
* Called from the render path as well as the two live ones, so "the renderer drew" and
|
|
71
|
+
* "its rules are on the page" cannot come apart again. Keyed by tool NAME rather than by
|
|
72
|
+
* the CSS text, which is what the two inline copies did and what makes it idempotent.
|
|
73
|
+
*/
|
|
74
|
+
export declare function injectToolRendererStyles(toolName: string, renderer: {
|
|
75
|
+
getStyles?: () => string;
|
|
76
|
+
}): void;
|
|
59
77
|
export declare function registerDefaultRenderers(config?: AparteConfig): void;
|
|
60
78
|
//# sourceMappingURL=segment-renderers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"segment-renderers.d.ts","sourceRoot":"","sources":["../../src/renderers/segment-renderers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EACR,iBAAiB,EACjB,qBAAqB,EACxB,MAAM,mBAAmB,CAAC;AAO3B,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AA+FvD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,iBAAiB,EAC/D,QAAQ,EAAE,qBAAqB,CAAC,CAAC,CAAC,EAClC,MAAM,GAAE,YAA8B,GACvC,IAAI,CAGN;AAED;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,GAAE,YAA8B,GAAG,IAAI,CAEpF;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,GAAE,YAA8B,GAAG,IAAI,CASxF;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,YAA8B,GAAG,IAAI,CAEpG;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAC9B,IAAI,EAAE,MAAM,EACZ,MAAM,GAAE,YAA8B,GACvC,qBAAqB,GAAG,SAAS,CAEnC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,GAAE,YAA8B,GAAG,SAAS,qBAAqB,EAAE,CAExG;AAED;;;;;G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,CAwBjF;AAGD;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE;IAAE,SAAS,CAAC,EAAE,MAAM,MAAM,CAAA;CAAE,GAAG,IAAI,CAUvG;AAqDD,wBAAgB,wBAAwB,CAAC,MAAM,GAAE,YAA8B,GAAG,IAAI,CAkBrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-call.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/tool-call.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACR,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"tool-call.d.ts","sourceRoot":"","sources":["../../../src/renderers/segments/tool-call.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACR,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,sBAAsB,CAAC;AA+H9B,eAAO,MAAM,gBAAgB,EAAE,qBAAqB,CAAC,qBAAqB,CAmMzE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aparte/core",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.1",
|
|
4
4
|
"description": "High-performance AI conversation engine - Zero-dependency Web Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"//sideEffects": "The BROWSER entry defines the custom elements and imports CSS at module scope, so it must never be tree-shaken; the Node entry (`index.node`) and every other module are pure. Listing them explicitly is what lets a bundler drop the rest — the whole package was implicitly side-effectful before, the only one of the 14 without this field.",
|