@gct-paas/word 0.1.65 → 0.1.67-beta.0

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.
@@ -2,8 +2,11 @@ import { createApp } from 'vue';
2
2
  import { TriggerHandler } from '../utils/adapters/TriggerUtil';
3
3
  import { WordSuitePlugin } from './types';
4
4
  export interface SetupPlatformAdaptersOptions {
5
- /** HTTP 请求拦截器配置,用于统一处理请求/响应的拦截逻辑 */
6
- interceptors: any;
5
+ /**
6
+ * HTTP 请求拦截器配置,用于统一处理请求/响应的拦截逻辑
7
+ * 5.x 主工程需传入;6.0 主工程若已在 core 中挂载拦截器可省略
8
+ */
9
+ interceptors?: any;
7
10
  /** 获取应用信息/默认内置参数 */
8
11
  getAppInfo: any;
9
12
  /** 文件解析方法 */
@@ -28,7 +31,7 @@ export interface SetupPlatformAdaptersOptions {
28
31
  * import { edhrSuitePlugin } from '@gct-paas/word/plugins';
29
32
  *
30
33
  * setupPlatformAdapters({
31
- * interceptors,
34
+ * interceptors, // 5.x 传入;6.0 可省略
32
35
  * getAppInfo,
33
36
  * parseFile,
34
37
  * uploadFile,
@@ -0,0 +1,7 @@
1
+ import { ApiMap } from '@gct-paas/api';
2
+ /**
3
+ * 优先使用 6.0 主工程挂载的 window._api,否则回退到 @gct-paas/api
4
+ */
5
+ export declare function getApi(): ApiMap;
6
+ /** 业务侧 drop-in:优先 window._api,否则 @gct-paas/api */
7
+ export declare const api: ApiMap;