hanbiro-react16-sdk 1.0.30 → 1.0.31
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/hanbiro-react16-sdk.style.css +11 -2
- package/dist/hanbiro-react16-sdk.umd.js +14 -2
- package/dist/index.js +2 -2
- package/dist/utils/url.d.ts +1 -0
- package/dist/utils/url.js +16 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* hanbiro-react16-sdk v1.0.
|
|
3
|
-
* Build Date: 2026-05-
|
|
2
|
+
* hanbiro-react16-sdk v1.0.31
|
|
3
|
+
* Build Date: 2026-05-27
|
|
4
4
|
*/
|
|
5
5
|
@charset "UTF-8";
|
|
6
6
|
button.icon-button {
|
|
@@ -270,6 +270,15 @@ p {
|
|
|
270
270
|
--border-dark: #a1a1a1;
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
+
:root[data-hanbiro-sdk-version=v2] {
|
|
274
|
+
--primary-lighter: #e4f6fa;
|
|
275
|
+
--primary-light: #5fbadf;
|
|
276
|
+
--primary-main: #4ca1cc;
|
|
277
|
+
--primary-dark: #3e7da5;
|
|
278
|
+
--primary-darker: #325d82;
|
|
279
|
+
--primary-contrasttext: #fff;
|
|
280
|
+
}
|
|
281
|
+
|
|
273
282
|
select {
|
|
274
283
|
padding: 7px 8px;
|
|
275
284
|
border-radius: 4px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* hanbiro-react16-sdk v1.0.
|
|
3
|
-
* Build Date: 2026-05-
|
|
2
|
+
* hanbiro-react16-sdk v1.0.31
|
|
3
|
+
* Build Date: 2026-05-27
|
|
4
4
|
*/
|
|
5
5
|
function _toArray(r) { return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest(); }
|
|
6
6
|
function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
@@ -216,11 +216,23 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
216
216
|
signer: null,
|
|
217
217
|
lang: getCurrentLang()
|
|
218
218
|
};
|
|
219
|
+
var getAppVersion = function getAppVersion() {
|
|
220
|
+
var locationInfo = window.location;
|
|
221
|
+
if (window.location !== window.parent.location) {
|
|
222
|
+
try {
|
|
223
|
+
locationInfo = window.parent.location;
|
|
224
|
+
} catch (e) {
|
|
225
|
+
locationInfo = window.location;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
return locationInfo.pathname.includes("/ngw/app") ? "v2" : "v3";
|
|
229
|
+
};
|
|
219
230
|
var initHanbiroReactSDK = function initHanbiroReactSDK(_ref2) {
|
|
220
231
|
var baseUrl = _ref2.baseUrl,
|
|
221
232
|
signer = _ref2.signer;
|
|
222
233
|
SDKConfig.baseUrl = baseUrl;
|
|
223
234
|
SDKConfig.signer = signer;
|
|
235
|
+
document.documentElement.setAttribute("data-hanbiro-sdk-version", getAppVersion());
|
|
224
236
|
};
|
|
225
237
|
var setLibLang = function setLibLang(lang) {
|
|
226
238
|
if (lang) SDKConfig.lang = lang;
|
package/dist/index.js
CHANGED
package/dist/utils/url.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ interface SDKConfig {
|
|
|
4
4
|
lang?: string;
|
|
5
5
|
}
|
|
6
6
|
export declare const SDKConfig: SDKConfig;
|
|
7
|
+
export declare const getAppVersion: () => "v2" | "v3";
|
|
7
8
|
export declare const initHanbiroReactSDK: ({ baseUrl, signer }: SDKConfig) => void;
|
|
8
9
|
export declare const setLibLang: (lang: string) => void;
|
|
9
10
|
export declare const isDevelopment: boolean;
|
package/dist/utils/url.js
CHANGED
|
@@ -4,9 +4,24 @@ const SDKConfig = {
|
|
|
4
4
|
signer: null,
|
|
5
5
|
lang: getCurrentLang()
|
|
6
6
|
};
|
|
7
|
+
const getAppVersion = () => {
|
|
8
|
+
let locationInfo = window.location;
|
|
9
|
+
if (window.location !== window.parent.location) {
|
|
10
|
+
try {
|
|
11
|
+
locationInfo = window.parent.location;
|
|
12
|
+
} catch (e) {
|
|
13
|
+
locationInfo = window.location;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return locationInfo.pathname.includes("/ngw/app") ? "v2" : "v3";
|
|
17
|
+
};
|
|
7
18
|
const initHanbiroReactSDK = ({ baseUrl, signer }) => {
|
|
8
19
|
SDKConfig.baseUrl = baseUrl;
|
|
9
20
|
SDKConfig.signer = signer;
|
|
21
|
+
document.documentElement.setAttribute(
|
|
22
|
+
"data-hanbiro-sdk-version",
|
|
23
|
+
getAppVersion()
|
|
24
|
+
);
|
|
10
25
|
};
|
|
11
26
|
const setLibLang = (lang) => {
|
|
12
27
|
if (lang) SDKConfig.lang = lang;
|
|
@@ -40,6 +55,7 @@ const getBaseUrl = () => {
|
|
|
40
55
|
};
|
|
41
56
|
export {
|
|
42
57
|
SDKConfig,
|
|
58
|
+
getAppVersion,
|
|
43
59
|
getBaseUrl,
|
|
44
60
|
initHanbiroReactSDK,
|
|
45
61
|
isDevelopment,
|