@veltdev/react 4.0.0-beta.2 → 4.0.0-beta.3
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/index.js +23 -5
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/VeltCommentsSidebarFilterStatus.d.ts +12 -0
- package/cjs/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/index.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/cjs/types/hooks/CommentActions.d.ts +2 -2
- package/esm/index.js +23 -5
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilter.d.ts +2 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/VeltCommentsSidebarFilterStatus.d.ts +12 -0
- package/esm/types/components/VeltCommentsSidebarWireframe/VeltCommentsSidebarFilter/VeltCommentsSidebarFilterStatus/index.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/esm/types/hooks/CommentActions.d.ts +2 -2
- package/index.d.ts +11 -2
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ import { IVeltCommentsSidebarFilterPriority } from './VeltCommentsSidebarFilterP
|
|
|
10
10
|
import { IVeltCommentsSidebarFilterTitleProps } from './VeltCommentsSidebarFilterTitle/VeltCommentsSidebarFilterTitle';
|
|
11
11
|
import { IVeltCommentsSidebarFilterVersions } from './VeltCommentsSidebarFilterVersions/VeltCommentsSidebarFilterVersions';
|
|
12
12
|
import { IVeltCommentsSidebarFilterItem } from './VeltCommentsSidebarFilterItem/VeltCommentsSidebarFilterItem';
|
|
13
|
+
import { IVeltCommentsSidebarFilterStatus } from './VeltCommentsSidebarFilterStatus/VeltCommentsSidebarFilterStatus';
|
|
13
14
|
export interface IVeltCommentsSidebarFilterProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
14
15
|
variant?: string;
|
|
15
16
|
}
|
|
@@ -25,6 +26,7 @@ export interface IVeltCommentsSidebarFilter extends React.FC<IVeltCommentsSideba
|
|
|
25
26
|
GroupBy: IVeltCommentsSidebarFilterGroupBy;
|
|
26
27
|
DoneButton: React.FC<IVeltCommentsSidebarFilterDoneButtonProps>;
|
|
27
28
|
Item: IVeltCommentsSidebarFilterItem;
|
|
29
|
+
Status: IVeltCommentsSidebarFilterStatus;
|
|
28
30
|
}
|
|
29
31
|
declare const VeltCommentsSidebarFilter: IVeltCommentsSidebarFilter;
|
|
30
32
|
export default VeltCommentsSidebarFilter;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IVeltCommentsSidebarFilterItem } from '../VeltCommentsSidebarFilterItem/VeltCommentsSidebarFilterItem';
|
|
3
|
+
import { IVeltCommentsSidebarFilterNameProps } from '../VeltCommentsSidebarFilterName/VeltCommentsSidebarFilterName';
|
|
4
|
+
export interface IVeltCommentsSidebarFilterStatusProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
5
|
+
variant?: string;
|
|
6
|
+
}
|
|
7
|
+
export interface IVeltCommentsSidebarFilterStatus extends React.FC<IVeltCommentsSidebarFilterStatusProps> {
|
|
8
|
+
Name: React.FC<IVeltCommentsSidebarFilterNameProps>;
|
|
9
|
+
Item: IVeltCommentsSidebarFilterItem;
|
|
10
|
+
}
|
|
11
|
+
declare const VeltCommentsSidebarFilterStatus: IVeltCommentsSidebarFilterStatus;
|
|
12
|
+
export default VeltCommentsSidebarFilterStatus;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from "./VeltCommentsSidebarFilterStatus";
|
package/cjs/types/constants.d.ts
CHANGED
|
@@ -17,8 +17,8 @@ export declare function useUnsubscribeCommentAnnotation(): {
|
|
|
17
17
|
export declare function useDeleteCommentAnnotation(): {
|
|
18
18
|
deleteCommentAnnotation: (config: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
|
|
19
19
|
};
|
|
20
|
-
export declare function useGetCommentAnnotations(getCommentAnnotationsRequest
|
|
21
|
-
export declare function useCommentAnnotationsCount(getCommentAnnotationsCountRequest
|
|
20
|
+
export declare function useGetCommentAnnotations(getCommentAnnotationsRequest?: GetCommentAnnotationsRequest): GetCommentAnnotationsResponse;
|
|
21
|
+
export declare function useCommentAnnotationsCount(getCommentAnnotationsCountRequest?: GetCommentAnnotationsCountRequest): GetCommentAnnotationsCountResponse;
|
|
22
22
|
export declare function useAssignUser(): {
|
|
23
23
|
assignUser: (config: AssignUserRequest) => Promise<AssignUserEvent | null>;
|
|
24
24
|
};
|
package/esm/index.js
CHANGED
|
@@ -132,7 +132,7 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain) {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
var VELT_SDK_VERSION = '4.0.0-beta.
|
|
135
|
+
var VELT_SDK_VERSION = '4.0.0-beta.3';
|
|
136
136
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
137
137
|
var VELT_TAB_ID = 'veltTabId';
|
|
138
138
|
|
|
@@ -2386,6 +2386,13 @@ var VeltCommentsSidebarFilterVersions = function (props) {
|
|
|
2386
2386
|
VeltCommentsSidebarFilterVersions.Name = VeltCommentsSidebarFilterName;
|
|
2387
2387
|
VeltCommentsSidebarFilterVersions.Item = VeltCommentsSidebarFilterItem;
|
|
2388
2388
|
|
|
2389
|
+
var VeltCommentsSidebarFilterStatus = function (props) {
|
|
2390
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2391
|
+
return (React.createElement("velt-comments-sidebar-filter-status-wireframe", __assign({}, remainingProps), children));
|
|
2392
|
+
};
|
|
2393
|
+
VeltCommentsSidebarFilterStatus.Name = VeltCommentsSidebarFilterName;
|
|
2394
|
+
VeltCommentsSidebarFilterStatus.Item = VeltCommentsSidebarFilterItem;
|
|
2395
|
+
|
|
2389
2396
|
var VeltCommentsSidebarFilter = function (props) {
|
|
2390
2397
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2391
2398
|
return (React.createElement("velt-comments-sidebar-filter-wireframe", __assign({}, remainingProps), children));
|
|
@@ -2401,6 +2408,7 @@ VeltCommentsSidebarFilter.Priority = VeltCommentsSidebarFilterPriority;
|
|
|
2401
2408
|
VeltCommentsSidebarFilter.Title = VeltCommentsSidebarFilterTitle;
|
|
2402
2409
|
VeltCommentsSidebarFilter.Versions = VeltCommentsSidebarFilterVersions;
|
|
2403
2410
|
VeltCommentsSidebarFilter.Item = VeltCommentsSidebarFilterItem;
|
|
2411
|
+
VeltCommentsSidebarFilter.Status = VeltCommentsSidebarFilterStatus;
|
|
2404
2412
|
|
|
2405
2413
|
var VeltCommentsSidebarFilterButton = function (props) {
|
|
2406
2414
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
@@ -4830,7 +4838,7 @@ function useDeleteCommentAnnotation() {
|
|
|
4830
4838
|
}
|
|
4831
4839
|
function useGetCommentAnnotations(getCommentAnnotationsRequest) {
|
|
4832
4840
|
var commentElement = useCommentUtils();
|
|
4833
|
-
var _a = useState(null), data = _a[0], setData = _a[1];
|
|
4841
|
+
var _a = useState({ data: null }), data = _a[0], setData = _a[1];
|
|
4834
4842
|
var subscriptionRef = useRef();
|
|
4835
4843
|
// Memoize the inputs
|
|
4836
4844
|
var memoizedData = useMemo(function () {
|
|
@@ -4845,7 +4853,12 @@ function useGetCommentAnnotations(getCommentAnnotationsRequest) {
|
|
|
4845
4853
|
}
|
|
4846
4854
|
var subscription = commentElement.getCommentAnnotations(memoizedData)
|
|
4847
4855
|
.subscribe(function (res) {
|
|
4848
|
-
|
|
4856
|
+
if (res) {
|
|
4857
|
+
setData(res);
|
|
4858
|
+
}
|
|
4859
|
+
else {
|
|
4860
|
+
setData({ data: null });
|
|
4861
|
+
}
|
|
4849
4862
|
});
|
|
4850
4863
|
// Store the new subscription
|
|
4851
4864
|
subscriptionRef.current = subscription;
|
|
@@ -4860,7 +4873,7 @@ function useGetCommentAnnotations(getCommentAnnotationsRequest) {
|
|
|
4860
4873
|
}
|
|
4861
4874
|
function useCommentAnnotationsCount(getCommentAnnotationsCountRequest) {
|
|
4862
4875
|
var commentElement = useCommentUtils();
|
|
4863
|
-
var _a = useState(null), data = _a[0], setData = _a[1];
|
|
4876
|
+
var _a = useState({ data: null }), data = _a[0], setData = _a[1];
|
|
4864
4877
|
var subscriptionRef = useRef();
|
|
4865
4878
|
// Memoize the inputs
|
|
4866
4879
|
var memoizedData = useMemo(function () {
|
|
@@ -4875,7 +4888,12 @@ function useCommentAnnotationsCount(getCommentAnnotationsCountRequest) {
|
|
|
4875
4888
|
}
|
|
4876
4889
|
var subscription = commentElement.getCommentAnnotationsCount(memoizedData)
|
|
4877
4890
|
.subscribe(function (res) {
|
|
4878
|
-
|
|
4891
|
+
if (res) {
|
|
4892
|
+
setData(res);
|
|
4893
|
+
}
|
|
4894
|
+
else {
|
|
4895
|
+
setData({ data: null });
|
|
4896
|
+
}
|
|
4879
4897
|
});
|
|
4880
4898
|
// Store the new subscription
|
|
4881
4899
|
subscriptionRef.current = subscription;
|