@majikah/majik-message 0.3.2 → 0.3.3

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.
@@ -61,7 +61,7 @@ export declare class MajikContactGroupManager {
61
61
  * Updates mutable metadata fields on a group.
62
62
  * Name is protected on system groups (delegates to MajikContactGroup.updateName which throws).
63
63
  */
64
- updateGroupMeta(id: string, meta: Partial<Pick<MajikContactGroupMeta, "name" | "description">>): MajikContactGroup;
64
+ updateGroupMeta(id: string, meta: Partial<Pick<MajikContactGroupMeta, "name" | "description" | "color">>): MajikContactGroup;
65
65
  /**
66
66
  * Adds a contact to a group.
67
67
  *
@@ -157,6 +157,7 @@ export class MajikContactGroupManager {
157
157
  group.updateName(meta.name);
158
158
  if (meta.description !== undefined)
159
159
  group.updateDescription(meta.description);
160
+ group.setColor(meta?.color || group.meta?.color);
160
161
  return group;
161
162
  }
162
163
  /* ================================
@@ -120,7 +120,7 @@ export declare class MajikContactManager {
120
120
  * Updates mutable metadata on a group (name, description).
121
121
  * Name is locked on system groups — will throw if attempted.
122
122
  */
123
- updateGroupMeta(id: string, meta: Partial<Pick<MajikContactGroupMeta, "name" | "description">>): MajikContactGroup;
123
+ updateGroupMeta(id: string, meta: Partial<Pick<MajikContactGroupMeta, "name" | "description" | "color">>): MajikContactGroup;
124
124
  /**
125
125
  * Adds a contact to a group.
126
126
  * Validates the contact exists in the directory.
@@ -172,7 +172,7 @@ export declare class MajikMessage {
172
172
  * Updates mutable metadata on a group (name, description).
173
173
  * Name is locked on system groups — will throw if attempted.
174
174
  */
175
- updateGroupMeta(id: string, meta: Partial<Pick<MajikContactGroupMeta, "name" | "description">>): this;
175
+ updateGroupMeta(id: string, meta: Partial<Pick<MajikContactGroupMeta, "name" | "description" | "color">>): this;
176
176
  /**
177
177
  * Adds a contact to a group.
178
178
  * Validates the contact exists in the directory.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@majikah/majik-message",
3
3
  "type": "module",
4
4
  "description": "Post-quantum end-to-end encryption with ML-KEM-768. Seed phrase–based accounts. Auto-expiring messages. Offline-ready. Exportable encrypted messages. Tamper-proof threads with blockchain-like integrity. Quantum-resistant messaging.",
5
- "version": "0.3.2",
5
+ "version": "0.3.3",
6
6
  "license": "Apache-2.0",
7
7
  "author": "Zelijah",
8
8
  "main": "./dist/index.js",