sales-frontend-bridge 0.0.36 → 0.0.37

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/dist/index.cjs CHANGED
@@ -2322,6 +2322,8 @@ var ExtraData = {
2322
2322
  args: [`roleCd=11,21`, `aaa=bbb`]
2323
2323
  }
2324
2324
  };
2325
+ var policyNumber = "300034894";
2326
+ var fpInfo = { uniqNo: "2210000" };
2325
2327
 
2326
2328
  // src/oz/hooks/use-document-info.tsx
2327
2329
  var import_react = __toESM(require_react());
@@ -2456,6 +2458,9 @@ function PromiseWithResolvers() {
2456
2458
  });
2457
2459
  return { promise, resolve, reject };
2458
2460
  }
2461
+ function ensureArray(arg) {
2462
+ return Array.isArray(arg) ? arg : [];
2463
+ }
2459
2464
 
2460
2465
  // src/oz/utils/bridge-util/oz-wrapper-util.ts
2461
2466
  async function CreateOzViewer(ozParam) {
@@ -2790,12 +2795,11 @@ async function CreateOzParam(documentList, extraData = {}) {
2790
2795
  if (data.inputJson) {
2791
2796
  result.push(`${prefix}connection.inputjson=${JSON.stringify(data.inputJson)}`);
2792
2797
  }
2793
- if (data.args) {
2794
- data.args.forEach((arg, idx2) => result.push(`${prefix}connection.args${idx2 + 1}=${arg}`));
2795
- }
2796
- if (data.extraParam) {
2797
- data.extraParam.forEach((param) => result.push(`${prefix}${param}`));
2798
- }
2798
+ data.args = ensureArray(data.args);
2799
+ data.args.push(`docCd=${docCode}`);
2800
+ data.args.forEach((arg, idx2) => result.push(`${prefix}connection.args${idx2 + 1}=${arg}`));
2801
+ data.extraParam = ensureArray(data.extraParam);
2802
+ data.extraParam.forEach((param) => result.push(`${prefix}${param}`));
2799
2803
  return result;
2800
2804
  });
2801
2805
  const params = [
@@ -2891,15 +2895,18 @@ exports.commonOzParam = commonOzParam;
2891
2895
  exports.commonPdfExportParam = commonPdfExportParam;
2892
2896
  exports.disableFocusOnValidation = disableFocusOnValidation;
2893
2897
  exports.enableFocusOnValidation = enableFocusOnValidation;
2898
+ exports.ensureArray = ensureArray;
2894
2899
  exports.extractFileName = extractFileName;
2895
2900
  exports.fetchDocument = fetchDocument;
2896
2901
  exports.fetchFont = fetchFont;
2902
+ exports.fpInfo = fpInfo;
2897
2903
  exports.getCurrentPage = getCurrentPage;
2898
2904
  exports.getFileListByGlobalIndex = getFileListByGlobalIndex;
2899
2905
  exports.getReportCountMemo = getReportCountMemo;
2900
2906
  exports.getTotalPageMemo = getTotalPageMemo;
2901
2907
  exports.getTotalPageOnAllDocuments = getTotalPageOnAllDocuments;
2902
2908
  exports.isCommentMode = isCommentMode;
2909
+ exports.policyNumber = policyNumber;
2903
2910
  exports.setCheckEform = setCheckEform;
2904
2911
  exports.setDisableCommentMode = setDisableCommentMode;
2905
2912
  exports.setEnableCommentMode = setEnableCommentMode;