@unvired/turboforms-embed-sdk 2.0.70 → 2.0.71

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.
@@ -30140,7 +30140,7 @@ class SmartFileComponent extends FieldComponent {
30140
30140
  correctOrientation: false,
30141
30141
  });
30142
30142
  } else {
30143
- let id = this.component.id;
30143
+ let id = this.id;
30144
30144
  isfileBrowse = false;
30145
30145
  window.isListenerSet = false;
30146
30146
  let eventCustom = new CustomEvent("openCamera", {
@@ -30176,7 +30176,7 @@ class SmartFileComponent extends FieldComponent {
30176
30176
  if (this.refs.toggleCameraMode) {
30177
30177
  this.addEventListener(this.refs.toggleCameraMode, 'click', (event) => {
30178
30178
  event.preventDefault();
30179
- let id = this.component.id;
30179
+ let id = this.id;
30180
30180
  isfileBrowse = false;
30181
30181
  window.isListenerSet = false;
30182
30182
  let eventCustom = new CustomEvent("openCamera", {
@@ -30245,9 +30245,9 @@ class SmartFileComponent extends FieldComponent {
30245
30245
  }
30246
30246
  }
30247
30247
  let that = this;
30248
- document.addEventListener('capureImageData', function (event) {
30248
+ this.addEventListener(document, 'capureImageData', function (event) {
30249
30249
  logger.info("[TF_SDK:84] ✅ event.detail.controlId =" + event.detail.controlId)
30250
- if (that.component.id == event.detail.controlId) {
30250
+ if (that.id == event.detail.controlId) {
30251
30251
  if (!window.isListenerSet) {
30252
30252
  const isBase64 = typeof event.detail.imageData === 'string' && event.detail.imageData.startsWith('data:');
30253
30253
  if (isBase64 || typeof window.resolveLocalFileSystemURL !== 'function') {
@@ -30295,9 +30295,9 @@ class SmartFileComponent extends FieldComponent {
30295
30295
  }, false);
30296
30296
 
30297
30297
 
30298
- document.addEventListener('capureImageDataForAndroidBrowser', function (event) {
30298
+ this.addEventListener(document, 'capureImageDataForAndroidBrowser', function (event) {
30299
30299
  logger.info("[TF_SDK:89] ✅ event.detail.controlId capureImageDataForAndroidBrowser =" + event.detail.controlId)
30300
- if (that.component.id == event.detail.controlId) {
30300
+ if (that.id == event.detail.controlId) {
30301
30301
  if (!window.isListenerSet) {
30302
30302
  that.compressFile([event.detail.imageData])
30303
30303
  // window.resolveLocalFileSystemURL(event.detail.imageData, (fileEntry) => {
@@ -41745,7 +41745,7 @@ initThemeHook();
41745
41745
  </div>
41746
41746
 
41747
41747
  <div id="sticky-footer">
41748
- <div class="build-version">SDK v2.0.70</div>
41748
+ <div class="build-version">SDK v2.0.71</div>
41749
41749
 
41750
41750
  <button class="footer-btn footer-btn-secondary" id="prevBtn" style="display:none" onclick="FormOnPrevious()">
41751
41751
  <i class="bi bi-chevron-left"></i> Previous