@veltdev/sdk-staging 5.0.4 → 6.0.0-beta.1

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 (66) hide show
  1. package/app/client/snippyly.model.d.ts +0 -18
  2. package/app/{models/data/arrow-annotation.data.model.d.ts → features/arrow/models/arrow-annotation.model.d.ts} +6 -6
  3. package/app/features/user-request/models/user-request.data.model.d.ts +37 -0
  4. package/app/models/data/user-contact-us.data.model.d.ts +1 -1
  5. package/app/models/data/user-feedback.data.model.d.ts +1 -1
  6. package/app/models/data/user-report-bug.data.model.d.ts +1 -1
  7. package/app/models/element/comment-element.model.d.ts +0 -4
  8. package/app/models/element/notification-element.model.d.ts +1 -15
  9. package/app/utils/constants.d.ts +10 -1
  10. package/app/utils/enums.d.ts +7 -2
  11. package/chunk-25GEE4UD.js +1 -0
  12. package/chunk-2HGBJS2C.js +1 -0
  13. package/chunk-2KJNXU43.js +1 -0
  14. package/chunk-447SWJD2.js +1 -0
  15. package/chunk-5B5CQEDX.js +1 -0
  16. package/chunk-5FKOPJVO.js +93 -0
  17. package/chunk-6SOP2T3L.js +1 -0
  18. package/chunk-7W553TUZ.js +7 -0
  19. package/chunk-7ZOGXD6Z.js +2 -0
  20. package/chunk-AOHSD4YE.js +6 -0
  21. package/chunk-APIRNTKO.js +1 -0
  22. package/chunk-AVMLJMVU.js +1 -0
  23. package/chunk-BG6MNCDK.js +1 -0
  24. package/chunk-BLIJMW4Z.js +13 -0
  25. package/chunk-BY627CV6.js +1 -0
  26. package/chunk-DX4SZFHQ.js +1 -0
  27. package/chunk-IXZIBE27.js +1 -0
  28. package/chunk-J6J7I3SW.js +1 -0
  29. package/chunk-JFRM6MNS.js +2 -0
  30. package/chunk-JWLHBAMV.js +167 -0
  31. package/chunk-N4SGYLNB.js +1 -0
  32. package/chunk-Q7BPHHBS.js +2 -0
  33. package/chunk-QE2MK6NF.js +1 -0
  34. package/chunk-SALUJBOS.js +1 -0
  35. package/chunk-TXOYHDVN.js +2 -0
  36. package/chunk-UJMFCXYS.js +2 -0
  37. package/chunk-USRSVPHC.js +1 -0
  38. package/chunk-VFAO7EZK.js +1 -0
  39. package/chunk-WANCOUQO.js +193 -0
  40. package/chunk-XMYVEF74.js +1 -0
  41. package/chunk-Y6QKEGWK.js +1 -0
  42. package/chunk-YBQBSGLX.js +10 -0
  43. package/chunk-ZVY2YW2G.js +1 -0
  44. package/models.d.ts +1 -1
  45. package/package.json +1 -1
  46. package/types.d.ts +0 -1
  47. package/velt-activity-log.js +1 -0
  48. package/velt-area.js +1 -0
  49. package/velt-arrow.js +2 -0
  50. package/velt-comment.js +14 -0
  51. package/velt-crdt.js +1 -0
  52. package/velt-cursor.js +2 -0
  53. package/velt-huddle.js +3 -0
  54. package/velt-live-state-sync.js +2 -0
  55. package/velt-notification.js +1 -0
  56. package/velt-presence.js +1 -0
  57. package/velt-reaction.js +1 -0
  58. package/velt-recorder.js +1 -0
  59. package/velt-rewriter.js +8 -0
  60. package/velt-selection.js +1 -0
  61. package/velt-tag.js +1 -0
  62. package/velt-user-invite.js +2 -0
  63. package/velt-user-request.js +1 -0
  64. package/velt-video-player.js +1 -0
  65. package/velt-views.js +3 -0
  66. package/velt.js +33 -550
@@ -24,7 +24,6 @@ import { TagElement } from "../models/element/tag-element.model";
24
24
  import { FeatureType } from "../utils/enums";
25
25
  import { UserContact } from "../models/data/user-contact.data.model";
26
26
  import { DocumentMetadata } from "../models/data/document-metadata.model";
27
- import { PageInfo } from "../models/data/page-info.model";
28
27
  import { ReactionElement } from "../models/element/reaction-element.model";
29
28
  import { CrdtElement } from "../models/element/crdt-element.model";
30
29
  import { VeltEventMetadata, VeltDebugInfo } from "../models/data/event-metadata.data.model";
@@ -56,23 +55,6 @@ export declare class Snippyly {
56
55
  * @param documentMetadata Document Metadata
57
56
  */
58
57
  setDocument: (id: string, documentMetadata?: DocumentMetadata) => Promise<void>;
59
- /**
60
- * Provide custom page info that the SDK should use instead of generating it from the browser
61
- * (`window.location` / `document.title`). Newly created data (comments, reactions, recordings,
62
- * presence, cursors, etc.) will use the provided page info. Already saved/existing data is not
63
- * affected.
64
- * @param pageInfo client-provided page info
65
- * @param options optional; pass a `documentId` to scope the page info to a specific document
66
- * (per-document page info takes precedence over the global page info)
67
- */
68
- setPageInfo: (pageInfo: PageInfo, options?: { documentId?: string; }) => void;
69
- /**
70
- * Clear custom page info previously set via `setPageInfo`. The SDK will resume generating
71
- * page info from the browser.
72
- * @param options optional; pass a `documentId` to clear only that document's page info,
73
- * otherwise the global page info is cleared
74
- */
75
- clearPageInfo: (options?: { documentId?: string; }) => void;
76
58
  /**
77
59
  * Tell us the unique ID of the current document/resource on which you want to enable collaboration.
78
60
  * @param id unique document ID
@@ -1,9 +1,9 @@
1
- import { AnnotationProperty } from "./annotation-property.data.model";
2
- import { CursorPosition } from "./cursor-position.data.model";
3
- import { Location } from "./location.model";
4
- import { PageInfo } from "./page-info.model";
5
- import { TargetElement } from "./target-element.data.model";
6
- import { User } from "./user.data.model";
1
+ import { AnnotationProperty } from "../../../models/data/annotation-property.data.model";
2
+ import { CursorPosition } from "../../../models/data/cursor-position.data.model";
3
+ import { Location } from "../../../models/data/location.model";
4
+ import { PageInfo } from "../../../models/data/page-info.model";
5
+ import { TargetElement } from "../../../models/data/target-element.data.model";
6
+ import { User } from "../../../models/data/user.data.model";
7
7
  export declare class ArrowAnnotation {
8
8
  /**
9
9
  * Unique identifier for the arrow pin annotation.
@@ -0,0 +1,37 @@
1
+ import { DocumentMetadata } from "../../../models/data/document-metadata.model";
2
+ import { PageInfo } from "../../../models/data/page-info.model";
3
+ import { User } from "../../../models/data/user.data.model";
4
+ export declare class UserRequest {
5
+ /**
6
+ * Unique id of the feedback
7
+ */
8
+ id?: string;
9
+ /**
10
+ * apiKey of the client
11
+ */
12
+ apiKey?: string | null;
13
+ /**
14
+ * Email id of the feedback giver
15
+ */
16
+ emailId?: string;
17
+ /**
18
+ * Message given by the user
19
+ */
20
+ message?: string;
21
+ /**
22
+ * User who added the feedback
23
+ */
24
+ from?: User | null;
25
+ /**
26
+ * Date when the feedback was added
27
+ */
28
+ lastUpdated?: any;
29
+ /**
30
+ * Document metadata
31
+ */
32
+ metadata?: DocumentMetadata | null;
33
+ /**
34
+ * User's page info
35
+ */
36
+ pageInfo?: PageInfo;
37
+ }
@@ -1,3 +1,3 @@
1
- import { UserRequest } from "./user-request.data.model";
1
+ import { UserRequest } from "../../features/user-request/models/user-request.data.model";
2
2
  export declare class UserContactUs extends UserRequest {
3
3
  }
@@ -1,3 +1,3 @@
1
- import { UserRequest } from "./user-request.data.model";
1
+ import { UserRequest } from "../../features/user-request/models/user-request.data.model";
2
2
  export declare class UserFeedback extends UserRequest {
3
3
  }
@@ -1,3 +1,3 @@
1
- import { UserRequest } from "./user-request.data.model";
1
+ import { UserRequest } from "../../features/user-request/models/user-request.data.model";
2
2
  export declare class UserReportBug extends UserRequest {
3
3
  }
@@ -948,8 +948,6 @@ export declare class CommentElement {
948
948
  * To disable collapsed comment
949
949
  */
950
950
  public disableCollapsedComments: () => void;
951
- public enableCollapsedRepliesPreview: () => void;
952
- public disableCollapsedRepliesPreview: () => void;
953
951
 
954
952
  /**
955
953
  * To enable query params comments
@@ -2300,8 +2298,6 @@ export declare class CommentElement {
2300
2298
  * To disable collapsed comment
2301
2299
  */
2302
2300
  private _disableCollapsedComments;
2303
- private _enableCollapsedRepliesPreview;
2304
- private _disableCollapsedRepliesPreview;
2305
2301
 
2306
2302
  /**
2307
2303
  * To enable query params comments
@@ -1,6 +1,6 @@
1
1
  // @ts-nocheck
2
2
 
3
- import { CrossOrganizationConfig, GetNotificationsDataQuery, Notification, NotificationInitialSettingsConfig, NotificationSettingsConfig, NotificationTabConfig } from "../data/notification.model";
3
+ import { GetNotificationsDataQuery, Notification, NotificationInitialSettingsConfig, NotificationSettingsConfig, NotificationTabConfig } from "../data/notification.model";
4
4
 
5
5
  export declare class NotificationElement {
6
6
  /**
@@ -128,16 +128,6 @@ export declare class NotificationElement {
128
128
  */
129
129
  disableCurrentDocumentOnly: () => void;
130
130
 
131
- /**
132
- * Opt in to cross-organization "For You" notifications.
133
- */
134
- enableCrossOrganization: (config?: CrossOrganizationConfig | null) => void;
135
-
136
- /**
137
- * Opt out of cross-organization "For You" notifications.
138
- */
139
- disableCrossOrganization: () => void;
140
-
141
131
  constructor();
142
132
 
143
133
  /**
@@ -264,8 +254,4 @@ export declare class NotificationElement {
264
254
  * To disable current document only
265
255
  */
266
256
  private _disableCurrentDocumentOnly;
267
-
268
- private _enableCrossOrganization;
269
-
270
- private _disableCrossOrganization;
271
257
  }
@@ -203,8 +203,11 @@ export declare class Constants {
203
203
  VELT_TAGS: string;
204
204
  VELT_RECORDER_NOTES: string;
205
205
  VELT_RECORDER_CONTROL_PANEL: string;
206
- VELT_RECORDER_CONTROL_PANEL_INTERNAL: string;
206
+ VELT_RECORDER_CONTROL_PANEL_EMBED: string;
207
+ SNIPPYLY_RECORDER_CONTROL_PANEL_EMBED: string;
207
208
  VELT_RECORDER_PLAYER: string;
209
+ VELT_RECORDER_PLAYER_EMBED: string;
210
+ SNIPPYLY_RECORDER_PLAYER_EMBED: string;
208
211
  VELT_VIDEO_EDITOR: string;
209
212
  VELT_TEXT_HIGHLIGHT: string;
210
213
  VELT_COMMENT_TEXT_PORTAL: string;
@@ -271,6 +274,8 @@ export declare class Constants {
271
274
  VELT_COMMENT_BUBBLE_UNREAD_ICON: string;
272
275
  VELT_COMMENT_THREAD: string;
273
276
  VELT_COMMENT_PIN: string;
277
+ VELT_COMMENT_PIN_EMBED: string;
278
+ SNIPPYLY_COMMENT_PIN_EMBED: string;
274
279
  VELT_COMMENT_PIN_NUMBER: string;
275
280
  VELT_COMMENT_PIN_INDEX: string;
276
281
  VELT_COMMENT_PIN_TRIANGLE: string;
@@ -332,7 +337,11 @@ export declare class Constants {
332
337
  VELT_VIDEO_PLAYER: string;
333
338
  VELT_VIDEO_COMMENTS_TIMELINE: string;
334
339
  VELT_REACTION_TOOL: string;
340
+ SNIPPYLY_REACTION_TOOL: string;
341
+ VELT_REACTION_PIN: string;
342
+ SNIPPYLY_REACTION_PIN: string;
335
343
  VELT_INLINE_REACTIONS_SECTION: string;
344
+ SNIPPYLY_INLINE_REACTIONS_SECTION: string;
336
345
  VELT_VIEW_ANALYTICS: string;
337
346
  VELT_NOTIFICATIONS_TOOL: string;
338
347
  VELT_NOTIFICATIONS_TOOL_ICON: string;
@@ -224,7 +224,12 @@ export declare enum Features {
224
224
  LIVE_SELECTION = "liveSelection",
225
225
  NOTIFICATION = "notification",
226
226
  REACTION = "reaction",
227
- ACTIVITY = "activity"
227
+ ACTIVITY = "activity",
228
+ VIEWS = "views",
229
+ USER_INVITE = "userInvite",
230
+ USER_REQUEST = "userRequest",
231
+ VIDEO_PLAYER = "videoPlayer",
232
+ CRDT = "crdt"
228
233
  }
229
234
  export declare enum AnalyticsFeatures {
230
235
  AREA = "area",
@@ -246,7 +251,7 @@ export declare enum AnalyticsFeatures {
246
251
  INLINE_COMMENT = "inlineComment",
247
252
  COMMENT_SIDEBAR = "commentSidebar"
248
253
  }
249
- export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction' | 'multiThread' | 'activity';
254
+ export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection' | 'notification' | 'reaction' | 'multiThread' | 'activity' | 'views' | 'userInvite' | 'userRequest' | 'videoPlayer' | 'crdt';
250
255
  export type AssignToType = 'dropdown' | 'checkbox';
251
256
  export declare enum DeviceType {
252
257
  DESKTOP = "Desktop",
@@ -0,0 +1 @@
1
+ import{Pa as s,Wc as c,Xa as a,ui as n}from"./chunk-JWLHBAMV.js";var f=(()=>{let i=class i{constructor(t,r){this.domService=t,this.sanitizer=r}transform(t,r=!0){try{let o=r?this.domService.sanitizeHtml(t):t;return this.sanitizer.bypassSecurityTrustHtml(o)}catch{return t}}};i.\u0275fac=function(r){return new(r||i)(s(n,16),s(c,16))},i.\u0275pipe=a({name:"safeHtml",type:i,pure:!0});let e=i;return e})();export{f as a};
@@ -0,0 +1 @@
1
+ import{Ga as c,Pa as n,Wa as o,ua as a,ui as h,wa as r}from"./chunk-JWLHBAMV.js";var I=(()=>{let e=class e{constructor(t,i){this.domService=t,this.elementRef=i,this.clickOutside=new c}ngOnInit(){}ngAfterViewInit(){setTimeout(()=>{this.subscription=this.domService.onDocumentClickSubject$().subscribe(t=>{let i=this.checkInsideClick(t,this.elementRef.nativeElement);!i&&this.clickOutsideHandler&&typeof this.clickOutsideHandler=="function"&&(i=this.clickOutsideHandler(t.target,this.elementRef.nativeElement)),i||this.clickOutside.emit()})},500)}ngOnDestroy(){this.subscription?.unsubscribe()}checkInsideClick(t,i){return t.composedPath().includes(i)}};e.\u0275fac=function(i){return new(i||e)(n(h),n(r))},e.\u0275dir=o({type:e,selectors:[["","snippylyClickOutside",""]],inputs:{clickOutsideHandler:"clickOutsideHandler"},outputs:{clickOutside:"clickOutside"}});let s=e;return s})();var b=(()=>{let e=class e{constructor(t){this.elementRef=t,this.lastPosition=null,this.positionChange=new c,this.disabled=!1,this.timeSpentInMs=0,this.MAX_TIME_SPENT_IN_MS=6e4}ngAfterViewInit(){try{this.toggleTrackingPosition()}catch{}}toggleTrackingPosition(){try{this.disabled?this.stopTracking():this.startTrackingPosition()}catch{}}startTrackingPosition(){try{if(this.intervalId)return;this.intervalId=setInterval(()=>{if(this.timeSpentInMs+=10,this.timeSpentInMs>this.MAX_TIME_SPENT_IN_MS){this.stopTracking();return}let t=this.elementRef.nativeElement.getBoundingClientRect();(!this.lastPosition||!this.arePositionsEqual(this.lastPosition,t))&&(this.lastPosition=t,this.positionChange.emit(t))},10)}catch{}}stopTracking(){try{this.intervalId&&(clearInterval(this.intervalId),this.intervalId=null,this.timeSpentInMs=0)}catch{}}arePositionsEqual(t,i){try{return t.top===i.top&&t.left===i.left&&t.bottom===i.bottom&&t.right===i.right&&t.width===i.width&&t.height===i.height}catch{return!0}}ngOnChanges(){try{this.toggleTrackingPosition()}catch{}}ngOnDestroy(){try{this.stopTracking()}catch{}}};e.\u0275fac=function(i){return new(i||e)(n(r))},e.\u0275dir=o({type:e,selectors:[["","veltPositionObserver",""]],inputs:{disabled:[0,"veltPositionObserverDisabled","disabled"]},outputs:{positionChange:"positionChange"},features:[a]});let s=e;return s})();export{I as a,b};
@@ -0,0 +1 @@
1
+ import{da as I,ea as D,ga as E}from"./chunk-AOHSD4YE.js";import{Ua as f,Ya as m,Zh as v,a as s,b as g,da as n,ni as C,pi as y,qa as S,vc as d,wa as u,xc as p}from"./chunk-JWLHBAMV.js";var B=(()=>{let r=class r extends E{set parentLocalUIState(e){try{e&&(this.localUIStateSignal=e,this.isLocalUIStateOwner=!1)}catch{}}get elementRef(){try{return this.hostElementRef}catch{return null}}getServiceComponentConfigSignal(){}constructor(){let e=n(u),t=n(D),o=n(p),l=n(C).get(v),h=n(I),c=n(y);super(e,t,o,l??void 0,void 0,h,c),this.defaultCondition=d(!0,{transform:i=>{try{return typeof i=="string"?i==="true"||i==="":i}catch{return!0}}}),this.isLocalUIStateOwner=!1;try{this.hostElementRef=e,this.themeService=t,this.dynamicDataService=h,this.loggingService=c,this.cd=o,this.commentService=l??void 0,this.initializeLocalUIState()}catch(i){this.loggingService=this.loggingService||c,this.loggingService?.catch?.("Error in V2PrimitiveThemedBase constructor:",i)}}initializeLocalUIState(){this.localUIStateSignal=S(this.getDefaultLocalUIState()),this.isLocalUIStateOwner=!0}getConditionalClassesContext(){return{componentConfigSignal:this.componentConfigSignal}}ngOnInit(){try{this.connectToServiceSignalIfStandalone(),this.dynamicDataService.applyConditionalClasses(this.hostElementRef?.nativeElement,this.getConditionalClassesContext()),this.setupA11yAttributes(),this.isLocalUIStateOwner&&this.setupDarkModeSync()}catch(e){this.loggingService.catch("Error in V2PrimitiveThemedBase ngOnInit:",e)}}connectToServiceSignalIfStandalone(){try{let e=this.componentConfigSignal();if(!e||!e?.uiState){let t=this.getServiceComponentConfigSignal();t&&(this.componentConfigSignal=t)}}catch(e){this.loggingService.catch("Error connecting to service signal:",e)}}ngOnDestroy(){try{this.darkModeConfigSyncSubscription&&this.darkModeConfigSyncSubscription.unsubscribe(),super.ngOnDestroy()}catch(e){this.loggingService.catch("Error in V2PrimitiveThemedBase ngOnDestroy:",e)}}setupA11yAttributes(){}setupDarkModeSync(){try{this.darkModeConfigSyncSubscription=this.onDarkModeChange().subscribe(e=>{try{if(this.componentConfigSignal&&typeof this.componentConfigSignal=="function"){let t=this.componentConfigSignal();t&&t.uiState&&t.uiState.darkMode!==e&&this.componentConfigSignal.update(o=>g(s({},o),{uiState:g(s({},o.uiState),{darkMode:e})}))}}catch(t){this.loggingService.catch("Error in darkMode sync subscription:",t)}})}catch(e){this.loggingService.catch("Error in V2PrimitiveThemedBase setupDarkModeSync:",e)}}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=f({type:r,selectors:[["app-v2-primitive-themed-base"]],inputs:{defaultCondition:[1,"defaultCondition"],parentLocalUIState:"parentLocalUIState"},standalone:!1,features:[m],decls:0,vars:0,template:function(t,o){},encapsulation:2});let a=r;return a})();export{B as a};