@banta/sdk 3.3.9 → 4.0.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.
Files changed (64) hide show
  1. package/banta-sdk.metadata.json +1 -1
  2. package/bundles/banta-sdk.umd.js +1142 -410
  3. package/bundles/banta-sdk.umd.js.map +1 -1
  4. package/bundles/banta-sdk.umd.min.js +1 -1
  5. package/bundles/banta-sdk.umd.min.js.map +1 -1
  6. package/esm2015/banta-sdk.js +1 -1
  7. package/esm2015/lib/banta/banta.component.js +10 -16
  8. package/esm2015/lib/banta-logo.component.js +1 -1
  9. package/esm2015/lib/banta-sdk.module.js +10 -4
  10. package/esm2015/lib/chat/banta-chat/banta-chat.component.js +15 -18
  11. package/esm2015/lib/chat/chat-message/chat-message.component.js +3 -3
  12. package/esm2015/lib/chat/chat-view/chat-view.component.js +8 -7
  13. package/esm2015/lib/chat/chat.module.js +1 -1
  14. package/esm2015/lib/chat/index.js +1 -1
  15. package/esm2015/lib/chat/live-chat-message.component.js +3 -3
  16. package/esm2015/lib/chat-backend-base.js +17 -0
  17. package/esm2015/lib/chat-backend.js +74 -0
  18. package/esm2015/lib/chat-source-base.js +2 -0
  19. package/esm2015/lib/chat-source.js +151 -0
  20. package/esm2015/lib/comments/banta-comments/banta-comments.component.js +331 -172
  21. package/esm2015/lib/comments/comment/comment.component.js +56 -18
  22. package/esm2015/lib/comments/comment-field/comment-field.component.js +17 -15
  23. package/esm2015/lib/comments/comment-sort/comment-sort.component.js +1 -1
  24. package/esm2015/lib/comments/comment-view/comment-view.component.js +78 -40
  25. package/esm2015/lib/comments/comments.module.js +1 -1
  26. package/esm2015/lib/comments/index.js +1 -1
  27. package/esm2015/lib/comments/live-comment.component.js +3 -3
  28. package/esm2015/lib/common/common.module.js +1 -1
  29. package/esm2015/lib/common/index.js +1 -3
  30. package/esm2015/lib/common/lazy-connection.js +1 -1
  31. package/esm2015/lib/common/timestamp.component.js +1 -1
  32. package/esm2015/lib/emoji/emoji-selector-button.component.js +1 -1
  33. package/esm2015/lib/emoji/emoji-selector-panel/emoji-selector-panel.component.js +2 -2
  34. package/esm2015/lib/emoji/emoji.module.js +1 -1
  35. package/esm2015/lib/emoji/emojis.js +1 -1
  36. package/esm2015/lib/emoji/index.js +1 -1
  37. package/esm2015/lib/index.js +6 -1
  38. package/esm2015/lib/live-message.component.js +1 -1
  39. package/esm2015/lib/sdk-options.js +2 -0
  40. package/esm2015/public-api.js +1 -1
  41. package/fesm2015/banta-sdk.js +750 -308
  42. package/fesm2015/banta-sdk.js.map +1 -1
  43. package/lib/banta/banta.component.d.ts +8 -9
  44. package/lib/banta-sdk.module.d.ts +2 -1
  45. package/lib/chat/banta-chat/banta-chat.component.d.ts +8 -10
  46. package/lib/chat/chat-view/chat-view.component.d.ts +7 -4
  47. package/lib/chat/live-chat-message.component.d.ts +2 -2
  48. package/lib/chat-backend-base.d.ts +22 -0
  49. package/lib/chat-backend.d.ts +21 -0
  50. package/lib/chat-source-base.d.ts +31 -0
  51. package/lib/chat-source.d.ts +38 -0
  52. package/lib/comments/banta-comments/banta-comments.component.d.ts +65 -60
  53. package/lib/comments/comment/comment.component.d.ts +25 -5
  54. package/lib/comments/comment-field/comment-field.component.d.ts +7 -3
  55. package/lib/comments/comment-view/comment-view.component.d.ts +26 -8
  56. package/lib/comments/live-comment.component.d.ts +2 -2
  57. package/lib/common/index.d.ts +0 -2
  58. package/lib/index.d.ts +5 -0
  59. package/lib/sdk-options.d.ts +4 -0
  60. package/package.json +2 -2
  61. package/esm2015/lib/common/banta.service.js +0 -21
  62. package/esm2015/lib/common/chat-backend.service.js +0 -7
  63. package/lib/common/banta.service.d.ts +0 -9
  64. package/lib/common/chat-backend.service.d.ts +0 -14
@@ -1,9 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { UserAccount } from '@banta/common';
3
- export declare class BantaService {
4
- private _userChanged;
5
- private _user;
6
- get userChanged(): Observable<UserAccount>;
7
- set user(user: UserAccount);
8
- get user(): UserAccount;
9
- }
@@ -1,14 +0,0 @@
1
- import { ChatBackend, Notification, ChatSource, ChatMessage, ChatSourceOptions } from '@banta/common';
2
- import { Observable } from 'rxjs';
3
- export declare abstract class ChatBackendService implements ChatBackend {
4
- abstract getSourceForTopic(topicId: string, options?: ChatSourceOptions): Promise<ChatSource>;
5
- abstract getSourceForThread(topicId: string, messageId: string, options?: ChatSourceOptions): Promise<ChatSource>;
6
- abstract refreshMessage(message: ChatMessage): Promise<ChatMessage>;
7
- abstract getMessage(topicId: string, messageId: string): Promise<ChatMessage>;
8
- abstract getSubMessage(topicId: string, parentMessageId: string, messageId: string): Promise<ChatMessage>;
9
- abstract upvoteMessage(topicId: string, messageId: string, submessageId?: string): Promise<void>;
10
- abstract watchMessage(message: ChatMessage, handler: (message: ChatMessage) => void): () => void;
11
- abstract modifyMessage?(message: ChatMessage): Promise<void>;
12
- abstract get notificationsChanged(): Observable<Notification[]>;
13
- abstract get newNotification(): Observable<Notification>;
14
- }