@veltdev/react 6.0.13 → 6.0.14
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/cjs/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListDateGroup/VeltActivityLogListDateGroup.d.ts +4 -0
- package/cjs/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListDateGroup/VeltActivityLogListDateGroupLabel/VeltActivityLogListDateGroupLabel.d.ts +4 -0
- package/cjs/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItem.d.ts +4 -0
- package/cjs/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemAvatar/VeltActivityLogListItemAvatar.d.ts +4 -0
- package/cjs/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemContent/VeltActivityLogListItemContent.d.ts +4 -0
- package/cjs/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemContent/VeltActivityLogListItemContentAction/VeltActivityLogListItemContentAction.d.ts +4 -0
- package/cjs/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemContent/VeltActivityLogListItemContentDetail/VeltActivityLogListItemContentDetail.d.ts +4 -0
- package/cjs/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemContent/VeltActivityLogListItemContentTarget/VeltActivityLogListItemContentTarget.d.ts +4 -0
- package/cjs/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemContent/VeltActivityLogListItemContentUser/VeltActivityLogListItemContentUser.d.ts +4 -0
- package/cjs/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemIcon/VeltActivityLogListItemIcon.d.ts +4 -0
- package/cjs/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemTime/VeltActivityLogListItemTime.d.ts +4 -0
- package/cjs/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListShowMore/VeltActivityLogListShowMore.d.ts +4 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteChip/VeltAutocompleteChip.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteChipTooltip/VeltAutocompleteChipTooltip.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteChipTooltip/VeltAutocompleteChipTooltipDescription/VeltAutocompleteChipTooltipDescription.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteChipTooltip/VeltAutocompleteChipTooltipIcon/VeltAutocompleteChipTooltipIcon.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteChipTooltip/VeltAutocompleteChipTooltipName/VeltAutocompleteChipTooltipName.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteEmpty/VeltAutocompleteEmpty.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteGroupOption/VeltAutocompleteGroupOption.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteOption/VeltAutocompleteOption.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteOption/VeltAutocompleteOptionDescription/VeltAutocompleteOptionDescription.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteOption/VeltAutocompleteOptionErrorIcon/VeltAutocompleteOptionErrorIcon.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteOption/VeltAutocompleteOptionIcon/VeltAutocompleteOptionIcon.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteOption/VeltAutocompleteOptionName/VeltAutocompleteOptionName.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompletePanel/VeltAutocompletePanel.d.ts +2 -0
- package/cjs/components/VeltAutocomplete/VeltAutocompleteTool/VeltAutocompleteTool.d.ts +2 -0
- package/cjs/components/VeltCommentDialog/VeltCommentDialogSuggestion/VeltCommentDialogSuggestionHeader/VeltCommentDialogSuggestionMenu/VeltCommentDialogSuggestionMenuContent/VeltCommentDialogSuggestionMenuContentItem/VeltCommentDialogSuggestionMenuContentItem.d.ts +2 -0
- package/cjs/components/VeltCommentDialog/VeltCommentDialogSuggestion/VeltCommentDialogSuggestionHeader/VeltCommentDialogSuggestionMenu/VeltCommentDialogSuggestionMenuContent/VeltCommentDialogSuggestionMenuContentItem/VeltCommentDialogSuggestionMenuContentItemIcon/VeltCommentDialogSuggestionMenuContentItemIcon.d.ts +2 -0
- package/cjs/components/VeltCommentDialog/VeltCommentDialogSuggestion/VeltCommentDialogSuggestionHeader/VeltCommentDialogSuggestionMenu/VeltCommentDialogSuggestionMenuContent/VeltCommentDialogSuggestionMenuContentItem/VeltCommentDialogSuggestionMenuContentItemLabel/VeltCommentDialogSuggestionMenuContentItemLabel.d.ts +4 -0
- package/cjs/components/VeltCommentsSidebarV2/VeltCommentsSidebarV2.d.ts +1 -1
- package/cjs/components/VeltMultiThreadCommentDialog/VeltMultiThreadCommentDialog.d.ts +2 -0
- package/cjs/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
- package/cjs/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentAll/VeltNotificationsPanelContentAllList/VeltNotificationsPanelContentAllListItem/VeltNotificationsPanelContentAllListItemContent/VeltNotificationsPanelContentAllListItemContent.d.ts +2 -0
- package/cjs/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentAll/VeltNotificationsPanelContentAllList/VeltNotificationsPanelContentAllListItem/VeltNotificationsPanelContentAllListItemLabel/VeltNotificationsPanelContentAllListItemLabel.d.ts +2 -0
- package/cjs/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentPeople/VeltNotificationsPanelContentPeopleList/VeltNotificationsPanelContentPeopleListItem/VeltNotificationsPanelContentPeopleListItem.d.ts +4 -0
- package/cjs/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentPeople/VeltNotificationsPanelContentPeopleList/VeltNotificationsPanelContentPeopleListItem/VeltNotificationsPanelContentPeopleListItemAvatar/VeltNotificationsPanelContentPeopleListItemAvatar.d.ts +4 -0
- package/cjs/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentPeople/VeltNotificationsPanelContentPeopleList/VeltNotificationsPanelContentPeopleListItem/VeltNotificationsPanelContentPeopleListItemContent/VeltNotificationsPanelContentPeopleListItemContent.d.ts +4 -0
- package/cjs/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentPeople/VeltNotificationsPanelContentPeopleList/VeltNotificationsPanelContentPeopleListItem/VeltNotificationsPanelContentPeopleListItemCount/VeltNotificationsPanelContentPeopleListItemCount.d.ts +4 -0
- package/cjs/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentPeople/VeltNotificationsPanelContentPeopleList/VeltNotificationsPanelContentPeopleListItem/VeltNotificationsPanelContentPeopleListItemName/VeltNotificationsPanelContentPeopleListItemName.d.ts +4 -0
- package/cjs/components/__tests__/propsPassthrough.test.d.ts +1 -0
- package/cjs/components/__tests__/selectorProps.test.d.ts +1 -0
- package/cjs/constants.d.ts +1 -1
- package/cjs/hooks/ActivityElement.d.ts +11 -0
- package/cjs/hooks/AutocompleteElement.d.ts +13 -0
- package/cjs/hooks/CommentElement.d.ts +105 -0
- package/cjs/hooks/NotificationElement.d.ts +20 -0
- package/cjs/hooks/configHooks.test.d.ts +1 -0
- package/cjs/hooks/index.d.ts +4 -4
- package/cjs/index.js +1506 -988
- package/cjs/index.js.map +1 -1
- package/cjs/types/primitive-config.types.d.ts +41 -0
- package/cjs/utils/propUtils.d.ts +17 -0
- package/cjs/utils/propUtils.test.d.ts +1 -0
- package/esm/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListDateGroup/VeltActivityLogListDateGroup.d.ts +4 -0
- package/esm/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListDateGroup/VeltActivityLogListDateGroupLabel/VeltActivityLogListDateGroupLabel.d.ts +4 -0
- package/esm/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItem.d.ts +4 -0
- package/esm/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemAvatar/VeltActivityLogListItemAvatar.d.ts +4 -0
- package/esm/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemContent/VeltActivityLogListItemContent.d.ts +4 -0
- package/esm/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemContent/VeltActivityLogListItemContentAction/VeltActivityLogListItemContentAction.d.ts +4 -0
- package/esm/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemContent/VeltActivityLogListItemContentDetail/VeltActivityLogListItemContentDetail.d.ts +4 -0
- package/esm/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemContent/VeltActivityLogListItemContentTarget/VeltActivityLogListItemContentTarget.d.ts +4 -0
- package/esm/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemContent/VeltActivityLogListItemContentUser/VeltActivityLogListItemContentUser.d.ts +4 -0
- package/esm/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemIcon/VeltActivityLogListItemIcon.d.ts +4 -0
- package/esm/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListItem/VeltActivityLogListItemTime/VeltActivityLogListItemTime.d.ts +4 -0
- package/esm/components/VeltActivityLog/VeltActivityLogList/VeltActivityLogListShowMore/VeltActivityLogListShowMore.d.ts +4 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteChip/VeltAutocompleteChip.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteChipTooltip/VeltAutocompleteChipTooltip.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteChipTooltip/VeltAutocompleteChipTooltipDescription/VeltAutocompleteChipTooltipDescription.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteChipTooltip/VeltAutocompleteChipTooltipIcon/VeltAutocompleteChipTooltipIcon.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteChipTooltip/VeltAutocompleteChipTooltipName/VeltAutocompleteChipTooltipName.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteEmpty/VeltAutocompleteEmpty.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteGroupOption/VeltAutocompleteGroupOption.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteOption/VeltAutocompleteOption.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteOption/VeltAutocompleteOptionDescription/VeltAutocompleteOptionDescription.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteOption/VeltAutocompleteOptionErrorIcon/VeltAutocompleteOptionErrorIcon.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteOption/VeltAutocompleteOptionIcon/VeltAutocompleteOptionIcon.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteOption/VeltAutocompleteOptionName/VeltAutocompleteOptionName.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompletePanel/VeltAutocompletePanel.d.ts +2 -0
- package/esm/components/VeltAutocomplete/VeltAutocompleteTool/VeltAutocompleteTool.d.ts +2 -0
- package/esm/components/VeltCommentDialog/VeltCommentDialogSuggestion/VeltCommentDialogSuggestionHeader/VeltCommentDialogSuggestionMenu/VeltCommentDialogSuggestionMenuContent/VeltCommentDialogSuggestionMenuContentItem/VeltCommentDialogSuggestionMenuContentItem.d.ts +2 -0
- package/esm/components/VeltCommentDialog/VeltCommentDialogSuggestion/VeltCommentDialogSuggestionHeader/VeltCommentDialogSuggestionMenu/VeltCommentDialogSuggestionMenuContent/VeltCommentDialogSuggestionMenuContentItem/VeltCommentDialogSuggestionMenuContentItemIcon/VeltCommentDialogSuggestionMenuContentItemIcon.d.ts +2 -0
- package/esm/components/VeltCommentDialog/VeltCommentDialogSuggestion/VeltCommentDialogSuggestionHeader/VeltCommentDialogSuggestionMenu/VeltCommentDialogSuggestionMenuContent/VeltCommentDialogSuggestionMenuContentItem/VeltCommentDialogSuggestionMenuContentItemLabel/VeltCommentDialogSuggestionMenuContentItemLabel.d.ts +4 -0
- package/esm/components/VeltCommentsSidebarV2/VeltCommentsSidebarV2.d.ts +1 -1
- package/esm/components/VeltMultiThreadCommentDialog/VeltMultiThreadCommentDialog.d.ts +2 -0
- package/esm/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
- package/esm/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentAll/VeltNotificationsPanelContentAllList/VeltNotificationsPanelContentAllListItem/VeltNotificationsPanelContentAllListItemContent/VeltNotificationsPanelContentAllListItemContent.d.ts +2 -0
- package/esm/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentAll/VeltNotificationsPanelContentAllList/VeltNotificationsPanelContentAllListItem/VeltNotificationsPanelContentAllListItemLabel/VeltNotificationsPanelContentAllListItemLabel.d.ts +2 -0
- package/esm/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentPeople/VeltNotificationsPanelContentPeopleList/VeltNotificationsPanelContentPeopleListItem/VeltNotificationsPanelContentPeopleListItem.d.ts +4 -0
- package/esm/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentPeople/VeltNotificationsPanelContentPeopleList/VeltNotificationsPanelContentPeopleListItem/VeltNotificationsPanelContentPeopleListItemAvatar/VeltNotificationsPanelContentPeopleListItemAvatar.d.ts +4 -0
- package/esm/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentPeople/VeltNotificationsPanelContentPeopleList/VeltNotificationsPanelContentPeopleListItem/VeltNotificationsPanelContentPeopleListItemContent/VeltNotificationsPanelContentPeopleListItemContent.d.ts +4 -0
- package/esm/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentPeople/VeltNotificationsPanelContentPeopleList/VeltNotificationsPanelContentPeopleListItem/VeltNotificationsPanelContentPeopleListItemCount/VeltNotificationsPanelContentPeopleListItemCount.d.ts +4 -0
- package/esm/components/VeltNotificationsPanel/VeltNotificationsPanelContent/VeltNotificationsPanelContentPeople/VeltNotificationsPanelContentPeopleList/VeltNotificationsPanelContentPeopleListItem/VeltNotificationsPanelContentPeopleListItemName/VeltNotificationsPanelContentPeopleListItemName.d.ts +4 -0
- package/esm/components/__tests__/propsPassthrough.test.d.ts +1 -0
- package/esm/components/__tests__/selectorProps.test.d.ts +1 -0
- package/esm/constants.d.ts +1 -1
- package/esm/hooks/ActivityElement.d.ts +11 -0
- package/esm/hooks/AutocompleteElement.d.ts +13 -0
- package/esm/hooks/CommentElement.d.ts +105 -0
- package/esm/hooks/NotificationElement.d.ts +20 -0
- package/esm/hooks/configHooks.test.d.ts +1 -0
- package/esm/hooks/index.d.ts +4 -4
- package/esm/index.js +1494 -989
- package/esm/index.js.map +1 -1
- package/esm/types/primitive-config.types.d.ts +41 -0
- package/esm/utils/propUtils.d.ts +17 -0
- package/esm/utils/propUtils.test.d.ts +1 -0
- package/index.d.ts +300 -2
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CommentAnnotation, CommentElement, Location, CommentSelectionChangeData, CommentSidebarCustomActionEventData, CommentAddEventData, CommentUpdateEventData, UnreadCommentsCount, CommentContextProvider } from "@veltdev/types";
|
|
2
|
+
import { ComponentConfig, BubbleDataConfig, PinDataConfig, CommentsToolDataConfig, MultiThreadDialogDataConfig, SidebarButtonDataConfig, TextCommentDataConfig, InlineSectionComponentConfig, SidebarComponentConfig } from "../types/primitive-config.types";
|
|
2
3
|
export declare function useCommentUtils(): CommentElement | undefined;
|
|
3
4
|
export declare function useCommentAnnotations(documentId?: string, location?: Location): CommentAnnotation[] | null | undefined;
|
|
4
5
|
export declare function useUnreadCommentCountByAnnotationId(annotationId: string): UnreadCommentsCount;
|
|
@@ -24,6 +25,110 @@ export declare function useCommentAnnotationById(config: {
|
|
|
24
25
|
annotationId: string;
|
|
25
26
|
documentId?: string;
|
|
26
27
|
}): CommentAnnotation | null | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* @experimental Subscribe to a comment dialog's live derived state (`ComponentConfig`) for an
|
|
30
|
+
* annotation — the internal working object powering the dialog (annotation data, appState,
|
|
31
|
+
* featureState, uiState). Read-only; its shape is unstable and may change between releases.
|
|
32
|
+
* Pair with primitive children + Release 2 context so a nested component can pass the annotationId.
|
|
33
|
+
*
|
|
34
|
+
* ```jsx
|
|
35
|
+
* function StatusDot({ annotationId }) {
|
|
36
|
+
* const config = useCommentDialogConfig({ annotationId });
|
|
37
|
+
* return <span style={{ background: config?.data?.annotation?.status?.color }} />;
|
|
38
|
+
* }
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
export declare function useCommentDialogConfig(config: {
|
|
42
|
+
annotationId: string;
|
|
43
|
+
}): ComponentConfig | null | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* @experimental Subscribe to the comment BUBBLE's live derived state (`BubbleDataConfig`) for a
|
|
46
|
+
* context. Read-only; its shape is unstable and may change between releases.
|
|
47
|
+
*
|
|
48
|
+
* ```jsx
|
|
49
|
+
* const config = useCommentBubbleConfig({ contextId: 'default' });
|
|
50
|
+
* ```
|
|
51
|
+
*/
|
|
52
|
+
export declare function useCommentBubbleConfig(config?: {
|
|
53
|
+
contextId?: string;
|
|
54
|
+
}): BubbleDataConfig | null | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* @experimental Subscribe to the comment PIN's live derived state (`PinDataConfig`) for a context.
|
|
57
|
+
* Read-only; its shape is unstable and may change between releases.
|
|
58
|
+
*
|
|
59
|
+
* ```jsx
|
|
60
|
+
* const config = useCommentPinConfig({ contextId: 'default' });
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
export declare function useCommentPinConfig(config?: {
|
|
64
|
+
contextId?: string;
|
|
65
|
+
}): PinDataConfig | null | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* @experimental Subscribe to the comments TOOL's live derived state (`CommentsToolDataConfig`) for a
|
|
68
|
+
* context. Read-only; its shape is unstable and may change between releases.
|
|
69
|
+
*
|
|
70
|
+
* ```jsx
|
|
71
|
+
* const config = useCommentsToolConfig({ contextId: 'default' });
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
export declare function useCommentsToolConfig(config?: {
|
|
75
|
+
contextId?: string;
|
|
76
|
+
}): CommentsToolDataConfig | null | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* @experimental Subscribe to the MULTI-THREAD dialog's live derived state
|
|
79
|
+
* (`MultiThreadDialogDataConfig`). Read-only; its shape is unstable and may change between releases.
|
|
80
|
+
*
|
|
81
|
+
* ```jsx
|
|
82
|
+
* const config = useMultiThreadDialogConfig();
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
export declare function useMultiThreadDialogConfig(config?: {
|
|
86
|
+
contextId?: string;
|
|
87
|
+
}): MultiThreadDialogDataConfig | null | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* @experimental Subscribe to the SIDEBAR BUTTON's live derived state (`SidebarButtonDataConfig`) for
|
|
90
|
+
* a context. Read-only; its shape is unstable and may change between releases.
|
|
91
|
+
*
|
|
92
|
+
* ```jsx
|
|
93
|
+
* const config = useSidebarButtonConfig({ contextId: 'default' });
|
|
94
|
+
* ```
|
|
95
|
+
*/
|
|
96
|
+
export declare function useSidebarButtonConfig(config?: {
|
|
97
|
+
contextId?: string;
|
|
98
|
+
}): SidebarButtonDataConfig | null | undefined;
|
|
99
|
+
/**
|
|
100
|
+
* @experimental Subscribe to the TEXT COMMENT surface's live derived state (`TextCommentDataConfig`)
|
|
101
|
+
* for a context. Read-only; its shape is unstable and may change between releases.
|
|
102
|
+
*
|
|
103
|
+
* ```jsx
|
|
104
|
+
* const config = useTextCommentConfig({ contextId: 'default' });
|
|
105
|
+
* ```
|
|
106
|
+
*/
|
|
107
|
+
export declare function useTextCommentConfig(config?: {
|
|
108
|
+
contextId?: string;
|
|
109
|
+
}): TextCommentDataConfig | null | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* @experimental Subscribe to an INLINE COMMENTS SECTION's live derived state
|
|
112
|
+
* (`InlineSectionComponentConfig`). Pass the `targetElementId` of the section you want; omit it to
|
|
113
|
+
* follow the mounted section. Read-only; its shape is unstable and may change between releases.
|
|
114
|
+
*
|
|
115
|
+
* ```jsx
|
|
116
|
+
* const config = useInlineCommentsSectionConfig({ targetElementId: 'doc-1' });
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
export declare function useInlineCommentsSectionConfig(config?: {
|
|
120
|
+
targetElementId?: string;
|
|
121
|
+
}): InlineSectionComponentConfig | null | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* @experimental Subscribe to the comment SIDEBAR's live derived state (`SidebarComponentConfig`) —
|
|
124
|
+
* filters, groups, the rendered annotation list and its UI state. Read-only; its shape is unstable
|
|
125
|
+
* and may change between releases.
|
|
126
|
+
*
|
|
127
|
+
* ```jsx
|
|
128
|
+
* const config = useCommentSidebarConfig();
|
|
129
|
+
* ```
|
|
130
|
+
*/
|
|
131
|
+
export declare function useCommentSidebarConfig(): SidebarComponentConfig | null | undefined;
|
|
27
132
|
export declare function useCommentSidebarActionButtonClick(): CommentSidebarCustomActionEventData | null;
|
|
28
133
|
export declare function useCommentSidebarInit(): CommentSidebarCustomActionEventData | null;
|
|
29
134
|
export declare function useCommentSidebarData(): CommentSidebarCustomActionEventData | null;
|
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
import { GetNotificationsDataQuery, Notification, NotificationElement, NotificationInitialSettingsConfig, NotificationSettingsConfig } from "@veltdev/types";
|
|
2
|
+
import { NotificationsPanelComponentConfig, NotificationsToolDataConfig } from "../types/primitive-config.types";
|
|
2
3
|
export declare function useNotificationUtils(): NotificationElement | undefined;
|
|
4
|
+
/**
|
|
5
|
+
* @experimental Subscribe to the notifications PANEL's live derived state
|
|
6
|
+
* (`NotificationsPanelComponentConfig`) — the active tab, its rows and the panel's UI state.
|
|
7
|
+
* Read-only; its shape is unstable and may change between releases.
|
|
8
|
+
*
|
|
9
|
+
* ```jsx
|
|
10
|
+
* const config = useNotificationsPanelConfig();
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare function useNotificationsPanelConfig(): NotificationsPanelComponentConfig | null | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* @experimental Subscribe to the notifications TOOL's live derived state
|
|
16
|
+
* (`NotificationsToolDataConfig`). Read-only; its shape is unstable and may change between releases.
|
|
17
|
+
*
|
|
18
|
+
* ```jsx
|
|
19
|
+
* const config = useNotificationsToolConfig();
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
export declare function useNotificationsToolConfig(): NotificationsToolDataConfig | null | undefined;
|
|
3
23
|
export declare function useNotificationsData(query?: GetNotificationsDataQuery): Notification[] | null;
|
|
4
24
|
export declare function useUnreadNotificationsCount(): {
|
|
5
25
|
forYou: number | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/esm/hooks/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { useSetLocation, useSetDocument, useSetDocumentId, useSetDocuments, useSetRootDocument, useSetPageInfo, useClearPageInfo, useSetLocations, useSetRootLocation, useUnsetDocumentId, useUnsetDocuments, useIdentify, useClient, useVeltInitState, useUiState, useHeartbeat, useCurrentUser, useCurrentUserPermissions, } from './Client';
|
|
2
|
-
export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, useCommentSelectionChangeHandler, useUnreadCommentCountByAnnotationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountOnCurrentDocument, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentCountByLocationId, useCommentCopyLinkHandler, useCommentAnnotationById, useCommentSidebarActionButtonClick, useCommentSidebarInit, useCommentSidebarData, useSetContextProvider, } from './CommentElement';
|
|
2
|
+
export { useCommentUtils, useCommentAnnotations, useCommentAddHandler, useCommentModeState, useCommentUpdateHandler, useCommentDialogSidebarClickHandler, useCommentSelectionChangeHandler, useUnreadCommentCountByAnnotationId, useUnreadCommentAnnotationCountOnCurrentDocument, useUnreadCommentCountOnCurrentDocument, useUnreadCommentAnnotationCountByLocationId, useUnreadCommentCountByLocationId, useCommentCopyLinkHandler, useCommentAnnotationById, useCommentDialogConfig, useCommentBubbleConfig, useCommentPinConfig, useCommentsToolConfig, useMultiThreadDialogConfig, useSidebarButtonConfig, useTextCommentConfig, useInlineCommentsSectionConfig, useCommentSidebarConfig, useCommentSidebarActionButtonClick, useCommentSidebarInit, useCommentSidebarData, useSetContextProvider, } from './CommentElement';
|
|
3
3
|
export { useAddAttachment, useDeleteAttachment, useGetAttachment, useDeleteRecording, useGetRecording, useAddReaction, useDeleteReaction, useToggleReaction, useAddComment, useUpdateComment, useDeleteComment, useAddCommentAnnotation, useDeleteCommentAnnotation, useApproveCommentAnnotation, useSubscribeCommentAnnotation, useUnsubscribeCommentAnnotation, useAssignUser, useCopyLink, useGetComment, useGetLink, useRejectCommentAnnotation, useAcceptSuggestion, useRejectSuggestion, useResolveCommentAnnotation, useUpdateAccess, useUpdatePriority, useUpdateStatus, useCommentActionCallback, useCommentEventCallback, useGetCommentAnnotations, useCommentAnnotationsCount, } from './CommentActions';
|
|
4
4
|
export { useVeltEventCallback } from './CoreActions';
|
|
5
5
|
export { useCursorUtils, useCursorUsers, } from './CursorElement';
|
|
@@ -14,12 +14,12 @@ export { useAIRewriterUtils, } from './RewriterElement';
|
|
|
14
14
|
export { useLiveSelectionUtils, useLiveSelectionDataHandler, } from './SelectionElement';
|
|
15
15
|
export { useTagUtils, useTagAnnotations, } from './TagElement';
|
|
16
16
|
export { useViewsUtils, useUniqueViewsByDate, useUniqueViewsByUser, } from './ViewsElement';
|
|
17
|
-
export { useNotificationUtils, useNotificationsData, useUnreadNotificationsCount, useNotificationSettings, } from './NotificationElement';
|
|
17
|
+
export { useNotificationUtils, useNotificationsData, useUnreadNotificationsCount, useNotificationSettings, useNotificationsPanelConfig, useNotificationsToolConfig, } from './NotificationElement';
|
|
18
18
|
export { useNotificationEventCallback, } from './NotificationsActions';
|
|
19
|
-
export { useAutocompleteUtils, useAutocompleteChipClick, } from './AutocompleteElement';
|
|
19
|
+
export { useAutocompleteUtils, useAutocompleteChipClick, useAutocompleteConfig, } from './AutocompleteElement';
|
|
20
20
|
export { useContactUtils, useContactSelected, useContactList, } from './ContactElement';
|
|
21
21
|
export { useCrdtUtils, } from './CrdtElement';
|
|
22
22
|
export { useCrdtEventCallback, } from './CrdtActions';
|
|
23
|
-
export { useActivityUtils, useAllActivities, } from './ActivityElement';
|
|
23
|
+
export { useActivityUtils, useAllActivities, useActivityLogConfig, } from './ActivityElement';
|
|
24
24
|
export { useSuggestionUtils, useSuggestionModeState, useSuggestions, usePendingSuggestion, } from './SuggestionElement';
|
|
25
25
|
export { useEnableSuggestionMode, useDisableSuggestionMode, useRegisterTarget, useUnregisterTarget, useStartSuggestion, useCommitSuggestion, useSuggestionEventCallback, } from './SuggestionActions';
|