@volorio/react-native-chat-uikit 0.2.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/README.md +7 -0
- package/dist/src/index.d.ts +7 -0
- package/dist/src/index.js +11 -0
- package/dist/src/index.js.map +1 -0
- package/package.json +34 -0
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { VolorioReactNativeChatMessage } from "@volorio/react-native-chat";
|
|
2
|
+
export interface VolorioReactNativeChatUIKitModel {
|
|
3
|
+
conversationId: string;
|
|
4
|
+
messages: VolorioReactNativeChatMessage[];
|
|
5
|
+
emptyText: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function createVolorioReactNativeChatUIKitModel(input?: Partial<VolorioReactNativeChatUIKitModel>): VolorioReactNativeChatUIKitModel;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createVolorioReactNativeChatUIKitModel = createVolorioReactNativeChatUIKitModel;
|
|
4
|
+
function createVolorioReactNativeChatUIKitModel(input = {}) {
|
|
5
|
+
return {
|
|
6
|
+
conversationId: input.conversationId ?? "default",
|
|
7
|
+
messages: input.messages ?? [],
|
|
8
|
+
emptyText: input.emptyText ?? "No messages yet",
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;AAQA,wFAMC;AAND,SAAgB,sCAAsC,CAAC,QAAmD,EAAE;IAC1G,OAAO;QACL,cAAc,EAAE,KAAK,CAAC,cAAc,IAAI,SAAS;QACjD,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,EAAE;QAC9B,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,iBAAiB;KAChD,CAAC;AACJ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@volorio/react-native-chat-uikit",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "Volorio React Native chat UI model helpers.",
|
|
6
|
+
"main": "dist/src/index.js",
|
|
7
|
+
"types": "dist/src/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/src/index.d.ts",
|
|
11
|
+
"default": "./dist/src/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/src",
|
|
16
|
+
"README.md"
|
|
17
|
+
],
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public",
|
|
20
|
+
"registry": "https://registry.npmjs.org/"
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc -p tsconfig.build.json",
|
|
24
|
+
"test": "pnpm build",
|
|
25
|
+
"pack:local": "pnpm build && npm pack --pack-destination dist"
|
|
26
|
+
},
|
|
27
|
+
"peerDependencies": {
|
|
28
|
+
"react": ">=18",
|
|
29
|
+
"react-native": ">=0.73"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@volorio/react-native-chat": "^0.2.0"
|
|
33
|
+
}
|
|
34
|
+
}
|