@websolutespa/bom-mixer-llm 3.0.3 → 4.0.0-next.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @websolutespa/bom-mixer-llm
2
2
 
3
+ ## 4.0.0-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @websolutespa/bom-core@4.0.0-next.0
9
+ - @websolutespa/bom-mixer-hooks@4.0.0-next.0
10
+
3
11
  ## 3.0.3
4
12
 
5
13
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -1,11 +1,11 @@
1
1
  import * as _websolutespa_bom_core0 from "@websolutespa/bom-core";
2
2
  import { DeepPartial, IEquatable, ILabel, IMedia, IPrettify } from "@websolutespa/bom-core";
3
- import * as react0 from "react";
3
+ import * as react1 from "react";
4
4
  import React$1, { ChangeEvent, Dispatch, MutableRefObject, ReactElement, ReactNode, RefObject, SetStateAction } from "react";
5
5
  import { ToasterProps } from "sonner";
6
6
  import * as zustand0 from "zustand";
7
7
  import * as zustand_middleware0 from "zustand/middleware";
8
- import * as react_jsx_runtime4 from "react/jsx-runtime";
8
+ import * as react_jsx_runtime3 from "react/jsx-runtime";
9
9
  import "swiper/css";
10
10
  import theme from "./theme.json";
11
11
 
@@ -17,34 +17,34 @@ type UserMessageProps = LlmTextBlock<'user'>;
17
17
  //#endregion
18
18
  //#region src/llm/blocks/index.d.ts
19
19
  declare const LLM_BLOCKS: {
20
- action: react0.FC<LlmBlock<LlmChunkAction | LlmChunkActionItem>>;
21
- actionGroup: react0.FC<LlmBlock<LlmChunkActionGroup>>;
22
- assistantMessage: react0.FC<AssistantMessageProps>;
23
- card: react0.FC<LlmBlock<LlmChunkCard | LlmChunkCardItem>>;
24
- cardGroup: react0.FC<LlmBlock<LlmChunkCardGroup>>;
25
- event: react0.FC<LlmBlock<LlmChunkEvent | LlmChunkEventItem>>;
26
- eventGroup: react0.FC<LlmBlock<LlmChunkEventGroup>>;
27
- file: react0.FC<LlmBlock<LlmChunkFile>>;
28
- formRecap: react0.FC<{}>;
29
- formRecapError: react0.FC<{}>;
30
- formRecapSuccess: react0.FC<{}>;
31
- formRequest: react0.FC<{
20
+ action: react1.FC<LlmBlock<LlmChunkAction | LlmChunkActionItem>>;
21
+ actionGroup: react1.FC<LlmBlock<LlmChunkActionGroup>>;
22
+ assistantMessage: react1.FC<AssistantMessageProps>;
23
+ card: react1.FC<LlmBlock<LlmChunkCard | LlmChunkCardItem>>;
24
+ cardGroup: react1.FC<LlmBlock<LlmChunkCardGroup>>;
25
+ event: react1.FC<LlmBlock<LlmChunkEvent | LlmChunkEventItem>>;
26
+ eventGroup: react1.FC<LlmBlock<LlmChunkEventGroup>>;
27
+ file: react1.FC<LlmBlock<LlmChunkFile>>;
28
+ formRecap: react1.FC<{}>;
29
+ formRecapError: react1.FC<{}>;
30
+ formRecapSuccess: react1.FC<{}>;
31
+ formRequest: react1.FC<{
32
32
  last: boolean;
33
33
  }>;
34
- image: react0.FC<LlmBlock<LlmChunkImage>>;
35
- notFound: react0.FC<LlmBlock<{
34
+ image: react1.FC<LlmBlock<LlmChunkImage>>;
35
+ notFound: react1.FC<LlmBlock<{
36
36
  [x: string]: unknown;
37
37
  id: _websolutespa_bom_core0.IEquatable;
38
38
  }>>;
39
- poi: react0.FC<LlmBlock<LlmChunkPoi | LlmChunkPoiItem>>;
40
- poiGroup: react0.FC<LlmBlock<LlmChunkPoiGroup>>;
41
- product: react0.FC<LlmBlock<LlmChunkProduct | LlmChunkProductItem>>;
42
- productGroup: react0.FC<LlmBlock<LlmChunkProductGroup>>;
43
- productGroupSlider: react0.FC<LlmBlock<LlmChunkProductGroup>>;
44
- error: react0.FC<LlmBlock<LlmChunkError>>;
45
- tripAdvisor: react0.FC<LlmBlock<LlmChunkTripadvisor | LlmChunkTripadvisorItem>>;
46
- tripAdvisorGroup: react0.FC<LlmBlock<LlmChunkTripadvisorGroup>>;
47
- userMessage: react0.FC<UserMessageProps>;
39
+ poi: react1.FC<LlmBlock<LlmChunkPoi | LlmChunkPoiItem>>;
40
+ poiGroup: react1.FC<LlmBlock<LlmChunkPoiGroup>>;
41
+ product: react1.FC<LlmBlock<LlmChunkProduct | LlmChunkProductItem>>;
42
+ productGroup: react1.FC<LlmBlock<LlmChunkProductGroup>>;
43
+ productGroupSlider: react1.FC<LlmBlock<LlmChunkProductGroup>>;
44
+ error: react1.FC<LlmBlock<LlmChunkError>>;
45
+ tripAdvisor: react1.FC<LlmBlock<LlmChunkTripadvisor | LlmChunkTripadvisorItem>>;
46
+ tripAdvisorGroup: react1.FC<LlmBlock<LlmChunkTripadvisorGroup>>;
47
+ userMessage: react1.FC<UserMessageProps>;
48
48
  };
49
49
  type LlmBlocks = Record<string, ((props: any) => ReactNode | Promise<ReactNode>) | undefined> & typeof LLM_BLOCKS;
50
50
  //# sourceMappingURL=index.d.ts.map
@@ -111,7 +111,7 @@ declare function CanvasOffscreenProvider({
111
111
  children
112
112
  }: {
113
113
  children?: React.ReactNode;
114
- }): react_jsx_runtime4.JSX.Element;
114
+ }): react_jsx_runtime3.JSX.Element;
115
115
  declare const useCanvasOffscreen: (canvasRef: RefObject<HTMLCanvasElement | null>) => void;
116
116
  //#endregion
117
117
  //#region src/llm/components/ChunkWrapper/chunk-wrapper.d.ts
@@ -132,7 +132,7 @@ type LlmCta = {
132
132
  icon?: ReactElement;
133
133
  onClick?: (event: React$1.MouseEvent) => void;
134
134
  };
135
- declare const Cta: (props: LlmCta) => react_jsx_runtime4.JSX.Element;
135
+ declare const Cta: (props: LlmCta) => react_jsx_runtime3.JSX.Element;
136
136
  //# sourceMappingURL=cta.d.ts.map
137
137
  //#endregion
138
138
  //#region src/llm/components/Disclaimer/disclaimer.d.ts
@@ -171,7 +171,7 @@ type GridRowProps = {
171
171
  size?: string;
172
172
  children?: ReactNode;
173
173
  };
174
- declare const GridRow: (props: GridRowProps) => react_jsx_runtime4.JSX.Element;
174
+ declare const GridRow: (props: GridRowProps) => react_jsx_runtime3.JSX.Element;
175
175
  type GridProps = {
176
176
  xs?: number;
177
177
  sm?: number;
@@ -180,7 +180,7 @@ type GridProps = {
180
180
  xl?: number;
181
181
  children?: ReactNode;
182
182
  };
183
- declare const Grid: (props: GridProps) => react_jsx_runtime4.JSX.Element;
183
+ declare const Grid: (props: GridProps) => react_jsx_runtime3.JSX.Element;
184
184
  //# sourceMappingURL=grid.d.ts.map
185
185
  //#endregion
186
186
  //#region src/llm/components/Main/main.d.ts
@@ -188,7 +188,7 @@ declare const Main: React.FC;
188
188
  //# sourceMappingURL=main.d.ts.map
189
189
  //#endregion
190
190
  //#region src/llm/components/PoweredBy/powered-by.d.ts
191
- declare const LogoWebsolute: react0.ForwardRefExoticComponent<Omit<any, "ref"> & react0.RefAttributes<SVGSVGElement>>;
191
+ declare const LogoWebsolute: react1.ForwardRefExoticComponent<Omit<any, "ref"> & react1.RefAttributes<SVGSVGElement>>;
192
192
  type PoweredByProps = {};
193
193
  declare const PoweredBy: React.FC<PoweredByProps>;
194
194
  //#endregion
@@ -206,7 +206,7 @@ type LlmTextProps = {
206
206
  chunkIndex?: number;
207
207
  index?: number;
208
208
  };
209
- declare const Text: (props: LlmTextProps) => react_jsx_runtime4.JSX.Element;
209
+ declare const Text: (props: LlmTextProps) => react_jsx_runtime3.JSX.Element;
210
210
  //# sourceMappingURL=text.d.ts.map
211
211
  //#endregion
212
212
  //#region src/llm/components/ThronPlayer/thron-player.d.ts
@@ -225,8 +225,8 @@ declare const StaticNode: ({
225
225
  outerRef: MutableRefObject<HTMLDivElement | undefined>;
226
226
  playing?: boolean;
227
227
  onClose?: () => void;
228
- }) => react_jsx_runtime4.JSX.Element;
229
- declare const ThronPlayer: (props: LlmChunkCardThron) => react_jsx_runtime4.JSX.Element;
228
+ }) => react_jsx_runtime3.JSX.Element;
229
+ declare const ThronPlayer: (props: LlmChunkCardThron) => react_jsx_runtime3.JSX.Element;
230
230
  //# sourceMappingURL=thron-player.d.ts.map
231
231
  //#endregion
232
232
  //#region src/llm/components/Trigger/trigger.d.ts
@@ -234,7 +234,7 @@ declare const Trigger: React.FC;
234
234
  //# sourceMappingURL=trigger.d.ts.map
235
235
  //#endregion
236
236
  //#region src/llm/components/VideoPlayer/video-player.d.ts
237
- declare const VideoPlayer: (props: LlmChunkCardVideo) => react_jsx_runtime4.JSX.Element;
237
+ declare const VideoPlayer: (props: LlmChunkCardVideo) => react_jsx_runtime3.JSX.Element;
238
238
  //# sourceMappingURL=video-player.d.ts.map
239
239
  //#endregion
240
240
  //#region src/useLlm/useActions.d.ts
@@ -248,11 +248,11 @@ type ActionsContextState = {
248
248
  setWrapperNode: (wrapper: HTMLDivElement) => void;
249
249
  setWrapper: Dispatch<SetStateAction<LlmChunkWrapper | null>>;
250
250
  };
251
- declare const ActionsContext: react0.Context<ActionsContextState>;
251
+ declare const ActionsContext: react1.Context<ActionsContextState>;
252
252
  type ActionsProviderProps = React.PropsWithChildren;
253
253
  declare function ActionsProvider({
254
254
  children
255
- }: ActionsProviderProps): react_jsx_runtime4.JSX.Element;
255
+ }: ActionsProviderProps): react_jsx_runtime3.JSX.Element;
256
256
  declare function useActions(): ActionsContextState;
257
257
  //#endregion
258
258
  //#region src/llm/components/PageActions/page-actions.d.ts
@@ -302,7 +302,7 @@ type PageRootProps = {
302
302
  embedded?: boolean;
303
303
  customIntro?: boolean;
304
304
  };
305
- declare const PageRoot: react0.ForwardRefExoticComponent<PageRootProps & react0.RefAttributes<HTMLDivElement>>;
305
+ declare const PageRoot: react1.ForwardRefExoticComponent<PageRootProps & react1.RefAttributes<HTMLDivElement>>;
306
306
  //# sourceMappingURL=page-root.d.ts.map
307
307
  //#endregion
308
308
  //#region src/llm/components/PageStop/page-stop.d.ts
@@ -346,68 +346,68 @@ declare function Portals({
346
346
  children: ReactNode;
347
347
  selector?: string;
348
348
  replace?: boolean;
349
- }): react_jsx_runtime4.JSX.Element[];
349
+ }): react_jsx_runtime3.JSX.Element[];
350
350
  declare function Portal({
351
351
  children,
352
352
  target
353
353
  }: {
354
354
  children: ReactNode;
355
355
  target: Element;
356
- }): react0.ReactPortal;
356
+ }): react1.ReactPortal;
357
357
  //# sourceMappingURL=portals.d.ts.map
358
358
  //#endregion
359
359
  //#region src/llm/components/index.d.ts
360
360
  declare const LLM_COMPONENTS: {
361
- Blob: react0.FC<{}>;
362
- BusyIndicator: react0.FC<{}>;
363
- Canvas: react0.FC<{}>;
364
- ChunkWrapper: react0.FC<ChunkProps & {
361
+ Blob: react1.FC<{}>;
362
+ BusyIndicator: react1.FC<{}>;
363
+ Canvas: react1.FC<{}>;
364
+ ChunkWrapper: react1.FC<ChunkProps & {
365
365
  className?: string;
366
366
  stream?: boolean;
367
367
  }>;
368
- Disclaimer: react0.FC<{}>;
369
- DisclaimerFooter: react0.FC<{}>;
370
- Feedback: react0.FC<FeedbackProps>;
371
- Font: react0.FC<{}>;
372
- Header: react0.FC<{}>;
373
- Hints: react0.FC<HintsProps>;
374
- Intro: react0.FC<{}>;
375
- Main: react0.FC<{}>;
376
- PageActions: react0.FC<{
368
+ Disclaimer: react1.FC<{}>;
369
+ DisclaimerFooter: react1.FC<{}>;
370
+ Feedback: react1.FC<FeedbackProps>;
371
+ Font: react1.FC<{}>;
372
+ Header: react1.FC<{}>;
373
+ Hints: react1.FC<HintsProps>;
374
+ Intro: react1.FC<{}>;
375
+ Main: react1.FC<{}>;
376
+ PageActions: react1.FC<{
377
377
  wrapper: LlmChunkWrapper;
378
378
  }>;
379
- PageContext: react0.FC<{}>;
380
- PageDictate: react0.FC<{}>;
381
- PageHistory: react0.FC<{
379
+ PageContext: react1.FC<{}>;
380
+ PageDictate: react1.FC<{}>;
381
+ PageHistory: react1.FC<{
382
382
  item: LlmHistory;
383
383
  }>;
384
- PageIntro: react0.FC<{}>;
385
- PageLoading: react0.FC<{}>;
386
- PageMain: react0.FC<{}>;
387
- PageMenu: react0.FC<{}>;
388
- PagePrompt: react0.FC<{}>;
389
- PageRoot: react0.ForwardRefExoticComponent<PageRootProps & react0.RefAttributes<HTMLDivElement>>;
390
- PageStop: react0.FC<{}>;
391
- PageStreamingIndicator: react0.FC<{}>;
392
- PageSubmit: react0.FC<{}>;
393
- PageSynthesis: react0.FC<{}>;
394
- PageTextarea: react0.FC<{}>;
395
- PageThread: react0.FC<PageThreadProps>;
396
- PageTrigger: react0.FC<{}>;
397
- PageUpload: react0.FC<{}>;
398
- PoweredBy: react0.FC<{}>;
399
- Prompt: react0.FC<{}>;
400
- Root: react0.ForwardRefExoticComponent<RootProps & react0.RefAttributes<HTMLDivElement>>;
401
- Scroller: react0.FC<{
384
+ PageIntro: react1.FC<{}>;
385
+ PageLoading: react1.FC<{}>;
386
+ PageMain: react1.FC<{}>;
387
+ PageMenu: react1.FC<{}>;
388
+ PagePrompt: react1.FC<{}>;
389
+ PageRoot: react1.ForwardRefExoticComponent<PageRootProps & react1.RefAttributes<HTMLDivElement>>;
390
+ PageStop: react1.FC<{}>;
391
+ PageStreamingIndicator: react1.FC<{}>;
392
+ PageSubmit: react1.FC<{}>;
393
+ PageSynthesis: react1.FC<{}>;
394
+ PageTextarea: react1.FC<{}>;
395
+ PageThread: react1.FC<PageThreadProps>;
396
+ PageTrigger: react1.FC<{}>;
397
+ PageUpload: react1.FC<{}>;
398
+ PoweredBy: react1.FC<{}>;
399
+ Prompt: react1.FC<{}>;
400
+ Root: react1.ForwardRefExoticComponent<RootProps & react1.RefAttributes<HTMLDivElement>>;
401
+ Scroller: react1.FC<{
402
402
  className?: string;
403
403
  selector?: string;
404
404
  children: ReactNode;
405
405
  }>;
406
- ScrollProposition: react0.FC<{}>;
407
- Stream: react0.FC<StreamProps>;
408
- Suggestions: react0.FC<{}>;
409
- Thread: react0.FC<ThreadProps>;
410
- Trigger: react0.FC<{}>;
406
+ ScrollProposition: react1.FC<{}>;
407
+ Stream: react1.FC<StreamProps>;
408
+ Suggestions: react1.FC<{}>;
409
+ Thread: react1.FC<ThreadProps>;
410
+ Trigger: react1.FC<{}>;
411
411
  };
412
412
  type LlmComponents = Record<string, ((props: any) => ReactNode | Promise<ReactNode>) | undefined> & typeof LLM_COMPONENTS;
413
413
  //#endregion
@@ -529,12 +529,12 @@ declare const createLlmViewStore: ({
529
529
  send: (message: string, onPrompt?: () => void, onMessage?: (response: StreamResponse) => void, onEnd?: (response: StreamResponse) => void) => Promise<void>;
530
530
  setEmbed: (element: Element, active: boolean) => void;
531
531
  }) => zustand0.StoreApi<LlmViewState>;
532
- declare const LlmViewContext: react0.Context<zustand0.StoreApi<LlmViewState> | null>;
532
+ declare const LlmViewContext: react1.Context<zustand0.StoreApi<LlmViewState> | null>;
533
533
  type LlmViewProviderProps = React.PropsWithChildren<LlmViewOptions>;
534
534
  declare function LlmViewProvider({
535
535
  children,
536
536
  ...props
537
- }: LlmViewProviderProps): react_jsx_runtime4.JSX.Element;
537
+ }: LlmViewProviderProps): react_jsx_runtime3.JSX.Element;
538
538
  declare function useLlmView<T>(selector: (state: LlmViewState) => T): T;
539
539
  //#endregion
540
540
  //#region src/useLlm/useLlm.d.ts
@@ -673,7 +673,7 @@ declare const createLlmStore: (config: LlmConfig) => Omit<zustand0.StoreApi<LlmS
673
673
  };
674
674
  declare function messagesToHistory(messages: LlmDecodedMessage[]): LlmHistory[];
675
675
  declare function historyToStoredHistory(history: LlmHistory[]): LlmStoredHistory[];
676
- declare const LlmUseContext: react0.Context<(Omit<zustand0.StoreApi<LlmState>, "persist"> & {
676
+ declare const LlmUseContext: react1.Context<(Omit<zustand0.StoreApi<LlmState>, "persist"> & {
677
677
  persist: {
678
678
  setOptions: (options: Partial<zustand_middleware0.PersistOptions<LlmState, unknown>>) => void;
679
679
  clearStorage: () => void;
@@ -688,7 +688,7 @@ type LlmProviderProps = React.PropsWithChildren<Omit<LlmOptions, 'locale'>>;
688
688
  declare function LlmProvider({
689
689
  children,
690
690
  ...props
691
- }: LlmProviderProps): react_jsx_runtime4.JSX.Element;
691
+ }: LlmProviderProps): react_jsx_runtime3.JSX.Element;
692
692
  declare function useLlm<T>(selector: (state: LlmState) => T): T;
693
693
  //#endregion
694
694
  //#region src/types.d.ts
@@ -1124,7 +1124,7 @@ declare function getInitializer(globalName?: string, plugins?: LlmPlugin[], plug
1124
1124
  //# sourceMappingURL=initializer.d.ts.map
1125
1125
  //#endregion
1126
1126
  //#region src/llm/llm.d.ts
1127
- declare const LlmComponent: react0.ForwardRefExoticComponent<react0.RefAttributes<LlmInstance>>;
1127
+ declare const LlmComponent: react1.ForwardRefExoticComponent<react1.RefAttributes<LlmInstance>>;
1128
1128
  //# sourceMappingURL=llm.d.ts.map
1129
1129
  //#endregion
1130
1130
  //#region src/llm/utils.d.ts
@@ -1132,7 +1132,7 @@ declare const clamp: (min: number, max: number) => number;
1132
1132
  type NewLineToBrProps = {
1133
1133
  text?: string;
1134
1134
  };
1135
- declare const NewLineToBr: (props: NewLineToBrProps) => react_jsx_runtime4.JSX.Element[][] | undefined;
1135
+ declare const NewLineToBr: (props: NewLineToBrProps) => react_jsx_runtime3.JSX.Element[][] | undefined;
1136
1136
  declare const regExpMapper: (text: string | undefined, dict: Record<string, (text: string) => ReactNode>, rest?: (text: string) => ReactNode) => ReactNode | undefined;
1137
1137
  declare const messageMapper: (text: string | undefined) => ReactNode;
1138
1138
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-mixer-llm",
3
- "version": "3.0.3",
3
+ "version": "4.0.0-next.0",
4
4
  "description": "Mixer LLM module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@ariakit/react": ">= 0.4.11",
33
- "@websolutespa/bom-core": "^3.0.2",
34
- "@websolutespa/bom-mixer-hooks": "^3.0.1",
33
+ "@websolutespa/bom-core": "^4.0.0-next.0",
34
+ "@websolutespa/bom-mixer-hooks": "^4.0.0-next.0",
35
35
  "@websolutespa/bom-mixer-icons": "^3.0.1",
36
36
  "lenis": "1.3.8",
37
37
  "marked": "12.0.2",
@@ -51,9 +51,9 @@
51
51
  "@types/react-dom": "19.2.3",
52
52
  "@types/react": "19.2.10",
53
53
  "@types/styled-components": "5.1.34",
54
- "@websolutespa/bom-cli": "^3.0.1",
54
+ "@websolutespa/bom-cli": "^4.0.0-next.0",
55
55
  "@websolutespa/eslint-config": "^3.0.0",
56
- "@websolutespa/test": "^3.0.1",
56
+ "@websolutespa/test": "^4.0.0-next.0",
57
57
  "@websolutespa/tsconfig": "^3.0.0",
58
58
  "eslint": "9.31.0",
59
59
  "marked": "12.0.2",