@helpai/elements 1.10.0 → 1.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/jsx-react.d.ts CHANGED
@@ -9,7 +9,8 @@ import type { DetailedHTMLProps, HTMLAttributes } from 'react';
9
9
  declare module 'react' {
10
10
  namespace JSX {
11
11
  interface IntrinsicElements {
12
- 'web-ai-chat': DetailedHTMLProps<HTMLAttributes<WebAiChatElement>, WebAiChatElement> & WebAiChatAttributes;
12
+ // `tools` is a property (functions can't be attributes); React 19 sets it on the defined element.
13
+ 'web-ai-chat': DetailedHTMLProps<HTMLAttributes<WebAiChatElement>, WebAiChatElement> & WebAiChatAttributes & Partial<Pick<WebAiChatElement, 'tools'>>;
13
14
  }
14
15
  }
15
16
  }
package/jsx-svelte.d.ts CHANGED
@@ -8,7 +8,8 @@ import type { WebAiChatAttributes, WebAiChatElement } from './web-component';
8
8
  declare global {
9
9
  namespace svelteHTML {
10
10
  interface IntrinsicElements {
11
- 'web-ai-chat': WebAiChatAttributes & { 'bind:this'?: WebAiChatElement | null };
11
+ // `tools` sets the property (functions can't be attributes).
12
+ 'web-ai-chat': WebAiChatAttributes & Partial<Pick<WebAiChatElement, 'tools'>> & { 'bind:this'?: WebAiChatElement | null };
12
13
  }
13
14
  }
14
15
  }
package/jsx-vue.d.ts CHANGED
@@ -4,11 +4,12 @@
4
4
  * (`compilerOptions.isCustomElement: (tag) => tag === 'web-ai-chat'`).
5
5
  */
6
6
 
7
- import type { WebAiChatAttributes } from './web-component';
7
+ import type { WebAiChatAttributes, WebAiChatElement } from './web-component';
8
8
  import type { DefineComponent } from 'vue';
9
9
 
10
10
  declare module 'vue' {
11
11
  interface GlobalComponents {
12
- 'web-ai-chat': DefineComponent<WebAiChatAttributes>;
12
+ // `:tools` binds the property (functions can't be attributes).
13
+ 'web-ai-chat': DefineComponent<WebAiChatAttributes & Partial<Pick<WebAiChatElement, 'tools'>>>;
13
14
  }
14
15
  }