@viewberapp/chat 0.0.71 → 0.0.72
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/dist/index.d.ts +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/react/components/AdminMessage.js +2 -1
- package/dist/react/components/AdminMessage.js.map +1 -1
- package/dist/react/components/ConnectionAndChannelStatusLabel.js +1 -0
- package/dist/react/components/ConnectionAndChannelStatusLabel.js.map +1 -1
- package/dist/react/components/Message.js +3 -1
- package/dist/react/components/Message.js.map +1 -1
- package/dist/react/components/MessageRow.d.ts +5 -0
- package/dist/react/components/MessageRow.js +35 -0
- package/dist/react/components/MessageRow.js.map +1 -0
- package/dist/react/components/index.d.ts +2 -1
- package/dist/react/components/index.js +3 -1
- package/dist/react/components/index.js.map +1 -1
- package/dist/react/index.d.ts +1 -1
- package/dist/react/index.js +2 -1
- package/dist/react/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -2,5 +2,5 @@ import Chat from "./Chat";
|
|
|
2
2
|
import useChat from "./react/useChat";
|
|
3
3
|
import useAppointmentChat from "./react/useAppointmentChat";
|
|
4
4
|
export { ConsoleLogger, RollbarLogger, NullLogger } from './logger';
|
|
5
|
-
export { Message, AdminMessage, ConnectionAndChannelStatusLabel } from './react';
|
|
5
|
+
export { Message, MessageRow, AdminMessage, ConnectionAndChannelStatusLabel } from './react';
|
|
6
6
|
export { Chat, useChat, useAppointmentChat };
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.useAppointmentChat = exports.useChat = exports.Chat = exports.ConnectionAndChannelStatusLabel = exports.AdminMessage = exports.Message = exports.NullLogger = exports.RollbarLogger = exports.ConsoleLogger = void 0;
|
|
6
|
+
exports.useAppointmentChat = exports.useChat = exports.Chat = exports.ConnectionAndChannelStatusLabel = exports.AdminMessage = exports.MessageRow = exports.Message = exports.NullLogger = exports.RollbarLogger = exports.ConsoleLogger = void 0;
|
|
7
7
|
const Chat_1 = __importDefault(require("./Chat"));
|
|
8
8
|
exports.Chat = Chat_1.default;
|
|
9
9
|
const useChat_1 = __importDefault(require("./react/useChat"));
|
|
@@ -16,6 +16,7 @@ Object.defineProperty(exports, "RollbarLogger", { enumerable: true, get: functio
|
|
|
16
16
|
Object.defineProperty(exports, "NullLogger", { enumerable: true, get: function () { return logger_1.NullLogger; } });
|
|
17
17
|
var react_1 = require("./react");
|
|
18
18
|
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return react_1.Message; } });
|
|
19
|
+
Object.defineProperty(exports, "MessageRow", { enumerable: true, get: function () { return react_1.MessageRow; } });
|
|
19
20
|
Object.defineProperty(exports, "AdminMessage", { enumerable: true, get: function () { return react_1.AdminMessage; } });
|
|
20
21
|
Object.defineProperty(exports, "ConnectionAndChannelStatusLabel", { enumerable: true, get: function () { return react_1.ConnectionAndChannelStatusLabel; } });
|
|
21
22
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;AACb,kDAA0B;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;AACb,kDAA0B;AAkBtB,eAlBG,cAAI,CAkBH;AAjBR,8DAAsC;AAkBlC,kBAlBG,iBAAO,CAkBH;AAjBX,oFAA4D;AAkBxD,6BAlBG,4BAAkB,CAkBH;AAhBtB,mCAIkB;AAHd,uGAAA,aAAa,OAAA;AACb,uGAAA,aAAa,OAAA;AACb,oGAAA,UAAU,OAAA;AAGd,iCAKgB;AAJZ,gGAAA,OAAO,OAAA;AACP,mGAAA,UAAU,OAAA;AACV,qGAAA,YAAY,OAAA;AACZ,wHAAA,+BAA+B,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AdminMessage.js","sourceRoot":"","sources":["../../../src/react/components/AdminMessage.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAOxB,MAAM,YAAY,GAAG,CAAC,EAAC,OAAO,EAAoB,EAAE,EAAE;IACzD,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"AdminMessage.js","sourceRoot":"","sources":["../../../src/react/components/AdminMessage.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAOxB,MAAM,YAAY,GAAG,CAAC,EAAC,OAAO,EAAoB,EAAE,EAAE;IACzD,MAAM,MAAM,GAAwB;QAChC,OAAO,EAAE,cAAc;QACvB,YAAY,EAAE,UAAU;QACxB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,gBAAgB;QACxB,QAAQ,EAAE,QAAQ;QAClB,QAAQ,EAAE,KAAK;QACf,MAAM,EAAE,iBAAiB;KAC5B,CAAC;IAEF,MAAM,iBAAiB,GAAwB;QAC3C,eAAe,EAAE,SAAS;QAC1B,KAAK,EAAE,MAAM;QACb,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,SAAS;KACtB,CAAA;IAED,MAAM,oBAAoB,GAAwB;QAC9C,OAAO,EAAE,cAAc;KAC1B,CAAA;IAED,OAAO,CACH,6BAAK,KAAK,EAAE,MAAM;QACd,6BAAK,KAAK,EAAE,iBAAiB,IACxB,OAAO,CAAC,MAAM,CAAC,UAAU,GAAG,UAAU,CACrC;QACN,6BAAK,KAAK,EAAE,oBAAoB,IAC3B,OAAO,CAAC,OAAO,CACd,CACJ,CACT,CAAA;AACL,CAAC,CAAA;AAhCY,QAAA,YAAY,gBAgCxB"}
|
|
@@ -37,6 +37,7 @@ const ConnectionAndChannelStatusLabel = ({ connectionStatus, channelStatus }) =>
|
|
|
37
37
|
width: '10px',
|
|
38
38
|
height: '10px',
|
|
39
39
|
borderRadius: '9999px',
|
|
40
|
+
marginLeft: '5px',
|
|
40
41
|
backgroundColor: derivedConnectionStatusColors[derivedConnectionStatus]
|
|
41
42
|
};
|
|
42
43
|
return (React.createElement("span", { title: `Connection: ${connectionStatus}, Channel: ${channelStatus}` },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionAndChannelStatusLabel.js","sourceRoot":"","sources":["../../../src/react/components/ConnectionAndChannelStatusLabel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AASxB,MAAM,+BAA+B,GAAG,CAAC,EAAC,gBAAgB,EAAE,aAAa,EAAuC,EAAE,EAAE;IACvH,MAAM,uBAAuB,GAAG,sBAAsB,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;IAExF,MAAM,6BAA6B,GAAG;QAClC,SAAS,EAAE,kBAAkB;QAC7B,UAAU,EAAE,mBAAmB;QAC/B,aAAa,EAAE,kBAAkB;KACpC,CAAA;IAED,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"ConnectionAndChannelStatusLabel.js","sourceRoot":"","sources":["../../../src/react/components/ConnectionAndChannelStatusLabel.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AASxB,MAAM,+BAA+B,GAAG,CAAC,EAAC,gBAAgB,EAAE,aAAa,EAAuC,EAAE,EAAE;IACvH,MAAM,uBAAuB,GAAG,sBAAsB,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;IAExF,MAAM,6BAA6B,GAAG;QAClC,SAAS,EAAE,kBAAkB;QAC7B,UAAU,EAAE,mBAAmB;QAC/B,aAAa,EAAE,kBAAkB;KACpC,CAAA;IAED,MAAM,mBAAmB,GAAwB;QAC7C,OAAO,EAAE,cAAc;QACvB,KAAK,EAAE,MAAM;QACb,MAAM,EAAE,MAAM;QACd,YAAY,EAAE,QAAQ;QACtB,UAAU,EAAE,KAAK;QACjB,eAAe,EAAE,6BAA6B,CAAC,uBAAuB,CAAC;KAC1E,CAAA;IAED,OAAO,CACH,8BAAM,KAAK,EAAE,eAAe,gBAAgB,cAAc,aAAa,EAAE;;QAErE,8BAAM,KAAK,EAAE,mBAAmB,GAAI,CACjC,CACV,CAAA;AACL,CAAC,CAAA;AAxBY,QAAA,+BAA+B,mCAwB3C;AAED,MAAM,sBAAsB,GAAG,CAC3B,gBAA4C,EAC5C,aAAsC,EACI,EAAE;IAC5C,IAAI,gBAAgB,KAAK,WAAW,IAAI,aAAa,KAAK,UAAU,EAAE;QAClE,OAAO,WAAW,CAAC;KACtB;SAEI,IACD,gBAAgB;WACb,aAAa;WACb,CAAC,YAAY,EAAE,WAAW,EAAE,SAAS,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC;WACjE,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,EACvD;QACE,OAAO,YAAY,CAAC;KACvB;IAED,OAAO,eAAe,CAAC;AAE3B,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Message.js","sourceRoot":"","sources":["../../../src/react/components/Message.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAQxB,MAAM,OAAO,GAAG,CAAC,EAAC,OAAO,EAAE,aAAa,EAAe,EAAE,EAAE;IAC9D,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"Message.js","sourceRoot":"","sources":["../../../src/react/components/Message.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAQxB,MAAM,OAAO,GAAG,CAAC,EAAC,OAAO,EAAE,aAAa,EAAe,EAAE,EAAE;IAC9D,MAAM,MAAM,GAAwB;QAChC,OAAO,EAAE,cAAc;QACvB,YAAY,EAAE,UAAU;QACxB,QAAQ,EAAE,KAAK;QACf,eAAe,EAAE,aAAa;YAC1B,CAAC,CAAC,SAAS;YACX,CAAC,CAAC,SAAS;QACf,KAAK,EAAE,aAAa;YAChB,CAAC,CAAC,MAAM;YACR,CAAC,CAAC,SAAS;QACf,OAAO,EAAE,cAAc;QACvB,MAAM,EAAE,iBAAiB;KAC5B,CAAC;IAEF,OAAO,CACH,6BAAK,KAAK,EAAE,MAAM,IACb,OAAO,CAAC,OAAO,CACd,CACT,CAAA;AACL,CAAC,CAAA;AApBY,QAAA,OAAO,WAoBnB"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.MessageRow = void 0;
|
|
27
|
+
const React = __importStar(require("react"));
|
|
28
|
+
const MessageRow = ({ isCurrentUser, children }) => {
|
|
29
|
+
const styles = {
|
|
30
|
+
textAlign: isCurrentUser ? 'right' : undefined
|
|
31
|
+
};
|
|
32
|
+
return (React.createElement("div", { style: styles }, children));
|
|
33
|
+
};
|
|
34
|
+
exports.MessageRow = MessageRow;
|
|
35
|
+
//# sourceMappingURL=MessageRow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MessageRow.js","sourceRoot":"","sources":["../../../src/react/components/MessageRow.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA+B;AAMxB,MAAM,UAAU,GAAG,CAAC,EAAC,aAAa,EAAE,QAAQ,EAA2C,EAAE,EAAE;IAC9F,MAAM,MAAM,GAAwB;QAChC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;KACjD,CAAA;IAED,OAAO,CACH,6BAAK,KAAK,EAAE,MAAM,IACb,QAAQ,CACP,CACT,CAAA;AACL,CAAC,CAAA;AAVY,QAAA,UAAU,cAUtB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Message } from './Message';
|
|
2
|
+
import { MessageRow } from './MessageRow';
|
|
2
3
|
import { AdminMessage } from "./AdminMessage";
|
|
3
4
|
import { ConnectionAndChannelStatusLabel } from "./ConnectionAndChannelStatusLabel";
|
|
4
|
-
export { Message, AdminMessage, ConnectionAndChannelStatusLabel };
|
|
5
|
+
export { Message, MessageRow, AdminMessage, ConnectionAndChannelStatusLabel };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConnectionAndChannelStatusLabel = exports.AdminMessage = exports.Message = void 0;
|
|
3
|
+
exports.ConnectionAndChannelStatusLabel = exports.AdminMessage = exports.MessageRow = exports.Message = void 0;
|
|
4
4
|
const Message_1 = require("./Message");
|
|
5
5
|
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return Message_1.Message; } });
|
|
6
|
+
const MessageRow_1 = require("./MessageRow");
|
|
7
|
+
Object.defineProperty(exports, "MessageRow", { enumerable: true, get: function () { return MessageRow_1.MessageRow; } });
|
|
6
8
|
const AdminMessage_1 = require("./AdminMessage");
|
|
7
9
|
Object.defineProperty(exports, "AdminMessage", { enumerable: true, get: function () { return AdminMessage_1.AdminMessage; } });
|
|
8
10
|
const ConnectionAndChannelStatusLabel_1 = require("./ConnectionAndChannelStatusLabel");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react/components/index.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/react/components/index.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AAMhC,wFANK,iBAAO,OAML;AALX,6CAA0C;AAMtC,2FANK,uBAAU,OAML;AALd,iDAA8C;AAM1C,6FANK,2BAAY,OAML;AALhB,uFAAoF;AAMhF,gHANK,iEAA+B,OAML"}
|
package/dist/react/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { default as useChat } from './useChat';
|
|
2
2
|
export { default as useAppointmentChat } from './useAppointmentChat';
|
|
3
|
-
export { Message, AdminMessage, ConnectionAndChannelStatusLabel } from './components';
|
|
3
|
+
export { Message, MessageRow, AdminMessage, ConnectionAndChannelStatusLabel } from './components';
|
package/dist/react/index.js
CHANGED
|
@@ -3,13 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ConnectionAndChannelStatusLabel = exports.AdminMessage = exports.Message = exports.useAppointmentChat = exports.useChat = void 0;
|
|
6
|
+
exports.ConnectionAndChannelStatusLabel = exports.AdminMessage = exports.MessageRow = exports.Message = exports.useAppointmentChat = exports.useChat = void 0;
|
|
7
7
|
var useChat_1 = require("./useChat");
|
|
8
8
|
Object.defineProperty(exports, "useChat", { enumerable: true, get: function () { return __importDefault(useChat_1).default; } });
|
|
9
9
|
var useAppointmentChat_1 = require("./useAppointmentChat");
|
|
10
10
|
Object.defineProperty(exports, "useAppointmentChat", { enumerable: true, get: function () { return __importDefault(useAppointmentChat_1).default; } });
|
|
11
11
|
var components_1 = require("./components");
|
|
12
12
|
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return components_1.Message; } });
|
|
13
|
+
Object.defineProperty(exports, "MessageRow", { enumerable: true, get: function () { return components_1.MessageRow; } });
|
|
13
14
|
Object.defineProperty(exports, "AdminMessage", { enumerable: true, get: function () { return components_1.AdminMessage; } });
|
|
14
15
|
Object.defineProperty(exports, "ConnectionAndChannelStatusLabel", { enumerable: true, get: function () { return components_1.ConnectionAndChannelStatusLabel; } });
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
package/dist/react/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":";;;;;;AAAA,qCAA+C;AAAtC,mHAAA,OAAO,OAAW;AAC3B,2DAAqE;AAA5D,yIAAA,OAAO,OAAsB;AAEtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":";;;;;;AAAA,qCAA+C;AAAtC,mHAAA,OAAO,OAAW;AAC3B,2DAAqE;AAA5D,yIAAA,OAAO,OAAsB;AAEtC,2CAKsB;AAJlB,qGAAA,OAAO,OAAA;AACP,wGAAA,UAAU,OAAA;AACV,0GAAA,YAAY,OAAA;AACZ,6HAAA,+BAA+B,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@viewberapp/chat",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.72",
|
|
4
4
|
"description": "Viewber chat",
|
|
5
5
|
"author": "Jacob <jacob.chen@viewber.co.uk>",
|
|
6
6
|
"homepage": "https://bitbucket.org/ezadr/viewberjs#readme",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"react": "^16.14.0",
|
|
42
42
|
"rollbar": "^2.25.0"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "4fe133119b338977b2e6b101ecf7f725fcb43cb1"
|
|
45
45
|
}
|