@websolutespa/bom-mixer-llm 3.0.2 → 3.1.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/index.d.ts +601 -133
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +972 -1376
  5. package/dist/index.js.map +1 -1
  6. package/package.json +28 -26
  7. package/src/__tests/message.decoder.test.ts +48 -0
  8. package/src/llm/components/Header/_style.scss +8 -4
  9. package/src/llm/components/Intro/_style.scss +4 -4
  10. package/src/llm/components/PageIntro/page-intro.module.scss +23 -26
  11. package/src/llm/components/PagePrompt/page-prompt.module.scss +23 -26
  12. package/src/llm/components/Prompt/_style.scss +8 -9
  13. package/src/llm/components/Prompt/prompt.tsx +9 -4
  14. package/src/llm/components/Text/text.tsx +86 -83
  15. package/src/llm/theme.json +7 -0
  16. package/src/types.ts +717 -709
  17. package/src/useLlm/message.service.ts +885 -883
  18. package/src/useLlm/mock-app.copernico.ts +209 -209
  19. package/src/useLlm/mock-app.default.ts +147 -147
  20. package/src/useLlm/mock-app.efg.ts +354 -354
  21. package/src/useLlm/mock-app.gs1.ts +211 -211
  22. package/src/useLlm/mock-app.infra.ts +272 -272
  23. package/src/useLlm/mock-app.lfo.ts +183 -183
  24. package/src/useLlm/mock-app.pesaro.ts +161 -161
  25. package/src/useLlm/mock-app.silicon.ts +275 -275
  26. package/src/useLlm/mock-app.starhotel.ts +260 -260
  27. package/src/useLlm/mock-thread.copernico.ts +23 -23
  28. package/src/useLlm/mock-thread.default.ts +271 -271
  29. package/src/useLlm/mock-thread.efg.ts +19 -19
  30. package/src/useLlm/mock-thread.gs1.ts +122 -122
  31. package/src/useLlm/mock-thread.infra.ts +25 -25
  32. package/src/useLlm/mock-thread.lfo.ts +239 -239
  33. package/src/useLlm/mock-thread.pesaro.ts +498 -498
  34. package/src/useLlm/mock-thread.silicon.ts +292 -292
  35. package/src/useLlm/mock-thread.starhotel.ts +271 -271
  36. package/src/useLlm/mock.ts +114 -114
  37. package/src/useLlm/speech.ts +659 -658
  38. package/src/useLlm/useLlmView.tsx +8 -5
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @websolutespa/bom-mixer-llm
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 3f7c21b: - Payload 3.91.0 and Next.js 16.4.2 (React 19.2.9): peer dependencies are now ranges, `payload` / `@payloadcms/*` `^3.91.0`, `next` `^16.3.3`, `react` / `react-dom` `^19.2.1`
8
+ - payload-plugin-bowl: the mixer context is built only for reads by an authenticated user (payload 3.90+ resolves the jwt user with the request query, populating tenants before `req.user` is set); email options typed with payload `SendEmailOptions`, no direct nodemailer dependency
9
+ - payload-plugin-storage: `AZURE_STORAGE_CONTAINER_ACCESS` (`private` default since payload 3.90, `blob`, `container`) for containers created by the plugin
10
+ - mixer web: `images.qualities` includes `IMAGE_QUALITY` (next 16 defaults to `[75]`)
11
+
12
+ ### Patch Changes
13
+
14
+ - d88019f: - library majors: uuid 14, marked 18 (llm text renderer ported to token renderers), mime 4, mime-types 3, iron-session 9, node-cron 4, html-to-text 10, react-error-boundary 6, react-dropzone 20 (import modal accepts `text/csv` `.csv`), fast-equals 6, schema-dts 2, json-schema-typed 9, dotenv 18 (quiet), chalk 6, giget 3, @clack/prompts 1, keeper secrets manager 17
15
+ - cef3bd8: - bom-mixer-emails: @react-email/components 1.0.12 and @react-email/render 2.1.1 (react 19); `renderEmail` is now async and returns `Promise<string>`
16
+ - payload-plugin-bowl-llm: openai 7.42.0 (zod 4), @modelcontextprotocol/sdk 1.32.1
17
+ - bom-cli: openai 7.42.0 client (`chat.completions`, `completions`)
18
+ - sonner 2.0.8
19
+ - e96a9d6: - tsconfig: TypeScript 6, `types: ["node"]` (no longer implicit) and `noUncheckedSideEffectImports: false` in the base config; drop `baseUrl` in consumers (deprecated)
20
+ - test: vitest 5 / vite 8 (native tsconfig paths, `vite-tsconfig-paths` removed), build outputs excluded from the test run, jsdom 30, testing-library jest-dom 7
21
+ - bom-mixer-llm: `isChunkType` guard, narrowing of unknown chunk items under typescript 6
22
+ - node 24 (engines >= 22.13)
23
+ - 12b6e2f: - test: replace the jest presets with shared vitest configurations, `@websolutespa/test/vitest` (`defineNodeConfig`, `defineDomConfig`, `definePayloadConfig`); drop jest dependencies
24
+ - declare every imported package and script binary in the package that uses it (no more reliance on hoisting), drop unused dependencies
25
+ - bom-mixer-checkout: `useCart.add` no longer mutates the previous cart state
26
+
27
+ ## 3.0.3
28
+
29
+ ### Patch Changes
30
+
31
+ - Improving theme style
32
+
3
33
  ## 3.0.2
4
34
 
5
35
  ### Patch Changes