@eluvio/elv-player-js 2.0.5 → 2.0.6
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/dist/.vite/manifest.json +17 -17
- package/dist/{Analytics-Cp5elXm3.js → Analytics-BBSXEwS9.js} +1 -1
- package/dist/{Analytics-VkbTMe8P.mjs → Analytics-CTh8ex_T.mjs} +1 -1
- package/dist/{dash.all.min-DSIJKoVG.js → dash.all.min-BvOABBaR.js} +1 -1
- package/dist/{dash.all.min-DsA1Pw5n.mjs → dash.all.min-VhfS9TH7.mjs} +1 -1
- package/dist/elv-player-js.cjs.js +1 -1
- package/dist/elv-player-js.css +1 -1
- package/dist/elv-player-js.es.js +1 -1
- package/dist/{index-jYy0T-98.mjs → index-BNdC97NO.mjs} +4502 -4490
- package/dist/{index-d2hIwQjH.js → index-DjtnBiEN.js} +68 -68
- package/dist/{index-Cz4NKJpw.mjs → index-Dm3yOJL4.mjs} +1 -1
- package/dist/{index-DIJ0DS7K.js → index-nb3SLpgf.js} +1 -1
- package/lib/player/Controls.js +1 -1
- package/lib/player/Player.js +42 -25
- package/lib/static/icons/Icons.js +1 -1
- package/lib/static/stylesheets/common.module.scss +8 -0
- package/lib/ui/BuildIcons.cjs +1 -1
- package/lib/ui/Components.jsx +30 -20
- package/lib/ui/TVControls.jsx +1 -1
- package/lib/ui/WebControls.jsx +1 -1
- package/package.json +2 -2
- /package/lib/static/icons/svgs/{shield.svg → content-badge.svg} +0 -0
package/lib/ui/Components.jsx
CHANGED
|
@@ -352,7 +352,7 @@ export const ContentVerificationMenu = ({player, Hide, className=""}) => {
|
|
|
352
352
|
player.__LoadVerificationDetails()
|
|
353
353
|
.then(() => setLoaded(true));
|
|
354
354
|
|
|
355
|
-
const UpdateSettings = () => setAudit(player.controls.
|
|
355
|
+
const UpdateSettings = () => setAudit(player.controls.GetContentVerificationDetails());
|
|
356
356
|
|
|
357
357
|
UpdateSettings();
|
|
358
358
|
|
|
@@ -380,7 +380,7 @@ export const ContentVerificationMenu = ({player, Hide, className=""}) => {
|
|
|
380
380
|
content = (
|
|
381
381
|
<>
|
|
382
382
|
<div className={CommonStyles["verification-menu__group"]}>
|
|
383
|
-
<div dangerouslySetInnerHTML={{__html: Icons.
|
|
383
|
+
<div dangerouslySetInnerHTML={{__html: Icons.ContentBadgeIcon}} style={{width: 35, height: 35}} className={CommonStyles["verification-menu__group-icon"]} />
|
|
384
384
|
<div className={CommonStyles["verification-menu__group-text"]}>
|
|
385
385
|
<div className={CommonStyles["verification-menu__group-title"]}>
|
|
386
386
|
This content has been verified as authentic
|
|
@@ -391,7 +391,7 @@ export const ContentVerificationMenu = ({player, Hide, className=""}) => {
|
|
|
391
391
|
</div>
|
|
392
392
|
</div>
|
|
393
393
|
<div className={CommonStyles["verification-menu__group"]}>
|
|
394
|
-
<div dangerouslySetInnerHTML={{__html: Icons.ContentCredentialsIcon}} className={CommonStyles["verification-menu__group-icon"]} />
|
|
394
|
+
<div dangerouslySetInnerHTML={{__html: Icons.ContentCredentialsIcon}} style={{height: 30, maxWidth: 30}} className={CommonStyles["verification-menu__group-icon"]} />
|
|
395
395
|
<div className={CommonStyles["verification-menu__group-text"]}>
|
|
396
396
|
<button onClick={() => setShowDetails(true)} className={CommonStyles["verification-menu__group-title"]}>
|
|
397
397
|
View Content Credentials
|
|
@@ -405,7 +405,7 @@ export const ContentVerificationMenu = ({player, Hide, className=""}) => {
|
|
|
405
405
|
content = (
|
|
406
406
|
<>
|
|
407
407
|
<div className={CommonStyles["verification-menu__group"]}>
|
|
408
|
-
<div dangerouslySetInnerHTML={{__html: Icons.
|
|
408
|
+
<div dangerouslySetInnerHTML={{__html: Icons.ContentBadgeIcon}} style={{width: 50, height: 50}} className={CommonStyles["verification-menu__group-icon"]} />
|
|
409
409
|
<div className={CommonStyles["verification-menu__group-text"]}>
|
|
410
410
|
<div className={CommonStyles["verification-menu__group-title"]}>
|
|
411
411
|
This content has been verified as authentic
|
|
@@ -429,36 +429,46 @@ export const ContentVerificationMenu = ({player, Hide, className=""}) => {
|
|
|
429
429
|
</div>
|
|
430
430
|
</div>
|
|
431
431
|
</div>
|
|
432
|
-
<div className={CommonStyles["verification-menu__details"]}>
|
|
432
|
+
<div className={CommonStyles["verification-menu__details"]} key={`details-${audit.details._state}`}>
|
|
433
433
|
<ContentDetail label="Content Fabric Object ID" value={audit.details.objectId} copyable />
|
|
434
434
|
<ContentDetail label="Organization Address" value={audit.details.tenantAddress} copyable />
|
|
435
|
-
<ContentDetail label="Organization Name" value={audit.details.tenantName} />
|
|
435
|
+
<ContentDetail label="Organization Name" value={audit.details.tenantName && audit.details.tenantName.toString()} />
|
|
436
436
|
<ContentDetail label="Owner Address" value={audit.details.ownerAddress} copyable />
|
|
437
|
-
<ContentDetail
|
|
437
|
+
<ContentDetail
|
|
438
|
+
label="Content Object Contract Address"
|
|
439
|
+
value={
|
|
440
|
+
audit.details.explorerUrl ?
|
|
441
|
+
<a href={audit.details.explorerUrl} target="_blank" rel="noreferrer">
|
|
442
|
+
{audit.details.address}
|
|
443
|
+
</a> :
|
|
444
|
+
audit.details.address
|
|
445
|
+
}
|
|
446
|
+
copyable
|
|
447
|
+
/>
|
|
448
|
+
<ContentDetail label="Versions" value={audit.details.versionCount} />
|
|
438
449
|
<ContentDetail label="Content Version Hash" value={audit.details.versionHash} copyable />
|
|
439
450
|
{
|
|
440
451
|
!audit.details.lastCommittedAt ? null :
|
|
441
|
-
<ContentDetail label="
|
|
452
|
+
<ContentDetail label="Latest Commit" value={new Date(audit.details.lastCommittedAt).toLocaleTimeString(navigator.language || "en-us", {year: "numeric", "month": "long", day: "numeric"})} />
|
|
442
453
|
}
|
|
443
|
-
<ContentDetail label="
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
454
|
+
<ContentDetail label="Latest Version Hash" value={audit.details.latestVersionHash} copyable />
|
|
455
|
+
<ContentDetail
|
|
456
|
+
label="Latest Transaction"
|
|
457
|
+
value={
|
|
458
|
+
audit.details._state !== "full" ?
|
|
459
|
+
<Spinner className={CommonStyles["verification-menu__loader"]} /> :
|
|
460
|
+
audit.details.latestTransactionHashUrl ?
|
|
449
461
|
<a href={audit.details.latestTransactionHashUrl} target="_blank" rel="noreferrer">
|
|
450
|
-
{ audit.details.latestTransactionHash }
|
|
451
|
-
</a>
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
}
|
|
462
|
+
{ audit.details.latestTransactionHash && audit.details.latestTransactionHash.toString() }
|
|
463
|
+
</a> : undefined
|
|
464
|
+
}
|
|
465
|
+
/>
|
|
455
466
|
<ContentDetail label="Signature Algorithm" value={audit.details.signatureMethod} />
|
|
456
467
|
</div>
|
|
457
468
|
</>
|
|
458
469
|
);
|
|
459
470
|
}
|
|
460
471
|
|
|
461
|
-
|
|
462
472
|
return (
|
|
463
473
|
<div ref={menuRef}>
|
|
464
474
|
<div key="menu" role="menu" className={`${CommonStyles["menu"]} ${CommonStyles["verification-menu"]} ${showDetails ? CommonStyles["verification-menu--details"] : ""} ${className}`}>
|
package/lib/ui/TVControls.jsx
CHANGED
|
@@ -229,7 +229,7 @@ const ContentVerificationControls = ({player, setMenuActive}) => {
|
|
|
229
229
|
return (
|
|
230
230
|
<MenuButton
|
|
231
231
|
label="Content Verification Menu"
|
|
232
|
-
icon={Icons.
|
|
232
|
+
icon={Icons.ContentBadgeIcon}
|
|
233
233
|
player={player}
|
|
234
234
|
setMenuActive={setMenuActive}
|
|
235
235
|
MenuComponent={ContentVerificationMenu}
|
package/lib/ui/WebControls.jsx
CHANGED
|
@@ -176,7 +176,7 @@ const ContentVerificationControls = ({player, setMenuActive}) => {
|
|
|
176
176
|
</div>
|
|
177
177
|
<MenuButton
|
|
178
178
|
label="Content Verification Menu"
|
|
179
|
-
icon={Icons.
|
|
179
|
+
icon={Icons.ContentBadgeIcon}
|
|
180
180
|
player={player}
|
|
181
181
|
setMenuActive={setMenuActive}
|
|
182
182
|
MenuComponent={ContentVerificationMenu}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eluvio/elv-player-js",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"package-lock.json"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@eluvio/elv-client-js": "^4.0.
|
|
39
|
+
"@eluvio/elv-client-js": "^4.0.88",
|
|
40
40
|
"dashjs": "~4.7.0",
|
|
41
41
|
"focus-visible": "^5.2.0",
|
|
42
42
|
"hls.js": "~1.4.12",
|
|
File without changes
|