@object-ui/plugin-chatbot 16.0.0 → 16.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.
- package/CHANGELOG.md +52 -0
- package/dist/FloatingChatbotTrigger.d.ts.map +1 -1
- package/dist/elements/shimmer.d.ts.map +1 -1
- package/dist/index.js +448 -455
- package/dist/index.umd.cjs +1 -1
- package/dist/useObjectChat.d.ts.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# @object-ui/plugin-chatbot
|
|
2
2
|
|
|
3
|
+
## 16.1.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 59db1f9: chore(lint): clear the baseline lint errors in plugin-chatbot (objectui#2713 Wave 3)
|
|
8
|
+
|
|
9
|
+
Wave 3 of the #2713 lint-gate restoration. `@object-ui/plugin-chatbot` was red at
|
|
10
|
+
baseline on `main`; cleared every **error** (no behavior change; warnings out of
|
|
11
|
+
scope):
|
|
12
|
+
|
|
13
|
+
- **`react-hooks/rules-of-hooks` in `useObjectChat` (8)** — the hook called
|
|
14
|
+
DIFFERENT `useCallback`s in each of its two `isApiMode` return branches, so
|
|
15
|
+
both sets were conditional (React throws if the mode toggles between renders).
|
|
16
|
+
`useChat` was already called unconditionally; this destructures its result and
|
|
17
|
+
hoists all eight callbacks (3 API + 5 local) above the `isApiMode` branch, so
|
|
18
|
+
the same hooks run in the same order every render. Only the returned surface
|
|
19
|
+
differs by mode — the callback bodies are unchanged (the API `messages` local
|
|
20
|
+
is renamed `apiMessages`). Verified against the `useObjectChat.sendFailure` /
|
|
21
|
+
`handoffContext` / `ChatbotEnhanced.sendError` suites.
|
|
22
|
+
- **`react-hooks/rules-of-hooks` in `FloatingChatbotTrigger`** —
|
|
23
|
+
`useChatbotLabel` wrapped the provider-safe `useObjectTranslation` in
|
|
24
|
+
try/catch; removed the wrapper (the #2709 fix).
|
|
25
|
+
- **`react-hooks/static-components` in `shimmer`** — `motion.create(Component)`
|
|
26
|
+
genuinely builds a motion component and must key off the `as` prop, so it
|
|
27
|
+
can't be module-scoped. Memoized per `Component` (stable across renders,
|
|
28
|
+
avoids the remount) and carries a justified scoped disable at the render site.
|
|
29
|
+
|
|
30
|
+
- Updated dependencies [1c8935a]
|
|
31
|
+
- Updated dependencies [8b8b744]
|
|
32
|
+
- Updated dependencies [7cf4051]
|
|
33
|
+
- Updated dependencies [803558e]
|
|
34
|
+
- Updated dependencies [2e7d7f0]
|
|
35
|
+
- Updated dependencies [ef14f69]
|
|
36
|
+
- Updated dependencies [94d4876]
|
|
37
|
+
- Updated dependencies [69fa5d1]
|
|
38
|
+
- Updated dependencies [549c67d]
|
|
39
|
+
- Updated dependencies [2b17339]
|
|
40
|
+
- Updated dependencies [31b77d4]
|
|
41
|
+
- Updated dependencies [6d4fbe6]
|
|
42
|
+
- Updated dependencies [0a3710b]
|
|
43
|
+
- Updated dependencies [62b9ab5]
|
|
44
|
+
- Updated dependencies [1629313]
|
|
45
|
+
- Updated dependencies [29c6040]
|
|
46
|
+
- Updated dependencies [faebac3]
|
|
47
|
+
- Updated dependencies [2331ac9]
|
|
48
|
+
- Updated dependencies [199fa83]
|
|
49
|
+
- Updated dependencies [eee4ded]
|
|
50
|
+
- @object-ui/core@16.1.0
|
|
51
|
+
- @object-ui/types@16.1.0
|
|
52
|
+
- @object-ui/react@16.1.0
|
|
53
|
+
- @object-ui/components@16.1.0
|
|
54
|
+
|
|
3
55
|
## 16.0.0
|
|
4
56
|
|
|
5
57
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatingChatbotTrigger.d.ts","sourceRoot":"","sources":["../src/FloatingChatbotTrigger.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"FloatingChatbotTrigger.d.ts","sourceRoot":"","sources":["../src/FloatingChatbotTrigger.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAkB9B,MAAM,WAAW,2BAA2B;IAC1C,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,cAAc,GAAG,aAAa,CAAA;IACzC,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,uBAAuB;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AA0BD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,QAAyB,EACzB,IAAS,EACT,SAAS,GACV,EAAE,2BAA2B,qBA4B7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shimmer.d.ts","sourceRoot":"","sources":["../../src/elements/shimmer.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,GAAG,EAGT,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;
|
|
1
|
+
{"version":3,"file":"shimmer.d.ts","sourceRoot":"","sources":["../../src/elements/shimmer.tsx"],"names":[],"mappings":"AAUA,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,GAAG,EAGT,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,gBAAgB,GAAG;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAmDF,eAAO,MAAM,OAAO,kGA3CjB,gBAAgB,iBA2C0B,CAAC"}
|