@veltdev/sdk 1.0.135 → 1.0.137

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.
@@ -17,6 +17,7 @@ import { HuddleElement } from "../models/element/huddle-element.model";
17
17
  import { SelectionElement } from "../models/element/selection-element.model";
18
18
  import { ViewsElement } from "../models/element/views-element.model";
19
19
  import { NotificationElement } from "../models/element/notification-element.model";
20
+ import { AutocompleteElement } from "../models/element/autocomplete-element.model";
20
21
  import { TagElement } from "../models/element/tag-element.model";
21
22
  import { FeatureType } from "../utils/enums";
22
23
  export declare class Snippyly {
@@ -138,6 +139,10 @@ export declare class Snippyly {
138
139
  * Get the Notification Object.
139
140
  */
140
141
  getNotificationElement: () => NotificationElement;
142
+ /**
143
+ * Get the Autocomplete Object.
144
+ */
145
+ getAutocompleteElement: () => AutocompleteElement;
141
146
  /**
142
147
  * To signout a user
143
148
  */
@@ -0,0 +1,23 @@
1
+ export declare class AutocompleteDataMap {
2
+ [hotkey: string]: AutocompleteData;
3
+ }
4
+ export declare class AutocompleteData {
5
+ hotkey: string;
6
+ description?: string;
7
+ type: 'custom' | 'contact';
8
+ list: AutocompleteItem[];
9
+ }
10
+ export declare class AutocompleteItem {
11
+ id: string;
12
+ name: string;
13
+ description?: string;
14
+ icon?: {
15
+ url?: string;
16
+ svg?: string;
17
+ };
18
+ link?: string;
19
+ }
20
+ export declare class AutocompleteReplaceData {
21
+ text: string;
22
+ custom: AutocompleteItem;
23
+ }
@@ -1,4 +1,5 @@
1
1
  import { Attachment } from "./attachment.model";
2
+ import { AutocompleteReplaceData } from "./autocomplete.data.model";
2
3
  import { RecordedData } from "./recorder.model";
3
4
  import { User } from "./user.data.model";
4
5
  export declare class Comment {
@@ -63,4 +64,5 @@ export declare class Comment {
63
64
  */
64
65
  recorders: RecordedData[];
65
66
  reactionAnnotationIds: string[];
67
+ customList: AutocompleteReplaceData[];
66
68
  }
@@ -0,0 +1,25 @@
1
+ // @ts-nocheck
2
+ import { Observable } from "rxjs";
3
+ import { AutocompleteData } from "../data/autocomplete.data.model";
4
+ export declare class AutocompleteElement {
5
+ /**
6
+ * To set autocomplete data
7
+ */
8
+ public create: (data: AutocompleteData) => void;
9
+
10
+ /**
11
+ * To get callback on autocomplete chip click
12
+ */
13
+ public onAutocompleteChipClick: () => Observable<any>;
14
+ constructor();
15
+
16
+ /**
17
+ * To set autocomplete data
18
+ */
19
+ private _create;
20
+
21
+ /**
22
+ * To get callback on autocomplete chip click
23
+ */
24
+ private _onAutocompleteChipClick;
25
+ }
@@ -137,10 +137,6 @@ export declare class Constants {
137
137
  * @deprecated Use VELT_REWRITER instead
138
138
  */
139
139
  SNIPPYLY_REWRITER: string;
140
- /**
141
- * @deprecated Use VELT_USER_SELECTOR instead
142
- */
143
- SNIPPYLY_USER_SELECTOR: string;
144
140
  /**
145
141
  * @deprecated Use VELT_USER_INVITE_TOOL instead
146
142
  */
@@ -188,7 +184,6 @@ export declare class Constants {
188
184
  VELT_COMMENT_DIALOG: string;
189
185
  VELT_SIDEBAR_BUTTON: string;
190
186
  VELT_REWRITER: string;
191
- VELT_USER_SELECTOR: string;
192
187
  VELT_USER_INVITE_TOOL: string;
193
188
  VELT_USER_REQUEST_TOOL: string;
194
189
  VELT_USER_AVATAR: string;
@@ -205,6 +200,8 @@ export declare class Constants {
205
200
  VELT_NOTIFICATIONS_PANEL: string;
206
201
  VELT_NOTIFICATIONS_HISTORY_PANEL: string;
207
202
  VELT_WIREFRAME: string;
203
+ VELT_AUTOCOMPLETE: string;
204
+ VELT_AUTOCOMPLETE_CHIP: string;
208
205
  VELT_COMMENT_DIALOG_HEADER: string;
209
206
  VELT_COMMENT_DIALOG_BODY: string;
210
207
  VELT_COMMENT_DIALOG_FOOTER: string;
@@ -215,6 +212,7 @@ export declare class Constants {
215
212
  VELT_COMMENT_DIALOG_OPTIONS: string;
216
213
  VELT_COMMENT_DIALOG_BODY_THREAD_CARD: string;
217
214
  VELT_COMMENT_DIALOG_PRIVATE_BANNER: string;
215
+ VELT_SHADOW_DOM_INTERNAL: string;
218
216
  };
219
217
  static ATTRIBUTES: {
220
218
  VELT_ID: string;
package/models.d.ts CHANGED
@@ -47,3 +47,4 @@ export * from './app/models/data/flock-options.model';
47
47
  export * from './app/models/data/customer-metadata.data.model';
48
48
  export * from './app/models/data/comment-sidebar-config.model';
49
49
  export * from './app/models/data/views.data.model';
50
+ export * from './app/models/data/autocomplete.data.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "1.0.135",
3
+ "version": "1.0.137",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {
package/types.d.ts CHANGED
@@ -14,4 +14,5 @@ export * from './app/models/element/selection-element.model';
14
14
  export * from './app/models/element/tag-element.model';
15
15
  export * from './app/models/element/views-element.model';
16
16
  export * from './app/models/element/notification-element.model';
17
+ export * from './app/models/element/autocomplete-element.model';
17
18
  export * from './models';