@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.
@@ -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.ContentVerificationDetails());
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.ContentShieldIcon}} className={CommonStyles["verification-menu__group-icon"]} />
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.ContentShieldIcon}} className={CommonStyles["verification-menu__group-icon"]} />
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 label="Content Object Contract Address" value={audit.details.address} copyable />
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="Last Commit" value={new Date(audit.details.lastCommittedAt).toLocaleTimeString(navigator.language || "en-us", {year: "numeric", "month": "long", day: "numeric"})} />
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="Versions" value={audit.details.versionCount} />
444
- {
445
- !audit.details.latestTransactionHash ? null :
446
- <ContentDetail
447
- label="Latest Transaction"
448
- value={
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}`}>
@@ -229,7 +229,7 @@ const ContentVerificationControls = ({player, setMenuActive}) => {
229
229
  return (
230
230
  <MenuButton
231
231
  label="Content Verification Menu"
232
- icon={Icons.ContentShieldIcon}
232
+ icon={Icons.ContentBadgeIcon}
233
233
  player={player}
234
234
  setMenuActive={setMenuActive}
235
235
  MenuComponent={ContentVerificationMenu}
@@ -176,7 +176,7 @@ const ContentVerificationControls = ({player, setMenuActive}) => {
176
176
  </div>
177
177
  <MenuButton
178
178
  label="Content Verification Menu"
179
- icon={Icons.ContentShieldIcon}
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.5",
3
+ "version": "2.0.6",
4
4
  "description": "![Eluvio Logo](lib/static/images/Logo.png \"Eluvio Logo\")",
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.87",
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",