@cuadra-ai/uikit 0.1.19 → 0.1.21
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/adapters/chatModelAdapter.d.ts.map +1 -1
- package/dist/components/CuadraChat.d.ts +6 -0
- package/dist/components/CuadraChat.d.ts.map +1 -1
- package/dist/index.cjs +12 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +1225 -1144
- package/dist/index.mjs.map +1 -1
- package/dist/types/theme.d.ts +134 -0
- package/dist/types/theme.d.ts.map +1 -0
- package/dist/uikit.css +1 -1
- package/dist/utils/applyTheme.d.ts +16 -0
- package/dist/utils/applyTheme.d.ts.map +1 -0
- package/dist/widget/cuadra-uikit.css +1 -1
- package/dist/widget/cuadra-uikit.umd.js +22 -22
- package/dist/widget/cuadra-uikit.umd.js.map +1 -1
- package/package.json +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatModelAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/chatModelAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"chatModelAdapter.d.ts","sourceRoot":"","sources":["../../src/adapters/chatModelAdapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAuB,MAAM,qBAAqB,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAiC,MAAM,yBAAyB,CAAC;AAU1F,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,gBAAgB,CAAC,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1E;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,MAAM,EAAE,gBAAgB,EACxB,OAAO,EAAE,uBAAuB,GAC/B,gBAAgB,CAyLlB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CuadraRuntimeProviderProps } from './CuadraRuntimeProvider';
|
|
2
|
+
import type { CuadraTheme } from '../types/theme';
|
|
2
3
|
export interface CuadraChatProps extends Omit<CuadraRuntimeProviderProps, 'children' | 'isProxyMode'> {
|
|
3
4
|
/** Proxy URL for backend-handled authentication (e.g., '/api/chat' or 'http://localhost:3000') */
|
|
4
5
|
proxyUrl?: string;
|
|
@@ -8,6 +9,8 @@ export interface CuadraChatProps extends Omit<CuadraRuntimeProviderProps, 'child
|
|
|
8
9
|
showThemeToggle?: boolean;
|
|
9
10
|
/** Initial theme ('light' | 'dark' | 'system') */
|
|
10
11
|
theme?: 'light' | 'dark' | 'system';
|
|
12
|
+
/** Custom theme colors to override defaults */
|
|
13
|
+
customTheme?: CuadraTheme;
|
|
11
14
|
/** Language/locale for i18n (e.g., 'en', 'es', 'fr') */
|
|
12
15
|
language?: string;
|
|
13
16
|
/** Welcome screen title */
|
|
@@ -35,6 +38,9 @@ export interface CuadraChatProps extends Omit<CuadraRuntimeProviderProps, 'child
|
|
|
35
38
|
*
|
|
36
39
|
* This component uses the widget implementation internally, ensuring
|
|
37
40
|
* consistent styling and behavior with the widget version.
|
|
41
|
+
*
|
|
42
|
+
* Styles are automatically bundled and injected. Users can optionally
|
|
43
|
+
* import '@cuadra-ai/uikit/styles' if they need explicit control.
|
|
38
44
|
*/
|
|
39
45
|
export declare function CuadraChat(props: CuadraChatProps): import("react/jsx-runtime").JSX.Element;
|
|
40
46
|
//# sourceMappingURL=CuadraChat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CuadraChat.d.ts","sourceRoot":"","sources":["../../src/components/CuadraChat.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CuadraChat.d.ts","sourceRoot":"","sources":["../../src/components/CuadraChat.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAIlD,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,0BAA0B,EAAE,UAAU,GAAG,aAAa,CAAC;IACnG,kGAAkG;IAClG,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kDAAkD;IAClD,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;IACpC,+CAA+C;IAC/C,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,wDAAwD;IACxD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2BAA2B;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8BAA8B;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mEAAmE;IACnE,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,4CAA4C;IAC5C,WAAW,CAAC,EAAE,KAAK,CAAC;QAClB,6BAA6B;QAC7B,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC,CAAC;IACH,2CAA2C;IAC3C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yCAAyC;IACzC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,gDAAgD;IAChD,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,2CAyChD"}
|