@ai12z/react 3.11.1-alpha.2 → 3.11.1-alpha.5
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.
|
@@ -5,7 +5,9 @@ import { Ai12zCarousel as Ai12zCarouselElement, defineCustomElement as defineAi1
|
|
|
5
5
|
import { Ai12zCategory as Ai12zCategoryElement, defineCustomElement as defineAi12zCategory } from "ai12z/dist/components/ai12z-category.js";
|
|
6
6
|
import { Ai12zChatMessage as Ai12zChatMessageElement, defineCustomElement as defineAi12zChatMessage } from "ai12z/dist/components/ai12z-chat-message.js";
|
|
7
7
|
import { Ai12zChat as Ai12zChatElement, defineCustomElement as defineAi12zChat } from "ai12z/dist/components/ai12z-chat.js";
|
|
8
|
+
import { Ai12zContainer as Ai12zContainerElement, defineCustomElement as defineAi12zContainer } from "ai12z/dist/components/ai12z-container.js";
|
|
8
9
|
import { Ai12zCta as Ai12zCtaElement, defineCustomElement as defineAi12zCta } from "ai12z/dist/components/ai12z-cta.js";
|
|
10
|
+
import { Ai12zForm as Ai12zFormElement, defineCustomElement as defineAi12zForm } from "ai12z/dist/components/ai12z-form.js";
|
|
9
11
|
import { Ai12zInlineSearch as Ai12zInlineSearchElement, defineCustomElement as defineAi12zInlineSearch } from "ai12z/dist/components/ai12z-inline-search.js";
|
|
10
12
|
import { Ai12zInputForm as Ai12zInputFormElement, defineCustomElement as defineAi12zInputForm } from "ai12z/dist/components/ai12z-input-form.js";
|
|
11
13
|
import { Ai12zKnowledgeBox as Ai12zKnowledgeBoxElement, defineCustomElement as defineAi12zKnowledgeBox } from "ai12z/dist/components/ai12z-knowledge-box.js";
|
|
@@ -81,6 +83,16 @@ export const Ai12zChatMessage = createComponent({
|
|
|
81
83
|
events: {},
|
|
82
84
|
defineCustomElement: defineAi12zChatMessage
|
|
83
85
|
});
|
|
86
|
+
export const Ai12zContainer = createComponent({
|
|
87
|
+
tagName: 'ai12z-container',
|
|
88
|
+
elementClass: Ai12zContainerElement,
|
|
89
|
+
react: React,
|
|
90
|
+
events: {
|
|
91
|
+
onResponseReceived: 'responseReceived',
|
|
92
|
+
onErrored: 'errored'
|
|
93
|
+
},
|
|
94
|
+
defineCustomElement: defineAi12zContainer
|
|
95
|
+
});
|
|
84
96
|
export const Ai12zCta = createComponent({
|
|
85
97
|
tagName: 'ai12z-cta',
|
|
86
98
|
elementClass: Ai12zCtaElement,
|
|
@@ -105,6 +117,16 @@ export const Ai12zCta = createComponent({
|
|
|
105
117
|
},
|
|
106
118
|
defineCustomElement: defineAi12zCta
|
|
107
119
|
});
|
|
120
|
+
export const Ai12zForm = createComponent({
|
|
121
|
+
tagName: 'ai12z-form',
|
|
122
|
+
elementClass: Ai12zFormElement,
|
|
123
|
+
react: React,
|
|
124
|
+
events: {
|
|
125
|
+
onFormSubmitted: 'formSubmitted',
|
|
126
|
+
onErrored: 'errored'
|
|
127
|
+
},
|
|
128
|
+
defineCustomElement: defineAi12zForm
|
|
129
|
+
});
|
|
108
130
|
export const Ai12zInlineSearch = createComponent({
|
|
109
131
|
tagName: 'ai12z-inline-search',
|
|
110
132
|
elementClass: Ai12zInlineSearchElement,
|
|
@@ -5,7 +5,9 @@ import { Ai12zCarousel as Ai12zCarouselElement } from "ai12z/dist/components/ai1
|
|
|
5
5
|
import { Ai12zCategory as Ai12zCategoryElement } from "ai12z/dist/components/ai12z-category.js";
|
|
6
6
|
import { Ai12zChatMessage as Ai12zChatMessageElement } from "ai12z/dist/components/ai12z-chat-message.js";
|
|
7
7
|
import { Ai12zChat as Ai12zChatElement } from "ai12z/dist/components/ai12z-chat.js";
|
|
8
|
+
import { Ai12zContainer as Ai12zContainerElement } from "ai12z/dist/components/ai12z-container.js";
|
|
8
9
|
import { Ai12zCta as Ai12zCtaElement } from "ai12z/dist/components/ai12z-cta.js";
|
|
10
|
+
import { Ai12zForm as Ai12zFormElement } from "ai12z/dist/components/ai12z-form.js";
|
|
9
11
|
import { Ai12zInlineSearch as Ai12zInlineSearchElement } from "ai12z/dist/components/ai12z-inline-search.js";
|
|
10
12
|
import { Ai12zInputForm as Ai12zInputFormElement } from "ai12z/dist/components/ai12z-input-form.js";
|
|
11
13
|
import { Ai12zKnowledgeBox as Ai12zKnowledgeBoxElement } from "ai12z/dist/components/ai12z-knowledge-box.js";
|
|
@@ -58,6 +60,11 @@ export type Ai12zChatEvents = {
|
|
|
58
60
|
export declare const Ai12zChat: StencilReactComponent<Ai12zChatElement, Ai12zChatEvents>;
|
|
59
61
|
export type Ai12zChatMessageEvents = NonNullable<unknown>;
|
|
60
62
|
export declare const Ai12zChatMessage: StencilReactComponent<Ai12zChatMessageElement, Ai12zChatMessageEvents>;
|
|
63
|
+
export type Ai12zContainerEvents = {
|
|
64
|
+
onResponseReceived: EventName<CustomEvent<any>>;
|
|
65
|
+
onErrored: EventName<CustomEvent<string>>;
|
|
66
|
+
};
|
|
67
|
+
export declare const Ai12zContainer: StencilReactComponent<Ai12zContainerElement, Ai12zContainerEvents>;
|
|
61
68
|
export type Ai12zCtaEvents = {
|
|
62
69
|
onErrored: EventName<CustomEvent<any>>;
|
|
63
70
|
onButtonClicked: EventName<CustomEvent<any>>;
|
|
@@ -83,6 +90,11 @@ export type Ai12zCtaEvents = {
|
|
|
83
90
|
onIsElementAvailable: EventName<CustomEvent<any>>;
|
|
84
91
|
};
|
|
85
92
|
export declare const Ai12zCta: StencilReactComponent<Ai12zCtaElement, Ai12zCtaEvents>;
|
|
93
|
+
export type Ai12zFormEvents = {
|
|
94
|
+
onFormSubmitted: EventName<CustomEvent<any>>;
|
|
95
|
+
onErrored: EventName<CustomEvent<string>>;
|
|
96
|
+
};
|
|
97
|
+
export declare const Ai12zForm: StencilReactComponent<Ai12zFormElement, Ai12zFormEvents>;
|
|
86
98
|
export type Ai12zInlineSearchEvents = {
|
|
87
99
|
onStateChanged: EventName<CustomEvent<boolean>>;
|
|
88
100
|
onStartStream: EventName<CustomEvent<{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai12z/react",
|
|
3
|
-
"version": "3.11.1-alpha.
|
|
3
|
+
"version": "3.11.1-alpha.5",
|
|
4
4
|
"description": "ai12z React Library",
|
|
5
5
|
"author": "Alpesh Patel <alpesh@ai12z.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"tsc": "tsc -p . --outDir ./dist"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"ai12z": "^3.11.1-alpha.
|
|
23
|
+
"ai12z": "^3.11.1-alpha.5"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/react": "^18.3.0",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "ae21cab18757fba431f11abf6a97c0b61713ef9a"
|
|
36
36
|
}
|