@vizbeetv/homesso-sdk-qa 1.0.8-rc1 → 1.0.8-rc2

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.8-rc1';
588
+ '1.0.8-rc2';
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;
@@ -1106,6 +1106,7 @@ var VizbeeSnackbar = /** @class */ (function () {
1106
1106
  * Creates a new instance of VizbeeSnackbar
1107
1107
  */
1108
1108
  function VizbeeSnackbar() {
1109
+ this.currentPosition = 'bottom-right';
1109
1110
  this.BASE_DIMENSIONS = {
1110
1111
  REFERENCE_WIDTH: 1920,
1111
1112
  REFERENCE_HEIGHT: 1080,
@@ -1131,10 +1132,6 @@ var VizbeeSnackbar = /** @class */ (function () {
1131
1132
  clearTimeout(this.showSnackbarTimerId);
1132
1133
  this.showSnackbarTimerId = window.setTimeout(function () {
1133
1134
  _this.createSnackbar(options);
1134
- if (_this.currentSnackbar) {
1135
- _this.currentSnackbar.style.transform =
1136
- _this.getSlideTransform('top-right');
1137
- }
1138
1135
  if (options === null || options === void 0 ? void 0 : options.shouldAnimateIcon) {
1139
1136
  _this.startIconAnimation(options.iconBase64Strings);
1140
1137
  }
@@ -1155,7 +1152,8 @@ var VizbeeSnackbar = /** @class */ (function () {
1155
1152
  this.timeoutId = undefined;
1156
1153
  }
1157
1154
  if (this.currentSnackbar) {
1158
- this.currentSnackbar.style.transform = this.getSlideTransform('bottom-right', true);
1155
+ // Slide out toward the same edge the snackbar entered from.
1156
+ this.currentSnackbar.style.transform = this.getSlideTransform(this.currentPosition, true);
1159
1157
  this.currentSnackbar.style.opacity = '0';
1160
1158
  setTimeout(function () {
1161
1159
  var _a;
@@ -1225,6 +1223,7 @@ var VizbeeSnackbar = /** @class */ (function () {
1225
1223
  return ((options === null || options === void 0 ? void 0 : options.direction) || 'ltr') === 'rtl';
1226
1224
  };
1227
1225
  VizbeeSnackbar.prototype.createSnackbar = function (options) {
1226
+ this.currentPosition = (options === null || options === void 0 ? void 0 : options.position) || 'bottom-right';
1228
1227
  var snackbar = document.createElement('div');
1229
1228
  snackbar.style.cssText = this.getSnackbarStyles(options);
1230
1229
  var isRtl = this.isRtl(options);
@@ -1857,7 +1856,7 @@ var setupHomeSSO = function () {
1857
1856
  // Replaced at build time with package.json's version by
1858
1857
  // @rollup/plugin-replace (same token the metrics manager uses), so
1859
1858
  // integrators can read the loaded SDK version off the namespace.
1860
- VERSION: '1.0.8-rc1',
1859
+ VERSION: '1.0.8-rc2',
1861
1860
  };
1862
1861
  window.dispatchEvent(new Event('VIZBEE_HOMESSO_READY'));
1863
1862
  };
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.8-rc1';
584
+ '1.0.8-rc2';
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;
@@ -1102,6 +1102,7 @@ var VizbeeSnackbar = /** @class */ (function () {
1102
1102
  * Creates a new instance of VizbeeSnackbar
1103
1103
  */
1104
1104
  function VizbeeSnackbar() {
1105
+ this.currentPosition = 'bottom-right';
1105
1106
  this.BASE_DIMENSIONS = {
1106
1107
  REFERENCE_WIDTH: 1920,
1107
1108
  REFERENCE_HEIGHT: 1080,
@@ -1127,10 +1128,6 @@ var VizbeeSnackbar = /** @class */ (function () {
1127
1128
  clearTimeout(this.showSnackbarTimerId);
1128
1129
  this.showSnackbarTimerId = window.setTimeout(function () {
1129
1130
  _this.createSnackbar(options);
1130
- if (_this.currentSnackbar) {
1131
- _this.currentSnackbar.style.transform =
1132
- _this.getSlideTransform('top-right');
1133
- }
1134
1131
  if (options === null || options === void 0 ? void 0 : options.shouldAnimateIcon) {
1135
1132
  _this.startIconAnimation(options.iconBase64Strings);
1136
1133
  }
@@ -1151,7 +1148,8 @@ var VizbeeSnackbar = /** @class */ (function () {
1151
1148
  this.timeoutId = undefined;
1152
1149
  }
1153
1150
  if (this.currentSnackbar) {
1154
- this.currentSnackbar.style.transform = this.getSlideTransform('bottom-right', true);
1151
+ // Slide out toward the same edge the snackbar entered from.
1152
+ this.currentSnackbar.style.transform = this.getSlideTransform(this.currentPosition, true);
1155
1153
  this.currentSnackbar.style.opacity = '0';
1156
1154
  setTimeout(function () {
1157
1155
  var _a;
@@ -1221,6 +1219,7 @@ var VizbeeSnackbar = /** @class */ (function () {
1221
1219
  return ((options === null || options === void 0 ? void 0 : options.direction) || 'ltr') === 'rtl';
1222
1220
  };
1223
1221
  VizbeeSnackbar.prototype.createSnackbar = function (options) {
1222
+ this.currentPosition = (options === null || options === void 0 ? void 0 : options.position) || 'bottom-right';
1224
1223
  var snackbar = document.createElement('div');
1225
1224
  snackbar.style.cssText = this.getSnackbarStyles(options);
1226
1225
  var isRtl = this.isRtl(options);
@@ -1853,7 +1852,7 @@ var setupHomeSSO = function () {
1853
1852
  // Replaced at build time with package.json's version by
1854
1853
  // @rollup/plugin-replace (same token the metrics manager uses), so
1855
1854
  // integrators can read the loaded SDK version off the namespace.
1856
- VERSION: '1.0.8-rc1',
1855
+ VERSION: '1.0.8-rc2',
1857
1856
  };
1858
1857
  window.dispatchEvent(new Event('VIZBEE_HOMESSO_READY'));
1859
1858
  };
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.8-rc1';
485
+ '1.0.8-rc2';
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;
@@ -977,6 +977,7 @@ class VizbeeSnackbar {
977
977
  * Creates a new instance of VizbeeSnackbar
978
978
  */
979
979
  constructor() {
980
+ this.currentPosition = 'bottom-right';
980
981
  this.BASE_DIMENSIONS = {
981
982
  REFERENCE_WIDTH: 1920,
982
983
  REFERENCE_HEIGHT: 1080,
@@ -1001,10 +1002,6 @@ class VizbeeSnackbar {
1001
1002
  clearTimeout(this.showSnackbarTimerId);
1002
1003
  this.showSnackbarTimerId = window.setTimeout(() => {
1003
1004
  this.createSnackbar(options);
1004
- if (this.currentSnackbar) {
1005
- this.currentSnackbar.style.transform =
1006
- this.getSlideTransform('top-right');
1007
- }
1008
1005
  if (options === null || options === void 0 ? void 0 : options.shouldAnimateIcon) {
1009
1006
  this.startIconAnimation(options.iconBase64Strings);
1010
1007
  }
@@ -1024,7 +1021,8 @@ class VizbeeSnackbar {
1024
1021
  this.timeoutId = undefined;
1025
1022
  }
1026
1023
  if (this.currentSnackbar) {
1027
- this.currentSnackbar.style.transform = this.getSlideTransform('bottom-right', true);
1024
+ // Slide out toward the same edge the snackbar entered from.
1025
+ this.currentSnackbar.style.transform = this.getSlideTransform(this.currentPosition, true);
1028
1026
  this.currentSnackbar.style.opacity = '0';
1029
1027
  setTimeout(() => {
1030
1028
  var _a;
@@ -1100,6 +1098,7 @@ class VizbeeSnackbar {
1100
1098
  return ((options === null || options === void 0 ? void 0 : options.direction) || 'ltr') === 'rtl';
1101
1099
  }
1102
1100
  createSnackbar(options) {
1101
+ this.currentPosition = (options === null || options === void 0 ? void 0 : options.position) || 'bottom-right';
1103
1102
  const snackbar = document.createElement('div');
1104
1103
  snackbar.style.cssText = this.getSnackbarStyles(options);
1105
1104
  const isRtl = this.isRtl(options);
@@ -1748,7 +1747,7 @@ const setupHomeSSO = () => {
1748
1747
  // Replaced at build time with package.json's version by
1749
1748
  // @rollup/plugin-replace (same token the metrics manager uses), so
1750
1749
  // integrators can read the loaded SDK version off the namespace.
1751
- VERSION: '1.0.8-rc1',
1750
+ VERSION: '1.0.8-rc2',
1752
1751
  };
1753
1752
  window.dispatchEvent(new Event('VIZBEE_HOMESSO_READY'));
1754
1753
  };
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.8-rc1';
481
+ '1.0.8-rc2';
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;
@@ -973,6 +973,7 @@ class VizbeeSnackbar {
973
973
  * Creates a new instance of VizbeeSnackbar
974
974
  */
975
975
  constructor() {
976
+ this.currentPosition = 'bottom-right';
976
977
  this.BASE_DIMENSIONS = {
977
978
  REFERENCE_WIDTH: 1920,
978
979
  REFERENCE_HEIGHT: 1080,
@@ -997,10 +998,6 @@ class VizbeeSnackbar {
997
998
  clearTimeout(this.showSnackbarTimerId);
998
999
  this.showSnackbarTimerId = window.setTimeout(() => {
999
1000
  this.createSnackbar(options);
1000
- if (this.currentSnackbar) {
1001
- this.currentSnackbar.style.transform =
1002
- this.getSlideTransform('top-right');
1003
- }
1004
1001
  if (options === null || options === void 0 ? void 0 : options.shouldAnimateIcon) {
1005
1002
  this.startIconAnimation(options.iconBase64Strings);
1006
1003
  }
@@ -1020,7 +1017,8 @@ class VizbeeSnackbar {
1020
1017
  this.timeoutId = undefined;
1021
1018
  }
1022
1019
  if (this.currentSnackbar) {
1023
- this.currentSnackbar.style.transform = this.getSlideTransform('bottom-right', true);
1020
+ // Slide out toward the same edge the snackbar entered from.
1021
+ this.currentSnackbar.style.transform = this.getSlideTransform(this.currentPosition, true);
1024
1022
  this.currentSnackbar.style.opacity = '0';
1025
1023
  setTimeout(() => {
1026
1024
  var _a;
@@ -1096,6 +1094,7 @@ class VizbeeSnackbar {
1096
1094
  return ((options === null || options === void 0 ? void 0 : options.direction) || 'ltr') === 'rtl';
1097
1095
  }
1098
1096
  createSnackbar(options) {
1097
+ this.currentPosition = (options === null || options === void 0 ? void 0 : options.position) || 'bottom-right';
1099
1098
  const snackbar = document.createElement('div');
1100
1099
  snackbar.style.cssText = this.getSnackbarStyles(options);
1101
1100
  const isRtl = this.isRtl(options);
@@ -1744,7 +1743,7 @@ const setupHomeSSO = () => {
1744
1743
  // Replaced at build time with package.json's version by
1745
1744
  // @rollup/plugin-replace (same token the metrics manager uses), so
1746
1745
  // integrators can read the loaded SDK version off the namespace.
1747
- VERSION: '1.0.8-rc1',
1746
+ VERSION: '1.0.8-rc2',
1748
1747
  };
1749
1748
  window.dispatchEvent(new Event('VIZBEE_HOMESSO_READY'));
1750
1749
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vizbeetv/homesso-sdk-qa",
3
- "version": "1.0.8-rc1",
3
+ "version": "1.0.8-rc2",
4
4
  "description": "TV app authentication library (QA)",
5
5
  "main": "./es5/index.cjs",
6
6
  "module": "./es5/index.mjs",
@@ -66,6 +66,7 @@ export declare class VizbeeSnackbar {
66
66
  private currentSnackbar?;
67
67
  private animationInterval?;
68
68
  private currentIconElement?;
69
+ private currentPosition;
69
70
  private readonly uiManager;
70
71
  /** Invoked whenever a visible snackbar is torn down (manual hide or auto-hide). */
71
72
  onHide?: () => void;