@salla.sa/ui-ai-kit-react 1.0.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.
@@ -0,0 +1,70 @@
1
+ /**
2
+ * This file was automatically generated by the Stencil React Output Target.
3
+ * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
4
+ */
5
+ import { type AiChatHeaderCustomEvent, type AiChatMessageCustomEvent, type AiLoadingCustomEvent, type AiMessageInputCustomEvent, type AiRatingCustomEvent, type AiSuggestionCustomEvent, type AiVoiceInputCustomEvent, type LoadingStep, type RatingValue } from "@salla.sa/ui-ai-kit-core";
6
+ import { AiCard as AiCardElement } from "@salla.sa/ui-ai-kit-core/components/ai-card.js";
7
+ import { AiChatContainer as AiChatContainerElement } from "@salla.sa/ui-ai-kit-core/components/ai-chat-container.js";
8
+ import { AiChatHeader as AiChatHeaderElement } from "@salla.sa/ui-ai-kit-core/components/ai-chat-header.js";
9
+ import { AiChatMessage as AiChatMessageElement } from "@salla.sa/ui-ai-kit-core/components/ai-chat-message.js";
10
+ import { AiIcon as AiIconElement } from "@salla.sa/ui-ai-kit-core/components/ai-icon.js";
11
+ import { AiLink as AiLinkElement } from "@salla.sa/ui-ai-kit-core/components/ai-link.js";
12
+ import { AiLoading as AiLoadingElement } from "@salla.sa/ui-ai-kit-core/components/ai-loading.js";
13
+ import { AiMessageInput as AiMessageInputElement } from "@salla.sa/ui-ai-kit-core/components/ai-message-input.js";
14
+ import { AiRating as AiRatingElement } from "@salla.sa/ui-ai-kit-core/components/ai-rating.js";
15
+ import { AiSuggestion as AiSuggestionElement } from "@salla.sa/ui-ai-kit-core/components/ai-suggestion.js";
16
+ import { AiVoiceInput as AiVoiceInputElement } from "@salla.sa/ui-ai-kit-core/components/ai-voice-input.js";
17
+ import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
18
+ export type AiCardEvents = NonNullable<unknown>;
19
+ export declare const AiCard: StencilReactComponent<AiCardElement, AiCardEvents>;
20
+ export type AiChatContainerEvents = NonNullable<unknown>;
21
+ export declare const AiChatContainer: StencilReactComponent<AiChatContainerElement, AiChatContainerEvents>;
22
+ export type AiChatHeaderEvents = {
23
+ onCloseClick: EventName<AiChatHeaderCustomEvent<void>>;
24
+ onEditClick: EventName<AiChatHeaderCustomEvent<void>>;
25
+ onDropdownClick: EventName<AiChatHeaderCustomEvent<void>>;
26
+ onMoreClick: EventName<AiChatHeaderCustomEvent<void>>;
27
+ onBackClick: EventName<AiChatHeaderCustomEvent<void>>;
28
+ onHeaderDragStart: EventName<AiChatHeaderCustomEvent<{
29
+ clientX: number;
30
+ clientY: number;
31
+ }>>;
32
+ };
33
+ export declare const AiChatHeader: StencilReactComponent<AiChatHeaderElement, AiChatHeaderEvents>;
34
+ export type AiChatMessageEvents = {
35
+ onMessageCopy: EventName<AiChatMessageCustomEvent<void>>;
36
+ onMessageFeedback: EventName<AiChatMessageCustomEvent<'up' | 'down'>>;
37
+ onMessageRegenerate: EventName<AiChatMessageCustomEvent<void>>;
38
+ };
39
+ export declare const AiChatMessage: StencilReactComponent<AiChatMessageElement, AiChatMessageEvents>;
40
+ export type AiIconEvents = NonNullable<unknown>;
41
+ export declare const AiIcon: StencilReactComponent<AiIconElement, AiIconEvents>;
42
+ export type AiLinkEvents = NonNullable<unknown>;
43
+ export declare const AiLink: StencilReactComponent<AiLinkElement, AiLinkEvents>;
44
+ export type AiLoadingEvents = {
45
+ onToggleExpand: EventName<AiLoadingCustomEvent<boolean>>;
46
+ onStepClick: EventName<AiLoadingCustomEvent<LoadingStep>>;
47
+ };
48
+ export declare const AiLoading: StencilReactComponent<AiLoadingElement, AiLoadingEvents>;
49
+ export type AiMessageInputEvents = {
50
+ onSendMessage: EventName<AiMessageInputCustomEvent<string>>;
51
+ onVoiceButtonClick: EventName<AiMessageInputCustomEvent<void>>;
52
+ };
53
+ export declare const AiMessageInput: StencilReactComponent<AiMessageInputElement, AiMessageInputEvents>;
54
+ export type AiRatingEvents = {
55
+ onRatingChange: EventName<AiRatingCustomEvent<RatingValue>>;
56
+ };
57
+ export declare const AiRating: StencilReactComponent<AiRatingElement, AiRatingEvents>;
58
+ export type AiSuggestionEvents = {
59
+ onSuggestionClick: EventName<AiSuggestionCustomEvent<string>>;
60
+ };
61
+ export declare const AiSuggestion: StencilReactComponent<AiSuggestionElement, AiSuggestionEvents>;
62
+ export type AiVoiceInputEvents = {
63
+ onAudioRecorded: EventName<AiVoiceInputCustomEvent<{
64
+ blob: Blob;
65
+ duration: number;
66
+ }>>;
67
+ onRecordingCancel: EventName<AiVoiceInputCustomEvent<void>>;
68
+ };
69
+ export declare const AiVoiceInput: StencilReactComponent<AiVoiceInputElement, AiVoiceInputEvents>;
70
+ //# sourceMappingURL=components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/generated/components.ts"],"names":[],"mappings":"AAEA;;;GAGG;AAIH,OAAO,EAAE,KAAK,uBAAuB,EAAE,KAAK,wBAAwB,EAAE,KAAK,oBAAoB,EAAE,KAAK,yBAAyB,EAAE,KAAK,mBAAmB,EAAE,KAAK,uBAAuB,EAAE,KAAK,uBAAuB,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5R,OAAO,EAAE,MAAM,IAAI,aAAa,EAAuC,MAAM,gDAAgD,CAAC;AAC9H,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAgD,MAAM,0DAA0D,CAAC;AACnK,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAA6C,MAAM,uDAAuD,CAAC;AACvJ,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAA8C,MAAM,wDAAwD,CAAC;AAC3J,OAAO,EAAE,MAAM,IAAI,aAAa,EAAuC,MAAM,gDAAgD,CAAC;AAC9H,OAAO,EAAE,MAAM,IAAI,aAAa,EAAuC,MAAM,gDAAgD,CAAC;AAC9H,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAA0C,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AC,WAAW,CAAC,CAAC,CAAA;CAAE,CAAC;AAE7F,eAAO,MAAM,QAAQ,EAAE,qBAAqB,CAAC,eAAe,EAAE,cAAc,CAO1E,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG;IAAE,iBAAiB,EAAE,SAAS,CAAC,uBAAuB,CAAC,MAAM,CAAC,CAAC,CAAA;CAAE,CAAC;AAEnG,eAAO,MAAM,YAAY,EAAE,qBAAqB,CAAC,mBAAmB,EAAE,kBAAkB,CAOtF,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG;IAC7B,eAAe,EAAE,SAAS,CAAC,uBAAuB,CAAC;QAAE,IAAI,EAAE,IAAI,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC;IACtF,iBAAiB,EAAE,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAA;CAC9D,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,qBAAqB,CAAC,mBAAmB,EAAE,kBAAkB,CAUtF,CAAC"}
@@ -0,0 +1,123 @@
1
+ 'use client';
2
+ import { AiCard as AiCardElement, defineCustomElement as defineAiCard } from "@salla.sa/ui-ai-kit-core/components/ai-card.js";
3
+ import { AiChatContainer as AiChatContainerElement, defineCustomElement as defineAiChatContainer } from "@salla.sa/ui-ai-kit-core/components/ai-chat-container.js";
4
+ import { AiChatHeader as AiChatHeaderElement, defineCustomElement as defineAiChatHeader } from "@salla.sa/ui-ai-kit-core/components/ai-chat-header.js";
5
+ import { AiChatMessage as AiChatMessageElement, defineCustomElement as defineAiChatMessage } from "@salla.sa/ui-ai-kit-core/components/ai-chat-message.js";
6
+ import { AiIcon as AiIconElement, defineCustomElement as defineAiIcon } from "@salla.sa/ui-ai-kit-core/components/ai-icon.js";
7
+ import { AiLink as AiLinkElement, defineCustomElement as defineAiLink } from "@salla.sa/ui-ai-kit-core/components/ai-link.js";
8
+ import { AiLoading as AiLoadingElement, defineCustomElement as defineAiLoading } from "@salla.sa/ui-ai-kit-core/components/ai-loading.js";
9
+ import { AiMessageInput as AiMessageInputElement, defineCustomElement as defineAiMessageInput } from "@salla.sa/ui-ai-kit-core/components/ai-message-input.js";
10
+ import { AiRating as AiRatingElement, defineCustomElement as defineAiRating } from "@salla.sa/ui-ai-kit-core/components/ai-rating.js";
11
+ import { AiSuggestion as AiSuggestionElement, defineCustomElement as defineAiSuggestion } from "@salla.sa/ui-ai-kit-core/components/ai-suggestion.js";
12
+ import { AiVoiceInput as AiVoiceInputElement, defineCustomElement as defineAiVoiceInput } from "@salla.sa/ui-ai-kit-core/components/ai-voice-input.js";
13
+ import { createComponent } from '@stencil/react-output-target/runtime';
14
+ import React from 'react';
15
+ export const AiCard = /*@__PURE__*/ createComponent({
16
+ tagName: 'ai-card',
17
+ elementClass: AiCardElement,
18
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
19
+ react: React,
20
+ events: {},
21
+ defineCustomElement: defineAiCard
22
+ });
23
+ export const AiChatContainer = /*@__PURE__*/ createComponent({
24
+ tagName: 'ai-chat-container',
25
+ elementClass: AiChatContainerElement,
26
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
27
+ react: React,
28
+ events: {},
29
+ defineCustomElement: defineAiChatContainer
30
+ });
31
+ export const AiChatHeader = /*@__PURE__*/ createComponent({
32
+ tagName: 'ai-chat-header',
33
+ elementClass: AiChatHeaderElement,
34
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
35
+ react: React,
36
+ events: {
37
+ onCloseClick: 'closeClick',
38
+ onEditClick: 'editClick',
39
+ onDropdownClick: 'dropdownClick',
40
+ onMoreClick: 'moreClick',
41
+ onBackClick: 'backClick',
42
+ onHeaderDragStart: 'headerDragStart'
43
+ },
44
+ defineCustomElement: defineAiChatHeader
45
+ });
46
+ export const AiChatMessage = /*@__PURE__*/ createComponent({
47
+ tagName: 'ai-chat-message',
48
+ elementClass: AiChatMessageElement,
49
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
50
+ react: React,
51
+ events: {
52
+ onMessageCopy: 'messageCopy',
53
+ onMessageFeedback: 'messageFeedback',
54
+ onMessageRegenerate: 'messageRegenerate'
55
+ },
56
+ defineCustomElement: defineAiChatMessage
57
+ });
58
+ export const AiIcon = /*@__PURE__*/ createComponent({
59
+ tagName: 'ai-icon',
60
+ elementClass: AiIconElement,
61
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
62
+ react: React,
63
+ events: {},
64
+ defineCustomElement: defineAiIcon
65
+ });
66
+ export const AiLink = /*@__PURE__*/ createComponent({
67
+ tagName: 'ai-link',
68
+ elementClass: AiLinkElement,
69
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
70
+ react: React,
71
+ events: {},
72
+ defineCustomElement: defineAiLink
73
+ });
74
+ export const AiLoading = /*@__PURE__*/ createComponent({
75
+ tagName: 'ai-loading',
76
+ elementClass: AiLoadingElement,
77
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
78
+ react: React,
79
+ events: {
80
+ onToggleExpand: 'toggleExpand',
81
+ onStepClick: 'stepClick'
82
+ },
83
+ defineCustomElement: defineAiLoading
84
+ });
85
+ export const AiMessageInput = /*@__PURE__*/ createComponent({
86
+ tagName: 'ai-message-input',
87
+ elementClass: AiMessageInputElement,
88
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
89
+ react: React,
90
+ events: {
91
+ onSendMessage: 'sendMessage',
92
+ onVoiceButtonClick: 'voiceButtonClick'
93
+ },
94
+ defineCustomElement: defineAiMessageInput
95
+ });
96
+ export const AiRating = /*@__PURE__*/ createComponent({
97
+ tagName: 'ai-rating',
98
+ elementClass: AiRatingElement,
99
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
100
+ react: React,
101
+ events: { onRatingChange: 'ratingChange' },
102
+ defineCustomElement: defineAiRating
103
+ });
104
+ export const AiSuggestion = /*@__PURE__*/ createComponent({
105
+ tagName: 'ai-suggestion',
106
+ elementClass: AiSuggestionElement,
107
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
108
+ react: React,
109
+ events: { onSuggestionClick: 'suggestionClick' },
110
+ defineCustomElement: defineAiSuggestion
111
+ });
112
+ export const AiVoiceInput = /*@__PURE__*/ createComponent({
113
+ tagName: 'ai-voice-input',
114
+ elementClass: AiVoiceInputElement,
115
+ // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
116
+ react: React,
117
+ events: {
118
+ onAudioRecorded: 'audioRecorded',
119
+ onRecordingCancel: 'recordingCancel'
120
+ },
121
+ defineCustomElement: defineAiVoiceInput
122
+ });
123
+ //# sourceMappingURL=components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"components.js","sourceRoot":"","sources":["../../src/generated/components.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAUb,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,mBAAmB,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9H,OAAO,EAAE,eAAe,IAAI,sBAAsB,EAAE,mBAAmB,IAAI,qBAAqB,EAAE,MAAM,0DAA0D,CAAC;AACnK,OAAO,EAAE,YAAY,IAAI,mBAAmB,EAAE,mBAAmB,IAAI,kBAAkB,EAAE,MAAM,uDAAuD,CAAC;AACvJ,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,mBAAmB,IAAI,mBAAmB,EAAE,MAAM,wDAAwD,CAAC;AAC3J,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,mBAAmB,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9H,OAAO,EAAE,MAAM,IAAI,aAAa,EAAE,mBAAmB,IAAI,YAAY,EAAE,MAAM,gDAAgD,CAAC;AAC9H,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,mBAAmB,IAAI,eAAe,EAAE,MAAM,mDAAmD,CAAC;AAC1I,OAAO,EAAE,cAAc,IAAI,qBAAqB,E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,aAAa,EAAE,aAAa;QAC5B,kBAAkB,EAAE,kBAAkB;KACjB;IACzB,mBAAmB,EAAE,oBAAoB;CAC5C,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,QAAQ,GAA2D,aAAa,CAAC,eAAe,CAAkC;IAC3I,OAAO,EAAE,WAAW;IACpB,YAAY,EAAE,eAAe;IAC7B,0GAA0G;IAC1G,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,EAAE,cAAc,EAAE,cAAc,EAAoB;IAC5D,mBAAmB,EAAE,cAAc;CACtC,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,YAAY,GAAmE,aAAa,CAAC,eAAe,CAA0C;IAC/J,OAAO,EAAE,eAAe;IACxB,YAAY,EAAE,mBAAmB;IACjC,0GAA0G;IAC1G,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,EAAE,iBAAiB,EAAE,iBAAiB,EAAwB;IACtE,mBAAmB,EAAE,kBAAkB;CAC1C,CAAC,CAAC;AAOH,MAAM,CAAC,MAAM,YAAY,GAAmE,aAAa,CAAC,eAAe,CAA0C;IAC/J,OAAO,EAAE,gBAAgB;IACzB,YAAY,EAAE,mBAAmB;IACjC,0GAA0G;IAC1G,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE;QACJ,eAAe,EAAE,eAAe;QAChC,iBAAiB,EAAE,iBAAiB;KACjB;IACvB,mBAAmB,EAAE,kBAAkB;CAC1C,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import '@salla.sa/ui-ai-kit-core/theme.css';
2
+ export * from './generated/components';
3
+ export { defineCustomElements } from '@salla.sa/ui-ai-kit-core/loader';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,oCAAoC,CAAC;AAG5C,cAAc,wBAAwB,CAAC;AAGvC,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,9 @@
1
+ // packages/react/src/index.ts
2
+ // Global design tokens (--ai-* CSS custom properties) — must be in document head
3
+ // so they cascade into shadow DOM components. Loaded once when the package is imported.
4
+ import '@salla.sa/ui-ai-kit-core/theme.css';
5
+ // Export all the auto-generated components
6
+ export * from './generated/components';
7
+ // Export the loader so MFEs can initialize the components
8
+ export { defineCustomElements } from '@salla.sa/ui-ai-kit-core/loader';
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAE9B,iFAAiF;AACjF,wFAAwF;AACxF,OAAO,oCAAoC,CAAC;AAE5C,2CAA2C;AAC3C,cAAc,wBAAwB,CAAC;AAEvC,0DAA0D;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,47 @@
1
+ {
2
+ "name": "@salla.sa/ui-ai-kit-react",
3
+ "version": "1.0.0",
4
+ "main": "./dist/index.js",
5
+ "module": "./dist/index.js",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js"
12
+ }
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/SallaApp/ui-ai-kit.git",
17
+ "directory": "packages/react"
18
+ },
19
+ "publishConfig": {
20
+ "access": "restricted",
21
+ "registry": "https://registry.npmjs.org/"
22
+ },
23
+ "files": [
24
+ "dist/"
25
+ ],
26
+ "sideEffects": [
27
+ "./dist/index.js"
28
+ ],
29
+ "scripts": {
30
+ "build": "tsc",
31
+ "start": "tsc -w",
32
+ "clean": "rm -rf dist"
33
+ },
34
+ "peerDependencies": {
35
+ "react": "^18.0.0 || ^19.0.0",
36
+ "react-dom": "^18.0.0 || ^19.0.0"
37
+ },
38
+ "dependencies": {
39
+ "@salla.sa/ui-ai-kit-core": "1.0.0",
40
+ "@stencil/react-output-target": "^1.4.2"
41
+ },
42
+ "devDependencies": {
43
+ "@types/react": "^19.2.14",
44
+ "@types/react-dom": "^19.2.3",
45
+ "typescript": "^5.9.3"
46
+ }
47
+ }