bump version to 0.25.2
This commit is contained in:
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "tinode-webapp",
|
"name": "tinode-webapp",
|
||||||
"description": "Tinode messenger for the web",
|
"description": "Tinode messenger for the web",
|
||||||
"version": "0.25.0",
|
"version": "0.25.2",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/tinode/webapp.git"
|
"url": "git+https://github.com/tinode/webapp.git"
|
||||||
|
|||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
// This is a generated file. Don't edit.
|
// This is a generated file. Don't edit.
|
||||||
|
|
||||||
export const PACKAGE_VERSION = "0.25.0";
|
export const PACKAGE_VERSION = "0.25.2";
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+14
-6
@@ -8361,6 +8361,16 @@ class HashNavigation {
|
|||||||
delete parsed.params[key];
|
delete parsed.params[key];
|
||||||
return HashNavigation.composeUrlHash(parsed.path, parsed.params);
|
return HashNavigation.composeUrlHash(parsed.path, parsed.params);
|
||||||
}
|
}
|
||||||
|
static removeUrlParams(hash, keys) {
|
||||||
|
if (!Array.isArray(keys)) {
|
||||||
|
keys = [keys];
|
||||||
|
}
|
||||||
|
const parsed = HashNavigation.parseUrlHash(hash);
|
||||||
|
for (const key of keys) {
|
||||||
|
delete parsed.params[key];
|
||||||
|
}
|
||||||
|
return HashNavigation.composeUrlHash(parsed.path, parsed.params);
|
||||||
|
}
|
||||||
static setUrlSidePanel(hash, sidepanel) {
|
static setUrlSidePanel(hash, sidepanel) {
|
||||||
const parsed = HashNavigation.parseUrlHash(hash);
|
const parsed = HashNavigation.parseUrlHash(hash);
|
||||||
parsed.path[0] = sidepanel;
|
parsed.path[0] = sidepanel;
|
||||||
@@ -8751,7 +8761,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||||
/* harmony export */ PACKAGE_VERSION: function() { return /* binding */ PACKAGE_VERSION; }
|
/* harmony export */ PACKAGE_VERSION: function() { return /* binding */ PACKAGE_VERSION; }
|
||||||
/* harmony export */ });
|
/* harmony export */ });
|
||||||
const PACKAGE_VERSION = "0.25.0";
|
const PACKAGE_VERSION = "0.25.2";
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
|
|
||||||
@@ -9581,12 +9591,12 @@ class NewTopicView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compone
|
|||||||
}
|
}
|
||||||
handleSearchResultSelected(topicName) {
|
handleSearchResultSelected(topicName) {
|
||||||
if (this.state.tabSelected == 'find') {
|
if (this.state.tabSelected == 'find') {
|
||||||
_lib_navigation_js__WEBPACK_IMPORTED_MODULE_7__["default"].navigateTo(_lib_navigation_js__WEBPACK_IMPORTED_MODULE_7__["default"].removeUrlParam(window.location.hash, 'tab'));
|
_lib_navigation_js__WEBPACK_IMPORTED_MODULE_7__["default"].navigateTo(_lib_navigation_js__WEBPACK_IMPORTED_MODULE_7__["default"].removeUrlParams(window.location.hash, ['tab', 'q']));
|
||||||
this.props.onCreateTopic(topicName);
|
this.props.onCreateTopic(topicName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
handleNewGroupSubmit(name, description, dataUrl, priv, tags, isChannel) {
|
handleNewGroupSubmit(name, description, dataUrl, priv, tags, isChannel) {
|
||||||
_lib_navigation_js__WEBPACK_IMPORTED_MODULE_7__["default"].navigateTo(_lib_navigation_js__WEBPACK_IMPORTED_MODULE_7__["default"].removeUrlParam(window.location.hash, 'tab'));
|
_lib_navigation_js__WEBPACK_IMPORTED_MODULE_7__["default"].navigateTo(_lib_navigation_js__WEBPACK_IMPORTED_MODULE_7__["default"].removeUrlParams(window.location.hash, ['tab', 'q']));
|
||||||
this.props.onCreateTopic(undefined, {
|
this.props.onCreateTopic(undefined, {
|
||||||
public: (0,_lib_utils_js__WEBPACK_IMPORTED_MODULE_8__.theCard)(name, dataUrl, null, description),
|
public: (0,_lib_utils_js__WEBPACK_IMPORTED_MODULE_8__.theCard)(name, dataUrl, null, description),
|
||||||
private: priv,
|
private: priv,
|
||||||
@@ -9594,7 +9604,7 @@ class NewTopicView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compone
|
|||||||
}, isChannel);
|
}, isChannel);
|
||||||
}
|
}
|
||||||
handleGroupByID(topicName) {
|
handleGroupByID(topicName) {
|
||||||
_lib_navigation_js__WEBPACK_IMPORTED_MODULE_7__["default"].navigateTo(_lib_navigation_js__WEBPACK_IMPORTED_MODULE_7__["default"].removeUrlParam(window.location.hash, 'tab'));
|
_lib_navigation_js__WEBPACK_IMPORTED_MODULE_7__["default"].navigateTo(_lib_navigation_js__WEBPACK_IMPORTED_MODULE_7__["default"].removeUrlParams(window.location.hash, ['tab', 'q']));
|
||||||
this.props.onCreateTopic(topicName);
|
this.props.onCreateTopic(topicName);
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
@@ -11209,12 +11219,10 @@ class TinodeWeb extends (react__WEBPACK_IMPORTED_MODULE_0___default().Component)
|
|||||||
}
|
}
|
||||||
handleSendMessage(msg, uploadCompletionPromise, uploader, head) {
|
handleSendMessage(msg, uploadCompletionPromise, uploader, head) {
|
||||||
const topic = this.tinode.getTopic(this.state.topicSelected);
|
const topic = this.tinode.getTopic(this.state.topicSelected);
|
||||||
console.log("handleSendMessage", msg);
|
|
||||||
return this.sendMessageToTopic(topic, msg, uploadCompletionPromise, uploader, head);
|
return this.sendMessageToTopic(topic, msg, uploadCompletionPromise, uploader, head);
|
||||||
}
|
}
|
||||||
sendMessageToTopic(topic, msg, uploadCompletionPromise, uploader, head) {
|
sendMessageToTopic(topic, msg, uploadCompletionPromise, uploader, head) {
|
||||||
msg = topic.createMessage(msg, false);
|
msg = topic.createMessage(msg, false);
|
||||||
console.log("sendMessageToTopic", msg, head);
|
|
||||||
msg._uploader = uploader;
|
msg._uploader = uploader;
|
||||||
if (head) {
|
if (head) {
|
||||||
msg.head = Object.assign(msg.head || {}, head);
|
msg.head = Object.assign(msg.head || {}, head);
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1215,7 +1215,6 @@ class MessagesView extends (react__WEBPACK_IMPORTED_MODULE_0___default().Compone
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (file.type == tinode_sdk__WEBPACK_IMPORTED_MODULE_2__.TheCard.contentType) {
|
if (file.type == tinode_sdk__WEBPACK_IMPORTED_MODULE_2__.TheCard.contentType) {
|
||||||
console.log("TheCard attachment", file.object);
|
|
||||||
this.sendMessage(tinode_sdk__WEBPACK_IMPORTED_MODULE_2__.Drafty.appendTheCard(null, file.object));
|
this.sendMessage(tinode_sdk__WEBPACK_IMPORTED_MODULE_2__.Drafty.appendTheCard(null, file.object));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -2200,10 +2199,9 @@ class BaseChatMessage extends (react__WEBPACK_IMPORTED_MODULE_0___default().Pure
|
|||||||
hashUrl = _lib_navigation_js__WEBPACK_IMPORTED_MODULE_8__["default"].addUrlParam(hashUrl, 'q', e.target.dataset.val);
|
hashUrl = _lib_navigation_js__WEBPACK_IMPORTED_MODULE_8__["default"].addUrlParam(hashUrl, 'q', e.target.dataset.val);
|
||||||
hashUrl = _lib_navigation_js__WEBPACK_IMPORTED_MODULE_8__["default"].addUrlParam(hashUrl, 'tab', 'find');
|
hashUrl = _lib_navigation_js__WEBPACK_IMPORTED_MODULE_8__["default"].addUrlParam(hashUrl, 'tab', 'find');
|
||||||
_lib_navigation_js__WEBPACK_IMPORTED_MODULE_8__["default"].navigateTo(hashUrl);
|
_lib_navigation_js__WEBPACK_IMPORTED_MODULE_8__["default"].navigateTo(hashUrl);
|
||||||
console.log('Finding contact(s):', hashUrl);
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
console.log('Unhandled drafty action.', action, e.target.dataset);
|
console.info('Unhandled drafty action.', action, e.target.dataset);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -312,10 +312,10 @@ class CallPanel extends (react__WEBPACK_IMPORTED_MODULE_0___default().PureCompon
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
handleDataChannelClose(event) {
|
handleDataChannelClose(event) {
|
||||||
console.log('close data channel:', event);
|
console.info('close data channel:', event);
|
||||||
}
|
}
|
||||||
handleDataChannelEvent(event) {
|
handleDataChannelEvent(event) {
|
||||||
console.log('data channel event:', event);
|
console.info('data channel event:', event);
|
||||||
const channel = event.channel;
|
const channel = event.channel;
|
||||||
channel.onerror = this.handleDataChannelError;
|
channel.onerror = this.handleDataChannelError;
|
||||||
channel.onmessage = this.handleDataChannelMessage;
|
channel.onmessage = this.handleDataChannelMessage;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-4
@@ -2346,7 +2346,6 @@ Drafty.appendTheCard = function (content, theCardData) {
|
|||||||
tp: 'TC',
|
tp: 'TC',
|
||||||
data: theCardData
|
data: theCardData
|
||||||
});
|
});
|
||||||
console.log('Appended TheCard entity:', content);
|
|
||||||
return content;
|
return content;
|
||||||
};
|
};
|
||||||
Drafty.UNSAFE_toHTML = function (doc) {
|
Drafty.UNSAFE_toHTML = function (doc) {
|
||||||
@@ -4673,7 +4672,6 @@ class Topic {
|
|||||||
pub._sending = true;
|
pub._sending = true;
|
||||||
pub._failed = false;
|
pub._failed = false;
|
||||||
let attachments = null;
|
let attachments = null;
|
||||||
console.log("Publishing message", pub);
|
|
||||||
if (_drafty_js__WEBPACK_IMPORTED_MODULE_4___default().hasEntities(pub.content)) {
|
if (_drafty_js__WEBPACK_IMPORTED_MODULE_4___default().hasEntities(pub.content)) {
|
||||||
attachments = [];
|
attachments = [];
|
||||||
_drafty_js__WEBPACK_IMPORTED_MODULE_4___default().entities(pub.content, data => {
|
_drafty_js__WEBPACK_IMPORTED_MODULE_4___default().entities(pub.content, data => {
|
||||||
@@ -6025,7 +6023,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
||||||
/* harmony export */ PACKAGE_VERSION: function() { return /* binding */ PACKAGE_VERSION; }
|
/* harmony export */ PACKAGE_VERSION: function() { return /* binding */ PACKAGE_VERSION; }
|
||||||
/* harmony export */ });
|
/* harmony export */ });
|
||||||
const PACKAGE_VERSION = "0.25.1";
|
const PACKAGE_VERSION = "0.25.2";
|
||||||
|
|
||||||
/***/ })
|
/***/ })
|
||||||
|
|
||||||
@@ -7139,7 +7137,6 @@ class Tinode {
|
|||||||
}
|
}
|
||||||
pkt.pub.noecho = noEcho;
|
pkt.pub.noecho = noEcho;
|
||||||
pkt.pub.content = content;
|
pkt.pub.content = content;
|
||||||
console.log("Tinode.createMessage", pkt.pub);
|
|
||||||
return pkt.pub;
|
return pkt.pub;
|
||||||
}
|
}
|
||||||
publish(topicName, content, noEcho) {
|
publish(topicName, content, noEcho) {
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
// This is a generated file. Don't edit.
|
// This is a generated file. Don't edit.
|
||||||
|
|
||||||
const PACKAGE_VERSION = "0.25.0";
|
const PACKAGE_VERSION = "0.25.2";
|
||||||
|
|||||||
Reference in New Issue
Block a user