@inkeep/agents-ui-js 0.17.2 → 0.17.4

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/types.d.ts CHANGED
@@ -476,8 +476,13 @@ declare interface CommonProperties {
476
476
  }
477
477
 
478
478
  export declare type ComponentsConfig<A extends Record<string, unknown>> = {
479
+ // The widget injects `messageId` (the rendered message's id) into every
480
+ // custom component's props so in-component handlers can attribute events to
481
+ // the message without a wrapping context provider. This does not force a
482
+ // change on existing handlers: a handler typed `(props: A[K]) => void` stays
483
+ // assignable here by parameter contravariance.
479
484
  [K in keyof A]: (
480
- props: A[K],
485
+ props: A[K] & { messageId: string },
481
486
  target: HTMLElement,
482
487
  // TODO: add context
483
488
  context: null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inkeep/agents-ui-js",
3
- "version": "0.17.2",
3
+ "version": "0.17.4",
4
4
  "description": "",
5
5
  "license": "Inkeep, Inc. Customer License (IICL) v1.1",
6
6
  "homepage": "",
@@ -55,7 +55,7 @@
55
55
  "vite": "5.4.11",
56
56
  "vite-bundle-visualizer": "^1.2.1",
57
57
  "vite-plugin-dts": "4.4.0",
58
- "@inkeep/agents-ui": "0.17.2"
58
+ "@inkeep/agents-ui": "0.17.4"
59
59
  },
60
60
  "module": "./dist/embed.js",
61
61
  "types": "./dist/types.d.ts",