@veltdev/react 5.0.2-beta.34 → 5.0.2-beta.36

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.
@@ -1,4 +1,4 @@
1
- import { NotificationPanelMode, NotificationSettingsLayout } from '@veltdev/types';
1
+ import { CrossOrganizationConfig, NotificationPanelMode, NotificationSettingsLayout } from '@veltdev/types';
2
2
  import React from 'react';
3
3
  export declare class NotificationTabConfigItem {
4
4
  name?: string;
@@ -10,18 +10,6 @@ export declare class NotificationTabConfig {
10
10
  all?: NotificationTabConfigItem;
11
11
  people?: NotificationTabConfigItem;
12
12
  }
13
- export interface CrossOrganizationConfig {
14
- /** Whether cross-organization notifications are active. Defaults to `true` on enable. */
15
- enabled?: boolean;
16
- /** Allowlist of organization IDs to include. When omitted, all indexed orgs are eligible. */
17
- organizationIds?: string[];
18
- /** Organization IDs to exclude. The current organization is always excluded. */
19
- excludeOrganizationIds?: string[];
20
- /** Upper bound on the number of organizations fetched. Defaults to 20. */
21
- maxOrganizations?: number;
22
- /** Feeds the merge applies to. Only `'forYou'` is supported; `'all'` is ignored with a warning. */
23
- feeds?: ('forYou' | 'all')[];
24
- }
25
13
  export interface IVeltNotificationsPanelProps {
26
14
  darkMode?: boolean;
27
15
  onNotificationClick?: Function;
@@ -1,5 +1,5 @@
1
+ import { CrossOrganizationConfig, NotificationSettingsLayout } from '@veltdev/types';
1
2
  import React from 'react';
2
- import { NotificationSettingsLayout } from '@veltdev/types';
3
3
  export declare class NotificationTabConfigItem {
4
4
  name?: string;
5
5
  enable?: boolean;
@@ -10,18 +10,6 @@ export declare class NotificationTabConfig {
10
10
  all?: NotificationTabConfigItem;
11
11
  people?: NotificationTabConfigItem;
12
12
  }
13
- export interface CrossOrganizationConfig {
14
- /** Whether cross-organization notifications are active. Defaults to `true` on enable. */
15
- enabled?: boolean;
16
- /** Allowlist of organization IDs to include. When omitted, all indexed orgs are eligible. */
17
- organizationIds?: string[];
18
- /** Organization IDs to exclude. The current organization is always excluded. */
19
- excludeOrganizationIds?: string[];
20
- /** Upper bound on the number of organizations fetched. Defaults to 20. */
21
- maxOrganizations?: number;
22
- /** Feeds the merge applies to. Only `'forYou'` is supported; `'all'` is ignored with a warning. */
23
- feeds?: ('forYou' | 'all')[];
24
- }
25
13
  export interface IVeltNotificationsToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
26
14
  darkMode?: boolean;
27
15
  onNotificationClick?: Function;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const VELT_SDK_VERSION = "5.0.2-beta.34";
2
+ export declare const VELT_SDK_VERSION = "5.0.2-beta.36";
3
3
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
4
4
  export declare const VELT_TAB_ID = "veltTabId";
5
5
  export declare const INTEGRITY_MAP: Record<string, string>;
package/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import React$1 from 'react';
3
- import { Config, UserDataProvider, VeltDataProvider, VeltEncryptionProvider, VeltAuthProvider, VeltPermissionProvider, Velt, ContextOptions, ReactionMap, CustomAnnotationDropdownData, AutocompleteData, AutoCompleteScrollConfig, AssignToType, CommentSidebarFilterConfig as CommentSidebarFilterConfig$2, CommentSidebarGroupConfig as CommentSidebarGroupConfig$2, CommentSidebarFilters as CommentSidebarFilters$2, SidebarFilterCriteria, SortOrder, SortBy, RecorderLayoutMode, RecordedData, RecorderMode, CommentAnnotation, NotificationSettingsLayout, NotificationPanelMode, AutocompleteItem, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, PageInfo, Location as Location$1, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse, CommentElement, UnreadCommentsCount, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, CommentContextProvider, AddCommentAnnotationRequest, AddCommentAnnotationEvent, ApproveCommentAnnotationRequest, ApproveCommentAnnotationEvent, RejectCommentAnnotationRequest, RejectCommentAnnotationEvent, SubscribeCommentAnnotationRequest, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentAnnotationEvent, CommentRequestQuery, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, AssignUserRequest, AssignUserEvent, UpdatePriorityRequest, UpdatePriorityEvent, UpdateStatusRequest, UpdateStatusEvent, UpdateAccessRequest, UpdateAccessEvent, ResolveCommentAnnotationRequest, GetLinkRequest, GetLinkResponse, CopyLinkRequest, CopyLinkEvent, AddCommentRequest, AddCommentEvent, UpdateCommentRequest, UpdateCommentEvent, DeleteCommentRequest, DeleteCommentEvent, GetCommentRequest, AddAttachmentRequest, AddAttachmentResponse, DeleteAttachmentRequest, DeleteAttachmentEvent, GetAttachmentRequest, Attachment, DeleteRecordingRequest, DeleteRecordingEvent, GetRecordingRequest, AddReactionRequest, AddReactionEvent, DeleteReactionRequest, DeleteReactionEvent, ToggleReactionRequest, ToggleReactionEvent, CommentEventTypesMap, CoreEventTypesMap, CursorElement, CursorUser, LiveStateSyncElement, SetLiveStateDataConfig, UserEditorAccess, EditorAccessTimer, ServerConnectionState, LiveStateEventTypesMap, PresenceElement, PresenceUser, PresenceRequestQuery, GetPresenceDataResponse, PresenceEventTypesMap, RecorderElement, RecorderRequestQuery, GetRecordingsResponse, RecorderEventTypesMap, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, GetNotificationsDataQuery, Notification, NotificationSettingsConfig, NotificationInitialSettingsConfig, NotificationEventTypesMap, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact, GetContactListResponse, CrdtElement, CrdtEventTypesMap, ActivityElement, ActivitySubscribeConfig, ActivityRecord, SuggestionElement, SuggestionGetSuggestionsFilter, Suggestion, EnableSuggestionModeConfig, RegisterTargetConfig, CommitSuggestionConfig, SuggestionEventTypesMap } from '@veltdev/types';
3
+ import { Config, UserDataProvider, VeltDataProvider, VeltEncryptionProvider, VeltAuthProvider, VeltPermissionProvider, Velt, ContextOptions, ReactionMap, CustomAnnotationDropdownData, AutocompleteData, AutoCompleteScrollConfig, AssignToType, CommentSidebarFilterConfig as CommentSidebarFilterConfig$2, CommentSidebarGroupConfig as CommentSidebarGroupConfig$2, CommentSidebarFilters as CommentSidebarFilters$2, SidebarFilterCriteria, SortOrder, SortBy, RecorderLayoutMode, RecordedData, RecorderMode, CommentAnnotation, NotificationSettingsLayout, CrossOrganizationConfig, NotificationPanelMode, AutocompleteItem, User, Options, DocumentMetadata, Document, SetDocumentsRequestOptions, PageInfo, Location as Location$1, SetLocationsRequestOptions, HeartbeatConfig, GetHeartbeatResponse, GetUserPermissionsResponse, CommentElement, UnreadCommentsCount, CommentAddEventData, CommentUpdateEventData, CommentSelectionChangeData, CommentSidebarCustomActionEventData, CommentContextProvider, AddCommentAnnotationRequest, AddCommentAnnotationEvent, ApproveCommentAnnotationRequest, ApproveCommentAnnotationEvent, RejectCommentAnnotationRequest, RejectCommentAnnotationEvent, SubscribeCommentAnnotationRequest, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationEvent, DeleteCommentAnnotationRequest, DeleteCommentAnnotationEvent, CommentRequestQuery, GetCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, AssignUserRequest, AssignUserEvent, UpdatePriorityRequest, UpdatePriorityEvent, UpdateStatusRequest, UpdateStatusEvent, UpdateAccessRequest, UpdateAccessEvent, ResolveCommentAnnotationRequest, GetLinkRequest, GetLinkResponse, CopyLinkRequest, CopyLinkEvent, AddCommentRequest, AddCommentEvent, UpdateCommentRequest, UpdateCommentEvent, DeleteCommentRequest, DeleteCommentEvent, GetCommentRequest, AddAttachmentRequest, AddAttachmentResponse, DeleteAttachmentRequest, DeleteAttachmentEvent, GetAttachmentRequest, Attachment, DeleteRecordingRequest, DeleteRecordingEvent, GetRecordingRequest, AddReactionRequest, AddReactionEvent, DeleteReactionRequest, DeleteReactionEvent, ToggleReactionRequest, ToggleReactionEvent, CommentEventTypesMap, CoreEventTypesMap, CursorElement, CursorUser, LiveStateSyncElement, SetLiveStateDataConfig, UserEditorAccess, EditorAccessTimer, ServerConnectionState, LiveStateEventTypesMap, PresenceElement, PresenceUser, PresenceRequestQuery, GetPresenceDataResponse, PresenceEventTypesMap, RecorderElement, RecorderRequestQuery, GetRecordingsResponse, RecorderEventTypesMap, RewriterElement, SelectionElement, LiveSelectionData, TagElement, TagAnnotation, ViewsElement, ViewsByUser, ViewsByDate, NotificationElement, GetNotificationsDataQuery, Notification, NotificationSettingsConfig, NotificationInitialSettingsConfig, NotificationEventTypesMap, AutocompleteElement, AutocompleteChipData, ContactElement, SelectedUserContact, GetContactListResponse, CrdtElement, CrdtEventTypesMap, ActivityElement, ActivitySubscribeConfig, ActivityRecord, SuggestionElement, SuggestionGetSuggestionsFilter, Suggestion, EnableSuggestionModeConfig, RegisterTargetConfig, CommitSuggestionConfig, SuggestionEventTypesMap } from '@veltdev/types';
4
4
 
5
5
  interface IVeltProps extends React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement> {
6
6
  apiKey: string;
@@ -623,18 +623,6 @@ declare class NotificationTabConfig$1 {
623
623
  all?: NotificationTabConfigItem$1;
624
624
  people?: NotificationTabConfigItem$1;
625
625
  }
626
- interface CrossOrganizationConfig$1 {
627
- /** Whether cross-organization notifications are active. Defaults to `true` on enable. */
628
- enabled?: boolean;
629
- /** Allowlist of organization IDs to include. When omitted, all indexed orgs are eligible. */
630
- organizationIds?: string[];
631
- /** Organization IDs to exclude. The current organization is always excluded. */
632
- excludeOrganizationIds?: string[];
633
- /** Upper bound on the number of organizations fetched. Defaults to 20. */
634
- maxOrganizations?: number;
635
- /** Feeds the merge applies to. Only `'forYou'` is supported; `'all'` is ignored with a warning. */
636
- feeds?: ('forYou' | 'all')[];
637
- }
638
626
  interface IVeltNotificationsToolProps extends React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLElement>, HTMLElement> {
639
627
  darkMode?: boolean;
640
628
  onNotificationClick?: Function;
@@ -653,7 +641,7 @@ interface IVeltNotificationsToolProps extends React$1.DetailedHTMLProps<React$1.
653
641
  settingsLayout?: NotificationSettingsLayout;
654
642
  enableSettingsAtOrganizationLevel?: boolean;
655
643
  defaultCondition?: boolean;
656
- enableCrossOrganization?: boolean | string | CrossOrganizationConfig$1;
644
+ enableCrossOrganization?: boolean | string | CrossOrganizationConfig;
657
645
  }
658
646
  declare const VeltNotificationsTool: React$1.FC<IVeltNotificationsToolProps>;
659
647
 
@@ -687,18 +675,6 @@ declare class NotificationTabConfig {
687
675
  all?: NotificationTabConfigItem;
688
676
  people?: NotificationTabConfigItem;
689
677
  }
690
- interface CrossOrganizationConfig {
691
- /** Whether cross-organization notifications are active. Defaults to `true` on enable. */
692
- enabled?: boolean;
693
- /** Allowlist of organization IDs to include. When omitted, all indexed orgs are eligible. */
694
- organizationIds?: string[];
695
- /** Organization IDs to exclude. The current organization is always excluded. */
696
- excludeOrganizationIds?: string[];
697
- /** Upper bound on the number of organizations fetched. Defaults to 20. */
698
- maxOrganizations?: number;
699
- /** Feeds the merge applies to. Only `'forYou'` is supported; `'all'` is ignored with a warning. */
700
- feeds?: ('forYou' | 'all')[];
701
- }
702
678
  interface IVeltNotificationsPanelProps {
703
679
  darkMode?: boolean;
704
680
  onNotificationClick?: Function;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/react",
3
- "version": "5.0.2-beta.34",
3
+ "version": "5.0.2-beta.36",
4
4
  "description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
5
5
  "homepage": "https://velt.dev",
6
6
  "keywords": [