@unvired/turboforms-embed-sdk 1.0.29 → 1.0.30

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.
@@ -60710,7 +60710,7 @@ window.CommentOnBack = CommentOnBack;
60710
60710
 
60711
60711
 
60712
60712
  <div id="sticky-footer">
60713
- <div class="build-version">SDK v1.0.29</div>
60713
+ <div class="build-version">SDK v1.0.30</div>
60714
60714
  <div class="relative-position">
60715
60715
  <button id="unvired-more-btn" class="ui button primary dataGrid-addRow" onclick="toggleTooltip()">
60716
60716
  <i class="icon options"></i>
@@ -27948,7 +27948,7 @@ select.ui.dropdown {
27948
27948
  <div id="formio-cmt" style="margin-bottom: 20px;"></div>
27949
27949
  </div>
27950
27950
  <div id="sticky-footer">
27951
- <div class="build-version">SDK v1.0.29</div>
27951
+ <div class="build-version">SDK v1.0.30</div>
27952
27952
  <button class="ui button primary dataGrid-addRow" id="saveBtn" disabled="true" onclick="FormOnSave()">
27953
27953
  <i class="icon save large"></i>Save
27954
27954
  </button>
@@ -68256,7 +68256,7 @@ window.CommentOnBack = CommentOnBack;
68256
68256
  );
68257
68257
  if (!window.__unviredSdkScriptsLoaded && !window.__unviredSdkScriptsLoading) {
68258
68258
  window.__unviredSdkScriptsLoading = true;
68259
- console.log("[SDK:10] \u{1F527} Loading SDK scripts (jQuery, Formio, Recogito, LESS, components)...");
68259
+ console.log("[SDK:10] \u{1F527} Loading SDK scripts (jQuery, Forms, Recogito, LESS, components)...");
68260
68260
  if (scriptContents[0] && scriptContents[0].trim()) {
68261
68261
  const jqueryScript = document.createElement("script");
68262
68262
  jqueryScript.textContent = scriptContents[0];
@@ -68265,7 +68265,7 @@ window.CommentOnBack = CommentOnBack;
68265
68265
  }
68266
68266
  if (loaderElement) {
68267
68267
  const loaderText = loaderElement.querySelector(".sdk-loader-text");
68268
- if (loaderText) loaderText.textContent = "Loading Formio Library...";
68268
+ if (loaderText) loaderText.textContent = "Loading Forms Library...";
68269
68269
  }
68270
68270
  try {
68271
68271
  await new Promise((resolve, reject) => {
@@ -68274,14 +68274,14 @@ window.CommentOnBack = CommentOnBack;
68274
68274
  formioScript.async = false;
68275
68275
  formioScript.onload = () => {
68276
68276
  if (typeof window.Formio !== "undefined") {
68277
- console.log("[SDK:10.2] \u2705 Formio library loaded from:", options.formioLibPath.formioPath);
68277
+ console.log("[SDK:10.2] \u2705 Forms library loaded from:", options.formioLibPath.formioPath);
68278
68278
  resolve();
68279
68279
  } else {
68280
- reject(new Error("Formio script loaded but window.Formio is undefined"));
68280
+ reject(new Error("Forms script loaded but window.Forms is undefined"));
68281
68281
  }
68282
68282
  };
68283
68283
  formioScript.onerror = () => {
68284
- reject(new Error(`Failed to load Formio script from ${options.formioLibPath.formioPath}`));
68284
+ reject(new Error(`Failed to load Forms script from ${options.formioLibPath.formioPath}`));
68285
68285
  };
68286
68286
  document.head.appendChild(formioScript);
68287
68287
  });
@@ -68350,7 +68350,7 @@ window.CommentOnBack = CommentOnBack;
68350
68350
  } else {
68351
68351
  console.log("[SDK:10] \u2705 SDK scripts already loaded \u2014 skipping injection");
68352
68352
  if (typeof window.Formio === "undefined") {
68353
- const errorMsg = `ErrorCode : 005, Formio library not available even though scripts were loaded. Path: ${options.formioLibPath.formioPath}`;
68353
+ const errorMsg = `ErrorCode : 005, Forms library not available even though scripts were loaded. Path: ${options.formioLibPath.formioPath}`;
68354
68354
  console.error(errorMsg);
68355
68355
  if (loaderElement) {
68356
68356
  loaderElement.classList.add("hidden");
@@ -68366,7 +68366,7 @@ window.CommentOnBack = CommentOnBack;
68366
68366
  });
68367
68367
  throw new Error(errorMsg);
68368
68368
  }
68369
- console.log("[SDK:10] \u2705 Formio verified (previously loaded)");
68369
+ console.log("[SDK:10] \u2705 Forms verified (previously loaded)");
68370
68370
  }
68371
68371
  window.FORM_TEMPLATE = mergedWithMasterData;
68372
68372
  window.FORM_PREVIOUS_DATA = submissionData;
@@ -68470,7 +68470,7 @@ window.CommentOnBack = CommentOnBack;
68470
68470
  if (loaderText) loaderText.textContent = "Initializing Form...";
68471
68471
  }
68472
68472
  if (typeof window.loadRNform !== "function") {
68473
- console.log("[SDK:14] \u23F3 loadRNform not ready yet \u2014 waiting for web-unvired-formio.js to signal...");
68473
+ console.log("[SDK:14] \u23F3 loadRNform not ready yet \u2014 waiting for web-unvired.js to signal...");
68474
68474
  await new Promise((resolve) => {
68475
68475
  const onReady = () => {
68476
68476
  document.removeEventListener("LoadRNformReady", onReady);
@@ -68485,7 +68485,7 @@ window.CommentOnBack = CommentOnBack;
68485
68485
  } else {
68486
68486
  console.log("[SDK:14] \u2705 loadRNform already available \u2014 invoking immediately");
68487
68487
  }
68488
- console.log("[SDK:14] \u{1F680} Handing off to loadRNform (web-unvired-formio.js)...");
68488
+ console.log("[SDK:14] \u{1F680} Handing off to loadRNform (web-unvired.js)...");
68489
68489
  await window.loadRNform(
68490
68490
  mergedWithMasterData,
68491
68491
  processedSubmissionData,
@@ -68561,7 +68561,7 @@ window.deleteAppDocument = async function(id) {
68561
68561
  window.getAllDocuments = getAllDocuments;
68562
68562
  window.hasDocuments = hasDocuments;
68563
68563
  function getBuildVersion() {
68564
- return "1.0.29";
68564
+ return "1.0.30";
68565
68565
  }
68566
68566
  export {
68567
68567
  getBuildVersion,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unvired/turboforms-embed-sdk",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "Reusable vanilla JS form library that works with React, Angular, Ionic, etc.",
5
5
  "main": "dist/unvired-forms-sdk.js",
6
6
  "types": "dist/index.d.ts",