sales-frontend-bridge 0.0.24 → 0.0.26

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
@@ -1683,7 +1683,7 @@ var NativeBridgeCore = class extends CommonBridgeCore {
1683
1683
  * @param options
1684
1684
  * @returns
1685
1685
  */
1686
- async callToTarget(action, option) {
1686
+ async callToTarget(action, option = {}) {
1687
1687
  return new Promise((resolve, reject) => {
1688
1688
  const promiseId = `${action}_${this.generatePromiseId()}`;
1689
1689
  console.log("[NativeBridgeCore callToNative] promiseId::", promiseId);
@@ -1855,6 +1855,40 @@ var NativeBridge = class extends CommonBridge {
1855
1855
  async downloadDocument(options) {
1856
1856
  return this.core.callToTarget("downloadDocument", options);
1857
1857
  }
1858
+ /**
1859
+ * ### Bridge for Oz
1860
+ * 오즈 파라미터에서 사용할 폰트 설정들을 조회하는 브릿지입니다
1861
+ * @example
1862
+ * ```tsx
1863
+ * // 사용 예시
1864
+ * await Bridge.native.getOzFontParam()
1865
+ * ```
1866
+ */
1867
+ async getOzFontParam() {
1868
+ return this.core.callToTarget("getOzFontParam");
1869
+ }
1870
+ /**
1871
+ * 로더 컴포넌트 show
1872
+ * @example
1873
+ * ```tsx
1874
+ * // 사용 예시
1875
+ * await Bridge.native.showLoader()
1876
+ * ```
1877
+ */
1878
+ async showLoader() {
1879
+ return this.core.callToTarget("showLoader");
1880
+ }
1881
+ /**
1882
+ * 로더 컴포넌트 hide
1883
+ * @example
1884
+ * ```tsx
1885
+ * // 사용 예시
1886
+ * Bridge.native.hideLoader()
1887
+ * ```
1888
+ */
1889
+ async hideLoader() {
1890
+ return this.core.callToTarget("hideLoader");
1891
+ }
1858
1892
  // TODO: 필요 플러그인들 추가
1859
1893
  };
1860
1894
 
@@ -1971,18 +2005,6 @@ var NativeBridgeOz = class extends CommonBridge {
1971
2005
  Object.assign({ param1: "", param2: "", param3: "", param4: "" }, options)
1972
2006
  );
1973
2007
  }
1974
- /**
1975
- * ### Bridge for Oz
1976
- * 오즈 파라미터에서 사용할 폰트 설정들을 조회하는 브릿지입니다
1977
- * @example
1978
- * ```tsx
1979
- * // 사용 예시
1980
- * await Bridge.native.getOzFontParam()
1981
- * ```
1982
- */
1983
- async getOzFontParam() {
1984
- return this.core.callToTarget("getOzFontParam");
1985
- }
1986
2008
  /**
1987
2009
  * ### Bridge for Oz
1988
2010
  * 서식의 진행중/완료 상태를 업데이트하는 브릿지
@@ -2041,28 +2063,6 @@ var NativeBridgeOz = class extends CommonBridge {
2041
2063
  async hideOzPdfViewer() {
2042
2064
  return this.core.callToTarget("hideOzPdfViewer");
2043
2065
  }
2044
- /**
2045
- * 로더 컴포넌트 show
2046
- * @example
2047
- * ```tsx
2048
- * // 사용 예시
2049
- * await Bridge.native.showLoader()
2050
- * ```
2051
- */
2052
- async showLoader() {
2053
- return this.core.callToTarget("showLoader");
2054
- }
2055
- /**
2056
- * 로더 컴포넌트 hide
2057
- * @example
2058
- * ```tsx
2059
- * // 사용 예시
2060
- * await Bridge.native.hideLoader()
2061
- * ```
2062
- */
2063
- async hideLoader() {
2064
- return this.core.callToTarget("hideLoader");
2065
- }
2066
2066
  // TODO: 필요 플러그인들 추가
2067
2067
  };
2068
2068
 
@@ -2213,7 +2213,7 @@ async function fetchDocument(options) {
2213
2213
  return data.map((i) => ({ ...i, startPage: 0, endPage: 0 }));
2214
2214
  }
2215
2215
  async function fetchFont() {
2216
- const { data: fontMap } = await Bridge.nativeOz.getOzFontParam();
2216
+ const { data: fontMap } = await Bridge.native.getOzFontParam();
2217
2217
  const fontParms = Object.keys(fontMap).map((i) => `font.${i}=${fontMap[i]}`);
2218
2218
  return fontParms;
2219
2219
  }