@devanachat/sdk 0.8.1 → 0.9.0
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/CHANGELOG.md +34 -4
- package/build/index.cjs.js +41 -20
- package/build/index.cjs.js.map +1 -1
- package/build/index.mjs +41 -20
- package/build/index.mjs.map +1 -1
- package/build/index.umd.js +1 -1
- package/build/index.umd.js.map +1 -1
- package/build/types/Permissions.d.ts +4 -0
- package/build/types/protocol/schemes/Emoticon.d.ts +2 -3
- package/build/types/protocol/schemes/Entitlements.d.ts +2 -1
- package/build/types/protocol/schemes/Reaction.d.ts +2 -0
- package/build/types/protocol/schemes/commands/CreateEmoticon.d.ts +1 -1
- package/build/types/protocol/schemes/commands/GetEmoticons.d.ts +1 -0
- package/build/types/protocol/schemes/events/EmoticonDeleted.d.ts +1 -1
- package/build/types/protocol/schemes/events/Emoticons.d.ts +1 -1
- package/build/types/state-tracker/EmoticonsManager.d.ts +1 -1
- package/build/types/state-tracker/StateSnapshot.d.ts +1 -4
- package/package.json +1 -1
|
@@ -110,6 +110,10 @@ export declare class Permissions {
|
|
|
110
110
|
value: number;
|
|
111
111
|
maxLayer: Layer;
|
|
112
112
|
};
|
|
113
|
+
UseExternalEmoticons: {
|
|
114
|
+
value: number;
|
|
115
|
+
maxLayer: Layer;
|
|
116
|
+
};
|
|
113
117
|
};
|
|
114
118
|
static getNames(): (keyof typeof this.list)[];
|
|
115
119
|
static getByName(name: keyof typeof this.list): PermissionDefinition | undefined;
|
|
@@ -63,7 +63,8 @@ export declare enum SpaceFeature {
|
|
|
63
63
|
export declare enum UserFeature {
|
|
64
64
|
MessageLength = "user.message.length",
|
|
65
65
|
StorageLimit = "user.storage.limit",
|
|
66
|
-
StorageSingleFileLimit = "user.storage.single_file_limit"
|
|
66
|
+
StorageSingleFileLimit = "user.storage.single_file_limit",
|
|
67
|
+
ExternalEmoticons = "user.external_emoticons"
|
|
67
68
|
}
|
|
68
69
|
/**
|
|
69
70
|
* How far back a room of the space may be told to keep its history.
|
|
@@ -2,6 +2,7 @@ export type ReactionType = 'Emoji' | 'Emoticon';
|
|
|
2
2
|
export interface MessageReaction {
|
|
3
3
|
type: ReactionType;
|
|
4
4
|
value: string;
|
|
5
|
+
name?: string | null;
|
|
5
6
|
count: number;
|
|
6
7
|
}
|
|
7
8
|
export interface UserReaction {
|
|
@@ -9,5 +10,6 @@ export interface UserReaction {
|
|
|
9
10
|
value: string;
|
|
10
11
|
}
|
|
11
12
|
export interface ToggledReaction extends UserReaction {
|
|
13
|
+
name?: string | null;
|
|
12
14
|
isAdded: boolean;
|
|
13
15
|
}
|
|
@@ -7,7 +7,7 @@ export declare class EmoticonsManager {
|
|
|
7
7
|
private list;
|
|
8
8
|
private emoticonsPromises;
|
|
9
9
|
constructor(tracker: ChatStateTracker);
|
|
10
|
-
get(spaceId
|
|
10
|
+
get(spaceId: string): Promise<ObservableIndexedObjectCollection<Emoticon>>;
|
|
11
11
|
/**
|
|
12
12
|
* For internal use.
|
|
13
13
|
* @internal
|
|
@@ -86,10 +86,7 @@ export interface RoomFollowedTopicsSnapshot {
|
|
|
86
86
|
followedTopics: FollowedTopic[];
|
|
87
87
|
}
|
|
88
88
|
export interface EmoticonsSnapshot {
|
|
89
|
-
|
|
90
|
-
* Null for the global emoticons.
|
|
91
|
-
*/
|
|
92
|
-
spaceId: string | null;
|
|
89
|
+
spaceId: string;
|
|
93
90
|
emoticons: Emoticon[];
|
|
94
91
|
}
|
|
95
92
|
export declare function withoutPresence(user: User): User;
|
package/package.json
CHANGED