@aparte/svelte 0.15.1 → 0.16.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.
@@ -10,6 +10,10 @@ export let submitOnEnter = true;
10
10
  export let layoutTransitionMs = 0;
11
11
  export let centerWhenEmpty = false;
12
12
  export let attachments = false;
13
+ export let elicitation = true;
14
+ let className = "";
15
+ export { className as class };
16
+ export let style = void 0;
13
17
  export let conversationId = null;
14
18
  export let config = void 0;
15
19
  const dispatch = createEventDispatcher();
@@ -184,8 +188,9 @@ function _assertImperativeParity() {
184
188
  </script>
185
189
 
186
190
  <div
187
- class="aparte-chat-container"
191
+ class="aparte-chat-container {className}"
188
192
  class:aparte-chat-container--auto-center={centerWhenEmpty}
193
+ {style}
189
194
  data-aparte-chat
190
195
  data-aparte-empty={centerWhenEmpty && internalMessages.length === 0 ? '' : null}
191
196
  id={hostId}
@@ -203,6 +208,7 @@ function _assertImperativeParity() {
203
208
  <aparte-chat-bubble
204
209
  message-id={m.id}
205
210
  data-role={m.role}
211
+ data-kind={m.compaction ? 'compaction' : undefined}
206
212
  timestamp={m.timestamp}
207
213
  content={m.content}
208
214
  streaming={isAwaitingReply(m) ? '' : null}></aparte-chat-bubble>
@@ -211,6 +217,10 @@ function _assertImperativeParity() {
211
217
  <aparte-chat-status visible={typingActive ? '' : null} text={typingText}></aparte-chat-status>
212
218
  </aparte-chat-viewport>
213
219
 
220
+ <!-- The presenter for a request to the human (approval gate, ask_user…). Renders
221
+ nothing until something asks; on by default as in <aparte-chat>. -->
222
+ {#if elicitation}<aparte-elicitation></aparte-elicitation>{/if}
223
+
214
224
  <!-- Content above the composer (banner, disclaimer, context chip). -->
215
225
  <slot name="above-composer" />
216
226
 
@@ -19,5 +19,8 @@ export declare function createConversationManager(): {
19
19
  delete: (id: string) => Promise<void>;
20
20
  archive: (id: string) => Promise<void>;
21
21
  unarchive: (id: string) => Promise<void>;
22
+ pin: (id: string) => Promise<void>;
23
+ unpin: (id: string) => Promise<void>;
24
+ updateTitle: (id: string, title: string) => Promise<void>;
22
25
  };
23
26
  //# sourceMappingURL=conversationManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"conversationManager.d.ts","sourceRoot":"","sources":["../../src/lib/stores/conversationManager.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,YAAY,EAEjB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC5B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD;;;;;GAKG;AACH,wBAAgB,yBAAyB;;;;;;oBAgCR,oBAAoB,WAAU,YAAY,KAAwB,OAAO,CAAC,IAAI,CAAC;wBAmBpF,MAAM;yBACL,MAAM,WAAW,aAAa;6BAC1B,MAAM,YAAY,aAAa,EAAE;iBAC7C,MAAM;kBACL,MAAM;oBACJ,MAAM;EAE7B"}
1
+ {"version":3,"file":"conversationManager.d.ts","sourceRoot":"","sources":["../../src/lib/stores/conversationManager.ts"],"names":[],"mappings":"AAEA,OAAO,EAEH,KAAK,YAAY,EAEjB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EAC5B,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAEjD;;;;;GAKG;AACH,wBAAgB,yBAAyB;;;;;;oBAgCR,oBAAoB,WAAU,YAAY,KAAwB,OAAO,CAAC,IAAI,CAAC;wBAmBpF,MAAM;yBACL,MAAM,WAAW,aAAa;6BAC1B,MAAM,YAAY,aAAa,EAAE;iBAC7C,MAAM;kBACL,MAAM;oBACJ,MAAM;cACZ,MAAM;gBACJ,MAAM;sBACA,MAAM,SAAS,MAAM;EAE9C"}
@@ -54,5 +54,8 @@ export function createConversationManager() {
54
54
  delete: (id) => assert().delete(id),
55
55
  archive: (id) => assert().archive(id),
56
56
  unarchive: (id) => assert().unarchive(id),
57
+ pin: (id) => assert().pin(id),
58
+ unpin: (id) => assert().unpin(id),
59
+ updateTitle: (id, title) => assert().updateTitle(id, title),
57
60
  };
58
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aparte/svelte",
3
- "version": "0.15.1",
3
+ "version": "0.16.0",
4
4
  "description": "Svelte wrapper for aparté — an ergonomic <AparteChat> component plus stores over the framework-agnostic web components. Works on Svelte 4 and 5.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -38,7 +38,7 @@
38
38
  "@sveltejs/package itself. Until then the props are documented, not compiler-enforced, for consumers."
39
39
  ],
40
40
  "peerDependencies": {
41
- "@aparte/core": ">=0.15.1 <1.0.0",
41
+ "@aparte/core": ">=0.16.0 <1.0.0",
42
42
  "svelte": "^4.0.0 || ^5.0.0"
43
43
  },
44
44
  "devDependencies": {
@@ -51,7 +51,7 @@
51
51
  "svelte2tsx": "^0.7.61",
52
52
  "typescript": "^5.4.0",
53
53
  "vite": "^6.0.0",
54
- "@aparte/core": "0.15.1"
54
+ "@aparte/core": "0.16.0"
55
55
  },
56
56
  "keywords": [
57
57
  "svelte",