@runtypelabs/persona 4.11.0 → 4.12.0
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/codegen.cjs +13 -13
- package/dist/codegen.d.cts +9 -0
- package/dist/codegen.d.ts +9 -0
- package/dist/codegen.js +13 -13
- package/dist/context-mentions.d.cts +2 -0
- package/dist/context-mentions.d.ts +2 -0
- package/dist/index.cjs +52 -52
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.global.js +26 -26
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +53 -53
- package/dist/index.js.map +1 -1
- package/dist/install.global.js +1 -1
- package/dist/install.global.js.map +1 -1
- package/dist/smart-dom-reader.d.cts +2 -0
- package/dist/smart-dom-reader.d.ts +2 -0
- package/dist/theme-editor-preview.cjs +37 -37
- package/dist/theme-editor-preview.d.cts +2 -0
- package/dist/theme-editor-preview.d.ts +2 -0
- package/dist/theme-editor-preview.js +26 -26
- package/dist/theme-editor.d.cts +2 -0
- package/dist/theme-editor.d.ts +2 -0
- package/package.json +1 -1
- package/src/codegen.test.ts +43 -0
- package/src/install.test.ts +83 -0
- package/src/install.ts +48 -2
- package/src/types.ts +2 -0
- package/src/ui.tool-display.test.ts +177 -8
- package/src/ui.ts +15 -7
- package/src/utils/code-generators.ts +30 -4
package/dist/index.d.cts
CHANGED
|
@@ -4806,6 +4806,8 @@ type AgentWidgetToolCallConfig = {
|
|
|
4806
4806
|
}) => HTMLElement | string | null;
|
|
4807
4807
|
/**
|
|
4808
4808
|
* Override the summary content for grouped consecutive tool-call containers.
|
|
4809
|
+
* In `groupedMode: "summary"`, the summary owns the visible row starting
|
|
4810
|
+
* with the first tool so its DOM stays stable as more calls arrive.
|
|
4809
4811
|
* Return `null` to fall back to the built-in `Called [x] tools` summary.
|
|
4810
4812
|
*/
|
|
4811
4813
|
renderGroupedSummary?: (context: {
|
|
@@ -10270,6 +10272,15 @@ type CodeGeneratorOptions = {
|
|
|
10270
10272
|
* @default "body"
|
|
10271
10273
|
*/
|
|
10272
10274
|
target?: string;
|
|
10275
|
+
/**
|
|
10276
|
+
* Base URL of the directory holding the widget assets (install.global.js,
|
|
10277
|
+
* index.global.js, widget.css) for the script formats (script-installer,
|
|
10278
|
+
* script-manual, script-advanced). Pass a first-party base such as
|
|
10279
|
+
* "https://cdn.runtype.com/persona/latest" when the embedding page's CSP
|
|
10280
|
+
* does not allow third-party CDNs. A trailing slash is tolerated.
|
|
10281
|
+
* @default the jsDelivr dist directory pinned to this package version
|
|
10282
|
+
*/
|
|
10283
|
+
cdnBase?: string;
|
|
10273
10284
|
};
|
|
10274
10285
|
declare function generateCodeSnippet(config: any, format?: CodeFormat, options?: CodeGeneratorOptions): string;
|
|
10275
10286
|
|
package/dist/index.d.ts
CHANGED
|
@@ -4806,6 +4806,8 @@ type AgentWidgetToolCallConfig = {
|
|
|
4806
4806
|
}) => HTMLElement | string | null;
|
|
4807
4807
|
/**
|
|
4808
4808
|
* Override the summary content for grouped consecutive tool-call containers.
|
|
4809
|
+
* In `groupedMode: "summary"`, the summary owns the visible row starting
|
|
4810
|
+
* with the first tool so its DOM stays stable as more calls arrive.
|
|
4809
4811
|
* Return `null` to fall back to the built-in `Called [x] tools` summary.
|
|
4810
4812
|
*/
|
|
4811
4813
|
renderGroupedSummary?: (context: {
|
|
@@ -10270,6 +10272,15 @@ type CodeGeneratorOptions = {
|
|
|
10270
10272
|
* @default "body"
|
|
10271
10273
|
*/
|
|
10272
10274
|
target?: string;
|
|
10275
|
+
/**
|
|
10276
|
+
* Base URL of the directory holding the widget assets (install.global.js,
|
|
10277
|
+
* index.global.js, widget.css) for the script formats (script-installer,
|
|
10278
|
+
* script-manual, script-advanced). Pass a first-party base such as
|
|
10279
|
+
* "https://cdn.runtype.com/persona/latest" when the embedding page's CSP
|
|
10280
|
+
* does not allow third-party CDNs. A trailing slash is tolerated.
|
|
10281
|
+
* @default the jsDelivr dist directory pinned to this package version
|
|
10282
|
+
*/
|
|
10283
|
+
cdnBase?: string;
|
|
10273
10284
|
};
|
|
10274
10285
|
declare function generateCodeSnippet(config: any, format?: CodeFormat, options?: CodeGeneratorOptions): string;
|
|
10275
10286
|
|