polfan-server-js-client 0.3.1 → 0.3.2

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.
@@ -0,0 +1,18 @@
1
+ Index: package.json
2
+ IDEA additional info:
3
+ Subsystem: com.intellij.openapi.diff.impl.patch.BaseRevisionTextPatchEP
4
+ <+>{\n \"name\": \"polfan-server-js-client\",\n \"version\": \"0.3.1\",\n \"description\": \"JavaScript client library for handling communication with Polfan chat server.\",\n \"author\": \"Jarosław Żak\",\n \"license\": \"MIT\",\n \"main\": \"build/index.cjs.js\",\n \"browser\": \"build/index.umd.js\",\n \"types\": \"build/types/index.d.ts\",\n \"exports\": {\n \".\": {\n \"types\": \"./build/types/index.d.ts\",\n \"require\": \"./build/index.cjs.js\",\n \"browser\": \"./build/index.umd.js\",\n \"default\": \"./build/index.cjs.js\"\n }\n },\n \"scripts\": {\n \"build\": \"npm run build:node && npm run build:browser && tsc\",\n \"build:node\": \"webpack --config webpack.config.node.js\",\n \"build:browser\": \"webpack --config webpack.config.browser.js\",\n \"test\": \"jest\",\n \"coverage\": \"npm run test -- --coverage\",\n \"trypublish\": \"npm publish || true\"\n },\n \"devDependencies\": {\n \"@babel/cli\": \"^7.28.3\",\n \"@babel/core\": \"^7.28.5\",\n \"@babel/preset-env\": \"^7.28.5\",\n \"@babel/preset-typescript\": \"^7.28.5\",\n \"@types/jest\": \"^29.5.14\",\n \"babel-loader\": \"^9.2.1\",\n \"file-loader\": \"^6.2.0\",\n \"jest\": \"^29.7.0\",\n \"ts-node\": \"^10.9.2\",\n \"typescript\": \"^4.9.5\",\n \"webpack\": \"^5.103.0\",\n \"webpack-cli\": \"^5.1.4\"\n },\n \"dependencies\": {\n \"terser-webpack-plugin\": \"^5.3.14\"\n }\n}\n
5
+ Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
6
+ <+>UTF-8
7
+ ===================================================================
8
+ diff --git a/package.json b/package.json
9
+ --- a/package.json (revision d974e79c5de0f1238eda4bf6d13f7e38ca819d90)
10
+ +++ b/package.json (date 1785593595442)
11
+ @@ -1,6 +1,6 @@
12
+ {
13
+ "name": "polfan-server-js-client",
14
+ - "version": "0.3.1",
15
+ + "version": "0.3.2",
16
+ "description": "JavaScript client library for handling communication with Polfan chat server.",
17
+ "author": "Jarosław Żak",
18
+ "license": "MIT",
@@ -0,0 +1,4 @@
1
+ <changelist name="Uncommitted_changes_before_rebase_[Changes]" date="1785593598500" recycled="true" deleted="true">
2
+ <option name="PATH" value="$PROJECT_DIR$/.idea/shelf/Uncommitted_changes_before_rebase_[Changes]/shelved.patch" />
3
+ <option name="DESCRIPTION" value="Uncommitted changes before rebase [Changes]" />
4
+ </changelist>
@@ -4,12 +4,16 @@
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="Introduce UserData support">
8
- <change beforePath="$PROJECT_DIR$/src/AbstractChatClient.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/AbstractChatClient.ts" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/src/Permissions.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/Permissions.ts" afterDir="false" />
10
- <change beforePath="$PROJECT_DIR$/src/state-tracker/RoomsManager.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/RoomsManager.ts" afterDir="false" />
11
- <change beforePath="$PROJECT_DIR$/src/state-tracker/SpacesManager.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/state-tracker/SpacesManager.ts" afterDir="false" />
7
+ <list default="true" id="831dae43-0da1-47fd-a5f7-33dd5eec2992" name="Changes" comment="Introduce room invitations and manual member adding">
8
+ <change beforePath="$PROJECT_DIR$/build/index.cjs.js" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.cjs.js" afterDir="false" />
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.map" beforeDir="false" afterPath="$PROJECT_DIR$/build/index.umd.js.map" afterDir="false" />
11
+ <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
12
12
  <change beforePath="$PROJECT_DIR$/src/types" beforeDir="false" afterPath="$PROJECT_DIR$/src/types" afterDir="false" />
13
+ <change beforePath="$PROJECT_DIR$/src/types/src/schemes/RoomMember.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/src/schemes/RoomMember.ts" afterDir="false" />
14
+ <change beforePath="$PROJECT_DIR$/src/types/src/schemes/SpaceMember.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/src/schemes/SpaceMember.ts" afterDir="false" />
15
+ <change beforePath="$PROJECT_DIR$/src/types/src/schemes/commands/UpdateRoomMember.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/src/schemes/commands/UpdateRoomMember.ts" afterDir="false" />
16
+ <change beforePath="$PROJECT_DIR$/src/types/src/schemes/commands/UpdateSpaceMember.ts" beforeDir="false" afterPath="$PROJECT_DIR$/src/types/src/schemes/commands/UpdateSpaceMember.ts" afterDir="false" />
13
17
  </list>
14
18
  <option name="SHOW_DIALOG" value="false" />
15
19
  <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -20,7 +24,7 @@
20
24
  <execution />
21
25
  </component>
22
26
  <component name="EmbeddingIndexingInfo">
23
- <option name="cachedIndexableFilesCount" value="201" />
27
+ <option name="cachedIndexableFilesCount" value="212" />
24
28
  </component>
25
29
  <component name="Git.Rebase.Settings">
26
30
  <option name="NEW_BASE" value="origin/main" />
@@ -28,11 +32,11 @@
28
32
  <component name="Git.Settings">
29
33
  <option name="RECENT_BRANCH_BY_REPOSITORY">
30
34
  <map>
31
- <entry key="$PROJECT_DIR$" value="claude/add-members-invite-rooms-1nphsj" />
35
+ <entry key="$PROJECT_DIR$" value="master" />
32
36
  <entry key="$PROJECT_DIR$/src/types" value="562c7beff95ea1eaf5c236df978f50a614a146af" />
33
37
  </map>
34
38
  </option>
35
- <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
39
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$/src/types" />
36
40
  <option name="ROOT_SYNC" value="DONT_SYNC" />
37
41
  </component>
38
42
  <component name="GitHubPullRequestSearchHistory">{
@@ -41,6 +45,16 @@
41
45
  &quot;assignee&quot;: &quot;szado&quot;
42
46
  }
43
47
  }</component>
48
+ <component name="GitRewordedCommitMessages">
49
+ <option name="commitMessagesMapping">
50
+ <RewordedCommitMessageMapping>
51
+ <option name="originalMessage" value="Add customAvatar member fields to types and rebuild&#10;&#10;SpaceMember.customAvatar and RoomMember.customAvatar (file id or null) plus the&#10;optional customAvatar field of the UpdateSpaceMember/UpdateRoomMember commands,&#10;matching the new server protocol. PM-room virtual members get a null default.&#10;&#10;Note: the src/types submodule (pserv-ts-types) needs the same fields committed&#10;upstream; the change is included here only in the built output. No version bump.&#10;&#10;Co-Authored-By: Claude Fable 5 &lt;noreply@anthropic.com&gt;&#10;Claude-Session: https://claude.ai/code/session_01C3pK4vFFEWWrK7gtKeQjC6" />
52
+ <option name="rewordedMessage" value="Custom avatars support" />
53
+ </RewordedCommitMessageMapping>
54
+ </option>
55
+ <option name="currentCommit" value="1" />
56
+ <option name="onto" value="6a2d671a2ea3742ea3977b1d035f4d4bed40c7eb" />
57
+ </component>
44
58
  <component name="GithubPullRequestsUISettings">{
45
59
  &quot;selectedUrlAndAccountId&quot;: {
46
60
  &quot;url&quot;: &quot;https://github.com/szado/pserv-ts-types&quot;,
@@ -73,7 +87,7 @@
73
87
  "RunOnceActivity.typescript.service.memoryLimit.init": "true",
74
88
  "codeWithMe.voiceChat.enabledByDefault": "false",
75
89
  "com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1": "true",
76
- "git-widget-placeholder": "master",
90
+ "git-widget-placeholder": "main",
77
91
  "git.auto.fetch.suggestion.counter": "3",
78
92
  "ignore.virus.scanning.warn.message": "true",
79
93
  "junie.onboarding.icon.badge.shown": "true",
@@ -235,15 +249,8 @@
235
249
  <workItem from="1783939298935" duration="21428000" />
236
250
  <workItem from="1784102649250" duration="12484000" />
237
251
  <workItem from="1784524117686" duration="79000" />
238
- <workItem from="1784562428378" duration="24306000" />
239
- </task>
240
- <task id="LOCAL-00063" summary="Improvements and fixes to collection mirroring">
241
- <option name="closed" value="true" />
242
- <created>1763587170120</created>
243
- <option name="number" value="00063" />
244
- <option name="presentableId" value="LOCAL-00063" />
245
- <option name="project" value="LOCAL" />
246
- <updated>1763587170121</updated>
252
+ <workItem from="1784562428378" duration="25143000" />
253
+ <workItem from="1785316847947" duration="4472000" />
247
254
  </task>
248
255
  <task id="LOCAL-00064" summary="Align to custom colors and nicks protocol changes">
249
256
  <option name="closed" value="true" />
@@ -629,7 +636,15 @@
629
636
  <option name="project" value="LOCAL" />
630
637
  <updated>1785167989175</updated>
631
638
  </task>
632
- <option name="localTasksCounter" value="112" />
639
+ <task id="LOCAL-00112" summary="Introduce room invitations and manual member adding">
640
+ <option name="closed" value="true" />
641
+ <created>1785177501237</created>
642
+ <option name="number" value="00112" />
643
+ <option name="presentableId" value="LOCAL-00112" />
644
+ <option name="project" value="LOCAL" />
645
+ <updated>1785177501238</updated>
646
+ </task>
647
+ <option name="localTasksCounter" value="113" />
633
648
  <servers />
634
649
  </component>
635
650
  <component name="TypeScriptGeneratedFilesManager">
@@ -641,6 +656,11 @@
641
656
  <entry key="Branch">
642
657
  <value>
643
658
  <list>
659
+ <RecentGroup>
660
+ <option name="FILTER_VALUES">
661
+ <option value="claude/avatars-room-space-support-bvrcaz" />
662
+ </option>
663
+ </RecentGroup>
644
664
  <RecentGroup>
645
665
  <option name="FILTER_VALUES">
646
666
  <option value="claude/add-members-invite-rooms-1nphsj" />
@@ -676,7 +696,7 @@
676
696
  <entry key="branch">
677
697
  <value>
678
698
  <list>
679
- <option value="claude/add-members-invite-rooms-1nphsj" />
699
+ <option value="claude/avatars-room-space-support-bvrcaz" />
680
700
  </list>
681
701
  </value>
682
702
  </entry>
@@ -689,8 +709,6 @@
689
709
  </option>
690
710
  </component>
691
711
  <component name="VcsManagerConfiguration">
692
- <MESSAGE value="Fix emitting event with deleted topics" />
693
- <MESSAGE value="Adjust to ban changes" />
694
712
  <MESSAGE value="TopicHistoryWindow retainRatio and event handling improvements" />
695
713
  <MESSAGE value="Remove removed message from Topic last message" />
696
714
  <MESSAGE value="Update Topic on redacted message" />
@@ -714,7 +732,9 @@
714
732
  <MESSAGE value="Reconcile tracked state on reconnect" />
715
733
  <MESSAGE value="Introduce UserData support" />
716
734
  <MESSAGE value="Add members to rooms and invitation only rooms support" />
717
- <option name="LAST_COMMIT_MESSAGE" value="Add members to rooms and invitation only rooms support" />
735
+ <MESSAGE value="Introduce room invitations and manual member adding" />
736
+ <MESSAGE value="Custom avatars support" />
737
+ <option name="LAST_COMMIT_MESSAGE" value="Custom avatars support" />
718
738
  </component>
719
739
  <component name="XSLT-Support.FileAssociations.UIState">
720
740
  <expand />
@@ -3325,6 +3325,7 @@ var RoomsManager = /*#__PURE__*/function () {
3325
3325
  roles: null,
3326
3326
  customColor: null,
3327
3327
  customNick: null,
3328
+ customAvatar: null,
3328
3329
  extras: ''
3329
3330
  };
3330
3331
  })
@@ -4223,7 +4224,7 @@ Permissions_defineProperty(Permissions, "list", {
4223
4224
  value: 1 << 16,
4224
4225
  maxLayer: Layer.Room
4225
4226
  },
4226
- ChangeOwnNick: {
4227
+ ChangeOwnProfile: {
4227
4228
  value: 1 << 17,
4228
4229
  maxLayer: Layer.Space
4229
4230
  },