@webority/mobile-chat 0.154.0 → 0.155.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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NoticePart=NoticePart;var _mobileUi=require("@webority/mobile-ui"),_jsxRuntime=require("react/jsx-runtime");function NoticePart({part:e,turn:t}){const i="AssistantUnavailable"===e.code?"danger":"ActionLimitReached"===e.code||"ConversationTooLong"===e.code?"warning":"info",r="NeedsNewerApp"===e.code?t.labels.needsNewerApp:e.text;return(0,_jsxRuntime.jsx)(_mobileUi.Banner,{message:r,tone:i,accessibilityRole:"alert"})}
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.NoticePart=NoticePart;var _mobileUi=require("@webority/mobile-ui"),_jsxRuntime=require("react/jsx-runtime");function NoticePart({part:e}){const t="AssistantUnavailable"===e.code?"danger":"ActionLimitReached"===e.code||"ConversationTooLong"===e.code?"warning":"info";return(0,_jsxRuntime.jsx)(_mobileUi.Banner,{message:e.text,tone:t,accessibilityRole:"alert"})}
@@ -1 +1 @@
1
- "use strict";import{Banner}from"@webority/mobile-ui";import{jsx as _jsx}from"react/jsx-runtime";export function NoticePart({part:e,turn:t}){const o="AssistantUnavailable"===e.code?"danger":"ActionLimitReached"===e.code||"ConversationTooLong"===e.code?"warning":"info",n="NeedsNewerApp"===e.code?t.labels.needsNewerApp:e.text;return _jsx(Banner,{message:n,tone:o,accessibilityRole:"alert"})}
1
+ "use strict";import{Banner}from"@webority/mobile-ui";import{jsx as _jsx}from"react/jsx-runtime";export function NoticePart({part:e}){const t="AssistantUnavailable"===e.code?"danger":"ActionLimitReached"===e.code||"ConversationTooLong"===e.code?"warning":"info";return _jsx(Banner,{message:e.text,tone:t,accessibilityRole:"alert"})}
@@ -3,6 +3,6 @@ import type { ChatPartRendererProps } from "../types";
3
3
  type NoticePartProps = ChatPartRendererProps<Extract<ChatPart, {
4
4
  kind: "Notice";
5
5
  }>>;
6
- export declare function NoticePart({ part, turn }: NoticePartProps): import("react").JSX.Element;
6
+ export declare function NoticePart({ part }: NoticePartProps): import("react").JSX.Element;
7
7
  export {};
8
8
  //# sourceMappingURL=NoticePart.d.ts.map
@@ -3,6 +3,6 @@ import type { ChatPartRendererProps } from "../types.js";
3
3
  type NoticePartProps = ChatPartRendererProps<Extract<ChatPart, {
4
4
  kind: "Notice";
5
5
  }>>;
6
- export declare function NoticePart({ part, turn }: NoticePartProps): import("react").JSX.Element;
6
+ export declare function NoticePart({ part }: NoticePartProps): import("react").JSX.Element;
7
7
  export {};
8
8
  //# sourceMappingURL=NoticePart.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/mobile-chat",
3
- "version": "0.154.0",
3
+ "version": "0.155.0",
4
4
  "description": "Webority Chat for React Native apps: the chat screen, sheet and embedded shells, thread, composer, one renderer per message part kind and the useChat hook, built on @webority/chat-core and @webority/mobile-ui.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -42,10 +42,10 @@
42
42
  "!**/*.map"
43
43
  ],
44
44
  "peerDependencies": {
45
- "@webority/chat-core": "0.154.0",
46
- "@webority/markdown-core": "^0.176.0",
47
- "@webority/mobile-core": "^0.176.0",
48
- "@webority/mobile-ui": "^0.176.0",
45
+ "@webority/chat-core": "0.155.0",
46
+ "@webority/markdown-core": "^0.177.0",
47
+ "@webority/mobile-core": "^0.177.0",
48
+ "@webority/mobile-ui": "^0.177.0",
49
49
  "expo-audio": ">=58.0.0",
50
50
  "expo-file-system": ">=58.0.0",
51
51
  "react": "^19.3.0",
@@ -98,11 +98,11 @@
98
98
  "@testing-library/react-native": "14.1.0",
99
99
  "@types/jest": "29.5.14",
100
100
  "@types/react": "19.3.0",
101
- "@webority/canvas-kit": "0.176.0",
102
- "@webority/chat-core": "0.154.0",
103
- "@webority/markdown-core": "0.176.0",
104
- "@webority/mobile-core": "0.176.0",
105
- "@webority/mobile-ui": "0.176.0",
101
+ "@webority/canvas-kit": "0.177.0",
102
+ "@webority/chat-core": "0.155.0",
103
+ "@webority/markdown-core": "0.177.0",
104
+ "@webority/mobile-core": "0.177.0",
105
+ "@webority/mobile-ui": "0.177.0",
106
106
  "babel-jest": "29.7.0",
107
107
  "expo": "58.0.23",
108
108
  "expo-application": "58.1.2",