@veltdev/react 4.7.7 → 4.7.9
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 +24 -10
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +1 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +4 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardAssignButton/VeltCommentDialogThreadCardAssignButton.d.ts +6 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardAssignButton/index.d.ts +1 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/VeltCommentDialogThreadCardEditComposer.d.ts +8 -0
- package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/index.d.ts +1 -0
- package/cjs/types/components/VeltData/VeltData.d.ts +2 -0
- package/cjs/types/components/VeltIf/VeltIf.d.ts +2 -0
- package/cjs/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/esm/index.js +24 -10
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +1 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +4 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardAssignButton/VeltCommentDialogThreadCardAssignButton.d.ts +6 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardAssignButton/index.d.ts +1 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/VeltCommentDialogThreadCardEditComposer.d.ts +8 -0
- package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/index.d.ts +1 -0
- package/esm/types/components/VeltData/VeltData.d.ts +2 -0
- package/esm/types/components/VeltIf/VeltIf.d.ts +2 -0
- package/esm/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/index.d.ts +16 -0
- package/package.json +2 -2
|
@@ -12,6 +12,7 @@ export interface IVeltCommentComposerProps extends React.DetailedHTMLProps<React
|
|
|
12
12
|
folderId?: string;
|
|
13
13
|
targetComposerElementId?: string;
|
|
14
14
|
placeholder?: string;
|
|
15
|
+
readOnly?: boolean;
|
|
15
16
|
}
|
|
16
17
|
declare const VeltCommentComposer: React.FC<IVeltCommentComposerProps>;
|
|
17
18
|
export default VeltCommentComposer;
|
|
@@ -8,6 +8,7 @@ import { IVeltCommentDialogThreadCardNameProps } from "./VeltCommentDialogThread
|
|
|
8
8
|
import { IVeltCommentDialogThreadCardOptions } from "./VeltCommentDialogThreadCardOptions/VeltCommentDialogThreadCardOptions";
|
|
9
9
|
import { IVeltCommentDialogThreadCardReactionToolProps } from "./VeltCommentDialogThreadCardReactionTool/VeltCommentDialogThreadCardReactionTool";
|
|
10
10
|
import { IVeltCommentDialogThreadCardReactionPinProps } from "./VeltCommentDialogThreadCardReactionPin/VeltCommentDialogThreadCardReactionPin";
|
|
11
|
+
import { IVeltCommentDialogThreadCardAssignButtonProps } from "./VeltCommentDialogThreadCardAssignButton/VeltCommentDialogThreadCardAssignButton";
|
|
11
12
|
import { IVeltCommentDialogThreadCardReactionsProps } from "./VeltCommentDialogThreadCardReactions/VeltCommentDialogThreadCardReactions";
|
|
12
13
|
import { IVeltCommentDialogThreadCardRecordingsProps } from "./VeltCommentDialogThreadCardRecordings/VeltCommentDialogThreadCardRecordings";
|
|
13
14
|
import { IVeltCommentDialogThreadCardTimeProps } from "./VeltCommentDialogThreadCardTime/VeltCommentDialogThreadCardTime";
|
|
@@ -16,6 +17,7 @@ import { IVeltCommentDialogThreadCardSeenDropdown } from "./VeltCommentDialogThr
|
|
|
16
17
|
import { IVeltCommentDialogThreadCardEdited } from "./VeltCommentDialogThreadCardEdited/VeltCommentDialogThreadCardEdited";
|
|
17
18
|
import { IVeltWireframeCommonProps } from "../../../constants";
|
|
18
19
|
import { IVeltCommentDialogThreadCardReply } from "./VeltCommentDialogThreadCardReply/VeltCommentDialogThreadCardReply";
|
|
20
|
+
import { IVeltCommentDialogThreadCardEditComposer } from "./VeltCommentDialogThreadCardEditComposer/VeltCommentDialogThreadCardEditComposer";
|
|
19
21
|
export interface IVeltCommentDialogThreadCardProps extends IVeltWireframeCommonProps {
|
|
20
22
|
}
|
|
21
23
|
export interface IVeltCommentDialogThreadCard extends React.FC<IVeltCommentDialogThreadCardProps> {
|
|
@@ -28,6 +30,7 @@ export interface IVeltCommentDialogThreadCard extends React.FC<IVeltCommentDialo
|
|
|
28
30
|
Reactions: React.FC<IVeltCommentDialogThreadCardReactionsProps>;
|
|
29
31
|
ReactionTool: React.FC<IVeltCommentDialogThreadCardReactionToolProps>;
|
|
30
32
|
ReactionPin: React.FC<IVeltCommentDialogThreadCardReactionPinProps>;
|
|
33
|
+
AssignButton: React.FC<IVeltCommentDialogThreadCardAssignButtonProps>;
|
|
31
34
|
Recordings: React.FC<IVeltCommentDialogThreadCardRecordingsProps>;
|
|
32
35
|
Time: React.FC<IVeltCommentDialogThreadCardTimeProps>;
|
|
33
36
|
Unread: React.FC<IVeltCommentDialogThreadCardUnreadProps>;
|
|
@@ -35,6 +38,7 @@ export interface IVeltCommentDialogThreadCard extends React.FC<IVeltCommentDialo
|
|
|
35
38
|
SeenDropdown: IVeltCommentDialogThreadCardSeenDropdown;
|
|
36
39
|
Edited: IVeltCommentDialogThreadCardEdited;
|
|
37
40
|
Reply: IVeltCommentDialogThreadCardReply;
|
|
41
|
+
EditComposer: IVeltCommentDialogThreadCardEditComposer;
|
|
38
42
|
}
|
|
39
43
|
declare const VeltCommentDialogThreadCard: IVeltCommentDialogThreadCard;
|
|
40
44
|
export default VeltCommentDialogThreadCard;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IVeltWireframeCommonProps } from '../../../../constants';
|
|
3
|
+
export interface IVeltCommentDialogThreadCardAssignButtonProps extends IVeltWireframeCommonProps {
|
|
4
|
+
}
|
|
5
|
+
declare const VeltCommentDialogThreadCardAssignButton: React.FC<IVeltCommentDialogThreadCardAssignButtonProps>;
|
|
6
|
+
export default VeltCommentDialogThreadCardAssignButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './VeltCommentDialogThreadCardAssignButton';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IVeltWireframeCommonProps } from '../../../../constants';
|
|
3
|
+
export interface IVeltCommentDialogThreadCardEditComposerProps extends IVeltWireframeCommonProps {
|
|
4
|
+
}
|
|
5
|
+
export interface IVeltCommentDialogThreadCardEditComposer extends React.FC<IVeltCommentDialogThreadCardEditComposerProps> {
|
|
6
|
+
}
|
|
7
|
+
declare const VeltCommentDialogThreadCardEditComposer: IVeltCommentDialogThreadCardEditComposer;
|
|
8
|
+
export default VeltCommentDialogThreadCardEditComposer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './VeltCommentDialogThreadCardEditComposer';
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface IVeltIfProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
3
|
condition?: string;
|
|
4
|
+
className?: string;
|
|
5
|
+
id?: string;
|
|
4
6
|
}
|
|
5
7
|
declare const VeltIf: React.FC<IVeltIfProps>;
|
|
6
8
|
export default VeltIf;
|
|
@@ -38,6 +38,7 @@ export interface IVeltInlineCommentsSectionProps extends React.DetailedHTMLProps
|
|
|
38
38
|
commentPlaceholder?: string;
|
|
39
39
|
replyPlaceholder?: string;
|
|
40
40
|
composerPlaceholder?: string;
|
|
41
|
+
readOnly?: boolean;
|
|
41
42
|
}
|
|
42
43
|
declare const VeltInlineCommentsSection: React.FC<IVeltInlineCommentsSectionProps>;
|
|
43
44
|
export default VeltInlineCommentsSection;
|
package/cjs/types/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const VELT_SDK_VERSION = "4.7.
|
|
2
|
+
export declare const VELT_SDK_VERSION = "4.7.9";
|
|
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/esm/index.js
CHANGED
|
@@ -204,13 +204,13 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain, integ
|
|
|
204
204
|
};
|
|
205
205
|
};
|
|
206
206
|
|
|
207
|
-
var VELT_SDK_VERSION = '4.7.
|
|
207
|
+
var VELT_SDK_VERSION = '4.7.9';
|
|
208
208
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
209
209
|
var VELT_TAB_ID = 'veltTabId';
|
|
210
210
|
// integrity map for the Velt SDK
|
|
211
211
|
// Note: generate integrity hashes with: https://www.srihash.org/
|
|
212
212
|
var INTEGRITY_MAP = {
|
|
213
|
-
'4.7.
|
|
213
|
+
'4.7.9': 'sha384-hAe81s0JgcBv1OIda4tGTO+4ezlxMgQBN+SbpY3C+THZqt2pD4ak74YYMh3/gNXV',
|
|
214
214
|
};
|
|
215
215
|
|
|
216
216
|
var validProps = ['veltIf', 'veltClass', 'className', 'variant'];
|
|
@@ -1697,8 +1697,8 @@ var VeltAutocomplete = function (props) {
|
|
|
1697
1697
|
};
|
|
1698
1698
|
|
|
1699
1699
|
var VeltInlineCommentsSection = function (props) {
|
|
1700
|
-
var config = props.config, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, targetInlineCommentElementId = props.targetInlineCommentElementId, targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, multiThread = props.multiThread, sortData = props.sortData, composerVariant = props.composerVariant, composerPosition = props.composerPosition, sortBy = props.sortBy, sortOrder = props.sortOrder, fullExpanded = props.fullExpanded, context = props.context, contextOptions = props.contextOptions, documentId = props.documentId, folderId = props.folderId, locationId = props.locationId, commentPlaceholder = props.commentPlaceholder, replyPlaceholder = props.replyPlaceholder, composerPlaceholder = props.composerPlaceholder;
|
|
1701
|
-
return (React.createElement("velt-inline-comments-section", { "target-inline-comment-element-id": targetInlineCommentElementId, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, config: JSON.stringify(config), variant: variant, "dialog-variant": dialogVariant, "sort-data": sortData, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "multi-thread": [true, false].includes(multiThread) ? (multiThread ? 'true' : 'false') : undefined, "composer-variant": composerVariant, "composer-position": composerPosition, "sort-by": sortBy, "sort-order": sortOrder, "full-expanded": [true, false].includes(fullExpanded) ? (fullExpanded ? 'true' : 'false') : undefined, context: JSON.stringify(context), "context-options": JSON.stringify(contextOptions), "location-id": locationId, "document-id": documentId, "folder-id": folderId, "comment-placeholder": commentPlaceholder, "reply-placeholder": replyPlaceholder, "composer-placeholder": composerPlaceholder }, children));
|
|
1700
|
+
var config = props.config, children = props.children, darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, targetInlineCommentElementId = props.targetInlineCommentElementId, targetCommentElementId = props.targetCommentElementId, targetElementId = props.targetElementId, multiThread = props.multiThread, sortData = props.sortData, composerVariant = props.composerVariant, composerPosition = props.composerPosition, sortBy = props.sortBy, sortOrder = props.sortOrder, fullExpanded = props.fullExpanded, context = props.context, contextOptions = props.contextOptions, documentId = props.documentId, folderId = props.folderId, locationId = props.locationId, commentPlaceholder = props.commentPlaceholder, replyPlaceholder = props.replyPlaceholder, composerPlaceholder = props.composerPlaceholder, readOnly = props.readOnly;
|
|
1701
|
+
return (React.createElement("velt-inline-comments-section", { "target-inline-comment-element-id": targetInlineCommentElementId, "target-comment-element-id": targetCommentElementId, "target-element-id": targetElementId, config: JSON.stringify(config), variant: variant, "dialog-variant": dialogVariant, "sort-data": sortData, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, "multi-thread": [true, false].includes(multiThread) ? (multiThread ? 'true' : 'false') : undefined, "composer-variant": composerVariant, "composer-position": composerPosition, "sort-by": sortBy, "sort-order": sortOrder, "full-expanded": [true, false].includes(fullExpanded) ? (fullExpanded ? 'true' : 'false') : undefined, context: JSON.stringify(context), "context-options": JSON.stringify(contextOptions), "location-id": locationId, "document-id": documentId, "folder-id": folderId, "comment-placeholder": commentPlaceholder, "reply-placeholder": replyPlaceholder, "composer-placeholder": composerPlaceholder, "read-only": [true, false].includes(readOnly) ? (readOnly ? 'true' : 'false') : undefined }, children));
|
|
1702
1702
|
};
|
|
1703
1703
|
|
|
1704
1704
|
var VeltCommentPin = function (props) {
|
|
@@ -1717,15 +1717,15 @@ var VeltCanvasComment = function (props) {
|
|
|
1717
1717
|
};
|
|
1718
1718
|
|
|
1719
1719
|
var VeltData = function (props) {
|
|
1720
|
-
var path = props.path, field = props.field;
|
|
1720
|
+
var path = props.path, field = props.field, className = props.className, id = props.id;
|
|
1721
1721
|
var ref = useRef();
|
|
1722
|
-
return (React.createElement("velt-data", { ref: ref, path: path, field: field }));
|
|
1722
|
+
return (React.createElement("velt-data", { ref: ref, path: path, field: field, class: className, id: id }));
|
|
1723
1723
|
};
|
|
1724
1724
|
|
|
1725
1725
|
var VeltIf = function (props) {
|
|
1726
|
-
var condition = props.condition, children = props.children;
|
|
1726
|
+
var condition = props.condition, children = props.children, className = props.className, id = props.id;
|
|
1727
1727
|
var ref = useRef();
|
|
1728
|
-
return (React.createElement("velt-if", { ref: ref, condition: condition }, children));
|
|
1728
|
+
return (React.createElement("velt-if", { ref: ref, condition: condition, class: className, id: id }, children));
|
|
1729
1729
|
};
|
|
1730
1730
|
|
|
1731
1731
|
var VeltCommentsMinimap = function (props) {
|
|
@@ -1768,8 +1768,8 @@ var VeltInlineReactionsSection = function (props) {
|
|
|
1768
1768
|
};
|
|
1769
1769
|
|
|
1770
1770
|
var VeltCommentComposer = function (props) {
|
|
1771
|
-
var darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, context = props.context, locationId = props.locationId, documentId = props.documentId, folderId = props.folderId, targetComposerElementId = props.targetComposerElementId, placeholder = props.placeholder;
|
|
1772
|
-
return (React.createElement("velt-comment-composer", { variant: variant, "dialog-variant": dialogVariant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, context: context ? JSON.stringify(context) : undefined, "location-id": locationId, "document-id": documentId, "folder-id": folderId, "target-composer-element-id": targetComposerElementId, placeholder: placeholder }));
|
|
1771
|
+
var darkMode = props.darkMode, variant = props.variant, shadowDom = props.shadowDom, dialogVariant = props.dialogVariant, context = props.context, locationId = props.locationId, documentId = props.documentId, folderId = props.folderId, targetComposerElementId = props.targetComposerElementId, placeholder = props.placeholder, readOnly = props.readOnly;
|
|
1772
|
+
return (React.createElement("velt-comment-composer", { variant: variant, "dialog-variant": dialogVariant, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, context: context ? JSON.stringify(context) : undefined, "location-id": locationId, "document-id": documentId, "folder-id": folderId, "target-composer-element-id": targetComposerElementId, placeholder: placeholder, "read-only": [true, false].includes(readOnly) ? (readOnly ? 'true' : 'false') : undefined }));
|
|
1773
1773
|
};
|
|
1774
1774
|
|
|
1775
1775
|
var VeltSingleEditorModePanel = function (props) {
|
|
@@ -2454,6 +2454,12 @@ var VeltCommentDialogThreadCardReactionPin = function (props) {
|
|
|
2454
2454
|
return (React.createElement("velt-comment-dialog-thread-card-reaction-pin-wireframe", __assign({}, transformedProps, { "reaction-id": reactionId }), children));
|
|
2455
2455
|
};
|
|
2456
2456
|
|
|
2457
|
+
var VeltCommentDialogThreadCardAssignButton = function (props) {
|
|
2458
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2459
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
2460
|
+
return (React.createElement("velt-comment-dialog-thread-card-assign-button-wireframe", __assign({}, transformedProps), children));
|
|
2461
|
+
};
|
|
2462
|
+
|
|
2457
2463
|
var VeltCommentDialogThreadCardReactions = function (props) {
|
|
2458
2464
|
var children = props.children, excludeReactionIds = props.excludeReactionIds, remainingProps = __rest(props, ["children", "excludeReactionIds"]);
|
|
2459
2465
|
var transformedProps = transformWireframeProps(remainingProps);
|
|
@@ -2552,6 +2558,12 @@ var VeltCommentDialogThreadCardReply = function (props) {
|
|
|
2552
2558
|
return (React.createElement("velt-comment-dialog-thread-card-reply-wireframe", __assign({}, transformedProps), children));
|
|
2553
2559
|
};
|
|
2554
2560
|
|
|
2561
|
+
var VeltCommentDialogThreadCardEditComposer = function (props) {
|
|
2562
|
+
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
2563
|
+
var transformedProps = transformWireframeProps(remainingProps);
|
|
2564
|
+
return (React.createElement("velt-comment-dialog-thread-card-edit-composer-wireframe", __assign({}, transformedProps), children));
|
|
2565
|
+
};
|
|
2566
|
+
|
|
2555
2567
|
// Main Thread Card component
|
|
2556
2568
|
var VeltCommentDialogThreadCard = function (props) {
|
|
2557
2569
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|
|
@@ -2568,6 +2580,7 @@ VeltCommentDialogThreadCard.Options = VeltCommentDialogThreadCardOptions;
|
|
|
2568
2580
|
VeltCommentDialogThreadCard.Reactions = VeltCommentDialogThreadCardReactions;
|
|
2569
2581
|
VeltCommentDialogThreadCard.ReactionTool = VeltCommentDialogThreadCardReactionTool;
|
|
2570
2582
|
VeltCommentDialogThreadCard.ReactionPin = VeltCommentDialogThreadCardReactionPin;
|
|
2583
|
+
VeltCommentDialogThreadCard.AssignButton = VeltCommentDialogThreadCardAssignButton;
|
|
2571
2584
|
VeltCommentDialogThreadCard.Recordings = VeltCommentDialogThreadCardRecordings;
|
|
2572
2585
|
VeltCommentDialogThreadCard.Time = VeltCommentDialogThreadCardTime;
|
|
2573
2586
|
VeltCommentDialogThreadCard.Unread = VeltCommentDialogThreadCardUnread;
|
|
@@ -2575,6 +2588,7 @@ VeltCommentDialogThreadCard.Draft = VeltCommentDialogThreadCardDraft;
|
|
|
2575
2588
|
VeltCommentDialogThreadCard.SeenDropdown = VeltCommentDialogThreadCardSeenDropdown;
|
|
2576
2589
|
VeltCommentDialogThreadCard.Edited = VeltCommentDialogThreadCardEdited;
|
|
2577
2590
|
VeltCommentDialogThreadCard.Reply = VeltCommentDialogThreadCardReply;
|
|
2591
|
+
VeltCommentDialogThreadCard.EditComposer = VeltCommentDialogThreadCardEditComposer;
|
|
2578
2592
|
|
|
2579
2593
|
var VeltCommentDialogThreads = function (props) {
|
|
2580
2594
|
var children = props.children, remainingProps = __rest(props, ["children"]);
|