@lark-apaas/client-toolkit 1.2.4 → 1.2.5-alpha.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/lib/utils/postMessage.js +1 -4
- package/package.json +3 -3
package/lib/utils/postMessage.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
function getEnvOrigin() {
|
|
2
|
-
return 'undefined' != typeof process ? process.env?.FORCE_FRAMEWORK_DOMAIN_MAIN : void 0;
|
|
3
|
-
}
|
|
4
1
|
function getLegacyParentOrigin() {
|
|
5
2
|
const { origin } = window.location;
|
|
6
3
|
if (origin.includes('force.feishuapp.net')) return 'https://force.feishu.cn';
|
|
@@ -11,7 +8,7 @@ function getLegacyParentOrigin() {
|
|
|
11
8
|
return 'https://miaoda.feishu-boe.cn';
|
|
12
9
|
}
|
|
13
10
|
function resolveParentOrigin() {
|
|
14
|
-
return
|
|
11
|
+
return process.env?.FORCE_FRAMEWORK_DOMAIN_MAIN ?? getLegacyParentOrigin();
|
|
15
12
|
}
|
|
16
13
|
function submitPostMessage(message, targetOrigin) {
|
|
17
14
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/client-toolkit",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5-alpha.0",
|
|
4
4
|
"types": "./lib/index.d.ts",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"files": [
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"@ant-design/cssinjs": "^1.24.0",
|
|
83
83
|
"@data-loom/js": "^0.4.3",
|
|
84
84
|
"@lark-apaas/client-capability": "^0.1.2",
|
|
85
|
-
"@lark-apaas/miaoda-inspector": "^1.0.
|
|
85
|
+
"@lark-apaas/miaoda-inspector": "^1.0.11-alpha.0",
|
|
86
86
|
"@lark-apaas/observable-web": "^1.0.0",
|
|
87
87
|
"@radix-ui/react-avatar": "^1.1.10",
|
|
88
88
|
"@radix-ui/react-popover": "^1.1.15",
|
|
@@ -157,5 +157,5 @@
|
|
|
157
157
|
"react-router-dom": ">=6.26.2",
|
|
158
158
|
"styled-jsx": ">=5.0.0"
|
|
159
159
|
},
|
|
160
|
-
"gitHead": "
|
|
160
|
+
"gitHead": "cf1c135018f9d8b87c48a24357e3e8f394724f57"
|
|
161
161
|
}
|