@lark-apaas/client-toolkit 1.2.18-alpha.1 → 1.2.18-alpha.2

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.
@@ -1,4 +1,4 @@
1
1
  import { Table } from 'antd';
2
- import type { TableProps } from 'antd';
2
+ import type { TableProps, TableColumnType, TableColumnsType } from 'antd';
3
3
  export { Table };
4
- export type { TableProps };
4
+ export type { TableProps, TableColumnType, TableColumnsType };
@@ -0,0 +1,2 @@
1
+ export type { ChatPanel, IframeEventMessage, IframeMessage, IframeMessageType, IframeRequestMessage, IframeResponseMessage, WebSDKCommonConfig, WebSDKConfig, WebSDKConversionConfig, WebSDKEditorConfig, WebSDKEvents, WebSDKSkillInfo, } from '@lark-apaas/aily-web-sdk';
2
+ export { DEFAULT_ANONYMOUS_CHANNEL_TYPE, DEFAULT_CHANNEL_TYPE, getIframeBaseURL, IFRAME_BASE_URL, initAilyChat, MESSAGE_TIMEOUT, } from '@lark-apaas/aily-web-sdk';
@@ -0,0 +1,2 @@
1
+ import { DEFAULT_ANONYMOUS_CHANNEL_TYPE, DEFAULT_CHANNEL_TYPE, IFRAME_BASE_URL, MESSAGE_TIMEOUT, getIframeBaseURL, initAilyChat } from "@lark-apaas/aily-web-sdk";
2
+ export { DEFAULT_ANONYMOUS_CHANNEL_TYPE, DEFAULT_CHANNEL_TYPE, IFRAME_BASE_URL, MESSAGE_TIMEOUT, getIframeBaseURL, initAilyChat };
@@ -1,19 +1,3 @@
1
- const PARENT_ORIGIN_KEY = '__parentOrigin';
2
- function getParentOriginFromParams() {
3
- try {
4
- const params = new URLSearchParams(window.location.search);
5
- const origin = params.get(PARENT_ORIGIN_KEY);
6
- if (origin) {
7
- sessionStorage.setItem(PARENT_ORIGIN_KEY, origin);
8
- return origin;
9
- }
10
- } catch {}
11
- try {
12
- return sessionStorage.getItem(PARENT_ORIGIN_KEY) || void 0;
13
- } catch {
14
- return;
15
- }
16
- }
17
1
  function getLegacyParentOrigin() {
18
2
  const { origin } = window.location;
19
3
  if (origin.includes('force.feishuapp.net')) return 'https://force.feishu.cn';
@@ -24,8 +8,6 @@ function getLegacyParentOrigin() {
24
8
  return 'https://miaoda.feishu-boe.cn';
25
9
  }
26
10
  function resolveParentOrigin() {
27
- const paramOrigin = getParentOriginFromParams();
28
- if (paramOrigin) return paramOrigin;
29
11
  return process.env?.FORCE_FRAMEWORK_DOMAIN_MAIN ?? getLegacyParentOrigin();
30
12
  }
31
13
  function submitPostMessage(message, targetOrigin) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/client-toolkit",
3
- "version": "1.2.18-alpha.1",
3
+ "version": "1.2.18-alpha.2",
4
4
  "types": "./lib/index.d.ts",
5
5
  "main": "./lib/index.js",
6
6
  "files": [
@@ -71,6 +71,11 @@
71
71
  "require": "./lib/apis/utils/*.js",
72
72
  "types": "./lib/apis/utils/*.d.ts"
73
73
  },
74
+ "./aily-chat": {
75
+ "import": "./lib/apis/aily-chat.js",
76
+ "require": "./lib/apis/aily-chat.js",
77
+ "types": "./lib/apis/aily-chat.d.ts"
78
+ },
74
79
  "./auth": {
75
80
  "import": "./lib/auth.js",
76
81
  "require": "./lib/auth.js",
@@ -94,9 +99,10 @@
94
99
  "@ant-design/colors": "^7.2.1",
95
100
  "@ant-design/cssinjs": "^1.24.0",
96
101
  "@data-loom/js": "0.4.7",
102
+ "@lark-apaas/aily-web-sdk": "0.0.2-alpha.6",
97
103
  "@lark-apaas/auth-sdk": "^0.1.0",
98
104
  "@lark-apaas/client-capability": "^0.1.4",
99
- "@lark-apaas/miaoda-inspector": "1.0.14-alpha.21",
105
+ "@lark-apaas/miaoda-inspector": "^1.0.16",
100
106
  "@lark-apaas/observable-web": "^1.0.1",
101
107
  "@radix-ui/react-avatar": "^1.1.10",
102
108
  "@radix-ui/react-popover": "^1.1.15",