@vizbeetv/homesso-sdk-qa 1.0.4 → 1.0.5

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/es5/index.cjs CHANGED
@@ -585,7 +585,7 @@ var VizbeeMetricsManager = /** @class */ (function () {
585
585
  var _a, _b, _c, _d;
586
586
  var attributes = {};
587
587
  attributes[VizbeeMetricsConstants.METRICS_ATTR_SCREEN_HOMESSO_SDK_VERSION] =
588
- '1.0.4';
588
+ '1.0.5';
589
589
  attributes['REMOTE_FRIENDLY_NAME'] = (_a = this.senderInfo) === null || _a === void 0 ? void 0 : _a.friendlyName;
590
590
  attributes['REMOTE_DEVICE_ID'] = (_b = this.senderInfo) === null || _b === void 0 ? void 0 : _b.deviceId;
591
591
  attributes['REMOTE_DEVICE_TYPE'] = (_c = this.senderInfo) === null || _c === void 0 ? void 0 : _c.deviceType;
@@ -1340,6 +1340,11 @@ var VizbeeHomeSSOManager = /** @class */ (function () {
1340
1340
  this.isScreenSignedIn = false;
1341
1341
  /** @internal Tracks if sign-in process is currently active */
1342
1342
  this.isSignInInProgress = false;
1343
+ /**
1344
+ * @internal Tracks which modal is currently shown so the same progress modal
1345
+ * is not re-shown (snackbar.show() hides + re-mounts, which would flicker).
1346
+ */
1347
+ this.shownModal = 'none';
1343
1348
  /** @internal Information about the sender device */
1344
1349
  this.senderInfo = null;
1345
1350
  this.signInHandler = null;
@@ -1578,6 +1583,8 @@ var VizbeeHomeSSOManager = /** @class */ (function () {
1578
1583
  if (_d.sent()) {
1579
1584
  return [2 /*return*/];
1580
1585
  }
1586
+ this.isSignInInProgress = true;
1587
+ this.updateProgressUI();
1581
1588
  signInInfo = {
1582
1589
  isSignedIn: this.isRemoteSignedIn,
1583
1590
  signInType: signInType,
@@ -1709,6 +1716,12 @@ var VizbeeHomeSSOManager = /** @class */ (function () {
1709
1716
  * @internal
1710
1717
  */
1711
1718
  VizbeeHomeSSOManager.prototype.updateProgressUI = function () {
1719
+ var targetModal = this.isRemoteSignedIn ? 'progress' : 'informational';
1720
+ // Avoid re-showing the same modal
1721
+ if (this.shownModal === targetModal) {
1722
+ return;
1723
+ }
1724
+ this.shownModal = targetModal;
1712
1725
  if (!this.isRemoteSignedIn) {
1713
1726
  var modalOptions = this.vizbeeHomeSSOUIManager.getInformationalSignInModalConfig();
1714
1727
  this.snackbar.show(modalOptions);
@@ -1730,6 +1743,7 @@ var VizbeeHomeSSOManager = /** @class */ (function () {
1730
1743
  // themed/localized like the informational and progress modals.
1731
1744
  this.vizbeeHomeSSOUIManager.setSuccessSignInModalConfig({ duration: 10000 });
1732
1745
  var modalOptions = this.vizbeeHomeSSOUIManager.getSuccessSignInModalConfig();
1746
+ this.shownModal = 'success';
1733
1747
  this.snackbar.show(modalOptions);
1734
1748
  };
1735
1749
  /**
@@ -1739,6 +1753,7 @@ var VizbeeHomeSSOManager = /** @class */ (function () {
1739
1753
  * @internal
1740
1754
  */
1741
1755
  VizbeeHomeSSOManager.prototype.updateFailureUI = function () {
1756
+ this.shownModal = 'none';
1742
1757
  this.snackbar.hide();
1743
1758
  };
1744
1759
  /** @internal Singleton instance of the manager */
@@ -1824,7 +1839,7 @@ var setupHomeSSO = function () {
1824
1839
  // Replaced at build time with package.json's version by
1825
1840
  // @rollup/plugin-replace (same token the metrics manager uses), so
1826
1841
  // integrators can read the loaded SDK version off the namespace.
1827
- VERSION: '1.0.4',
1842
+ VERSION: '1.0.5',
1828
1843
  };
1829
1844
  window.dispatchEvent(new Event('VIZBEE_HOMESSO_READY'));
1830
1845
  };
package/es5/index.mjs CHANGED
@@ -581,7 +581,7 @@ var VizbeeMetricsManager = /** @class */ (function () {
581
581
  var _a, _b, _c, _d;
582
582
  var attributes = {};
583
583
  attributes[VizbeeMetricsConstants.METRICS_ATTR_SCREEN_HOMESSO_SDK_VERSION] =
584
- '1.0.4';
584
+ '1.0.5';
585
585
  attributes['REMOTE_FRIENDLY_NAME'] = (_a = this.senderInfo) === null || _a === void 0 ? void 0 : _a.friendlyName;
586
586
  attributes['REMOTE_DEVICE_ID'] = (_b = this.senderInfo) === null || _b === void 0 ? void 0 : _b.deviceId;
587
587
  attributes['REMOTE_DEVICE_TYPE'] = (_c = this.senderInfo) === null || _c === void 0 ? void 0 : _c.deviceType;
@@ -1336,6 +1336,11 @@ var VizbeeHomeSSOManager = /** @class */ (function () {
1336
1336
  this.isScreenSignedIn = false;
1337
1337
  /** @internal Tracks if sign-in process is currently active */
1338
1338
  this.isSignInInProgress = false;
1339
+ /**
1340
+ * @internal Tracks which modal is currently shown so the same progress modal
1341
+ * is not re-shown (snackbar.show() hides + re-mounts, which would flicker).
1342
+ */
1343
+ this.shownModal = 'none';
1339
1344
  /** @internal Information about the sender device */
1340
1345
  this.senderInfo = null;
1341
1346
  this.signInHandler = null;
@@ -1574,6 +1579,8 @@ var VizbeeHomeSSOManager = /** @class */ (function () {
1574
1579
  if (_d.sent()) {
1575
1580
  return [2 /*return*/];
1576
1581
  }
1582
+ this.isSignInInProgress = true;
1583
+ this.updateProgressUI();
1577
1584
  signInInfo = {
1578
1585
  isSignedIn: this.isRemoteSignedIn,
1579
1586
  signInType: signInType,
@@ -1705,6 +1712,12 @@ var VizbeeHomeSSOManager = /** @class */ (function () {
1705
1712
  * @internal
1706
1713
  */
1707
1714
  VizbeeHomeSSOManager.prototype.updateProgressUI = function () {
1715
+ var targetModal = this.isRemoteSignedIn ? 'progress' : 'informational';
1716
+ // Avoid re-showing the same modal
1717
+ if (this.shownModal === targetModal) {
1718
+ return;
1719
+ }
1720
+ this.shownModal = targetModal;
1708
1721
  if (!this.isRemoteSignedIn) {
1709
1722
  var modalOptions = this.vizbeeHomeSSOUIManager.getInformationalSignInModalConfig();
1710
1723
  this.snackbar.show(modalOptions);
@@ -1726,6 +1739,7 @@ var VizbeeHomeSSOManager = /** @class */ (function () {
1726
1739
  // themed/localized like the informational and progress modals.
1727
1740
  this.vizbeeHomeSSOUIManager.setSuccessSignInModalConfig({ duration: 10000 });
1728
1741
  var modalOptions = this.vizbeeHomeSSOUIManager.getSuccessSignInModalConfig();
1742
+ this.shownModal = 'success';
1729
1743
  this.snackbar.show(modalOptions);
1730
1744
  };
1731
1745
  /**
@@ -1735,6 +1749,7 @@ var VizbeeHomeSSOManager = /** @class */ (function () {
1735
1749
  * @internal
1736
1750
  */
1737
1751
  VizbeeHomeSSOManager.prototype.updateFailureUI = function () {
1752
+ this.shownModal = 'none';
1738
1753
  this.snackbar.hide();
1739
1754
  };
1740
1755
  /** @internal Singleton instance of the manager */
@@ -1820,7 +1835,7 @@ var setupHomeSSO = function () {
1820
1835
  // Replaced at build time with package.json's version by
1821
1836
  // @rollup/plugin-replace (same token the metrics manager uses), so
1822
1837
  // integrators can read the loaded SDK version off the namespace.
1823
- VERSION: '1.0.4',
1838
+ VERSION: '1.0.5',
1824
1839
  };
1825
1840
  window.dispatchEvent(new Event('VIZBEE_HOMESSO_READY'));
1826
1841
  };
package/es6/index.cjs CHANGED
@@ -482,7 +482,7 @@ class VizbeeMetricsManager {
482
482
  var _a, _b, _c, _d;
483
483
  const attributes = {};
484
484
  attributes[VizbeeMetricsConstants.METRICS_ATTR_SCREEN_HOMESSO_SDK_VERSION] =
485
- '1.0.4';
485
+ '1.0.5';
486
486
  attributes['REMOTE_FRIENDLY_NAME'] = (_a = this.senderInfo) === null || _a === void 0 ? void 0 : _a.friendlyName;
487
487
  attributes['REMOTE_DEVICE_ID'] = (_b = this.senderInfo) === null || _b === void 0 ? void 0 : _b.deviceId;
488
488
  attributes['REMOTE_DEVICE_TYPE'] = (_c = this.senderInfo) === null || _c === void 0 ? void 0 : _c.deviceType;
@@ -1275,6 +1275,11 @@ class VizbeeHomeSSOManager {
1275
1275
  this.isScreenSignedIn = false;
1276
1276
  /** @internal Tracks if sign-in process is currently active */
1277
1277
  this.isSignInInProgress = false;
1278
+ /**
1279
+ * @internal Tracks which modal is currently shown so the same progress modal
1280
+ * is not re-shown (snackbar.show() hides + re-mounts, which would flicker).
1281
+ */
1282
+ this.shownModal = 'none';
1278
1283
  /** @internal Information about the sender device */
1279
1284
  this.senderInfo = null;
1280
1285
  this.signInHandler = null;
@@ -1495,6 +1500,8 @@ class VizbeeHomeSSOManager {
1495
1500
  if (yield this.shouldIgnoreSignInRequest()) {
1496
1501
  return;
1497
1502
  }
1503
+ this.isSignInInProgress = true;
1504
+ this.updateProgressUI();
1498
1505
  const signInInfo = {
1499
1506
  isSignedIn: this.isRemoteSignedIn,
1500
1507
  signInType: signInType,
@@ -1603,6 +1610,12 @@ class VizbeeHomeSSOManager {
1603
1610
  * @internal
1604
1611
  */
1605
1612
  updateProgressUI() {
1613
+ const targetModal = this.isRemoteSignedIn ? 'progress' : 'informational';
1614
+ // Avoid re-showing the same modal
1615
+ if (this.shownModal === targetModal) {
1616
+ return;
1617
+ }
1618
+ this.shownModal = targetModal;
1606
1619
  if (!this.isRemoteSignedIn) {
1607
1620
  const modalOptions = this.vizbeeHomeSSOUIManager.getInformationalSignInModalConfig();
1608
1621
  this.snackbar.show(modalOptions);
@@ -1624,6 +1637,7 @@ class VizbeeHomeSSOManager {
1624
1637
  // themed/localized like the informational and progress modals.
1625
1638
  this.vizbeeHomeSSOUIManager.setSuccessSignInModalConfig({ duration: 10000 });
1626
1639
  const modalOptions = this.vizbeeHomeSSOUIManager.getSuccessSignInModalConfig();
1640
+ this.shownModal = 'success';
1627
1641
  this.snackbar.show(modalOptions);
1628
1642
  }
1629
1643
  /**
@@ -1633,6 +1647,7 @@ class VizbeeHomeSSOManager {
1633
1647
  * @internal
1634
1648
  */
1635
1649
  updateFailureUI() {
1650
+ this.shownModal = 'none';
1636
1651
  this.snackbar.hide();
1637
1652
  }
1638
1653
  }
@@ -1716,7 +1731,7 @@ const setupHomeSSO = () => {
1716
1731
  // Replaced at build time with package.json's version by
1717
1732
  // @rollup/plugin-replace (same token the metrics manager uses), so
1718
1733
  // integrators can read the loaded SDK version off the namespace.
1719
- VERSION: '1.0.4',
1734
+ VERSION: '1.0.5',
1720
1735
  };
1721
1736
  window.dispatchEvent(new Event('VIZBEE_HOMESSO_READY'));
1722
1737
  };
package/es6/index.mjs CHANGED
@@ -478,7 +478,7 @@ class VizbeeMetricsManager {
478
478
  var _a, _b, _c, _d;
479
479
  const attributes = {};
480
480
  attributes[VizbeeMetricsConstants.METRICS_ATTR_SCREEN_HOMESSO_SDK_VERSION] =
481
- '1.0.4';
481
+ '1.0.5';
482
482
  attributes['REMOTE_FRIENDLY_NAME'] = (_a = this.senderInfo) === null || _a === void 0 ? void 0 : _a.friendlyName;
483
483
  attributes['REMOTE_DEVICE_ID'] = (_b = this.senderInfo) === null || _b === void 0 ? void 0 : _b.deviceId;
484
484
  attributes['REMOTE_DEVICE_TYPE'] = (_c = this.senderInfo) === null || _c === void 0 ? void 0 : _c.deviceType;
@@ -1271,6 +1271,11 @@ class VizbeeHomeSSOManager {
1271
1271
  this.isScreenSignedIn = false;
1272
1272
  /** @internal Tracks if sign-in process is currently active */
1273
1273
  this.isSignInInProgress = false;
1274
+ /**
1275
+ * @internal Tracks which modal is currently shown so the same progress modal
1276
+ * is not re-shown (snackbar.show() hides + re-mounts, which would flicker).
1277
+ */
1278
+ this.shownModal = 'none';
1274
1279
  /** @internal Information about the sender device */
1275
1280
  this.senderInfo = null;
1276
1281
  this.signInHandler = null;
@@ -1491,6 +1496,8 @@ class VizbeeHomeSSOManager {
1491
1496
  if (yield this.shouldIgnoreSignInRequest()) {
1492
1497
  return;
1493
1498
  }
1499
+ this.isSignInInProgress = true;
1500
+ this.updateProgressUI();
1494
1501
  const signInInfo = {
1495
1502
  isSignedIn: this.isRemoteSignedIn,
1496
1503
  signInType: signInType,
@@ -1599,6 +1606,12 @@ class VizbeeHomeSSOManager {
1599
1606
  * @internal
1600
1607
  */
1601
1608
  updateProgressUI() {
1609
+ const targetModal = this.isRemoteSignedIn ? 'progress' : 'informational';
1610
+ // Avoid re-showing the same modal
1611
+ if (this.shownModal === targetModal) {
1612
+ return;
1613
+ }
1614
+ this.shownModal = targetModal;
1602
1615
  if (!this.isRemoteSignedIn) {
1603
1616
  const modalOptions = this.vizbeeHomeSSOUIManager.getInformationalSignInModalConfig();
1604
1617
  this.snackbar.show(modalOptions);
@@ -1620,6 +1633,7 @@ class VizbeeHomeSSOManager {
1620
1633
  // themed/localized like the informational and progress modals.
1621
1634
  this.vizbeeHomeSSOUIManager.setSuccessSignInModalConfig({ duration: 10000 });
1622
1635
  const modalOptions = this.vizbeeHomeSSOUIManager.getSuccessSignInModalConfig();
1636
+ this.shownModal = 'success';
1623
1637
  this.snackbar.show(modalOptions);
1624
1638
  }
1625
1639
  /**
@@ -1629,6 +1643,7 @@ class VizbeeHomeSSOManager {
1629
1643
  * @internal
1630
1644
  */
1631
1645
  updateFailureUI() {
1646
+ this.shownModal = 'none';
1632
1647
  this.snackbar.hide();
1633
1648
  }
1634
1649
  }
@@ -1712,7 +1727,7 @@ const setupHomeSSO = () => {
1712
1727
  // Replaced at build time with package.json's version by
1713
1728
  // @rollup/plugin-replace (same token the metrics manager uses), so
1714
1729
  // integrators can read the loaded SDK version off the namespace.
1715
- VERSION: '1.0.4',
1730
+ VERSION: '1.0.5',
1716
1731
  };
1717
1732
  window.dispatchEvent(new Event('VIZBEE_HOMESSO_READY'));
1718
1733
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizbeetv/homesso-sdk-qa",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "TV app authentication library (QA)",
5
5
  "main": "./es5/index.cjs",
6
6
  "module": "./es5/index.mjs",
@@ -37,6 +37,11 @@ export declare class VizbeeHomeSSOManager implements VizbeeSignInStatusCallback
37
37
  private isScreenSignedIn;
38
38
  /** @internal Tracks if sign-in process is currently active */
39
39
  private isSignInInProgress;
40
+ /**
41
+ * @internal Tracks which modal is currently shown so the same progress modal
42
+ * is not re-shown (snackbar.show() hides + re-mounts, which would flicker).
43
+ */
44
+ private shownModal;
40
45
  /** @internal UI manager instance for handling SSO-related displays */
41
46
  private vizbeeHomeSSOUIManager;
42
47
  /** @internal Snackbar instance for showing notifications */