customer-chat-sdk 1.2.0 → 1.3.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.
package/dist/index.d.ts CHANGED
@@ -95,7 +95,7 @@ export declare class CustomerServiceSDK {
95
95
  error: string | null;
96
96
  isEnabled: boolean;
97
97
  uploadError: string | null;
98
- currentBinaryConfig: import("./core/ScreenshotManager").BinaryConfig | null;
98
+ currentBinaryConfig: import("./simple").BinaryConfig | null;
99
99
  } | null;
100
100
  /**
101
101
  * 更新截图配置(动态更新,无需重新初始化)
@@ -200,7 +200,7 @@ export declare const getScreenshotState: () => {
200
200
  error: string | null;
201
201
  isEnabled: boolean;
202
202
  uploadError: string | null;
203
- currentBinaryConfig: import("./core/ScreenshotManager").BinaryConfig | null;
203
+ currentBinaryConfig: import("./simple").BinaryConfig | null;
204
204
  } | null;
205
205
  export declare const updateScreenshotOptions: (options: Partial<ScreenshotOptions>) => void;
206
206
  /**
@@ -244,7 +244,7 @@ declare const _default: {
244
244
  error: string | null;
245
245
  isEnabled: boolean;
246
246
  uploadError: string | null;
247
- currentBinaryConfig: import("./core/ScreenshotManager").BinaryConfig | null;
247
+ currentBinaryConfig: import("./simple").BinaryConfig | null;
248
248
  } | null;
249
249
  updateScreenshotOptions: (options: Partial<ScreenshotOptions>) => void;
250
250
  updateToken: (token: string | undefined, options?: ChatWindowOptions) => Promise<InitResult>;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 简化版 SDK 导出(只包含图标和截图功能)
3
+ * 适用于需要自行管理 iframe 或弹窗组件的项目
4
+ */
5
+ export { CustomerSimpleSDK } from './core/SimpleSDK';
6
+ export type { CustomerSimpleSDKConfig, ScreenshotMessageCallback } from './core/SimpleSDK';
7
+ export { CustomerSimpleSDK as SimpleSDK } from './core/SimpleSDK';
8
+ export type { CustomerSimpleSDKConfig as SimpleSDKConfig } from './core/SimpleSDK';
9
+ export { IconManager } from './core/IconManager';
10
+ export { ScreenshotManager } from './core/ScreenshotManager';
11
+ export type { ScreenshotOptions } from './core/ScreenshotManager';
12
+ export type { BinaryConfig } from './core/ScreenshotManager';
13
+ export type { IconPosition } from './types';
14
+ //# sourceMappingURL=simple.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simple.d.ts","sourceRoot":"","sources":["../src/simple.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AACpD,YAAY,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAA;AAG1F,OAAO,EAAE,iBAAiB,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjE,YAAY,EAAE,uBAAuB,IAAI,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAGlF,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AAC5D,YAAY,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AACjE,YAAY,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAA;AAG5D,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "customer-chat-sdk",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Customer Service SDK - One-line integration for customer support chat",
5
5
  "main": "dist/customer-sdk.cjs.js",
6
6
  "module": "dist/customer-sdk.esm.js",