@helpai/elements 1.8.0 → 1.10.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/README.md +34 -12
- package/configurator.mjs +1 -1
- package/docs/README.md +183 -0
- package/docs/analytics.md +551 -0
- package/docs/api-reference.md +637 -0
- package/docs/browser-support.md +302 -0
- package/docs/configuration.md +1014 -0
- package/docs/events-and-hooks.md +483 -0
- package/docs/faq.md +435 -0
- package/docs/frameworks.md +643 -0
- package/docs/installation.md +626 -0
- package/docs/options.md +323 -0
- package/docs/quickstart.md +229 -0
- package/docs/recipes.md +725 -0
- package/docs/security-privacy.md +636 -0
- package/docs/theming.md +570 -0
- package/docs/troubleshooting.md +523 -0
- package/elements-web-component.esm.js +39 -39
- package/elements-web-component.esm.js.map +4 -4
- package/elements.cjs.js +39 -39
- package/elements.cjs.js.map +4 -4
- package/elements.esm.js +39 -39
- package/elements.esm.js.map +4 -4
- package/elements.js +39 -39
- package/elements.js.map +4 -4
- package/index.d.ts +107 -3
- package/index.mjs +13 -13
- package/jsx-react.d.ts +15 -0
- package/jsx-svelte.d.ts +14 -0
- package/jsx-vue.d.ts +14 -0
- package/llms-full.txt +7954 -0
- package/llms.txt +37 -0
- package/loader.js +3 -3
- package/loader.min.js +1 -1
- package/package.json +36 -1
- package/react.d.ts +3575 -0
- package/react.mjs +62 -0
- package/schema.d.ts +56 -0
- package/schema.json +24 -2
- package/schema.mjs +1 -1
- package/web-component.d.ts +1583 -17
- package/web-component.mjs +14 -14
package/jsx-react.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<web-ai-chat>` in React 19 JSX: its attributes autocomplete and a `ref` is the typed element (`ask`, `open`,
|
|
3
|
+
* `state`, …). Load once, e.g. `import type {} from '@helpai/elements/jsx/react';` in a `.d.ts` or your entry file.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { WebAiChatAttributes, WebAiChatElement } from './web-component';
|
|
7
|
+
import type { DetailedHTMLProps, HTMLAttributes } from 'react';
|
|
8
|
+
|
|
9
|
+
declare module 'react' {
|
|
10
|
+
namespace JSX {
|
|
11
|
+
interface IntrinsicElements {
|
|
12
|
+
'web-ai-chat': DetailedHTMLProps<HTMLAttributes<WebAiChatElement>, WebAiChatElement> & WebAiChatAttributes;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
package/jsx-svelte.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<web-ai-chat>` in Svelte markup: its attributes autocomplete and `bind:this` is the typed element. Load once, e.g.
|
|
3
|
+
* `import type {} from '@helpai/elements/jsx/svelte';` in `src/app.d.ts`.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { WebAiChatAttributes, WebAiChatElement } from './web-component';
|
|
7
|
+
|
|
8
|
+
declare global {
|
|
9
|
+
namespace svelteHTML {
|
|
10
|
+
interface IntrinsicElements {
|
|
11
|
+
'web-ai-chat': WebAiChatAttributes & { 'bind:this'?: WebAiChatElement | null };
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
package/jsx-vue.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `<web-ai-chat>` in Vue templates and TSX: its attributes autocomplete. Load once, e.g.
|
|
3
|
+
* `import type {} from '@helpai/elements/jsx/vue';`, and tell Vue the tag is a custom element
|
|
4
|
+
* (`compilerOptions.isCustomElement: (tag) => tag === 'web-ai-chat'`).
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { WebAiChatAttributes } from './web-component';
|
|
8
|
+
import type { DefineComponent } from 'vue';
|
|
9
|
+
|
|
10
|
+
declare module 'vue' {
|
|
11
|
+
interface GlobalComponents {
|
|
12
|
+
'web-ai-chat': DefineComponent<WebAiChatAttributes>;
|
|
13
|
+
}
|
|
14
|
+
}
|