polfan-server-js-client 0.2.87 → 0.2.88
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/.idea/workspace.xml +39 -45
- package/build/index.cjs.js +18 -0
- package/build/index.cjs.js.map +1 -1
- package/build/index.umd.js +1 -1
- package/build/index.umd.js.map +1 -1
- package/build/types/state-tracker/RoomsManager.d.ts +1 -0
- package/package.json +1 -1
- package/src/state-tracker/RoomsManager.ts +11 -0
package/.idea/workspace.xml
CHANGED
|
@@ -4,15 +4,8 @@
|
|
|
4
4
|
<option name="autoReloadType" value="SELECTIVE" />
|
|
5
5
|
</component>
|
|
6
6
|
<component name="ChangeListManager">
|
|
7
|
-
<list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="
|
|
8
|
-
<change beforePath="$PROJECT_DIR$/
|
|
9
|
-
<change beforePath="$PROJECT_DIR$/build/index.cjs.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.cjs.js.map" afterDir="false" />
|
|
10
|
-
<change beforePath="$PROJECT_DIR$/build/index.umd.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.umd.js" afterDir="false" />
|
|
11
|
-
<change beforePath="$PROJECT_DIR$/build/index.umd.js.map" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.umd.js.map" afterDir="false" />
|
|
12
|
-
<change beforePath="$PROJECT_DIR$/build/types/state-tracker/TopicHistoryWindow.d.ts" beforeDir="false" afterPath="$PROJECT_DIR$/build/types/state-tracker/TopicHistoryWindow.d.ts" afterDir="false" />
|
|
13
|
-
<change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
|
|
14
|
-
<change beforePath="$PROJECT_DIR$/src/state-tracker/TopicHistoryWindow.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/TopicHistoryWindow.ts" afterDir="false" />
|
|
15
|
-
<change beforePath="$PROJECT_DIR$/tests/history-window.test.ts" beforeDir="false" afterPath="$PROJECT_DIR$/tests/history-window.test.ts" afterDir="false" />
|
|
7
|
+
<list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="TopicHistoryWindow retainRatio and event handling improvements">
|
|
8
|
+
<change beforePath="$PROJECT_DIR$/src/state-tracker/RoomsManager.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/RoomsManager.ts" afterDir="false" />
|
|
16
9
|
</list>
|
|
17
10
|
<option name="SHOW_DIALOG" value="false" />
|
|
18
11
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -62,31 +55,31 @@
|
|
|
62
55
|
<option name="hideEmptyMiddlePackages" value="true" />
|
|
63
56
|
<option name="showLibraryContents" value="true" />
|
|
64
57
|
</component>
|
|
65
|
-
<component name="PropertiesComponent"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
58
|
+
<component name="PropertiesComponent">{
|
|
59
|
+
"keyToString": {
|
|
60
|
+
"RunOnceActivity.MCP Project settings loaded": "true",
|
|
61
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
62
|
+
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager": "true",
|
|
63
|
+
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
|
|
64
|
+
"RunOnceActivity.git.unshallow": "true",
|
|
65
|
+
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
|
66
|
+
"codeWithMe.voiceChat.enabledByDefault": "false",
|
|
67
|
+
"com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1": "true",
|
|
68
|
+
"git-widget-placeholder": "master",
|
|
69
|
+
"ignore.virus.scanning.warn.message": "true",
|
|
70
|
+
"junie.onboarding.icon.badge.shown": "true",
|
|
71
|
+
"last_opened_file_path": "//wsl.localhost/Debian/home/jarek/polfan-js-client-library",
|
|
72
|
+
"node.js.detected.package.eslint": "true",
|
|
73
|
+
"node.js.detected.package.tslint": "true",
|
|
74
|
+
"node.js.selected.package.eslint": "(autodetect)",
|
|
75
|
+
"node.js.selected.package.tslint": "(autodetect)",
|
|
76
|
+
"nodejs_package_manager_path": "npm",
|
|
77
|
+
"settings.editor.selected.configurable": "com.github.copilot.settings.chat.ChatConfigurable",
|
|
78
|
+
"to.speed.mode.migration.done": "true",
|
|
79
|
+
"ts.external.directory.path": "\\\\wsl.localhost\\Debian\\home\\jarek\\polfan-js-client-library\\node_modules\\typescript\\lib",
|
|
80
|
+
"vue.rearranger.settings.migration": "true"
|
|
88
81
|
}
|
|
89
|
-
}
|
|
82
|
+
}</component>
|
|
90
83
|
<component name="SharedIndexes">
|
|
91
84
|
<attachedChunks>
|
|
92
85
|
<set>
|
|
@@ -196,15 +189,8 @@
|
|
|
196
189
|
<workItem from="1775641624063" duration="1179000" />
|
|
197
190
|
<workItem from="1776327180094" duration="5055000" />
|
|
198
191
|
<workItem from="1777136687009" duration="3369000" />
|
|
199
|
-
<workItem from="1777301595900" duration="
|
|
200
|
-
|
|
201
|
-
<task id="LOCAL-00037" summary="Dedicated event for user status change">
|
|
202
|
-
<option name="closed" value="true" />
|
|
203
|
-
<created>1751547708628</created>
|
|
204
|
-
<option name="number" value="00037" />
|
|
205
|
-
<option name="presentableId" value="LOCAL-00037" />
|
|
206
|
-
<option name="project" value="LOCAL" />
|
|
207
|
-
<updated>1751547708628</updated>
|
|
192
|
+
<workItem from="1777301595900" duration="1696000" />
|
|
193
|
+
<workItem from="1778067371586" duration="1297000" />
|
|
208
194
|
</task>
|
|
209
195
|
<task id="LOCAL-00038" summary="Dedicated event for user status change">
|
|
210
196
|
<option name="closed" value="true" />
|
|
@@ -590,7 +576,15 @@
|
|
|
590
576
|
<option name="project" value="LOCAL" />
|
|
591
577
|
<updated>1776807618896</updated>
|
|
592
578
|
</task>
|
|
593
|
-
<
|
|
579
|
+
<task id="LOCAL-00086" summary="TopicHistoryWindow retainRatio and event handling improvements">
|
|
580
|
+
<option name="closed" value="true" />
|
|
581
|
+
<created>1777303294828</created>
|
|
582
|
+
<option name="number" value="00086" />
|
|
583
|
+
<option name="presentableId" value="LOCAL-00086" />
|
|
584
|
+
<option name="project" value="LOCAL" />
|
|
585
|
+
<updated>1777303294829</updated>
|
|
586
|
+
</task>
|
|
587
|
+
<option name="localTasksCounter" value="87" />
|
|
594
588
|
<servers />
|
|
595
589
|
</component>
|
|
596
590
|
<component name="TypeScriptGeneratedFilesManager">
|
|
@@ -608,7 +602,6 @@
|
|
|
608
602
|
</option>
|
|
609
603
|
</component>
|
|
610
604
|
<component name="VcsManagerConfiguration">
|
|
611
|
-
<MESSAGE value="Update room on recipient user change" />
|
|
612
605
|
<MESSAGE value="Fix websocket state error handling" />
|
|
613
606
|
<MESSAGE value="Collection integration with React JS rework" />
|
|
614
607
|
<MESSAGE value="Update deps and improve library building" />
|
|
@@ -633,7 +626,8 @@
|
|
|
633
626
|
<MESSAGE value="Delete redacted messages, improve collections, add tests" />
|
|
634
627
|
<MESSAGE value="Fix emitting event with deleted topics" />
|
|
635
628
|
<MESSAGE value="Adjust to ban changes" />
|
|
636
|
-
<
|
|
629
|
+
<MESSAGE value="TopicHistoryWindow retainRatio and event handling improvements" />
|
|
630
|
+
<option name="LAST_COMMIT_MESSAGE" value="TopicHistoryWindow retainRatio and event handling improvements" />
|
|
637
631
|
</component>
|
|
638
632
|
<component name="XSLT-Support.FileAssociations.UIState">
|
|
639
633
|
<expand />
|
package/build/index.cjs.js
CHANGED
|
@@ -2101,6 +2101,9 @@ var RoomsManager = /*#__PURE__*/function () {
|
|
|
2101
2101
|
this.tracker.client.on('NewMessage', function (ev) {
|
|
2102
2102
|
return _this.handleNewMessage(ev);
|
|
2103
2103
|
});
|
|
2104
|
+
this.tracker.client.on('MessagesRedacted', function (ev) {
|
|
2105
|
+
return _this.handleMessagesRedacted(ev);
|
|
2106
|
+
});
|
|
2104
2107
|
this.tracker.client.on('NewTopic', function (ev) {
|
|
2105
2108
|
return _this.handleNewTopic(ev);
|
|
2106
2109
|
});
|
|
@@ -2634,6 +2637,21 @@ var RoomsManager = /*#__PURE__*/function () {
|
|
|
2634
2637
|
}));
|
|
2635
2638
|
}
|
|
2636
2639
|
}
|
|
2640
|
+
}, {
|
|
2641
|
+
key: "handleMessagesRedacted",
|
|
2642
|
+
value: function handleMessagesRedacted(ev) {
|
|
2643
|
+
// Remove redacted messages from topic.lastMessage
|
|
2644
|
+
var topics = this.topics.get(ev.location.roomId);
|
|
2645
|
+
var updatedTopics = topics.items.filter(function (topic) {
|
|
2646
|
+
var _topic$lastMessage;
|
|
2647
|
+
return ((_topic$lastMessage = topic.lastMessage) === null || _topic$lastMessage === void 0 ? void 0 : _topic$lastMessage.id) && ev.ids.includes(topic.lastMessage.id);
|
|
2648
|
+
}).map(function (topic) {
|
|
2649
|
+
return RoomsManager_objectSpread(RoomsManager_objectSpread({}, topic), {}, {
|
|
2650
|
+
lastMessage: null
|
|
2651
|
+
});
|
|
2652
|
+
});
|
|
2653
|
+
topics.set.apply(topics, RoomsManager_toConsumableArray(updatedTopics));
|
|
2654
|
+
}
|
|
2637
2655
|
}]);
|
|
2638
2656
|
}();
|
|
2639
2657
|
;// ./src/state-tracker/functions.ts
|