@aparte/angular 0.25.0 → 0.27.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/fesm2022/aparte-angular.mjs +46 -7
- package/dist/fesm2022/aparte-angular.mjs.map +1 -1
- package/dist/generated/element.directives.d.ts +27 -8
- package/dist/lib/aparte-chat.component.d.ts +7 -7
- package/dist/lib/aparte-tool-ui.directive.d.ts +2 -2
- package/dist/lib/conversation-manager.service.d.ts +2 -2
- package/dist/lib/provide-aparte.d.ts +1 -1
- package/package.json +5 -5
|
@@ -1289,6 +1289,8 @@ class AparteChatBubbleDirective extends AparteElementBase {
|
|
|
1289
1289
|
set streaming(v) { this.write('streaming', v); }
|
|
1290
1290
|
/** Who wrote the message: shown in the header, and the message's accessible name ("Message from {name}"). Leave it out for the reader and the assistant, whose names come from the locale. */
|
|
1291
1291
|
set name(v) { this.write('name', v); }
|
|
1292
|
+
/** Why the compaction failed, beside `data-checkpoint="failed"`: the separator gives it as the failure's tooltip and to screen readers. Set and cleared with `data-checkpoint`; read it, do not write it. */
|
|
1293
|
+
set dataCheckpointReason(v) { this.write('data-checkpoint-reason', v); }
|
|
1292
1294
|
/** An attached image was clicked, asking the app to open it full-size. */
|
|
1293
1295
|
attachmentPreview = new EventEmitter();
|
|
1294
1296
|
/** A custom action-bar button was pressed. */
|
|
@@ -1314,7 +1316,7 @@ class AparteChatBubbleDirective extends AparteElementBase {
|
|
|
1314
1316
|
onBranchNavigate(e) { this.branchNavigate.emit(e.detail); }
|
|
1315
1317
|
onLinkClick(e) { this.linkClick.emit(e.detail); }
|
|
1316
1318
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AparteChatBubbleDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1317
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.25", type: AparteChatBubbleDirective, isStandalone: true, selector: "aparte-chat-bubble", inputs: { messageRole: "messageRole", content: "content", timestamp: "timestamp", messageId: "messageId", streaming: ["streaming", "streaming", booleanAttribute], name: "name" }, outputs: { attachmentPreview: "attachmentPreview", action: "action", retry: "retry", feedback: "feedback", messageInfo: "messageInfo", edit: "edit", branchNavigate: "branchNavigate", linkClick: "linkClick" }, host: { listeners: { "aparte-attachment-preview": "onAttachmentPreview($event)", "aparte-action": "onAction($event)", "aparte-retry": "onRetry($event)", "aparte-feedback": "onFeedback($event)", "aparte-message-info": "onMessageInfo($event)", "aparte-edit": "onEdit($event)", "aparte-branch-navigate": "onBranchNavigate($event)", "aparte-link-click": "onLinkClick($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
1319
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.25", type: AparteChatBubbleDirective, isStandalone: true, selector: "aparte-chat-bubble", inputs: { messageRole: "messageRole", content: "content", timestamp: "timestamp", messageId: "messageId", streaming: ["streaming", "streaming", booleanAttribute], name: "name", dataCheckpointReason: "dataCheckpointReason" }, outputs: { attachmentPreview: "attachmentPreview", action: "action", retry: "retry", feedback: "feedback", messageInfo: "messageInfo", edit: "edit", branchNavigate: "branchNavigate", linkClick: "linkClick" }, host: { listeners: { "aparte-attachment-preview": "onAttachmentPreview($event)", "aparte-action": "onAction($event)", "aparte-retry": "onRetry($event)", "aparte-feedback": "onFeedback($event)", "aparte-message-info": "onMessageInfo($event)", "aparte-edit": "onEdit($event)", "aparte-branch-navigate": "onBranchNavigate($event)", "aparte-link-click": "onLinkClick($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
1318
1320
|
}
|
|
1319
1321
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AparteChatBubbleDirective, decorators: [{
|
|
1320
1322
|
type: Directive,
|
|
@@ -1332,6 +1334,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
1332
1334
|
args: [{ transform: booleanAttribute }]
|
|
1333
1335
|
}], name: [{
|
|
1334
1336
|
type: Input
|
|
1337
|
+
}], dataCheckpointReason: [{
|
|
1338
|
+
type: Input
|
|
1335
1339
|
}], attachmentPreview: [{
|
|
1336
1340
|
type: Output
|
|
1337
1341
|
}], action: [{
|
|
@@ -1550,7 +1554,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
1550
1554
|
}] } });
|
|
1551
1555
|
/** `<aparte-composer-add-attachment>` — File picker button for `<aparte-composer>`. */
|
|
1552
1556
|
class AparteComposerAddAttachmentDirective extends AparteElementBase {
|
|
1553
|
-
/** MIME types / extensions
|
|
1557
|
+
/** MIME types / extensions the composer admits (e.g. "image/*,.pdf"): the file input's filter, and checked again on a pick, a drop and a pasted image, so a file outside it is not attached however it arrives. */
|
|
1554
1558
|
set accept(v) { this.write('accept', v); }
|
|
1555
1559
|
/** Allow multiple file selection (default: true) */
|
|
1556
1560
|
set multiple(v) { this.write('multiple', v ? '' : 'false'); }
|
|
@@ -1669,7 +1673,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
1669
1673
|
type: Directive,
|
|
1670
1674
|
args: [{ selector: 'aparte-composer-toolbar', standalone: true }]
|
|
1671
1675
|
}] });
|
|
1672
|
-
/** `<aparte-context>` — A gauge of the model's context window: how much of it the conversation uses. */
|
|
1676
|
+
/** `<aparte-context>` — A gauge of the model's context window: how much of it the conversation uses, and what fills it. */
|
|
1673
1677
|
class AparteContextDirective extends AparteElementBase {
|
|
1674
1678
|
/** The context window, in tokens. Overrides the current model's `contextWindow`. */
|
|
1675
1679
|
set window(v) { this.write('window', v); }
|
|
@@ -1683,20 +1687,22 @@ class AparteContextDirective extends AparteElementBase {
|
|
|
1683
1687
|
set variant(v) { this.write('variant', v); }
|
|
1684
1688
|
/** Tokens in use before a turn of this page has reported any: a restored conversation's last usage. The next turn's usage replaces it. */
|
|
1685
1689
|
set used(v) { this.write('used', v); }
|
|
1686
|
-
/** Dispatch `aparte-compact` on each turn that ends in `danger`, one request at a time. */
|
|
1690
|
+
/** Deprecated, still works. Dispatch `aparte-compact` (with `auto: true`) on each turn that ends in `danger`, one request at a time. `@aparte/plugin-compaction` decides when to compact by itself now, so leave this off. */
|
|
1687
1691
|
set autoCompact(v) { this.write('auto-compact', v); }
|
|
1688
1692
|
/** Reflected BY the element: `ok`, `warn` or `danger`. Read-only. */
|
|
1689
1693
|
set dataLevel(v) { this.write('data-level', v); }
|
|
1690
1694
|
/** Reflected BY the element while it has nothing to show. Read-only. */
|
|
1691
1695
|
set dataEmpty(v) { this.write('data-empty', v); }
|
|
1696
|
+
/** Reflected BY the element while this chat is being compacted (`running`) and after a compaction failed (`failed`). Read-only. */
|
|
1697
|
+
set dataCompact(v) { this.write('data-compact', v); }
|
|
1692
1698
|
/** The level changed. Bubbles. */
|
|
1693
1699
|
contextThreshold = new EventEmitter();
|
|
1694
|
-
/** Dispatched on `window` when `auto-compact` is set and a turn ends in `danger
|
|
1700
|
+
/** Dispatched on `window` when the deprecated `auto-compact` is set and a turn ends in `danger` (`auto: true`, with the `window` it measured against), and by Retry in the panel when no compactor is registered. One automatic request at a time — the next turn in `danger` asks again once the plugin has answered. `@aparte/plugin-compaction` answers it; with no listener nothing happens. */
|
|
1695
1701
|
compact = new EventEmitter();
|
|
1696
1702
|
onContextThreshold(e) { this.contextThreshold.emit(e.detail); }
|
|
1697
1703
|
onCompact(e) { this.compact.emit(e.detail); }
|
|
1698
1704
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AparteContextDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1699
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.25", type: AparteContextDirective, isStandalone: true, selector: "aparte-context", inputs: { window: ["window", "window", numberAttribute], warn: ["warn", "warn", numberAttribute], danger: ["danger", "danger", numberAttribute], target: "target", variant: "variant", used: ["used", "used", numberAttribute], autoCompact: ["autoCompact", "autoCompact", booleanAttribute], dataLevel: "dataLevel", dataEmpty: ["dataEmpty", "dataEmpty", booleanAttribute] }, outputs: { contextThreshold: "contextThreshold", compact: "compact" }, host: { listeners: { "aparte-context-threshold": "onContextThreshold($event)", "aparte-compact": "onCompact($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
1705
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.25", type: AparteContextDirective, isStandalone: true, selector: "aparte-context", inputs: { window: ["window", "window", numberAttribute], warn: ["warn", "warn", numberAttribute], danger: ["danger", "danger", numberAttribute], target: "target", variant: "variant", used: ["used", "used", numberAttribute], autoCompact: ["autoCompact", "autoCompact", booleanAttribute], dataLevel: "dataLevel", dataEmpty: ["dataEmpty", "dataEmpty", booleanAttribute], dataCompact: "dataCompact" }, outputs: { contextThreshold: "contextThreshold", compact: "compact" }, host: { listeners: { "aparte-context-threshold": "onContextThreshold($event)", "aparte-compact": "onCompact($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
1700
1706
|
}
|
|
1701
1707
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AparteContextDirective, decorators: [{
|
|
1702
1708
|
type: Directive,
|
|
@@ -1725,6 +1731,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
1725
1731
|
}], dataEmpty: [{
|
|
1726
1732
|
type: Input,
|
|
1727
1733
|
args: [{ transform: booleanAttribute }]
|
|
1734
|
+
}], dataCompact: [{
|
|
1735
|
+
type: Input
|
|
1728
1736
|
}], contextThreshold: [{
|
|
1729
1737
|
type: Output
|
|
1730
1738
|
}], compact: [{
|
|
@@ -1852,6 +1860,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
1852
1860
|
}], propDecorators: { name: [{
|
|
1853
1861
|
type: Input
|
|
1854
1862
|
}] } });
|
|
1863
|
+
/** `<aparte-launcher>` — A chat that floats in a corner of the page — the support widget every product site has, as an element. A round button sits at the bottom of the window, on the inline-end side; a click opens the chat above it as a card, and a second click, Escape or any control marked `data-aparte-launcher-close` inside closes it again. */
|
|
1864
|
+
class AparteLauncherDirective extends AparteElementBase {
|
|
1865
|
+
/** The chat is open. Reflected; set it to start open. */
|
|
1866
|
+
set open(v) { this.write('open', v); }
|
|
1867
|
+
/** Text shown beside the bubble on the closed button, which then reads as a pill. Without it the button is round and named by the locale. */
|
|
1868
|
+
set label(v) { this.write('label', v); }
|
|
1869
|
+
/** The window width under which the open chat fills the window: a length, or `none` for a card at any size. Unset, a window under 30rem wide or 30rem high. */
|
|
1870
|
+
set breakpoint(v) { this.write('breakpoint', v); }
|
|
1871
|
+
/** The chat opened or closed, by the button, by Escape, by a close control or by `open` being set — or, while it is open, turned into a sheet or back as the window crossed the breakpoint. Bubbles. */
|
|
1872
|
+
launcherToggle = new EventEmitter();
|
|
1873
|
+
onLauncherToggle(e) { this.launcherToggle.emit(e.detail); }
|
|
1874
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AparteLauncherDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1875
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.2.25", type: AparteLauncherDirective, isStandalone: true, selector: "aparte-launcher", inputs: { open: ["open", "open", booleanAttribute], label: "label", breakpoint: "breakpoint" }, outputs: { launcherToggle: "launcherToggle" }, host: { listeners: { "aparte-launcher-toggle": "onLauncherToggle($event)" } }, usesInheritance: true, ngImport: i0 });
|
|
1876
|
+
}
|
|
1877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: AparteLauncherDirective, decorators: [{
|
|
1878
|
+
type: Directive,
|
|
1879
|
+
args: [{ selector: 'aparte-launcher', standalone: true }]
|
|
1880
|
+
}], propDecorators: { open: [{
|
|
1881
|
+
type: Input,
|
|
1882
|
+
args: [{ transform: booleanAttribute }]
|
|
1883
|
+
}], label: [{
|
|
1884
|
+
type: Input
|
|
1885
|
+
}], breakpoint: [{
|
|
1886
|
+
type: Input
|
|
1887
|
+
}], launcherToggle: [{
|
|
1888
|
+
type: Output
|
|
1889
|
+
}], onLauncherToggle: [{
|
|
1890
|
+
type: HostListener,
|
|
1891
|
+
args: ['aparte-launcher-toggle', ['$event']]
|
|
1892
|
+
}] } });
|
|
1855
1893
|
/** `<aparte-optgroup>` — AparteOptgroup */
|
|
1856
1894
|
class AparteOptgroupDirective extends AparteElementBase {
|
|
1857
1895
|
/** Group label */
|
|
@@ -2170,6 +2208,7 @@ const APARTE_ELEMENT_DIRECTIVES = [
|
|
|
2170
2208
|
AparteConversationListDirective,
|
|
2171
2209
|
AparteElicitationDirective,
|
|
2172
2210
|
AparteIconDirective,
|
|
2211
|
+
AparteLauncherDirective,
|
|
2173
2212
|
AparteOptgroupDirective,
|
|
2174
2213
|
AparteOptionDirective,
|
|
2175
2214
|
AparteProgressSpinnerDirective,
|
|
@@ -2333,5 +2372,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
|
|
|
2333
2372
|
* Generated bundle index. Do not edit.
|
|
2334
2373
|
*/
|
|
2335
2374
|
|
|
2336
|
-
export { APARTE_CLIENT_OPTIONS, APARTE_CONFIG_TOKEN, APARTE_ELEMENT_DIRECTIVES, AparteAiService, AparteBubbleDirective, AparteChatBubbleDirective, AparteChatComponent, AparteChatStatusDirective, AparteChatViewportDirective, AparteComposerActionDirective, AparteComposerAddAttachmentDirective, AparteComposerAttachmentsDirective, AparteComposerCancelDirective, AparteComposerDirective, AparteComposerInputDirective, AparteComposerSendDirective, AparteComposerToolbarDirective, AparteContextDirective, AparteConversationListDirective, AparteElicitationDirective, AparteIconDirective, AparteOptgroupDirective, AparteOptionDirective, AparteProgressSpinnerDirective, AparteScrollRailDirective, AparteSegmentUIDirective, AparteSelectDirective, AparteSidebarDirective, AparteSplitDirective, AparteSuggestionsDirective, AparteToolUIDirective, AparteUiComponent, ConversationManagerService, provideAparte };
|
|
2375
|
+
export { APARTE_CLIENT_OPTIONS, APARTE_CONFIG_TOKEN, APARTE_ELEMENT_DIRECTIVES, AparteAiService, AparteBubbleDirective, AparteChatBubbleDirective, AparteChatComponent, AparteChatStatusDirective, AparteChatViewportDirective, AparteComposerActionDirective, AparteComposerAddAttachmentDirective, AparteComposerAttachmentsDirective, AparteComposerCancelDirective, AparteComposerDirective, AparteComposerInputDirective, AparteComposerSendDirective, AparteComposerToolbarDirective, AparteContextDirective, AparteConversationListDirective, AparteElicitationDirective, AparteIconDirective, AparteLauncherDirective, AparteOptgroupDirective, AparteOptionDirective, AparteProgressSpinnerDirective, AparteScrollRailDirective, AparteSegmentUIDirective, AparteSelectDirective, AparteSidebarDirective, AparteSplitDirective, AparteSuggestionsDirective, AparteToolUIDirective, AparteUiComponent, ConversationManagerService, provideAparte };
|
|
2337
2376
|
//# sourceMappingURL=aparte-angular.mjs.map
|