@veltdev/react 5.0.0-beta.1 → 5.0.0-beta.2
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 +8 -8
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +2 -0
- package/cjs/types/components/VeltCommentDialog/VeltCommentDialog.d.ts +1 -0
- package/cjs/types/components/VeltCommentDialog/VeltCommentDialogComposer/VeltCommentDialogComposer.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/esm/index.js +8 -8
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltCommentComposer/VeltCommentComposer.d.ts +2 -0
- package/esm/types/components/VeltCommentDialog/VeltCommentDialog.d.ts +1 -0
- package/esm/types/components/VeltCommentDialog/VeltCommentDialogComposer/VeltCommentDialogComposer.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/index.d.ts +4 -0
- package/package.json +1 -1
|
@@ -10,6 +10,8 @@ export interface IVeltCommentComposerProps extends React.DetailedHTMLProps<React
|
|
|
10
10
|
locationId?: string;
|
|
11
11
|
documentId?: string;
|
|
12
12
|
folderId?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
targetElementId?: string;
|
|
13
15
|
}
|
|
14
16
|
declare const VeltCommentComposer: React.FC<IVeltCommentComposerProps>;
|
|
15
17
|
export default VeltCommentComposer;
|
|
@@ -6,6 +6,7 @@ export interface IVeltCommentDialogProps extends React.DetailedHTMLProps<React.H
|
|
|
6
6
|
commentPinSelected?: boolean;
|
|
7
7
|
fullExpanded?: boolean;
|
|
8
8
|
shadowDom?: boolean;
|
|
9
|
+
placeholder?: string;
|
|
9
10
|
}
|
|
10
11
|
declare const VeltCommentDialog: React.FC<IVeltCommentDialogProps>;
|
|
11
12
|
export default VeltCommentDialog;
|
|
@@ -11,6 +11,7 @@ export interface IVeltCommentDialogComposerProps extends React.DetailedHTMLProps
|
|
|
11
11
|
commentplaceholder?: string;
|
|
12
12
|
replyplaceholder?: string;
|
|
13
13
|
editplaceholder?: string;
|
|
14
|
+
targetElementId?: string;
|
|
14
15
|
}
|
|
15
16
|
declare const VeltCommentDialogComposer: React.FC<IVeltCommentDialogComposerProps>;
|
|
16
17
|
export default VeltCommentDialogComposer;
|
package/cjs/types/constants.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const VELT_SDK_VERSION = "5.0.0-beta.
|
|
2
|
+
export declare const VELT_SDK_VERSION = "5.0.0-beta.2";
|
|
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
|
@@ -137,13 +137,13 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain, integ
|
|
|
137
137
|
}
|
|
138
138
|
};
|
|
139
139
|
|
|
140
|
-
var VELT_SDK_VERSION = '5.0.0-beta.
|
|
140
|
+
var VELT_SDK_VERSION = '5.0.0-beta.2';
|
|
141
141
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
142
142
|
var VELT_TAB_ID = 'veltTabId';
|
|
143
143
|
// integrity map for the Velt SDK
|
|
144
144
|
// Note: generate integrity hashes with: https://www.srihash.org/
|
|
145
145
|
var INTEGRITY_MAP = {
|
|
146
|
-
'5.0.0-beta.
|
|
146
|
+
'5.0.0-beta.2': 'sha384-P/mj/JAXeU39QESjJFT6yJxpd5CIMt1DuS3dL4T5t5x0/163T/HONIKocpSIEXQ9',
|
|
147
147
|
};
|
|
148
148
|
|
|
149
149
|
var validProps = ['veltIf', 'veltClass', 'className', 'variant'];
|
|
@@ -1617,8 +1617,8 @@ var VeltInlineReactionsSection = function (props) {
|
|
|
1617
1617
|
};
|
|
1618
1618
|
|
|
1619
1619
|
var VeltCommentComposer = function (props) {
|
|
1620
|
-
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;
|
|
1621
|
-
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 }));
|
|
1620
|
+
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, placeholder = props.placeholder, targetElementId = props.targetElementId;
|
|
1621
|
+
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, placeholder: placeholder, "target-element-id": targetElementId }));
|
|
1622
1622
|
};
|
|
1623
1623
|
|
|
1624
1624
|
var VeltSingleEditorModePanel = function (props) {
|
|
@@ -1639,9 +1639,9 @@ var VeltVideoEditor = function (props) {
|
|
|
1639
1639
|
};
|
|
1640
1640
|
|
|
1641
1641
|
var VeltCommentDialog = function (props) {
|
|
1642
|
-
var annotationId = props.annotationId, defaultCondition = props.defaultCondition, inlineCommentSectionMode = props.inlineCommentSectionMode, commentPinSelected = props.commentPinSelected, fullExpanded = props.fullExpanded, shadowDom = props.shadowDom, children = props.children;
|
|
1642
|
+
var annotationId = props.annotationId, defaultCondition = props.defaultCondition, inlineCommentSectionMode = props.inlineCommentSectionMode, commentPinSelected = props.commentPinSelected, fullExpanded = props.fullExpanded, shadowDom = props.shadowDom, placeholder = props.placeholder, children = props.children;
|
|
1643
1643
|
var ref = useRef(null);
|
|
1644
|
-
return (React.createElement("velt-comment-dialog", { ref: ref, "annotation-id": annotationId, "default-condition": [true, false].includes(defaultCondition) ? (defaultCondition ? 'true' : 'false') : undefined, "inline-comment-section-mode": [true, false].includes(inlineCommentSectionMode) ? (inlineCommentSectionMode ? 'true' : 'false') : undefined, "comment-pin-selected": [true, false].includes(commentPinSelected) ? (commentPinSelected ? 'true' : 'false') : undefined, "full-expanded": [true, false].includes(fullExpanded) ? (fullExpanded ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined }, children));
|
|
1644
|
+
return (React.createElement("velt-comment-dialog", { ref: ref, "annotation-id": annotationId, "default-condition": [true, false].includes(defaultCondition) ? (defaultCondition ? 'true' : 'false') : undefined, "inline-comment-section-mode": [true, false].includes(inlineCommentSectionMode) ? (inlineCommentSectionMode ? 'true' : 'false') : undefined, "comment-pin-selected": [true, false].includes(commentPinSelected) ? (commentPinSelected ? 'true' : 'false') : undefined, "full-expanded": [true, false].includes(fullExpanded) ? (fullExpanded ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, placeholder: placeholder }, children));
|
|
1645
1645
|
};
|
|
1646
1646
|
|
|
1647
1647
|
var VeltCommentDialogContextWrapper = function (props) {
|
|
@@ -2370,9 +2370,9 @@ var VeltCommentDialogSuggestionActionReject$1 = function (props) {
|
|
|
2370
2370
|
};
|
|
2371
2371
|
|
|
2372
2372
|
var VeltCommentDialogComposer$1 = function (props) {
|
|
2373
|
-
var annotationId = props.annotationId, defaultCondition = props.defaultCondition, inlineCommentSectionMode = props.inlineCommentSectionMode, editMode = props.editMode, commentObj = props.commentObj, commentIndex = props.commentIndex, composerWireframe = props.composerWireframe, placeholder = props.placeholder, commentplaceholder = props.commentplaceholder, replyplaceholder = props.replyplaceholder, editplaceholder = props.editplaceholder, children = props.children;
|
|
2373
|
+
var annotationId = props.annotationId, defaultCondition = props.defaultCondition, inlineCommentSectionMode = props.inlineCommentSectionMode, editMode = props.editMode, commentObj = props.commentObj, commentIndex = props.commentIndex, composerWireframe = props.composerWireframe, placeholder = props.placeholder, commentplaceholder = props.commentplaceholder, replyplaceholder = props.replyplaceholder, editplaceholder = props.editplaceholder, targetElementId = props.targetElementId, children = props.children;
|
|
2374
2374
|
var ref = useRef(null);
|
|
2375
|
-
return (React.createElement("velt-comment-dialog-composer", { ref: ref, "annotation-id": annotationId, "default-condition": [true, false].includes(defaultCondition) ? (defaultCondition ? 'true' : 'false') : undefined, "inline-comment-section-mode": [true, false].includes(inlineCommentSectionMode) ? (inlineCommentSectionMode ? 'true' : 'false') : undefined, "edit-mode": [true, false].includes(editMode) ? (editMode ? 'true' : 'false') : undefined, "comment-obj": commentObj ? (typeof commentObj === 'string' ? commentObj : JSON.stringify(commentObj)) : undefined, "comment-index": commentIndex !== undefined ? commentIndex.toString() : undefined, "composer-wireframe": composerWireframe ? JSON.stringify(composerWireframe) : undefined, placeholder: placeholder, "comment-placeholder": commentplaceholder, "reply-placeholder": replyplaceholder, "edit-placeholder": editplaceholder }, children));
|
|
2375
|
+
return (React.createElement("velt-comment-dialog-composer", { ref: ref, "annotation-id": annotationId, "default-condition": [true, false].includes(defaultCondition) ? (defaultCondition ? 'true' : 'false') : undefined, "inline-comment-section-mode": [true, false].includes(inlineCommentSectionMode) ? (inlineCommentSectionMode ? 'true' : 'false') : undefined, "edit-mode": [true, false].includes(editMode) ? (editMode ? 'true' : 'false') : undefined, "comment-obj": commentObj ? (typeof commentObj === 'string' ? commentObj : JSON.stringify(commentObj)) : undefined, "comment-index": commentIndex !== undefined ? commentIndex.toString() : undefined, "composer-wireframe": composerWireframe ? JSON.stringify(composerWireframe) : undefined, placeholder: placeholder, "comment-placeholder": commentplaceholder, "reply-placeholder": replyplaceholder, "edit-placeholder": editplaceholder, "target-element-id": targetElementId }, children));
|
|
2376
2376
|
};
|
|
2377
2377
|
|
|
2378
2378
|
var VeltCommentDialogComposerActionButton$1 = function (props) {
|