@veltdev/react 1.0.162 → 1.0.164
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 +9 -9
- package/cjs/index.js.map +1 -1
- package/cjs/types/components/VeltCommentPlayerTimeline/VeltCommentPlayerTimeline.d.ts +1 -0
- package/cjs/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
- package/cjs/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +2 -0
- package/cjs/types/components/VeltVideoPlayer/VeltVideoPlayer.d.ts +1 -0
- package/cjs/types/constants.d.ts +1 -1
- package/esm/index.js +9 -9
- package/esm/index.js.map +1 -1
- package/esm/types/components/VeltCommentPlayerTimeline/VeltCommentPlayerTimeline.d.ts +1 -0
- package/esm/types/components/VeltNotificationsPanel/VeltNotificationsPanel.d.ts +1 -0
- package/esm/types/components/VeltNotificationsTool/VeltNotificationsTool.d.ts +2 -0
- package/esm/types/components/VeltVideoPlayer/VeltVideoPlayer.d.ts +1 -0
- package/esm/types/constants.d.ts +1 -1
- package/index.d.ts +5 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export interface IVeltCommentPlayerTimelineProps {
|
|
3
3
|
totalMediaLength?: number;
|
|
4
4
|
onCommentClick?: Function;
|
|
5
|
+
shadowDom?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const VeltCommentPlayerTimeline: React.FC<IVeltCommentPlayerTimelineProps>;
|
|
7
8
|
export default VeltCommentPlayerTimeline;
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export interface IVeltNotificationsPanelProps {
|
|
3
3
|
darkMode?: boolean;
|
|
4
4
|
onNotificationClick?: Function;
|
|
5
|
+
shadowDom?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const VeltNotificationsPanel: React.FC<IVeltNotificationsPanelProps>;
|
|
7
8
|
export default VeltNotificationsPanel;
|
|
@@ -2,6 +2,8 @@ import React from 'react';
|
|
|
2
2
|
export interface IVeltNotificationsToolProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
3
3
|
darkMode?: boolean;
|
|
4
4
|
onNotificationClick?: Function;
|
|
5
|
+
shadowDom?: boolean;
|
|
6
|
+
panelShadowDom?: boolean;
|
|
5
7
|
}
|
|
6
8
|
declare const VeltNotificationsTool: React.FC<IVeltNotificationsToolProps>;
|
|
7
9
|
export default VeltNotificationsTool;
|
package/cjs/types/constants.d.ts
CHANGED
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 = '1.0.
|
|
135
|
+
var VELT_SDK_VERSION = '1.0.182';
|
|
136
136
|
var VELT_SDK_INIT_EVENT = 'onVeltInit';
|
|
137
137
|
var VELT_TAB_ID = 'veltTabId';
|
|
138
138
|
|
|
@@ -553,7 +553,7 @@ var SnippylyUserRequestTool = function (props) {
|
|
|
553
553
|
};
|
|
554
554
|
|
|
555
555
|
var VeltCommentPlayerTimeline = function (props) {
|
|
556
|
-
var totalMediaLength = props.totalMediaLength, onCommentClick = props.onCommentClick;
|
|
556
|
+
var totalMediaLength = props.totalMediaLength, onCommentClick = props.onCommentClick, shadowDom = props.shadowDom;
|
|
557
557
|
var ref = useRef();
|
|
558
558
|
var onCommentClickRef = useRef(onCommentClick);
|
|
559
559
|
// Update the ref to always point to the latest callback function
|
|
@@ -570,12 +570,12 @@ var VeltCommentPlayerTimeline = function (props) {
|
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
572
|
}, []);
|
|
573
|
-
return (React.createElement("velt-comment-player-timeline", { ref: ref, "total-media-length": totalMediaLength }));
|
|
573
|
+
return (React.createElement("velt-comment-player-timeline", { ref: ref, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "total-media-length": totalMediaLength }));
|
|
574
574
|
};
|
|
575
575
|
|
|
576
576
|
var VeltVideoPlayer = function (props) {
|
|
577
|
-
var darkMode = props.darkMode, src = props.src, sync = props.sync, commentTool = props.commentTool;
|
|
578
|
-
return (React.createElement("velt-video-player", { src: src, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, sync: [true, false].includes(sync) ? (sync ? 'true' : 'false') : undefined, "comment-tool": [true, false].includes(commentTool) ? (commentTool ? 'true' : 'false') : undefined }));
|
|
577
|
+
var darkMode = props.darkMode, src = props.src, sync = props.sync, commentTool = props.commentTool, shadowDom = props.shadowDom;
|
|
578
|
+
return (React.createElement("velt-video-player", { "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, src: src, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined, sync: [true, false].includes(sync) ? (sync ? 'true' : 'false') : undefined, "comment-tool": [true, false].includes(commentTool) ? (commentTool ? 'true' : 'false') : undefined }));
|
|
579
579
|
};
|
|
580
580
|
|
|
581
581
|
var VeltViewAnalytics = function (props) {
|
|
@@ -589,7 +589,7 @@ var VeltCommentThread = function (props) {
|
|
|
589
589
|
};
|
|
590
590
|
|
|
591
591
|
var VeltNotificationsTool = function (props) {
|
|
592
|
-
var children = props.children, darkMode = props.darkMode, onNotificationClick = props.onNotificationClick;
|
|
592
|
+
var children = props.children, darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom, panelShadowDom = props.panelShadowDom;
|
|
593
593
|
var ref = useRef();
|
|
594
594
|
var onNotificationClickRef = useRef(onNotificationClick);
|
|
595
595
|
// Update the ref to always point to the latest callback function
|
|
@@ -606,11 +606,11 @@ var VeltNotificationsTool = function (props) {
|
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
608
|
}, []);
|
|
609
|
-
return (React.createElement("velt-notifications-tool", { ref: ref, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
609
|
+
return (React.createElement("velt-notifications-tool", { ref: ref, "panel-shadow-dom": [true, false].includes(panelShadowDom) ? (panelShadowDom ? 'true' : 'false') : undefined, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }, children));
|
|
610
610
|
};
|
|
611
611
|
|
|
612
612
|
var VeltNotificationsPanel = function (props) {
|
|
613
|
-
var darkMode = props.darkMode, onNotificationClick = props.onNotificationClick;
|
|
613
|
+
var darkMode = props.darkMode, onNotificationClick = props.onNotificationClick, shadowDom = props.shadowDom;
|
|
614
614
|
var ref = useRef();
|
|
615
615
|
var onNotificationClickRef = useRef(onNotificationClick);
|
|
616
616
|
// Update the ref to always point to the latest callback function
|
|
@@ -627,7 +627,7 @@ var VeltNotificationsPanel = function (props) {
|
|
|
627
627
|
});
|
|
628
628
|
}
|
|
629
629
|
}, []);
|
|
630
|
-
return (React.createElement("velt-notifications-panel", { ref: ref, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }));
|
|
630
|
+
return (React.createElement("velt-notifications-panel", { ref: ref, "shadow-dom": [true, false].includes(shadowDom) ? (shadowDom ? 'true' : 'false') : undefined, "dark-mode": [true, false].includes(darkMode) ? (darkMode ? 'true' : 'false') : undefined }));
|
|
631
631
|
};
|
|
632
632
|
|
|
633
633
|
var VeltNotificationsHistoryPanel = function (props) {
|