@veltdev/react 4.7.8 → 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.
Files changed (22) hide show
  1. package/cjs/index.js +17 -10
  2. package/cjs/index.js.map +1 -1
  3. package/cjs/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +1 -0
  4. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +2 -0
  5. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/VeltCommentDialogThreadCardEditComposer.d.ts +8 -0
  6. package/cjs/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/index.d.ts +1 -0
  7. package/cjs/types/components/VeltData/VeltData.d.ts +2 -0
  8. package/cjs/types/components/VeltIf/VeltIf.d.ts +2 -0
  9. package/cjs/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +1 -0
  10. package/cjs/types/constants.d.ts +1 -1
  11. package/esm/index.js +17 -10
  12. package/esm/index.js.map +1 -1
  13. package/esm/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +1 -0
  14. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCard.d.ts +2 -0
  15. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/VeltCommentDialogThreadCardEditComposer.d.ts +8 -0
  16. package/esm/types/components/VeltCommentDialogWireframe/VeltCommentDialogThreadCard/VeltCommentDialogThreadCardEditComposer/index.d.ts +1 -0
  17. package/esm/types/components/VeltData/VeltData.d.ts +2 -0
  18. package/esm/types/components/VeltIf/VeltIf.d.ts +2 -0
  19. package/esm/types/components/VeltInlineCommentsSection/VeltInlineCommentsSection.d.ts +1 -0
  20. package/esm/types/constants.d.ts +1 -1
  21. package/index.d.ts +12 -0
  22. 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;
@@ -17,6 +17,7 @@ import { IVeltCommentDialogThreadCardSeenDropdown } from "./VeltCommentDialogThr
17
17
  import { IVeltCommentDialogThreadCardEdited } from "./VeltCommentDialogThreadCardEdited/VeltCommentDialogThreadCardEdited";
18
18
  import { IVeltWireframeCommonProps } from "../../../constants";
19
19
  import { IVeltCommentDialogThreadCardReply } from "./VeltCommentDialogThreadCardReply/VeltCommentDialogThreadCardReply";
20
+ import { IVeltCommentDialogThreadCardEditComposer } from "./VeltCommentDialogThreadCardEditComposer/VeltCommentDialogThreadCardEditComposer";
20
21
  export interface IVeltCommentDialogThreadCardProps extends IVeltWireframeCommonProps {
21
22
  }
22
23
  export interface IVeltCommentDialogThreadCard extends React.FC<IVeltCommentDialogThreadCardProps> {
@@ -37,6 +38,7 @@ export interface IVeltCommentDialogThreadCard extends React.FC<IVeltCommentDialo
37
38
  SeenDropdown: IVeltCommentDialogThreadCardSeenDropdown;
38
39
  Edited: IVeltCommentDialogThreadCardEdited;
39
40
  Reply: IVeltCommentDialogThreadCardReply;
41
+ EditComposer: IVeltCommentDialogThreadCardEditComposer;
40
42
  }
41
43
  declare const VeltCommentDialogThreadCard: IVeltCommentDialogThreadCard;
42
44
  export default VeltCommentDialogThreadCard;
@@ -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';
@@ -2,6 +2,8 @@ import React from 'react';
2
2
  export interface IVeltDataProps {
3
3
  path?: string;
4
4
  field?: string;
5
+ className?: string;
6
+ id?: string;
5
7
  }
6
8
  declare const VeltData: React.FC<IVeltDataProps>;
7
9
  export default VeltData;
@@ -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;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const VELT_SDK_VERSION = "4.7.8";
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.8';
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.8': 'sha384-FEqQMemqzDZDXnFX7Agv2pVMRTIkRPfPSBgSMckfI/TxwIOqlgLGCbvD655jSs5T',
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) {
@@ -2558,6 +2558,12 @@ var VeltCommentDialogThreadCardReply = function (props) {
2558
2558
  return (React.createElement("velt-comment-dialog-thread-card-reply-wireframe", __assign({}, transformedProps), children));
2559
2559
  };
2560
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
+
2561
2567
  // Main Thread Card component
2562
2568
  var VeltCommentDialogThreadCard = function (props) {
2563
2569
  var children = props.children, remainingProps = __rest(props, ["children"]);
@@ -2582,6 +2588,7 @@ VeltCommentDialogThreadCard.Draft = VeltCommentDialogThreadCardDraft;
2582
2588
  VeltCommentDialogThreadCard.SeenDropdown = VeltCommentDialogThreadCardSeenDropdown;
2583
2589
  VeltCommentDialogThreadCard.Edited = VeltCommentDialogThreadCardEdited;
2584
2590
  VeltCommentDialogThreadCard.Reply = VeltCommentDialogThreadCardReply;
2591
+ VeltCommentDialogThreadCard.EditComposer = VeltCommentDialogThreadCardEditComposer;
2585
2592
 
2586
2593
  var VeltCommentDialogThreads = function (props) {
2587
2594
  var children = props.children, remainingProps = __rest(props, ["children"]);